:root {
  --blue: #2f67ae;
  --blue-dark: #23538f;
  --yellow: #58b9da;
  --orange: #f5a21a;
  --ink: #17202b;
  --muted: #5d6875;
  --line: #dce4ec;
  --soft: #f7f9fb;
  --panel: #fff;
  --shadow: 0 12px 32px rgba(23, 32, 43, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.top-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  color: #fff;
  background: linear-gradient(90deg, #1e3a8a, var(--blue));
}
.top-banner span { color: var(--yellow); font-weight: 900; }
.top-banner button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 4px;
  color: #fff;
  background: transparent;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
}
.utility, .brand, .category-nav, .hero, .process, .order, .admin {
  max-width: 1320px;
  margin: 0 auto;
}
.utility {
  display: flex;
  gap: 18px;
  align-items: center;
  height: 34px;
  color: var(--muted);
  font-size: 13px;
}
.utility span { flex: 1; }
.brand {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 84px;
}
.logo b {
  display: block;
  color: var(--blue);
  font-size: 0;
  font-weight: 950;
  letter-spacing: 0;
  width: 178px;
  height: 64px;
  background: url('/assets/generated/printtalk-logo.png') center / contain no-repeat;
}
.logo small {
  display: block;
  margin-top: 6px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}
.mode-tabs {
  justify-self: center;
  display: flex;
  padding: 6px;
  border-radius: 999px;
  background: #f1f5f9;
}
.mode-tabs button {
  min-width: 112px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #374151;
  font-weight: 800;
}
.mode-tabs .active {
  color: #fff;
  background: var(--blue);
}
.header-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 800;
  white-space: nowrap;
}
.quote-link {
  padding: 12px 16px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
}
.site-footer { margin-top: 72px; color: #dbe7f3; background: #17202b; }
.admin-sync-actions { min-width: 150px; }
.admin-sync-actions button { display:block; width:100%; min-height:36px; margin:4px 0; padding:0 8px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); font-weight:600; cursor:pointer; }
.admin-sync-actions button:first-child { background:var(--blue); border-color:var(--blue); color:#fff; }
.admin-sync-actions button:disabled { opacity:.45; cursor:not-allowed; }
.admin-sync-actions small { display:block; color:var(--muted); font-size:12px; margin-top:5px; }
.file-entry{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0 20px}.entry-card{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);text-decoration:none;cursor:pointer}.entry-card:hover,.entry-card:focus{border-color:var(--blue);outline:3px solid rgba(47,103,174,.16)}.entry-card span{font-size:13px;color:var(--muted)}.entry-upload input{display:none}.editor-shell{max-width:1440px;margin:0 auto;min-height:720px;display:grid;grid-template-columns:220px 1fr 280px;background:#eef2f6}.editor-tools,.editor-properties{padding:24px;background:#fff;border:1px solid var(--line)}.editor-tools h1{font-size:24px;margin:0 0 20px}.editor-tools button{display:block;width:100%;height:44px;margin:8px 0;text-align:left;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 12px}.editor-help{margin-top:24px;padding:12px;background:#fff8e8;border:1px solid #f5d58a;border-radius:8px;font-size:13px}.editor-stage{display:flex;flex-direction:column;min-width:0}.editor-toolbar{height:56px;display:flex;align-items:center;gap:10px;padding:0 16px;background:#fff;border-bottom:1px solid var(--line)}.editor-toolbar span{flex:1}.editor-toolbar button{min-height:36px;border:1px solid var(--line);border-radius:7px;background:#fff}.canvas-wrap{flex:1;display:grid;place-items:center;padding:32px}.print-canvas{position:relative;width:min(70%,620px);aspect-ratio:1.414;background:#fff;box-shadow:0 8px 22px rgba(23,32,43,.12);display:grid;place-items:center;color:#8793a0}.bleed-guide,.safe-guide{position:absolute;inset:12px;border:1px dashed #f5a21a;pointer-events:none}.safe-guide{inset:28px;border-color:#58b9da}.editor-tabs{display:flex;justify-content:center;gap:8px;padding:14px;background:#fff}.editor-tabs button{min-height:40px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 14px}.editor-tabs .active{border-color:var(--blue);color:var(--blue);font-weight:700}.editor-properties h2{font-size:20px;margin-top:0}.editor-properties label{display:block;margin:16px 0;font-weight:600}.editor-properties input{display:block;width:100%;height:44px;margin-top:6px;border:1px solid var(--line);border-radius:8px;padding:0 10px}.resolution-warning{padding:12px;margin:20px 0;background:#fff8e8;border:1px solid #f5d58a;border-radius:8px;color:#8a5a00}.resolution-warning small{color:var(--muted)}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 48px 24px 34px; display: grid; grid-template-columns: 190px 1fr auto; gap: 32px; align-items: start; }
.footer-inner img { width: 160px; height: auto; background: #fff; padding: 8px; border-radius: 8px; }
.footer-inner strong { color: #fff; font-size: 18px; }
.footer-inner p { margin: 8px 0 0; color: #aebdcb; font-size: 14px; }
.footer-links { display: flex; gap: 18px; font-weight: 600; }
.footer-bottom { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.12); color: #91a2b2; font-size: 13px; text-align: center; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; padding: 36px 20px 28px; } .footer-links { flex-wrap: wrap; } }
.category-nav {
  display: flex;
  gap: 8px;
  min-height: 62px;
  align-items: center;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}
.category-nav button,
.category-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  height: 42px;
  padding: 0 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-weight: 900;
}
.category-nav button:first-child,
.category-nav .menu-icon {
  width: 48px;
  font-size: 24px;
}
.category-nav .active {
  color: var(--blue);
  border-color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, .78fr);
  gap: 46px;
  align-items: center;
  padding: 64px 24px 54px;
}
.hero-copy {
  position: relative;
  padding: 48px 0;
}
.kicker, .section-title p, .option-head p {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
}
.hero h1 {
  margin: 12px 0 18px;
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: 0;
}
.hero-copy > p:not(.kicker) {
  max-width: 720px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.72;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  height: 52px;
  border-radius: 6px;
  font-weight: 950;
}
.primary {
  color: #fff;
  background: var(--blue);
}
.secondary {
  color: var(--blue);
  border: 1px solid rgba(65,105,225,.35);
  background: #fff;
}
.hero-image {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  border-radius: 7px;
  object-fit: cover;
}
.hero-image figcaption {
  padding: 12px 4px 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.home-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 58px 24px;
}

.marketing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.marketing-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 24, 39, .06);
}

