/* GAGU foundations. One source for color, type, spacing and component geometry. */
:root {
  --paper: #f6f3ed;
  --surface: #ffffff;
  --ink: #292d29;
  --muted: #62695f;
  --subtle: #eceee6;
  --line: #dddfd6;
  --control-line: #90968a;
  --brand: #4b5548;
  --brand-hover: #343e31;
  --brand-soft: #e9eee3;
  --warm: #e4ded2;
  --danger: #a43630;
  --focus: #657c44;
  --pending: #805218;
  --pending-bg: #fbf0dc;
  --assigned: #405c82;
  --assigned-bg: #eaf0f8;
  --transit: #346451;
  --transit-bg: #e8f2ec;
  --completed: #525e4c;
  --completed-bg: #edf0e9;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 28px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 12px 48px #252c241f;
  --page-width: 1320px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.6;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { transition: background-color .16s, border-color .16s, color .16s; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
svg, img { display: block; }
img { max-width: 100%; }
button svg { flex-shrink: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.35; word-break: keep-all; }
p { word-break: keep-all; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid #657c4433; outline-offset: 1px; }
main:focus { outline: none; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 150; padding: 12px 20px; border-radius: 6px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Site chrome */
.announcement { min-height: 34px; padding: 5px 32px; background: var(--brand); color: white; display: flex; align-items: center; justify-content: center; gap: 24px; font-size: 12px; }
.demo-badge { font-size: 11px; border-left: 1px solid #97a18e; padding-left: 24px; }
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--page-width); min-height: 88px; margin: auto; padding: 0 40px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand img { display: block; width: 164px; height: auto; }
#nav { display: flex; align-self: stretch; gap: 22px; align-items: stretch; flex: 1; }
.nav-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 2px; background: none; border: 0; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; min-height: 44px; }
.nav-button svg { display: none; }
.nav-button:hover, .nav-button.active { color: var(--brand); }
.nav-button.active:after { content: ""; position: absolute; bottom: 0; height: 3px; border-radius: 2px 2px 0 0; left: 0; right: 0; background: var(--brand); }
.nav-counter { font-size: 11px; min-width: 20px; padding: 0 5px; text-align: center; color: var(--brand); background: var(--brand-soft); border-radius: 4px; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
main { max-width: var(--page-width); margin: auto; padding: 0 40px 48px; }
.workspace-bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.workspace-path { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.workspace-path>span:first-child { font-size: 10px; letter-spacing: 1.1px; }
.workspace-path strong { font-weight: 500; }
.role-bar { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.segmented { display: flex; border: 1px solid var(--line); padding: 3px; gap: 3px; border-radius: 8px; background: var(--warm); }
.segmented button { border: 0; background: none; border-radius: 5px; padding: 6px 12px; min-height: 44px; font-size: 12px; font-weight: 600; }
.segmented button.active { color: var(--brand); background: #fff; box-shadow: 0 1px 3px #2b352418; }
#demo-partner { max-width: 130px; min-height: 44px; padding: 7px; background: white; border: 1px solid var(--control-line); border-radius: 6px; font-size: 12px; }

/* Shared actions. All primary controls have a minimum 44px target. */
.button, .icon-button, .text-button, .row-action, .page-controls button { min-height: 44px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid var(--control-line); background: white; color: var(--ink); font-size: 14px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.button:hover { background: var(--warm); }
.button.primary { color: white; background: var(--brand); border-color: var(--brand); }
.button.primary:hover { background: var(--brand-hover); }
.button.soft { background: var(--brand-soft); border-color: #b4bda9; color: var(--brand); }
.button.quiet { border-color: transparent; background: none; padding-inline: 10px; }
.button.quiet:hover { background: var(--paper); }
.button.small { font-size: 13px; padding: 9px 14px; }
.button.danger { background: var(--danger); border-color: var(--danger); color: white; }
.icon-button { width: 44px; display: grid; place-items: center; background: none; border: 1px solid transparent; border-radius: 50%; flex-shrink: 0; }
.icon-button:hover { background: var(--warm); }
.text-button { border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--brand); padding: 8px 0; display: inline-flex; align-items: center; gap: 10px; text-align: left; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #b6beae; }
.text-button:hover { text-decoration-color: currentColor; }
.text-button.muted { color: var(--muted); font-weight: 400; }

/* Editorial introduction */
.welcome { display: grid; grid-template-columns: 1.05fr 1fr; background: #e4ded2; border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.welcome-copy { padding: 34px 36px; }
.eyebrow { font-size: 10px; letter-spacing: 1.7px; font-weight: 650; color: var(--muted); margin: 0 0 12px; }
.welcome h1 { font-size: clamp(28px, 2.7vw, 38px); font-weight: 650; letter-spacing: -1.4px; margin: 0 0 16px; line-height: 1.4; }
.welcome-description { color: #50594b; font-size: 14px; line-height: 1.8; margin-bottom: 22px; }
.welcome-actions { display: flex; align-items: center; gap: 24px; }
.welcome-visual { position: relative; min-height: 290px; background: #e5e0d5; overflow: hidden; }
.welcome-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual-caption { position: absolute; bottom: 16px; right: 22px; font-size: 9px; letter-spacing: 2px; color: #4e5546; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 24px; scroll-margin-top: 110px; }
.page-heading .eyebrow { margin-bottom: 8px; }
#page-title { font-size: 28px; letter-spacing: -.8px; margin: 0 0 8px; font-weight: 650; }
#page-description { font-size: 14px; color: var(--muted); margin: 0; }
.heading-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; font-size: 12px; color: var(--muted); }
.local-note { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #637b50; }

/* Delivery overview */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 19px 22px; color: var(--ink); position: relative; }
.stat-card:hover { border-color: #8f9d80; background: #fcfdf9; }
.stat-card.selected { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: #f1f4ed; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.stat-title { font-size: 14px; font-weight: 600; }
.stat-icon { color: var(--muted); width: 30px; height: 30px; display: grid; place-items: center; }
.stat-number { font-size: 32px; line-height: 1.25; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.stat-unit { font-size: 13px; color: var(--muted); margin-left: 6px; }
.stat-description { font-size: 12px; margin: 7px 0 0; color: var(--muted); }
.stat-card.pending .stat-icon { color: var(--pending); }
.stat-card.assigned .stat-icon { color: var(--assigned); }
.stat-card.transit .stat-icon { color: var(--transit); }
.operations-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 26px 16px; }
.panel-heading h2 { font-size: 20px; font-weight: 650; margin: 0; letter-spacing: -.5px; display: flex; align-items: center; gap: 10px; }
.count-pill { background: var(--brand-soft); color: var(--brand); font-size: 12px; min-width: 26px; padding: 2px 7px; border-radius: 4px; text-align: center; letter-spacing: 0; font-weight: 600; }
.subtle-label { color: var(--muted); font-size: 12px; }
.filter-tabs { display: flex; align-items: stretch; gap: 28px; border-bottom: 1px solid var(--line); padding: 0 26px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.filter-tab { position: relative; display: flex; align-items: center; gap: 8px; min-height: 54px; white-space: nowrap; border: 0; background: none; padding: 12px 0; color: var(--muted); font-size: 14px; }
.filter-tab strong { font-size: 12px; font-weight: 500; }
.filter-tab.active { font-weight: 650; color: var(--brand); }
.filter-tab.active:after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--brand); }
.filters { padding: 20px 26px; display: flex; gap: 10px; }
.search-field { flex: 1; min-width: 160px; position: relative; }
.search-field svg { position: absolute; left: 15px; top: 15px; pointer-events: none; color: var(--muted); }
.search-field input { min-height: 46px; width: 100%; background: var(--paper); border: 1px solid var(--control-line); border-radius: var(--radius-sm); padding: 10px 12px 10px 43px; font-size: 14px; }
input::placeholder, textarea::placeholder { color: #6b7267; opacity: 1; }
.filters select { border: 1px solid var(--control-line); border-radius: var(--radius-sm); padding: 10px 30px 10px 12px; background: white; font-size: 13px; min-height: 46px; max-width: 170px; }
.table-scroll { overflow: auto; }
.table-scroll:focus-visible { outline-offset: -4px; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
thead { background: #f7f8f4; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
th { font-size: 12px; font-weight: 500; color: var(--muted); padding: 12px 14px; }
td { font-size: 13px; padding: 18px 14px; border-bottom: 1px solid #e8eae3; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 26px; }
th:last-child, td:last-child { padding-right: 26px; }
.order-row { cursor: pointer; }
.order-row:hover { background: #f9faf6; }
.order-row:last-child td { border-bottom: 0; }
.order-meta { display: flex; align-items: center; gap: 14px; }
.order-meta>div { min-width: 0; }
.product-icon { display: grid; place-items: center; width: 48px; height: 54px; border-radius: 8px; background: #efece2; color: #6c654e; flex-shrink: 0; }
.product-icon.bed { background: #e9edf0; color: #5e6b76; }
.product-icon.chair { background: #eaf0e4; color: #58664c; }
.product-icon.cabinet { background: #eee7e1; color: #7a5f4d; }
.order-id { font-size: 11px; letter-spacing: .2px; color: var(--muted); font-variant-numeric: tabular-nums; }
.product-link { display: block; font-size: 14px; font-weight: 600; color: var(--ink); background: none; border: 0; text-align: left; min-height: 44px; padding: 3px 0; max-width: 265px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.product-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.order-subline { font-size: 12px; color: var(--muted); }
.cell-strong { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.cell-secondary { font-size: 12px; color: var(--muted); max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.date-today { font-size: 10px; color: var(--brand); margin-left: 5px; background: var(--brand-soft); padding: 2px 4px; border-radius: 3px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 5px 8px; border-radius: 4px; white-space: nowrap; }
.status-badge:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-badge.pending { color: var(--pending); background: var(--pending-bg); }
.status-badge.assigned { color: var(--assigned); background: var(--assigned-bg); }
.status-badge.transit { color: var(--transit); background: var(--transit-bg); }
.status-badge.completed { color: var(--completed); background: var(--completed-bg); }
.row-action { font-size: 12px; padding: 8px 12px; border: 1px solid #a5b196; color: var(--brand); background: #f3f6ef; border-radius: var(--radius-sm); white-space: nowrap; font-weight: 600; }
.row-action:hover { background: var(--brand-soft); border-color: var(--brand); }
.row-action.neutral { background: white; border-color: var(--control-line); color: var(--muted); font-weight: 500; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 16px 26px; gap: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.page-controls { display: flex; align-items: center; gap: 6px; }
.page-controls button { display: grid; place-items: center; width: 44px; background: white; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.page-controls button:hover:not(:disabled) { background: var(--brand-soft); }
.page-indicator { min-width: 45px; text-align: center; color: var(--brand); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.empty svg { margin: 0 auto 16px; }
.empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 8px; }
.empty p { margin: 8px 0; }
.empty .button { margin-top: 12px; }

/* Secondary information: intentionally below the primary workflow. */
.right-column { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; align-items: stretch; }
.side-card { padding: 24px; }
.side-card h3 { font-size: 17px; margin: 0 0 6px; }
.side-card>p { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.partner-workload { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.partner-workload:last-child { border: 0; padding-bottom: 0; }
.partner-logo { display: grid; place-items: center; width: 38px; height: 40px; border-radius: 6px; color: #4c6265; background: #e9eff0; font-size: 12px; font-weight: 650; flex-shrink: 0; }
.partner-logo.tan { color: #715c3e; background: #f1eadd; }
.partner-logo.violet { color: #665977; background: #efeaf3; }
.partner-name { font-size: 14px; font-weight: 600; }
.partner-region { font-size: 12px; color: var(--muted); margin-top: 3px; }
.partner-load { margin-left: auto; font-size: 18px; font-weight: 600; white-space: nowrap; }
.partner-load small { font-size: 12px; font-weight: 400; }
.delivery-overview { display: flex; justify-content: space-between; align-items: baseline; margin: 32px 0 14px; gap: 10px; }
.delivery-overview strong { font-size: 42px; font-weight: 600; letter-spacing: -1px; color: var(--brand); }
.delivery-overview strong small { font-size: 22px; }
.delivery-overview>span { font-size: 12px; color: var(--muted); }
.progress-track { height: 7px; border-radius: 5px; background: #e2e7da; overflow: hidden; }
.progress-fill { height: 100%; background: #6c8158; border-radius: inherit; }
.overview-legend { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.tip-card { padding: 25px; border: 1px solid #d8dccd; background: #eaeee2; border-radius: var(--radius); position: relative; overflow: hidden; }
.tip-kicker { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); }
.tip-card h3 { font-size: 21px; letter-spacing: -.5px; margin: 16px 0 10px; }
.tip-card p { font-size: 13px; color: #515d47; margin-bottom: 6px; }
.tip-link { font-size: 13px; }
.tip-number { display: none; }
.partner-notice { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid #c4cdbb; background: var(--brand-soft); color: var(--brand); border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 24px; }
.partner-notice svg { flex-shrink: 0; }
.partner-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.partner-card { padding: 30px; }
.partner-card .partner-logo { width: 52px; height: 52px; font-size: 16px; margin-bottom: 24px; }
.partner-card h2 { font-size: 22px; margin-bottom: 10px; }
.partner-card p { font-size: 14px; color: var(--muted); line-height: 1.9; }
.partner-numbers { display: flex; gap: 48px; border-top: 1px solid var(--line); margin: 24px 0; padding-top: 20px; }
.partner-numbers strong { display: block; color: var(--brand); font-size: 30px; }
.partner-numbers small { font-size: 12px; color: var(--muted); }
.partner-card .button { width: 100%; }
.activity-list { padding: 0 26px; }
.activity-item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-dot { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.activity-item>div { min-width: 0; }
.activity-item strong { font-size: 14px; display: block; margin: 4px 0 6px; }
.activity-item p { font-size: 13px; margin: 0; color: var(--muted); }
.activity-link { font-size: 12px; overflow-wrap: anywhere; font-weight: 500; min-height: 44px; }
.activity-time { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; padding-top: 6px; }

/* Service guide and shipment lookup */
.service-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 36px; background: var(--warm); border-radius: var(--radius); margin-bottom: 32px; }
.service-intro h2 { font-size: 30px; letter-spacing: -1px; margin-bottom: 16px; }
.service-intro p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.service-intro img { width: 100%; height: auto; border-radius: var(--radius-sm); aspect-ratio: 1.58; object-fit: cover; }
.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-bottom: 40px; }
.service-card { padding: 28px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.service-card .service-symbol { color: var(--brand); width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); margin-bottom: 24px; }
.service-card h3 { font-size: 19px; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.service-card .service-number { font-size: 12px; color: var(--muted); display: block; margin-bottom: 8px; }
.guide-heading { font-size: 22px; margin-bottom: 16px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 0 4px; }
.faq-list summary { cursor: pointer; min-height: 64px; padding: 20px 0; font-weight: 500; font-size: 15px; }
.faq-list details p { max-width: 760px; font-size: 14px; color: var(--muted); padding-bottom: 14px; }
.lookup-search { display: flex; gap: 10px; margin-bottom: 20px; }
.lookup-search .search-field { min-width: 0; }
.lookup-results { max-height: 340px; overflow: auto; }
.lookup-result { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-top: 1px solid var(--line); background: white; padding: 16px 2px; min-height: 76px; }
.lookup-result:hover { background: var(--paper); }
.lookup-result>div { flex: 1; min-width: 0; }
.lookup-result strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.lookup-result small { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }

/* Forms, dialogs and detail drawers */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: #242b2359; backdrop-filter: blur(3px); padding: 24px; display: flex; align-items: center; justify-content: center; }
.modal { width: 660px; max-width: 100%; max-height: calc(100dvh - 48px); background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: auto; overscroll-behavior: contain; animation: appear .16s ease-out; }
.modal.narrow { width: 520px; }
.modal-header { padding: 26px 28px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.modal-header h2 { font-size: 24px; letter-spacing: -.6px; margin: 0 0 8px; }
.modal-header p { color: var(--muted); font-size: 13px; margin: 0; }
.modal-body { padding: 26px 28px; }
.modal-footer { border-top: 1px solid var(--line); padding: 18px 28px; display: flex; justify-content: flex-end; gap: 10px; background: #fcfcfa; position: sticky; bottom: 0; z-index: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.form-section-label { grid-column: 1/-1; font-size: 12px; font-weight: 650; letter-spacing: .4px; color: var(--brand); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1/-1; }
.field label { font-size: 14px; font-weight: 500; }
.required-mark { color: var(--brand); margin-left: 4px; }
.field input, .field select, .field textarea { min-width: 0; width: 100%; min-height: 46px; padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--control-line); background: #fff; font-size: 14px; }
.field textarea { min-height: 90px; resize: vertical; line-height: 1.7; }
.form-note { font-size: 12px; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; margin: 20px 0 0; }
.form-note svg { flex-shrink: 0; margin-top: 2px; }
.form-error { background: #fff0ec; color: #953c2b; border-left: 3px solid #ad5140; padding: 12px 16px; font-size: 14px; margin-bottom: 20px; border-radius: 4px; }
.partner-options { display: grid; gap: 12px; margin-bottom: 24px; }
.partner-option { border: 1px solid var(--control-line); border-radius: 8px; padding: 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; }
.partner-option:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.partner-option input { margin-left: auto; width: 20px; height: 20px; accent-color: var(--brand); flex-shrink: 0; }
.order-preview { padding: 16px; background: var(--paper); border-radius: 8px; margin-bottom: 24px; display: flex; align-items: center; gap: 14px; }
.order-preview strong { display: block; font-size: 15px; }
.order-preview p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.info-box { padding: 16px; font-size: 14px; color: #536049; background: var(--brand-soft); border-radius: 8px; margin-bottom: 22px; line-height: 1.8; }
.check-label { display: flex; align-items: center; gap: 10px; padding-block: 12px; min-height: 44px; margin-top: 14px; font-size: 14px; cursor: pointer; }
.check-label input { width: 20px; height: 20px; accent-color: var(--brand); flex-shrink: 0; }
.detail-backdrop { padding: 0; justify-content: flex-end; }
.detail-drawer { height: 100%; width: 510px; max-width: 100%; background: white; display: flex; flex-direction: column; overflow: auto; box-shadow: var(--shadow); overscroll-behavior: contain; }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.detail-header h2 { font-size: 24px; margin: 0; }
.detail-header .eyebrow { margin-bottom: 6px; }
.detail-content { padding: 28px; flex: 1; }
.detail-product { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.detail-product .product-icon { width: 64px; height: 70px; }
.detail-product h3 { font-size: 21px; margin: 0 0 8px; overflow-wrap: anywhere; }
.detail-product p { color: var(--muted); font-size: 13px; margin: 0; }
.detail-section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.detail-section h3 { font-size: 14px; margin: 0 0 18px; }
.detail-line { display: grid; grid-template-columns: 80px 1fr; gap: 16px; font-size: 14px; margin-bottom: 14px; }
.detail-line dt { color: var(--muted); }
.detail-line dd { margin: 0; overflow-wrap: anywhere; }
.memo-text { padding: 16px; background: var(--paper); border-radius: 8px; white-space: pre-wrap; font-size: 14px; color: #555e4f; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0 0 0 6px; margin: 0; }
.timeline li { position: relative; border-left: 1px solid #c5cebb; padding: 0 0 24px 22px; }
.timeline li:last-child { border-color: transparent; padding-bottom: 0; }
.timeline li:before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); border: 2px solid white; position: absolute; top: 5px; left: -5px; }
.timeline strong { font-size: 14px; display: block; font-weight: 600; }
.timeline p { font-size: 12px; color: var(--muted); margin: 6px 0 0; overflow-wrap: anywhere; }
.detail-footer { position: sticky; bottom: 0; background: white; border-top: 1px solid var(--line); padding: 18px 28px; display: flex; gap: 10px; }
.detail-footer .button { flex: 1; }
.complete-summary { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--brand); font-size: 14px; min-height: 44px; }
.help-step { display: flex; gap: 16px; margin-bottom: 26px; }
.help-step:last-child { margin-bottom: 0; }
.help-step>span { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); border-radius: 50%; font-weight: 600; }
.help-step strong { display: block; font-size: 16px; margin: 4px 0 8px; }
.help-step p { color: var(--muted); font-size: 14px; margin: 0; }
.demo-disclaimer { margin-top: 24px; padding: 16px; background: #f8f0e2; color: #755326; border-radius: 8px; font-size: 12px; line-height: 1.8; }
#toast { position: fixed; z-index: 120; bottom: 28px; left: 50%; transform: translate(-50%,12px); opacity: 0; pointer-events: none; background: var(--brand-hover); color: white; border-radius: 8px; box-shadow: var(--shadow); padding: 14px 22px; max-width: min(600px,calc(100% - 32px)); width: max-content; font-size: 14px; transition: opacity .15s,transform .15s; }
#toast.show { opacity: 1; transform: translate(-50%,0); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #e4ded2; padding: 40px max(40px,calc((100vw - 1240px)/2)) 24px; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-main .brand img { width: 184px; }
.footer-main p { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links .text-button { font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #d6d8cc; margin-top: 32px; padding-top: 20px; color: var(--muted); font-size: 11px; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Tablet: keep useful labels; allow table-local scrolling, never page overflow. */
@media (max-width: 1100px) {
  .header-inner { gap: 24px; padding-inline: 28px; }
  #nav { gap: 18px; }
  .header-actions { gap: 6px; }
  .header-actions .button { padding-inline: 12px; }
  main { padding-inline: 28px; }
  .welcome-copy { padding: 28px; }
  .welcome h1 { font-size: 30px; }
  .right-column { grid-template-columns: 1.2fr 1fr; }
  .tip-card { grid-column: 1/-1; }
  .tip-card h3 br { display: none; }
  .tip-card h3 { margin: 8px 0; }
  .tip-card p { margin-bottom: 0; }
  .partner-grid { gap: 16px; }
  .partner-card { padding: 22px; }
  .service-grid { gap: 16px; }
  .service-card { padding: 22px; }
}
@media (max-width: 850px) {
  .header-inner { flex-wrap: wrap; gap: 0 20px; padding-top: 14px; }
  .brand img { width: 148px; }
  .header-actions { margin-left: auto; }
  #nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: 14px; margin-top: 8px; }
  .nav-button { min-height: 48px; padding-inline: 8px; }
  .workspace-path { display: none; }
  .workspace-bar { justify-content: flex-end; }
  .welcome { grid-template-columns: 1.1fr 1fr; }
  .welcome h1 { font-size: 27px; }
  .welcome h1 br { display: none; }
  .welcome-copy { padding: 24px; }
  .welcome-description { font-size: 13px; }
  .welcome-description br { display: none; }
  .welcome-actions { gap: 12px; flex-wrap: wrap; }
  .welcome-actions .button { font-size: 13px; padding-inline: 16px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-title { font-size: 13px; }
  .stat-description { font-size: 11px; }
  .stat-number { font-size: 28px; }
  .heading-meta .local-note { display: none; }
  .partner-grid { grid-template-columns: 1fr; }
  .partner-card { display: grid; grid-template-columns: 60px 1fr auto; align-items: start; column-gap: 20px; }
  .partner-card .partner-logo { grid-row: 1/3; margin: 0; }
  .partner-card h2 { margin: 0 0 8px; }
  .partner-card p { grid-column: 2; margin-bottom: 0; }
  .partner-numbers { grid-column: 3; grid-row: 1/3; margin: 0; padding: 0; border: 0; gap: 24px; }
  .partner-card .button { grid-column: 2/4; margin-top: 22px; }
  .service-intro { padding: 28px; gap: 28px; }
  .service-intro h2 { font-size: 26px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { display: grid; grid-template-columns: 62px 1fr; gap: 0 20px; }
  .service-symbol { grid-row: 1/5; }
  .service-card>*:not(.service-symbol) { grid-column: 2; }
  .service-card .text-button { justify-self: start; }
  .site-footer { padding-inline: 28px; }
  .footer-main { align-items: flex-start; }
  .footer-links { gap: 8px 24px; max-width: 250px; }
}

/* Mobile: labeled bottom navigation, compact hero, readable order cards. */
@media (max-width: 600px) {
  .announcement { font-size: 10px; padding: 6px 16px; gap: 12px; min-height: 30px; }
  .demo-badge { font-size: 9px; padding-left: 12px; }
  .header-inner { min-height: 72px; padding: 10px 20px; flex-wrap: nowrap; }
  .brand img { width: 112px; }
  .header-actions { gap: 4px; }
  .header-actions .button { font-size: 12px; gap: 5px; min-height: 44px; }
  .header-actions .quiet { padding-inline: 8px; }
  .header-actions .quiet svg { width: 17px; }
  #nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; border-top: 1px solid var(--line); margin: 0; padding: 4px 12px max(4px,env(safe-area-inset-bottom)); height: calc(67px + env(safe-area-inset-bottom)); background: #fff; gap: 0; align-items: stretch; }
  .nav-button { flex: 1; flex-direction: column; font-size: 11px; padding: 5px 2px; gap: 3px; min-width: 0; min-height: 54px; }
  .nav-button svg { display: block; }
  .nav-button.active { background: #f0f3eb; border-radius: 7px; }
  .nav-button.active:after, .nav-counter { display: none; }
  main { padding: 0 20px 32px; }
  .workspace-bar { min-height: 72px; justify-content: flex-start; }
  .role-bar { gap: 8px; flex-wrap: wrap; padding-block: 12px; width: 100%; }
  .role-label { font-size: 11px; }
  .segmented { padding: 2px; gap: 2px; }
  .segmented button { min-height: 44px; padding-inline: 10px; font-size: 11px; }
  #demo-partner { margin-left: auto; flex: 1; max-width: 130px; font-size: 11px; }
  .welcome { grid-template-columns: 1fr; margin-bottom: 32px; }
  .welcome-copy { padding: 26px 24px 24px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .welcome h1 { font-size: 28px; letter-spacing: -1px; }
  .welcome h1 br { display: block; }
  .welcome-description { font-size: 13px; margin-bottom: 18px; }
  .welcome-description br { display: block; }
  .welcome-actions { gap: 22px; }
  .welcome-actions .button { min-height: 46px; }
  .welcome-visual { min-height: 0; height: 172px; }
  .welcome-visual img { object-position: center 61%; }
  .visual-caption { font-size: 8px; right: 14px; bottom: 10px; }
  .page-heading { gap: 12px; align-items: flex-start; margin-bottom: 20px; }
  #page-title { font-size: 24px; }
  #page-description { font-size: 13px; }
  .heading-meta { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
  .stat-card { padding: 16px; min-height: 126px; }
  .stat-top { margin-bottom: 4px; }
  .stat-title { font-size: 13px; }
  .stat-description { font-size: 11px; line-height: 1.6; }
  .stat-icon { width: 24px; height: 24px; }
  .stat-number { font-size: 30px; }
  .panel-heading { padding: 20px 18px 12px; }
  .panel-heading h2 { font-size: 18px; }
  .panel-heading>.subtle-label { display: none; }
  .filter-tabs { padding-inline: 18px; gap: 22px; }
  .filter-tab { min-height: 50px; font-size: 13px; gap: 6px; }
  .filters { padding: 16px 18px; flex-wrap: wrap; gap: 10px; }
  .search-field { min-width: 100%; }
  .filters select { flex: 1; min-width: 0; max-width: 100%; font-size: 12px; }
  .search-field input { font-size: 16px; }
  .search-field input::placeholder { font-size: 13px; }
  .table-scroll { overflow: visible; }
  table, tbody { display: block; white-space: normal; }
  thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .order-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px 8px; padding: 20px 18px; border-top: 1px solid var(--line); }
  .order-row td { display: block; padding: 0; border: 0; min-width: 0; }
  .order-row td:first-child, .order-row td:nth-child(2) { grid-column: 1/-1; padding: 0; }
  .order-row td:nth-child(2) { padding-left: 62px; }
  .order-row td:nth-child(3), .order-row td:nth-child(4) { border-top: 1px dashed var(--line); padding-top: 12px; }
  .order-row td:nth-child(3):before, .order-row td:nth-child(4):before { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
  .order-row td:nth-child(3):before { content: "배송 희망일"; }
  .order-row td:nth-child(4):before { content: "파트너"; }
  .order-row td:nth-child(5), .order-row td:nth-child(6) { align-self: center; }
  .order-row td:nth-child(6) { text-align: right; }
  .product-link { max-width: 100%; white-space: normal; min-height: 44px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
  .cell-secondary { max-width: 100%; white-space: nowrap; }
  .status-badge { font-size: 11px; }
  .row-action { font-size: 12px; }
  .pagination { padding: 12px 18px; font-size: 11px; gap: 8px; }
  .page-controls { gap: 2px; }
  .page-controls button { width: 40px; }
  .page-indicator { min-width: 34px; }
  .right-column { grid-template-columns: 1fr; gap: 16px; }
  .side-card, .tip-card { padding: 22px; }
  .tip-card { grid-column: auto; }
  .delivery-overview { margin-top: 22px; }
  .partner-notice { padding: 14px; font-size: 12px; align-items: flex-start; gap: 10px; }
  .partner-notice svg { margin-top: 2px; }
  .partner-card { display: block; padding: 24px; }
  .partner-card .partner-logo { margin-bottom: 20px; }
  .partner-numbers { border-top: 1px solid var(--line); margin: 20px 0; padding-top: 16px; }
  .partner-card .button { margin-top: 0; }
  .activity-list { padding-inline: 18px; }
  .activity-item { flex-wrap: wrap; gap: 12px; }
  .activity-item>div { flex: 1; min-width: calc(100% - 50px); }
  .activity-time { margin: -8px 0 0 48px; }
  .activity-item strong { font-size: 13px; }
  .activity-item p { font-size: 12px; }
  .service-intro { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .service-intro h2 { font-size: 26px; }
  .service-intro img { order: -1; }
  .service-intro p { font-size: 14px; }
  .service-card { display: block; padding: 24px; }
  .service-card .service-symbol { margin-bottom: 18px; }
  .faq-list summary { font-size: 14px; }
  .lookup-search { gap: 8px; }
  .lookup-search .search-field { min-width: 0; }
  .lookup-search .button { padding-inline: 14px; }
  .lookup-result .product-icon { display: none; }
  .lookup-result { gap: 8px; }
  .modal-backdrop { padding: 12px; }
  .modal { border-radius: 14px; max-height: calc(100dvh - 24px); }
  .modal-header { padding: 22px 20px 18px; }
  .modal-header h2 { font-size: 22px; }
  .modal-body { padding: 22px 20px; }
  .modal-footer { padding: 16px 20px; }
  .modal-footer .button { flex: 1; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .field input::placeholder, .field textarea::placeholder { font-size: 13px; }
  .partner-option { padding: 14px; gap: 10px; }
  .partner-option .partner-region { font-size: 11px; }
  .order-preview { padding: 14px; gap: 12px; }
  .check-label { font-size: 13px; align-items: flex-start; }
  .check-label input { margin-top: 1px; }
  .detail-backdrop { padding: 0; }
  .detail-drawer { width: 100%; }
  .detail-header, .detail-content { padding: 22px; }
  .detail-footer { padding: 16px 22px max(16px,env(safe-area-inset-bottom)); }
  .detail-line { grid-template-columns: 68px 1fr; gap: 12px; }
  .site-footer { padding: 32px 20px calc(100px + env(safe-area-inset-bottom)); }
  .footer-main { flex-direction: column; gap: 20px; }
  .footer-links { max-width: none; gap: 4px 22px; }
  .footer-bottom { flex-direction: column; gap: 8px; margin-top: 24px; font-size: 10px; }
  #toast { bottom: calc(82px + env(safe-area-inset-bottom)); font-size: 13px; padding: 12px 16px; }
}
@media (max-width: 360px) {
  .header-inner { padding-inline: 16px; column-gap: 12px; }
  .brand img { width: 96px; }
  .header-actions .button { padding-inline: 9px; }
  .header-actions .quiet svg { display: none; }
  main { padding-inline: 16px; }
  .welcome-copy { padding: 24px 20px; }
  .welcome h1 { font-size: 25px; }
  .welcome-description br { display: none; }
  .announcement { gap: 8px; font-size: 9px; padding-inline: 12px; }
  .demo-badge { padding-left: 8px; }
  .stat-card { padding: 14px; }
  .stat-description { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Auth uses the same GAGU brand tokens and never exposes the workspace before login. */
[hidden] { display:none !important; }
.auth-shell { min-height:100dvh; display:grid; place-items:center; padding:32px 20px; background:#f6f3ed; }
.auth-card { width:100%; max-width:480px; background:white; padding:48px; border:1px solid #e4ded2; border-radius:8px; }
.auth-card>img { width:184px; height:auto; margin-bottom:36px; }
.auth-card h1 { font-size:26px; line-height:1.5; margin:12px 0; }
.auth-card>p { line-height:1.8; }
.auth-form { display:grid; gap:12px; margin:28px 0 18px; }
.auth-form input { width:100%; min-height:48px; border:1px solid #888e84; border-radius:4px; padding:12px; font:inherit; }
.auth-form .button { width:100%; }
.auth-message { font-size:14px; line-height:1.7; overflow-wrap:anywhere; }
.auth-card .form-note { margin-top:28px; }
.role-bar { flex-wrap:wrap; }
#account-label { overflow-wrap:anywhere; }
@media(max-width:540px) { .auth-card { padding:28px 22px; } .auth-card h1 { font-size:22px; } .role-bar { justify-content:flex-end; } #account-label { display:block; font-size:11px; } }
.order-id { white-space:normal; overflow-wrap:anywhere; max-width:245px; }
.order-meta>div, .order-preview>div { min-width:0; }
.detail-header .eyebrow, .order-preview p, .lookup-result small { overflow-wrap:anywhere; }
.status-badge.cancelled { background:#f4e9e6; color:#843f30; }
.stat-card.cancelled .stat-icon { color:#843f30; background:#f4e9e6; }
.detail-footer { flex-wrap:wrap; }
.history-change { padding:8px 10px; background:var(--paper); border-radius:4px; }
@media(min-width:1101px) { .stats-grid { grid-template-columns:repeat(5,minmax(0,1fr)); } }
