/* Zeming local prototype: all styling is local, with no remote font dependency. */
:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --bg: #f3f6fb;
  --surface: #fff;
  --surface-raised: #fff;
  --surface-soft: #f7f9fc;
  --surface-hover: #edf3fc;
  --text: #18263b;
  --muted: #738096;
  --line: #e5eaf1;
  --accent: #246af4;
  --accent-hover: #1255dc;
  --accent-soft: #eaf1ff;
  --cyan: #40c4e7;
  --green: #16966a;
  --green-soft: #e8f6ef;
  --amber: #a76b12;
  --amber-soft: #fff5df;
  --red: #cd4555;
  --red-soft: #fceef0;
  --shadow: 0 3px 16px #14244b05, 0 1px 3px #14244b04;
  --sidebar-width: 244px;
  --radius: 14px;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1220;
  --surface: #141e2f;
  --surface-raised: #1b283b;
  --surface-soft: #111b2b;
  --surface-hover: #1c2b43;
  --text: #e7edf7;
  --muted: #94a3bb;
  --line: #263348;
  --accent: #4c8cff;
  --accent-hover: #72a3ff;
  --accent-soft: #1c3153;
  --green: #56c99b;
  --green-soft: #193c32;
  --amber: #f0bd64;
  --amber-soft: #41351f;
  --red: #f08794;
  --red-soft: #42262e;
  --shadow: 0 4px 24px #0000000c;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #71b7ff; outline-offset: 3px; }
