@font-face {
  font-family: "Pretendard";
  src: url("../fonts/Pretendard-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Hakgyoansim Allimjang";
  src: url("../fonts/HakgyoansimAllimjang-B.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f3efe6;
  --ink: #1c1915;
  --muted: #6f685e;
  --line: #e4dccf;
  --card: #fffdf8;
  --accent: #0f6e62;
  --accent-dark: #0b534a;
  --danger: #8d2f2f;
  --shadow: 0 10px 30px rgba(40, 32, 20, 0.06);
  --field: #fff;
  --top: rgba(243, 239, 230, 0.92);
}
html[data-theme="night"] {
  --bg: #141311;
  --ink: #f4efe6;
  --muted: #b7ad9e;
  --line: #3a342c;
  --card: #221f1b;
  --accent: #8fd9cb;
  --accent-dark: #d7f3ec;
  --danger: #f0a8a8;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --field: #1a1815;
  --top: rgba(20, 19, 17, 0.94);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: "Pretendard", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 280px at 10% -10%, #efe4cf, transparent 60%),
    var(--bg);
  line-height: 1.5;
}
body.has-nav { padding-bottom: 76px; }
.site-foot {
  width: min(920px, calc(100% - 28px));
  margin: 28px auto 0;
  padding: 8px 0 12px;
  text-align: center;
}
.site-foot a { text-decoration: none; }
.site-foot img {
  width: min(147px, 45%);
  height: auto;
  display: block;
  margin: 0 auto 10px;
}
.site-foot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
a { color: var(--accent-dark); }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button, .theme-switch { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 8px; }
.collect-page { display: flex; flex-direction: column; gap: 36px; }
.collect-intro, .collect-block { display: flex; flex-direction: column; gap: 14px; }
.collect-intro h1, .collect-block h2, .collect-intro p, .collect-block > .muted { margin: 0; }
.collect-block .card, .collect-block .list, .collect-block .log { margin: 0; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; }
.form-row.times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.collect-block .stack > button { align-self: flex-start; }
.collect-page .list li > div { flex: 1 1 220px; min-width: 0; }
.collect-page .list li .meta { display: block; margin-top: 4px; }
.is-hidden { display: none !important; }
h1 { font-size: 1.7rem; }

.top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 10px 16px 8px;
  position: sticky;
  top: 0;
  background: var(--top);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.top-bar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 12px; }
.brand { text-decoration: none; color: inherit; }
.brand span {
  font-family: "Hakgyoansim Allimjang", "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.top-nav { display: flex; justify-content: center; gap: 4px; width: 100%; }
.top-nav a {
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 10px 16px;
  border-radius: 12px;
  min-height: 44px;
}
.top-nav a.active { background: var(--ink); color: var(--bg); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--field);
}
.theme-switch span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
html:not([data-theme="night"]) .theme-switch .theme-sun { background: var(--ink); color: var(--bg); }
html[data-theme="night"] .theme-switch .theme-moon { background: #f4efe6; color: #1c1915; }
.who { color: var(--muted); }
main { width: min(920px, calc(100% - 28px)); margin: 22px auto 40px; }
.page-head { margin-bottom: 14px; }
.muted { color: var(--muted); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.narrow { width: min(440px, 100%); margin: 24px auto; }
.stack { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; }
input, select, textarea {
  border: 1px solid #d9d0c2;
  background: var(--field);
  border-radius: 10px;
  padding: 10px 12px;
}
textarea { resize: vertical; }
.primary, .ghost, .danger, .button {
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.primary, a.primary {
  background: var(--accent);
  color: #f7fffc;
}
.primary:hover { background: var(--accent-dark); }
.ghost { background: transparent; border-color: #d9d0c2; }
.danger { background: transparent; color: var(--danger); border-color: #e7c7c7; }
.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent-dark);
  cursor: pointer;
}
.row-inline, .split, .checks { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.split { justify-content: space-between; }
.check { flex-direction: row; align-items: center; }
.flash { padding: 10px 12px; border-radius: 10px; }
.flash-ok { background: #e5f4ef; }
.flash-bad { background: #fdecec; }
.list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.list li { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #1c1915;
  z-index: 6;
}
.bottom a { color: #f3efe6; text-align: center; text-decoration: none; padding: 16px 8px; }
.bottom a.active { color: #9ddecf; }
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: inherit; }
.admin-nav a.active { background: var(--ink); color: #f3efe6; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stats .card strong { display: block; font-size: 1.6rem; }
.product-row { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote-line { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
.doc-frame { position: relative; overflow: hidden; margin: 0 auto; background: #ece7df; border-radius: 12px; }
.doc-a4 { position: absolute; left: 0; top: 0; width: 210mm; min-height: 297mm; background: #fff; padding: 10mm 12mm; box-sizing: border-box; color: #111; font-family: "Malgun Gothic", "맑은 고딕", sans-serif; transform-origin: top left; }
.doc-a4 .doc-logo img { max-height: 25px; width: auto; display: block; }
.doc-a4 .doc-title { margin: 8px 0 12px; text-align: center; font-size: 28.8pt; font-weight: 700; letter-spacing: 0.25em; }
.doc-a4 .doc-line3 { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.doc-a4 .doc-meta-left { flex: 0 1 50%; max-width: 50%; min-width: 0; padding-left: 1em; }
.doc-a4 .doc-date { font-size: 14.4pt; margin-bottom: 6px; }
.doc-a4 .doc-receiver { font-size: 18.48pt; font-weight: 700; line-height: 1.3; word-break: keep-all; }
.doc-a4 .doc-supplier img { max-height: 128px; width: auto; display: block; }
.doc-a4 .doc-table { width: 100%; border-collapse: collapse; font-size: 10pt; margin-bottom: 14px; }
.doc-a4 .doc-table th, .doc-a4 .doc-table td { border: 1px solid #000; padding: 6px 8px; text-align: left; }
.doc-a4 .doc-table thead th { background: #f6f6f6; font-weight: 700; text-align: center; }
.doc-a4 .doc-table .num { text-align: right; }
.doc-a4 .doc-table .center { text-align: center; }
.doc-a4 .doc-price-strike { text-decoration: line-through; }
.doc-a4 .doc-note-cell { vertical-align: top; font-size: 9pt; color: #c00; white-space: pre-line; }
.doc-a4 .doc-model-cell { font-weight: 700; }
.doc-a4 .doc-total-row { font-weight: 700; background: #f6f6f6; }
.doc-a4 .doc-giro-note-cell { font-size: 9pt; color: #555; background: #f9f9f9; }
.doc-a4 .doc-product-detail { margin-bottom: 16px; padding: 10px 0; border-bottom: 1px solid #e0e0e0; }
.doc-a4 .doc-product-detail-inner { display: flex; gap: 14px; align-items: flex-start; }
.doc-a4 .doc-product-img { flex: 0 0 118px; width: 118px; min-height: 98px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
.doc-a4 .doc-product-img img { max-width: 100%; max-height: 118px; object-fit: contain; }
.doc-a4 .doc-product-info { flex: 1; min-width: 0; font-size: 10pt; }
.doc-a4 .p-model { font-size: 14pt; font-weight: 700; }
.doc-a4 .p-name { font-size: 11pt; margin-bottom: 8px; }
.doc-a4 .p-spec { white-space: pre-wrap; line-height: 1.45; }
.doc-a4 .doc-common-memo { margin-top: 16px; padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 10pt; white-space: pre-wrap; }
.doc-a4 .doc-footer { margin-top: 24px; padding-top: 12px; border-top: 3px solid #0070c0; text-align: right; font-size: 11pt; }
.doc-a4 .company-name { font-weight: 700; }
.total { font-size: 1.2rem; }
.price-wrap { overflow-x: auto; }
.price-grid { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.price-grid th, .price-grid td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.price-grid th { color: var(--muted); font-weight: 600; }
.search { display: flex; gap: 8px; margin: 12px 0; align-items: center; }
.search input { flex: 1; }
.search select { max-width: 190px; }
.list.catalog li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
.list.catalog li.current { background: #f4efe4; }
.list.catalog a.model { display: block; font-weight: 700; color: inherit; text-decoration: none; }
.list.catalog .meta { display: block; margin-top: 4px; line-height: 1.45; }
.thumb { width: 56px; height: 56px; object-fit: contain; background: #f6f3ee; border: 1px solid var(--line); border-radius: 8px; }
.thumb.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.75rem; }
.product-page { display: flex; flex-direction: column; gap: 32px; }
.product-intro, .catalog-block, .product-copy, .sheet-block { display: flex; flex-direction: column; }
.product-intro { gap: 8px; }
.catalog-block { gap: 14px; }
.product-copy { gap: 8px; min-width: 0; }
.sheet-block { gap: 14px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.product-page h1, .product-intro p, .catalog-block > .muted, .sheet-block h2, .sheet-block p, .product-copy p { margin: 0; }
.product-page .search { margin: 0; }
.product-page .card, .product-page .list { margin: 0; }
.product-sheet { padding: 22px 24px 26px; }
details.product-sheet summary { cursor: pointer; font-weight: 700; }
details.product-sheet form { margin-top: 16px; }
.product-view { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 22px; align-items: center; }
.product-photo { width: 188px; height: 188px; object-fit: contain; background: #f6f3ee; border: 1px solid var(--line); border-radius: 12px; }
.product-title { font-size: 1.2rem; line-height: 1.35; }
.sheet-block h2 { font-size: 1.05rem; }
.sheet-block h3 { margin: 22px 0 0; font-size: 1rem; }
.price-model { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.price-model-name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; }
.price-model.is-current { background: #f4efe4; border-radius: 12px; padding: 12px 14px; }
.product-sheet .stack > button { align-self: flex-start; }
.product-sheet .price-grid { width: max-content; max-width: 100%; }
.product-sheet .price-grid th, .product-sheet .price-grid td { padding: 11px 22px 11px 0; }
.product-sheet .spec-grid th, .product-sheet .spec-grid td { padding: 11px 16px 11px 0; }
.source-url, .url-text { word-break: break-all; }
.diff { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-top: 10px; }
.diff th, .diff td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); word-break: break-word; }
.diff th { width: 24%; color: var(--muted); font-weight: 600; }
.change { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 14px 16px; margin: 0 0 12px; }
.change header { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.change .meta { display: block; }
.spec-grid { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-grid th, .spec-grid td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.spec-grid th { width: 34%; color: var(--muted); font-weight: 600; }
.spec-grid td { white-space: pre-wrap; word-break: break-word; }
.spec-shot { display: block; max-width: 100%; margin-top: 8px; border-radius: 8px; }
.log { max-height: 320px; overflow: auto; background: #1c1915; color: #f3efe6; padding: 12px; border-radius: 12px; white-space: pre-wrap; }
dialog { border: 0; border-radius: 16px; width: min(560px, calc(100% - 24px)); padding: 16px; }
dialog::backdrop { background: rgba(28, 25, 21, 0.45); }
.picker-list { max-height: 50vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.picker-item { text-align: left; background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: row; align-items: center; gap: 12px; }
.picker-item img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: var(--bg); flex: 0 0 64px; }
.picker-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prose { white-space: normal; }
.files { padding-left: 18px; }
.comment { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.pager { display: flex; gap: 12px; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .grid, .product-view, .form-row, .form-row.times { grid-template-columns: 1fr; }
  .product-sheet { padding: 16px; }
  .product-photo { width: min(188px, 100%); height: 188px; }
  .list.catalog li { grid-template-columns: 56px minmax(0, 1fr); }
  .list.catalog li form { grid-column: 2; }
}

.estimate {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: "Pretendard", "Malgun Gothic", sans-serif;
}
.estimate .quote-hero { display: flex; flex-direction: column; gap: 6px; padding: 4px 2px 2px; }
.estimate .quote-kicker { margin: 0; color: var(--accent); font-size: 0.82rem; letter-spacing: 0.12em; }
.estimate .quote-hero h1 { margin: 0; font-size: 1.85rem; letter-spacing: -0.045em; }
.estimate .quote-hero p { margin: 0; }
.estimate .quote-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 16px 20px;
  box-shadow: var(--shadow);
}
.estimate .quote-step { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.estimate .quote-step h2 { margin: 0; flex: 1; font-size: 1.12rem; letter-spacing: -0.03em; }
.estimate .quote-step > span {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: #f6f1e7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  flex: 0 0 44px;
}
.estimate .quote-fields, .estimate #rows { display: flex; flex-direction: column; gap: 14px; }
.estimate .quote-pair { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.estimate label { font-size: 0.86rem; gap: 7px; }
.estimate input, .estimate select, .estimate textarea {
  font-family: inherit;
  font-size: 16px;
  border-radius: 14px;
  padding: 13px 14px;
  min-height: 48px;
}
.estimate select {
  appearance: none;
  padding-right: 46px;
  background-color: var(--field);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6.2 8 10.2 12.5 6.2' fill='none' stroke='%231c1915' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
}
html[data-theme="night"] .estimate select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6.2 8 10.2 12.5 6.2' fill='none' stroke='%23f4efe6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.estimate textarea { min-height: 240px; line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; }
.estimate .quote-memo-label textarea { width: 100%; }
.estimate .giro-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.estimate .giro-switch label {
  position: relative;
  min-height: 52px;
  margin: 0;
  border: 1px solid #d9d0c2;
  border-radius: 14px;
  background: var(--field);
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.estimate .giro-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.estimate .giro-switch label:has(input:checked) {
  background: #6a635b;
  color: #f6f1e7;
  border-color: #6a635b;
}
.estimate .quote-block > .muted { margin: 12px 0 0; font-size: 0.9rem; line-height: 1.5; }
.estimate .product-row {
  margin: 0;
  padding: 0 14px 16px;
  border: 1px solid #d9d0c2;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(40, 32, 20, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.estimate .product-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 -14px;
  padding: 14px 16px;
  background: #efe8da;
  border-bottom: 1px solid var(--line);
}
.estimate .row-title { font-size: 1rem; }
.estimate .remove { min-height: 40px; padding: 8px 4px; }
.estimate .pick, .estimate #save-pdf, .estimate #save-image, .estimate .add-product {
  min-height: 48px;
  border-radius: 14px;
}
.estimate .pick {
  width: 100%;
  max-width: 100%;
  background: #3d342c;
  color: #f6f1e7;
  border: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 1px 2px rgba(40, 32, 20, 0.08);
}
.estimate .add-product {
  width: 100%;
  margin: 42px 0;
  padding: 22px 16px 20px;
  border: 1.5px dashed #b7ad9e;
  background: transparent;
  color: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.estimate .add-plus {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #1c1915;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
}
.estimate .step-note {
  font-style: normal;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
}
.estimate .picked-card { display: flex; flex-direction: column; gap: 8px; }
.estimate .picked-photo { width: 100%; max-height: 240px; object-fit: contain; background: var(--field); border: 1px solid var(--line); border-radius: 14px; }
.estimate .picked { margin: 0; color: var(--muted); line-height: 1.45; word-break: keep-all; }
.estimate .discount-hint { margin: 0; font-size: 0.86rem; }
.estimate .discount-applied { display: flex; flex-direction: column; gap: 8px; }
.estimate .applied-discount, .estimate .round-check {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--field);
  border: 1px solid var(--line);
}
.estimate .applied-discount { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.estimate .direct-form { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 8px; }
.estimate .direct-form .apply-direct { grid-column: 1 / -1; }
.estimate .final-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 34px;
  border-radius: 16px;
  background: #6a635b;
  color: #f6f1e7;
}
.estimate .final-box > span { font-size: 0.86rem; }
.estimate .money-line {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
}
.estimate .money-line input {
  width: 3ch;
  max-width: 100%;
  flex: 0 1 auto;
}
.estimate .won-suffix { font-weight: 700; line-height: 1; }
.estimate .final-box input.final {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  padding: 4px 0 8px;
  min-height: 52px;
}
.estimate .final-box .won-suffix { font-size: 1.55rem; }
.estimate .round-mini {
  position: absolute;
  right: 12px;
  bottom: 8px;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.82;
  cursor: pointer;
}
.estimate .round-mini input {
  width: 14px;
  height: 14px;
  min-height: 0;
  padding: 0;
  margin: 0;
}
.estimate .grand-total {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  padding: 18px 16px 14px;
  border-radius: 20px;
  background: #0f6e62;
  color: #f7fffc;
  box-shadow: 0 2px 6px rgba(40, 32, 20, 0.08);
}
.estimate .grand-total span { font-size: 1.02rem; letter-spacing: -0.02em; }
.estimate .grand-total input {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 2rem;
  letter-spacing: -0.04em;
  padding: 2px 0 4px;
  min-height: 56px;
}
.estimate .grand-total .won-suffix { font-size: 2rem; }
.estimate .save-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.estimate .save-actions button { width: 100%; margin: 0; }
.estimate .doc-frame { border-radius: 16px; margin-left: auto; margin-right: auto; background: #fff; }
#picker { width: min(560px, calc(100% - 24px)); }
#picker input { font-size: 16px; min-height: 48px; }
.picker-item { min-height: 72px; }
@media (max-width: 720px) {
  #picker {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
  }
  #picker .picker-list { max-height: none; flex: 1; }
  #picker form { min-height: 100%; }
}
html[data-theme="night"] body {
  background: var(--bg);
}
html[data-theme="night"] .top-nav a.active,
html[data-theme="night"] .estimate .quote-step > span,
html[data-theme="night"] .estimate .giro-switch label:has(input:checked) {
  background: #f4efe6;
  color: #1c1915;
}
html[data-theme="night"] .estimate .product-row { background: #1a1815; border-color: #4a433a; }
html[data-theme="night"] .estimate .product-head { background: #2c2823; }
html[data-theme="night"] .estimate .pick { background: #f4efe6; color: #1c1915; box-shadow: none; }
html[data-theme="night"] .estimate .add-plus { box-shadow: 0 0 0 1px #f4efe6; }
html[data-theme="night"] .estimate .final-box { background: #6a635b; color: #f6f1e7; }
html[data-theme="night"] .estimate .grand-total { background: #f4efe6; color: #1c1915; }
html[data-theme="night"] .primary,
html[data-theme="night"] a.primary { color: #10211e; }
html[data-theme="night"] .bottom { background: #0e0d0c; }
html[data-theme="night"] .bottom a { color: #f4efe6; }
