:root {
  color-scheme: light;
  --canvas: #f5f7fb;
  --paper: #fff;
  --ink: #18243b;
  --muted: #586780;
  --subtle: #67778f;
  --line: #e2e8f1;
  --blue: #3158d7;
  --blue-hover: #264abd;
  --blue-soft: #ecf2ff;
  --green: #14744e;
  --orange: #925307;
  --red: #b3293e;
  --radius: 15px;
  --font: Inter, 'Segoe UI', 'Microsoft YaHei UI', 'PingFang SC', 'Noto Sans SC', sans-serif;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #819af5; outline-offset: 3px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #aabafa; outline-offset: 1px; border-color: #8fa6ef; }
h1,h2,h3,p { margin: 0; }
svg { flex: 0 0 auto; vertical-align: middle; }
.boot { height: 100vh; display: flex; gap: 12px; align-items: center; justify-content: center; color: var(--muted); }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(145deg,#476ef0,#2c4bc4); box-shadow: 0 4px 9px #3455d42a; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); white-space: nowrap; }
.brand strong { font-size: 1rem; font-weight: 750; letter-spacing: .015em; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 225px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; background: var(--paper); border-right: 1px solid var(--line); padding: 23px 14px 15px; display: flex; flex-direction: column; overflow-y: auto; z-index: 7; }
.sidebar .brand { margin: 0 8px 30px; }
.nav-group + .nav-group { margin-top: 25px; }
.nav-label { color: var(--subtle); padding: 0 12px 8px; font-size: .78rem; letter-spacing: .1em; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 12px; border-radius: 9px; color: #43516b; font-size: .9rem; font-weight: 550; margin-bottom: 4px; }
.nav-link:hover { background: #f1f5fc; color: var(--blue); }
.nav-link[aria-current='page'] { background: var(--blue-soft); color: #2349c0; font-weight: 730; }
.side-bottom { margin-top: auto; padding-top: 23px; }
.local-state { border: 1px solid #e4eaf4; background: #f7f9fd; border-radius: 11px; color: var(--muted); padding: 11px 12px; display: flex; align-items: center; gap: 9px; font-size: .81rem; }
.local-state svg { color: #4266d3; }
.workspace { min-width: 0; }
.topbar { height: 68px; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(18px,3.1vw,44px); background: #fff; border-bottom: 1px solid var(--line); }
.top-start, .top-end, .top-date, .avatar-button { display: flex; align-items: center; gap: 9px; }
.top-start { color: #3b4a63; font-size: .875rem; font-weight: 620; }
.top-end { gap: 21px; }
.top-date { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.account { position: relative; }
.avatar-button { border: 0; background: none; border-radius: 9px; padding: 4px; color: #32405b; font-size: .86rem; font-weight: 620; }
.avatar-button:hover { background: #f3f6fc; }
.avatar { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 10px; background: #eaf0ff; color: #3151bf; }
.user-menu { position: absolute; width: 152px; right: 0; top: 48px; padding: 5px; background: white; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 8px 22px #22305118; z-index: 5; }
.user-menu button { width: 100%; display: flex; text-align: left; align-items: center; gap: 9px; border: 0; padding: 10px; border-radius: 7px; background: white; color: var(--ink); font-size: .875rem; }
.user-menu button:hover { background: var(--blue-soft); }
.mobile-menu { display: none !important; }
.main { max-width: 1530px; margin: 0 auto; padding: 31px clamp(18px,3.1vw,44px) 52px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(1.66rem,2.45vw,2.12rem); font-weight: 750; line-height: 1.32; letter-spacing: normal; }
.page-head p { font-size: .94rem; line-height: 1.7; color: var(--muted); margin-top: 8px; }
.page-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; }
.page-actions > :first-child:not(.btn) { margin-right: auto; }
.btn, .icon-btn, .link-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; font-size: .875rem; font-weight: 640; border: 1px solid transparent; border-radius: 8px; padding: 8px 13px; background: white; color: #32425e; line-height: 1.35; white-space: nowrap; text-decoration: none; }
.btn.primary { background: var(--blue); color: white; border-color: var(--blue); box-shadow: 0 2px 3px #193b9820; }
.btn.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn.secondary { border-color: #d9e1ee; }
.btn.secondary:hover, .icon-btn:hover { color: var(--blue); background: #f4f7ff; border-color: #bed0ff; }
.btn.danger { color: var(--red); background: #fff4f4; border-color: #f0cad0; }
.btn.danger:hover { background: #ffe5e8; }
.icon-btn { width: 35px; min-height: 35px; padding: 0; border-color: var(--line); }
.link-btn { min-height: 30px; color: var(--blue); padding: 4px 6px; background: transparent; }
.link-btn:hover { background: var(--blue-soft); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; box-shadow: 0 1px 2px #20395a05; }
.panel + .panel { margin-top: 16px; }
.panel-head { min-height: 61px; padding: 14px 19px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid #ebeff5; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { font-size: 1.01rem; font-weight: 730; }
.panel-body { padding: 17px 19px; }
.table-wrap { overflow-x: auto; min-width: 0; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; text-align: left; }
th, td { padding: 12px 15px; vertical-align: middle; border-bottom: 1px solid #edf1f6; }
th { background: #f4f7fc; color: #4b5a71; white-space: nowrap; font-size: .85rem; font-weight: 680; }
td { color: #35435b; overflow-wrap: anywhere; }
td strong { color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfe; }
.num, .number, .amount { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.filters { padding: 13px 15px; display: flex; gap: 8px; flex-wrap: wrap; align-items: end; border-bottom: 1px solid var(--line); }
.filters select, .filters input { width: auto; min-width: 104px; }
.filters input[type='search'] { width: 185px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; font-weight: 620; min-width: 0; color: #36465e; line-height: 1.45; }
.field small { font-size: .8rem; color: var(--muted); font-weight: 450; line-height: 1.55; }
input:not([type='checkbox']):not([type='radio']), select, textarea { min-width: 0; max-width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #d9e2ee; border-radius: 8px; color: var(--ink); background-color: white; font-size: .9rem; }
.field input:not([type='checkbox']):not([type='radio']), .field select, .field textarea { width: 100%; }
input::placeholder, textarea::placeholder { color: #728198; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--blue); }
input[type='file'] { padding: 7px; }
input::file-selector-button { background: var(--blue-soft); color: var(--blue); padding: 6px 10px; border: 0; border-radius: 5px; margin-right: 10px; }
select { appearance: none; padding-right: 29px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2361728c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 8px center; background-repeat: no-repeat; }
textarea { min-height: 80px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 21px; }
.form-grid > .full { grid-column: 1 / -1; }
.notice { display: flex; gap: 8px; background: #eef4ff; color: #33538c; border: 1px solid #dce7ff; padding: 11px 13px; border-radius: 9px; font-size: .86rem; line-height: 1.55; margin: 11px 0; }
.notice.error, .notice.danger { background: #fff1f2; color: var(--red); border-color: #f3d2d8; }
.muted { color: var(--muted); }
.empty { min-height: 105px; padding: 23px 15px; color: var(--muted); text-align: center; font-size: .875rem; align-content: center; line-height: 1.65; }
.empty svg { display: block; margin: 0 auto 10px; color: #7188c0; }
.section-label { font-size: .9rem; font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; border-radius: 6px; padding: 3px 8px; color: #2147ad; background: #eaf0ff; font-weight: 650; font-size: .79rem; white-space: nowrap; }
.badge.success { color: var(--green); background: #e6f5ed; }
.badge.warning { color: var(--orange); background: #fff1d8; }
.badge.danger { color: var(--red); background: #ffedf0; }
.badge.neutral { color: #53627b; background: #eff2f7; }
.tabbar, .tabs { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tabbar { padding: 7px; display: inline-flex; background: #eaf0fa; border-radius: 10px; margin-bottom: 14px; }
.tabbar button, .tabs button { border: 0; background: transparent; color: var(--muted); border-radius: 7px; padding: 7px 12px; min-height: 34px; font-size: .875rem; }
.tabbar button.active, .tabs button.active, .tabbar [aria-selected='true'], .tabs [aria-selected='true'] { background: #fff; color: var(--blue); font-weight: 680; box-shadow: 0 1px 4px #20345712; }
.dialog { position: fixed; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 80px #101b433d; width: min(94vw,580px); max-height: min(91vh,850px); overflow: auto; color: var(--ink); padding: 0; }
.dialog.wide { width: min(95vw,1080px); }
.dialog::backdrop { background: #15234969; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; gap: 12px; background: white; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.dialog-head h2 { font-size: 1.13rem; }
.dialog-body { padding: 17px 18px 20px; }
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 16px; margin-top: 17px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.toasts { position: fixed; right: 17px; bottom: 17px; z-index: 20; pointer-events: none; }
.toast { max-width: min(90vw,520px); display: flex; gap: 10px; align-items: center; border-radius: 10px; background: #15274c; color: white; padding: 12px 16px; font-size: .9rem; box-shadow: 0 6px 23px #14244836; }
.toast.error { background: #a52942; }
.dashboard { display: grid; gap: 18px; }
.hero { position: relative; overflow: hidden; background: linear-gradient(108deg,#1e367f 0%,#2e50bd 61%,#4268e0 100%); border-radius: 17px; padding: 25px 28px; color: #fff; min-height: 177px; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 1; max-width: 620px; }
.hero h2 { font-size: clamp(1.36rem,2.4vw,1.85rem); line-height: 1.26; font-weight: 750; }
.hero p { color: #e0e8ff; margin-top: 7px; line-height: 1.6; font-size: .9rem; }
.hero-actions { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-actions .btn { background: white; color: #2949b7; border-color: white; }
.hero-actions .btn:hover { background: #e9eeff; }
.hero-actions .btn.ghost { background: #ffffff10; color: white; border-color: #ffffff6b; }
.hero-actions .btn.ghost:hover { background: #ffffff28; }
.hero-art { position: absolute; pointer-events: none; inset: 0 0 0 auto; width: 42%; min-width: 230px; background: linear-gradient(90deg,transparent 0%,#2345aa33 100%), repeating-linear-gradient(90deg,transparent 0 32px,#dbe6ff12 33px 34px), repeating-linear-gradient(0deg,transparent 0 32px,#dbe6ff12 33px 34px); mask-image: linear-gradient(90deg,transparent,#000 42%); }
.hero-art::before, .hero-art::after, .hero-art span { content: ''; position: absolute; width: 137px; aspect-ratio: 1; border-radius: 19px; border: 1px solid #d5e0ff65; transform: rotate(-28deg) skew(9deg); background: linear-gradient(145deg,#acbfff38,#7494ff1f); box-shadow: inset 0 1px 14px #d1ddff20, 7px 9px 20px #17358431; }
.hero-art::before { top: 50px; right: 34%; width: 110px; }
.hero-art::after { top: 72px; right: 16%; width: 98px; }
.hero-art span { top: 14px; right: 23%; width: 97px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.metric { display: grid; gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; min-width: 0; }
.metric-head { display: flex; align-items: center; gap: 8px; font-size: .87rem; color: #4b5a72; min-height: 31px; }
.metric-icon, .quick-icon { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 auto; border-radius: 8px; color: #3159d0; background: #edf2ff; }
.metric-icon.teal, .quick-icon.teal { color: #11765e; background: #e7f5ef; }
.metric-icon.amber, .quick-icon.amber { color: #8b590b; background: #fff3da; }
.metric-icon.violet, .quick-icon.violet { color: #6741bb; background: #f1ebff; }
.metric-value { font-weight: 740; line-height: 1.15; font-size: clamp(1.1rem,2.2vw,1.66rem); letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-value small { font-size: .78rem; color: var(--muted); letter-spacing: normal; margin-left: 5px; font-weight: 520; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 15px; }
.dashboard-grid > .panel { margin: 0; }
.dashboard table td, .dashboard table th { padding-left: 18px; padding-right: 18px; }
.dashboard .table-wrap:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.quick-list { padding: 4px 15px; }
.quick-link { color: var(--ink); display: flex; align-items: center; gap: 10px; padding: 10px 3px; border-radius: 7px; }
.quick-link + .quick-link { border-top: 1px solid #edf1f7; }
.quick-link:hover { color: var(--blue); background: #f8faff; }
.quick-label { flex: 1; font-size: .875rem; font-weight: 660; }
.quick-label small { display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; font-weight: 450; }
.quick-link > svg { color: #5e76ac; transform: rotate(-90deg); }
.auth-shell { min-height: 100dvh; padding: 24px; display: grid; place-items: center; background: radial-gradient(at 15% 10%,#e1eaff,transparent 46%),#f4f7fc; }
.auth-card { display: grid; grid-template-columns: .93fr 1fr; width: min(870px,100%); border: 1px solid #dbe4f4; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 70px #283c761c; background: white; }
.auth-brand { color: white; display: flex; flex-direction: column; min-height: 448px; justify-content: flex-start; padding: 35px; position: relative; overflow: hidden; background: linear-gradient(145deg,#1e337e,#3156cf 68%,#4b76e5); }
.auth-brand .brand { color: white; position: relative; z-index: 1; }
.auth-brand .brand-mark { background: #ffffff29; box-shadow: none; }
.auth-brand h2 { font-size: clamp(1.5rem,2.65vw,2.12rem); margin-top: 55px; line-height: 1.36; font-weight: 730; position: relative; z-index: 1; }
.auth-brand p { color: #e2eaff; font-size: .91rem; margin-top: 7px; line-height: 1.7; position: relative; z-index: 1; }
.auth-brand .hero-art { inset: auto 0 0 auto; width: 100%; height: 65%; opacity: .8; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px,5vw,45px); }
.auth-form h1 { font-size: 1.68rem; letter-spacing: -.035em; }
.auth-form .muted { font-size: .9rem; margin: 7px 0 22px; line-height: 1.6; }
.auth-form form { display: grid; gap: 14px; }
.auth-form form > .btn { width: 100%; margin-top: 3px; }
.error-text { color: var(--red); min-height: 1.1em; font-size: .85rem; line-height: 1.5; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 42px !important; }
.password-wrap button { position: absolute; top: 3px; right: 3px; border-color: transparent; background: transparent; }
.overlay { display: none; }
.action-group, .inline-actions { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions-end { justify-content: flex-end; }
.form-section { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fd; }
.form-section + .form-section { margin-top: 13px; }
.row-editor { border: 1px solid var(--line); border-radius: 10px; padding: 13px; background: #fff; }
.row-editor + .row-editor { margin-top: 9px; }
.table-toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 11px 15px; align-items: center; border-bottom: 1px solid var(--line); }
.toolbar-meta { font-size: .84rem; color: var(--muted); }
.meta-table th { width: 25%; }
.option-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.option-grid > .panel { margin: 0; }
.option-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.upload-zone { text-align: center; padding: 28px 15px; background: #f6f9ff; border: 1px dashed #adc0f0; border-radius: 10px; display: grid; justify-items: center; gap: 9px; }
.upload-zone.dragover, .upload-zone.dragging { background: #e5eeff; border-color: var(--blue); }
.upload-zone > svg { color: var(--blue); }
.form-error { color: var(--red); font-size: .875rem; line-height: 1.6; }
.summary-strip { display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 14px 16px; background: #eef3fc; border-radius: 10px; color: #31466c; font-size: .9rem; }
.summary-strip > div { display: grid; gap: 4px; }
.summary-strip strong { font-size: 1.04rem; }
.purchase-meta, .purchase-notes, .import-meta { padding: 18px 22px; }
.purchase-editor .panel-head { padding-inline: 22px; }
.purchase-toolbar { padding: 12px 15px; }
.purchase-footer { padding: 13px 15px; }
.purchase-total { display: grid; gap: 3px; margin-right: auto; }
.purchase-table th, .purchase-table td { padding: 9px 8px; }
.purchase-table input, .purchase-table select { width: 100%; }
.purchase-table select { min-width: 91px; padding-left: 8px; padding-right: 23px; background-position: right 6px center; }
.purchase-table input[type='number'] { min-width: 64px; }
.panel > form > .form-section, #import-form > .form-section { margin: 0 15px 15px; }
.option-panel > .panel-head { padding: 13px 20px; }
.setting-options { list-style: none; margin: 0; padding: 16px 20px 20px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 9px; min-height: 68px; }
.setting-option { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 1px 3px 1px 10px; background: #f0f4fc; border: 1px solid #e3eaf7; border-radius: 8px; color: #304567; min-height: 35px; font-size: .91rem; line-height: 1.5; font-weight: 550; }
.setting-option > span { overflow-wrap: anywhere; }
.setting-delete { flex-shrink: 0; display: inline-grid; place-items: center; min-width: 30px; min-height: 30px; padding: 0; color: #637494; background: transparent; border: 0; border-radius: 6px; }
.setting-delete:hover { background: #ffe9ed; color: var(--red); }
.option-grid + .settings-account { margin-top: 18px; }
.settings-account > .panel-head { padding: 17px 20px; border-bottom: 0; }
.advance-field { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid #dce5f4; border-radius: 9px; background: #f6f9ff; cursor: pointer; }
.advance-field input { width: 17px; height: 17px; margin: 2px 0 0; flex-shrink: 0; }
.advance-field span { display: grid; gap: 3px; }
.advance-field strong { font-size: .9rem; line-height: 1.45; }
.advance-field small { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.keep { white-space: nowrap; }
.warehouse-code { color: #53688b; font-size: .82rem; margin-top: 4px; }
.stock-heading { display: flex; align-items: baseline; gap: 12px; }
.stock-heading strong { font-size: .98rem; }
.warehouse-result:not(:empty) { margin: 16px 0; }
.warehouse-result .notice { margin: 12px 16px; }
.vault-lock { max-width: 500px; margin-inline: auto; padding: clamp(23px, 4vw, 36px); }
.vault-lock h2 { font-size: 1.3rem; margin: 13px 0 8px; }
.vault-lock p { font-size: .9rem; line-height: 1.6; }
.vault-lock form { display: grid; gap: 13px; margin-top: 19px; }
.vault-lock-icon { display: inline-grid; width: 45px; height: 45px; place-items: center; border-radius: 12px; color: var(--blue); background: var(--blue-soft); }
.import-navigation { justify-content: space-between; }
.form-error { white-space: pre-line; }
.meta-table { margin: 0 0 15px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.meta-table div { padding: 9px 11px; background: #f4f7fc; border-radius: 8px; }
.meta-table dt { color: var(--muted); font-size: .84rem; }
.meta-table dd { margin: 3px 0 0; font-weight: 620; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.5; }
.search-field { position: relative; }
.search-field svg { display: none; }
.cell-subtitle { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; }
.note-cell { max-width: 230px; }
.panel-head .tabbar { margin-bottom: 0; }
.panel-head .muted { font-size: .86rem; margin-top: 3px; line-height: 1.55; }
@media (max-width: 1100px) {
  .layout { grid-template-columns: 195px minmax(0,1fr); }
  .metric-head { align-items: center; }
  .metrics { gap: 9px; }
  .metric { padding: 11px; }
}
@media (max-width: 800px) {
  .layout { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: fixed; top: 0; left: 0; width: 225px; transform: translateX(-100%); visibility: hidden; transition: transform .18s ease, visibility .18s ease; }
  .layout.drawer-open .sidebar { transform: translateX(0); visibility: visible; }
  .layout.drawer-open .overlay { position: fixed; z-index: 6; inset: 0; display: block; background: #182b5f5f; border: 0; width: 100%; }
  .mobile-menu { display: inline-flex !important; }
  .topbar { height: 61px; }
  .main { padding-top: 22px; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 550px) {
  .top-date, .user-name, .hero-art { display: none; }
  .hero { padding: 20px 17px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .auth-shell { padding: 13px; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-brand { min-height: initial; padding: 18px 22px; }
  .auth-brand h2, .auth-brand p { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .panel-head, .panel-body { padding-left: 13px; padding-right: 13px; }
  .purchase-meta, .purchase-notes, .import-meta, .purchase-editor .panel-head { padding-inline: 13px; }
  .filter input[type='search'] { width: 100%; }
  .option-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
