:root {
  --bg: #f2f5f3;
  --surface: #ffffff;
  --surface-2: #f7f9f8;
  --ink: #17201d;
  --muted: #718079;
  --line: #dde4e0;
  --mint: #0c8f70;
  --mint-soft: #dff4ec;
  --orange: #f18b3a;
  --orange-soft: #fff0e3;
  --red: #d95245;
  --red-soft: #fde9e7;
  --blue: #397c97;
  --blue-soft: #e2f1f5;
  --sidebar: #17201d;
  --shadow: 0 9px 28px rgba(24, 40, 34, .07);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--bg); letter-spacing: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; padding: 24px 17px 18px; background: var(--sidebar); color: #fff; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 24px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand-mark { position: relative; width: 35px; height: 35px; border-radius: 7px; background: #e6f6f0; overflow: hidden; flex: 0 0 auto; }
.brand-mark:before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); left: 7px; top: 7px; box-shadow: 13px 10px 0 var(--mint); }
.brand-mark span { position: absolute; width: 25px; height: 2px; background: #20322c; transform: rotate(51deg); left: 4px; top: 17px; }
.brand-mark i { position: absolute; width: 19px; height: 2px; background: #20322c; transform: rotate(-47deg); left: 8px; top: 18px; }
.brand strong { display: block; font-size: 16px; letter-spacing: .08em; }
.brand small { display: block; margin-top: 3px; font-size: 8px; color: #8e9c97; letter-spacing: .16em; }
.nav { margin-top: 18px; }
.nav p { margin: 18px 12px 8px; color: #74827d; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.nav-item { width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 6px; display: flex; align-items: center; gap: 12px; background: transparent; color: #aeb9b5; text-align: left; font-size: 13px; transition: .2s ease; }
.nav-item > span { width: 18px; font-size: 17px; text-align: center; color: #71817a; }
.nav-item em { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 10px; color: #91aaa1; background: rgba(255,255,255,.07); font-size: 10px; font-style: normal; text-align: center; }
.nav-item em.alert { color: #ffd7c0; background: rgba(241,139,58,.2); }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.075); }
.nav-item.active { box-shadow: inset 3px 0 var(--orange); }
.nav-item.active > span { color: #68d0ae; }
.lab-status { margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; background: rgba(255,255,255,.04); }
.status-orbit { width: 38px; height: 38px; display: grid; place-content: center; border: 3px solid #4db995; border-left-color: rgba(255,255,255,.12); border-radius: 50%; }
.status-orbit span { font-size: 11px; font-weight: 800; line-height: 1; }.status-orbit small { display: none; }
.lab-status strong, .lab-status small { display: block; }.lab-status strong { font-size: 11px; }.lab-status small { margin-top: 4px; color: #7f918a; font-size: 9px; }
.operator { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 13px 7px 0; border-top: 1px solid rgba(255,255,255,.08); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #d7e9e3; color: #15372c; font-size: 12px; font-weight: 800; }
.operator strong, .operator small { display: block; }.operator strong { font-size: 11px; }.operator small { color: #71817b; font-size: 9px; margin-top: 3px; }.operator button { margin-left: auto; color: #82908a; background: none; border: 0; }
.workspace { min-height: 100vh; margin-left: 244px; }
.topbar { height: 64px; padding: 0 30px; display: flex; align-items: center; gap: 20px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12px; white-space: nowrap; }.breadcrumb span,.breadcrumb b { color: #99a39f; font-weight: 500; }
.global-search { margin-left: auto; width: min(330px, 32vw); height: 35px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); color: var(--muted); }
.global-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }.global-search kbd { padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); font-size: 9px; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font-weight: 700; }
.notification { position: relative; }.notification i { position: absolute; right: 8px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); border: 1px solid #fff; }
.create-button,.primary-button { height: 36px; padding: 0 15px; border: 0; border-radius: 5px; color: #fff; background: var(--mint); font-size: 11px; font-weight: 700; box-shadow: 0 5px 14px rgba(12,143,112,.18); }.create-button span { font-size: 16px; margin-right: 5px; }
.menu-button,.mobile-close { display: none; }
main { padding: 30px; max-width: 1600px; margin: auto; }
.view { display: none; }.view.active { display: block; animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }.page-heading h1 { margin: 2px 0 6px; font-size: 26px; letter-spacing: 0; }.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }.page-heading .eyebrow,.eyebrow { color: var(--mint); font-size: 9px; font-weight: 800; letter-spacing: .14em; }.heading-actions { display: flex; gap: 9px; }
.secondary-button { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 700; }
.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-bottom: 15px; }
.metric-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); }.metric-card.warning { border-top: 2px solid var(--orange); }
.metric-top { display: flex; justify-content: space-between; align-items: center; }.metric-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; font-weight: 800; }.metric-icon.mint { color: var(--mint); background: var(--mint-soft); }.metric-icon.orange { color: var(--orange); background: var(--orange-soft); }.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }.metric-icon.red { color: var(--red); background: var(--red-soft); }
.metric-top small { color: var(--muted); font-size: 9px; }.metric-top .up { color: var(--mint); }.metric-top .down { color: var(--red); }
.metric-card > p { margin: 16px 0 6px; color: var(--muted); font-size: 11px; }.metric-card > strong { display: block; font-size: 23px; }.metric-card > span { display: block; margin-top: 8px; color: #9aa49f; font-size: 9px; }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(330px,.8fr); gap: 15px; margin-bottom: 15px; }.content-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.65fr); gap: 15px; }
.panel { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }.panel-head { min-height: 65px; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }.panel-head h2 { margin: 0 0 4px; font-size: 14px; }.panel-head p { margin: 0; color: var(--muted); font-size: 9px; }
.segmented { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); }.segmented button { padding: 5px 9px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 9px; }.segmented button.active { color: var(--ink); background: var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.chart-summary { padding: 14px 20px 0; display: flex; align-items: baseline; gap: 12px; }.chart-summary strong { font-size: 21px; }.chart-summary span { color: var(--mint); font-size: 9px; }.chart-wrap { height: 165px; padding: 7px 18px 0; }.chart-wrap canvas { width: 100%; height: 100%; }.chart-legend { display: flex; gap: 15px; padding: 0 20px 13px; color: var(--muted); font-size: 9px; }.chart-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; }.income-dot { background: var(--mint); }.refund-dot { background: var(--orange); }
.text-button { border: 0; background: transparent; color: var(--mint); font-size: 10px; font-weight: 700; }
.timeline { padding: 9px 18px 15px; }.timeline-item { min-height: 48px; display: grid; grid-template-columns: 39px 12px 1fr auto; align-items: center; column-gap: 8px; position: relative; }.timeline-item:after { content:""; position: absolute; width: 1px; height: 27px; left: 44px; top: 35px; background: var(--line); }.timeline-item:last-child:after { display:none; }.timeline-item time { color: var(--muted); font-size: 9px; }.timeline-item > i { width: 8px; height: 8px; border: 2px solid #b8c1bd; border-radius: 50%; background: var(--surface); z-index:1; }.timeline-item.current > i { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }.timeline-item.done > i { border-color: var(--mint); background: var(--mint); }.timeline-item strong { font-size: 10px; }.timeline-item p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }.timeline-item > span { padding: 3px 6px; border-radius: 3px; background: var(--surface-2); color: var(--muted); font-size: 8px; }.timeline-item.current > span { color: #bd651f; background: var(--orange-soft); }
.event-table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th { color: #8e9a95; background: var(--surface-2); font-size: 8px; letter-spacing: .04em; text-align: left; }th,td { height: 43px; padding: 0 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }td { font-size: 10px; }tbody tr:last-child td { border-bottom:0; }tbody tr:hover { background: #fafcfb; }.activity-cell { display: flex; align-items: center; gap: 9px; }.activity-thumb { width: 30px; height: 30px; display: grid; place-items:center; border-radius: 5px; font-size: 13px; font-weight:800; }.activity-thumb.green { background:var(--mint-soft); color:var(--mint); }.activity-thumb.orange { background:var(--orange-soft); color:var(--orange); }.activity-thumb.blue { background:var(--blue-soft); color:var(--blue); }.activity-thumb.red { background:var(--red-soft); color:var(--red); }.activity-cell strong,.activity-cell small { display:block; }.activity-cell small { margin-top:3px; color:var(--muted); font-size:8px; }
.progress-cell { display:flex; align-items:center; gap:7px; }.progress { width:55px; height:4px; border-radius:3px; background:#e7ece9; overflow:hidden; }.progress i { display:block; height:100%; background:var(--mint); }.tag { padding:3px 7px; border-radius:3px; font-size:8px; }.tag.live { background:var(--mint-soft); color:var(--mint); }.tag.pending { background:var(--orange-soft); color:#b45b18; }.tag.done { background:#edf0ef; color:#67736e; }.tag.danger { background:var(--red-soft); color:var(--red); }
.count-badge { min-width:21px; padding:4px 7px; border-radius:11px; color:var(--red); background:var(--red-soft); font-size:9px; text-align:center; }.alert-list { padding: 4px 17px; }.alert-list button { width:100%; padding:12px 0; display:flex; align-items:center; gap:10px; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--ink); text-align:left; }.alert-list button:last-child { border-bottom:0; }.alert-symbol { width:29px; height:29px; display:grid; place-items:center; border-radius:5px; font-weight:800; }.alert-symbol.urgent { background:var(--red-soft); color:var(--red); }.alert-symbol.stock { background:var(--orange-soft); color:var(--orange); }.alert-symbol.inspect { background:var(--blue-soft); color:var(--blue); }.alert-list strong { font-size:9px; }.alert-list p { margin:4px 0 0; color:var(--muted); font-size:8px; }.alert-list b { margin-left:auto; color:#a9b1ae; }.full-button { width:calc(100% - 34px); height:31px; margin:3px 17px 14px; border:1px solid var(--line); border-radius:4px; background:var(--surface); color:var(--ink); font-size:9px; font-weight:700; }
.page-heading.compact { align-items:center; }.section-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:15px; }.mini-stat { padding:14px 16px; border:1px solid var(--line); border-radius:6px; background:var(--surface); }.mini-stat span { color:var(--muted); font-size:9px; }.mini-stat strong { display:block; margin-top:7px; font-size:18px; }.mini-stat small { margin-left:6px; font-size:8px; color:var(--mint); }
.data-toolbar { display:flex; align-items:center; gap:10px; padding:13px 16px; border-bottom:1px solid var(--line); }.tabs { display:flex; gap:2px; }.tabs button { height:29px; padding:0 12px; border:0; border-radius:4px; background:transparent; color:var(--muted); font-size:9px; }.tabs button.active { background:var(--mint-soft); color:var(--mint); font-weight:700; }.table-search { margin-left:auto; height:30px; width:210px; padding:0 9px; display:flex; align-items:center; gap:6px; border:1px solid var(--line); border-radius:4px; color:var(--muted); }.table-search input { width:100%; border:0; outline:0; background:transparent; color:var(--ink); font-size:9px; }.filter-button { height:30px; padding:0 11px; border:1px solid var(--line); border-radius:4px; background:var(--surface); color:var(--ink); font-size:9px; }.active-filter { display:none; margin:10px 16px 0; width:max-content; padding:5px 7px; border-radius:4px; color:var(--mint); background:var(--mint-soft); font-size:9px; }.active-filter.show { display:block; }.active-filter button { border:0; background:none; color:inherit; }.event-table-wrap.large th,.event-table-wrap.large td { height:49px; }.row-check { accent-color:var(--mint); }.row-action { border:0; background:transparent; color:var(--muted); font-weight:800; }.pagination { padding:12px 16px; display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--line); }.pagination p { color:var(--muted); font-size:9px; }.pagination div { display:flex; gap:4px; }.pagination button { width:27px; height:27px; border:1px solid var(--line); border-radius:4px; background:var(--surface); color:var(--muted); font-size:9px; }.pagination button.active { color:#fff; border-color:var(--mint); background:var(--mint); }.pagination button:disabled { opacity:.35; cursor:not-allowed; }
.toast { position:fixed; right:24px; bottom:24px; z-index:50; min-width:230px; padding:13px 16px; display:flex; align-items:center; gap:10px; border-radius:6px; background:#18231f; color:#fff; box-shadow:0 14px 34px rgba(0,0,0,.22); transform:translateY(90px); opacity:0; transition:.3s ease; }.toast.show { transform:none; opacity:1; }.toast span { width:22px; height:22px; display:grid; place-items:center; border-radius:50%; background:var(--mint); }.toast p { margin:0; font-size:11px; }
.modal-backdrop { position:fixed; inset:0; z-index:40; display:grid; place-items:center; padding:20px; background:rgba(8,16,13,.55); opacity:0; pointer-events:none; transition:.2s; }.modal-backdrop.open { opacity:1; pointer-events:auto; }.modal { width:min(570px,100%); max-height:90vh; overflow-y:auto; border-radius:8px; background:var(--surface); box-shadow:0 24px 60px rgba(0,0,0,.3); transform:translateY(12px); transition:.2s; }.modal-backdrop.open .modal { transform:none; }.modal-head { padding:20px 22px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line); }.modal-head h2 { margin:3px 0 0; font-size:19px; }.modal form { padding:20px 22px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }.form-field { display:flex; flex-direction:column; gap:6px; }.form-field.full,.safety-note.full,.modal-actions.full { grid-column:1/-1; }.form-field span { font-size:10px; font-weight:700; }.form-field input,.form-field select,.form-field textarea { width:100%; padding:9px 10px; border:1px solid var(--line); border-radius:4px; outline:0; color:var(--ink); background:var(--surface-2); font-size:11px; }.form-field input:focus,.form-field select:focus,.form-field textarea:focus { border-color:var(--mint); box-shadow:0 0 0 3px var(--mint-soft); }.safety-note { padding:10px 12px; display:flex; gap:9px; border-radius:5px; background:var(--orange-soft); color:#855126; }.safety-note p { margin:0; font-size:9px; line-height:1.6; }.safety-note strong { display:block; }.modal-actions { display:flex; justify-content:flex-end; gap:8px; padding-top:3px; }
body.dark { --bg:#111714; --surface:#1b2420; --surface-2:#202b26; --ink:#edf5f1; --muted:#93a39c; --line:#303c37; --shadow:none; }.dark .topbar { background:rgba(27,36,32,.94); }.dark tbody tr:hover { background:#202b26; }.dark .notification i { border-color:#1b2420; }
@media (max-width:1100px) { .metrics-grid { grid-template-columns:repeat(2,1fr); }.overview-grid,.content-grid { grid-template-columns:1fr; }.schedule-panel { min-height:auto; }.section-stats { grid-template-columns:repeat(2,1fr); } }
@media (max-width:760px) { .sidebar { transform:translateX(-100%); transition:.25s ease; box-shadow:10px 0 40px rgba(0,0,0,.2); }.sidebar.open { transform:none; }.workspace { margin-left:0; }.topbar { height:58px; padding:0 14px; gap:9px; }.menu-button,.mobile-close { display:block; }.mobile-close { margin-left:auto; color:#fff; border-color:rgba(255,255,255,.15); background:transparent; }.breadcrumb,.top-actions .icon-button,.global-search kbd { display:none; }.global-search { margin-left:0; width:auto; flex:1; }.create-button { width:35px; padding:0; font-size:0; }.create-button span { margin:0; font-size:18px; }main { padding:20px 14px; }.page-heading { align-items:flex-start; }.page-heading h1 { font-size:22px; }.page-heading > div > p:not(.eyebrow) { max-width:220px; line-height:1.5; }.heading-actions .secondary-button { display:none; }.metrics-grid { grid-template-columns:1fr 1fr; gap:9px; }.metric-card { padding:14px; }.metric-card > strong { font-size:19px; }.overview-grid,.content-grid { gap:10px; }.section-stats { grid-template-columns:1fr 1fr; gap:8px; }.data-toolbar { flex-wrap:wrap; }.tabs { width:100%; overflow-x:auto; }.tabs button { flex:1; white-space:nowrap; }.table-search { margin-left:0; flex:1; width:auto; }.modal form { grid-template-columns:1fr; }.form-field.full,.safety-note.full,.modal-actions.full { grid-column:1; } }
@media (max-width:420px) { .metrics-grid { grid-template-columns:1fr; }.metric-card > span { display:none; }.section-stats { grid-template-columns:1fr; }.heading-actions .primary-button { width:36px; padding:0; overflow:hidden; color:transparent; position:relative; }.heading-actions .primary-button:after { content:"+"; position:absolute; inset:0; display:grid; place-items:center; color:white; font-size:17px; }.chart-summary { padding-left:14px; }.panel-head { padding-left:14px; padding-right:14px; } }
