:root {
  --blue: #0061ff; --blue-hover: #004fd1; --blue-soft: #eaf1ff;
  --ink: #202329; --muted: #59616e; --subtle: #f5f6f8; --surface: #fff;
  --line: #e4e7ec; --control: #b9c1ce; --dark: #1e1c1a;
  --warning-bg: #fff4d2; --warning-ink: #795200; --danger: #b42318;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--surface); }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: #c7dcff; color: #102746; }
.icon, .feature-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon use, .feature-icon use { pointer-events: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #111; padding: 12px; border: 2px solid var(--blue); }
.skip:focus { left: 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; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 720; letter-spacing: -.055em; line-height: 1; white-space: nowrap; }
.brand-logo { display: grid; place-items: center; width: 36px; height: 36px; background: var(--blue); color: #fff; }
.brand-logo svg { width: 25px; height: 25px; fill: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; border: 1px solid transparent; border-radius: 6px; padding: 10px 15px; font-size: 13px; font-weight: 650; line-height: 1.25; transition: background .16s, border-color .16s, transform .16s; white-space: nowrap; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-hover); }
.btn-secondary { background: #fff; border-color: #cdd3dd; color: #303846; }
.btn-secondary:hover:not(:disabled) { background: #f0f3f8; border-color: #aeb8c6; }
.btn-danger { background: #fff; border-color: #e3b5af; color: var(--danger); }
.btn-danger:hover { background: #fff0ed; }
.btn-light { background: #fff; color: #202329; }
.btn-light:hover { background: #e6edfa; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.button-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 13px; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.muted { color: var(--muted); }
/* Public website. The split composition follows the selected Dropbox page. */
.site-header { height: 76px; padding: 0 36px; display: flex; align-items: center; gap: 46px; background: #fff; position: relative; z-index: 30; }
.site-links { display: flex; gap: 30px; align-items: center; font-size: 14px; font-weight: 550; }
.site-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.header-cta { margin-left: auto; border-radius: 0; min-height: 46px; padding: 12px 20px; }
.site-mobile-menu { display: none; }
.landing-hero { display: grid; grid-template-columns: minmax(350px, .86fr) minmax(530px, 1.24fr); min-height: 660px; }
.hero-message { background: var(--dark); color: #fff; padding: 65px clamp(30px,4.2vw,74px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-message h1 { font-size: clamp(51px,5.4vw,78px); letter-spacing: -.065em; font-weight: 570; line-height: 1.02; margin: 0 0 27px; }
.hero-message > p { color: #e0dedc; font-size: 18px; line-height: 1.6; max-width: 370px; margin: 0 0 35px; }
.hero-button { background: var(--blue); color: #fff; min-height: 62px; padding: 18px 23px; font-size: 15px; justify-content: space-between; width: 100%; max-width: 370px; border-radius: 0; }
.hero-button:hover { background: #397fff; }
.hero-button .icon { width: 21px; height: 21px; transition: transform .18s; }
.hero-button:hover .icon { transform: translateX(4px); }
.hero-guide { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; margin-top: 21px; text-decoration: underline; text-underline-offset: 4px; }
.hero-guide .icon { width: 16px; height: 16px; }
.hero-message > .hero-meta { margin: 42px 0 0; font-size: 12px; color: #b9b7b4; }
.hero-product { background: var(--blue); padding: 40px clamp(24px,4vw,64px) 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.calculator-window { width: 100%; max-width: 542px; background: #fff; border-radius: 12px; overflow: hidden; color: var(--ink); }
.calc-top { padding: 16px 22px; display: flex; justify-content: space-between; gap: 10px; align-items: center; background: #f6f7f9; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 650; }
.calc-top > span { display: inline-flex; align-items: center; gap: 8px; }
.calc-top .icon { width: 17px; height: 17px; color: #59616e; }
.live-label { color: #4b5667; font-size: 11px; font-weight: 500; }
.live-label > span { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.calc-body { padding: 24px; }
.calc-body h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.04em; font-weight: 650; margin: 0 0 8px; }
.calc-body > p { font-size: 12px; margin: 0; color: var(--muted); }
.stock-slider { margin: 26px 0; }
.stock-slider label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.stock-slider output { color: var(--blue); font-variant-numeric: tabular-nums; }
.stock-slider input { accent-color: var(--blue); width: 100%; min-height: 28px; margin: 0; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.calc-request-head, .calc-request { display: grid; grid-template-columns: 1fr 90px 60px; align-items: center; gap: 14px; }
.calc-request-head { color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.calc-request-head span:last-child { text-align: right; }
.calc-request { padding: 12px 0; border-bottom: 1px solid #eef0f4; font-size: 13px; }
.calc-request input { width: 70px; padding: 8px 9px; border: 1px solid var(--control); border-radius: 5px; min-height: 38px; color: var(--ink); background: #fff; }
.calc-request strong { text-align: right; color: var(--blue); font-size: 21px; font-weight: 650; }
.calc-result { margin-top: 20px; padding: 17px; background: #eef4ff; border-radius: 6px; }
.calc-result > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; }
.calc-result strong { color: #153c80; }
progress { width: 100%; height: 6px; border: 0; border-radius: 4px; appearance: none; background: #dce3ed; accent-color: var(--blue); overflow: hidden; }
progress::-webkit-progress-bar { background: #dce3ed; }
progress::-webkit-progress-value { background: var(--blue); transition: width .22s ease; }
progress::-moz-progress-bar { background: var(--blue); }
.calc-result progress { margin-top: 12px; }
.calc-result p { font-size: 11px; margin: 7px 0 0; color: #344f78; }
.calc-body > .calc-caption { font-size: 11px; margin-top: 16px; line-height: 1.6; }
.product-caption { color: #fff; font-size: 12px; text-align: center; margin: 19px 0 0; }
.section-wrap { width: min(1260px,calc(100% - 96px)); margin: 0 auto; }
.workflow-section { padding: 95px 0; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.section-intro h2, .ownership-section h2, .site-cta h2 { font-size: clamp(34px,3.6vw,51px); font-weight: 570; letter-spacing: -.055em; line-height: 1.1; margin: 0; }
.section-intro > p { max-width: 350px; margin: 0 0 3px; font-size: 16px; color: #4c535f; line-height: 1.7; }
.workflow-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 64px; }
.workflow-link { display: block; padding: 15px 0; }
.feature-icon { width: 28px; height: 28px; color: var(--blue); margin-bottom: 23px; }
.workflow-link h3 { font-size: 21px; letter-spacing: -.035em; font-weight: 650; margin: 0 0 10px; }
.workflow-link p { font-size: 15px; line-height: 1.7; color: #4c535f; margin: 0 0 24px; }
.workflow-link > span { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-size: 14px; font-weight: 600; }
.workflow-link:hover > span .icon { transform: translateX(4px); }
.workflow-link .icon { transition: transform .18s; }
.ownership-section { background: #f1f3f7; padding: 86px 0; }
.ownership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; }
.ownership-grid > div > p { max-width: 470px; font-size: 17px; color: #4b5361; line-height: 1.7; margin: 25px 0; }
.ownership-grid .btn { background: var(--ink); color: #fff; padding: 15px 20px; }
.data-story { display: grid; gap: 28px; }
.data-story > div { display: flex; align-items: flex-start; gap: 20px; }
.data-story .icon { color: var(--blue); margin-top: 2px; width: 23px; height: 23px; }
.data-story strong { font-size: 17px; letter-spacing: -.025em; }
.data-story p { font-size: 14px; line-height: 1.7; margin: 6px 0 0; color: #505865; }
.faq-section { padding: 88px 0; display: grid; grid-template-columns: 1fr 1.15fr; gap: 95px; }
.faq-section .section-intro { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 30px; margin: 0; }
.faq-list details { border-bottom: 1px solid #d9dee6; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 16px; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list .icon { transition: transform .2s; }
.faq-list p { font-size: 14px; color: #4d5563; line-height: 1.8; margin: 0 0 24px; }
.site-cta { background: var(--blue); color: #fff; padding: 70px 0; }
.site-cta > div { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.site-cta .btn { min-height: 56px; border-radius: 0; padding: 17px 22px; font-size: 14px; }
.site-footer { padding-top: 42px; padding-bottom: 24px; }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-top p { font-size: 13px; color: #4c5564; }
.footer-top nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.footer-top a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-wordmark { color: var(--blue); font-size: clamp(52px,14vw,190px); line-height: 1.4; font-weight: 620; letter-spacing: -.075em; display: block; }
.footer-bottom { color: #5a6370; font-size: 12px; }
/* Workspace: neutral shell, compact navigation, actionable tables. */
.app-body { background: var(--subtle); }
.app-shell { min-height: 100vh; }
.sidebar { width: 228px; position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column; background: #f5f6f8; border-right: 1px solid #dce1e9; padding: 23px 14px 15px; }
.sidebar .brand { font-size: 21px; padding: 0 5px; gap: 9px; }
.sidebar .brand-logo { width: 29px; height: 29px; border-radius: 4px; }
.sidebar .brand-logo svg { width: 23px; height: 23px; }
.workspace-scope { display: flex; align-items: center; gap: 10px; margin: 31px 5px 22px; padding: 11px; border: 1px solid #d9dfe8; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 600; }
.workspace-scope .icon { color: #596779; }
.workspace-scope small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; font-size: 11px; }
.side-nav { display: grid; gap: 3px; }
.nav-link { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 10px 12px; border: 0; border-radius: 5px; color: #4f5763; font-size: 13px; font-weight: 550; background: transparent; text-align: left; }
.nav-link .icon { width: 17px; height: 17px; }
.nav-link:hover { background: #e9ecf1; color: #202329; }
.nav-link.active { color: #161c26; background: #e2e6ed; font-weight: 650; }
.nav-count { margin-left: auto; font-size: 11px; font-weight: 600; }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.device-status { display: flex; align-items: center; gap: 10px; padding: 18px 10px 2px; font-size: 11px; color: #4d5766; }
.device-status .icon { width: 16px; height: 16px; }
.device-status small { display: block; font-size: 10px; margin-top: 3px; color: #677180; }
.app-main { margin-left: 228px; min-height: 100vh; background: #fff; }
.app-main:focus { outline: none; }
.app-top { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 30px; border-bottom: 1px solid var(--line); font-size: 12px; color: #5a6370; }
.app-top > div, .app-top > a { display: flex; align-items: center; gap: 10px; }
.app-top .icon { width: 16px; height: 16px; }
.app-top .breadcrumb-arrow { transform: rotate(-90deg); width: 12px; height: 12px; color: #7a8290; }
.app-top strong { font-weight: 600; color: #2f3743; }
.app-content { max-width: 1360px; margin: 0 auto; padding: 32px 36px 64px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.page-heading h1 { font-size: 29px; line-height: 1.2; letter-spacing: -.045em; margin: 0 0 7px; font-weight: 650; }
.page-heading p { font-size: 13px; color: var(--muted); margin: 0; max-width: 620px; }
.panel { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 21px; border-bottom: 1px solid #ecf0f4; font-size: 12px; }
.panel-heading h2 { font-size: 14px; font-weight: 650; letter-spacing: -.015em; margin: 0; }
.count-label { color: #576174; font-weight: 400; margin-left: 7px; }
.stats-strip { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: 8px; padding: 22px 0; margin-bottom: 24px; }
.stats-strip > div { padding: 0 25px; border-right: 1px solid var(--line); }
.stats-strip > div:last-child { border-right: 0; }
.stats-strip span { display: block; color: #566070; font-size: 12px; }
.stats-strip strong { display: block; color: #202329; font-size: 30px; line-height: 1.2; font-weight: 550; letter-spacing: -.035em; margin: 8px 0; font-variant-numeric: tabular-nums; }
.stats-strip small { color: #596577; display: block; font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.activity-panel { margin-top: 22px; }
.compact-list { padding: 0 21px; }
.compact-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 0; border-bottom: 1px solid #edf0f4; font-size: 13px; }
.compact-row:last-child { border-bottom: 0; }
.compact-row strong { display: block; font-size: 13px; font-weight: 600; }
.compact-row small { display: block; color: #616c7b; font-size: 11px; margin-top: 3px; }
.quantity { white-space: nowrap; font-variant-numeric: tabular-nums; }
.quantity small { display: inline; font-weight: 400; }
.checklist { padding: 7px 21px; }
.checklist-row { display: flex; align-items: center; gap: 11px; padding: 15px 0; font-size: 12px; }
.checklist-row > .icon { margin-left: auto; width: 15px; height: 15px; }
.checkmark { height: 20px; width: 20px; flex-shrink: 0; border: 1px solid #bfc8d6; border-radius: 50%; }
.checkmark.done { background: var(--blue); border-color: var(--blue); color: #fff; display: grid; place-items: center; }
.checkmark .icon { width: 12px; height: 12px; }
.inline-empty { padding: 22px; margin: 0; color: #677180; font-size: 13px; }
.empty-state { padding: 46px 24px; text-align: center; color: #5b6574; }
.empty-glyph { width: 30px; height: 30px; color: #7c8ba2; margin-bottom: 12px; }
.empty-state h2 { font-size: 17px; color: #27313f; margin: 0 0 8px; letter-spacing: -.02em; font-weight: 600; }
.empty-state p { font-size: 13px; max-width: 390px; margin: 0 auto 20px; line-height: 1.7; }
.empty-state > .btn { margin-top: 2px; }
.panel-tabs { display: flex; align-items: center; gap: 23px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.panel-tabs button { border: 0; border-bottom: 2px solid transparent; background: none; padding: 15px 0 12px; white-space: nowrap; color: #677180; font-size: 12px; }
.panel-tabs button.active { color: #202329; border-bottom-color: #252c37; font-weight: 650; }
.panel-tabs span { color: #586272; background: #eff1f5; padding: 1px 5px; border-radius: 3px; margin-left: 3px; font-size: 10px; }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e9edf3; }
.search-field { position: relative; flex: 1; min-width: 120px; }
.search-field > .icon { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: #687486; }
.search-field input[type=search] { padding-left: 36px; }
input[type=text],input[type=search],input[type=number],input[type=date],select { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid var(--control); border-radius: 5px; color: #293342; background: #fff; font-size: 13px; }
input:hover,select:hover { border-color: #8291a8; }
input::placeholder { color: #657080; opacity: 1; }
.filter-control { min-width: 142px; }
.filter-control select { font-size: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; font-variant-numeric: tabular-nums; }
th { font-size: 11px; color: #5b6575; font-weight: 500; padding: 12px 18px; background: #fff; white-space: nowrap; }
td { border-top: 1px solid #e9edf3; padding: 15px 18px; vertical-align: middle; color: #4f5b6c; }
td strong { font-weight: 550; color: #242e3b; }
td.numeric,th.numeric { text-align: right; }
td .muted { font-size: 11px; }
tbody tr:hover { background: #fafbfe; }
.identity-cell { color: var(--ink); }
.identity-cell small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.icon-button { border: 0; background: transparent; display: inline-grid; place-items: center; border-radius: 5px; width: 34px; height: 34px; color: #657184; padding: 0; vertical-align: middle; transition: background .15s,color .15s; }
.icon-button:hover { background: #eaf0f9; color: #263f68; }
.icon-button .icon { width: 16px; height: 16px; }
.row-actions { white-space: nowrap; text-align: right; }
.status { display: inline-block; font-size: 10px; line-height: 1.5; padding: 3px 7px; border-radius: 4px; font-weight: 550; white-space: nowrap; }
.status.available { color: #174698; background: #eaf1ff; }
.status.neutral { color: #5a6370; background: #edf0f4; }
.status.warning { color: var(--warning-ink); background: var(--warning-bg); }
.table-footer { font-size: 11px; color: #667183; padding: 13px 18px; border-top: 1px solid var(--line); }
.page-footnote { display: flex; align-items: start; gap: 8px; color: #627084; font-size: 11px; margin: 18px 2px; max-width: 850px; line-height: 1.7; }
.page-footnote .icon { width: 15px; height: 15px; margin-top: 2px; }
.request-line { display: block; padding: 2px 0; font-size: 12px; }
.packing-summary { padding: 23px; display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 20px; }
.packing-summary > div:first-child { min-width: 230px; flex: 1; max-width: 440px; }
.packing-summary .muted { font-size: 12px; }
.packing-summary h2 { font-size: 29px; font-weight: 600; letter-spacing: -.03em; margin: 8px 0 7px; }
.packing-summary h2 span { font-size: 14px; font-weight: 400; letter-spacing: -.01em; color: #4f5c70; }
.packing-summary p { font-size: 11px; color: #627084; margin: 7px 0 0; }
.shortage-banner { background: #fff8e6; border: 1px solid #ebd397; color: #735417; border-radius: 8px; padding: 18px 22px; margin-bottom: 20px; }
.shortage-banner > div { display: flex; align-items: center; gap: 10px; }
.shortage-banner h2 { margin: 0; font-size: 13px; font-weight: 650; }
.shortage-banner .icon { width: 16px; height: 16px; }
.shortage-banner ul { list-style: none; padding: 0; margin: 13px 0 0; }
.shortage-banner li { display: flex; align-items: center; gap: 17px; font-size: 12px; padding: 7px 0; }
.shortage-banner li strong { color: #5e4210; min-width: 100px; }
.shortage-banner li b { margin-left: auto; font-weight: 550; }
.packing-lists { display: grid; gap: 18px; }
.pack-quantity { color: #0058df; font-weight: 650; }
.pack-card .panel-heading > span { font-size: 11px; color: #657082; }
.method-details { font-size: 12px; margin: 24px 2px 0; max-width: 860px; color: #59677b; }
.method-details summary { display: flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; width: max-content; font-weight: 600; }
.method-details summary::-webkit-details-marker { display: none; }
.method-details .icon { width: 15px; height: 15px; }
.method-details[open] .icon { transform: rotate(180deg); }
.method-details p { line-height: 1.8; margin-bottom: 0; }
.history-record + .history-record { border-top: 1px solid var(--line); }
.history-record summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 22px; list-style: none; cursor: pointer; font-size: 12px; }
.history-record summary::-webkit-details-marker { display: none; }
.history-record summary > span { display: flex; align-items: center; gap: 12px; }
.history-record summary strong { font-size: 13px; font-weight: 550; display: block; }
.history-record summary small { color: #657184; font-size: 11px; display: block; margin-top: 3px; }
.history-record summary .icon { color: #64748b; width: 18px; height: 18px; }
.history-record[open] summary > span:last-child .icon { transform: rotate(180deg); }
.settings-row { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 24px 0; border-top: 1px solid var(--line); }
.settings-row > div:first-child { padding-top: 5px; }
.settings-row h2 { font-size: 14px; font-weight: 650; margin: 0 0 7px; }
.settings-row > div:first-child p { font-size: 12px; color: #657184; margin: 0; }
.settings-content { padding: 23px; }
.settings-content h3 { font-size: 13px; font-weight: 650; margin: 0; }
.settings-content p { font-size: 12px; color: #5f6c7f; line-height: 1.8; max-width: 650px; margin: 10px 0 19px; }
.storage-heading { display: flex; align-items: center; gap: 9px; }
.storage-heading .icon { width: 18px; height: 18px; color: #5e708c; }
.record-counts { display: flex; gap: 32px; margin: 0; }
.record-counts dt { font-size: 11px; color: #647184; }
.record-counts dd { margin: 5px 0 0; font-size: 18px; font-variant-numeric: tabular-nums; }
.danger-zone { border-color: #ead4d0; }
.loading-state { padding: 60px 20px; color: #5f6c7f; font-size: 14px; }
.mobile-nav { display: none; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%,8px); max-width: min(600px,calc(100% - 36px)); background: #222b3a; color: #fff; padding: 12px 19px; border-radius: 7px; z-index: 50; font-size: 12px; opacity: 0; pointer-events: none; transition: transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
dialog { border: 0; border-radius: 12px; padding: 0; width: min(540px,calc(100% - 32px)); max-height: calc(100vh - 48px); color: var(--ink); box-shadow: 0 20px 80px #101f3e33; }
dialog::backdrop { background: #0b14265c; }
#modal-inner { padding: 25px; }
.modal-heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 22px; }
.modal-heading h2 { font-size: 22px; font-weight: 650; letter-spacing: -.04em; line-height: 1.2; margin: 0; }
.modal-heading > div { min-width: 0; }
.modal-heading p { font-size: 12px; color: #657184; background: #fff; line-height: 1.7; margin: 8px 0 0; }
.modal-heading .icon-button { margin: -5px -5px 0 0; }
.form-group { margin-bottom: 18px; }
.form-group label { font-size: 12px; font-weight: 600; color: #303e50; display: block; margin-bottom: 7px; }
.form-group small, .form-hint { display: block; margin-top: 7px; color: #637287; font-size: 11px; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--danger); font-size: 12px; margin: 12px 0; }
.form-error:empty { margin: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 18px; margin-top: 5px; border-top: 1px solid #edf0f5; }
.request-fieldset { padding: 0; margin: 0; border: 0; }
.request-fieldset legend { font-size: 12px; font-weight: 600; color: #303e50; margin-bottom: 8px; }
.line-editor { max-height: 320px; overflow: auto; border: 1px solid #d9e0ea; border-radius: 6px; padding: 0 13px; }
.line-editor > div { display: grid; grid-template-columns: 1fr 82px; gap: 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf0f4; }
.line-editor > div:last-child { border-bottom: 0; }
.line-editor label { font-size: 13px; color: #2f3b4e; }
.line-editor small { font-size: 11px; color: #647287; display: block; margin-top: 4px; }
.line-editor input { text-align: right; }
.more-nav { display: grid; gap: 6px; }
.noscript { padding: 20px; }
/* Product guide */
.guide-main { max-width: 1130px; margin: auto; padding: 66px 40px 90px; }
.guide-main > h1 { font-size: 55px; line-height: 1.05; letter-spacing: -.055em; margin: 0 0 20px; font-weight: 600; }
.guide-lead { font-size: 18px; color: #4c586b; max-width: 620px; line-height: 1.7; margin-bottom: 55px; }
.guide-layout { display: grid; grid-template-columns: 220px 1fr; gap: 70px; align-items: start; }
.guide-index { position: sticky; top: 30px; display: grid; gap: 7px; font-size: 13px; }
.guide-index a { padding: 8px 0; color: #4b5b72; }
.guide-index a:hover { color: var(--blue); }
.guide-article section { padding: 0 0 35px; margin-bottom: 35px; border-bottom: 1px solid var(--line); }
.guide-article h2 { font-size: 26px; letter-spacing: -.035em; font-weight: 600; margin: 0 0 15px; }
.guide-article p,.guide-article li { font-size: 15px; color: #4b586b; line-height: 1.85; }
.guide-article .text-link { margin-top: 10px; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-enter { from { transform: translateY(8px) scale(.985); } to { transform: none; } }
.site-header { animation: arrive .4s backwards; }
.hero-message h1 { animation: arrive .55s .08s backwards; }
.hero-message > p { animation: arrive .55s .15s backwards; }
.hero-button,.hero-guide { animation: arrive .5s .22s backwards; }
.calculator-window { animation: arrive .6s .3s backwards; }
.reveal.is-visible { animation: arrive .6s backwards; }
.workflow-link:nth-child(2) { animation-delay: .07s; }
.workflow-link:nth-child(3) { animation-delay: .14s; }
.app-content > * { animation: content-settle .16s backwards; }
@keyframes content-settle { from { transform: translateY(3px); } to { transform: translateY(0); } }
dialog[open] { animation: dialog-enter .2s ease backwards; }
@media(min-width:1600px) { .hero-message { padding-left: calc((100vw - 1420px)/2); } }
@media(max-width:1100px) {
  .site-header { padding: 0 25px; gap: 30px; }
  .site-links { gap: 22px; }
  .landing-hero { grid-template-columns: .94fr 1.06fr; min-height: 630px; }
  .hero-message { padding: 45px 30px; }
  .hero-message h1 { font-size: 55px; }
  .hero-product { padding: 35px 25px; }
  .section-wrap { width: calc(100% - 60px); }
  .ownership-grid { gap: 55px; }
  .faq-section { gap: 55px; }
  .sidebar { width: 202px; padding-left: 10px; padding-right: 10px; }
  .sidebar .brand { font-size: 19px; }
  .app-main { margin-left: 202px; }
  .app-content { padding: 28px 24px 60px; }
  .toolbar { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .filter-control { flex: 1; }
  .page-heading { align-items: start; }
  .page-heading .button-row { justify-content: end; }
  .settings-row { grid-template-columns: 180px 1fr; gap: 20px; }
  .packing-summary { align-items: start; flex-direction: column; }
  .packing-summary > div:first-child { width: 100%; max-width: none; }
}
@media(max-width:850px) {
  .site-header { height: 68px; padding: 0 22px; gap: 20px; }
  .site-links { display: none; }
  .header-cta { min-height: 40px; padding: 10px 15px; font-size: 12px; }
  .site-mobile-menu { display: block; position: relative; }
  .site-mobile-menu summary { display: grid; place-items: center; width: 40px; height: 40px; list-style: none; cursor: pointer; }
  .site-mobile-menu summary::-webkit-details-marker { display: none; }
  .site-mobile-menu nav { position: absolute; right: 0; top: 50px; padding: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 30px #001b4c18; border-radius: 7px; min-width: 190px; z-index: 20; display: grid; }
  .site-mobile-menu nav a { padding: 12px; font-size: 13px; }
  .landing-hero { grid-template-columns: 1fr; }
  .hero-message { padding: 55px 32px; align-items: flex-start; }
  .hero-message h1 { font-size: clamp(54px,8vw,72px); }
  .hero-message > p { max-width: 440px; }
  .hero-message > .hero-meta { margin-top: 30px; }
  .hero-product { padding: 36px 28px 28px; }
  .calculator-window { max-width: 590px; }
  .section-intro { align-items: start; flex-direction: column; gap: 25px; }
  .section-intro > p { max-width: 500px; }
  .workflow-grid { gap: 30px; }
  .workflow-link h3 { font-size: 18px; }
  .workflow-link p { font-size: 13px; }
  .ownership-grid { gap: 45px; }
  .faq-section { grid-template-columns: 1fr; gap: 30px; }
  .faq-section .section-intro { flex-direction: row; justify-content: space-between; align-items: end; }
  .footer-top { display: block; }
  .footer-top nav { margin-top: 25px; }
  .sidebar { display: none; }
  .app-main { margin-left: 0; }
  .app-top { padding: 0 22px; height: 58px; }
  .app-content { padding: 27px 22px 105px; }
  .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; align-items: stretch; justify-content: space-around; border-top: 1px solid #d9e0e9; background: #fff; padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); z-index: 20; }
  .mobile-nav .nav-link { flex-direction: column; justify-content: center; gap: 4px; padding: 7px 5px; flex: 1; min-height: 54px; font-size: 10px; color: #627087; background: none; }
  .mobile-nav .nav-link .icon { width: 20px; height: 20px; }
  .mobile-nav .nav-link.active { color: #0059ec; background: #f1f5fe; }
  .mobile-nav .nav-count { display: none; }
  .toast { bottom: 84px; }
  .page-heading h1 { font-size: 27px; }
  .guide-layout { grid-template-columns: 170px 1fr; gap: 35px; }
}
@media(max-width:600px) {
  .site-header { padding: 0 18px; gap: 10px; }
  .site-header .brand { font-size: 20px; gap: 8px; }
  .brand-logo { width: 30px; height: 30px; }
  .header-cta { margin-left: auto; font-size: 11px; padding: 10px 12px; }
  .header-cta .icon { display: none; }
  .site-mobile-menu summary { width: 30px; }
  .hero-message { padding: 43px 24px; }
  .hero-message h1 { font-size: 57px; }
  .hero-message > p { font-size: 17px; margin-bottom: 27px; }
  .hero-button { font-size: 14px; min-height: 57px; max-width: none; }
  .hero-product { padding: 27px 17px 22px; }
  .calc-top { padding: 14px 16px; }
  .calc-top > .live-label { font-size: 10px; }
  .calc-body { padding: 20px 17px; }
  .calc-body h2 { font-size: 23px; }
  .calc-request-head,.calc-request { grid-template-columns: 1fr 78px 49px; gap: 10px; }
  .section-wrap { width: calc(100% - 44px); }
  .workflow-section { padding: 60px 0; }
  .section-intro { margin-bottom: 24px; }
  .section-intro h2,.ownership-section h2,.site-cta h2 { font-size: 36px; }
  .section-intro > p { font-size: 15px; }
  .workflow-grid { grid-template-columns: 1fr; gap: 20px; }
  .workflow-link { display: grid; grid-template-columns: 36px 1fr; column-gap: 17px; padding: 15px 0; }
  .workflow-link > .feature-icon { grid-row: 1 / 4; margin-top: 3px; }
  .workflow-link h3 { font-size: 21px; }
  .workflow-link p { font-size: 14px; margin-bottom: 14px; }
  .workflow-link > span { grid-column: 2; }
  .ownership-section { padding: 55px 0; }
  .ownership-grid { grid-template-columns: 1fr; gap: 38px; }
  .ownership-grid > div > p { font-size: 16px; }
  .data-story { gap: 26px; }
  .faq-section { padding: 55px 0; }
  .faq-section .section-intro { display: block; }
  .faq-section .section-intro > a { margin-top: 22px; }
  .faq-list summary { font-size: 15px; }
  .site-cta { padding: 46px 0; }
  .site-cta > div { display: block; }
  .site-cta .btn { margin-top: 28px; }
  .site-footer { padding-top: 25px; }
  .footer-wordmark { font-size: 17vw; line-height: 1.8; }
  .footer-bottom { align-items: start; flex-direction: column; gap: 8px; font-size: 11px; }
  .app-top { padding: 0 18px; }
  .app-top > a span { display: none; }
  .app-content { padding: 26px 16px 100px; }
  .page-heading { align-items: start; flex-direction: column; gap: 18px; margin-bottom: 22px; }
  .page-heading h1 { font-size: 27px; }
  .page-heading p { font-size: 12px; line-height: 1.7; }
  .page-heading .button-row { justify-content: start; }
  .btn { min-height: 44px; font-size: 12px; }
  .stats-strip { grid-template-columns: 1fr; padding: 0 19px; }
  .stats-strip > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 20px; padding: 17px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-strip > div:last-child { border-bottom: 0; }
  .stats-strip strong { grid-column: 2; grid-row: 1 / 3; font-size: 27px; margin: 0; }
  .stats-strip small { grid-column: 1; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 19px; }
  .panel-heading { padding: 17px 17px; gap: 10px; }
  .panel-heading > .muted { font-size: 10px; }
  .panel-heading .text-link { font-size: 11px; }
  .panel-tabs { gap: 20px; padding: 0 15px; }
  .panel-tabs button { min-height: 46px; }
  .toolbar { padding: 13px; gap: 9px; }
  .filter-control { min-width: 120px; }
  input[type=text],input[type=search],input[type=number],input[type=date],select { min-height: 44px; font-size: 14px; }
  .search-field > .icon { top: 14px; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .responsive-table,.responsive-table tbody { display: block; }
  .responsive-table tr { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px 12px; padding: 17px; border-top: 1px solid #e5eaf1; }
  .responsive-table td { border: 0; padding: 0; display: flex; align-items: center; gap: 7px; font-size: 12px; }
  .responsive-table td::before { content: attr(data-label); color: #647184; font-size: 11px; }
  .responsive-table td.identity-cell { grid-column: 1 / -1; display: block; font-size: 14px; margin-bottom: 4px; }
  .responsive-table .identity-cell::before,.responsive-table .row-actions::before { display: none; }
  .responsive-table td.numeric { justify-content: space-between; }
  .responsive-table .row-actions { justify-content: end; grid-column: 2; }
  .responsive-table .icon-button { height: 44px; width: 44px; }
  .requests-table td[data-label=Requested] { display: block; grid-column: 1 / -1; }
  .requests-table td[data-label=Requested]::before { display: none; }
  .requests-table .request-line { font-size: 13px; padding: 3px 0; }
  .pack-table tr { grid-template-columns: repeat(3,1fr); }
  .pack-table .identity-cell { grid-column: 1 / 3 !important; }
  .pack-table td[data-label="Best before"] { grid-column: 1 / -1; grid-row: 2; justify-content: start; }
  .pack-table td.numeric { display: block; padding-top: 8px; }
  .pack-table td.numeric::before { display: block; margin-bottom: 5px; }
  .history-table td[data-label=Item] { grid-column: 1 / -1; }
  .history-table td.numeric { justify-content: start; }
  .packing-summary { padding: 20px 17px; }
  .packing-summary > div:first-child { min-width: 0; }
  .packing-summary .button-row { gap: 7px; }
  .packing-summary .button-row .btn { font-size: 11px; padding: 10px 11px; }
  .shortage-banner { padding: 16px; }
  .shortage-banner li { flex-wrap: wrap; gap: 4px 10px; }
  .shortage-banner li strong { min-width: 0; }
  .shortage-banner li b { margin-left: 0; }
  .shortage-banner li span { width: 100%; order: 3; }
  .history-record summary { padding: 17px; gap: 13px; }
  .history-record summary strong { font-size: 12px; }
  .history-record summary > span:last-child { font-size: 11px; white-space: nowrap; }
  .settings-row { grid-template-columns: 1fr; gap: 16px; }
  .settings-row h2 { font-size: 15px; }
  .settings-content { padding: 19px; }
  .record-counts { justify-content: space-between; gap: 12px; }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 30px); }
  #modal-inner { padding: 22px 18px; }
  .modal-heading h2 { font-size: 22px; }
  .modal-heading .icon-button { width: 38px; height: 38px; flex-shrink: 0; }
  .form-grid { gap: 12px; }
  .form-group label { font-size: 12px; }
  .line-editor { max-height: 35vh; }
  .line-editor > div { gap: 12px; grid-template-columns: 1fr 75px; }
  .guide-main { padding: 45px 23px 65px; }
  .guide-main > h1 { font-size: 44px; }
  .guide-lead { font-size: 16px; margin-bottom: 30px; }
  .guide-layout { grid-template-columns: 1fr; gap: 30px; }
  .guide-index { position: static; display: flex; flex-wrap: wrap; gap: 7px 20px; }
  .guide-article h2 { font-size: 25px; }
  .guide-article p,.guide-article li { font-size: 14px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
}
@media print {
  .sidebar,.app-top,.mobile-nav,.button-row,.method-details,.page-footnote,.skip,.toast { display: none !important; }
  .app-main { margin: 0; }
  .app-content { padding: 0; max-width: none; }
  .page-heading { margin: 0 0 15px; }
  .panel { border-radius: 0; break-inside: avoid; }
  .packing-summary { display: block; }
  .pack-card { margin-bottom: 15px; }
  body { color: #000; }
}
/* Keep user-entered names and native date controls inside their layouts. */
td,.identity-cell strong,.compact-row strong,.panel-heading h2 { overflow-wrap: anywhere; }
.panel-heading h2,.compact-row > div { min-width: 0; }
.stock-table,.requests-table { table-layout: fixed; }
.stock-table th:last-child,.requests-table th:last-child { width: 110px; }
.form-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
@media(max-width:600px) { .stock-table,.requests-table { table-layout: auto; } }
@media(max-width:420px) { .form-grid { grid-template-columns: 1fr; } .hero-message h1 { font-size: clamp(48px,14.6vw,57px); } }
