/* 拾光来信 · a quiet workspace, without external dependencies */
:root {
    color-scheme: light;
    --canvas: #fbf8f2;
    --surface: #fffdf9;
    --pine: #304c41;
    --pine-dark: #233c33;
    --pine-soft: #eaf0e9;
    --ink: #293d34;
    --muted: #72766c;
    --line: #e6e3d9;
    --rose: #95635f;
    --rose-soft: #f6eae5;
    --sand: #f2eee5;
    --radius: 16px;
    --sidebar: 232px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
    -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, textarea { color: inherit; }
button { border: 0; }
button:disabled, .is-disabled { cursor: not-allowed; opacity: .47; }
button:disabled { box-shadow: none; }
button, a { touch-action: manipulation; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #996c58; outline-offset: 4px; }
::selection { color: var(--pine-dark); background: #dce6d7; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-reverse { transform: rotate(180deg); }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0); white-space: nowrap; border: 0 !important; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--pine); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.noscript-notice { position: relative; z-index: 40; padding: 12px 24px; text-align: center; background: var(--rose-soft); color: #744c48; }
.muted { color: var(--muted); }
.tabular, .stat-value, .order-amount, .order-dates, .pagination { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .16em; line-height: 1.7; color: var(--muted); }
.button { min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 13px; font-weight: 600; line-height: 1.5; transition: background .16s, border-color .16s; text-align: center; }
.button-primary { background: var(--pine); color: #fffdf8; border-color: var(--pine); }
.button-secondary { background: var(--surface); color: var(--pine); border-color: var(--line); }
.button-quiet { background: transparent; color: var(--pine); }
.button-warning { background: var(--rose); border-color: var(--rose); color: white; }
.button-full { width: 100%; }
.icon-button { width: 44px; min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); }
.text-link, .back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--pine); font-size: 13px; font-weight: 600; }
.text-link .icon { width: 16px; height: 16px; }
@media (hover: hover) {
    .button-primary:hover:not(:disabled) { background: var(--pine-dark); border-color: var(--pine-dark); }
    .button-secondary:hover:not(:disabled), .button-quiet:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: var(--pine-soft); border-color: #d1dacd; }
    .button-warning:hover:not(:disabled) { background: #7e504c; border-color: #7e504c; }
    .text-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
}
.workspace { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); border-right: 1px solid var(--line); background: #f6f3eb; padding: 34px 22px 24px; display: flex; flex-direction: column; z-index: 20; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; background: var(--pine); color: var(--canvas); border-radius: 13px 13px 13px 3px; flex-shrink: 0; }
.brand-mark .icon { width: 25px; height: 25px; stroke-width: 1.3; }
.brand strong { display: block; font-size: 21px; letter-spacing: .12em; font-weight: 600; }
.brand small { display: block; margin-top: 3px; font-size: 7px; letter-spacing: .13em; color: var(--muted); }
.nav-caption { margin: 51px 12px 13px; font-size: 10px; letter-spacing: .15em; color: var(--muted); }
.side-navigation { display: grid; gap: 8px; }
.nav-link { min-height: 49px; display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 9px; color: #687367; font-size: 13px; }
.nav-link.is-active { background: var(--pine); color: #fffdf9; font-weight: 600; }
.nav-active-mark { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: currentColor; visibility: hidden; }
.is-active .nav-active-mark { visibility: visible; }
.website-link { margin-top: 18px; }
.sidebar-note { margin: auto 8px 35px; padding-top: 72px; }
.sidebar-note > .icon { color: #a0836a; width: 24px; height: 24px; margin-bottom: 16px; }
.sidebar-note p { font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 16px; color: var(--pine); line-height: 1.9; }
.sidebar-note span { display: block; margin-top: 12px; font-size: 10px; color: var(--muted); }
.sidebar-footer { border-top: 1px solid var(--line); padding-top: 20px; display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #7e936d; }
.workspace-main { margin-left: var(--sidebar); min-width: 0; }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 36px; border-bottom: 1px solid var(--line); }
.breadcrumb { min-width: 0; display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 11px; }
.breadcrumb > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.breadcrumb strong { color: var(--pine); font-weight: 500; white-space: nowrap; }
.account-tools { display: flex; align-items: center; gap: 14px; min-width: 0; flex-shrink: 0; }
.account-name { display: flex; align-items: center; gap: 9px; font-size: 12px; min-width: 0; }
.account-name > span:last-child { max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: var(--pine); background: #e8e9de; font-size: 11px; }
.logout-button { font-size: 12px; font-weight: 400; padding: 8px 10px; color: var(--muted); }
.logout-button .icon { width: 16px; height: 16px; }
.mobile-brand, .mobile-navigation { display: none; }
.main-content { max-width: 1600px; margin: 0 auto; padding: 36px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.page-heading > div { min-width: 0; }
.page-heading h1 { font-size: 29px; letter-spacing: -.035em; margin-top: 7px; }
.page-heading > div > p:last-child { margin-top: 9px; font-size: 12px; color: var(--muted); line-height: 1.9; }
.page-heading > .button { flex-shrink: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-top h2 { font-size: 12px; font-weight: 500; color: #5e6b5f; }
.stat-icon { color: #71836e; width: 32px; height: 32px; border-radius: 9px; background: #f3f4eb; display: grid; place-items: center; }
.stat-icon .icon { width: 17px; height: 17px; }
.stat-card:nth-child(3) .stat-icon { background: var(--rose-soft); color: var(--rose); }
.stat-value { display: block; font-size: 36px; letter-spacing: -.04em; font-weight: 500; line-height: 1.3; margin-top: 9px; overflow-wrap: anywhere; }
.stat-card > p { margin-top: 7px; color: var(--muted); font-size: 10px; }
.workflow-strip { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 22px 25px; background: #eeefe5; border-radius: var(--radius); margin: 0 0 28px; }
.workflow-title { display: flex; align-items: center; gap: 14px; }
.workflow-symbol { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid #d3d9c7; border-radius: 50%; flex-shrink: 0; }
.workflow-title h2 { font-size: 14px; }
.workflow-title p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.workflow-strip ol { list-style: none; display: flex; align-items: center; gap: 24px; padding: 0; margin: 0; }
.workflow-strip li { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.workflow-strip li span { font-size: 10px; color: #78856b; border-bottom: 1px solid #c8d0be; line-height: 1.8; }
.orders-panel, .settings-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel-heading { padding: 25px 24px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-heading > div { min-width: 0; }
.panel-heading h2 { font-size: 17px; }
.panel-heading p { margin-top: 6px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.panel-heading > .text-link { flex-shrink: 0; }
.orders-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 24px 20px; }
.filter-tabs { display: flex; padding: 4px; border-radius: 9px; background: var(--sand); gap: 3px; }
.filter-tab { min-height: 38px; padding: 9px 13px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); white-space: nowrap; border: 1px solid transparent; border-radius: 6px; }
.filter-tab.is-active { background: var(--surface); color: var(--pine); border-color: #dedfd3; font-weight: 600; }
.search-form { display: flex; align-items: center; gap: 8px; width: 300px; max-width: 100%; }
.search-input { position: relative; min-width: 0; flex: 1; }
.search-input .icon { position: absolute; left: 12px; top: 13px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search-input input { padding-left: 36px; font-size: 12px; min-height: 44px; }
.search-form .button { padding: 9px 12px; font-size: 12px; flex-shrink: 0; }
.search-summary { padding: 0 24px 14px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.search-summary .text-link { margin-left: 14px; }
.orders-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: 12px; }
.orders-table th { padding: 13px 12px; font-size: 10px; font-weight: 500; color: var(--muted); background: #f7f6ef; border-block: 1px solid var(--line); }
.orders-table th:first-child { width: 18%; padding-left: 24px; }
.orders-table th:nth-child(2) { width: 14%; }
.orders-table th:nth-child(3) { width: 11%; }
.orders-table th:nth-child(4) { width: 19%; }
.orders-table th:nth-child(5) { width: 6%; }
.orders-table th:last-child { width: 32%; padding-right: 24px; }
.orders-table td { padding: 22px 12px; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.orders-table td:first-child { padding-left: 24px; }
.orders-table td:last-child { padding-right: 24px; }
.orders-table tbody tr:last-child td { border-bottom: 0; }
.cell-value { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.order-number { font-size: 12px; font-weight: 600; line-height: 1.8; }
.order-amount { color: var(--muted); font-size: 11px; }
.recipient-name { font-size: 12px; font-weight: 500; line-height: 1.8; }
.theme-name { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.theme-dot { width: 7px; height: 7px; border: 1px solid #beaf96; border-radius: 50%; background: #eee1c3; flex-shrink: 0; }
.theme-forest { background: #6e846c; border-color: #61765e; }
.theme-starlight { background: #9f9bb1; border-color: #89849e; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; font-size: 10px; line-height: 1.8; white-space: nowrap; }
.status-badge > span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-published { background: #eaf0e6; color: #466343; }
.status-draft { background: #f3ece0; color: #85683f; }
.status-disabled { background: #efedea; color: #79756c; }
.order-dates { font-size: 10px; line-height: 1.8; color: #627161; }
.order-dates small { color: var(--muted); font-size: 10px; }
.order-views { padding-top: 26px !important; font-size: 12px; }
.order-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 6px; margin-top: -7px; }
.row-action { min-height: 38px; display: flex; align-items: center; justify-content: flex-start; gap: 6px; background: transparent; border: 1px solid transparent; border-radius: 6px; color: var(--pine); padding: 7px 5px; font-size: 11px; white-space: nowrap; }
.row-action .icon { width: 14px; height: 14px; }
.action-warning { color: var(--rose); }
.order-note { width: 100%; color: var(--muted); font-size: 10px; }
.order-note summary { cursor: pointer; padding: 9px 0; min-height: 36px; }
.order-note p { padding: 8px; background: var(--sand); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mobile-cell-label { display: none; }
.list-footer { padding: 17px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.list-footer > p { font-size: 10px; color: var(--muted); }
.pagination { display: flex; align-items: center; gap: 8px; font-size: 11px; white-space: nowrap; }
.pagination .icon-button { border-color: var(--line); background: var(--surface); width: 36px; min-width: 36px; height: 36px; }
.pagination .icon { width: 15px; height: 15px; }
.empty-state { border-top: 1px solid var(--line); padding: 58px 24px; text-align: center; }
.empty-illustration { width: 80px; height: 80px; margin: 0 auto 20px; display: grid; place-items: center; background: var(--sand); border-radius: 50%; }
.empty-illustration .icon { width: 38px; height: 38px; stroke-width: 1; color: #839277; }
.empty-state h3 { margin: 9px 0; font-size: 20px; }
.empty-state > p:not(.eyebrow) { max-width: 350px; margin: 0 auto 23px; font-size: 12px; color: var(--muted); line-height: 1.9; }
.workspace-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; color: #777c6f; font-size: 10px; }
.workspace-footer span:first-child { letter-spacing: .14em; }
.heading-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; flex-shrink: 0; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 29%); align-items: start; gap: 24px; }
.settings-forms { display: grid; gap: 24px; min-width: 0; }
.panel-title-with-icon { display: flex; align-items: center; gap: 13px; }
.section-symbol { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: var(--pine-soft); color: var(--pine); border-radius: 11px; flex-shrink: 0; }
.section-number { align-self: flex-start; padding-top: 4px; color: #a6ab9a; font-size: 11px; letter-spacing: .1em; }
.settings-form { padding: 0 24px 24px; }
.stack-form { display: grid; gap: 21px; }
.field { min-width: 0; }
.field > label, .field-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--pine); }
.required-mark, .optional { margin-left: 6px; font-size: 10px; font-weight: 400; }
.required-mark { color: var(--rose); }
.optional { color: var(--muted); }
input, textarea { display: block; width: 100%; min-width: 0; border: 1px solid #dadfd2; background: #fffefa; color: var(--ink); border-radius: 8px; padding: 12px 13px; line-height: 1.5; min-height: 46px; transition: border-color .15s; }
input:focus, textarea:focus { border-color: #788c73; }
input::placeholder, textarea::placeholder { color: #83887d; opacity: 1; font-size: 12px; }
textarea { resize: vertical; min-height: 90px; }
input[type="number"] { font-variant-numeric: tabular-nums; }
.field-help { font-size: 11px; color: var(--muted); line-height: 1.9; margin-top: 8px; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-field .icon-button { position: absolute; right: 2px; top: 2px; width: 42px; min-width: 42px; height: calc(100% - 4px); }
.input-with-unit { position: relative; }
.input-with-unit input { padding-right: 47px; }
.input-with-unit > span { position: absolute; right: 16px; top: 13px; font-size: 12px; color: var(--muted); pointer-events: none; }
.short-field { max-width: 220px; }
.form-footer { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-footer > p { font-size: 11px; color: var(--muted); }
.form-footer .button { flex-shrink: 0; }
.settings-aside { display: grid; gap: 24px; min-width: 0; }
.deployment-note { padding: 26px; background: #eeefe5; border: 1px solid #e3e6d9; border-radius: var(--radius); }
.deployment-note .section-symbol { border: 1px solid #d0d8c5; background: transparent; margin-bottom: 22px; }
.deployment-note h2 { font-size: 21px; line-height: 1.6; margin: 8px 0 12px; }
.deployment-note > p:not(.eyebrow) { color: #677561; font-size: 12px; line-height: 1.9; }
.deployment-checklist { list-style: none; padding: 0; margin: 26px 0 0; counter-reset: checklist; display: grid; gap: 23px; }
.deployment-checklist li { padding-left: 27px; position: relative; counter-increment: checklist; }
.deployment-checklist li::before { content: counter(checklist, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-size: 10px; color: #879477; }
.deployment-checklist strong { display: block; font-size: 12px; font-weight: 600; }
.deployment-checklist span { display: block; font-size: 11px; line-height: 1.9; margin-top: 5px; color: #677561; }
.deployment-checklist code { background: #e0e6d8; padding: 1px 4px; border-radius: 3px; }
.privacy-note { display: flex; align-items: flex-start; gap: 12px; padding: 0 8px; }
.privacy-note > .icon { color: #9c7c6a; margin-top: 2px; }
.privacy-note h3 { font-size: 12px; }
.privacy-note p { font-size: 11px; color: var(--muted); line-height: 1.9; margin-top: 7px; }
.feedback { padding: 12px 15px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.feedback-error { background: var(--rose-soft); border-color: #e9d4cc; color: #854d48; }
.feedback-success { background: var(--pine-soft); border-color: #d6e0cc; color: var(--pine); }
.feedback p { margin-top: 8px; }
.auth-layout { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 51% 49%; }
.auth-story { min-width: 0; background: var(--pine); color: var(--canvas); display: flex; flex-direction: column; padding: 42px 9% 28px; }
.brand-light .brand-mark { background: #466252; color: var(--canvas); border: 1px solid #6a7a65; }
.brand-light small { color: #b4c2ac; }
.auth-story-content { width: 100%; max-width: 520px; margin: auto; padding-top: 70px; }
.auth-story-content > .eyebrow { color: #b4c2ac; font-size: 10px; }
.auth-story h1 { font-family: "Songti SC", "STSong", "SimSun", serif; font-size: clamp(38px, 3.8vw, 58px); font-weight: 400; line-height: 1.5; letter-spacing: .06em; margin: 20px 0 19px; }
.auth-story-copy { font-size: 13px; line-height: 2; color: #ccd5c2; }
.letter-art { margin: 24px -10px 18px; }
.letter-art > svg { width: 100%; max-height: 300px; }
.art-caption { display: block; font-size: 10px; color: #b4c2ac; text-align: center; letter-spacing: .13em; margin-top: 10px; }
.auth-story-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #546c59; padding-top: 18px; margin-top: 34px; font-size: 9px; color: #b4c2ac; }
.auth-main { padding: 35px 10% 28px; min-width: 0; display: flex; flex-direction: column; }
.auth-main > .back-link { align-self: flex-start; color: var(--muted); font-size: 11px; }
.auth-main > .back-link .icon { width: 16px; height: 16px; }
.auth-form-wrap { max-width: 385px; width: 100%; margin: auto; padding: 48px 0; }
.auth-form-wrap > .section-symbol { margin-bottom: 26px; width: 46px; height: 46px; border-radius: 13px; }
.auth-form-wrap h2 { font-size: 27px; letter-spacing: -.03em; margin-top: 8px; }
.section-description { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 12px 0 30px; }
.auth-form-wrap .stack-form { gap: 22px; }
.auth-form-wrap .button-full { margin-top: 4px; min-height: 49px; }
.auth-form-wrap .button-full .icon { margin-left: auto; }
.auth-form-wrap .button-full span { flex: 1; }
.auth-security { display: flex; align-items: flex-start; justify-content: center; gap: 6px; font-size: 10px; color: var(--muted); }
.auth-security .icon { width: 13px; height: 13px; margin-top: 2px; }
.auth-copyright { font-size: 10px; color: var(--muted); text-align: center; }
.auth-copyright > span { margin: 0 12px; color: #aaa99b; }
.has-modal { overflow: hidden; }
.modal { width: min(580px, calc(100% - 32px)); max-width: 100%; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 28px; border: 1px solid var(--line); border-radius: 19px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 100px #152d2a29; overflow: auto; overscroll-behavior: contain; }
.modal:not([open]) { display: none; }
.modal-small { width: min(460px, calc(100% - 32px)); }
.modal.dialog-fallback[open] { position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 90; box-shadow: 0 0 0 100vmax #142c2599, 0 24px 100px #152d2a29; }
.modal > [data-dialog-notice] { margin-bottom: 16px; }
.modal::backdrop { background: #142c2599; backdrop-filter: blur(3px); }
.modal-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.modal-header h2 { font-size: 23px; margin-top: 5px; }
.modal-header > .icon-button { margin: -8px -8px 0 0; }
.modal > .muted, [data-create-fields] > .muted { font-size: 12px; line-height: 1.9; margin-bottom: 22px; }
.modal .stack-form { gap: 19px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 5px; }
.modal > .modal-actions { margin-top: 22px; }
.inline-note { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.9; color: #6b7a63; padding: 11px 12px; background: #f1f3e9; border-radius: 7px; }
.inline-note .icon { width: 16px; height: 16px; margin-top: 2px; }
.success-symbol { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--pine-soft); border-radius: 50%; color: var(--pine); margin: 28px 0 18px; }
.success-symbol .icon { width: 28px; height: 28px; }
.create-success h3 { font-size: 22px; margin-bottom: 10px; }
.create-success > .muted { font-size: 12px; overflow-wrap: anywhere; }
.created-order { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; margin: 12px 0 16px; border-block: 1px solid var(--line); font-size: 12px; }
.created-order span { color: var(--muted); flex-shrink: 0; }
.created-order strong { overflow-wrap: anywhere; text-align: right; }
.link-value { font-family: ui-monospace, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; background: #f5f5ed; }
.delivery-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.create-success .modal-actions { margin-top: 24px; }
.status-order-number { font-size: 13px; padding: 12px 14px; background: var(--sand); border-radius: 8px; margin-bottom: 20px; overflow-wrap: anywhere; }
.toast { position: fixed; bottom: 24px; left: calc(50% + var(--sidebar) / 2); transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(560px, calc(100% - 32px)); padding: 10px 12px 10px 18px; background: var(--pine-dark); color: var(--canvas); border: 1px solid #70816b; border-radius: 12px; box-shadow: 0 8px 30px #233c331f; font-size: 12px; overflow-wrap: anywhere; }
.toast .icon-button { color: var(--canvas); }
.toast.is-error { background: #754b47; border-color: #b48981; }
.auth-body .toast { left: 50%; }
@media (hover: hover) {
    .nav-link:not(.is-active):hover { background: #e9ecdf; color: var(--pine); }
    .row-action:not(:disabled):not(.is-disabled):hover { border-color: #d9dece; background: #f1f4e9; }
    .row-action.action-warning:hover { background: var(--rose-soft); border-color: #ebd5cc; }
    .order-row:hover { background: #fdfcf7; }
    .filter-tab:not(.is-active):hover { color: var(--pine); background: #e8eade; }
}
@media (min-width: 1700px) {
    .main-content { padding: 44px; }
    .stats-grid { gap: 22px; }
    .stat-card { padding: 24px 28px; }
}
@media (max-width: 1240px) {
    :root { --sidebar: 214px; }
    .sidebar { padding-inline: 18px; }
    .brand { gap: 9px; }
    .brand strong { font-size: 19px; }
    .brand small { font-size: 6px; }
    .brand-mark { width: 39px; height: 39px; }
    .main-content { padding: 28px; }
    .topbar { padding-inline: 28px; }
    .stat-card { padding: 17px; }
    .stats-grid { gap: 12px; }
    .workflow-strip { align-items: flex-start; }
    .workflow-strip ol { flex-wrap: wrap; gap: 8px 18px; max-width: 260px; }
    .orders-toolbar { align-items: stretch; flex-direction: column; gap: 13px; }
    .filter-tabs { align-self: flex-start; }
    .search-form { width: 100%; }
    .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display: block; width: auto; }
    .orders-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
    .orders-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 24px 24px; }
    .orders-table .order-row { border: 1px solid var(--line); border-radius: 12px; padding: 17px; min-width: 0; }
    .orders-table td, .orders-table td:first-child, .orders-table td:last-child { padding: 8px 0; border: 0; }
    .orders-table td:not(.order-identity):not(.order-actions-cell) { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
    .orders-table td:not(.order-identity):not(.order-actions-cell)::before { content: attr(data-label); color: var(--muted); font-size: 11px; line-height: 1.8; }
    .orders-table .order-identity { padding-top: 0; padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 9px; }
    .mobile-cell-label { display: block; color: var(--muted); font-size: 10px; }
    .order-number { font-size: 14px; }
    .order-amount { font-size: 12px; }
    .order-note summary { min-height: 44px; padding: 13px 0; }
    .order-note p { font-size: 12px; }
    .orders-table .order-actions-cell { border-top: 1px solid var(--line); padding-bottom: 0; padding-top: 14px; margin-top: 12px; }
    .order-actions { margin: 0; gap: 8px; }
    .row-action { border-color: var(--line); justify-content: center; min-height: 44px; background: #fffefa; }
    .order-views { padding-top: 8px !important; }
    .cell-value { gap: 4px; }
    .list-footer-note { display: none; }
    .settings-layout { grid-template-columns: minmax(0, 1fr); }
    .settings-aside { grid-template-columns: minmax(0, 1fr) minmax(180px, 30%); align-items: start; }
    .deployment-checklist { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .deployment-checklist li { padding-left: 0; padding-top: 23px; }
    .privacy-note { padding: 15px 0; }
}
@media (max-width: 1040px) and (min-width: 801px) {
    .page-heading { align-items: flex-start; }
    .page-heading h1 { font-size: 25px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .orders-table tbody { grid-template-columns: minmax(0, 1fr); }
    .workflow-strip { flex-direction: column; gap: 17px; }
    .workflow-strip ol { max-width: none; }
    .settings-aside { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .auth-layout { grid-template-columns: 43% 57%; }
    .auth-story { padding: 32px 9% 24px; }
    .auth-main { padding: 28px 9% 24px; }
    .auth-story-content { padding-top: 35px; }
    .auth-story h1 { font-size: 37px; }
    .auth-story-copy { font-size: 12px; }
    .auth-story-footer { flex-direction: column; gap: 6px; }
    .auth-form-wrap h2 { font-size: 25px; }
}
@media (max-width: 800px) {
    :root { --sidebar: 0px; }
    .sidebar, .breadcrumb { display: none; }
    .workspace-main { margin-left: 0; }
    .topbar { padding: 12px 24px; min-height: 72px; gap: 12px; }
    .mobile-brand { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 17px; white-space: nowrap; letter-spacing: .07em; }
    .mobile-brand > .icon { width: 25px; height: 25px; }
    .account-tools { gap: 5px; }
    .account-name { gap: 6px; }
    .account-name > span:last-child { max-width: 88px; }
    .account-avatar { width: 27px; height: 27px; }
    .main-content { padding: 28px 24px calc(100px + env(safe-area-inset-bottom)); }
    .page-heading { margin-bottom: 24px; }
    .page-heading h1 { font-size: 27px; }
    .stats-grid { gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 31px; }
    .stat-top { align-items: flex-start; }
    .stat-icon { width: 26px; height: 26px; }
    .stat-top h2 { font-size: 11px; }
    .stat-card > p { font-size: 10px; }
    .workflow-strip { padding: 20px; }
    .orders-table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mobile-navigation { position: fixed; z-index: 30; bottom: 0; inset-inline: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
    .mobile-navigation a { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 9px; color: var(--muted); font-size: 10px; }
    .mobile-navigation a.is-active { color: var(--pine); background: var(--pine-soft); font-weight: 600; }
    .mobile-navigation .icon { width: 21px; height: 21px; }
    .toast { bottom: calc(86px + env(safe-area-inset-bottom)); left: 50%; }
    .auth-body .toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
    .pagination .icon-button { width: 44px; min-width: 44px; height: 44px; }
}
@media (max-width: 620px) {
    .topbar { padding-inline: 16px; }
    .account-name > span:last-child { max-width: 60px; font-size: 11px; }
    .account-avatar { display: none; }
    .logout-button { gap: 5px; padding-inline: 8px; }
    .main-content { padding: 27px 16px calc(100px + env(safe-area-inset-bottom)); }
    .page-heading { flex-wrap: wrap; gap: 19px; }
    .page-heading h1 { font-size: 27px; }
    .page-heading > .button { width: 100%; min-height: 47px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
    .stat-card { padding: 16px 15px; border-radius: 12px; }
    .stat-value { font-size: 34px; margin-top: 9px; }
    .stat-top h2 { font-size: 12px; }
    .stat-card > p { margin-top: 6px; font-size: 11px; }
    .mobile-navigation a { font-size: 11px; }
    .field > label, .field-label { font-size: 13px; }
    .field-help { font-size: 12px; }
    .feedback { font-size: 13px; }
    .workflow-strip { flex-direction: column; gap: 21px; padding: 19px; margin-bottom: 22px; }
    .workflow-strip ol { width: 100%; max-width: none; justify-content: space-between; gap: 9px; }
    .workflow-strip li { flex-direction: column; align-items: flex-start; gap: 5px; font-size: 10px; }
    .workflow-strip li span { font-size: 10px; }
    .panel-heading { padding: 21px 18px 16px; gap: 12px; align-items: flex-start; }
    .panel-heading h2 { font-size: 17px; }
    .panel-heading p { font-size: 11px; }
    .panel-heading > .text-link { font-size: 11px; gap: 5px; }
    .orders-toolbar { padding: 0 14px 18px; gap: 14px; }
    .filter-tabs { align-self: stretch; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 3px; gap: 2px; }
    .filter-tab { min-height: 44px; padding: 9px 3px; font-size: 11px; }
    .search-form { gap: 7px; }
    input, textarea, .search-input input, .link-value { font-size: 16px; }
    .search-input input { padding-left: 34px; }
    .search-summary { padding-inline: 18px; }
    .orders-table tbody { grid-template-columns: minmax(0, 1fr); padding: 0 13px 16px; gap: 13px; }
    .orders-table .order-row { padding: 17px; }
    .order-number { font-size: 15px; }
    .order-identity .cell-value { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
    .order-identity .mobile-cell-label { grid-column: 1 / -1; }
    .order-identity .order-note { grid-column: 1 / -1; }
    .order-amount { align-self: start; line-height: 2.2; }
    .order-dates, .order-dates small { font-size: 11px; }
    .recipient-name { font-size: 13px; }
    .theme-name, .status-badge { font-size: 11px; }
    .row-action { min-height: 46px; font-size: 12px; gap: 7px; }
    .row-action .icon { width: 15px; height: 15px; }
    .list-footer { padding: 14px; gap: 8px; flex-wrap: wrap; }
    .pagination { gap: 5px; font-size: 11px; }
    .empty-state { padding: 39px 20px; }
    .empty-state > .eyebrow { font-size: 9px; }
    .empty-state h3 { font-size: 19px; }
    .workspace-footer { flex-direction: column; align-items: center; gap: 5px; margin-top: 24px; }
    .heading-note { display: none; }
    .settings-layout, .settings-forms { gap: 20px; }
    .settings-form { padding: 0 18px 21px; }
    .settings-panel .panel-heading { padding-block: 22px; }
    .panel-title-with-icon { gap: 10px; }
    .panel-title-with-icon .section-symbol { width: 37px; height: 37px; }
    .settings-aside { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .deployment-note { padding: 23px; }
    .deployment-checklist { grid-template-columns: minmax(0, 1fr); gap: 21px; }
    .deployment-checklist li { padding-top: 0; padding-left: 28px; }
    .privacy-note { padding: 0 5px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); gap: 19px; }
    .form-footer { flex-direction: column; align-items: stretch; gap: 12px; }
    .form-footer > p { order: 2; text-align: center; }
    .short-field { max-width: none; }
    .auth-layout { display: block; }
    .auth-story { padding: 27px 27px 30px; }
    .brand-light .brand-mark { width: 40px; height: 40px; }
    .brand-light strong { font-size: 21px; }
    .brand-light small { font-size: 7px; }
    .auth-story-content { padding-top: 30px; max-width: none; }
    .auth-story-content > .eyebrow { font-size: 8px; }
    .auth-story h1 { font-size: 30px; line-height: 1.7; margin: 10px 0 4px; letter-spacing: .03em; }
    .auth-story h1 br { display: none; }
    .auth-story-copy { font-size: 11px; line-height: 1.9; }
    .auth-story-copy br { display: none; }
    .letter-art, .auth-story-footer { display: none; }
    .auth-main { padding: 16px 25px calc(25px + env(safe-area-inset-bottom)); }
    .auth-main > .back-link { font-size: 11px; }
    .auth-form-wrap { padding: 23px 0 35px; }
    .auth-form-wrap > .section-symbol { display: none; }
    .auth-form-wrap h2 { font-size: 25px; }
    .section-description { margin-bottom: 26px; }
    .modal, .modal-small { width: calc(100% - 24px); padding: 22px 19px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 15px; }
    .modal-header h2 { font-size: 22px; }
    .modal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .modal-actions > .button { padding-inline: 10px; }
    .create-success .modal-actions { grid-template-columns: minmax(0, 1fr); }
    .delivery-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
    .create-success h3 { font-size: 20px; }
    .toast { gap: 9px; font-size: 12px; padding: 9px 9px 9px 14px; }
}
@media (max-width: 360px) {
    .mobile-brand { font-size: 15px; gap: 6px; }
    .account-name > span:last-child { max-width: 44px; }
    .page-heading h1 { font-size: 24px; }
    .stat-card { padding: 13px 12px; }
    .stat-top h2 { font-size: 11px; }
    .stat-icon { width: 23px; height: 23px; }
    .stat-card > p { font-size: 10px; }
    .stat-value { font-size: 30px; }
    .orders-table .order-row { padding: 14px; }
    .order-identity .cell-value { grid-template-columns: minmax(0, 1fr); }
    .order-amount { line-height: 1.8; }
    .list-footer { justify-content: center; }
    .list-footer > p { width: 100%; text-align: center; }
    .auth-story, .auth-main { padding-inline: 21px; }
    .auth-story h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
