:root {
  --canvas: #f5f6f8;
  --paper: #ffffff;
  --ink: #1d2b36;
  --muted: #6e7885;
  --line: #e6e9ee;
  --navy: #172934;
  --navy-light: #263c49;
  --coral: #c94740;
  --coral-dark: #ad342f;
  --coral-soft: #fff0eb;
  --green: #167457;
  --green-soft: #eaf6ef;
  --radius: 15px;
  --shadow: 0 3px 14px rgba(23, 41, 52, .035);
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Segoe UI", "Microsoft JhengHei", "PingFang TC", sans-serif; font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--coral); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #278ba8; outline-offset: 3px; }
main:focus { outline: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.35; letter-spacing: -.025em; margin-bottom: 10px; font-weight: 700; }
h2 { font-size: 18px; line-height: 1.45; margin-bottom: 8px; letter-spacing: -.015em; }
h3 { font-size: 15px; line-height: 1.5; margin-bottom: 8px; }
p { margin-bottom: 14px; }
small { font-size: 12px; }
svg { flex-shrink: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; background: white; padding: 12px 18px; border: 2px solid var(--coral); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.app-shell { display: grid; grid-template-columns: 234px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--navy); color: #c5d0d6; padding: 33px 18px 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: white; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 43px; background: #ef786a; border-radius: 12px 12px 12px 3px; font-size: 24px; letter-spacing: -.08em; font-weight: 750; color: #162934; }
.brand-mark span { color: white; }
.brand-words { font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: .01em; }
.brand-words small { display: block; margin-top: 7px; color: #9eafb9; font-weight: 400; letter-spacing: .13em; font-size: 10px; }
.sidebar-brand { padding-left: 12px; padding-bottom: 40px; }
.sidebar-nav { overflow: auto; }
.nav-group + .nav-group { margin-top: 31px; }
.nav-label { padding: 0 14px 10px; font-size: 10px; letter-spacing: .17em; color: #8d9fa9; }
.nav-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin: 3px 0; color: #b9c7cf; border-radius: 8px; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.nav-item svg { width: 18px; height: 18px; color: #8fa4b0; }
.nav-item:hover { background: #223845; color: white; text-decoration: none; }
.nav-item.is-active { color: white; background: #2a414e; }
.nav-item.is-active svg { color: #ffa697; }
.sidebar-footer { margin-top: auto; padding-top: 28px; }
.sidebar-note { padding: 0 14px 23px; font-size: 11px; color: #b7c7d0; }
.sidebar-note .status-dot { margin-right: 7px; background: #8fc7b0; }
.sidebar-note small { display: block; margin: 2px 0 0 15px; color: #8398a5; font-size: 10px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 20px 10px 13px; border-top: 1px solid #31434e; }
.avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #3c515d; width: 34px; height: 34px; border-radius: 50%; color: #f6dbd2; font-size: 13px; font-weight: 600; }
.sidebar-user > span:last-child { min-width: 0; }
.sidebar-user strong { display: block; max-width: 138px; overflow: hidden; text-overflow: ellipsis; color: #e6eef2; font-size: 12px; white-space: nowrap; }
.sidebar-user small { display: block; font-size: 10px; color: #91a5b2; }
.logout-form { margin: 0; }
.logout-button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 7px 14px; border: 0; background: transparent; color: #a8bac4; font-size: 11px; text-align: left; border-radius: 6px; }
.logout-button:hover { background: #263b48; color: white; }
.workspace { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 79px; padding: 18px 38px; border-bottom: 1px solid var(--line); background: var(--paper); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; font-size: 12px; }
.breadcrumb > span:first-child { color: #8a949d; }
.breadcrumb-separator { color: #c6cdd2; }
.breadcrumb strong { font-weight: 500; overflow-wrap: anywhere; }
.topbar-account { display: flex; align-items: center; gap: 19px; flex-shrink: 0; }
.balance-chip { font-size: 11px; color: var(--muted); white-space: nowrap; }
.balance-chip strong { font-size: 14px; color: var(--ink); margin-left: 6px; font-weight: 650; font-variant-numeric: tabular-nums; }
.topbar-email { padding-left: 19px; border-left: 1px solid var(--line); font-size: 11px; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-content { max-width: 1470px; margin: 0 auto; padding: 27px 38px 0; }
.simulation-banner { display: flex; gap: 13px; align-items: flex-start; padding: 11px 15px; margin-bottom: 28px; border: 1px solid #eadfc9; border-radius: 8px; background: #fffbf3; color: #8b7049; font-size: 11px; line-height: 1.75; }
.simulation-label { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: #846135; font-weight: 650; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; background: #c59752; border-radius: 50%; }
.page-heading { margin-bottom: 26px; }
.page-heading .eyebrow, .eyebrow { margin: 0 0 9px; font-size: 10px; color: var(--coral); font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.page-heading p:last-child { margin-bottom: 0; }
.subtitle { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 0; }
.page-heading:has(.actions) { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.card + .card { margin-top: 22px; }
.card-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 21px 25px; border-bottom: 1px solid var(--line); }
.card-header h2, .card-header h3, .card-header p { margin-bottom: 0; }
.card-header .subtitle, .card-header .help { margin-top: 4px; }
.card-header > a { font-size: 12px; }
.card-body { padding: 25px; }
.card-body > :last-child { margin-bottom: 0; }
.card > h2, .card > h3 { margin: 23px 25px 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; margin-bottom: 25px; }
.stat-card { position: relative; min-width: 0; padding: 22px 25px 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.stat-card:first-child { border-color: #e9cfc5; background: linear-gradient(110deg, #fff5ef, #fffdf9); }
.stat-label { color: var(--muted); font-size: 12px; margin-bottom: 11px; }
.stat-value { display: block; font-size: 34px; font-weight: 650; line-height: 1.2; letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.stat-value small { font-size: 12px; color: #8c8580; font-weight: 400; margin-left: 6px; letter-spacing: 0; }
.stat-meta { display: block; color: #9298a0; font-size: 11px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.grid-2 > .card + .card { margin-top: 0; }
.grid-2 + .grid-2, .grid-2 + .card, .card + .grid-2, .stat-card + .card { margin-top: 22px; }
.stack { display: grid; gap: 22px; align-content: start; }
.stack > .card + .card { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.form-grid .full, .form-grid .field-full, .form-grid .span-2 { grid-column: 1 / -1; }
.field { margin-bottom: 20px; min-width: 0; }
.form-grid > .field { margin-bottom: 0; }
.field > label, .field > .label, label.field-label { display: block; font-weight: 600; color: #374754; font-size: 12px; margin-bottom: 7px; }
label small { font-weight: 400; color: var(--muted); }
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-width: 0; min-height: 43px; border: 1px solid #dce1e6; border-radius: 7px; padding: 10px 12px; color: var(--ink); background: #fff; line-height: 1.45; font-size: 13px; transition: border .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #a5adb5; }
input:hover, select:hover, textarea:hover { border-color: #b7c3cc; }
input:focus, select:focus, textarea:focus { border-color: #8aa9b4; box-shadow: 0 0 0 3px #eaf1f4; outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #278ba8; outline-offset: 1px; }
input[readonly] { background: #f6f8fa !important; color: #7b8790 !important; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--coral); width: 16px; height: 16px; vertical-align: middle; }
textarea { resize: vertical; min-height: 90px; }
.help { color: #858f99; font-size: 11px; margin: 6px 0 0; line-height: 1.7; }
.product-description { white-space: pre-line; overflow-wrap: anywhere; }
.quantity-range { font-size: 12px; color: #536574; padding: 10px 12px; border-radius: 8px; background: #f2f6f8; }
.field-error { color: #b83935; font-size: 12px; margin-top: 6px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 23px; }
.page-heading .actions, .card-header .actions { margin-top: 0; }
.actions > a:not(.button) { font-size: 12px; }
.category-tabs { margin: 0 0 18px; }
.portal-notice { background: #fff; border: 1px solid #e1e5eb; border-radius: 12px; padding: 16px 20px; margin: 0 0 18px; overflow-wrap: anywhere; }
.portal-notice h2 { margin: 0 0 6px; font-size: 18px; }
.portal-notice p { margin: 0; white-space: pre-wrap; }
.dashboard-order-action { margin: 0 0 24px; }
.catalog-save { position: sticky; top: 0; z-index: 2; background: #f3f5f7; padding: 8px 0; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 41px; padding: 10px 17px; border: 1px solid #dbe1e6; border-radius: 7px; background: white; color: #455563; font-size: 12px; font-weight: 600; line-height: 1.45; text-align: center; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; }
.button:hover, button:hover { text-decoration: none; background: #f6f8fa; border-color: #b9c4cd; }
.button.primary, button.primary { color: white; background: var(--coral); border-color: var(--coral); box-shadow: 0 3px 6px #d96b5d20; }
.button.primary:hover, button.primary:hover { background: var(--coral-dark); border-color: var(--coral-dark); }
.button.secondary, button.secondary { color: #485b68; background: white; }
.button.danger, button.danger { color: #b53d38; border-color: #edc9c4; background: #fff8f6; }
.button.danger:hover, button.danger:hover { background: #ffede9; }
.button.small, button.small { min-height: 32px; font-size: 11px; padding: 6px 11px; }
.button.block, button.block { display: flex; width: 100%; }
.table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; vertical-align: middle; padding: 15px 22px; border-bottom: 1px solid #edf0f2; }
th { background: #fafbfc; color: #8b959f; font-size: 10px; font-weight: 550; letter-spacing: .025em; white-space: nowrap; }
td { color: #53616e; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fdfdfd; }
td:first-child { color: #263e4b; font-weight: 500; }
td a { font-weight: 550; }
td .help { margin-top: 3px; }
td .button { white-space: nowrap; }
td .text-muted { font-size: 11px; }
.table-wrap td.mono, .table-wrap .nowrap { white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 5px; font-size: 10px; line-height: 1.5; font-weight: 600; background: #f0f3f6; color: #647383; white-space: nowrap; }
.badge.queued, .badge.pending, .badge.waiting { background: #fff3df; color: #956a23; }
.badge.mock_completed, .badge.completed, .badge.success { background: #e9f5ee; color: #357956; }
.badge.mock_partial_failed, .badge.warning { background: #fff0e3; color: #9e6b2f; }
.badge.mock_failed, .badge.failed, .badge.error { background: #fceceb; color: #b44842; }
.badge.cancelled { background: #eef0f3; color: #84909a; }
.badge.admin, .badge.info { background: #edf0f9; color: #626f9c; }
.alert { padding: 13px 16px; border-radius: 8px; border: 1px solid; font-size: 12px; margin: 0 0 22px; line-height: 1.8; overflow-wrap: anywhere; }
.alert.info { color: #446b80; background: #f0f7fb; border-color: #d7e9f2; }
.alert.success { color: #347153; background: #eff8f1; border-color: #cfe7d6; }
.alert.error { color: #ad3e38; background: #fff2ef; border-color: #efcfc9; }
.alert.warning { color: #916e31; background: #fffaef; border-color: #ebdfc4; }
.empty-state { padding: 55px 24px; text-align: center; color: #8d98a2; font-size: 13px; }
.empty-state h2, .empty-state h3, .empty-state strong { color: #526775; display: block; }
.empty-state p { margin-bottom: 16px; }
.empty-state .actions { justify-content: center; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 25px; margin: 0; }
.detail-grid > div { min-width: 0; }
.detail-grid:has(> dt) { grid-template-columns: minmax(100px, .7fr) minmax(0, 1.4fr); gap: 15px 20px; align-items: baseline; }
.detail-grid.order-details { grid-template-columns: max-content minmax(0, 1fr); gap: 10px clamp(12px, 2vw, 20px); }
.detail-grid dt { color: #8a959e; font-size: 11px; margin-bottom: 5px; }
.detail-grid dd { margin: 0; color: #344a59; font-size: 13px; overflow-wrap: anywhere; }
.order-details dt { margin-bottom: 0; }
.detail-grid .full { grid-column: 1 / -1; }
.mono { font-family: "Cascadia Code", "Consolas", monospace; font-size: .92em; overflow-wrap: anywhere; }
.text-muted { color: var(--muted); }
.inline-form { display: flex; flex-wrap: wrap; gap: 9px; align-items: end; }
.inline-form .field { margin: 0; flex: 1 1 130px; }
.inline-form button { flex-shrink: 0; }
.inline-form > input:not([type="hidden"]) { width: 110px; flex: 1 1 110px; min-height: 34px; font-size: 11px; padding: 7px 9px; }
.data-table td:has(> .inline-form) { min-width: 345px; }
.metric-strip { display: flex; flex-wrap: wrap; gap: 24px; padding: 19px 21px; background: #f8fafb; border: 1px solid var(--line); border-radius: 9px; margin: 20px 0; }
.metric-strip > div { flex: 1; min-width: 85px; }
.metric-strip .stat-label { font-size: 10px; margin-bottom: 4px; }
.metric-strip .stat-value { font-size: 23px; margin: 0; }
.metric-strip strong { display: block; font-variant-numeric: tabular-nums; }
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 0 0 25px 31px; color: #7b8a94; font-size: 12px; }
.step::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border: 2px solid #c9d3da; border-radius: 50%; background: white; }
.step::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1px; background: #e3e9ed; }
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step strong { display: block; color: #425967; font-size: 12px; margin-bottom: 3px; }
.step small { font-size: 11px; }
.step.done::before { border-color: #68a08b; background: #68a08b; }
.step.current::before { border-color: #e8836c; background: #fff3ed; box-shadow: 0 0 0 4px #fff0e9; }
.step:has(> span) { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 10px; padding-left: 0; }
.step:has(> span)::before { display: none; }
.step:has(> span)::after { left: 13px; top: 31px; }
.step > span { display: flex; justify-content: center; align-items: center; width: 27px; height: 27px; border-radius: 50%; background: #fff0e9; color: #bd7761; font-size: 10px; font-weight: 600; }
.step > div > p { font-size: 11px; line-height: 1.8; margin: 1px 0 0; }
.money { font-variant-numeric: tabular-nums; font-weight: 650; }
.money.positive { color: #3c8a67; }
.money.negative { color: #bf6659; }
.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 19px; }
.toolbar .actions { margin: 0; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); margin-top: 38px; padding: 18px 0 23px; color: #9aa3ab; font-size: 10px; }
.auth-shell { display: grid; grid-template-columns: minmax(400px, 45%) minmax(0, 1fr); min-height: 100vh; }
.auth-story { position: relative; display: flex; flex-direction: column; padding: 43px 50px 25px; background: var(--navy); color: white; overflow: hidden; }
.auth-story::after { content: ""; position: absolute; width: 430px; height: 430px; top: 3%; right: -270px; border: 1px solid #ffffff0c; box-shadow: 0 0 0 45px #ffffff03, 0 0 0 90px #ffffff02; border-radius: 50%; pointer-events: none; }
.auth-story .brand { position: relative; z-index: 1; }
.auth-story-content { position: relative; z-index: 1; margin: auto 0; padding: 64px 0 66px; }
.auth-kicker { display: inline-block; font-size: 10px; color: #9eafb8; letter-spacing: .2em; margin-bottom: 23px; }
.auth-story h1 { font-size: clamp(29px, 3.1vw, 45px); line-height: 1.5; letter-spacing: -.03em; font-weight: 600; margin-bottom: 22px; }
.auth-story h1 span { color: #f7a18e; }
.auth-story p { font-size: 13px; line-height: 2; color: #92a7b4; }
.story-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 47px; padding-top: 25px; border-top: 1px solid #344753; }
.story-flow > div > span { display: block; font-size: 10px; color: #e6a18f; letter-spacing: .1em; margin-bottom: 10px; }
.story-flow strong { display: block; font-size: 12px; font-weight: 550; color: #dce4e9; }
.story-flow small { display: block; color: #859ca9; font-size: 10px; line-height: 1.8; margin-top: 4px; }
.auth-story-footer { display: flex; align-items: center; gap: 7px; color: #8097a6; font-size: 9px; }
.auth-story-footer .status-dot { background: #8bbb9f; width: 5px; height: 5px; }
.auth-story-footer > span:last-child { margin-left: auto; }
.auth-workspace { display: flex; flex-direction: column; min-width: 0; background: #fdfdfd; }
.auth-topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding: 37px 42px; font-size: 11px; color: #9ba3ab; }
.auth-topbar nav { display: flex; gap: 19px; }
.auth-topbar a { color: #52616b; }
.auth-topbar a:last-child { color: var(--coral); }
.auth-main { width: 100%; max-width: 620px; margin: auto; padding: 25px 45px 40px; }
.auth-main > .simulation-banner { margin-bottom: 35px; font-size: 10px; flex-direction: column; gap: 2px; }
.auth-content { max-width: 420px; margin: 0 auto; }
.auth-content .page-heading { margin-bottom: 28px; }
.auth-content h1 { font-size: 28px; margin-bottom: 12px; }
.auth-content .subtitle { font-size: 12px; }
.auth-content .card { box-shadow: none; border: none; border-radius: 0; overflow: visible; background: transparent; }
.auth-content .card-body { padding: 0; }
.auth-content .card-header { padding: 0 0 20px; border: 0; }
.auth-content .actions { align-items: stretch; }
.auth-content .actions .primary { flex: 1 1 100%; min-height: 44px; }
.auth-content .field { margin-bottom: 19px; }
.auth-card .subtitle { margin-bottom: 25px; }
.auth-card .stack { gap: 0; }
.auth-card form > .button { width: 100%; min-height: 44px; margin-top: 6px; }
.auth-card > .help { margin-top: 20px; text-align: center; }
.empty-symbol { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: #fff2ec; border-radius: 14px; color: #cc8b77; font-size: 25px; margin-bottom: 15px; }
.auth-footer { padding: 20px 30px; color: #a0a7ad; font-size: 10px; text-align: center; }
pre { padding: 15px; background: #f5f7f9; border: 1px solid var(--line); border-radius: 8px; white-space: pre-wrap; word-break: break-word; font-family: "Consolas", monospace; font-size: 11px; max-height: 500px; overflow: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
@media (min-width: 1550px) { .main-content { padding-top: 34px; } .auth-story { padding-left: 75px; padding-right: 65px; } }
@media (max-width: 1150px) { .app-shell { grid-template-columns: 210px minmax(0, 1fr); } .sidebar { padding-left: 12px; padding-right: 12px; } .main-content { padding: 24px 25px 0; } .topbar { padding-left: 25px; padding-right: 25px; } .grid-2 { grid-template-columns: minmax(0, 1fr); } .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; } .stat-card { padding-left: 18px; padding-right: 18px; } .topbar-email { display: none; } .auth-story { padding-left: 34px; padding-right: 30px; } .auth-topbar { padding: 30px; } .auth-main { padding-left: 30px; padding-right: 30px; } }
@media (max-width: 850px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; padding: 18px 22px 9px; }
  .sidebar-brand { padding: 0 0 16px; }
  .brand-mark { width: 33px; height: 35px; font-size: 21px; border-radius: 9px 9px 9px 3px; }
  .brand-words { font-size: 17px; }
  .brand-words small { margin-top: 4px; font-size: 9px; }
  .sidebar-nav { display: flex; gap: 20px; }
  .nav-group { display: flex; flex-shrink: 0; gap: 4px; align-items: center; }
  .nav-group + .nav-group { margin: 0; border-left: 1px solid #3b4f5b; padding-left: 13px; }
  .nav-label { display: none; }
  .nav-item { gap: 7px; padding: 8px 11px; font-size: 11px; }
  .nav-item svg { width: 15px; height: 15px; }
  .sidebar-footer { position: absolute; top: 18px; right: 22px; padding: 0; }
  .sidebar-note, .sidebar-user { display: none; }
  .logout-button { min-height: 33px; padding: 6px 11px; gap: 20px; color: #b9c8d1; font-size: 10px; }
  .topbar { min-height: 60px; padding-top: 12px; padding-bottom: 12px; }
  .main-content { padding-top: 20px; }
  .auth-shell { grid-template-columns: minmax(290px, 40%) minmax(0, 1fr); }
  .auth-story { padding: 32px 25px 20px; }
  .auth-story h1 { font-size: 28px; }
  .story-flow { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .story-flow > div { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; }
  .story-flow > div > span { grid-row: span 2; margin: 0; padding-top: 1px; }
  .story-flow small { margin: 0; }
  .auth-story-footer > span:last-child { display: none; }
  .auth-topbar > span { display: none; }
  .auth-topbar { justify-content: end; padding-bottom: 5px; }
}
@media (max-width: 620px) {
  .main-content { padding: 17px 16px 0; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .breadcrumb { gap: 7px; font-size: 11px; }
  .balance-chip { font-size: 10px; }
  .balance-chip strong { font-size: 12px; }
  .simulation-banner { gap: 3px; flex-direction: column; margin-bottom: 23px; padding: 10px 12px; font-size: 10px; }
  .page-heading { margin-bottom: 20px; }
  h1 { font-size: 25px; }
  .subtitle { font-size: 12px; }
  .stats-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
  .stat-card { padding: 15px 19px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 15px; }
  .stat-label { margin: 0; }
  .stat-value { font-size: 27px; margin: 0; grid-column: 2; grid-row: 1 / 3; }
  .stat-meta { grid-column: 1; margin-top: 2px; }
  .card-header { padding: 17px 18px; }
  .card-body { padding: 19px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-grid .full, .form-grid .field-full, .form-grid .span-2 { grid-column: auto; }
  .detail-grid { grid-template-columns: 1fr; gap: 17px; }
  .detail-grid .full { grid-column: auto; }
  th, td { padding: 13px 16px; }
  .page-footer { margin-top: 28px; font-size: 9px; }
  .auth-shell { display: block; }
  .auth-story { padding: 23px 24px; }
  .auth-story-content { padding: 25px 0 7px; }
  .auth-kicker { font-size: 9px; margin-bottom: 12px; }
  .auth-story h1 { font-size: 27px; line-height: 1.5; margin-bottom: 0; }
  .auth-story p, .story-flow, .auth-story-footer { display: none; }
  .auth-topbar { padding: 19px 24px 0; font-size: 11px; }
  .auth-main { padding: 23px 24px 28px; max-width: 470px; }
  .auth-main > .simulation-banner { margin-bottom: 26px; }
  .auth-content h1 { font-size: 25px; }
  .auth-footer { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.order-target { min-width: 12rem; max-width: 24rem; overflow-wrap: anywhere; }
.order-thumbnail { display: block; object-fit: contain; border: 1px solid #edf0f2; border-radius: 4px; }
.order-search { margin-bottom: 12px; flex-wrap: wrap; }