h1, h2, h3, h4, p { margin-top: 0; }
h2 { font-size: 18px; letter-spacing: -.4px; }
h3 { font-size: 15px; }
svg { flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; }
button svg { width: 17px; height: 17px; }
::selection { color: #fff; background: #246af4; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 25px 16px 15px; background: #101c30; color: #aebcd1; border-right: 1px solid #26344a; transition: width .18s ease, transform .18s ease; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #32435c transparent; }
.brand { min-height: 62px; display: flex; align-items: center; gap: 11px; padding: 0 9px 22px; margin-bottom: 15px; border-bottom: 1px solid #ffffff10; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 39px; height: 39px; flex: 0 0 39px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 23px; font-weight: 850; line-height: 1; background: linear-gradient(140deg,#4b9aff,#2365e7); box-shadow: 0 4px 15px #0c58dd40; }
.brand-text { min-width: 0; font-size: 17px; line-height: 1.4; font-weight: 740; letter-spacing: 1px; }
.brand-text small, .brand-text span { display: block; font-size: 9px; font-weight: 500; letter-spacing: 1.8px; color: #7f99bd; margin-top: 4px; }
.sidebar-toggle { border: 1px solid #ffffff20; background: #ffffff07; color: #b8c5da; border-radius: 8px; padding: 6px 8px; font-size: 11px; align-self: flex-end; }
.nav-group { margin-bottom: 16px; }
.nav-heading { padding: 0 13px; margin: 0 0 7px; color: #637b9e; font-size: 10px; font-weight: 650; letter-spacing: 1.6px; }
.nav-link { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 13px; border-radius: 8px; margin-bottom: 3px; border: 0; background: none; color: #aebcd1; font-size: 13px; text-align: left; line-height: 1.5; transition: color .14s, background .14s; text-decoration: none; white-space: nowrap; }
.nav-link svg { width: 17px; height: 17px; stroke-width: 1.8; opacity: .85; }
.nav-link:hover { color: #e8f1ff; background: #ffffff08; text-decoration: none; }
.nav-link.active { color: #fff; background: #246af4; box-shadow: 0 5px 15px #07163220; font-weight: 600; }
.nav-link.active svg { opacity: 1; }
.nav-link .count-badge { margin-left: auto; color: #bcd3ff; background: #ffffff10; }
.nav-sub { padding-left: 41px; font-size: 12px; }
.sidebar-footer { margin-top: auto; padding: 14px 11px 0; border-top: 1px solid #ffffff10; font-size: 11px; color: #8194b0; }
.sidebar-footer strong { color: #c9d5e7; font-size: 12px; font-weight: 550; }
.sidebar-footer .badge { color: #94bfff; background: #246af418; margin-bottom: 6px; }
.sidebar-footer p { margin-bottom: 7px; }
.main { margin-left: var(--sidebar-width); transition: margin-left .18s ease; min-width: 0; }
.topbar { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumb { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 9px; }
.breadcrumb strong { color: var(--text); font-weight: 550; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.top-actions select { width: auto; min-height: 33px; font-size: 12px; padding: 5px 29px 5px 10px; background: var(--surface-soft); }
.top-actions .button { font-size: 12px; min-height: 33px; padding: 6px 10px; }
.demo-notice { padding: 9px 32px; font-size: 11px; color: #60718e; background: #edf3fd; border-bottom: 1px solid #e0e9f7; line-height: 1.6; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 18px; }
body[data-theme="dark"] .demo-notice { color: #9aacc9; background: #15243b; border-color: #263750; }
.demo-notice strong { color: var(--accent); font-weight: 600; }
.page { padding: 27px 32px 40px; max-width: 1840px; margin: 0 auto; }
.icp-footer { position: relative; z-index: 1; padding: 10px 16px 18px; text-align: center; color: var(--muted); font-size: 11px; background: var(--bg); }
.icp-footer a { color: inherit; text-decoration: none; }
.icp-footer a:hover { color: var(--accent); text-decoration: underline; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 23px; }
.page-heading h1 { font-size: 28px; font-weight: 730; letter-spacing: -1px; margin: 2px 0 5px; line-height: 1.4; }
.eyebrow { color: var(--accent); font-size: 10px; letter-spacing: 2.2px; text-transform: uppercase; font-weight: 650; margin-bottom: 5px; }
.page-subtitle { color: var(--muted); font-size: 12px; margin: 0; max-width: 850px; line-height: 1.7; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 20px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.filters .field { min-width: 140px; max-width: 240px; flex: 1; }
.filters .field label { font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.filters .field input, .filters .field select { height: 35px; min-height: 35px; font-size: 12px; }
.filter-caption { margin-left: auto; font-size: 11px; color: var(--muted); align-self: center; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 550; line-height: 1.4; border-radius: 8px; min-height: 36px; padding: 9px 13px; font-size: 12px; transition: background .14s, border-color .14s, box-shadow .14s; text-decoration: none; white-space: nowrap; }
.button:hover { background: var(--surface-hover); border-color: #bdcce1; text-decoration: none; }
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 3px 7px #246af41a; }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.danger { color: var(--red); background: var(--red-soft); border-color: transparent; }
.button.danger:hover { border-color: var(--red); }
.button.ghost { background: transparent; color: var(--muted); border-color: transparent; box-shadow: none; }
.button.ghost:hover { color: var(--text); background: var(--surface-hover); }
.button.small { padding: 6px 9px; min-height: 29px; font-size: 11px; border-radius: 6px; }
.link-button { padding: 0; border: 0; background: none; font-size: 12px; color: var(--accent); text-align: left; font-weight: 550; line-height: 1.65; }
.link-button:hover { text-decoration: underline; }
.pill, .badge, .count-badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 3px 8px; border-radius: 5px; font-size: 10px; font-weight: 550; line-height: 1.45; white-space: nowrap; }
.pill { border-radius: 20px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); padding: 4px 10px; }
.badge { color: var(--muted); background: var(--surface-soft); }
.badge.blue { color: var(--accent); background: var(--accent-soft); }
.badge.green { color: var(--green); background: var(--green-soft); }
.badge.amber { color: var(--amber); background: var(--amber-soft); }
.badge.red { color: var(--red); background: var(--red-soft); }
.badge.muted { color: var(--muted); background: var(--surface-hover); }
.count-badge { min-width: 20px; padding: 1px 6px; color: var(--muted); background: #8294b018; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.money { font-variant-numeric: tabular-nums; font-weight: 650; }
.avatar { width: 30px; height: 30px; flex: 0 0 30px; display: inline-grid; place-items: center; border-radius: 50%; background: #e7effb; color: #4772b6; font-size: 10px; font-weight: 650; }
.progress-track { height: 5px; background: var(--line); border-radius: 6px; overflow: hidden; }
.progress-track > div, .progress-track > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

.hero { display: grid; grid-template-columns: 1fr 1.12fr; gap: 28px; padding: 26px 30px; color: #fff; border-radius: var(--radius); background: radial-gradient(ellipse at 85% -15%,#215dad66,transparent 68%), linear-gradient(110deg,#12253f,#163861); margin-bottom: 20px; border: 1px solid #284c76; overflow: hidden; position: relative; }
.hero-copy { align-self: center; position: relative; z-index: 1; }
.hero-copy .eyebrow { color: #84b5f4; }
.hero-copy h2 { font-size: 27px; font-weight: 700; letter-spacing: -.6px; margin: 7px 0 9px; line-height: 1.5; }
.hero-copy h2 em, .hero-copy h2 span { color: #53c8f7; font-style: normal; }
.hero-copy p { font-size: 12px; line-height: 1.8; color: #9db6d7; max-width: 370px; margin-bottom: 19px; }
.hero-copy .button { background: #2d7bf6; border-color: #3888ff; color: #fff; }
.hero-tasks { display: flex; flex-direction: column; gap: 8px; }
.hero-task { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 60px; padding: 11px 15px; color: #fff; background: #ffffff07; border: 1px solid #ffffff0c; border-radius: 9px; text-align: left; text-decoration: none; }
button.hero-task { width: 100%; }
.hero-task:hover { background: #ffffff10; text-decoration: none; }
.hero-task strong { font-size: 13px; font-weight: 550; }
.hero-task p, .hero-task small { display: block; font-size: 11px; color: #a4bbd7; margin: 4px 0 0; }
.hero-task .badge { color: #96ceff; background: #438dee20; }
.hero-task .task-number { width: 26px; height: 26px; border-radius: 7px; color: #7ac7ff; background: #6aafff12; display: grid; place-items: center; font-size: 11px; flex-shrink: 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.metric { position: relative; display: block; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); min-width: 0; color: var(--text); text-align: left; }
button.metric { cursor: pointer; width: 100%; }
button.metric:hover { border-color: #87abec; box-shadow: 0 4px 16px #246af40c; }
.metric-icon { display: inline-grid; place-items: center; color: var(--accent); background: var(--accent-soft); width: 28px; height: 28px; border-radius: 7px; margin-bottom: 10px; }
.metric-icon svg { width: 15px; height: 15px; }
.metric-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.metric-number { display: block; font-size: 29px; font-weight: 720; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -1px; margin-bottom: 6px; }
.metric-note { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; }
.metric-note > span { display: block; color: var(--accent); font-size: 9px; margin-top: 6px; }
.metric-number .small { margin-left: 5px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; overflow: hidden; margin-bottom: 20px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 21px 15px; }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.panel-body { padding: 0 21px 21px; }
.panel-body > p:last-child { margin-bottom: 0; }
.grid-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.grid-three { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; align-items: start; }
.grid-two > .panel, .grid-three > .panel { margin: 0; }

.kanban { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(174px,1fr); gap: 11px; overflow-x: auto; padding: 0 20px 20px; scrollbar-width: thin; scrollbar-color: #a8b7ce transparent; }
.kanban-column { min-width: 0; min-height: 210px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; padding: 0 9px 10px; }
.column-header { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 13px 1px 10px; color: var(--text); font-size: 12px; font-weight: 600; }
.column-header > span:first-child::before { content: ''; display: inline-block; width: 6px; height: 6px; background: #e8ad49; margin-right: 7px; border-radius: 50%; vertical-align: 2px; }
.kanban-column:nth-child(2) .column-header > span:first-child::before { background: #4e9be6; }
.kanban-column:nth-child(3) .column-header > span:first-child::before { background: #c889ba; }
.kanban-column:nth-child(4) .column-header > span:first-child::before { background: #4cb1c5; }
.kanban-column:nth-child(5) .column-header > span:first-child::before { background: #47ad82; }
.kanban-column:nth-child(6) .column-header > span:first-child::before { background: #6d8fe3; }
.kanban-column:nth-child(7) .column-header > span:first-child::before { background: #4786ea; }
.kanban-column:nth-child(8) .column-header > span:first-child::before { background: #51a17f; }
.task-card { display: block; width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 12px 10px 10px; background: var(--surface); margin-bottom: 8px; font-size: 12px; line-height: 1.55; text-align: left; color: var(--text); transition: border-color .12s, transform .12s; box-shadow: 0 2px 3px #162f5403; }
button.task-card:hover { border-color: #92b3ed; transform: translateY(-1px); }
.task-card strong { display: block; font-weight: 600; font-size: 12px; margin: 6px 0 10px; line-height: 1.6; }
.task-card .card-id { color: var(--muted); font-size: 9px; letter-spacing: .4px; }
.card-meta { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 10px; margin-top: 7px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.card-footer .avatar { width: 22px; height: 22px; flex-basis: 22px; font-size: 9px; }
.kanban-column .empty-state { padding: 28px 3px; font-size: 11px; background: transparent; border: 1px dashed var(--line); border-radius: 6px; }
.kanban-column .empty-state p { font-size: 10px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(100px,1fr)); overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.calendar-day { min-height: 210px; padding: 12px 10px; border-right: 1px solid var(--line); }
.calendar-day:last-child { border-right: 0; }
.calendar-day.today { background: var(--accent-soft); }
.calendar-day > strong { font-size: 12px; display: block; margin: 3px 0 12px; }
.calendar-day > span, .calendar-day > small { color: var(--muted); font-size: 10px; }
.calendar-day.today > strong { color: var(--accent); }
.calendar-event { display: block; width: 100%; padding: 10px; margin: 7px 0; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; text-align: left; font-size: 11px; line-height: 1.6; }
.calendar-event strong { display: block; font-size: 11px; font-weight: 550; }
.calendar-event span { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }

.table-wrap { overflow-x: auto; max-width: 100%; scrollbar-width: thin; }
table { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; }
th { background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 550; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-soft); }
td .muted.small { margin-top: 4px; display: block; }
td .button + .button { margin-left: 5px; }
td .link-button { font-size: 12px; }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.list-item:first-child { padding-top: 5px; }
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-item > div { min-width: 0; }
.list-item > .list-main, .list-item > .flex-grow { flex: 1; }
.list-item strong { font-size: 12px; font-weight: 550; }
.list-item p { font-size: 11px; color: var(--muted); margin: 3px 0 0; }
.list-item .button, .list-item .badge { flex-shrink: 0; }
.list-item .list-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.product-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.product-card > .panel-body, .product-card > .product-body { padding: 18px; }
.product-card h3 { margin: 8px 0 7px; }
.product-card p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.product-visual { position: relative; height: 175px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(ellipse at 50% 45%,#345574,#142a43 65%,#0e2137); }
.product-visual::before { content: ''; position: absolute; left: 12px; top: 12px; right: 12px; bottom: 12px; border: 1px solid #ffffff0c; border-radius: 5px; }
.product-visual::after { content: 'DEMO / 概念示意'; position: absolute; bottom: 12px; right: 14px; color: #7893b2; font-size: 9px; letter-spacing: 1px; }
.speaker-art { width: 118px; height: 118px; border-radius: 50%; position: relative; background: radial-gradient(circle at 40% 30%,#273c52 0,#142133 23%,#34495d 24%,#1b2c3d 28%,#0f1f32 32%,#283f54 45%,#526475 46%,#182b40 49%,#31465b 52%,#111e2f 56%,#4c5f70 58%,#192b3c 62%,#101d2b 67%,#3b5064 69%,#132233 72%); box-shadow: 11px 17px 20px #00000045, inset 0 0 0 2px #52687c; transform: perspective(550px) rotateX(13deg) rotateY(-17deg); }
.speaker-art::after { content: ''; position: absolute; inset: 43px; border-radius: 50%; border: 1px solid #6c7e8e; background: radial-gradient(circle at 35% 28%,#5d7184,#293b50 60%,#172a3b); box-shadow: 0 4px 12px #0005; }
.detail-header .speaker-art { width: 90px; height: 90px; }
.detail-header .speaker-art::after { inset: 31px; }
.empty-state { text-align: center; padding: 40px 24px; color: var(--muted); }
.empty-state h3 { margin: 9px 0; color: var(--text); font-size: 14px; font-weight: 550; }
.empty-state p { max-width: 490px; margin: 0 auto 16px; font-size: 12px; line-height: 1.8; }
.empty-icon { width: 45px; height: 45px; display: grid; place-items: center; margin: 0 auto 12px; color: #8ca1bd; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; font-size: 20px; }
.status-list { display: grid; gap: 0; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.status-row:last-child { border-bottom: 0; }
.status-row strong { font-size: 12px; }
.status-row p { font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.connection-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; min-height: 170px; }
.connection-card h3 { margin-bottom: 12px; }
.connection-card p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.connection-card .badge { margin-bottom: 12px; }

.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.detail-header { display: flex; gap: 20px; align-items: center; padding: 22px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; }
.detail-header h2 { margin: 7px 0; }
.detail-header p { margin-bottom: 0; font-size: 12px; color: var(--muted); }
.detail-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail-section:first-child { padding-top: 0; }
.detail-section:last-child { border-bottom: 0; }
.detail-section h3 { font-size: 13px; margin: 0 0 13px; }
.detail-section p { font-size: 12px; line-height: 1.8; }
.detail-section pre { white-space: pre-wrap; font: inherit; font-size: 12px; line-height: 1.8; }
.facts-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.facts-table th { width: 37%; color: var(--muted); }
.facts-table td, .facts-table th { padding: 11px 13px; font-size: 12px; }
.facts-table tr { border-bottom: 1px solid var(--line); }
.facts-table tr:last-child { border-bottom: 0; }
.timeline { margin-left: 5px; }
.timeline-item { position: relative; padding: 0 0 20px 21px; border-left: 1px solid var(--line); font-size: 12px; }
.timeline-item::before { content: ''; position: absolute; top: 5px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #82a2cf; box-shadow: 0 0 0 4px var(--surface); }
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-item p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.timeline-item strong { font-size: 12px; font-weight: 550; }
.timeline-item small { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.kv { display: grid; grid-template-columns: 100px 1fr; gap: 12px; font-size: 12px; padding: 8px 0; line-height: 1.8; }
.kv > :first-child { color: var(--muted); }
.kv > :last-child { overflow-wrap: anywhere; min-width: 0; }
.source-line { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; font-size: 10px; color: var(--muted); padding-top: 8px; }
.followup-card { border: 1px solid var(--line); border-radius: 9px; padding: 14px; margin-bottom: 11px; background: var(--surface-soft); font-size: 12px; }
.followup-card p { margin: 7px 0; font-size: 12px; }
.followup-card .small { font-size: 10px; }
.stat-strip { display: flex; flex-wrap: wrap; gap: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); padding: 16px 20px; margin-bottom: 20px; }
.stat-strip > div { flex: 1; min-width: 100px; }
.stat-strip strong { display: block; font-size: 21px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.stat-strip span { font-size: 11px; color: var(--muted); }
.flow-stages { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; }
.stage-step { flex: 1; min-width: 110px; background: var(--surface); padding: 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.stage-step strong { display: block; font-size: 23px; margin-top: 8px; color: var(--accent); }
.stage-step.active { background: var(--accent-soft); border-color: #8faeef; }
.footer-note { color: var(--muted); font-size: 10px; line-height: 1.8; padding-top: 18px; margin-top: 20px; border-top: 1px solid var(--line); }

/* Classes used by the actual app views and linked-record dialogs. */
.grow { flex: 1; min-width: 0; }
.truncate { display: block; max-width: 320px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-icon { width: 18px; flex: 0 0 18px; text-align: center; color: #8fa9ce; font-size: 18px; line-height: 1; }
.nav-link.active .nav-icon { color: #fff; }
.nav-text { min-width: 0; }
.sidebar > .sidebar-toggle { margin-top: -8px; margin-bottom: 16px; }
.status-dot { width: 6px; height: 6px; background: #7297cb; display: inline-block; border-radius: 50%; flex-shrink: 0; margin: 6px 7px 0 0; }
.sidebar-footer { display: flex; align-items: flex-start; }
.role-label { color: var(--muted); font-size: 10px; white-space: nowrap; }
.topbar .breadcrumb { min-width: 0; font-size: 11px; }
.topbar .breadcrumb > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters .search-field { min-width: 200px; flex: 1.4; }
.date-tile { flex: 0 0 42px; width: 42px; text-align: center; padding: 6px 3px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; }
.date-tile strong { display: block; font-size: 18px; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; }
.date-tile small { display: block; font-size: 9px; color: var(--muted); margin-top: 3px; }
.task-number { font-variant-numeric: tabular-nums; }
.hero-tasks > h3 { margin: 0 0 2px; font-size: 10px; letter-spacing: 1.7px; color: #88a9d0; font-weight: 500; }
.hero .pill { color: #9ebcde; border-color: #ffffff16; background: #ffffff05; font-size: 10px; }
.hero-task > span:nth-child(2) { flex: 1; }
.hero-task > span:last-child { color: #84bcff; }
.hero-tasks .task-number { flex: 0 0 28px; }
.task-card > .link-button { display: block; margin: 9px 0 6px; color: var(--text); line-height: 1.7; font-size: 12px; font-weight: 600; }
.task-card > p { margin: 5px 0 7px; line-height: 1.6; }
.task-card .card-meta:first-child { margin-top: 0; }
.column-empty { padding: 20px 7px; color: var(--muted); font-size: 10px; text-align: center; border: 1px dashed var(--line); border-radius: 6px; }
.panel-body > .kanban { margin-left: -6px; margin-right: -6px; padding-left: 0; padding-right: 0; padding-bottom: 8px; }
.panel > .panel-body:first-child { padding-top: 20px; }
.product-card > .panel-body { padding: 18px; }
.product-card h2 { font-size: 17px; margin: 12px 0 5px; line-height: 1.6; }
.product-visual .visual-label { position: absolute; bottom: 12px; right: 14px; color: #7893b2; font-size: 9px; letter-spacing: 1px; z-index: 1; }
.product-visual:has(.visual-label)::after { content: none; }
.grid-three + .panel, .grid-two + .panel, .calendar-grid + .panel { margin-top: 20px; }
.grid-three > .panel { height: 100%; }
.grid-three > .panel > .panel-body:first-child > h3 { margin-top: 15px; }
.evidence-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; color: var(--accent); background: var(--accent-soft); font-size: 17px; }
.english-copy { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; padding: 16px 18px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); font-size: 13px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.relation-links { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 12px; }
.relation-links .link-button { padding: 7px 10px; border-radius: 6px; font-size: 11px; background: var(--accent-soft); }
.relation-chain { display: flex; align-items: center; justify-content: space-between; gap: 8px; overflow-x: auto; padding: 5px 0 10px; }
.relation-chain > div { flex: 1; min-width: 140px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); padding: 13px 12px; min-height: 84px; font-size: 11px; line-height: 1.8; }
.relation-chain small { display: block; font-size: 10px; margin-bottom: 7px; color: var(--muted); }
.relation-chain > span { color: #9db0c9; }
.relation-chain .link-button { font-size: 11px; }
.big-stat { display: block; font-size: 36px; letter-spacing: -1px; font-weight: 650; color: var(--accent); line-height: 1.3; margin-bottom: 9px; }
.big-stat + p { color: var(--muted); font-size: 11px; }
.fact-editor { padding: 17px; border: 1px solid var(--line); background: var(--surface-soft); border-radius: 9px; }
.fact-editor h4 { margin: 0 0 15px; font-size: 12px; }
.form-grid > .full { grid-column: 1 / -1; }
.required { color: var(--red); }
.channel-logo { display: inline-grid; place-items: center; width: 41px; height: 41px; border-radius: 10px; color: var(--accent); background: var(--accent-soft); font-size: 17px; font-weight: 700; margin-bottom: 15px; }
.connection-card { padding: 5px; }
.asset-visual { height: 150px; background: linear-gradient(135deg,#e6edf8,#f1f5fc); }
.asset-visual > span { color: #8c9fb9; font-size: 45px; }
.asset-visual::after { content: 'DEMO / 素材元数据'; color: #7086a5; }
.asset-visual + .panel-body { padding-top: 19px; }
body[data-theme="dark"] .asset-visual { background: linear-gradient(135deg,#1b2c46,#233754); }
td > small, .list-item .grow > small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.kv > span { color: var(--muted); font-weight: 400; }
.kv > strong { color: var(--text); font-weight: 550; overflow-wrap: anywhere; }
.stat-strip > span { flex: 1; min-width: 100px; font-size: 11px; color: var(--muted); }
.stat-strip > span > strong { color: var(--text); font-size: 17px; margin-top: 5px; }
.detail-header { flex-wrap: wrap; }
.detail-header > .button { margin-left: auto; }
.modal-body > h3 { margin: 23px 0 13px; }
.flow-stages.compact { gap: 5px; margin-bottom: 16px; }
.flow-stages.compact .stage-step { min-width: 88px; font-size: 10px; text-align: center; padding: 10px 7px; white-space: nowrap; }
.calendar-day > header { min-height: 68px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 15px; }
.calendar-day > header > span { font-size: 10px; color: var(--muted); }
.calendar-day > header > strong { font-size: 16px; font-weight: 600; }
.calendar-day.today > header > strong { color: var(--accent); }
.calendar-event > .link-button { display: block; margin: 8px 0 6px; font-size: 11px; color: var(--text); }
.calendar-event > small { display: block; font-size: 10px; color: var(--muted); }
.calendar-event > .button { margin-top: 5px; padding-left: 0; }
body.modal-open { overflow: hidden; }

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 0 0 22px; overflow-x: auto; }
.tab { color: var(--muted); background: none; padding: 11px 2px 13px; border: 0; border-bottom: 2px solid transparent; font-size: 12px; white-space: nowrap; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.callout { padding: 12px 15px; border-radius: 8px; font-size: 12px; line-height: 1.8; margin-bottom: 17px; border: 1px solid var(--line); background: var(--surface-soft); }
.callout.warning { color: var(--amber); background: var(--amber-soft); border-color: #d69c3e20; }
.callout.info { color: var(--accent); background: var(--accent-soft); border-color: #246af420; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { font-weight: 600; }
.checks { display: flex; flex-direction: column; gap: 9px; padding: 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; }
.check-row input { margin-top: 3px; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 28px 20px; background: #07132496; backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; }
.modal { width: min(670px,100%); max-height: calc(100dvh - 56px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 20px 90px #07132250; overflow: hidden; margin: auto 0; animation: modal-appear .17s ease-out; }
.modal.wide { width: min(1000px,100%); }
.modal-header { padding: 21px 24px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; flex-shrink: 0; }
.modal-header h2 { margin: 0; font-size: 18px; letter-spacing: -.4px; }
.modal-header p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.modal-body { padding: 23px 24px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.modal-footer { padding: 15px 24px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; background: var(--surface); }
.modal-footer .muted { margin-right: auto; align-self: center; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 18px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; margin-bottom: 7px; color: var(--text); font-weight: 550; }
.field label .required { color: var(--red); margin-left: 3px; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { color: var(--text); background: var(--surface); border: 1px solid var(--line); width: 100%; min-height: 39px; padding: 9px 11px; border-radius: 7px; font-size: 12px; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: #b9c8dd; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[type="checkbox"], input[type="radio"] { width: 15px; height: 15px; accent-color: var(--accent); }
input[readonly] { background: var(--surface-soft); color: var(--muted); }
textarea { min-height: 108px; resize: vertical; }
textarea.long { min-height: 180px; }
input::placeholder, textarea::placeholder { color: #9ba6b6; }
select { appearance: auto; }
.field-help { font-size: 10px; line-height: 1.8; color: var(--muted); margin-top: 6px; }
.error-text { display: block; color: var(--red); font-size: 11px; margin-top: 6px; }
.field.has-error input, .field.has-error textarea, .field.has-error select, [aria-invalid="true"] { border-color: var(--red); }
.form-errors { padding: 11px 14px; background: var(--red-soft); color: var(--red); border: 1px solid #d5495926; border-radius: 8px; margin-bottom: 17px; font-size: 12px; line-height: 1.9; }
.form-errors ul { margin: 5px 0 0; padding-left: 19px; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 200; max-width: min(480px,calc(100vw - 40px)); padding: 14px 19px; background: #163d31; border: 1px solid #287c60; border-radius: 10px; color: #e0fff0; font-size: 12px; box-shadow: 0 8px 32px #07132230; animation: modal-appear .18s ease-out; }
.toast.error { background: #612c37; border-color: #a44e60; color: #ffedf0; }
.mobile-menu { display: none; }
body.sidebar-collapsed { --sidebar-width: 88px; }
body.sidebar-collapsed .sidebar { padding-left: 10px; padding-right: 10px; }
body.sidebar-collapsed .brand { padding-left: 12px; padding-right: 0; }
body.sidebar-collapsed .brand-text, body.sidebar-collapsed .nav-heading, body.sidebar-collapsed .sidebar-footer { display: none; }
body.sidebar-collapsed .nav-link { font-size: 10px; padding: 9px 3px; gap: 5px; justify-content: center; flex-direction: column; white-space: normal; text-align: center; line-height: 1.4; }
body.sidebar-collapsed .nav-link svg { width: 19px; height: 19px; }
body.sidebar-collapsed .nav-group { margin-bottom: 10px; }
body.sidebar-collapsed .nav-sub { font-size: 9px; }
body.sidebar-collapsed .sidebar-toggle { align-self: center; font-size: 10px; }
body.sidebar-collapsed .nav-link .count-badge { margin-left: 0; }

@keyframes modal-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1680px) { .page { padding: 34px 42px; } .topbar, .demo-notice { padding-left: 42px; padding-right: 42px; } .hero { padding: 30px 35px; } .hero-copy h2 { font-size: 31px; } .metric { padding: 20px 22px; } }
@media (max-width: 1250px) {
  :root { --sidebar-width: 220px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .page { padding: 24px; }
  .topbar, .demo-notice { padding-left: 24px; padding-right: 24px; }
  .metrics-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .metric { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; }
  .metric-icon { grid-column: 2; grid-row: 1 / 4; align-self: center; width: 36px; height: 36px; margin: 0; }
  .metric-label { grid-column: 1; grid-row: 1; margin: 0; }
  .metric-number { grid-column: 1; grid-row: 2; margin: 2px 0; }
  .metric-note { grid-column: 1; grid-row: 3; }
  .hero { gap: 20px; padding: 23px; }
  .hero-copy h2 { font-size: 24px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 0; }
  .grid-three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .top-actions { gap: 6px; }
  .topbar .breadcrumb { max-width: 210px; }
}
@media (max-width: 1000px) {
  .topbar { align-items: flex-start; }
  .top-actions { max-width: 440px; }
  .page-heading { align-items: flex-start; }
  .heading-actions { max-width: 250px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy p { max-width: 100%; }
  .hero-tasks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .hero-tasks > h3 { grid-column: 1 / -1; }
  .hero-task { min-height: 88px; align-items: flex-start; flex-wrap: wrap; padding: 12px; }
  .hero-task strong { font-size: 12px; }
  .hero-task p, .hero-task small { font-size: 10px; }
  .grid-two, .detail-grid { grid-template-columns: 1fr; }
  .grid-two > .panel { margin-bottom: 0; }
  .filters .field { min-width: 120px; }
  .filter-caption { width: 100%; margin-left: 0; }
  .modal.wide { width: min(900px,100%); }
}
@media (max-width: 760px) {
  :root, body.sidebar-collapsed { --sidebar-width: 244px; }
  .sidebar, body.sidebar-collapsed .sidebar { transform: translateX(-100%); width: 244px; padding: 23px 16px 15px; box-shadow: 15px 0 50px #07132240; }
  .main { margin-left: 0; }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open::after { content: ''; position: fixed; z-index: 30; inset: 0; background: #07132475; }
  body.sidebar-collapsed .brand { padding: 0 9px 22px; }
  body.sidebar-collapsed .brand-text, body.sidebar-collapsed .nav-heading, body.sidebar-collapsed .sidebar-footer { display: block; }
  body.sidebar-collapsed .nav-link { flex-direction: row; justify-content: flex-start; font-size: 13px; padding: 10px 13px; gap: 11px; text-align: left; }
  body.sidebar-collapsed .nav-sub { padding-left: 41px; font-size: 12px; }
  body.sidebar-collapsed .nav-group { margin-bottom: 16px; }
  .sidebar-toggle, body.sidebar-collapsed .sidebar-toggle { align-self: flex-end; }
  .mobile-menu { display: inline-flex; }
  .topbar { min-height: 64px; padding: 12px 16px; align-items: center; gap: 8px; }
  .breadcrumb { display: flex; }
  .breadcrumb > strong { display: none; }
  .top-actions { max-width: none; gap: 6px; }
  .top-actions > .muted, .top-actions > .role-label { display: none; }
  .top-actions .button.small { display: inline-flex; }
  .top-actions select { max-width: 135px; }
  .demo-notice { padding: 9px 16px; font-size: 10px; }
  .page { padding: 22px 16px 32px; }
  .page-heading { gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
  .page-heading h1 { font-size: 24px; }
  .page-subtitle { font-size: 11px; }
  .eyebrow { font-size: 9px; }
  .heading-actions { max-width: 100%; justify-content: flex-start; }
  .filters { padding: 13px; gap: 12px; }
  .filters .field { min-width: calc(50% - 12px); max-width: none; }
  .filters .button { min-height: 35px; }
  .hero { padding: 21px; gap: 19px; margin-bottom: 15px; }
  .hero-copy h2 { font-size: 23px; }
  .hero-copy p { font-size: 11px; margin-bottom: 15px; }
  .hero-tasks { grid-template-columns: 1fr; }
  .hero-task { min-height: 60px; align-items: center; padding: 11px 13px; }
  .hero-task strong { font-size: 12px; }
  .hero-task p, .hero-task small { font-size: 11px; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 18px; }
  .metric { padding: 14px; }
  .metric-number { font-size: 27px; }
  .metric-icon { width: 26px; height: 26px; }
  .metric-note { font-size: 9px; }
  .panel { border-radius: 11px; margin-bottom: 17px; }
  .panel-header { padding: 16px 16px 13px; }
  .panel-header h2, .panel-header h3 { font-size: 14px; }
  .panel-body { padding: 0 16px 17px; }
  .kanban { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 190px; padding: 0 15px 16px; gap: 10px; }
  .kanban-column { min-height: 180px; }
  .calendar-grid { grid-template-columns: repeat(7,145px); }
  .calendar-day { min-height: 180px; }
  .table-wrap table { min-width: 580px; }
  th { padding: 10px 13px; }
  td { padding: 13px; }
  .grid-three { grid-template-columns: 1fr; gap: 16px; }
  .grid-two, .detail-grid { gap: 16px; }
  .product-visual { height: 160px; }
  .detail-header { padding: 17px; gap: 15px; }
  .detail-header h2 { font-size: 17px; }
  .kv { grid-template-columns: 88px 1fr; gap: 8px; }
  .list-item { flex-wrap: wrap; gap: 8px; }
  .list-item .list-actions { margin-left: 0; }
  .stat-strip { gap: 16px; padding: 14px; }
  .stat-strip > div { min-width: calc(50% - 16px); }
  .stat-strip > span { min-width: calc(50% - 16px); }
  .filters .search-field { min-width: 100%; }
  .status-row { flex-wrap: wrap; gap: 7px; }
  .status-row > .muted { width: 100%; font-size: 11px; }
  .relation-chain { padding-bottom: 10px; }
  .relation-chain > div { min-width: 145px; }
  .detail-header { gap: 10px; }
  .detail-header > .button { margin-left: 0; }
  .fact-editor { padding: 14px; }
  .hero-task { flex-wrap: nowrap; }
  .modal-backdrop { padding: 12px 9px; }
  .modal, .modal.wide { max-height: calc(100dvh - 24px); border-radius: 11px; }
  .modal-header { padding: 17px; }
  .modal-header h2 { font-size: 17px; }
  .modal-body { padding: 18px 17px; }
  .modal-footer { padding: 13px 17px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .field.full { grid-column: auto; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
  .filters input, .filters select, .top-actions select { font-size: 12px; }
  .button { min-height: 39px; }
  .button.small { min-height: 33px; }
  .toast { bottom: 15px; right: 15px; max-width: calc(100vw - 30px); }
  .empty-state { padding: 32px 20px; }
  .footer-note { font-size: 10px; }
}
@media (max-width: 380px) {
  .top-actions { gap: 4px; }
  .top-actions .button { padding: 6px 7px; font-size: 11px; }
  .top-actions select { max-width: 117px; }
  .metrics-grid { gap: 7px; }
  .metric { padding: 12px; gap: 3px 5px; }
  .metric-icon { display: none; }
  .hero { padding: 18px; }
  .page { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; } }
@media print { .sidebar, .topbar, .demo-notice, .heading-actions, .filters, .modal-backdrop, .toast { display: none; } .main { margin-left: 0; } .page { padding: 0; } .panel { break-inside: avoid; box-shadow: none; } body { background: #fff; color: #111; } }

/* Customer projects: scan-first list, linked detail and explicit follow-up dates. */
.project-filters { gap: 10px; padding: 15px; margin-bottom: 10px; align-items: flex-end; }
.project-filters .field { min-width: 125px; flex: 1; }
.project-filters .project-search-field { flex: 2; min-width: 230px; max-width: none; }
.project-scope-note { font-size: 10px; line-height: 1.8; margin: 0 0 17px; color: var(--muted); }
.project-scope-note strong { color: var(--text); font-weight: 500; }
.project-summary-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 26px; padding: 12px 17px; margin-bottom: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.project-summary-strip > span { font-size: 11px; color: var(--muted); }
.project-summary-strip strong { margin: 0 3px; color: var(--text); font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.text-danger, .project-summary-strip .text-danger { color: var(--red); }
.project-list-toolbar { padding: 18px 20px 13px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.project-list-toolbar h2 { margin: 0 0 4px; font-size: 15px; }
.project-list-toolbar p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.project-view-toggle { display: flex; gap: 5px; flex-shrink: 0; }
.project-scroll-note { color: var(--muted); font-size: 10px; padding: 0 20px 12px; }
.mobile-table-note, .project-mobile-id, .project-mobile-due { display: none; }
.project-table-wrap { position: relative; border-top: 1px solid var(--line); }
.project-table { min-width: 1830px; table-layout: fixed; }
.project-table th { height: 43px; padding: 11px 13px; }
.project-table td { padding: 15px 13px; vertical-align: top; line-height: 1.65; }
.project-table .project-col-id { width: 160px; }
.project-table .project-col-company { width: 236px; }
.project-table .project-col-secondary { width: 115px; }
.project-table .project-col-products { width: 200px; }
.project-table .project-col-stage { width: 95px; }
.project-table .project-col-next { width: 220px; }
.project-table .project-col-due { width: 116px; }
.project-table .project-col-actions { width: 115px; }
.project-table td.project-col-company { background: var(--surface); }
.project-table tr:hover td.project-col-company { background: var(--surface-soft); }
.project-table .project-col-company > .link-button { font-size: 12px; font-weight: 650; color: var(--text); }
.project-col-next > span { display: block; white-space: normal; line-height: 1.8; }
.project-table small { white-space: normal; line-height: 1.7; }
.project-row-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.project-row-actions .button { padding: 6px 8px; margin-left: 0; white-space: nowrap; }
.record-id { display: inline-block; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .15px; color: var(--muted); line-height: 1.6; }
.project-table .record-id { font-size: 10px; white-space: nowrap; }
.project-health-compact { margin-top: 8px; font-size: 10px; line-height: 1.7; }
.project-health-compact > summary { color: var(--amber); cursor: pointer; width: fit-content; }
.project-health-compact[open] > summary { margin-bottom: 8px; }
.project-health-list { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.project-health-list li { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; font-size: 11px; line-height: 1.8; }
.project-health-list li > .badge { flex-shrink: 0; margin-top: 2px; }
.health-code { color: var(--muted); font-size: 9px; display: block; opacity: .8; margin-top: 3px; overflow-wrap: anywhere; }
.project-health-compact .project-health-list { gap: 6px; }
.project-health-compact .project-health-list li { font-size: 10px; padding: 8px; flex-direction: column; gap: 4px; }
.project-pagination { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.pagination-controls { display: flex; align-items: center; gap: 10px; }
.pagination-controls label { font-size: 10px; }
.pagination-controls select { width: 74px; min-height: 30px; padding: 5px 7px; font-size: 11px; }
.pagination-controls > span { min-width: 33px; text-align: center; font-variant-numeric: tabular-nums; }
.project-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; padding: 4px 20px 20px; }
.project-summary-card { box-shadow: none; margin: 0; }
.project-summary-card .panel-header { align-items: flex-start; padding: 17px 17px 9px; }
.project-summary-card .panel-header h2 { font-size: 15px; margin-top: 6px; line-height: 1.6; }
.project-summary-card .panel-header p { font-size: 10px; }
.project-summary-card .panel-body { padding: 0 17px 17px; }
.project-card-contact { color: var(--muted); font-size: 11px; margin: 0 0 10px; }
.project-card-contact > span { margin: 0 4px; color: #a6b5cb; }
.project-card-products { font-size: 11px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 9px; }
.project-card-products .link-button { font-size: 11px; }
.project-summary-card .kv { grid-template-columns: 73px 1fr; gap: 8px 10px; font-size: 11px; }
.project-card-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.project-detail-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.project-detail-title h2 { font-size: 24px; line-height: 1.5; margin: 6px 0 3px; }
.project-detail-title p { margin: 0; color: var(--muted); font-size: 12px; }
.project-detail-title > div:last-child { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.project-detail-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; padding: 16px 18px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 15px; }
.project-detail-facts > div { min-width: 0; }
.project-detail-facts span, .project-commercial-summary span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.project-detail-facts strong { font-size: 12px; font-weight: 550; line-height: 1.8; overflow-wrap: anywhere; }
.project-next-action { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 22px; padding: 16px 18px; border: 1px solid #246af427; background: var(--accent-soft); border-radius: 9px; }
.project-next-action > div:first-child { flex: 1; min-width: 210px; }
.project-next-action > div > span { color: var(--muted); display: block; font-size: 10px; margin-bottom: 5px; }
.project-next-action strong { font-size: 12px; font-weight: 550; }
.project-next-action > div > .badge { display: inline-flex; margin: 0 0 0 5px; }
.project-detail-section { padding: 23px 0; border-bottom: 1px solid var(--line); }
.project-detail-section:last-child { border-bottom: 0; padding-bottom: 0; }
.project-detail-section > h3 { margin-bottom: 15px; font-size: 14px; }
.project-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.project-section-heading h3 { margin: 0; font-size: 14px; }
.project-section-heading > span { font-size: 10px; color: var(--muted); }
.project-detail-section > .small.muted { font-size: 11px; line-height: 1.8; }
.project-related-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.project-related-products > div { border: 1px solid var(--line); padding: 12px 14px; border-radius: 8px; }
.project-related-products strong { display: block; margin: 5px 0; font-weight: 550; }
.project-related-products small { font-size: 10px; color: var(--muted); }
.project-archived-actions { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-top: 12px; }
.project-conflict-action { margin-top: 13px; }
.project-archived-actions > summary { font-size: 11px; color: var(--muted); cursor: pointer; }
.project-archived-actions[open] > summary { margin-bottom: 13px; }
.project-archived-action { padding: 10px 0; border-top: 1px solid var(--line); }
.project-archived-action p { margin: 4px 0; font-size: 11px; line-height: 1.8; }
.project-archived-action small { color: var(--muted); font-size: 10px; }
.project-followups { display: flex; flex-direction: column; gap: 12px; }
.project-followup-item { padding: 15px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.project-followup-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.project-followup-heading > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.project-followup-heading strong { font-size: 12px; font-weight: 550; }
.project-followup-heading > span { font-size: 10px; color: var(--muted); }
.project-followup-method { font-size: 10px; color: var(--muted); }
.project-followup-method .link-button { font-size: 10px; }
.project-followup-item > p { margin: 12px 0; font-size: 12px; line-height: 1.8; }
.project-followup-item > p > strong { display: block; font-size: 10px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.project-followup-next { display: grid; grid-template-columns: 1fr 150px; gap: 18px; padding: 11px 13px; background: var(--surface-soft); border-radius: 6px; font-size: 11px; line-height: 1.8; }
.project-followup-next small { display: block; font-size: 10px; color: var(--muted); }
.project-followup-registered { display: block; margin-top: 9px; color: var(--muted); font-size: 9px; }
.project-commercial-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 14px 17px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.project-commercial-summary strong { font-size: 14px; font-weight: 600; }
.project-orders-table, .project-source-table { min-width: 720px; }
.project-orders-table th, .project-source-table th { font-size: 10px; }
.project-orders-table td, .project-source-table td { font-size: 11px; }

@media (max-width: 1100px) {
  .project-filters .project-search-field { min-width: 100%; max-width: none; }
  .project-filters .field:not(.project-search-field) { min-width: calc(25% - 12px); max-width: none; }
  .project-cards { grid-template-columns: 1fr; }
  .project-detail-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .project-filters { padding: 13px; }
  .project-filters .field:not(.project-search-field) { min-width: calc(50% - 12px); }
  .project-filters .project-search-field { min-width: 100%; }
  .project-scope-note { font-size: 10px; }
  .project-summary-strip { padding: 12px 13px; gap: 8px 18px; }
  .project-summary-strip > span { flex-basis: calc(50% - 18px); font-size: 10px; }
  .project-list-toolbar { padding: 15px; align-items: flex-start; flex-wrap: wrap; }
  .project-list-toolbar h2 { font-size: 14px; }
  .project-list-toolbar p { max-width: 280px; }
  .project-view-toggle { gap: 6px; }
  .project-scroll-note { padding: 0 15px 12px; line-height: 1.7; }
  .desktop-table-note { display: none; }
  .mobile-table-note { display: inline; }
  .project-mobile-id, .project-mobile-due { display: block; font-size: 9px; color: var(--muted); margin-top: 6px; }
  .project-table { min-width: 742px !important; }
  .project-table .project-col-id, .project-table .project-col-secondary, .project-table .project-col-products { display: none; }
  .project-table .project-col-company { width: 196px; }
  .project-table .project-col-stage { width: 88px; }
  .project-table .project-col-next { width: 210px; }
  .project-table .project-col-due { width: 117px; }
  .project-table .project-col-actions { width: 110px; }
  .project-table td, .project-table th { padding: 13px 11px; }
  .project-row-actions .button { min-height: 37px; }
  .project-pagination { padding: 13px 15px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .pagination-controls { gap: 7px; width: 100%; justify-content: space-between; }
  .pagination-controls select { width: 65px; }
  .pagination-controls .button { padding: 6px 8px; }
  .project-cards { padding: 0 14px 14px; gap: 12px; }
  .project-detail-title { flex-direction: column; gap: 10px; }
  .project-detail-title h2 { font-size: 21px; }
  .project-detail-title > div:last-child { justify-content: flex-start; }
  .project-detail-facts { padding: 13px; gap: 14px; }
  .project-next-action { padding: 14px; gap: 14px; }
  .project-next-action > div:first-child { min-width: 100%; }
  .project-next-action .button { margin-left: auto; }
  .project-detail-section { padding: 20px 0; }
  .project-related-products { grid-template-columns: 1fr; }
  .project-health-list li { gap: 7px; padding: 10px; }
  .project-followup-item { padding: 12px; }
  .project-followup-heading { flex-wrap: wrap; }
  .project-followup-next { grid-template-columns: 1fr; gap: 9px; padding: 10px; }
  .project-commercial-summary { gap: 13px; padding: 13px; }
  .project-commercial-summary strong { font-size: 13px; }
}

/* Company original logo: white backing preserves the original blue/black artwork. */
.company-brand{gap:10px!important;min-width:0;align-items:center}
.company-logo-board{display:flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:0;padding:0;flex:0 0 64px;width:64px;height:42px;overflow:visible}
.company-logo{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;flex-shrink:0}
.company-brand .brand-text{min-width:0!important;flex:1}.company-brand .brand-text strong{font-size:18px}.company-brand .brand-text span{font-size:8px;letter-spacing:.6px}
.brand-compact{margin:0!important;padding:0!important;border:0!important}.brand-compact .company-logo-board{width:46px;height:30px;flex-basis:46px}
.admin-auth-brand .company-logo-board{width:92px;height:56px;flex-basis:92px}.admin-auth-brand .company-brand .brand-text strong{font-size:24px}
.mobile-brand{display:none}.brand-previews{display:grid;grid-template-columns:1fr 1fr 140px;gap:18px}.brand-preview{padding:24px;border-radius:12px;background:var(--surface-soft);display:flex;align-items:center;justify-content:center;min-height:155px}.brand-preview.light{background:#f0f4fa}.brand-preview.dark{background:#102038}.brand-preview img{width:90px;height:54px;object-fit:contain;background:transparent;border:0;border-radius:0;padding:0}.brand-preview{gap:12px;flex-wrap:wrap}.brand-preview strong{font-size:18px;color:#172b49}.brand-preview.dark strong{color:#f5f8ff}.brand-preview small{display:block;font-size:8px;letter-spacing:.6px;margin-top:4px;color:#6e819b}.brand-preview.dark small{color:#9fb1cd}.brand-preview .favicon-preview{width:48px;height:48px;padding:2px}.brand-crop{border:1px solid var(--line);border-radius:10px;padding:18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.brand-crop legend{padding:0 8px;color:var(--muted)}.brand-crop .full{grid-column:1/-1}.brand-settings{max-width:800px;margin:10vh auto;padding:24px}
body.sidebar-collapsed .company-logo-board{width:40px;height:28px;flex-basis:40px}
@media(max-width:800px){.mobile-brand{display:flex}.topbar .brand-compact{display:flex}.admin-auth-brand .company-brand{justify-content:center}.brand-previews{grid-template-columns:1fr 1fr}.brand-previews section:last-child{grid-column:1/-1}.brand-crop{grid-template-columns:1fr 1fr}.company-brand .brand-text strong{font-size:17px}.admin-auth-brand .company-logo-board{width:72px;height:44px;flex-basis:72px}}

/* Operations-only controls; shared office and sales layouts are unchanged. */
.ops-shortcuts{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;margin-bottom:20px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.ops-shortcuts p{margin:6px 0 0}.ops-shortcuts .heading-actions{flex-wrap:wrap}
.ops-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0}
.ops-calendar-toolbar h2{font-size:18px;margin:0}.ops-calendar-toolbar .heading-actions{flex-wrap:wrap}
.ops-facts .ops-fact-row{padding:16px;margin:12px 0;border:1px solid var(--border);border-radius:10px}
.ops-fact-row>.field-help{display:block;overflow-wrap:anywhere;margin-top:8px}
@media(max-width:760px){.ops-shortcuts,.ops-calendar-toolbar{align-items:stretch;flex-direction:column}.ops-shortcuts .heading-actions .button{flex:1 1 45%}.ops-fact-row .form-grid{grid-template-columns:1fr}.ops-calendar-toolbar .heading-actions{gap:6px}}
