:root {
  color-scheme: light;
  --ink: #1a1a2e;
  --muted: #666666;
  --line: #e0e0e0;
  --canvas: #f5f5f5;
  --paper: #fff;
  --green: #1a3a6b;
  --green-dark: #0f2345;
  --green-soft: #e8edf5;
  --lime: #f5a623;
  --orange: #f5a623;
  --orange-soft: #fff4e5;
  --red: #c1272d;
  --red-soft: #fbe8e9;
  --blue: #1a3a6b;
  --cyan: #00a9e8;
  --shadow: 0 12px 34px rgba(26, 58, 107, .07);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #2b5797; outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
.preview-bar { height: 34px; background: #1a3a6b; color: #fff; display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 0 24px; font-size: 11px; letter-spacing: .01em; }
.preview-bar > span { margin-right: auto; display: flex; align-items: center; gap: 7px; color: #e0eadf; }
.preview-dot, .environment-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); display: inline-block; }
.preview-divider { opacity: .5; }
.preview-bar label { opacity: .75; }
.preview-bar select { border: 1px solid rgba(255,255,255,.22); border-radius: 6px; padding: 3px 24px 3px 8px; background: #2b5797; color: #fff; font-size: 11px; }
.app-shell { display: flex; min-height: calc(100vh - 34px); }
.sidebar { position: fixed; top: 34px; bottom: 0; left: 0; z-index: 5; display: flex; flex-direction: column; width: 248px; background: #fff; border-right: 1px solid var(--line); padding: 22px 15px 14px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 7px 27px; }
.corporate-logo { display: block; width: 76px; height: 64px; flex: 0 0 auto; object-fit: contain; }
.brand { position: relative; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font: 700 13px "Segoe UI", sans-serif; letter-spacing: -.025em; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.workspace-label { padding: 0 9px; color: #a0aaa4; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.role-switch { margin: 10px 0 28px; padding: 4px; background: #f4f6f3; border-radius: 10px; display: grid; gap: 3px; }
.role-button { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; padding: 8px 9px; background: transparent; border-radius: 7px; cursor: pointer; color: #687770; text-align: left; font-size: 12px; font-weight: 600; }
.role-button.active { background: #fff; color: var(--green); box-shadow: 0 2px 7px #233c3012; }
.role-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #e8ede8; color: #67756e; font-size: 10px; font-weight: 700; }
.role-button.active .role-icon { color: #fff; background: var(--green); }
.chevron { margin-left: auto; font-size: 16px; color: #99a49d; }
.nav-section-label { margin-bottom: 9px; }
.side-nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; padding: 10px 11px; color: #687770; background: transparent; border-radius: 8px; text-align: left; cursor: pointer; font-size: 12px; font-weight: 500; }
.nav-link:hover { background: #f7f8f6; color: var(--ink); }
.nav-link.active { background: var(--green-soft); color: var(--green); font-weight: 700; }
.nav-icon { width: 16px; text-align: center; color: currentColor; font-size: 15px; }
.nav-count { margin-left: auto; font-size: 10px; border-radius: 99px; padding: 2px 7px; background: #f0f2ef; color: #76817b; }
.nav-link.active .nav-count { background: #d6e7dc; color: var(--green); }
.sidebar-bottom { margin-top: auto; }
.help-card { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 14px; }
.help-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--green); background: #eff4e8; font-weight: 700; }
.help-card div, .account-copy { display: grid; gap: 3px; min-width: 0; }
.help-card strong, .account-copy strong { font-size: 10px; font-weight: 700; }
.help-card small, .account-copy small { color: var(--muted); font-size: 9px; }
.help-card .arrow { margin-left: auto; color: #a6b0a9; }
.account-row { display: flex; align-items: center; gap: 9px; padding: 11px 4px 2px; border-top: 1px solid var(--line); }
.avatar, .top-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 9px; font-weight: 700; }
.avatar-lime { color: #435a24; background: #e0edae; }
.account-copy { flex: 1; }
.icon-button { border: 0; background: transparent; color: #8b9891; cursor: pointer; font-size: 17px; border-radius: 6px; padding: 4px 7px; }
.icon-button:hover { background: #f1f4f0; }
.main-area { display: flex; flex-direction: column; min-width: 0; width: calc(100% - 248px); margin-left: 248px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 36px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #9aa49e; font-size: 11px; }
.breadcrumbs strong { color: #4c5b54; font-weight: 600; }
.crumb-sep { color: #c4ccc6; }
.top-actions { display: flex; align-items: center; gap: 17px; }
.environment-tag { display: inline-flex; align-items: center; gap: 6px; color: #1a3a6b; background: #e8edf5; border-radius: 99px; padding: 5px 9px; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.environment-dot { background: var(--cyan); width: 6px; height: 6px; }
.notification-button { position: relative; font-size: 20px; }
.notification-button i { position: absolute; top: 3px; right: 4px; width: 5px; height: 5px; border: 1px solid white; border-radius: 50%; background: #d8904d; }
.top-avatar { width: 28px; height: 28px; color: #435a24; background: #e0edae; }
.content-wrap { flex: 1; width: 100%; max-width: 1440px; padding: 31px 42px 44px; margin: 0 auto; }
.app-footer { display: flex; justify-content: space-between; color: #9ba59e; padding: 12px 42px 15px; font-size: 10px; }
.app-footer b { padding: 0 6px; color: #b4bdb7; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 24px; }
.eyebrow { color: #839188; font-size: 9px; font-weight: 700; letter-spacing: .12em; margin: 0 0 8px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Segoe UI", Arial, sans-serif; }
h1 { margin: 0; font-size: 25px; letter-spacing: -.055em; line-height: 1.2; font-weight: 700; }
.page-description { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.heading-meta { display: flex; align-items: center; gap: 8px; color: #89958e; font-size: 10px; white-space: nowrap; }
.heading-meta .calendar-icon { font-size: 14px; }
.layout-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(255px, .8fr); gap: 19px; align-items: start; }
.stack { display: grid; gap: 16px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.panel-pad { padding: 19px 20px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 15px; }
.panel-heading h2 { margin: 0; font-size: 13px; letter-spacing: -.025em; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.step-label { color: #96a39a; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.search-box { display: flex; align-items: center; gap: 9px; height: 41px; padding: 0 11px; border: 1px solid #dce4dd; border-radius: 8px; background: #fff; }
.search-box:focus-within { border-color: #7d9e89; box-shadow: 0 0 0 3px #e6f0e8; }
.search-box .search-icon { color: #91a097; font-size: 17px; }
.search-box input { width: 100%; border: 0; outline: 0; min-width: 0; color: var(--ink); font-size: 11px; background: transparent; }
.search-box input::placeholder { color: #a5afa8; }
.keyboard-hint { white-space: nowrap; color: #9aa59e; border: 1px solid #e6eae6; border-radius: 5px; padding: 3px 5px; font-size: 8px; }
.scanner-hint { display: flex; align-items: center; gap: 6px; padding-top: 9px; color: #929f96; font-size: 9px; }
.scanner-hint span:first-child { color: var(--green); font-size: 13px; }
.catalog-results { display: none; margin-top: 6px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 18px #203e3013; }
.catalog-results.open { display: block; }
.catalog-result { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-bottom: 1px solid #eff2ef; background: #fff; text-align: left; cursor: pointer; }
.catalog-result:last-child { border-bottom: 0; }
.catalog-result:hover { background: #f6f9f5; }
.product-thumb { display: grid; place-items: center; flex: 0 0 31px; height: 31px; border-radius: 7px; color: #4c6b52; background: #edf3e8; font-size: 12px; }
.product-copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.product-copy strong { font-size: 10px; font-weight: 600; }
.product-copy small { color: #8d9a91; font-size: 9px; }
.result-add { display: grid; place-items: center; width: 23px; height: 23px; color: var(--green); border-radius: 50%; background: var(--green-soft); font-size: 16px; }
.empty-search { padding: 14px 10px; color: #89958d; font-size: 10px; text-align: center; background: #fff; }
.manual-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; border: 0; padding: 0; color: var(--green); background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.manual-toggle:hover { color: var(--green-dark); }
.manual-toggle span { font-size: 15px; }
.manual-form { display: none; grid-template-columns: 1.5fr .7fr auto; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 8px; background: #f6f8f5; }
.manual-form.open { display: grid; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: #617068; font-size: 9px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid #dfe6e0; border-radius: 7px; background: #fff; padding: 9px 10px; color: var(--ink); font-size: 10px; }
.field input::placeholder, .field textarea::placeholder { color: #a4afa8; }
.field textarea { resize: vertical; min-height: 66px; }
.manual-add { align-self: end; white-space: nowrap; }
.line-list { display: grid; }
.line-head, .line-row { display: grid; grid-template-columns: minmax(140px, 1fr) 75px 91px 28px; align-items: center; gap: 9px; }
.line-head { padding: 0 8px 9px; color: #9aa59e; font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.line-row { padding: 10px 8px; border-top: 1px solid #eff2ef; }
.line-product { min-width: 0; display: grid; gap: 4px; }
.line-product strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; }
.line-product small { color: #929e96; font-size: 9px; }
.qty-input { width: 100%; border: 1px solid #e2e8e2; border-radius: 6px; padding: 7px; color: var(--ink); font-size: 10px; }
.unit-pill { color: #6c7a71; font-size: 9px; }
.remove-line { border: 0; width: 26px; height: 26px; color: #a3aea5; border-radius: 6px; background: transparent; cursor: pointer; font-size: 15px; }
.remove-line:hover { color: var(--red); background: var(--red-soft); }
.cart-empty { padding: 23px 8px; border-top: 1px solid #eff2ef; text-align: center; color: #94a097; font-size: 10px; }
.cart-empty span { display: block; margin-bottom: 7px; font-size: 21px; color: #b1bdb2; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.char-count { text-align: right; color: #a0aaa3; font-size: 8px; padding-top: 3px; }
.form-error { min-height: 14px; color: var(--red); font-size: 9px; margin-top: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 36px; border: 1px solid transparent; border-radius: 7px; padding: 0 14px; cursor: pointer; font-size: 10px; font-weight: 700; transition: background .15s ease, transform .15s ease; }
.button:active { transform: translateY(1px); }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-primary:disabled { color: #9da8a0; background: #e5eae5; cursor: not-allowed; transform: none; }
.button-secondary { color: #55645b; background: #fff; border-color: #dfe6df; }
.button-secondary:hover { background: #f7f9f6; }
.button-quiet { min-height: 30px; padding: 0 9px; color: var(--green); background: transparent; border-color: #dce7dd; }
.button-quiet:hover { background: #f2f7f1; }
.button-wide { width: 100%; min-height: 40px; }
.secure-note { display: flex; align-items: flex-start; gap: 8px; padding: 12px; color: #425d7d; background: #edf3fa; border-radius: 8px; font-size: 9px; line-height: 1.5; }
.secure-note span { font-size: 13px; }
.summary-card { padding: 18px; color: #fff; overflow: hidden; position: relative; border: 0; background: linear-gradient(145deg, #2b5797, #0f2345); }
.summary-card::after { position: absolute; content: ""; width: 150px; height: 150px; right: -64px; top: -73px; border: 1px solid #ffffff1c; border-radius: 50%; box-shadow: 0 0 0 21px #ffffff0c, 0 0 0 42px #ffffff08; }
.summary-card .eyebrow { color: #d6e2f3; }
.summary-card h3 { max-width: 210px; margin: 0 0 7px; font-size: 15px; letter-spacing: -.035em; line-height: 1.35; }
.summary-card p { max-width: 220px; color: #d6e2f3; margin: 0; font-size: 10px; line-height: 1.55; }
.summary-card .button { margin-top: 15px; color: #fff; background: #c1272d; }
.summary-card .button:hover { background: #8b1a1f; }
.mini-stat-list { display: grid; gap: 0; }
.mini-stat { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid #edf0ed; color: #77847b; font-size: 10px; }
.mini-stat:last-child { border: 0; padding-bottom: 2px; }
.mini-stat strong { color: #304239; font-size: 13px; font-family: "Segoe UI", sans-serif; }
.status-chip { display: inline-flex; align-items: center; gap: 5px; width: fit-content; border-radius: 99px; padding: 5px 8px; color: #62766a; background: #eff4ef; font-size: 8px; font-weight: 700; white-space: nowrap; }
.status-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-chip.status-new { color: #ad6d24; background: #fff3e3; }
.status-chip.status-review { color: #55769a; background: #edf4fb; }
.status-chip.status-complete { color: #427455; background: #eaf4eb; }
.status-chip.status-rejected { color: #a8524a; background: #fff0ee; }
.small-link { border: 0; color: var(--green); padding: 0; background: transparent; cursor: pointer; font-size: 9px; font-weight: 700; }
.small-link:hover { text-decoration: underline; }
.section-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.section-row h2 { margin: 0; font-size: 13px; letter-spacing: -.03em; }
.section-row .muted { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.filter-row { display: flex; gap: 8px; align-items: center; }
.filter-row .search-box { width: 240px; height: 34px; }
.filter-select { height: 34px; border: 1px solid #dfe6df; border-radius: 7px; padding: 0 27px 0 9px; color: #65736a; background: #fff; font-size: 9px; }
.request-list { display: grid; }
.request-card { display: grid; grid-template-columns: 1.15fr 1.2fr .95fr .7fr 28px; align-items: center; gap: 16px; padding: 15px 17px; border-top: 1px solid #edf0ed; cursor: pointer; }
.request-card:hover { background: #fbfcfa; }
.request-primary { display: grid; gap: 5px; min-width: 0; }
.request-primary strong { font-size: 10px; font-weight: 700; }
.request-primary small, .request-products small { color: #8d9991; font-size: 9px; }
.request-products { display: grid; gap: 4px; min-width: 0; }
.request-products strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; }
.request-meta { display: grid; gap: 4px; color: #86928a; font-size: 9px; }
.request-action { color: #aab3ad; font-size: 17px; text-align: right; }
.list-header { display: grid; grid-template-columns: 1.15fr 1.2fr .95fr .7fr 28px; gap: 16px; padding: 11px 17px; color: #a1aaa4; background: #fafbfa; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.list-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 17px; border-top: 1px solid #edf0ed; color: #909c94; font-size: 9px; }
.pagination { display: flex; gap: 5px; }
.page-number { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #68776e; cursor: pointer; font-size: 9px; }
.page-number.active { color: var(--green); background: #edf4ed; border-color: #e2ece2; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 17px; }
.stat-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.stat-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; color: #57795d; background: #edf4e8; font-size: 15px; }
.stat-card:nth-child(2) .stat-icon { color: #9a743f; background: #fbf1e1; }
.stat-card:nth-child(3) .stat-icon { color: #637c9b; background: #eef3fa; }
.stat-copy { display: grid; gap: 3px; }
.stat-copy small { color: #8a968e; font-size: 9px; }
.stat-copy strong { font: 700 17px "Segoe UI", sans-serif; letter-spacing: -.04em; }
.stat-trend { margin-left: auto; color: #6b8a67; font-size: 8px; }
.inbox-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 5px 0 12px; }
.inbox-toolbar h2 { margin: 0; font-size: 13px; }
.inbox-toolbar span { color: #89958d; font-size: 9px; }
.inbox-card { display: grid; grid-template-columns: minmax(165px, 1.15fr) minmax(155px, 1fr) minmax(105px, .7fr) auto; align-items: center; gap: 16px; padding: 14px 16px; border-top: 1px solid #edf0ed; }
.inbox-card:first-child { border-top: 0; }
.inbox-title { display: grid; gap: 5px; min-width: 0; }
.inbox-title strong { font-size: 10px; }
.inbox-title small { color: #8b9790; font-size: 9px; }
.inbox-products { display: grid; gap: 4px; min-width: 0; }
.inbox-products strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; }
.inbox-products small { color: #929e96; font-size: 9px; }
.inbox-owner { display: grid; gap: 5px; color: #819087; font-size: 9px; }
.owner-line { display: flex; align-items: center; gap: 6px; }
.tiny-avatar { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: #527064; background: #e5ede5; font-size: 7px; font-weight: 700; }
.claim-button { min-width: 69px; }
.detail-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: #65746b; font-size: 10px; }
.back-link:hover { color: var(--green); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(245px, .75fr); gap: 17px; align-items: start; }
.detail-number { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.detail-number h1 { font-size: 21px; }
.detail-title p { margin: 0; color: #85928a; font-size: 10px; }
.detail-title { margin-bottom: 19px; }
.detail-reason { margin: 14px 0 0; padding: 12px; color: #68776e; background: #f7f9f6; border-radius: 8px; font-size: 10px; line-height: 1.5; }
.item-table { width: 100%; border-collapse: collapse; }
.item-table th { padding: 0 8px 9px; border-bottom: 1px solid #edf0ed; color: #a0aaa3; font-size: 8px; font-weight: 700; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.item-table td { padding: 11px 8px; border-bottom: 1px solid #f0f2f0; color: #64736a; font-size: 9px; }
.item-table tr:last-child td { border-bottom: 0; }
.item-table td:first-child { color: #283b31; font-weight: 600; }
.timeline { display: grid; margin-top: 6px; }
.timeline-event { position: relative; display: grid; grid-template-columns: 19px 1fr; gap: 9px; padding-bottom: 18px; }
.timeline-event:not(:last-child)::after { position: absolute; content: ""; left: 8px; top: 17px; bottom: 0; width: 1px; background: #e2e9e2; }
.timeline-node { z-index: 1; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; background: #5a8a67; font-size: 8px; }
.timeline-event.pending .timeline-node { border: 1px solid #dfe7df; color: #8c9b90; background: #fff; }
.timeline-copy { display: grid; gap: 4px; }
.timeline-copy strong { color: #4d5e53; font-size: 9px; font-weight: 700; }
.timeline-copy small { color: #9aa59d; font-size: 8px; }
.timeline-copy p { margin: 0; color: #849087; font-size: 9px; line-height: 1.45; }
.empty-state, .state-panel { display: grid; justify-items: center; text-align: center; padding: 48px 22px; }
.state-art { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; border-radius: 16px; color: #52755d; background: #edf4e8; font-size: 24px; }
.state-panel.error .state-art { color: var(--orange); background: var(--orange-soft); }
.state-panel.expired .state-art { color: #5c7795; background: #eef3fa; }
.empty-state h2, .state-panel h2 { margin: 0 0 7px; font-size: 15px; letter-spacing: -.04em; }
.empty-state p, .state-panel p { max-width: 360px; margin: 0 0 17px; color: #849188; font-size: 10px; line-height: 1.6; }
.state-label { margin-bottom: 11px; color: #9aa59e; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.toast-region { position: fixed; z-index: 20; right: 24px; bottom: 22px; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 9px; min-width: 260px; max-width: min(390px, calc(100vw - 32px)); padding: 12px 14px; color: #fff; background: #0f2345; border-radius: 9px; box-shadow: 0 10px 30px #12251d35; font-size: 10px; animation: toast-in .18s ease-out; }
.toast-icon { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: #1a3a6b; background: var(--lime); font-size: 10px; font-weight: 700; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.confirm-dialog { width: min(460px, calc(100vw - 28px)); border: 1px solid #e4ebe4; border-radius: 14px; padding: 25px; color: var(--ink); box-shadow: 0 25px 80px #14291e35; }
.confirm-dialog::backdrop { background: #182c2280; backdrop-filter: blur(2px); }
.confirm-dialog form { position: relative; }
.dialog-close { position: absolute; top: -14px; right: -12px; width: 28px; height: 28px; border: 0; border-radius: 50%; color: #748078; background: #f1f4f0; cursor: pointer; font-size: 17px; }
.dialog-symbol { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 17px; border-radius: 11px; color: var(--green); background: #eaf2e9; font-size: 17px; }
.confirm-dialog h2 { margin: 0 0 7px; font-size: 19px; letter-spacing: -.045em; }
.confirm-dialog .muted { margin-bottom: 16px; color: #829087; font-size: 10px; line-height: 1.5; }
.confirm-summary { padding: 12px 13px; margin-bottom: 17px; border-radius: 8px; background: #f6f8f5; color: #536359; font-size: 10px; line-height: 1.7; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.mobile-menu-button { display: none; }

@media (max-width: 1040px) {
  .sidebar { width: 218px; }
  .main-area { width: calc(100% - 218px); margin-left: 218px; }
  .content-wrap { padding: 27px 26px 38px; }
  .topbar { padding: 0 26px; }
  .app-footer { padding-left: 26px; padding-right: 26px; }
  .layout-grid, .detail-layout { grid-template-columns: minmax(0, 1.3fr) minmax(220px, .8fr); }
  .request-card, .list-header { gap: 9px; }
  .inbox-card { grid-template-columns: minmax(140px, 1.1fr) minmax(130px, 1fr) minmax(80px, .65fr) auto; gap: 9px; }
}

@media (max-width: 840px) {
  body { font-size: 13px; }
  .preview-bar { height: 32px; padding: 0 12px; font-size: 9px; }
  .preview-bar label { display: none; }
  .sidebar { position: static; width: 100%; height: auto; padding: 11px 13px 8px; border: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 1px 10px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { font-size: 9px; }
  .workspace-label, .nav-section-label, .sidebar-bottom, .side-nav { display: none; }
  .role-switch { display: flex; margin: 0; padding: 3px; border-radius: 8px; }
  .role-button { justify-content: center; padding: 6px; font-size: 10px; }
  .role-icon { width: 19px; height: 19px; }
  .chevron { display: none; }
  .app-shell { display: block; min-height: calc(100vh - 32px); }
  .main-area { width: 100%; margin: 0; min-height: calc(100vh - 104px); }
  .topbar { height: 45px; padding: 0 15px; }
  .breadcrumbs { font-size: 9px; }
  .top-actions { gap: 9px; }
  .environment-tag { padding: 4px 7px; font-size: 8px; }
  .notification-button { font-size: 17px; }
  .top-avatar { width: 24px; height: 24px; font-size: 8px; }
  .content-wrap { padding: 22px 14px 31px; }
  .app-footer { padding: 10px 15px 14px; font-size: 8px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 17px; }
  h1 { font-size: 22px; }
  .page-description { max-width: 420px; font-size: 10px; }
  .heading-meta { font-size: 9px; }
  .layout-grid, .detail-layout { grid-template-columns: 1fr; gap: 12px; }
  .panel-pad { padding: 15px; }
  .panel-heading { margin-bottom: 12px; }
  .summary-card { order: -1; }
  .line-head, .line-row { grid-template-columns: minmax(100px, 1fr) 56px 52px 25px; gap: 6px; }
  .line-head { font-size: 7px; }
  .field-row { grid-template-columns: 1fr; gap: 11px; }
  .manual-form.open { grid-template-columns: 1fr 86px; }
  .manual-form .field:first-child { grid-column: 1 / -1; }
  .manual-add { grid-column: 2; }
  .request-card { grid-template-columns: 1fr auto; gap: 8px; padding: 13px; }
  .request-card > :nth-child(2), .request-card > :nth-child(3) { grid-column: 1; }
  .request-card > :nth-child(4) { grid-column: 1; }
  .request-card > :nth-child(5) { grid-column: 2; grid-row: 1 / span 4; }
  .list-header { display: none; }
  .filter-row { width: 100%; }
  .filter-row .search-box { flex: 1; width: auto; }
  .section-row { align-items: flex-start; flex-direction: column; gap: 11px; }
  .stat-grid { gap: 7px; }
  .stat-card { align-items: flex-start; flex-direction: column; gap: 7px; padding: 10px; }
  .stat-icon { width: 27px; height: 27px; }
  .stat-copy strong { font-size: 15px; }
  .stat-trend { margin-left: 0; }
  .inbox-card { grid-template-columns: 1fr auto; gap: 8px; padding: 13px; }
  .inbox-card > :nth-child(2) { grid-column: 1; }
  .inbox-owner { grid-column: 1; }
  .inbox-card .claim-button { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .detail-number { align-items: flex-start; flex-direction: column; gap: 7px; }
  .detail-number h1 { font-size: 18px; }
  .item-table th, .item-table td { padding-left: 5px; padding-right: 5px; font-size: 8px; }
  .toast-region { right: 12px; bottom: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Comfortable reading sizes for daily work. */
body, button, input, select, textarea { font-family: "Segoe UI Variable", "Segoe UI", system-ui, Arial, sans-serif; }
.workspace-label, .step-label, .eyebrow, .state-label, .list-header, .line-head, .item-table th { font-size: 11px; }
.nav-link, .role-button, .account-copy strong, .account-copy small, .breadcrumbs, .environment-tag, .app-footer { font-size: 13px; }
.page-heading h1, h1 { font-size: 29px; letter-spacing: -.035em; }
.page-heading h1, .detail-number h1 { font-weight: 700; }
.page-description, .panel-heading p, .section-row .muted, .mini-stat, .detail-title p, .detail-reason,
.item-table td, .timeline-copy strong, .timeline-copy p, .empty-state p, .state-panel p,
.confirm-summary, .confirm-dialog .muted { font-size: 14px; line-height: 1.55; }
.panel-heading h2, .section-row h2, .inbox-toolbar h2, .confirm-dialog h2 { font-size: 17px; }
.search-box { min-height: 46px; }
.search-box input, .field input, .field select, .field textarea, .qty-input, .line-spec input, .filter-select { font-size: 14px; }
.keyboard-hint, .scanner-hint, .char-count, .line-head { font-size: 11px; }
.product-copy strong, .line-product strong, .request-primary strong, .request-products strong, .inbox-title strong, .inbox-products strong { font-size: 14px; }
.product-copy small, .line-product small, .line-spec, .unit-pill, .request-primary small, .request-products small,
.request-meta, .inbox-title small, .inbox-products small, .inbox-owner, .item-sub, .timeline-copy small { font-size: 13px; line-height: 1.5; }
.request-meta small, .inbox-owner small { font-size: 13px; line-height: 1.5; }
.line-row, .request-card, .inbox-card { padding-top: 17px; padding-bottom: 17px; }
.button, .button-quiet, .manual-toggle, .small-link, .back-link, .status-chip { font-size: 13px; }
.button { min-height: 42px; }
.button-quiet { min-height: 38px; }
.status-chip { padding: 6px 10px; }
.summary-card h3 { font-size: 19px; }
.summary-card p, .secure-note, .status-line, .detail-warning { font-size: 13px; line-height: 1.55; }
.stat-copy small, .inbox-toolbar span, .heading-meta { font-size: 13px; }
.stat-copy strong { font-size: 22px; }
.request-primary strong, .request-products strong, .inbox-title strong { line-height: 1.4; }
.list-footer, .page-number { font-size: 12px; }
.page-number { width: 32px; height: 32px; }
.detail-number h1 { font-size: 24px; }
.item-table th { padding-bottom: 11px; }
.item-table td { padding-top: 14px; padding-bottom: 14px; }
.timeline-copy strong { font-weight: 700; }
.timeline-copy small { font-size: 12px; }
.state-art { color: var(--blue); background: var(--green-soft); }
.toast { font-size: 13px; }

@media (max-width: 840px) {
  body { font-size: 15px; }
  .nav-link, .role-button, .breadcrumbs, .environment-tag, .app-footer { font-size: 12px; }
  .topbar { height: 52px; }
  .top-avatar { width: 30px; height: 30px; font-size: 10px; }
  .page-heading h1, h1 { font-size: 25px; }
  .page-description { font-size: 14px; }
  .panel-heading h2, .section-row h2, .inbox-toolbar h2 { font-size: 16px; }
  .section-row .muted, .inbox-toolbar span { font-size: 12px; }
  .line-head { font-size: 10px; }
  .line-product strong, .request-primary strong, .request-products strong, .inbox-title strong, .inbox-products strong { font-size: 13px; }
  .line-product small, .unit-pill, .request-primary small, .request-products small, .request-meta, .inbox-title small, .inbox-products small, .inbox-owner, .item-sub { font-size: 13px; }
  .detail-number h1 { font-size: 22px; }
  .item-table th { font-size: 10px; }
  .item-table td { font-size: 13px; }
  .empty-state h2, .state-panel h2 { font-size: 18px; }
  .empty-state p, .state-panel p { font-size: 14px; }
}