.marketing-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
}

.marketing-card strong {
  display: block;
  padding: 18px 18px 6px;
  font-size: 22px;
}

.marketing-card span {
  display: block;
  padding: 0 18px 20px;
  color: var(--muted);
  line-height: 1.55;
}

.brand-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 32px;
  align-items: center;
}

.story-copy h2,
.support-band h2 {
  margin: 10px 0 14px;
  font-size: 34px;
  line-height: 1.25;
}

.story-copy p:not(.kicker),
.support-band p {
  color: var(--muted);
  line-height: 1.7;
}

.story-stats {
  display: grid;
  gap: 12px;
}

.story-stats article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.story-stats strong {
  display: block;
  color: var(--blue);
  font-size: 24px;
}

.story-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.support-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  border: 1px solid rgba(65, 105, 225, .18);
  border-radius: 8px;
  background: #fff;
}

.page-hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.page-hero h1 {
  margin: 10px 0 10px;
  font-size: 42px;
}

.page-hero p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.process, .order, .admin { padding: 54px 24px; }
.process h2, .section-title h2 {
  margin: 0;
  font-size: 32px;
}
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.process-list article {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}
.process-list span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 80px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 950;
}
.process-list b {
  display: block;
  margin-top: 20px;
  font-size: 20px;
}
.process-list p, .section-title span {
  color: var(--muted);
  line-height: 1.6;
}

.order-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
  margin-top: 28px;
}
.product-sidebar, .option-panel, .estimate, .orders-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.product-sidebar, .estimate { padding: 18px; }
.product-sidebar h3, .estimate h3 { margin: 0 0 14px; }
.product-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  margin-bottom: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  text-align: left;
}
.product-card.active {
  border-color: var(--blue);
  background: rgba(65,105,225,.08);
}
.product-card img {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
}
.product-card b { display: block; }
.product-card span { color: var(--muted); font-size: 13px; }

