:root {
  --ink: #172037;
  --muted: #738096;
  --line: #e8ebf2;
  --paper: #ffffff;
  --canvas: #f5f7fb;
  --navy: #111a2e;
  --navy-2: #17223b;
  --violet: #6e5cf6;
  --violet-2: #8777ff;
  --violet-soft: #f0edff;
  --green: #23a47b;
  --amber: #e89829;
  --red: #e45f6c;
  --shadow: 0 16px 40px rgba(30, 39, 74, .08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .18em; color: #8b97aa; }
.eyebrow.accent { color: var(--violet); }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; background: var(--paper); }
.login-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 9vw; color: white; background: radial-gradient(circle at 82% 24%, rgba(130,112,255,.3), transparent 28%), linear-gradient(145deg, #10192e 0%, #172341 58%, #11182c 100%); }
.login-brand::after { content: ""; position: absolute; width: 560px; height: 560px; right: -230px; bottom: -290px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.02), 0 0 0 140px rgba(255,255,255,.015); }
.brand-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: white; font-size: 24px; font-weight: 900; background: linear-gradient(145deg, var(--violet-2), #5142d9); box-shadow: 0 12px 28px rgba(91,75,224,.35); }
.brand-mark.small { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; font-size: 17px; }
.login-brand .eyebrow { margin-top: 42px; color: #9eabc4; }
.login-brand h1 { margin: 0; max-width: 620px; font-size: clamp(42px, 4.6vw, 74px); line-height: 1.08; letter-spacing: -.05em; }
.login-lead { max-width: 550px; margin: 28px 0 48px; color: #aeb8cd; line-height: 1.9; font-size: 16px; }
.trust-row { display: flex; gap: 32px; position: relative; z-index: 1; }
.trust-row span { color: #bec7d9; font-size: 13px; }
.trust-row b { display: block; margin-bottom: 6px; color: #7d70f5; font-size: 11px; }
.login-panel { display: grid; place-items: center; padding: 36px; overflow-y: auto; }
.login-card { width: min(430px, 100%); }
.login-card h2 { margin: 0; font-size: 36px; letter-spacing: -.03em; }
.login-card > .muted { margin: 12px 0 36px; }
.login-card label, .form-grid label { display: grid; gap: 9px; color: #4f5b70; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #dfe4ed; border-radius: 11px; padding: 12px 14px; color: var(--ink); outline: none; background: #fff; transition: .18s; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(110,92,246,.1); }
.login-card input { margin-bottom: 18px; padding: 15px; background: #fafbfc; }
.primary, .secondary, .danger-button, .ghost-button { border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 800; }
.primary { color: white; background: linear-gradient(135deg, var(--violet), #5c4ae8); box-shadow: 0 8px 18px rgba(101,84,235,.2); }
.primary:hover { transform: translateY(-1px); }
.primary.wide { width: 100%; display: flex; justify-content: space-between; padding: 15px 18px; margin-top: 8px; }
.secondary { color: var(--violet); background: var(--violet-soft); }
.ghost-button { color: #536077; background: #f0f2f6; }
.danger-button { color: var(--red); background: #fff0f2; }
.security-note { margin-top: 32px; text-align: center; color: #a0a9b7; font-size: 11px; }
.auth-link { display: block; margin: 18px auto 0; border: 0; color: var(--violet); background: transparent; font-weight: 800; }
.register-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.register-grid label:last-child { grid-column: span 2; }
.mobile-logo { display: none; align-items: center; gap: 12px; margin-bottom: 48px; font-weight: 900; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px 1fr; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 244px; display: flex; flex-direction: column; padding: 24px 17px; color: #d9deeb; background: var(--navy); }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 28px; }
.side-brand b { display: block; color: white; font-size: 15px; }
.side-brand small { display: block; margin-top: 3px; color: #65708a; font-size: 8px; letter-spacing: .13em; }
#nav { flex: 1; min-height: 0; display: grid; align-content: start; gap: 5px; overflow-y: auto; padding-right: 4px; }
#nav::-webkit-scrollbar { width: 5px; }
#nav::-webkit-scrollbar-thumb { border-radius: 5px; background: rgba(255,255,255,.12); }
.nav-label { margin: 23px 12px 8px; color: #58647d; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-radius: 10px; padding: 12px 14px; color: #8e99af; background: transparent; text-align: left; font-size: 13px; font-weight: 700; }
.nav-item:hover { color: #dce1ed; background: rgba(255,255,255,.04); }
.nav-item.active { color: white; background: linear-gradient(135deg, rgba(111,92,246,.9), rgba(89,72,218,.88)); box-shadow: 0 9px 20px rgba(64,50,178,.25); }
.nav-icon { width: 20px; font-size: 16px; text-align: center; }
.side-footer { display: flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.07); }
.user-chip { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; }
.user-chip > span { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 33px; border-radius: 50%; color: white; font-size: 12px; font-weight: 900; background: #37415b; }
.user-chip b, .user-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip b { color: #edf0f7; font-size: 12px; }
.user-chip small { margin-top: 2px; color: #66728b; font-size: 10px; }
.icon-button { border: 0; border-radius: 8px; padding: 7px 9px; color: #7d889d; background: transparent; }
.icon-button:hover { color: white; background: rgba(255,255,255,.05); }

.workspace { grid-column: 2; min-width: 0; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.topbar h2 { margin: 0; font-size: 21px; }
.topbar .eyebrow { margin-bottom: 3px; font-size: 8px; }
.top-actions { display: flex; align-items: center; gap: 7px; color: #7b8799; font-size: 11px; }
.top-actions b { margin-left: 14px; color: #374156; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #31bb87; box-shadow: 0 0 0 4px #e0f7ee; }
.notification-button { position: relative; min-width: 58px; border: 0; border-radius: 8px; padding: 8px 10px; color: #566278; background: #f1f3f7; font-size: 10px; font-weight: 800; }
.notification-button:hover { color: var(--violet); background: var(--violet-soft); }
.notification-badge { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; display: grid; place-items: center; border: 2px solid white; border-radius: 10px; padding: 0 4px; color: white; background: var(--red); font-size: 8px; line-height: 1; }
.menu-button { display: none; }
.page-content { max-width: 1540px; margin: 0 auto; padding: 30px 34px 50px; }

.welcome { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.welcome h1 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.welcome p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.date-range { display: flex; align-items: center; gap: 7px; }
.date-range input { width: 145px; padding: 9px 11px; font-size: 12px; }
.date-range select { width: 92px; padding: 9px 11px; font-size: 11px; }

.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { position: relative; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 6px 20px rgba(30,39,74,.035); }
.stat-card::after { content: ""; position: absolute; width: 55px; height: 55px; top: -17px; right: -17px; border-radius: 50%; background: var(--violet-soft); }
.stat-card span { color: #7c889b; font-size: 11px; font-weight: 700; }
.stat-card strong { display: block; margin: 13px 0 6px; font-size: 27px; letter-spacing: -.03em; }
.stat-card small { color: #a1a9b7; font-size: 10px; }
.stat-card.attention strong { color: var(--amber); }

.grid-2 { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; margin-bottom: 22px; }
.panel { border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 6px 20px rgba(30,39,74,.035); }
.panel-head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 14px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.panel-body { padding: 18px 20px; }
.segmented { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: #f1f3f7; }
.segmented button { border: 0; border-radius: 7px; padding: 7px 11px; color: #7a8597; background: transparent; font-size: 10px; font-weight: 800; }
.segmented button.active { color: var(--violet); background: white; box-shadow: 0 2px 7px rgba(20,30,60,.08); }
.rank-list { display: grid; gap: 9px; }
.rank-item { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 3px; border-bottom: 1px solid #f0f2f6; }
.rank-item:last-child { border: 0; }
.rank-no { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #7a8496; background: #f3f4f8; font-size: 11px; font-weight: 900; }
.rank-item:nth-child(1) .rank-no { color: #8b6200; background: #fff2c8; }
.rank-name b { font-size: 12px; }.rank-name small { display: block; margin-top: 3px; color: #9aa3b1; font-size: 9px; }
.rank-value { text-align: right; }.rank-value b { display: block; font-size: 12px; }.rank-value small { color: #9aa3b1; font-size: 9px; }
.game-bars { display: grid; gap: 17px; }
.game-row header { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 11px; }
.game-row header span:last-child { color: #8b95a5; }
.bar-track { height: 7px; overflow: hidden; border-radius: 8px; background: #eff1f5; }
.bar-track i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--violet), #a395ff); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 14px; color: #8b95a6; background: #fafbfc; text-align: left; white-space: nowrap; font-size: 10px; letter-spacing: .04em; }
td { padding: 14px; border-top: 1px solid #eef0f4; color: #4a566b; white-space: nowrap; font-size: 11px; }
td strong { color: var(--ink); }
tr.clickable:hover td { background: #fbfaff; cursor: pointer; }
.clickable-cell { cursor: pointer; }
.clickable-cell:hover strong { color: var(--violet); }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 5px 8px; font-size: 9px; font-weight: 900; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.pending { color: #c07a17; background: #fff7e8; }.badge.approved { color: #18845f; background: #e9f8f2; }.badge.returned { color: #cc4e5b; background: #fff0f2; }.badge.active { color: #18845f; background: #e9f8f2; }.badge.disabled { color: #8e98a7; background: #f0f2f5; }
.badge.open, .badge.available, .badge.unpaid { color: #b36b0e; background: #fff5df; }
.badge.in_progress, .badge.claimed { color: #2867c7; background: #edf4ff; }
.badge.pending_review, .badge.reported { color: #7b55cc; background: #f3edff; }
.badge.completed, .badge.paid { color: #18845f; background: #e9f8f2; }
.badge.cancelled { color: #8e98a7; background: #f0f2f5; }
.badge.idle { color: #18845f; background: #e9f8f2; }
.badge.busy { color: #2867c7; background: #edf4ff; }
.badge.paused { color: #b36b0e; background: #fff5df; }
.badge.offline, .badge.void { color: #8e98a7; background: #f0f2f5; }
.badge-button { border: 0; cursor: pointer; }
.type-tag { display: inline-flex; align-items: center; min-width: 36px; justify-content: center; margin-right: 6px; border-radius: 4px; padding: 3px 6px; color: #2867c7; background: #edf4ff; font-size: 9px; font-weight: 900; }
.slot-list { display: grid; gap: 5px; }
.slot-list span { display: block; }
.slot-list b { display: inline-grid; width: 18px; height: 18px; place-items: center; margin-right: 4px; border-radius: 4px; color: #59657a; background: #eef1f6; font-size: 9px; }
.compact { padding: 7px 10px; font-size: 10px; }
.inline-actions { display: flex; gap: 9px; align-items: center; }
.amount-positive { color: #18845f; }
.amount-negative { color: #cc4e5b; }
.highlight-row td { background: #f5f2ff; }
.checkbox-label { display: flex !important; grid-column: span 2; grid-template-columns: auto 1fr; align-items: center; justify-content: start; }
.checkbox-label input { width: 16px; height: 16px; }
.filters { display: flex; gap: 9px; flex-wrap: wrap; }
.filters input { width: 220px; }.filters select { width: 130px; }
.filters input, .filters select { padding: 9px 11px; font-size: 11px; }
.empty { padding: 46px 20px; color: #96a0af; text-align: center; font-size: 12px; }
.row-actions { display: flex; align-items: center; gap: 5px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pagination > div { display: flex; gap: 7px; }
.pagination button:disabled { cursor: default; opacity: .45; }

.notification-list { display: grid; }
.notification-item { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 15px; min-height: 96px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-item.unread { background: #fbfaff; }
.notification-mark { width: 7px; height: 7px; border-radius: 50%; background: #d5d9e1; }
.notification-item.unread .notification-mark { background: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.notification-copy { min-width: 0; }
.notification-copy > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.notification-copy strong { font-size: 12px; }
.notification-copy time, .notification-copy small { color: #99a2b1; font-size: 9px; }
.notification-copy p { margin: 8px 0 6px; color: #5c687d; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.message-template-panel { margin-bottom: 20px; }
.template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.template-item { position: relative; min-width: 0; min-height: 116px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 20px; background: white; text-align: left; }
.template-item:nth-child(2n) { border-right: 0; }
.template-item:hover { background: #fbfaff; }
.template-item strong { display: block; padding-right: 68px; color: var(--ink); font-size: 12px; }
.template-item p { overflow: hidden; margin: 10px 0; color: #626e83; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.template-item small { color: #959eac; font-size: 9px; }
.template-state { position: absolute; top: 16px; right: 18px; border-radius: 10px; padding: 4px 7px; font-size: 8px; font-weight: 900; }
.template-state.active { color: #18845f; background: #e9f8f2; }
.template-state.disabled { color: #8e98a7; background: #f0f2f5; }
.message-cell { min-width: 300px; white-space: normal; }
.message-cell strong, .message-cell small { display: block; }
.message-cell small { margin-top: 5px; color: var(--muted); line-height: 1.6; }
.settings-panel { max-width: 900px; }
.settings-section + .settings-section { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.settings-section h3 { margin: 0 0 17px; font-size: 13px; }
.settlement-preview { display: grid; align-content: center; min-height: 93px; border: 1px solid #e2defe; border-radius: 8px; padding: 13px 15px; background: #f8f7ff; }
.settlement-preview span, .settlement-preview small { color: #8a82bc; font-size: 9px; }
.settlement-preview strong { margin: 7px 0; color: #5f50d3; font-size: 13px; }
.settlement-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; border-bottom: 1px solid #e3e6ee; padding: 14px 18px; color: #5f6a7e; background: #f7f8fb; }
.settlement-notice > div { display: flex; align-items: center; gap: 12px; }
.settlement-notice strong { color: var(--ink); font-size: 11px; }
.settlement-notice span, .settlement-notice small { font-size: 10px; }
.settlement-notice.worker-policy { margin-bottom: 20px; border: 1px solid #e2defe; border-radius: 8px; background: #f8f7ff; }
.form-note code { display: inline-block; margin: 2px; border-radius: 4px; padding: 3px 5px; color: #5f50d3; background: #ebe8ff; font-size: 9px; }

.trend-panel { margin-bottom: 22px; }
.chart-legend { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; }
.turnover-key::before, .turnover-bar { background: #5e6ad2; }
.income-key::before, .income-bar { background: #2ca87f; }
.profit-key::before, .profit-bar { background: #ee9b45; }
.trend-chart { display: flex; align-items: stretch; gap: 8px; min-height: 220px; overflow-x: auto; padding: 5px 2px 2px; }
.trend-column { display: grid; grid-template-rows: 170px auto auto; gap: 5px; min-width: 42px; flex: 1; color: #7f8a9d; text-align: center; font-size: 9px; }
.trend-bars { display: flex; align-items: end; justify-content: center; gap: 3px; height: 170px; border-bottom: 1px solid #e5e8ee; }
.trend-bars i { width: min(10px, 25%); min-height: 2px; border-radius: 3px 3px 0 0; }
.trend-column b { color: #626d80; font-size: 9px; }
.trend-column small { color: #a0a8b5; font-size: 8px; }

.export-list { display: grid; }
.export-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.export-row:last-child { border-bottom: 0; }
.export-row strong { font-size: 12px; }
.export-row p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.confirm-text { margin: 0 0 18px; color: #657087; font-size: 11px; line-height: 1.7; }

.worker-submit-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.hero-card { margin-bottom: 20px; padding: 24px 27px; border-radius: 16px; color: white; background: linear-gradient(135deg, #6552e8, #806df7); box-shadow: 0 14px 30px rgba(96,79,220,.19); }
.hero-card h2 { margin: 0 0 8px; font-size: 22px; }.hero-card p { margin: 0; color: #ddd8ff; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 16px; }
.form-grid .span-2 { grid-column: span 2; }
textarea { min-height: 85px; resize: vertical; }
.field-help { color: #9aa4b3; font-size: 10px; font-weight: 400; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-list { display: grid; gap: 12px; }
.profile-row { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 11px; border-bottom: 1px solid #eef0f4; font-size: 11px; }
.profile-row span { color: #8c96a6; }.profile-row b { text-align: right; }
.privacy-card { margin-top: 16px; padding: 16px; border-radius: 12px; color: #6f62d9; background: #f3f0ff; font-size: 11px; line-height: 1.7; }
.quote-card { margin-top: 16px; padding: 18px; border: 1px solid #dfe4ee; border-radius: 8px; background: #fff; }
.quote-card > span { color: #8994a6; font-size: 10px; font-weight: 800; }
.quote-card strong { display: block; margin: 9px 0 13px; color: #18845f; font-size: 28px; }
.quote-card p { margin: 10px 0 0; color: #8994a6; font-size: 11px; line-height: 1.6; }
.quote-card dl { display: grid; gap: 8px; margin: 0; }
.quote-card dl div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid #eef0f4; font-size: 10px; }
.quote-card dt { color: #8b95a6; }.quote-card dd { margin: 0; color: #465267; font-weight: 800; }
.option-field { margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px 14px; }
.option-field legend { padding: 0 6px; color: #5d6880; font-size: 11px; font-weight: 800; }
.check-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check-option { display: grid !important; grid-template-columns: 16px 1fr; align-items: center; gap: 8px; min-width: 0; padding: 10px; border: 1px solid #e7eaf0; border-radius: 7px; background: #fafbfc; cursor: pointer; }
.check-option input { width: 15px; height: 15px; }
.check-option span { min-width: 0; color: #566278; font-size: 10px; font-weight: 700; }
.check-option b { display: block; margin-top: 3px; color: var(--violet); font-size: 9px; }
.empty-state-panel { padding: 70px 30px; border: 1px solid var(--line); border-radius: 8px; background: white; text-align: center; }
.empty-state-panel h3 { margin: 0 0 9px; font-size: 18px; }.empty-state-panel p { margin: 0; color: var(--muted); font-size: 12px; }
.game-tabs { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 16px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #f4f6f9; }
.game-tabs button { min-width: max-content; border: 0; border-radius: 6px; padding: 10px 16px; color: #6e798c; background: transparent; font-size: 11px; font-weight: 800; }
.game-tabs button.active { color: white; background: #6454df; box-shadow: 0 4px 10px rgba(78,62,190,.18); }
.pricing-panel { margin-bottom: 16px; }
.rule-tags { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.rule-tags span { padding: 7px 9px; border: 1px solid #dfe4ee; border-radius: 6px; color: #667187; background: white; font-size: 9px; font-weight: 800; }
.profile-summary { display: block; max-width: 210px; color: #667187; line-height: 1.65; white-space: normal; }
.form-note { margin-top: 16px; padding: 12px 14px; border-radius: 7px; color: #68748a; background: #f5f7fa; font-size: 10px; line-height: 1.7; }
input[readonly] { color: #566278; background: #f4f6f9; }
.assignment-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 14px 18px; border: 1px solid #d8e5f8; border-radius: 8px; background: #f3f7fd; }
.assignment-banner > div { min-width: 0; display: flex; align-items: center; gap: 8px; }
.assignment-banner b { font-size: 12px; }
.assignment-banner small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }

.assignment-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.assignment-card { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.assignment-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.assignment-card p { margin: 7px 0; color: #647086; font-size: 11px; }

.workbench-grid { grid-template-columns: 1.1fr .9fr; }
.claim-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.work-note { margin: 0; line-height: 1.8; }
.workbench-section { margin-bottom: 18px; }
.order-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px 20px; }
.order-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 4px 12px rgba(30,39,74,.035); }
.order-card > header { display: grid; gap: 8px; margin-bottom: 15px; }
.order-card > header > div { display: flex; align-items: center; min-width: 0; }
.order-card > header strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.order-no { color: #778297; font-size: 9px; font-weight: 700; }
.order-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.order-facts span { min-width: 0; color: #929bab; font-size: 9px; }
.order-facts b { display: block; overflow: hidden; margin-top: 4px; color: #465267; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.order-note { min-height: 34px; margin: 13px 0; padding: 9px; border-radius: 6px; color: #657087; background: #f5f7fa; font-size: 10px; line-height: 1.6; }
.wide-button { width: 100%; margin-top: 15px; }
.income-line { display: flex; align-items: center; gap: 9px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.income-line strong { margin-right: auto; color: var(--ink); font-size: 14px; }
.upload-zone { display: grid; place-items: center; min-height: 100px; border: 1px dashed #cdd3e1; border-radius: 11px; color: #8994a6; background: #fafbfc; text-align: center; cursor: pointer; }
.upload-zone input { display: none; }.upload-zone b { display: block; margin-bottom: 5px; color: #5d6880; font-size: 12px; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.preview-item { position: relative; width: 66px; height: 66px; }
.preview-item img { width: 66px; height: 66px; border-radius: 7px; object-fit: cover; border: 1px solid var(--line); }
.preview-item button { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 2px solid white; border-radius: 50%; color: white; background: #c84b58; font-size: 13px; line-height: 1; }
.payment-profile-grid { display: grid; gap: 12px; }
.payment-profile-item { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.payment-profile-item > div { display: flex; align-items: center; gap: 8px; }
.payment-profile-item p { margin: 8px 0; color: #566278; font-size: 11px; overflow-wrap: anywhere; }
.payment-profile-item img { display: block; width: 148px; max-width: 100%; aspect-ratio: 1; margin-top: 10px; border: 1px solid var(--line); border-radius: 7px; object-fit: contain; background: white; }
.text-link { color: #5f50d3; font-size: 10px; font-weight: 800; }

.modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,16,31,.55); backdrop-filter: blur(4px); }
.modal-panel { position: relative; width: min(680px, 100%); max-height: calc(100vh - 44px); overflow: auto; border-radius: 17px; background: white; box-shadow: 0 28px 80px rgba(10,16,31,.25); }
.modal-head { position: sticky; z-index: 2; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 19px 22px; border-bottom: 1px solid var(--line); background: white; }
.modal-head h3 { margin: 0; font-size: 16px; }.modal-close { border: 0; color: #7d8798; background: transparent; font-size: 20px; }
.modal-body { padding: 22px; }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 17px 22px; border-top: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.detail-item span { display: block; margin-bottom: 5px; color: #909aaa; font-size: 9px; }.detail-item b { font-size: 12px; word-break: break-all; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }.proof-grid img { width: 100%; aspect-ratio: 1.4; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); }
.review-box { margin-top: 20px; padding: 16px; border-radius: 12px; background: #f7f8fb; }.review-box h4 { margin: 0 0 14px; font-size: 12px; }

.toast { position: fixed; z-index: 100; top: 22px; left: 50%; transform: translate(-50%, -20px); padding: 12px 18px; border-radius: 10px; color: white; background: #172037; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }.toast.error { background: #c84b58; }
.skeleton { min-height: 150px; border-radius: 15px; background: linear-gradient(90deg, #f1f3f6 25%, #fafbfc 40%, #f1f3f6 65%); background-size: 300% 100%; animation: loading 1.3s infinite; }
@keyframes loading { to { background-position: -100% 0; } }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .worker-submit-layout { grid-template-columns: 1fr; }
  .order-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }.login-brand { display: none; }.login-panel { padding: 28px; }.mobile-logo { display: flex; }
  .app-shell { display: block; }.sidebar { transform: translateX(-100%); transition: .22s; }.sidebar.open { transform: translateX(0); box-shadow: 18px 0 40px rgba(8,14,28,.25); }
  .workspace { width: 100%; }.topbar { height: 70px; padding: 0 17px; justify-content: flex-start; gap: 13px; }.menu-button { display: block; border: 0; background: transparent; font-size: 21px; }.top-actions { margin-left: auto; }.top-actions span:not(.online-dot), .top-actions b { display: none; }
  .page-content { padding: 22px 16px 40px; }.welcome { align-items: flex-start; flex-direction: column; }.welcome h1 { font-size: 23px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }.stat-card { padding: 16px; }.stat-card strong { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }.form-grid .span-2 { grid-column: auto; }.detail-grid { grid-template-columns: repeat(2, 1fr); }
  .filters input, .filters select { width: 100%; }.filters { flex: 1; }.panel-head { align-items: flex-start; flex-direction: column; }.date-range { width: 100%; }.date-range input { min-width: 0; flex: 1; }
  .date-range select { min-width: 88px; }.chart-legend { flex-wrap: wrap; }.trend-column { min-width: 38px; }.export-row { align-items: flex-start; }
  .order-card-grid, .assignment-cards { grid-template-columns: 1fr; }.claim-form { grid-template-columns: 1fr; }.assignment-banner { align-items: flex-start; flex-direction: column; }.assignment-banner > div { align-items: flex-start; flex-wrap: wrap; }
  .check-options { grid-template-columns: 1fr; }.rule-tags { justify-content: flex-start; }
  .template-grid { grid-template-columns: 1fr; }.template-item { border-right: 0; }.notification-item { grid-template-columns: 8px minmax(0, 1fr); }.notification-item > button { grid-column: 2; justify-self: start; }.notification-copy > div, .settlement-notice, .settlement-notice > div { align-items: flex-start; flex-direction: column; }
}
