:root {
  --navy-950: #0a1729;
  --navy-900: #10233f;
  --navy-800: #173356;
  --navy-700: #21466f;
  --teal-600: #0e8f87;
  --teal-500: #16a79c;
  --teal-100: #dff7f4;
  --blue-600: #2e67d1;
  --blue-100: #e8f0ff;
  --amber-600: #b96b0b;
  --amber-100: #fff2d8;
  --red-600: #ce3f4d;
  --red-100: #ffe8eb;
  --green-600: #1e8a55;
  --green-100: #e4f7ec;
  --purple-600: #7251b5;
  --purple-100: #f0eaff;
  --ink-950: #132238;
  --ink-800: #31435d;
  --ink-600: #61718a;
  --ink-500: #7a899f;
  --ink-300: #b9c3d2;
  --line: #e2e8f1;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --surface-muted: #edf2f8;
  --shadow-sm: 0 1px 2px rgba(16, 35, 63, 0.06), 0 4px 16px rgba(16, 35, 63, 0.04);
  --shadow-md: 0 16px 40px rgba(16, 35, 63, 0.14);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --sidebar-width: 248px;
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--surface-soft); }
body { margin: 0; min-height: 100vh; color: var(--ink-950); background: var(--surface-soft); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }
.boot-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--ink-600); }
.boot-logo, .brand-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: white; font-size: 22px; font-weight: 800; background: linear-gradient(145deg, var(--teal-500), var(--blue-600)); box-shadow: 0 10px 24px rgba(14,143,135,.24); }
.boot-screen strong { color: var(--ink-950); display: block; margin-bottom: 4px; }
.boot-screen p { margin: 0; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 520px) minmax(480px, 1fr); background: radial-gradient(circle at 80% 15%, rgba(22,167,156,.16), transparent 28%), linear-gradient(135deg, #0b1a2f 0%, #102b4a 58%, #125b64 100%); }
.login-panel { background: rgba(255,255,255,.97); min-height: 100vh; padding: clamp(36px, 7vw, 84px); display: flex; flex-direction: column; justify-content: center; border-radius: 0 34px 34px 0; box-shadow: 24px 0 70px rgba(3,14,28,.24); }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 54px; }
.login-brand h1 { font-size: 20px; margin: 0; letter-spacing: .02em; }
.login-brand p { margin: 4px 0 0; color: var(--ink-500); font-size: 12px; }
.login-panel h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; letter-spacing: -.04em; }
.login-lead { color: var(--ink-600); margin: 0 0 30px; line-height: 1.7; }
.login-form { display: grid; gap: 18px; }
.demo-accounts { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.demo-accounts > p { color: var(--ink-500); font-size: 12px; margin: 0 0 12px; }
.demo-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.demo-account { text-align: left; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 12px; transition: .18s ease; }
.demo-account:hover { border-color: var(--teal-500); background: var(--teal-100); transform: translateY(-1px); }
.demo-account strong { display: block; color: var(--ink-950); margin-bottom: 3px; }
.demo-account span { color: var(--ink-500); font-size: 12px; }
.login-showcase { padding: clamp(44px, 7vw, 100px); color: white; display: flex; align-items: center; }
.showcase-inner { max-width: 680px; }
.showcase-kicker { color: #8fe4da; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; }
.showcase-inner h3 { font-size: clamp(34px, 5vw, 62px); line-height: 1.08; margin: 18px 0; letter-spacing: -.05em; }
.showcase-inner > p { color: #becddd; font-size: 17px; line-height: 1.8; max-width: 560px; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.showcase-card { padding: 18px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.07); border-radius: 16px; backdrop-filter: blur(12px); }
.showcase-card b { display: block; font-size: 22px; margin-bottom: 8px; }
.showcase-card span { color: #b9c9da; font-size: 12px; line-height: 1.6; }
.app-shell { min-height: 100vh; background: var(--surface-soft); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); background: var(--navy-950); color: white; padding: 22px 16px; display: flex; flex-direction: column; z-index: 20; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 26px; }
.sidebar-brand .brand-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
.sidebar-brand strong { display: block; font-size: 15px; }
.sidebar-brand span { color: #7890aa; font-size: 10px; display: block; margin-top: 3px; letter-spacing: .08em; }
.nav-label { color: #627993; padding: 12px 12px 7px; font-size: 10px; letter-spacing: .14em; font-weight: 700; }
.sidebar-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; border: 0; background: transparent; color: #a9bbce; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; text-align: left; transition: .16s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(22,167,156,.25), rgba(46,103,209,.18)); box-shadow: inset 3px 0 0 var(--teal-500); }
.nav-item .nav-icon { width: 18px; display: grid; place-items: center; }
.nav-count { margin-left: auto; color: #7690ab; font-size: 11px; }
.sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.user-mini { display: flex; align-items: center; gap: 10px; padding: 9px 8px 4px; }
.avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; background: linear-gradient(145deg, #e7f5ff, #cfeee9); color: var(--navy-900); font-weight: 800; }
.user-mini strong { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-mini span { display: block; color: #7e94ab; font-size: 10px; margin-top: 2px; }
.main-wrap { margin-left: var(--sidebar-width); min-height: 100vh; }
.topbar { height: 72px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); display: flex; align-items: center; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 12; }
.mobile-menu { display: none; }
.page-title h1 { font-size: 19px; margin: 0; letter-spacing: -.02em; }
.page-title p { margin: 4px 0 0; color: var(--ink-500); font-size: 11px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-500); }
.search-box input { width: 230px; padding-left: 37px; background: var(--surface-soft); }
.main-content { padding: 26px 28px 44px; max-width: 1720px; margin: 0 auto; }
.btn { border: 1px solid transparent; border-radius: 10px; padding: 9px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 650; transition: .16s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--teal-600), #137cb5); box-shadow: 0 7px 16px rgba(14,143,135,.18); }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(14,143,135,.26); }
.btn-secondary { color: var(--navy-900); background: white; border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-300); background: #fbfcfe; }
.btn-ghost { color: var(--ink-600); background: transparent; }
.btn-ghost:hover { background: var(--surface-muted); }
.btn-danger { color: var(--red-600); background: var(--red-100); }
.btn-success { color: white; background: var(--green-600); }
.btn-sm { padding: 7px 10px; border-radius: 8px; font-size: 12px; }
.btn-icon { width: 34px; height: 34px; padding: 0; }
.icon-btn { border: 0; background: transparent; color: var(--ink-500); border-radius: 8px; width: 32px; height: 32px; display: grid; place-items: center; }
.icon-btn:hover { color: var(--ink-950); background: var(--surface-muted); }
.field { display: grid; gap: 7px; }
.field > label { color: var(--ink-800); font-size: 12px; font-weight: 700; }
.field .hint { color: var(--ink-500); font-size: 10px; line-height: 1.5; }
input, select, textarea { width: 100%; border: 1px solid #d8e0eb; background: white; color: var(--ink-950); border-radius: 10px; padding: 10px 11px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(22,167,156,.12); }
input::placeholder, textarea::placeholder { color: #a4afbf; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--teal-600); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field.span-2 { grid-column: span 2; }
.field.span-3 { grid-column: span 3; }
.form-section { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fcfdff; }
.form-section + .form-section { margin-top: 16px; }
.form-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.form-section-head h3 { margin: 0; font-size: 14px; }
.form-section-head p { margin: 4px 0 0; color: var(--ink-500); font-size: 11px; }
.page-section + .page-section { margin-top: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 16px; }
.section-head p { margin: 3px 0 0; color: var(--ink-500); font-size: 11px; }
.section-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-body { padding: 20px; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.kpi-card { position: relative; overflow: hidden; padding: 18px; min-height: 124px; }
.kpi-card::after { content: ""; position: absolute; right: -20px; top: -28px; width: 94px; height: 94px; border-radius: 50%; background: currentColor; opacity: .055; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink-500); font-size: 11px; font-weight: 700; }
.kpi-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--blue-600); background: var(--blue-100); }
.kpi-icon.teal { color: var(--teal-600); background: var(--teal-100); }
.kpi-icon.amber { color: var(--amber-600); background: var(--amber-100); }
.kpi-icon.green { color: var(--green-600); background: var(--green-100); }
.kpi-icon.red { color: var(--red-600); background: var(--red-100); }
.kpi-value { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.045em; margin: 13px 0 5px; }
.kpi-meta { color: var(--ink-500); font-size: 10px; display: flex; align-items: center; gap: 5px; }
.trend-up { color: var(--green-600); font-weight: 700; }
.trend-warn { color: var(--amber-600); font-weight: 700; }
.trend-danger { color: var(--red-600); font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); gap: 18px; }
.dashboard-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: grid; gap: 18px; }
.chart-bars { height: 210px; display: flex; align-items: flex-end; gap: 14px; padding: 18px 6px 0; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; min-width: 28px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.bar-stack { width: min(42px, 80%); height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.bar { width: 100%; min-height: 3px; background: linear-gradient(180deg, var(--teal-500), var(--teal-600)); border-radius: 6px 6px 0 0; position: relative; }
.bar.secondary { background: linear-gradient(180deg, #8caef5, var(--blue-600)); border-radius: 0 0 6px 6px; }
.bar-label { color: var(--ink-500); font-size: 10px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-600); font-size: 11px; margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; background: var(--teal-500); }
.legend i.blue { background: var(--blue-600); }
.progress { height: 7px; background: var(--surface-muted); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-500), #34bfa7); border-radius: inherit; }
.progress.amber > span { background: linear-gradient(90deg, #e9a23b, var(--amber-600)); }
.progress.red > span { background: linear-gradient(90deg, #ed6b76, var(--red-600)); }
.progress.blue > span { background: linear-gradient(90deg, #6f9aef, var(--blue-600)); }
.table-wrap { overflow: auto; border-radius: 0 0 var(--radius) var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th { position: sticky; top: 0; background: #f8fafd; color: var(--ink-500); font-weight: 700; font-size: 10px; text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1; }
td { padding: 13px; border-bottom: 1px solid #edf1f6; vertical-align: middle; color: var(--ink-800); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfe; }
.table-primary { font-weight: 750; color: var(--ink-950); display: block; margin-bottom: 4px; }
.table-sub { color: var(--ink-500); font-size: 10px; display: block; }
.table-actions { display: flex; align-items: center; gap: 4px; }
.mono { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.muted { color: var(--ink-500); }
.small { font-size: 11px; }
.strong { font-weight: 750; }
.danger-text { color: var(--red-600); }
.success-text { color: var(--green-600); }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 750; line-height: 1; white-space: nowrap; color: var(--ink-600); background: var(--surface-muted); }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.teal, .pill.green { color: var(--green-600); background: var(--green-100); }
.pill.blue { color: var(--blue-600); background: var(--blue-100); }
.pill.amber { color: var(--amber-600); background: var(--amber-100); }
.pill.red { color: var(--red-600); background: var(--red-100); }
.pill.purple { color: var(--purple-600); background: var(--purple-100); }
.pill.gray { color: var(--ink-600); background: var(--surface-muted); }
.pill.outline { background: white; border: 1px solid var(--line); }
.pill.no-dot::before { display: none; }
.avatar-sm { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--blue-100); color: var(--blue-600); font-weight: 800; font-size: 10px; flex: 0 0 auto; }
.avatar-sm.teal { color: var(--teal-600); background: var(--teal-100); }
.avatar-sm.amber { color: var(--amber-600); background: var(--amber-100); }
.avatar-sm.purple { color: var(--purple-600); background: var(--purple-100); }
.person { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.person span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-group { display: flex; align-items: center; }
.avatar-group .avatar-sm { margin-left: -5px; border: 2px solid white; }
.avatar-group .avatar-sm:first-child { margin-left: 0; }
.avatar-more { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-muted); color: var(--ink-500); font-size: 9px; margin-left: -4px; border: 2px solid white; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .field-inline { display: flex; align-items: center; gap: 7px; color: var(--ink-500); font-size: 11px; }
.toolbar input, .toolbar select { width: auto; min-width: 130px; padding: 8px 10px; border-radius: 9px; }
.toolbar .search-wide { min-width: min(300px, 100%); }
.filter-tabs { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--surface-muted); gap: 3px; }
.filter-tab { border: 0; background: transparent; color: var(--ink-600); padding: 7px 11px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.filter-tab.active { background: white; color: var(--ink-950); box-shadow: var(--shadow-sm); }
.empty-state { padding: 56px 20px; text-align: center; color: var(--ink-500); }
.empty-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 15px; background: var(--surface-muted); display: grid; place-items: center; color: var(--ink-500); }
.empty-state strong { color: var(--ink-800); display: block; margin-bottom: 5px; }
.empty-state p { margin: 0; font-size: 11px; }
.list { display: grid; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf1f6; }
.list-row:last-child { border-bottom: 0; }
.list-row-main { min-width: 0; flex: 1; }
.list-row-main strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row-main span { color: var(--ink-500); font-size: 10px; display: block; margin-top: 4px; }
.list-row-side { text-align: right; flex: 0 0 auto; }
.list-row-side strong { font-size: 11px; display: block; }
.list-row-side span { color: var(--ink-500); font-size: 9px; display: block; margin-top: 3px; }
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 18px 1fr; gap: 10px; position: relative; padding-bottom: 15px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: var(--line); }
.timeline-dot { width: 11px; height: 11px; margin-top: 3px; border-radius: 50%; border: 2px solid white; background: var(--teal-500); box-shadow: 0 0 0 1px var(--teal-500); z-index: 1; }
.timeline-item p { margin: 0; font-size: 11px; line-height: 1.55; color: var(--ink-800); }
.timeline-item span { color: var(--ink-500); font-size: 9px; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col { background: #eef3f8; border-radius: var(--radius); padding: 10px; min-height: 430px; border: 1px solid #e2e9f1; }
.kanban-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 12px; }
.kanban-head strong { font-size: 12px; }
.kanban-count { margin-left: auto; color: var(--ink-500); font-size: 10px; }
.kanban-list { display: grid; gap: 9px; align-content: start; }
.task-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-sm); transition: .16s; cursor: pointer; }
.task-card:hover { transform: translateY(-2px); border-color: #cbd8e7; box-shadow: 0 8px 20px rgba(16,35,63,.08); }
.task-card.overdue { border-left: 3px solid var(--red-600); }
.task-card-top { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.task-card-top .pill { margin-left: auto; }
.task-title { font-weight: 750; margin: 0 0 7px; line-height: 1.4; }
.task-order { color: var(--ink-500); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 11px; }
.task-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-500); font-size: 9px; margin-bottom: 9px; }
.task-cost { color: var(--ink-800); font-weight: 750; font-size: 10px; }
.detail-hero { padding: 22px; border-radius: var(--radius); background: linear-gradient(135deg, #10233f, #184469); color: white; margin-bottom: 18px; }
.detail-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.detail-hero h2 { margin: 4px 0 7px; font-size: 22px; }
.detail-hero p { margin: 0; color: #b9cadc; font-size: 11px; }
.detail-code { color: #83dcd2; font-size: 10px; letter-spacing: .08em; font-weight: 750; }
.detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.detail-summary-cell { padding: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); border-radius: 11px; }
.detail-summary-cell span { color: #a9c0d6; display: block; font-size: 9px; margin-bottom: 7px; }
.detail-summary-cell strong { font-size: 15px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.detail-cell { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fcfdff; }
.detail-cell span { color: var(--ink-500); display: block; font-size: 9px; margin-bottom: 6px; }
.detail-cell strong { font-size: 11px; line-height: 1.45; word-break: break-word; }
.detail-section { margin-top: 22px; }
.stage-list { display: grid; gap: 9px; }
.stage-row { display: grid; grid-template-columns: 30px minmax(170px, 1fr) 150px 110px 90px 34px; gap: 10px; align-items: center; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 11px; }
.stage-index { width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-muted); color: var(--ink-600); font-size: 10px; font-weight: 800; }
.stage-main strong { display: block; font-size: 12px; margin-bottom: 4px; }
.stage-main span { display: block; color: var(--ink-500); font-size: 9px; }
.stage-money { text-align: right; }
.finance-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.finance-card { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: white; }
.finance-card span { color: var(--ink-500); font-size: 10px; font-weight: 700; }
.finance-card strong { display: block; font-size: 23px; margin: 10px 0 4px; letter-spacing: -.04em; }
.finance-card small { color: var(--ink-500); font-size: 9px; }
.cost-breakdown { display: grid; gap: 10px; }
.cost-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px 90px; gap: 12px; align-items: center; }
.cost-row-header { color: var(--ink-500); font-size: 9px; font-weight: 750; }
.cost-bar { height: 8px; background: var(--surface-muted); border-radius: 999px; overflow: hidden; }
.cost-bar span { display: block; height: 100%; background: linear-gradient(90deg, #f2b24e, #dd8b1e); border-radius: inherit; }
.amount-strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.person-card { padding: 18px; }
.person-card-head { display: flex; align-items: center; gap: 12px; }
.person-card-head .avatar { width: 44px; height: 44px; border-radius: 13px; }
.person-card-head h3 { margin: 0 0 4px; font-size: 14px; }
.person-card-head p { margin: 0; color: var(--ink-500); font-size: 10px; }
.person-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.person-stat { padding: 10px; background: var(--surface-soft); border-radius: 10px; }
.person-stat span { color: var(--ink-500); display: block; font-size: 9px; margin-bottom: 5px; }
.person-stat strong { font-size: 14px; }
.permission-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.permission-chip { padding: 5px 7px; background: var(--surface-muted); color: var(--ink-600); border-radius: 7px; font-size: 9px; }
.person-card-actions { display: flex; gap: 8px; margin-top: 16px; }
.permission-matrix { display: grid; grid-template-columns: 190px repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.matrix-cell { padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; background: white; }
.matrix-cell:nth-child(4n) { border-right: 0; }
.matrix-head { background: #f8fafd; color: var(--ink-600); font-weight: 750; font-size: 10px; }
.matrix-label { font-weight: 700; color: var(--ink-800); }
.matrix-cell:last-child, .matrix-cell:nth-last-child(2), .matrix-cell:nth-last-child(3), .matrix-cell:nth-last-child(4) { border-bottom: 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.catalog-card { display: flex; flex-direction: column; min-height: 340px; }
.catalog-card-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.catalog-card-head h3 { margin: 0 0 5px; font-size: 14px; }
.catalog-card-head p { margin: 0; color: var(--ink-500); font-size: 10px; }
.catalog-list { padding: 10px 18px; overflow: auto; max-height: 320px; flex: 1; }
.catalog-item { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #edf1f6; }
.catalog-item:last-child { border-bottom: 0; }
.catalog-item-main { min-width: 0; flex: 1; }
.catalog-item-main strong { display: block; font-size: 11px; }
.catalog-item-main span { color: var(--ink-500); font-size: 9px; display: block; margin-top: 3px; }
.catalog-form { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; background: #fbfcfe; border-radius: 0 0 var(--radius) var(--radius); }
.inline-input { display: flex; gap: 7px; }
.inline-input input { min-width: 0; }
.catalog-template-name { display: flex; align-items: center; gap: 8px; }
.catalog-template-name svg { color: var(--teal-600); }
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.data-action { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.data-action-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; flex: 0 0 auto; }
.data-action-icon.amber { background: var(--amber-100); color: var(--amber-600); }
.data-action-icon.red { background: var(--red-100); color: var(--red-600); }
.data-action-body { flex: 1; min-width: 0; }
.data-action h3 { margin: 0 0 5px; font-size: 13px; }
.data-action p { margin: 0 0 12px; color: var(--ink-500); font-size: 10px; line-height: 1.6; }
.notice { padding: 14px 16px; border-radius: 11px; background: var(--amber-100); color: #83500e; border: 1px solid #f3dbaa; font-size: 11px; line-height: 1.65; }
.notice.blue { color: #1e4a91; background: var(--blue-100); border-color: #ccddfc; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(6,18,34,.56); z-index: 50; display: grid; place-items: center; padding: 24px; backdrop-filter: blur(4px); animation: fadeIn .15s ease; }
.modal { width: min(760px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: white; border-radius: 18px; box-shadow: var(--shadow-md); animation: modalIn .18s ease; }
.modal.modal-wide { width: min(1040px, 100%); }
.modal.modal-drawer { width: min(900px, 100%); }
.modal-head { position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-head p { margin: 5px 0 0; color: var(--ink-500); font-size: 10px; }
.modal-body { padding: 20px 22px; }
.modal-foot { position: sticky; bottom: 0; z-index: 3; display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
.modal-foot.split { justify-content: space-between; }
.modal-foot-group { display: flex; gap: 9px; }
.confirm-box { max-width: 420px; }
.confirm-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--red-600); background: var(--red-100); margin-bottom: 14px; }
.checkbox-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checkbox-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.checkbox-option:hover { border-color: #cbd8e7; }
.checkbox-option input { margin-top: 3px; }
.checkbox-option strong { display: block; font-size: 11px; margin-bottom: 3px; }
.checkbox-option span { display: block; color: var(--ink-500); font-size: 9px; line-height: 1.45; }
.payment-box { padding: 14px; border-radius: 11px; border: 1px dashed #cbd8e7; background: #f9fbfe; }
.payment-box strong { font-size: 15px; display: block; margin-bottom: 4px; }
.payment-box span { color: var(--ink-500); font-size: 10px; }
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: grid; gap: 8px; }
.toast { min-width: 240px; max-width: 360px; background: var(--navy-950); color: white; padding: 12px 14px; border-radius: 11px; box-shadow: var(--shadow-md); animation: toastIn .18s ease; font-size: 11px; }
.toast.success { border-left: 3px solid #4ed5a0; }
.toast.error { border-left: 3px solid #ff7a87; }
.toast.info { border-left: 3px solid #75a7ff; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-row { grid-template-columns: 28px minmax(160px, 1fr) 130px 100px 84px 34px; }
}
@media (max-width: 1020px) {
  :root { --sidebar-width: 220px; }
  .main-content { padding: 22px 20px 40px; }
  .dashboard-grid, .dashboard-grid.equal { grid-template-columns: 1fr; }
  .finance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .login-page { display: block; background: #0c213b; }
  .login-panel { min-height: 100vh; border-radius: 0; }
  .login-showcase { display: none; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 18px 0 40px rgba(0,0,0,.25); }
  .app-shell.menu-open .sidebar { transform: none; }
  .app-shell.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(6,18,34,.45); z-index: 15; }
  .main-wrap { margin-left: 0; }
  .mobile-menu { display: grid; }
  .topbar { padding: 0 16px; height: 66px; }
  .topbar .search-box { display: none; }
  .page-title p { display: none; }
  .main-content { padding: 18px 14px 34px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-card { min-height: 112px; padding: 15px; }
  .kpi-value { font-size: 23px; }
  .team-grid, .catalog-grid { grid-template-columns: 1fr; }
  .permission-matrix { display: block; overflow-x: auto; min-width: 600px; }
  .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .field.span-2, .field.span-3 { grid-column: auto; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-row { grid-template-columns: 28px minmax(140px, 1fr) 110px 34px; }
  .stage-row .stage-assignee, .stage-row .stage-progress { display: none; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal, .modal.modal-wide, .modal.modal-drawer { width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; }
  .checkbox-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top-actions .btn span { display: none; }
  .top-actions .btn { padding: 9px; }
  .page-title h1 { font-size: 16px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kpi-card { min-height: 105px; }
  .kpi-top { font-size: 9px; }
  .kpi-icon { width: 29px; height: 29px; }
  .kpi-value { font-size: 20px; margin-top: 11px; }
  .kpi-meta { font-size: 9px; }
  .finance-summary { grid-template-columns: 1fr 1fr; gap: 9px; }
  .finance-card { padding: 14px; }
  .finance-card strong { font-size: 19px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-summary { grid-template-columns: 1fr 1fr; }
  .detail-hero { padding: 18px; }
  .toolbar { align-items: stretch; }
  .toolbar .search-wide { width: 100%; }
  .toolbar input, .toolbar select { flex: 1; min-width: 0; }
  .cost-row { grid-template-columns: minmax(0, 1fr) 76px; }
  .cost-row .cost-bar { grid-column: 1 / -1; }
  .demo-account-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .toast-root { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
}
.major-cloud { display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start; }
.major-chip { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 8px; background: #f1f5f9; border: 1px solid #e3e9f1; color: var(--ink-700); font-size: 10px; white-space: nowrap; }
.major-chip:hover { color: var(--teal-600); border-color: #bce7e2; background: var(--teal-100); }
.flow-board { display: grid; gap: 14px; }
.flow-order { overflow: hidden; border: 1px solid #dde6f0; border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.flow-order-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 16px 18px; background: linear-gradient(110deg, #f7fbff 0%, #fff 56%, #f4fbfa 100%); border-bottom: 1px solid var(--line); }
.flow-ring { width: 58px; height: 58px; border-radius: 50%; position: relative; display: grid; place-items: center; background: conic-gradient(var(--teal-500) calc(var(--p) * 1%), #e7edf5 0); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.flow-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: white; box-shadow: 0 2px 7px rgba(16,35,63,.08); }
.flow-ring strong { position: relative; z-index: 1; font-size: 12px; color: var(--navy-900); }
.flow-order-main { min-width: 0; }
.flow-order-main h3 { margin: 0 0 6px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-order-main p { margin: 0; color: var(--ink-500); font-size: 10px; }
.flow-order-side { text-align: right; }
.flow-order-side strong { display: block; font-size: 11px; margin-bottom: 5px; }
.flow-order-side span { color: var(--ink-500); font-size: 9px; }
.flow-lane { display: flex; overflow-x: auto; padding: 20px 18px 18px; background: #fbfcfe; scrollbar-width: thin; }
.flow-step { position: relative; flex: 0 0 205px; min-width: 205px; border: 0; background: transparent; padding: 0 12px 0 0; text-align: left; }
.flow-step::after { content: ""; position: absolute; z-index: 0; top: 15px; left: 31px; right: 0; height: 3px; border-radius: 99px; background: #e1e8f1; }
.flow-step:last-child::after { display: none; }
.flow-step.done::after { background: linear-gradient(90deg, var(--green-600), #62c18e); }
.flow-step.active::after { background: linear-gradient(90deg, var(--blue-600), #90b6f7); }
.flow-step.overdue::after { background: linear-gradient(90deg, var(--red-600), #f0929b); }
.flow-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; color: var(--ink-500); background: #e9eff6; border: 3px solid #fbfcfe; box-shadow: 0 0 0 1px #dce5ef; font-size: 10px; font-weight: 800; }
.flow-step.done .flow-dot { color: white; background: var(--green-600); box-shadow: 0 0 0 1px #73c79a; }
.flow-step.active .flow-dot { color: white; background: var(--blue-600); box-shadow: 0 0 0 1px #7da5ed; }
.flow-step.overdue .flow-dot { color: white; background: var(--red-600); box-shadow: 0 0 0 1px #ea8d97; }
.flow-step-body { position: relative; z-index: 1; margin-top: 12px; min-height: 116px; padding: 12px; border: 1px solid #e1e8f1; border-radius: 12px; background: white; transition: .16s ease; }
.flow-step:hover .flow-step-body { transform: translateY(-2px); border-color: #bdcce0; box-shadow: 0 9px 22px rgba(16,35,63,.09); }
.flow-step.active .flow-step-body { border-color: #9cb9ef; box-shadow: 0 8px 20px rgba(46,103,209,.11); }
.flow-step.overdue .flow-step-body { border-color: #ed9fa7; box-shadow: 0 8px 20px rgba(206,63,77,.1); }
.flow-step-body strong { display: block; font-size: 12px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-step-person { display: flex; align-items: center; gap: 6px; color: var(--ink-600); font-size: 9px; margin-bottom: 8px; }
.flow-step-date { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--ink-500); font-size: 9px; margin-top: 8px; }
.flow-step-date .danger-text { font-weight: 750; }
.flow-step-cost { color: var(--ink-800); font-weight: 800; }
.workflow-viewbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.workflow-viewbar .spacer { flex: 1; }
.flow-legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-500); font-size: 10px; margin: 0 0 12px; }
.flow-legend span { display: inline-flex; align-items: center; gap: 6px; }
.flow-legend i { width: 8px; height: 8px; border-radius: 3px; background: #dce5ef; }
.flow-legend i.done { background: var(--green-600); }
.flow-legend i.active { background: var(--blue-600); }
.flow-legend i.overdue { background: var(--red-600); }
@media (max-width: 820px) {
  .flow-order-head { grid-template-columns: auto minmax(0, 1fr); }
  .flow-order-side { grid-column: 2; text-align: left; }
  .flow-step { flex-basis: 180px; min-width: 180px; }
}
.workflow-viewbar > select { width: auto; min-width: 150px; max-width: 260px; }
.workflow-viewbar > .btn { margin-left: auto; }
@media (max-width: 820px) {
  .workflow-viewbar > select { flex: 1; min-width: 130px; max-width: none; }
  .workflow-viewbar > .btn { margin-left: 0; }
}
.external-link { color: var(--blue-600); font-size: 10px; font-weight: 750; text-decoration: underline; text-decoration-color: rgba(46,103,209,.3); text-underline-offset: 3px; }
.external-link:hover { color: var(--teal-600); text-decoration-color: var(--teal-500); }
