/* 3D print page */

.print-body { background: var(--bg); }

.print-main { padding: clamp(36px, 5vw, 60px) 0 clamp(60px, 7vw, 90px); }

.print-hero { max-width: 760px; margin-bottom: clamp(28px, 4vw, 42px); }
.print-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 14px; }
.print-hero-actions { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.print-hero-actions .btn { padding: 10px 16px; font-size: 14px; }

.selected-work {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid var(--accent-line);
  border-radius: 11px;
  background: var(--accent-dim);
}
.selected-work img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 7px;
  flex: none;
  background: #0a1013;
}
.selected-work-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.selected-work-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.selected-work-body a {
  font-size: 14px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.selected-work-body a:hover { color: var(--accent); }
.selected-work-note { font-size: 11.5px; color: var(--muted-2); }
.sw-clear {
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s;
}
.sw-clear:hover { color: var(--danger); border-color: rgba(255, 107, 107, 0.4); }

/* FAQ */

.print-faq {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.print-faq h2 { font-size: 1.35rem; margin-bottom: 16px; }
.faq-list { display: grid; gap: 8px; max-width: 840px; }
.faq-list details {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.015);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  flex: none;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.print-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 20px;
  align-items: start;
}

.print-form-title { font-size: 1.15rem; margin-bottom: 18px; }

/* color picker */

.color-field { border: 0; padding: 0; margin: 0 0 18px; }
.color-field legend {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 0;
}
.color-field legend em { color: var(--accent); font-style: normal; }

.color-current {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
}

.palette { display: flex; flex-wrap: wrap; gap: 8px; }
.palette-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
}
.palette-item input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.palette-item:hover .swatch { transform: scale(1.08); }
.palette-item input:checked + .swatch {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
.palette-item input:focus-visible + .swatch {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sw, #ccc);
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex: none;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.swatch-picker {
  display: grid;
  place-items: center;
  background: rgba(62, 224, 200, 0.06);
  border: 1px dashed var(--accent-line);
  color: var(--accent);
  box-shadow: none;
}
.swatch-picker svg { width: 14px; height: 14px; }
.swatch-checker {
  background-image:
    linear-gradient(45deg, #9aa4a9 25%, transparent 25%, transparent 75%, #9aa4a9 75%),
    linear-gradient(45deg, #9aa4a9 25%, #e8edef 25%, #e8edef 75%, #9aa4a9 75%);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
}
.swatch-rainbow {
  background: conic-gradient(#e05252, #e9c93f, #43b05c, #6cc4e8, #8b5cd6, #e05252);
}
.custom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}
.custom-row[hidden] { display: none; }
.custom-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}
.custom-picker input[type=color] {
  width: 34px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.custom-hex {
  width: 108px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: lowercase;
}
.custom-hex:focus { outline: none; border-color: var(--accent-line); }
.custom-hint { font-size: 11.5px; color: var(--muted-2); }

.material-hint {
  margin: -6px 0 14px;
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.5;
  min-height: 18px;
}

.mat-guide {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.015);
  padding: 10px 13px;
}
.mat-guide summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--accent);
  list-style: none;
}
.mat-guide summary::-webkit-details-marker { display: none; }
.mat-guide summary::before {
  content: "+";
  font-family: var(--mono);
  font-size: 13px;
  width: 12px;
}
.mat-guide[open] summary::before { content: "–"; }
.mat-list { display: grid; gap: 12px; margin-top: 12px; }
.mat-list li { display: block; }
.mat-list b {
  display: block;
  font-size: 12.5px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.mat-list span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
.mat-note {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.5;
}

/* sidebar */

.print-aside { display: grid; gap: 16px; position: sticky; top: 92px; }
.print-lookup, .print-how { padding: 22px; }
.print-card-title { font-size: 1.05rem; margin-bottom: 6px; }
.print-card-sub { color: var(--muted); font-size: 13px; line-height: 1.55; margin-bottom: 14px; }

.lookup-form { display: flex; gap: 8px; }
.lookup-form input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.lookup-form input:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgba(62, 224, 200, 0.08);
}
.lookup-form .btn { padding: 10px 14px; font-size: 13.5px; }

.prints-list { display: grid; gap: 8px; margin-top: 12px; }

.print-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  gap: 7px;
}
.print-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.print-item-link {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.print-item-link:hover { color: var(--accent); }
.print-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted-2);
}
.dot-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c, #ccc);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-block;
  flex: none;
}
.print-item-comment {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  border-left: 2px solid var(--line-strong);
  padding-left: 9px;
  overflow-wrap: anywhere;
}
.print-item-work { font-size: 12px; color: var(--accent); }
.print-item-work:hover { text-decoration: underline; }

.pstatus {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
  flex: none;
}
.pstatus-new { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.pstatus-queued { color: #ffd479; border-color: rgba(255, 212, 121, 0.35); background: rgba(255, 212, 121, 0.08); }
.pstatus-printing { color: #8ebaff; border-color: rgba(142, 186, 255, 0.35); background: rgba(142, 186, 255, 0.08); }
.pstatus-done { color: #8fc6a0; border-color: rgba(143, 198, 160, 0.3); background: rgba(143, 198, 160, 0.07); }
.pstatus-rejected { color: #ff9b9b; border-color: rgba(255, 155, 155, 0.3); background: rgba(255, 155, 155, 0.07); }

.print-hint { font-size: 12.5px; color: var(--muted-2); line-height: 1.55; }
.print-item-note { font-size: 12px; color: var(--muted-2); }

/* how it works */

.how-list { display: grid; gap: 12px; margin: 4px 0 16px; }
.how-list li { display: flex; gap: 11px; }
.how-list span {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 1px;
}
.how-list p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.print-card-note { font-size: 11.5px; color: var(--muted-2); line-height: 1.55; border-top: 1px solid var(--line); padding-top: 12px; }

.print-footer { border-top: 1px solid var(--line); padding: 26px 0; background: var(--bg-2); }

@media (max-width: 1000px) {
  .print-grid { grid-template-columns: 1fr; }
  .print-aside { position: static; }
}

@media (max-width: 620px) {
  .lookup-form { flex-direction: column; }
  .lookup-form .btn { width: 100%; }
  .print-lookup, .print-how { padding: 18px; }
}
