:root {
  color-scheme: light;
  --ink: #142142;
  --muted: #556481;
  --soft: #eef2fa;
  --line: #dce3f0;
  --blue: #365cf5;
  --deep-blue: #2446ca;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #f5f7fc;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon, .logo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid #e8edf6; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 800; letter-spacing: -1.15px; }
.brand-accent { color: var(--blue); }
.logo { display: grid; place-items: center; background: var(--blue); width: 36px; height: 36px; border-radius: 10px; color: white; box-shadow: 0 4px 9px #355af634; }
.logo svg { width: 22px; height: 22px; }
.language { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--muted); font-size: 13px; font-weight: 650; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; }
.language .icon { width: 17px; height: 17px; }
.language:hover { color: var(--deep-blue); }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 235px; margin-block: 22px 19px; border: 1px solid #dce5fc; border-radius: 24px; overflow: hidden; background: radial-gradient(ellipse at 82% 51%, #dbe4ff 0%, transparent 59%), linear-gradient(110deg, #eef3ff, #e7edff); }
.hero-copy { padding: 23px 50px 25px; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid #d5dffd; border-radius: 999px; background: #ffffff9e; color: #324eaf; font-size: 11px; font-weight: 750; letter-spacing: .01em; }
.eyebrow > span:first-child, .view-label > span:first-child { width: 6px; height: 6px; border-radius: 50%; background: #5172ff; }
h1, h2, p { margin: 0; }
h1 { margin: 10px 0 12px; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; font-weight: 850; letter-spacing: -.063em; }
.hero p { font-size: 15px; line-height: 1.68; color: #435677; font-weight: 530; letter-spacing: -.025em; }
.hero-art { position: absolute; width: min(44%, 405px); right: 6%; top: 50%; transform: translateY(-50%); }
.hero-art svg { width: 100%; display: block; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 20px; align-items: start; }
.panel { background: white; border: 1px solid #e0e6f1; border-radius: 19px; padding: 24px; min-width: 0; box-shadow: 0 6px 21px #25386b09; }
.panel-heading { display: flex; align-items: center; gap: 11px; }
.panel-heading h2 { font-size: 21px; letter-spacing: -.052em; line-height: 1.25; }
.step-icon { display: grid; place-items: center; flex: none; width: 43px; height: 43px; border-radius: 12px; color: #3457dd; background: #edf1ff; }
.step-icon.mint { color: #117e65; background: #e4f7ef; }
.step { color: #4e66ba; font-size: 10px; font-weight: 800; letter-spacing: .13em; margin-bottom: 3px; }
.mint + div .step { color: #247964; }
.panel-note { font-size: 13px; color: var(--muted); margin: 12px 0 14px; line-height: 1.5; }
.text-button { border: 0; border-radius: 7px; background: #f0f3ff; color: var(--deep-blue); padding: 8px 10px; font-weight: 700; font-size: 12px; }
.text-button:hover { background: #e5ebff; }
.sample-button, .status-badge { margin-left: auto; }
#items { display: grid; gap: 9px; }
.item-card { --item-color: #5875f6; min-width: 0; border: 1px solid #e4e9f3; border-radius: 12px; background: #f9faff; padding: 9px 11px 10px; }
.item-heading { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 3px; flex: none; background: var(--item-color); }
.name-input { font-size: 13px; font-weight: 750; background: transparent; border: 1px solid transparent; border-radius: 5px; min-width: 0; flex: 1; padding: 3px 4px; color: var(--ink); }
.name-input:hover, .name-input:focus { border-color: var(--line); background: #fff; }
.upright { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 11px; color: #435473; cursor: pointer; }
.upright input { width: 14px; height: 14px; margin: 0; accent-color: var(--blue); }
.delete { display: grid; place-items: center; border: 0; background: none; color: #62718d; border-radius: 6px; width: 27px; height: 27px; }
.delete:hover:not(:disabled) { color: #ac2d48; background: #ffedf1; }
.delete:disabled { opacity: .38; cursor: default; }
.delete .icon { width: 16px; height: 16px; }
.item-fields { display: grid; grid-template-columns: 1fr 1fr 1fr .76fr; gap: 7px; }
.item-fields label { display: grid; gap: 4px; min-width: 0; font-size: 10px; font-weight: 650; color: #506180; }
.measure { display: flex; align-items: center; min-width: 0; border: 1px solid #dce3f1; background: white; border-radius: 7px; padding-right: 7px; }
.measure:focus-within { border-color: #6e87ff; }
.measure input { width: 100%; min-width: 0; height: 33px; background: transparent; color: var(--ink); border: 0; padding: 5px 4px 5px 7px; font-size: 13px; font-weight: 650; appearance: textfield; }
.measure input::-webkit-inner-spin-button, .measure input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.measure input:focus { outline: none; }
.measure span { font-size: 10px; color: #62718d; white-space: nowrap; }
.measure:has([aria-invalid="true"]) { border-color: #b22242; background: #fff6f7; }
.add-button { width: 100%; margin-top: 9px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #b9c8f1; color: var(--deep-blue); border-radius: 8px; background: #f8faff; padding: 8px; font-size: 12px; font-weight: 750; }
.add-button:hover:not(:disabled) { background: #edf2ff; }
.add-button:disabled { opacity: .55; cursor: default; }
.add-button .icon { width: 16px; height: 16px; }
.padding-setting { margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0f6; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.setting-row label { font-size: 13px; font-weight: 750; }
.setting-row p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.setting-row .measure { width: 77px; flex: none; }
.setting-row select { flex: none; width: 77px; min-height: 35px; padding: 4px 7px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 13px; font-weight: 700; }
.setting-row select[aria-invalid="true"] { border-color: #b22242; }
.recommendation-controls { display: grid; gap: 10px; margin-top: 14px; }
.error { color: #a62c49; font-size: 12px; }
.form-panel .error { margin-top: 10px; }
.primary { display: flex; justify-content: center; align-items: center; gap: 9px; width: 100%; min-height: 45px; padding: 9px; border: 0; border-radius: 9px; background: var(--blue); color: white; font-size: 14px; font-weight: 760; box-shadow: 0 4px 10px #375cf52a; }
.primary:hover:not(:disabled) { background: #2c4fe2; }
.primary:disabled { cursor: wait; opacity: .75; }
.primary .icon { width: 17px; height: 17px; }
.status-badge { flex: none; color: #157658; background: #e9f8ef; border-radius: 999px; padding: 6px 9px; font-size: 10px; font-weight: 750; }
.result-empty { display: grid; min-height: 175px; place-content: center; justify-items: center; gap: 8px; text-align: center; margin-top: 14px; padding: 22px 16px; border: 1px dashed #d7e2fa; border-radius: 13px; background: radial-gradient(ellipse, #fcfdff, #f4f7ff); }
.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: #4e69d9; background: #e8eeff; margin-bottom: 4px; }
.empty-icon .icon { width: 27px; height: 27px; }
.result-empty strong { font-size: 15px; }
.result-empty p, .box-switcher p { font-size: 12px; color: var(--muted); line-height: 1.55; }
.box-switcher { margin-top: 14px; padding: 10px; border-radius: 10px; border: 1px solid #e2e8f5; background: #f7f9ff; }
#box-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
#box-options button { display: flex; align-items: center; gap: 6px; padding: 7px 9px; min-height: 34px; border: 1px solid #dce3f1; border-radius: 7px; color: #425572; background: #fff; font-size: 12px; }
#box-options button small { font-size: 10px; }
#box-options button[aria-pressed="true"], #box-options button:hover { border-color: #7590fb; background: #edf1ff; color: var(--deep-blue); }
.result-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 9px; background: #f0f3fb; }
.result-modes button { padding: 7px 4px; min-height: 34px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; }
.result-modes button[aria-pressed="true"] { border-color: #dbe3f6; background: #fff; color: var(--deep-blue); box-shadow: 0 1px 3px #283c7310; }
.result-modes button:hover { color: var(--deep-blue); }
.postal-card { display: grid; gap: 4px; margin-top: 10px; padding: 10px; border: 1px solid #dce6ff; border-radius: 8px; background: #f5f8ff; color: #304f9d; }
.postal-card > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; }
.postal-card strong { font-size: 14px; }
.postal-card p { font-size: 11px; line-height: 1.5; }
.postal-card.no-match { color: #744b19; border-color: #f1e2c8; background: #fff9ef; }
#result-heading { scroll-margin-top: 16px; }
.metrics { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 14px; margin: 17px 0 13px; }
.dimensions, .efficiency { display: flex; flex-direction: column; }
.dimensions > span, .efficiency > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.dimensions strong { display: block; font-size: clamp(24px, 2.9vw, 39px); line-height: 1.15; letter-spacing: -.065em; margin-top: 3px; overflow-wrap: anywhere; }
.dimensions strong small { font-size: .43em; color: var(--muted); font-weight: 750; letter-spacing: 0; }
.dimensions > small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.efficiency { align-items: end; margin-left: auto; align-self: center; }
.efficiency strong { color: #117859; font-size: 22px; letter-spacing: -.05em; line-height: 1.2; margin: 2px 0 3px; }
meter { width: 65px; height: 6px; appearance: none; }
meter::-webkit-meter-bar { background: #e4efe9; border: 0; }
meter::-webkit-meter-optimum-value { background: #3ab38a; }
meter::-moz-meter-bar { background: #3ab38a; }
.affiliate-note { margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.55; }
.box-search { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-bottom: 12px; }
.box-search .icon { width: 15px; height: 15px; transform: rotate(-35deg); }
.preview { position: relative; height: clamp(225px, 24vw, 290px); border: 1px solid #e0e7f9; border-radius: 13px; overflow: hidden; background: radial-gradient(ellipse at 50% 43%, #fcfdff 0%, #edf2ff 82%); }
.preview::before { content: ""; position: absolute; inset: 0; opacity: .5; background: radial-gradient(circle, #afbee9 1px, transparent 1px) 1px 1px / 16px 16px; mask-image: radial-gradient(ellipse, #000 15%, transparent 86%); pointer-events: none; }
.view-label { display: flex; align-items: center; gap: 5px; position: absolute; z-index: 1; top: 10px; left: 10px; border: 1px solid #e5eafa; border-radius: 6px; padding: 4px 6px; background: #ffffffdb; color: #415684; font-size: 10px; font-weight: 750; pointer-events: none; }
.view-label > span:first-child { width: 5px; height: 5px; }
canvas { position: relative; display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; outline-offset: -3px; }
canvas:active { cursor: grabbing; }
.view-tools { display: grid; gap: 3px; padding: 3px; border: 1px solid #e1e8f7; border-radius: 8px; background: white; position: absolute; right: 8px; bottom: 8px; }
.view-tools button { display: grid; place-items: center; border: 0; border-radius: 4px; width: 27px; height: 25px; background: white; color: #465a8b; }
.view-tools button:hover { background: #eef2ff; color: var(--deep-blue); }
.view-tools .icon { width: 15px; height: 15px; }
.view-help { position: absolute; bottom: 8px; left: 10px; pointer-events: none; font-size: 10px; color: #475b84; }
.preview-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-block: 10px; }
.legend { display: flex; gap: 5px; flex-wrap: wrap; flex: 1 1 155px; }
.preview-actions > button { margin-left: auto; }
.packing-steps { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; margin-bottom: 10px; border-radius: 8px; border: 1px solid #dce5f7; background: #f6f8ff; }
.packing-steps p { padding-inline: 5px; text-align: center; overflow-wrap: anywhere; color: #354b83; font-size: 12px; font-weight: 700; }
.packing-steps button { display: grid; place-items: center; min-height: 32px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--deep-blue); }
.packing-steps button:hover:not(:disabled) { background: #e5ebff; }
.packing-steps button:disabled { opacity: .35; cursor: default; }
.packing-steps .icon { width: 15px; height: 15px; }
.legend button { display: flex; align-items: center; gap: 5px; max-width: 100%; padding: 5px 7px; border: 1px solid #e6eaf3; border-radius: 6px; background: white; color: #445574; font-size: 10px; font-weight: 700; }
.legend button:hover, .legend button[aria-pressed="true"] { border-color: var(--item-color); background: #f0f3ff; color: var(--ink); }
.legend .swatch { width: 7px; height: 7px; }
.legend-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.packing-guide { border-top: 1px solid #edf0f6; }
summary { display: flex; align-items: center; gap: 7px; list-style: none; }
summary::-webkit-details-marker { display: none; }
.packing-guide summary { padding-block: 9px; font-size: 12px; font-weight: 750; }
.packing-guide summary .icon { width: 15px; height: 15px; color: #4d63a3; }
.chevron { margin-left: auto; }
details[open] > summary .chevron { transform: rotate(180deg); }
.placement-scroll { max-height: 242px; overflow: auto; padding: 4px 2px 5px; }
.placement-note { color: var(--muted); font-size: 11px; line-height: 1.5; margin-bottom: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 11px; text-align: left; }
th, td { padding: 7px 4px; border-bottom: 1px solid #e8ecf5; overflow-wrap: anywhere; }
th { color: var(--muted); background: #f7f9fe; }
.result-note { color: var(--muted); font-size: 11px; line-height: 1.55; }
.guide { padding: 40px 0 42px; scroll-margin-top: 16px; }
.guide h2 { margin-top: 5px; font-size: 26px; letter-spacing: -.05em; }
.questions { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 9px; margin-top: 14px; }
.questions details { background: #fff; border: 1px solid #e1e7f1; border-radius: 10px; }
.questions summary { padding: 13px; font-size: 13px; font-weight: 700; }
.questions .icon { width: 16px; height: 16px; color: #516592; }
.questions p { color: var(--muted); padding: 0 13px 13px; font-size: 12px; line-height: 1.65; }
.source-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.source-links a { color: var(--deep-blue); text-decoration: underline; text-underline-offset: 2px; }
footer { border-top: 1px solid #e1e7f1; }
.footer-inner { min-height: 66px; }
.footer-brand { font-size: 16px; letter-spacing: -.55px; }
.footer-brand .logo { width: 25px; height: 25px; border-radius: 6px; }
.footer-brand svg { width: 16px; height: 16px; }
@media (max-width: 830px) {
  .shell { width: calc(100% - 34px); }
  .hero { min-height: 207px; }
  .hero-copy { padding-inline: 28px; }
  .hero-art { right: 1%; width: 46%; }
  .workspace { gap: 12px; }
  .panel { padding: 15px; }
}
@media (max-width: 650px) {
  .header-inner { min-height: 58px; }
  .brand { font-size: 20px; }
  .logo { width: 31px; height: 31px; }
  .hero { min-height: 160px; margin-block: 13px 12px; border-radius: 16px; }
  .hero-copy { padding: 16px 15px; }
  h1 { font-size: clamp(30px, 7vw, 43px); }
  .hero p { font-size: 12px; max-width: 233px; }
  .hero-art { width: 42%; right: -6%; top: 31%; opacity: .52; }
  .workspace, .questions { grid-template-columns: 1fr; }
  .panel { border-radius: 14px; }
  .preview { height: 246px; }
  .result-empty { min-height: 169px; }
  .view-tools button, .packing-steps button { min-height: 36px; }
  .guide { padding-block: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
