:root {
  color-scheme: light;
  --bg: #f5f7f5;
  --paper: #fff;
  --ink: #1a2922;
  --muted: #5f7167;
  --subtle: #dfe8e1;
  --line: #e6ede7;
  --green: #176244;
  --green-hover: #124d36;
  --mint: #a4ecc0;
  --side: #10231c;
  --radius: 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box }
body { margin: 0; min-width: 320px; min-height: 100vh }
button, input, textarea, select { font: inherit }
button { cursor: pointer }
button:disabled { cursor: wait; opacity: .65 }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent }
:focus-visible { outline: 3px solid #65ae87; outline-offset: 3px }
a { text-decoration: none; color: inherit }
h1,h2,h3,p,dl,dd { margin: 0 }
svg { flex: 0 0 auto; vertical-align: middle }
[hidden] { display: none !important }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0 }
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--muted) }
.layout { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0,1fr) }
.sidebar { background: var(--side); color: #d5e4da; padding: 26px 17px 17px; height: 100dvh; position: sticky; top: 0; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.brand-link { align-self: flex-start; margin: 2px 11px 37px }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #eaf8ef }
.brand b { display: block; font-size: 23px; font-weight: 760; line-height: 1.05; letter-spacing: .1em }
.brand b span { display: block }
.brand b span + span { margin-top: 5px; font-size: 12px; letter-spacing: .05em; color: #a9d3b8 }
.mark { width: 41px; height: 41px; border-radius: 12px; background: #a4ecc0; color: #134a32; display: grid; place-items: center; position: relative; box-shadow: 0 3px 12px #030d0860 }
.mark i { display: block; position: absolute; width: 15px; height: 6px; transform: skewX(-34deg); border-radius: 1px; background: currentColor }
.mark i:nth-child(1) { top: 11px; left: 14px }
.mark i:nth-child(2) { top: 18px; left: 12px }
.mark i:nth-child(3) { top: 25px; left: 10px }
.workspace-label { display: flex; gap: 10px; align-items: center; padding: 10px; background: #1a3026; border: 1px solid #2d4638; border-radius: 10px; margin-bottom: 29px }
.workspace-icon { width: 34px; height: 34px; border-radius: 8px; background: #233f32; color: #a5e4bc; display: grid; place-items: center }
.workspace-label b, .sidebar-user b { display: block; color: #edf6f0; font-size: 13px }
.workspace-label small, .sidebar-user small { display: block; color: #98b3a3; font-size: 11px; margin-top: 4px }
.side-heading { padding: 0 11px 9px; color: #8ba697; font-size: 11px; font-weight: 650; letter-spacing: .1em }
.nav-item { color: #afc4b7; background: transparent; border: 1px solid transparent; padding: 0 11px; margin: 0 0 5px; height: 42px; width: 100%; border-radius: 8px; display: flex; align-items: center; text-align: left; gap: 10px; font-weight: 570; white-space: nowrap }
.nav-item > span { flex: 1 }
.nav-item:hover { background: #263f32; color: #f0fff3 }
.nav-item.selected { background: #244b37; border-color: #315e45; color: #d4f8e0 }
.nav-item small { color: #d4f8e0; background: #365f47; border-radius: 5px; min-width: 20px; padding: 2px 4px; text-align: center; font-size: 11px }
.nav-item.chat-has-unread { background: #63452b; border-color: #bf884d; color: #fff7ec; animation: chat-unread-pulse 2s ease-in-out infinite }
.nav-item .chat-unread { background: #b74c31; color: #fff }
@keyframes chat-unread-pulse { 50% { background: #413326; border-color: #8a6544 } }
@media (prefers-reduced-motion: reduce) { .nav-item.chat-has-unread { animation: none } }
.sidebar-bottom { margin-top: auto; padding-top: 25px }
.nav-item.switch { color: #b8cfc0; margin-bottom: 12px }
.sidebar-user { border-top: 1px solid #2b4537; display: flex; align-items: center; gap: 9px; padding: 12px 0 0 4px }
.sidebar-user > div { min-width: 0; flex: 1 }
.sidebar-user b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.sidebar-user .logout { color: #abbeaf }
.sidebar-user .logout:hover { background: #264435; color: white }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border-radius: 50%; font-size: 10px; font-weight: 750; white-space: nowrap; }
.sidebar-user .avatar, .top-actions > .avatar { width: 35px; height: 35px; font-size: 12px }
.tint-0 { background: #dceadd; color: #355f41 }
.tint-1 { background: #f3e7d7; color: #795628 }
.tint-2 { background: #e1ece0; color: #336543 }
.tint-3 { background: #e4ebf8; color: #3d6192 }
.tint-4 { background: #eee5f7; color: #684888 }
.main-wrap { min-width: 0 }
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--paper) }
.breadcrumb, .top-actions { display: flex; align-items: center; gap: 11px }
.breadcrumb { color: var(--muted); font-size: 13px }
.breadcrumb b { color: var(--ink); font-weight: 670 }
.top-actions { gap: 15px }
.demo-tag, .today { color: var(--muted); display: inline-flex; align-items: center; white-space: nowrap; gap: 6px; font-size: 12px }
.demo-tag i, .demo-entry i, .hero-kicker i { width: 7px; height: 7px; background: #4d9b70; border-radius: 50%; display: inline-block }
.button { min-height: 37px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; line-height: 1.35; font-weight: 670; white-space: nowrap }
.button.primary { background: var(--green); color: white }
.button.primary:hover { background: var(--green-hover) }
.button.secondary { border-color: #dce6df; background: white; color: #274536 }
.button.secondary:hover { background: #f3f8f4 }
.button.settlement-locked:disabled { border-color: #dce6df; background: #edf2ef; color: #617267; cursor: not-allowed; opacity: 1 }
.button.ghost { border-color: transparent; color: var(--green); background: transparent; padding-inline: 8px }
.button.ghost:hover { background: #edf6ef }
.button.hero-button { color: #12291d; background: #a4ecc0; border: 1px solid #b1f2ca; padding: 8px 13px }
.button.hero-button:hover { background: #c4f8d8 }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; color: var(--muted); border: 0; background: transparent; flex: 0 0 auto }
.icon-button:hover { color: var(--green); background: #eaf3ed }
.alert-button { position: relative }
.alert-button i { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #d39142; outline: 2px solid white }
.content { max-width: 1680px; margin: 0 auto; padding: 27px 32px 42px }
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 22px }
.welcome h1 { font-size: clamp(24px, 2.25vw, 31px); line-height: 1.2; font-weight: 780; letter-spacing: -.035em }
.welcome p { color: var(--muted); margin-top: 7px; font-size: 13px; line-height: 1.6 }
.today { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px }
.hero { position: relative; overflow: hidden; min-height: 211px; display: flex; align-items: center; border-radius: 16px; background: radial-gradient(ellipse at 78% 75%, #2b5b43 0, #1a392b 38%, #12281f 76%); border: 1px solid #274535; color: #f3fff7; margin-bottom: 21px; isolation: isolate }
.hero-copy { position: relative; z-index: 2; padding: 23px 27px }
.hero-kicker { color: #afe5c2; display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.4; font-weight: 670; letter-spacing: .12em; margin-bottom: 10px }
.hero-kicker i { background: #a2e6b6; box-shadow: 0 0 12px #87e3aa8a }
.hero h2 { font-size: clamp(22px, 2.7vw, 39px); font-weight: 780; letter-spacing: -.035em; line-height: 1.18 }
.hero-copy > p:not(.hero-kicker) { color: #c2daca; margin: 9px 0 16px; line-height: 1.55; font-size: 13px }
.hero-art { position: absolute; pointer-events: none; z-index: 1; overflow: hidden; width: 48%; height: 100%; right: 0; top: 0; background-image: repeating-linear-gradient(0deg,transparent 0,transparent 29px,#87d8a417 30px,#87d8a417 31px),repeating-linear-gradient(90deg,transparent 0,transparent 29px,#87d8a417 30px,#87d8a417 31px); mask-image: linear-gradient(90deg, transparent, black 26%, black) }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#10261b50,transparent 35%,transparent 82%,#10261b4e) }
.radar { position: absolute; width: 330px; height: 330px; border: 1px solid #9beaab48; border-radius: 50%; right: 7%; top: 50%; transform: translateY(-50%) rotate(-22deg); box-shadow: inset 0 0 45px #68e5a018 }
.radar i { position: absolute; inset: 25px; border: 1px solid #8cdfaa3b; border-radius: 50% }
.radar i:nth-child(2) { inset: 50px; border-style: dashed }
.radar i:nth-child(3) { inset: 76px }
.radar i:nth-child(4) { inset: 106px }
.radar b, .radar em { position: absolute; width: 100%; height: 1px; left: 0; top: 50%; background: #a8eec447 }
.radar em { transform: rotate(90deg) }
.coin { position: absolute; z-index: 2; width: 123px; height: 123px; right: 28%; top: 16%; transform: rotate(-23deg) skewX(10deg); border-radius: 26px; background: linear-gradient(145deg,#b8f0cb 2%,#74bb92 23%,#438463 54%,#22553c 100%); border: 2px solid #a7e6bd; box-shadow: 0 8px 0 #387052, 0 11px 0 #204532, 0 24px 31px #081710af, inset 0 0 10px #e4fff4b9; }
.coin span { position: absolute; inset: 10px; border-radius: 18px; border: 1px solid #dbffda8f; background: linear-gradient(138deg,#8fcea8,#4b906b 61%,#3c7758); box-shadow: inset 0 1px 8px #254b39a0 }
.coin i,.coin b { position: absolute; top: 37%; left: 34%; width: 42%; height: 12%; background: #d2fce1; transform: skewX(-32deg); border-radius: 2px; filter: drop-shadow(0 2px 1px #295940) }
.coin b { top: 56%; left: 26%; width: 44%; }
.coin.small { width: 65px; height: 65px; right: 12%; top: 49%; border-radius: 14px; transform: rotate(20deg) skewX(-6deg); box-shadow: 0 5px 0 #387052,0 7px 0 #204532,0 15px 22px #061a11a0; }
.coin.small span { inset: 5px; border-radius: 8px }
.hero-spark { position: absolute; top: 27%; right: 14%; width: 5px; height: 5px; border-radius: 50%; background: #d2ffe5; box-shadow: 0 0 9px 3px #94ffc3, -215px 80px 1px 0 #95e8ba, -265px -18px 1px 0 #82ca9f, -7px 125px 1px 0 #b3fbd0, 39px 27px 1px 0 #a6f1c3; }
.metrics, .pay-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 21px }
.pay-summary { grid-template-columns: repeat(3, minmax(0,1fr)) }
.metric { display: grid; grid-template-columns: 1fr auto; align-items: start; min-height: 112px; gap: 7px 5px; padding: 14px 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.metric > div > span, .metric-main > span:first-child { color: var(--muted); font-size: 12px; font-weight: 650 }
.metric-number { display: block; font-size: clamp(20px, 2.2vw, 30px); font-weight: 780; line-height: 1.12; margin-top: 7px; font-variant-numeric: tabular-nums; letter-spacing: -.045em; overflow-wrap: anywhere; }
.metric small { color: var(--muted); font-size: 11px; grid-column: 1/-1 }
.metric-link { color: var(--ink); text-align: left; transition: border-color .15s, background-color .15s }
.metric-link small { display: flex; justify-content: space-between; align-items: center; gap: 4px }
.metric-link small svg { color: var(--green) }
.metric-link:hover, .metric-link:focus-visible { border-color: #82ae94; background: #f3f9f5 }
.metric-link:active { background: #e5f3e9 }
.metric-icon { border-radius: 9px; width: 35px; height: 35px; display: grid; place-items: center }
.metric-icon.green { background: #e5f3e9; color: #287d51 }
.metric-icon.blue { background: #e8eff9; color: #386aa4 }
.metric-icon.amber { background: #fcf0df; color: #9a5d1c }
.metric-icon.violet { background: #f0eafa; color: #754fa2 }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 282px); gap: 16px; align-items: start }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; overflow: hidden }
.coin-stock { margin-bottom: 16px }
.coin-need { border-top: 1px solid var(--line); background: #f5f9f5 }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 17px 14px }
.card-head h2 { font-size: 16px; font-weight: 740; letter-spacing: -.025em }
.card-head p { color: var(--muted); font-size: 11px; line-height: 1.45; margin-top: 4px }
.table-scroll { overflow-x: auto }
table { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 12px }
th, td { text-align: left; padding: 10px 10px; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 16px }
th:last-child, td:last-child { padding-right: 12px }
th { background: #f5f8f5; border-block: 1px solid var(--line); color: #52675a; font-weight: 650; font-size: 11px }
td { border-bottom: 1px solid #edf1ed; height: 54px; }
tbody tr:last-child td { border-bottom: 0 }
tbody tr:hover { background: #fbfcfb }
.person, .order-cell { display: flex; gap: 8px; align-items: center; }
.order-cell > div { min-width: 0 }
.order-icon { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; color: #53696c; background: #eef2f2; }
.order-icon.token { color: #367b53; background: #eaf5ec }
.order-title { border: 0; color: var(--ink); background: transparent; font-weight: 690; text-align: left; padding: 0; max-width: clamp(145px, 15vw, 235px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block }
.order-title:hover { color: var(--green); text-decoration: underline }
.order-cell small, .cell-sub { display: block; color: var(--muted); font-size: 10px; margin-top: 4px }
.person .avatar { width: 24px; height: 24px; font-size: 8px }
.numeric { font-weight: 720; font-variant-numeric: tabular-nums }
.date-cell { color: var(--muted) }
.badge { display: inline-flex; align-items: center; gap: 5px; font-weight: 680; font-size: 11px; border-radius: 6px; padding: 5px 7px; white-space: nowrap }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor }
.badge.assigned { color: #565f73; background: #edf0f5 }
.badge.active { color: #2f66a0; background: #eaf1fa }
.badge.review { color: #8e581e; background: #fbefdf }
.badge.returned { color: #9b4b45; background: #fbebe8 }
.badge.completed { color: #2a7148; background: #e7f4e9 }
.queue-icon { display: grid; place-items: center; height: 34px; width: 34px; border-radius: 8px; background: #f9f0e3; color: #93632e }
.queue-list { padding: 0 13px }
.queue-row { width: 100%; display: flex; text-align: left; align-items: center; gap: 9px; background: transparent; color: var(--muted); padding: 11px 4px; min-height: 56px; border: 0; border-top: 1px solid var(--line) }
.queue-row:hover { background: #f5f9f6 }
.queue-row > span:nth-child(2) { flex: 1; min-width: 0 }
.queue-row b, .queue-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.queue-row b { color: var(--ink); font-size: 12px; margin-bottom: 4px }
.queue-row small { font-size: 10px }
.queue-order-icon { display: grid; place-items: center; height: 30px; width: 30px; background: #eff4f0; color: #5f816d; border-radius: 7px; flex: 0 0 auto }
.queue-foot { border-top: 1px solid var(--line); padding: 6px 11px; }
.queue-foot .button { min-height: 31px; }
.queue-foot .button svg, .card-head .button svg { order: 1 }
.table-toolbar { padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.tabs { display: flex; gap: 4px; flex-wrap: wrap }
.tab { border: 0; color: var(--muted); font-weight: 650; background: transparent; padding: 8px 10px; border-radius: 7px; white-space: nowrap; font-size: 12px }
.tab:hover { background: #f3f7f4; color: var(--green) }
.tab.on { background: #e7f3e9; color: var(--green) }
.search-field { display: flex; gap: 5px; align-items: center; border: 1px solid var(--subtle); border-radius: 7px; padding: 0 8px; color: var(--muted); font-size: 12px }
.search-field input { outline-offset: 6px; border: 0; min-height: 33px; padding: 2px; width: 140px; background: transparent; color: var(--ink) }
.empty { text-align: center; min-height: 144px; padding: 24px 12px; color: #486153; display: grid; justify-items: center; align-content: center; gap: 8px; border-top: 1px solid var(--line) }
.empty div { border-radius: 10px; padding: 8px; background: #e9f3ec; color: #589471 }
.empty p { color: var(--muted); font-size: 12px }
.auth-layout { min-height: 100dvh; display: grid; grid-template-columns: minmax(350px, .95fr) minmax(410px, 1fr); background: #fff }
.auth-branding { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 78% 77%, #2d5e46, #163226 54%, #10231c 88%); color: #f3fff6; }
.auth-brand-inner { position: relative; z-index: 2; min-height: 100%; padding: clamp(34px, 6vw, 86px); display: grid; grid-template-rows: auto 1fr; gap: 34px; align-items: center }
.auth-brand-inner h1 { font-size: clamp(44px, 5.3vw, 86px); line-height: 1.15; font-weight: 780; letter-spacing: -.065em; }
.auth-brand-inner h1 + p { margin-top: 20px; color: #c5ddcd; line-height: 1.7; font-size: 15px }
.auth-branding .hero-art { width: 94%; height: 68%; top: 32%; opacity: .65; }
.auth-branding .coin { right: 16%; top: 57%; }
.auth-branding .coin.small { right: 7%; top: 38%; }
.auth-branding .radar { right: -10%; top: 70%; width: 420px; height: 420px; }
.auth-content { display: grid; place-items: center; padding: 48px 36px }
.auth-card { position: relative; width: min(100%, 390px); }
.auth-card > h2 { font-size: 27px; font-weight: 780; letter-spacing: -.04em }
.auth-card > p { color: var(--muted); margin: 9px 0 23px; line-height: 1.55; }
.auth-switch { position: absolute; right: 0; top: 10px }
.login-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; background: #e8f3ec; color: var(--green); margin-bottom: 17px }
.auth-form, .panel-form { display: grid; gap: 15px; }
.auth-form label, .panel-form label { display: grid; align-content: start; gap: 7px; font-size: 13px; font-weight: 680; color: #314a3a; min-width: 0 }
.auth-form input, .panel-form input, .panel-form select, .panel-form textarea { min-height: 41px; width: 100%; border: 1px solid #d7e2d9; border-radius: 8px; padding: 9px 10px; color: var(--ink); background: white; font-weight: 480; min-width: 0 }
.panel-form textarea { resize: vertical }
.panel-form .check-field { display: flex; align-items: center; gap: 8px }
.panel-form .check-field input { width: 17px; height: 17px; min-height: 0; padding: 0; accent-color: var(--green) }
.auth-form input::placeholder, .panel-form input::placeholder, .panel-form textarea::placeholder { color: #748479 }
.auth-submit { width: 100%; min-height: 42px; }
.inline-field { display: flex; gap: 8px }
.inline-field input { flex: 1 }
.auth-options { text-align: center; color: var(--muted); font-size: 13px; margin-top: 17px }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--green); background: none; border: none; font-weight: 670; padding: 0; font-size: 12px }
.text-link:hover { text-decoration: underline }
.demo-entry { display: flex; justify-content: space-between; align-items: center; margin-top: 23px; padding: 12px 13px; border: 1px solid #e0ece2; border-radius: 9px; background: #f3f9f4; font-size: 12px; color: var(--muted) }
.demo-entry i { margin-right: 3px }
.form-help { color: var(--muted); font-size: 12px; line-height: 1.65 }
.field-error { color: #9b3933; font-size: 12px; line-height: 1.5; margin: 0 }
.field-error:empty { display: none }
.code-help { background: #eaf5e9; color: var(--green); border-radius: 6px; padding: 6px 9px }
dialog { width: min(440px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #d9e4dc; border-radius: 15px; color: var(--ink); background: #fff; box-shadow: 0 20px 80px #071c1450; overflow: hidden; }
dialog.wide { width: min(655px, calc(100vw - 28px)) }
dialog[open] { display: flex; flex-direction: column }
dialog::backdrop { background: #10231c76; backdrop-filter: blur(2px); }
.panel-head { display: flex; gap: 12px; justify-content: space-between; align-items: start; padding: 17px 19px; border-bottom: 1px solid var(--line) }
.panel-head h2 { font-size: 19px; font-weight: 760; overflow-wrap: anywhere }
.panel-head p { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5 }
.panel-body { overflow-y: auto; overscroll-behavior: contain; padding: 15px 19px 17px; min-height: 0 }
.panel-form fieldset { margin: 0; border: 1px solid var(--line); min-width: 0; padding: 13px 11px 11px; border-radius: 9px }
.panel-form legend { color: #2b513c; font-weight: 750; padding: 0 5px; }
.panel-form fieldset .form-help { margin-top: 8px }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 12px }
.form-grid .span-two { grid-column: 1/-1 }
.panel-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px }
.panel-actions.sticky { position: sticky; bottom: -17px; padding: 10px 0 9px; background: #fff; border-top: 1px solid var(--line) }
.payout-preview { min-height: 56px; display: grid; align-content: center; gap: 4px; padding: 8px 10px; background: #edf7f0; border: 1px solid #deeee2; border-radius: 8px; color: var(--green) }
.payout-preview b { font-size: 18px; font-variant-numeric: tabular-nums }
.detail-section { padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: center; min-height: 30px; gap: 8px; margin-bottom: 7px }
.section-head h3 { font-size: 14px; }
.section-head .button { min-height: 30px }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; padding: 5px 0; }
.detail-grid dt { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.detail-grid dd { font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
.finance-grid, .credentials { background: #f1f7f2; padding: 10px; border-radius: 8px; }
.finance-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.finance-grid dd { color: #1d613f; font-weight: 730; }
.requirements, .return-note { margin-top: 9px; padding: 9px 10px; border-radius: 8px; background: #f6f8f6; font-size: 12px; }
.return-note { color: #8a4039; background: #fcefeb; }
.requirements p, .return-note p, .submission p, .timeline p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 5px; line-height: 1.55; }
.submission { border: 1px solid var(--line); padding: 8px; border-radius: 8px; margin-top: 8px; }
.submission-head { display: flex; justify-content: space-between; font-size: 12px; }
.submission-head small, .submission p { color: var(--muted); }
.submission p { font-size: 12px; }
.proof-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 7px; }
.proof-preview { overflow: hidden; border-radius: 7px; border: 1px solid var(--line); }
.proof-preview img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; background: #edf3ef; }
.proof-preview small { display: flex; justify-content: space-between; gap: 4px; padding: 5px 6px; overflow: hidden; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 12px; }
.timeline li { border-left: 1px solid #d4e3d8; padding: 4px 0 7px 11px; position: relative; font-size: 12px; }
.timeline li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #71a686; position: absolute; top: 8px; left: -4px; }
.timeline li div { display: flex; flex-wrap: wrap; gap: 5px 8px; }
.timeline small, .timeline span, .timeline p { color: var(--muted); }
.timeline small { margin-left: auto; }
.panel-form .upload-box { justify-items: center; padding: 16px 8px 10px; background: #f4f9f5; border: 1px dashed #a8c8b2; border-radius: 9px; color: var(--green); text-align: center; }
.upload-box small { color: var(--muted); font-weight: 475; font-size: 11px; }
.upload-box input { background: transparent; font-size: 12px; border: 0; width: min(275px, 100%); min-height: 32px; }
.toast { position: fixed; z-index: 10; bottom: 22px; right: 22px; max-width: calc(100% - 44px); opacity: 0; transform: translateY(7px); pointer-events: none; transition: .18s ease; border-radius: 8px; color: #fff; background: #245138; padding: 10px 13px; font-size: 13px; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { background: #8f3e35; }
@media (max-width: 1220px) {
  .layout { grid-template-columns: 196px minmax(0,1fr) }
  .topbar, .content { padding-inline: 22px }
  .dashboard-grid { grid-template-columns: minmax(0,1fr) minmax(206px,235px) }
  .recent table { min-width: 530px }
  .recent th, .recent td { padding-inline: 6px }
  .recent th:first-child, .recent td:first-child { padding-left: 12px }
  .recent .order-title { max-width: 155px }
}
@media (max-width: 1010px) {
  .dashboard-grid { grid-template-columns: minmax(0,1fr) }
  .queue { grid-row: 1 }
  .queue-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 12px }
  .recent table { min-width: 565px }
}
@media (max-width: 750px) {
  .layout { display: block }
  .sidebar { height: auto; position: static; padding: 9px 13px; overflow: visible; display: grid; grid-template-columns: auto 1fr; gap: 8px; }
  .brand-link { margin: 0; align-self: center; }
  .brand b { font-size: 16px; }
  .brand b span + span { margin-top: 3px; font-size: 11px; }
  .mark { transform: scale(.77); margin: -5px; margin-right: 0; }
  .workspace-label, .side-heading, .sidebar-user > div, .sidebar-user .avatar { display: none }
  .sidebar nav { grid-row: 2; grid-column: 1/-1; display: flex; gap: 4px; overflow-x: auto; }
  .nav-item { font-size: 12px; height: 32px; padding-inline: 7px; justify-content: center; margin: 0; }
  .nav-item > svg { width: 14px; height: 14px; }
  .sidebar-bottom { display: flex; justify-content: flex-end; align-items: center; grid-column: 2; grid-row: 1; margin: 0; padding: 0; }
  .nav-item.switch { width: auto; margin: 0; }
  .nav-item.switch svg:last-child { display: none; }
  .sidebar-user { padding: 0; border: 0; }
  .topbar { height: 51px; }
  .topbar, .content { padding-inline: 13px; }
  .content { padding-top: 17px; }
  .welcome { align-items: flex-start; margin-bottom: 13px; }
  .hero { min-height: 178px; margin-bottom: 13px; }
  .hero-copy { padding: 14px; }
  .hero-art { opacity: .53; width: 56%; }
  .coin { width: 92px; height: 92px; right: 26%; }
  .coin.small { width: 45px; height: 45px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 13px; }
  .metric { min-height: 87px; padding: 9px 10px; }
  .metric-icon { width: 29px; height: 29px; }
  .dashboard-grid { gap: 10px; }
  .auth-layout { display: block; }
  .auth-branding { min-height: 158px; }
  .auth-brand-inner { padding: 15px 19px; gap: 13px; grid-template-rows: auto auto; }
  .auth-brand-inner h1 { font-size: 30px; }
  .auth-brand-inner h1 br, .auth-brand-inner h1 + p { display: none; }
  .auth-content { padding: 24px 16px; }
}
@media (max-width: 435px) {
  .nav-item { gap: 4px; padding-inline: 5px; }
  .nav-item > svg { display: none; }
  .top-new { display: none; }
  .top-actions { gap: 5px; }
  .breadcrumb { gap: 5px; }
  .today { display: none; }
  .pay-summary { grid-template-columns: 1fr; gap: 7px; }
  .queue-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
.coin-progress { grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); background: #f5f9f5; padding: 10px; border-radius: 8px; }
.coin-progress dd { color: var(--green); font-weight: 720 }
.wear-summary { margin-top: 8px }
.settlement-report .section-head small, .settlement-source-name small { color: var(--muted); font-size: 11px }
.settlement-totals { grid-template-columns: repeat(4, minmax(0, 1fr)); background: #f0f7f2; border: 1px solid var(--line); border-radius: 8px; padding: 11px }
.settlement-totals dd { color: var(--green); font-size: 16px; font-weight: 720; font-variant-numeric: tabular-nums }
.settlement-report > .form-help { margin-top: 6px }
.settlement-source-heading { margin: 12px 0 6px; font-size: 13px }
.settlement-sources { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0 }
.settlement-sources li { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px }
.settlement-source-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; font-size: 13px; overflow-wrap: anywhere }
.settlement-source-values { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 0; font-variant-numeric: tabular-nums }
@media (max-width: 420px) {
  .settlement-totals, .settlement-source-values { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
.order-detail-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap }
.chat-picker { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted) }
.chat-picker select, .chat-compose select, .chat-compose textarea { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; min-width: 0 }
.chat-picker select { max-width: min(420px, 100%); flex: 1 }
.chat-thread { max-width: 850px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden }
.chat-select-thread { padding: 12px }
.chat-heading { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; min-height: 49px; border-bottom: 1px solid var(--line) }
.chat-heading h2 { font-size: 16px }
.chat-messages { display: flex; flex-direction: column; gap: 14px; height: min(54dvh, 520px); min-height: 180px; overflow: auto; padding: 16px; background: #f7f9f8 }
.chat-empty, .chat-message-meta { color: var(--muted); font-size: 12px }
.chat-message { align-self: flex-start; width: fit-content; min-width: 0; max-width: 88% }
.chat-message.own { align-self: flex-end }
.chat-message.own .chat-message-meta { display: block; text-align: right }
.chat-message-content { display: grid; gap: 7px; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-top: 3px }
.chat-message.own .chat-message-content { background: #edf7ef }
.chat-message-content p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px }
.chat-order-card { padding-left: 8px; border-left: 3px solid #33825b; min-width: 0 }
.chat-order-card a { display: flex; align-items: center; gap: 8px; color: var(--green); min-height: 42px }
.chat-order-card a:hover b { text-decoration: underline }
.chat-order-card a > span:first-of-type { min-width: 0; flex: 1; overflow-wrap: anywhere }
.chat-order-card a small { display: block; color: var(--muted); margin-top: 2px }
.chat-order-card > div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 4px }
.chat-picture img { display: block; max-width: min(250px, 100%); max-height: 220px; object-fit: contain; border-radius: 5px }
.chat-compose { display: grid; gap: 8px; padding: 12px; border-top: 1px solid var(--line) }
.chat-compose textarea { width: 100%; resize: vertical }
.chat-attachment { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: #f7f9f8 }
.chat-attachment img { width: 54px; height: 54px; object-fit: contain; border-radius: 5px }
.chat-attachment div { min-width: 0; font-size: 13px }
.chat-attachment small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.chat-compose-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 7px }
.chat-compose-tools select { flex: 1 1 140px; width: 0 }
.chat-send { overflow-wrap: anywhere; white-space: normal; text-align: left }
.chat-feedback { min-height: 16px }
@media (max-width: 420px) { .chat-messages { padding: 10px } .chat-message { max-width: 95% } .chat-compose-tools select { flex-basis: 100%; width: 100% } }
.order-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding: 11px; border: 1px solid #cee5d5; background: #f2f8f3; border-radius: 8px }
.order-next small { color: var(--green) }
.order-next h3 { margin: 4px 0 }
.coin-hint { margin-top: 7px }
.claim-card { margin-top: 8px; border: 1px solid #cee5d5; background: #f2f8f3; padding: 10px; border-radius: 8px }
#coin-secret:not(:empty) { margin-top: 8px }
.claim-list { list-style: none; margin: 8px 0 0; padding: 0; }
.claim-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 7px 2px; border-top: 1px solid var(--line); font-size: 12px }
.claim-list li span { color: var(--muted) }
.claim-list li div > span { display: block; margin-top: 3px }
.pending-team { margin-top: 16px }
.scan-display { border: 1px solid var(--line); background: #f4f8f4; text-align: center; border-radius: 10px; padding: 12px }
.scan-display img { display: block; margin: 0 auto; max-width: 100%; max-height: min(290px,35vh); width: auto; height: auto; padding: 5px; background: #fff; object-fit: contain; }
.scan-display p { color: var(--muted); font-size: 12px; margin-top: 6px; }
.scan-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.order-scan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
.order-scan-card { min-width: 0; display: grid; gap: 8px; align-content: start; padding: 10px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere }
.order-scan-card h4 { margin: 0; font-size: 14px }
.order-scan-card .button { max-width: 100%; white-space: normal; text-align: left }
.order-scan-card .field-error:empty, .scan-result:empty { display: none }
.scan-tools { display: flex; flex-wrap: wrap; gap: 6px }
.scan-upload { display: grid; gap: 7px }
.scan-close { justify-self: start }
.scan-drop { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px; border: 1px dashed #80ad92;
  border-radius: 9px; background: #f3f9f5; color: var(--green); }
.scan-drop:hover, .scan-drop:focus-visible { border-color: #3b865e; background: #e3f3e8 }
.scan-drop b, .scan-drop small { display: block }
.scan-drop b { font-size: 13px }
.scan-drop small { margin-top: 4px; font-size: 11px; color: var(--muted); line-height: 1.45 }
@media (max-width: 420px) { .order-scan-cards { grid-template-columns: 1fr } }
.copy-field { display: grid; margin: 13px 0; gap: 6px; font-size: 12px; color: var(--muted) }
.copy-field input { width: 100%; border: 1px solid var(--subtle); border-radius: 7px; padding: 8px; color: var(--ink); background-color: #f6f9f6; }