.product-image {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid var(--line);
}
.option-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.option-head h3 {
  margin: 6px 0 0;
  font-size: 28px;
}
.option-head strong {
  min-width: 86px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  text-align: center;
}
.order-form { padding: 24px; }
.fields, .customer-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.customer-box {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}
.field { display: grid; gap: 8px; }
.field.full {
  grid-column: 1 / -1;
  margin-top: 16px;
}
.field label { font-weight: 950; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
}
.field textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.check-grid label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}
.estimate {
  position: sticky;
  top: 196px;
  box-shadow: 0 18px 46px rgba(17,24,39,.08);
}
.estimate dl {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.estimate dt { color: var(--muted); }
.estimate dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}
.price {
  margin: 18px 0;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: #111827;
}
.price span, .price small { display: block; }
.price strong {
  display: block;
  margin: 8px 0;
  color: var(--yellow);
  font-size: 28px;
}

.quote-compare {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.quote-compare article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.quote-compare span,
.quote-compare small {
  display: block;
}

.quote-compare span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.quote-compare strong {
  display: block;
  margin: 6px 0;
  color: var(--blue);
  font-size: 24px;
}

.quote-compare small {
  color: var(--muted);
  line-height: 1.45;
}
.api-state {
  margin-bottom: 12px;
  padding: 11px 12px;
  border-radius: 6px;
  color: var(--blue-dark);
  background: rgba(65,105,225,.1);
  font-weight: 900;
  font-size: 13px;
}

.quote-audit {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  line-height: 1.55;
}

.quote-audit strong {
  display: block;
  margin-bottom: 6px;
}

.quote-audit ul {
  margin: 6px 0 10px;
  padding-left: 18px;
}

.quote-audit summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
}

.quote-audit pre {
  overflow: auto;
  max-height: 220px;
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 6px;
  background: #111827;
  color: #f9fafb;
  font-size: 12px;
}
.ghost, .solid, .admin-toolbar button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  font-weight: 950;
}
.ghost {
  color: var(--blue);
  background: rgba(65,105,225,.12);
}
.solid {
  margin-top: 8px;
  color: #fff;
  background: var(--blue);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 12px;
}
.admin-toolbar button {
  width: auto;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
}
.admin-toolbar span {
  color: var(--muted);
  font-weight: 900;
}
.orders-table { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}
th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  background: #f8fafc;
  font-size: 13px;
  color: #4b5563;
}
td select {
  min-height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.quick-menu {
  position: fixed;
  right: 18px;
  top: 248px;
  z-index: 30;
  width: 116px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.quick-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: #fff;
  background: #303741;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
}
.quick-menu a:first-child { background: var(--blue); }
.quick-menu a:last-child { background: #7b8794; }

@media (max-width: 1180px) {
  .brand, .hero, .order-grid { grid-template-columns: 1fr; }
  .mode-tabs, .header-actions { justify-self: start; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .marketing-grid, .brand-story { grid-template-columns: 1fr; }
  .estimate { position: static; }
  .quick-menu { display: none; }
}
@media (max-width: 720px) {
  .file-entry{grid-template-columns:1fr}.editor-shell{display:block;min-height:0}.editor-tools,.editor-properties{border:0}.editor-stage{min-height:520px}.print-canvas{width:82%}.editor-properties{padding-bottom:32px}
  .top-banner, .utility, .brand, .category-nav { padding-inline: 16px; }
  .top-banner { grid-template-columns: 1fr auto; }
  .top-banner span { display: none; }
  .header-actions, .mode-tabs { flex-wrap: wrap; }
  .hero { padding-inline: 16px; }
  .hero h1 { font-size: 34px; }
  .process, .order, .admin { padding: 42px 16px; }
  .home-section, .page-hero { padding: 42px 16px; }
  .process-list, .fields, .customer-box, .check-grid { grid-template-columns: 1fr; }
  .support-band { align-items: flex-start; flex-direction: column; }
  .product-image { height: 220px; }
}
