:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ink: #18201d;
  --muted: #66716c;
  --soft: #f4f6f5;
  --line: #dde3e0;
  --line-strong: #c8d0cc;
  --surface: #ffffff;
  --sidebar: #202825;
  --sidebar-soft: #2a3430;
  --green: #177a55;
  --green-dark: #0f6042;
  --green-soft: #e8f5ef;
  --amber: #a85f09;
  --amber-soft: #fff3dc;
  --red: #b13a34;
  --red-soft: #fdeceb;
  --blue: #2f66a5;
  --blue-soft: #eaf2fb;
  --shadow: 0 10px 28px rgba(24, 32, 29, 0.09);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--soft); color: var(--ink); }

body { min-width: 320px; letter-spacing: 0; }

button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(23, 122, 85, 0.22); outline-offset: 2px; }

[hidden] { display: none !important; }
.mobile-only { display: none !important; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 0.92fr) minmax(480px, 1.08fr); background: var(--surface); }
.login-brand { min-height: 100vh; padding: 42px 52px; background: var(--sidebar); color: #f7faf8; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid #35413c; }
.brand-lockup { display: flex; align-items: center; gap: 13px; font-size: 17px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; padding: 7px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3px; background: #eef7f2; border-radius: 6px; }
.brand-mark span { display: block; background: var(--green); border-radius: 1px; }
.brand-mark span:nth-child(1) { height: 42%; }
.brand-mark span:nth-child(2) { height: 72%; }
.brand-mark span:nth-child(3) { height: 100%; }
.brand-mark.small { width: 32px; height: 32px; flex: 0 0 32px; }
.login-context { max-width: 590px; }
.eyebrow { margin: 0 0 14px; color: #8fd7b7; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.login-context h1 { margin: 0; max-width: 570px; font-size: clamp(36px, 4vw, 62px); line-height: 1.16; font-weight: 680; letter-spacing: 0; }
.login-facts { margin: 52px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #43504a; }
.login-facts div { min-width: 0; padding: 20px 14px 0 0; }
.login-facts dt { margin-bottom: 7px; color: #a7b4ae; font-size: 12px; }
.login-facts dd { margin: 0; color: #f7faf8; font-size: 14px; line-height: 1.45; }
.login-version { margin: 0; color: #87958e; font-size: 12px; }
.login-panel { display: grid; place-items: center; padding: 48px; }
.login-form { width: min(100%, 410px); }
.login-heading { margin-bottom: 34px; }
.login-heading .eyebrow { color: var(--green); margin-bottom: 10px; }
.login-heading h2 { margin: 0 0 10px; font-size: 30px; font-weight: 680; }
.login-heading p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span:first-child { font-size: 13px; font-weight: 650; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap svg { position: absolute; left: 13px; width: 17px; height: 17px; color: #7a8680; pointer-events: none; }
.input-wrap input { padding-left: 42px; }
input, select, textarea { width: 100%; min-height: 42px; padding: 10px 12px; background: #fff; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 5px; }
textarea { min-height: 88px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9ba49f; }
.form-error { min-height: 20px; margin: -4px 0 8px; color: var(--red); font-size: 12px; }
.button { min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 650; font-size: 13px; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.button svg { width: 17px; height: 17px; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { background: white; color: var(--ink); border-color: var(--line-strong); }
.button.secondary:hover { background: var(--soft); border-color: #aab4af; }
.button.danger { background: var(--red); color: white; }
.button.full { width: 100%; }
.button:disabled, .button.disabled { opacity: 0.5; pointer-events: none; }
.login-divider { margin: 24px 0; height: 1px; background: var(--line); display: flex; justify-content: center; }
.login-divider span { transform: translateY(-9px); padding: 0 11px; color: #8a948f; background: white; font-size: 12px; }
.login-status { margin-top: 24px; display: flex; justify-content: center; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #9ca6a1; }
.status-dot.ok { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 236px; display: flex; flex-direction: column; color: #dbe2de; background: var(--sidebar); border-right: 1px solid #35413c; }
.sidebar-brand { height: 72px; padding: 0 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #35413c; }
.sidebar-brand > div { min-width: 0; display: grid; gap: 2px; }
.sidebar-brand strong { color: white; font-size: 14px; white-space: nowrap; }
.sidebar-brand span:not(.brand-mark):not(.brand-mark span) { color: #8f9c95; font-size: 10px; }
.company-switcher { width: calc(100% - 24px); margin: 14px 12px 8px; min-height: 56px; padding: 10px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; align-items: center; gap: 9px; color: inherit; background: var(--sidebar-soft); border: 1px solid #3b4842; border-radius: 6px; cursor: pointer; text-align: left; }
.company-switcher:hover { background: #303c37; border-color: #4b5b54; }
.company-switcher > div { min-width: 0; display: grid; gap: 3px; }
.company-switcher span { color: #8f9c95; font-size: 10px; }
.company-switcher strong { overflow: hidden; color: white; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.company-switcher > svg { width: 14px; color: #84928b; }
.company-avatar { width: 34px; height: 34px; display: grid; place-items: center; color: #164f3b !important; background: #ccebdc; border-radius: 5px; font-size: 13px !important; font-weight: 750; }
.company-list { display: grid; gap: 8px; }
.company-choice { min-height: 64px; padding: 10px 12px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.company-choice.current { border-color: #8fc8ae; background: #f7fbf9; }
.company-choice > div { min-width: 0; display: grid; gap: 3px; }
.company-choice strong, .company-choice small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-choice strong { font-size: 12px; }
.company-choice small { color: var(--muted); font-size: 10px; }
.company-table td:first-child { min-width: 210px; }
.company-member-table td:first-child { min-width: 190px; }
.main-nav { flex: 1; min-height: 0; padding: 4px 10px 10px; display: flex; flex-direction: column; overflow-y: auto; }
.nav-label { margin: 20px 10px 7px; color: #74827b; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.nav-item { width: 100%; min-height: 39px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; color: #adb8b2; background: transparent; border: 0; border-radius: 5px; cursor: pointer; text-align: left; font-size: 13px; }
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; }
.nav-item:hover { color: white; background: #29332f; }
.nav-item.active { color: white; background: #34423c; box-shadow: inset 3px 0 0 #62c99b; }
.nav-support-groups { margin-top: auto; padding-top: 22px; display: grid; gap: 4px; }
.nav-section { min-width: 0; }
.nav-section summary { min-height: 39px; padding: 8px 10px; display: grid; grid-template-columns: 17px minmax(0, 1fr) 14px; align-items: center; gap: 10px; color: #9eaaa4; border-radius: 5px; cursor: pointer; font-size: 12px; list-style: none; }
.nav-section summary::-webkit-details-marker { display: none; }
.nav-section summary:hover, .nav-section.active summary { color: white; background: #29332f; }
.nav-section summary > svg { width: 17px; height: 17px; }
.nav-section .nav-section-chevron { width: 13px; color: #718078; transition: transform 160ms ease; }
.nav-section[open] .nav-section-chevron { transform: rotate(180deg); }
.nav-section-items { margin: 3px 0 7px; padding-left: 10px; display: grid; gap: 2px; border-left: 1px solid #3a4641; }
.nav-subitem { min-height: 34px; padding-left: 9px; font-size: 11px; }
.nav-subitem svg { width: 15px; height: 15px; flex-basis: 15px; }
.sidebar-foot { padding: 12px; border-top: 1px solid #35413c; }
.readonly-note { padding: 10px; display: flex; align-items: center; gap: 9px; }
.readonly-note > svg { width: 18px; color: #71cfa5; }
.readonly-note div { display: grid; gap: 2px; }
.readonly-note strong { color: #dbe5e0; font-size: 11px; }
.readonly-note span { color: #7f8d86; font-size: 10px; }
.sidebar-scrim { display: none; }

.workspace { grid-column: 2; min-width: 0; }
.topbar { position: sticky; z-index: 20; top: 0; height: 72px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); }
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-left > div { display: grid; gap: 2px; }
.topbar-left p { margin: 0; color: var(--muted); font-size: 10px; }
.topbar-left h1 { margin: 0; font-size: 18px; font-weight: 700; }
.topbar-actions { position: relative; display: flex; align-items: center; gap: 9px; }
.topbar-divider { width: 1px; height: 28px; margin: 0 3px; background: var(--line); }
.icon-button { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; background: transparent; border: 1px solid transparent; border-radius: 5px; cursor: pointer; }
.icon-button:hover { background: var(--soft); border-color: var(--line); }
.icon-button:disabled { opacity: 0.38; cursor: not-allowed; }
.icon-button:disabled:hover { background: transparent; border-color: transparent; }
.icon-button svg { width: 18px; height: 18px; }
.topbar-view-button.active { color: var(--green-dark); background: var(--green-soft); border-color: #c9e4d7; }
.notification-button { position: relative; }
.notification-count { position: absolute; top: 1px; right: 0; min-width: 15px; height: 15px; padding: 0 4px; display: grid; place-items: center; color: white; background: var(--red); border: 2px solid white; border-radius: 999px; font-size: 7px; font-weight: 750; line-height: 1; }
.icon-button.loading svg { animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.account-button { min-width: 0; padding: 4px 5px; display: flex; align-items: center; gap: 8px; background: transparent; border: 0; border-radius: 5px; cursor: pointer; }
.account-button:hover { background: var(--soft); }
.account-button > svg { width: 15px; color: var(--muted); }
.user-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; color: white; background: #376b57; border-radius: 50%; font-size: 12px; font-weight: 750; }
.account-copy { min-width: 0; display: grid; gap: 1px; text-align: left; }
.account-copy strong { max-width: 130px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { color: var(--muted); font-size: 10px; }
.account-menu { position: absolute; z-index: 40; top: calc(100% + 10px); right: 0; width: 154px; padding: 6px; background: white; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.account-menu button { width: 100%; padding: 9px; display: flex; align-items: center; gap: 8px; background: transparent; border: 0; border-radius: 4px; cursor: pointer; font-size: 12px; text-align: left; }
.account-menu button:hover { background: var(--soft); }
.account-menu svg { width: 16px; }
.global-search-panel { position: absolute; z-index: 45; top: calc(100% + 11px); right: 54px; width: min(380px, calc(100vw - 32px)); max-height: min(540px, calc(100vh - 92px)); overflow: hidden; background: white; border: 1px solid var(--line-strong); border-radius: 7px; box-shadow: var(--shadow); }
.global-search-panel > label { height: 48px; padding: 0 13px; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.global-search-panel > label svg { width: 17px; color: var(--muted); }
.global-search-panel input { min-height: 34px; padding: 5px 0; border: 0; outline: 0; }
.global-search-results { max-height: min(480px, calc(100vh - 150px)); padding: 7px; overflow-y: auto; }
.global-search-results section + section { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line); }
.global-search-results section > strong { display: block; padding: 5px 8px 4px; color: var(--muted); font-size: 8px; }
.global-search-results button { width: 100%; min-height: 36px; padding: 7px 8px; display: grid; grid-template-columns: 17px minmax(0, 1fr) 14px; align-items: center; gap: 8px; color: var(--ink); background: transparent; border: 0; border-radius: 4px; cursor: pointer; text-align: left; font-size: 11px; }
.global-search-results button:hover { background: var(--soft); }
.global-search-results button svg { width: 15px; color: var(--muted); }
.global-search-results button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search-results button svg:last-child { width: 12px; justify-self: end; }
.global-search-empty { min-height: 110px; display: grid; place-content: center; justify-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.global-search-empty svg { width: 20px; }

.content { min-height: calc(100vh - 72px); padding: 24px 28px 40px; }
.page-intro { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.page-intro h2 { margin: 0 0 5px; font-size: 20px; font-weight: 700; }
.page-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.page-actions { display: flex; align-items: center; gap: 8px; }
.context-navigation { min-width: 0; margin: -4px 0 16px; display: flex; align-items: center; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.context-navigation button { position: relative; min-height: 38px; padding: 7px 10px 9px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 650; }
.context-navigation button::after { content: ""; position: absolute; right: 8px; bottom: -1px; left: 8px; height: 2px; background: transparent; }
.context-navigation button:hover { color: var(--ink); }
.context-navigation button.active { color: var(--green-dark); }
.context-navigation button.active::after { background: var(--green); }
.context-navigation button svg { width: 14px; height: 14px; }
.month-control { height: 40px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; background: white; border: 1px solid var(--line-strong); border-radius: 5px; }
.month-control svg { width: 16px; color: var(--muted); }
.month-control input { width: 116px; min-height: 32px; padding: 4px 2px; border: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { min-height: 118px; padding: 17px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.metric-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); border-radius: 5px; }
.metric:nth-child(2) .metric-icon { background: var(--blue-soft); color: var(--blue); }
.metric:nth-child(3) .metric-icon { background: var(--amber-soft); color: var(--amber); }
.metric:nth-child(4) .metric-icon { background: #f1ecf8; color: #6d4d92; }
.metric-icon svg { width: 16px; height: 16px; }
.metric strong { display: block; margin-top: 10px; overflow-wrap: anywhere; font-size: 24px; line-height: 1.1; font-weight: 720; font-variant-numeric: tabular-nums; }
.metric footer { margin-top: 8px; color: #8a948f; font-size: 10px; }
.dashboard-grid { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.8fr); gap: 12px; align-items: start; }
.cost-breakdowns { display: grid; gap: 12px; }
.overview-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.business-segment-band { min-width: 0; margin-top: 12px; display: grid; grid-template-columns: minmax(240px, 1.35fr) minmax(210px, 0.9fr) minmax(190px, 0.75fr); background: white; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.business-segment-band > div { min-width: 0; min-height: 92px; padding: 14px 17px; display: grid; align-content: center; gap: 5px; border-right: 1px solid var(--line); }
.business-segment-band > div:last-child { border-right: 0; }
.business-segment-band span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.business-segment-band span svg { width: 13px; color: var(--green); }
.business-segment-band strong { overflow-wrap: anywhere; font-size: 16px; font-variant-numeric: tabular-nums; }
.business-segment-band small { color: var(--muted); font-size: 9px; }
.business-segment-primary { background: #f2f8f5; }
.business-segment-primary strong { color: #174b37; font-size: 22px; }
.business-segment-secondary { background: #fafbfa; }
.business-segment-secondary strong { color: #5f6a65; }
.business-segment-total strong { font-size: 18px; }
.department-operating-section { min-width: 0; margin-top: 12px; }
.department-operating-section > header { min-height: 48px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.department-operating-section > header h3 { margin: 0; font-size: 14px; }
.department-operating-section > header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.department-operating-grid { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.department-operating-card { min-width: 0; min-height: 168px; padding: 15px 16px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.department-operating-card.qianchuan { background: #fafbfa; border-color: #d8ddda; }
.department-operating-card > header { min-width: 0; min-height: 42px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.department-operating-card > header > div:first-child { min-width: 0; display: grid; gap: 4px; }
.department-operating-card h3 { margin: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.department-operating-card header small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.department-operating-card-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.department-operating-card dl { margin: 12px 0 0; padding-top: 11px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; border-top: 1px solid var(--line); }
.department-operating-card dl div { min-width: 0; display: grid; gap: 4px; }
.department-operating-card dt { color: var(--muted); font-size: 8px; }
.department-operating-card dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.department-operating-card dd.danger-text { color: var(--red); }
.department-operating-card dd.success-text { color: var(--green); }
.department-revenue-value { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dashboard-department-select { width: 156px; min-height: 40px; padding: 8px 30px 8px 10px; background: white; border-color: var(--line-strong); font-size: 10px; }
.operating-grid { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr); }
.operating-trend-chart { height: 260px; padding: 22px 16px 0; display: flex; align-items: stretch; gap: 12px; border-bottom: 1px solid var(--line); }
.operating-trend-column { min-width: 0; flex: 1; display: grid; grid-template-rows: minmax(140px, 1fr) 22px 20px; align-items: end; text-align: center; }
.operating-trend-bars { height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.operating-trend-bars span { width: min(16px, 24%); min-height: 4px; border-radius: 2px 2px 0 0; }
.operating-trend-bars .revenue, .revenue-dot { background: #32765a; }
.operating-trend-bars .cost, .cost-dot { background: #cf7947; }
.operating-trend-bars .profit, .profit-dot { background: #4b7fae; }
.operating-trend-column strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.operating-trend-column small { color: var(--muted); font-size: 8px; }
.focus-list { max-height: 311px; padding-top: 5px; padding-bottom: 5px; overflow-y: auto; }
.focus-item { min-height: 62px; padding: 9px 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.focus-item:last-child { border-bottom: 0; }
.focus-item > div { min-width: 0; display: grid; gap: 4px; }
.focus-item strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.focus-item small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.focus-severity { width: 30px; height: 30px; display: grid; place-items: center; color: var(--amber); background: var(--amber-soft); border-radius: 5px; }
.focus-severity.high, .focus-severity.critical { color: var(--red); background: var(--red-soft); }
.focus-severity svg { width: 15px; height: 15px; }
.department-performance-panel { margin-top: 12px; }
.department-performance-table th:first-child, .department-performance-table td:first-child { min-width: 190px; }
.panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 6px; }
.panel + .panel { margin-top: 12px; }
.panel-header { min-height: 58px; padding: 14px 17px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.panel-title { min-width: 0; }
.panel-title h3 { margin: 0; font-size: 14px; font-weight: 700; }
.panel-title p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.panel-body { padding: 17px; }
.status-list { display: grid; }
.status-row { min-height: 58px; padding: 11px 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.status-row > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; background: var(--soft); color: var(--muted); border-radius: 5px; }
.status-row svg { width: 16px; height: 16px; }
.status-row div { min-width: 0; display: grid; gap: 3px; }
.status-row strong { font-size: 12px; }
.status-row small { color: var(--muted); font-size: 10px; }
.badge { width: fit-content; max-width: 100%; padding: 4px 7px; display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.badge.success { color: var(--green-dark); background: var(--green-soft); }
.badge.warning { color: var(--amber); background: var(--amber-soft); }
.badge.danger { color: var(--red); background: var(--red-soft); }
.badge.info { color: var(--blue); background: var(--blue-soft); }
.badge.neutral { color: #56615c; background: #edf0ee; }
.readiness-table { width: 100%; border-collapse: collapse; }
.readiness-table th, .readiness-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; }
.readiness-table th { color: var(--muted); background: #fafbfa; font-weight: 650; }
.readiness-table tr:last-child td { border-bottom: 0; }
.readiness-table td:nth-child(2), .readiness-table th:nth-child(2) { width: 90px; }
.readiness-table td:last-child, .readiness-table th:last-child { width: 105px; }
.activity-list { display: grid; }
.activity-item { position: relative; min-height: 54px; padding: 8px 0 8px 25px; display: grid; align-content: center; gap: 3px; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-item::before { position: absolute; left: 3px; top: 20px; width: 7px; height: 7px; content: ""; background: #66bd95; border: 2px solid var(--green-soft); border-radius: 50%; }
.activity-item strong { font-size: 11px; }
.activity-item small { color: var(--muted); font-size: 10px; }
.empty-state { min-height: 220px; padding: 34px; display: grid; place-items: center; text-align: center; }
.empty-state.compact { min-height: 120px; padding: 20px; }
.empty-state > div { max-width: 390px; }
.empty-icon { width: 46px; height: 46px; margin: 0 auto 13px; display: grid; place-items: center; color: var(--muted); background: var(--soft); border-radius: 6px; }
.empty-icon svg { width: 22px; }
.empty-state h3 { margin: 0 0 7px; font-size: 14px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.ai-chat-shell {
  height: max(620px, calc(100vh - 182px));
  min-height: 0;
  display: grid;
  grid-template-columns: 224px minmax(420px, 1fr) 286px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.ai-chat-sidebar, .ai-chat-context, .ai-chat-main { min-width: 0; min-height: 0; }
.ai-chat-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background: #f7f9f8;
  border-right: 1px solid var(--line);
}
.ai-chat-sidebar > header, .ai-chat-main > header, .ai-chat-context section > header {
  min-height: 58px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.ai-chat-sidebar > header > div, .ai-chat-main > header > div, .ai-chat-context section > header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.ai-chat-sidebar header strong, .ai-chat-main header strong, .ai-chat-context header strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ai-chat-sidebar header small, .ai-chat-main header small, .ai-chat-context header small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.ai-chat-sidebar > label {
  padding: 11px 12px;
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line);
}
.ai-chat-sidebar > label > span { color: var(--muted); font-size: 8px; font-weight: 650; }
.ai-chat-sidebar select { min-height: 34px; padding: 6px 26px 6px 8px; font-size: 9px; }
.ai-conversation-list { min-height: 0; padding: 7px; overflow-y: auto; }
.ai-conversation-item {
  width: 100%;
  min-height: 56px;
  padding: 9px 8px 9px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
}
.ai-conversation-item:hover { background: white; border-color: var(--line); }
.ai-conversation-item.active { background: white; border-color: #bcd9cb; box-shadow: inset 3px 0 0 var(--green); }
.ai-conversation-item > span { min-width: 0; display: grid; gap: 5px; }
.ai-conversation-item strong, .ai-conversation-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-conversation-item strong { font-size: 10px; }
.ai-conversation-item small { color: var(--muted); font-size: 8px; }
.ai-conversation-item > svg { width: 13px; color: var(--muted); }
.ai-conversation-empty { height: 150px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); font-size: 9px; }
.ai-conversation-empty svg { width: 22px; }
.ai-chat-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
}
.ai-chat-messages { min-height: 0; padding: 20px 24px; overflow-y: auto; scroll-behavior: smooth; }
.ai-chat-message { max-width: 880px; margin: 0 auto 22px; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 10px; }
.ai-chat-message.user { grid-template-columns: minmax(0, 1fr) 30px; }
.ai-chat-message.user .ai-chat-avatar { grid-column: 2; grid-row: 1; color: white; background: #2d6e55; }
.ai-chat-message.user .ai-chat-bubble { grid-column: 1; grid-row: 1; justify-self: end; max-width: min(80%, 720px); background: #f1f7f4; border-color: #d3e5dc; }
.ai-chat-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #27694f;
  background: var(--green-soft);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 750;
}
.ai-chat-avatar svg { width: 15px; height: 15px; }
.ai-chat-bubble { min-width: 0; padding: 12px 14px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.ai-chat-bubble > header { margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.ai-chat-bubble > header strong { font-size: 10px; }
.ai-chat-bubble > header time { color: var(--muted); font-size: 8px; }
.ai-chat-copy { color: #222a26; font-size: 11px; line-height: 1.72; }
.ai-chat-copy p { margin: 0 0 9px; overflow-wrap: anywhere; }
.ai-chat-copy p:last-child { margin-bottom: 0; }
.ai-chat-copy h3, .ai-chat-copy h4 { margin: 14px 0 7px; font-size: 12px; }
.ai-chat-copy ul, .ai-chat-copy ol { margin: 6px 0 10px; padding-left: 20px; }
.ai-chat-copy li { margin: 4px 0; }
.ai-chat-copy code { padding: 2px 4px; color: #23543f; background: #edf4f0; border-radius: 3px; font-size: 10px; }
.ai-chat-copy pre { max-width: 100%; padding: 11px; overflow-x: auto; color: #e7eee9; background: #252c28; border-radius: 5px; }
.ai-chat-copy pre code { padding: 0; color: inherit; background: transparent; }
.ai-chat-table-wrap { max-width: 100%; margin: 8px 0 11px; overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; }
.ai-chat-copy table { width: 100%; border-collapse: collapse; font-size: 9px; }
.ai-chat-copy th, .ai-chat-copy td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.ai-chat-copy th { color: #4f5c56; background: #f4f7f5; font-weight: 700; }
.ai-chat-copy tbody tr:last-child td { border-bottom: 0; }
.ai-chat-citations { margin-top: 11px; padding-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; border-top: 1px solid var(--line); }
.ai-chat-citations > span { min-height: 23px; padding: 3px 6px; display: inline-flex; align-items: center; gap: 4px; color: #52605a; background: #f4f6f5; border: 1px solid var(--line); border-radius: 4px; font-size: 8px; }
.ai-chat-citations svg { width: 10px; height: 10px; color: var(--green); }
.ai-chat-citations small { color: var(--muted); }
.ai-chat-composer { padding: 11px 16px 13px; background: #fafbfa; border-top: 1px solid var(--line); }
.ai-chat-modes { width: fit-content; margin-bottom: 8px; }
.ai-chat-modes button { min-height: 27px; padding: 4px 9px; font-size: 8px; }
.ai-chat-input-row { min-height: 66px; padding: 6px 7px 6px 11px; display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: end; gap: 7px; background: white; border: 1px solid var(--line-strong); border-radius: 6px; }
.ai-chat-input-row:focus-within { border-color: #6da98d; box-shadow: 0 0 0 2px rgba(66, 142, 107, 0.1); }
.ai-chat-input-row textarea { width: 100%; min-height: 48px; max-height: 150px; padding: 8px 0; resize: none; border: 0; outline: none; font: inherit; font-size: 11px; line-height: 1.5; }
.ai-send-button { width: 32px; height: 32px; color: white; background: var(--green); border-color: var(--green); }
.ai-send-button:hover { color: white; background: var(--green-dark); }
.ai-chat-composer > footer { margin-top: 6px; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 8px; }
.ai-chat-composer > footer span { display: inline-flex; align-items: center; gap: 4px; }
.ai-chat-composer > footer svg { width: 10px; height: 10px; }
.ai-chat-welcome { height: 100%; max-width: 720px; margin: 0 auto; display: grid; place-content: center; justify-items: center; text-align: center; }
.ai-chat-welcome-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #2d7156; background: var(--green-soft); border-radius: 6px; }
.ai-chat-welcome-icon svg { width: 22px; }
.ai-chat-welcome h2 { margin: 15px 0 6px; font-size: 17px; }
.ai-chat-welcome > p { margin: 0; color: var(--muted); font-size: 10px; }
.ai-chat-welcome > div { width: min(100%, 620px); margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ai-chat-welcome button { min-height: 66px; padding: 11px; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 9px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; text-align: left; }
.ai-chat-welcome button:hover { border-color: #9ec8b4; background: #f7fbf9; }
.ai-chat-welcome button svg { width: 18px; color: var(--green); }
.ai-chat-welcome button span { overflow-wrap: anywhere; font-size: 9px; line-height: 1.5; }
.ai-thinking { min-height: 24px; display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; }
.ai-thinking span { width: 5px; height: 5px; background: #73a990; border-radius: 50%; animation: ai-thinking 1.2s infinite ease-in-out; }
.ai-thinking span:nth-child(2) { animation-delay: 0.15s; }
.ai-thinking span:nth-child(3) { animation-delay: 0.3s; }
.ai-thinking em { margin-left: 5px; font-style: normal; }
@keyframes ai-thinking { 0%, 60%, 100% { opacity: 0.28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.ai-chat-context { display: grid; grid-template-rows: minmax(0, 0.78fr) minmax(0, 1.22fr); background: #fbfcfb; border-left: 1px solid var(--line); }
.ai-chat-context section { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.ai-chat-context section + section { border-top: 1px solid var(--line); }
.ai-source-list, .ai-context-memories { min-height: 0; padding: 8px 12px; overflow-y: auto; }
.ai-source-list > div { min-height: 48px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); }
.ai-source-list > div:last-child { border-bottom: 0; }
.ai-source-list > div > span { width: 24px; height: 24px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 4px; }
.ai-source-list svg { width: 12px; }
.ai-source-list > div > div { min-width: 0; display: grid; gap: 3px; }
.ai-source-list strong, .ai-source-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-source-list strong { font-size: 9px; }
.ai-source-list small, .ai-source-list time { color: var(--muted); font-size: 7px; }
.ai-context-empty { margin: 14px 3px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.ai-memory-candidate { min-width: 0; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 5px; }
.ai-memory-candidate + .ai-memory-candidate { margin-top: 8px; }
.ai-memory-candidate > header, .ai-memory-candidate > footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8px; }
.ai-memory-candidate textarea { width: 100%; min-height: 72px; margin: 9px 0 6px; padding: 8px; resize: vertical; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 9px; line-height: 1.5; }
.ai-memory-candidate > p { margin: 0 0 8px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.ai-memory-candidate footer > div { display: flex; gap: 4px; }
.primary-icon { color: white; background: var(--green); border-color: var(--green); }
.primary-icon:hover { color: white; background: var(--green-dark); }
.ai-memory-center { display: grid; grid-template-columns: minmax(320px, 0.8fr) minmax(440px, 1.2fr); gap: 12px; }
.ai-memory-review-band, .ai-memory-library { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 6px; }
.ai-memory-review-band > header, .ai-memory-library > header { min-height: 62px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.ai-memory-review-band header h3, .ai-memory-library header h3 { margin: 0; font-size: 13px; }
.ai-memory-review-band header p, .ai-memory-library header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.ai-memory-review-band > div, .ai-memory-library > div { max-height: calc(100vh - 250px); padding: 12px; overflow-y: auto; }
.ai-memory-library > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ai-memory-card { min-width: 0; min-height: 142px; padding: 12px; display: grid; grid-template-rows: auto minmax(54px, 1fr) auto; gap: 10px; border: 1px solid var(--line); border-radius: 5px; }
.ai-memory-card > header, .ai-memory-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.ai-memory-card > header > div { display: flex; flex-wrap: wrap; gap: 4px; }
.ai-memory-card > p { margin: 0; overflow-wrap: anywhere; font-size: 10px; line-height: 1.55; }
.ai-memory-card > footer { padding-top: 8px; color: var(--muted); border-top: 1px solid var(--line); font-size: 8px; }
.ai-memory-empty { min-height: 150px; display: grid; place-content: center; justify-items: center; gap: 9px; color: var(--muted); font-size: 9px; }
.ai-memory-empty svg { width: 22px; }

@media (max-width: 1180px) {
  .ai-chat-shell { grid-template-columns: 210px minmax(400px, 1fr); }
  .ai-chat-context { display: none; }
  .ai-memory-center { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .ai-chat-shell { height: calc(100vh - 158px); min-height: 560px; grid-template-columns: 1fr; }
  .ai-chat-sidebar { display: none; }
  .ai-chat-messages { padding: 16px 11px; }
  .ai-chat-message { grid-template-columns: 26px minmax(0, 1fr); gap: 7px; }
  .ai-chat-message.user { grid-template-columns: minmax(0, 1fr) 26px; }
  .ai-chat-avatar { width: 26px; height: 26px; }
  .ai-chat-message.user .ai-chat-bubble { max-width: 92%; }
  .ai-chat-composer { padding: 9px; }
  .ai-chat-composer > footer span:last-child { display: none; }
  .ai-chat-welcome > div { grid-template-columns: 1fr; }
  .ai-chat-welcome button { min-height: 52px; }
  .ai-memory-library > div { grid-template-columns: 1fr; }
}

.toolbar { min-height: 58px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.toolbar-left { min-width: 0; display: flex; flex: 1; align-items: center; gap: 12px; overflow-x: auto; }
.cost-toolbar select { width: auto; min-width: 116px; min-height: 36px; padding: 7px 28px 7px 9px; font-size: 10px; }
.calculated-output { min-height: 42px; padding: 10px 12px; display: flex; align-items: center; color: var(--green-dark); background: var(--green-soft); border: 1px solid #cce8db; border-radius: 5px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.revenue-table th:nth-child(n+5):nth-child(-n+10), .revenue-table td:nth-child(n+5):nth-child(-n+10) { text-align: right; font-variant-numeric: tabular-nums; }
.revenue-table th:first-child, .revenue-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.revenue-table thead th:first-child { background: #fafbfa; }
.quarter-control { height: 40px; padding: 0 8px 0 10px; display: inline-flex; align-items: center; gap: 7px; background: white; border: 1px solid var(--line-strong); border-radius: 5px; }
.quarter-control svg { width: 16px; color: var(--muted); }
.quarter-control select { width: 150px; min-height: 32px; padding: 4px 24px 4px 2px; border: 0; font-size: 11px; }
.okr-filter-panel { margin-top: 12px; }
.okr-filter-panel select { width: auto; min-width: 128px; min-height: 36px; padding: 7px 28px 7px 9px; font-size: 10px; }
.okr-filter-panel .search-box { flex: 0 0 230px; }
.okr-list { margin-top: 12px; display: grid; gap: 12px; }
.okr-pagination { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.okr-card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 6px; }
.okr-card-head { padding: 17px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.okr-title-block { min-width: 0; }
.okr-badges { margin-bottom: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.okr-title-block h3 { margin: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.okr-title-block p { margin: 5px 0 0; max-width: 820px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.okr-card-actions { flex: 0 0 auto; display: flex; gap: 4px; }
.okr-meta { padding: 0 17px 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 10px; }
.okr-meta span { display: inline-flex; align-items: center; gap: 5px; }
.okr-meta svg { width: 13px; height: 13px; }
.objective-progress { min-height: 48px; padding: 11px 17px; display: grid; grid-template-columns: 90px minmax(180px, 520px); align-items: center; gap: 14px; background: #fafbfa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.objective-progress > span { color: var(--muted); font-size: 10px; font-weight: 650; }
.progress-wrap { min-width: 0; display: grid; grid-template-columns: minmax(60px, 1fr) 38px; align-items: center; gap: 8px; }
.progress-track { height: 7px; overflow: hidden; background: #e4e9e6; border-radius: 4px; }
.progress-track span { height: 100%; display: block; background: var(--green); border-radius: 4px; }
.progress-wrap strong { font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; }
.progress-wrap.compact { width: 130px; grid-template-columns: minmax(60px, 1fr) 32px; }
.progress-wrap.compact .progress-track { height: 5px; }
.okr-table th, .okr-table td { height: 48px; }
.okr-table th:first-child, .okr-table td:first-child { min-width: 250px; white-space: normal; }
.kr-title { display: grid; gap: 3px; }
.kr-title strong { line-height: 1.4; }
.kr-title small { color: var(--muted); font-size: 9px; }
.kr-execution { min-width: 150px; display: grid; grid-template-columns: repeat(3, max-content); align-items: center; gap: 4px 9px; }
.kr-execution > span { display: inline-flex; align-items: center; gap: 3px; color: var(--text); font-variant-numeric: tabular-nums; }
.kr-execution > span svg { width: 12px; height: 12px; color: var(--muted); }
.kr-execution small { grid-column: 1 / -1; max-width: 180px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.okr-empty-row { padding: 18px; color: var(--muted); text-align: center; }
.evidence-alert { width: 22px; height: 22px; margin-left: 5px; display: inline-grid; place-items: center; color: var(--amber); background: var(--amber-soft); border-radius: 4px; vertical-align: middle; }
.evidence-alert svg { width: 12px; height: 12px; }
.okr-progress-layout { min-width: 0; display: grid; grid-template-columns: minmax(290px, 0.82fr) minmax(340px, 1.18fr); gap: 20px; }
.okr-checkin-form, .okr-checkin-history { min-width: 0; }
.okr-progress-snapshot, .okr-review-summary { margin-bottom: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f7f9f8; border: 1px solid var(--line); border-radius: 5px; }
.okr-progress-snapshot span, .okr-review-summary span { min-width: 0; min-height: 68px; padding: 12px; display: grid; align-content: center; gap: 5px; border-right: 1px solid var(--line); }
.okr-progress-snapshot span:last-child, .okr-review-summary span:last-child { border-right: 0; }
.okr-progress-snapshot small, .okr-review-summary small { color: var(--muted); font-size: 9px; }
.okr-progress-snapshot strong, .okr-review-summary strong { overflow-wrap: anywhere; font-size: 15px; }
.okr-checkin-timeline { max-height: 440px; padding-left: 7px; overflow-y: auto; }
.okr-checkin-item { position: relative; padding: 0 0 16px 20px; border-left: 1px solid var(--line-strong); }
.okr-checkin-item:last-child { padding-bottom: 0; }
.okr-checkin-marker { position: absolute; top: 4px; left: -5px; width: 9px; height: 9px; background: var(--green); border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); }
.okr-checkin-item header { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.okr-checkin-item header > div { display: flex; flex-wrap: wrap; gap: 4px; }
.okr-checkin-item time { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.okr-checkin-item p { margin: 8px 0; overflow-wrap: anywhere; font-size: 10px; line-height: 1.55; }
.okr-checkin-item footer { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font-size: 9px; }
.okr-checkin-item footer a { color: var(--blue); }
.project-panel { margin-top: 12px; }
.project-panel .toolbar select { width: auto; min-width: 128px; min-height: 36px; padding: 7px 28px 7px 9px; font-size: 10px; }
.project-grid { padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-card { min-width: 0; border: 1px solid var(--line); border-radius: 6px; }
.project-card > header { padding: 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.project-card > header > div:first-child { min-width: 0; }
.project-card-badges { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.project-card h3 { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.project-card header p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.project-meta { min-height: 58px; padding: 11px 15px; display: flex; flex-wrap: wrap; align-content: center; gap: 7px 14px; color: var(--muted); font-size: 9px; }
.project-meta span { display: inline-flex; align-items: center; gap: 5px; }
.project-meta svg { width: 12px; height: 12px; }
.project-progress { padding: 11px 15px; display: grid; grid-template-columns: 115px minmax(100px, 1fr); align-items: center; gap: 12px; background: #fafbfa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-progress > span { color: var(--muted); font-size: 9px; }
.project-members { padding: 12px 15px; }
.project-members > strong { display: block; margin-bottom: 8px; font-size: 10px; }
.project-members > div { display: flex; flex-wrap: wrap; gap: 5px; }
.project-member-chip { min-height: 26px; padding: 4px 4px 4px 7px; display: inline-flex; align-items: center; gap: 5px; color: #315d4b; background: var(--green-soft); border-radius: 4px; font-size: 9px; }
.project-member-chip button { width: 18px; height: 18px; padding: 0; display: grid; place-items: center; color: inherit; background: transparent; border: 0; border-radius: 3px; cursor: pointer; }
.project-member-chip button:hover { background: rgba(23, 122, 85, 0.12); }
.project-member-chip svg { width: 11px; height: 11px; }
.project-task-table th:first-child, .project-task-table td:first-child { min-width: 250px; white-space: normal; }
.deliverable-panel { margin-top: 12px; }
.deliverable-panel .toolbar select { width: auto; min-width: 128px; min-height: 36px; padding: 7px 28px 7px 9px; font-size: 10px; }
.deliverable-type-grid { padding: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.deliverable-type-card { min-width: 0; padding: 14px; display: grid; grid-template-rows: auto auto minmax(36px, auto) auto auto; gap: 9px; border: 1px solid var(--line); border-radius: 6px; }
.deliverable-type-card header, .deliverable-type-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.deliverable-type-card h3 { margin: 0; overflow-wrap: anywhere; font-size: 13px; }
.deliverable-type-card > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.type-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 5px; }
.type-icon svg { width: 15px; height: 15px; }
.type-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.type-meta span { padding: 4px 6px; color: var(--muted); background: var(--soft); border-radius: 3px; font-size: 9px; }
.deliverable-type-card footer { padding-top: 8px; border-top: 1px solid var(--line); }
.deliverable-type-card code { color: var(--muted); font-size: 9px; }
.deliverable-table th:first-child, .deliverable-table td:first-child { min-width: 220px; white-space: normal; }
.delivery-counts { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.delivery-counts svg { width: 12px; height: 12px; }
.dynamic-section { padding: 12px; background: #fafbfa; border: 1px solid var(--line); border-radius: 5px; }
.dynamic-section > strong { margin-bottom: 11px; display: block; font-size: 10px; }
.dynamic-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10px; }
.schema-editor { min-height: 132px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.5; }
.check-grid { padding: 9px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: #fafbfa; border: 1px solid var(--line); border-radius: 5px; }
.check-grid label { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 10px; font-weight: 500; }
.check-grid input { width: 14px; min-height: 14px; margin: 0; }
.metric-panel { margin-top: 12px; }
.metric-panel .toolbar-left { flex-wrap: wrap; overflow-x: visible; }
.metric-panel .toolbar select { width: auto; min-width: 126px; min-height: 36px; padding: 7px 28px 7px 9px; font-size: 10px; }
.metric-panel .search-box { flex: 0 0 220px; }
.submission-panel { margin-top: 12px; }
.submission-panel .toolbar select { width: auto; min-width: 132px; min-height: 36px; padding: 7px 28px 7px 9px; font-size: 10px; }
.submission-table { min-width: 1080px; }
.submission-batch { min-width: 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.submission-batch > header { min-height: 58px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fafbfa; border-bottom: 1px solid var(--line); }
.submission-batch > header > div { display: grid; gap: 4px; }
.submission-batch > header strong { font-size: 11px; }
.submission-batch > header small { color: var(--muted); font-size: 9px; }
.submission-batch-scroll { overflow-x: auto; }
#submission-entry-list { min-width: 820px; }
.submission-entry-row { min-height: 76px; padding: 9px 10px; position: relative; display: grid; grid-template-columns: minmax(210px, 1.5fr) repeat(4, minmax(104px, 0.7fr)) 36px; align-items: end; gap: 8px; border-bottom: 1px solid var(--line); }
.submission-entry-row:last-child { border-bottom: 0; }
.submission-entry-row label { min-width: 0; display: grid; gap: 5px; }
.submission-entry-row label span { color: var(--muted); font-size: 8px; font-weight: 650; }
.submission-entry-row select, .submission-entry-row input { min-width: 0; min-height: 36px; padding: 7px 9px; font-size: 10px; }
.submission-entry-row .icon-button { margin-bottom: 1px; }
.submission-row-error { grid-column: 1 / -1; color: var(--red); font-size: 9px; }
.danger-icon { color: var(--red); }
.submission-detail { min-width: 0; display: grid; gap: 14px; }
.submission-detail-table { min-width: 790px; }
.metric-definition-grid { padding: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric-definition-card { min-width: 0; padding: 14px; display: grid; grid-template-rows: auto auto minmax(34px, auto) auto auto auto; gap: 9px; border: 1px solid var(--line); border-radius: 6px; }
.metric-definition-card header, .metric-definition-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-definition-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #316ca5; background: #e8f1fa; border-radius: 5px; }
.metric-definition-icon svg { width: 15px; height: 15px; }
.metric-definition-card h3 { margin: 0 0 4px; overflow-wrap: anywhere; font-size: 13px; }
.metric-definition-card code { color: var(--muted); font-size: 9px; }
.metric-definition-card > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.metric-definition-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.metric-definition-meta span { padding: 4px 6px; color: var(--muted); background: var(--soft); border-radius: 3px; font-size: 9px; }
.metric-latest { min-height: 46px; padding: 8px 10px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 8px; background: #fafbfa; border: 1px solid var(--line); border-radius: 5px; }
.metric-latest > span:first-child { color: var(--muted); font-size: 9px; }
.metric-latest strong { grid-row: 2; font-size: 15px; }
.metric-latest .badge { grid-column: 2; grid-row: 1 / span 2; }
.metric-definition-card footer { padding-top: 8px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; }
.metric-value-table th:first-child, .metric-value-table td:first-child { min-width: 200px; white-space: normal; }
.metric-value-table .number-cell strong { font-size: 12px; }
.source-cell { display: grid; gap: 2px; }
.source-cell small { max-width: 130px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; }
.warning-rule-box { padding: 12px; background: #fffaf0; border: 1px solid #ead9ae; border-radius: 5px; }
.warning-rule-box > .checkbox-field { margin-bottom: 12px; }
.alert-table { min-width: 1320px; }
.remediation-rule-table { min-width: 1120px; }
.alert-tabs { min-width: 190px; }
.toolbar-note { color: var(--muted); font-size: 10px; white-space: nowrap; }
.task-link { max-width: 230px; padding: 0; display: grid; gap: 3px; color: var(--ink); background: transparent; border: 0; text-align: left; cursor: pointer; }
.task-link strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-link small { color: var(--muted); font-size: 9px; }
.task-link:hover strong { color: var(--green-dark); text-decoration: underline; }
.table-muted { color: var(--muted); font-size: 10px; }
.schema-editor.compact { min-height: 86px; }
.metric-trend-chart { height: 280px; padding: 22px 12px 0; display: flex; align-items: stretch; gap: 8px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.metric-trend-column { min-width: 42px; flex: 1 0 42px; display: grid; grid-template-rows: minmax(130px, 1fr) 20px 18px; align-items: end; text-align: center; }
.trend-bars { height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.trend-bars span { width: 11px; min-height: 3px; display: block; border-radius: 2px 2px 0 0; }
.trend-bars .target { background: #b8c3cd; }
.trend-bars .actual { background: var(--green); }
.trend-bars .actual.warning { background: var(--amber); }
.trend-bars .actual.critical { background: var(--red); }
.metric-trend-column strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
.metric-trend-column small { color: var(--muted); font-size: 8px; }
.trend-legend { padding: 12px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 9px; }
.trend-legend span { display: inline-flex; align-items: center; gap: 5px; }
.trend-legend i { width: 8px; height: 8px; display: inline-block; border-radius: 2px; }
.actual-dot { background: var(--green); }
.target-dot { background: #b8c3cd; }
.blocked-reason { max-width: 180px; display: inline-flex; align-items: center; gap: 4px; overflow: hidden; color: var(--red); text-overflow: ellipsis; white-space: nowrap; }
.blocked-reason svg { width: 12px; height: 12px; flex: 0 0 auto; }
.compact-check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.compact-check input { width: 14px; min-height: 14px; margin: 0; }
.segmented { height: 36px; padding: 3px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 2px; background: #edf1ef; border: 1px solid var(--line); border-radius: 5px; }
.segmented button { height: 28px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; border-radius: 3px; cursor: pointer; font-size: 11px; font-weight: 650; white-space: nowrap; }
.segmented button:hover { color: var(--ink); }
.segmented button.active { color: var(--ink); background: white; box-shadow: 0 1px 3px rgba(24, 32, 29, 0.12); }
.segmented button:disabled { color: #9aa59f; cursor: not-allowed; opacity: 0.7; }
.search-box { position: relative; width: min(290px, 100%); }
.search-box svg { position: absolute; left: 11px; top: 50%; width: 15px; color: var(--muted); transform: translateY(-50%); }
.search-box input { min-height: 36px; padding: 8px 10px 8px 35px; font-size: 11px; }
.customer-panel .toolbar select { width: auto; min-width: 128px; min-height: 36px; padding: 7px 28px 7px 9px; font-size: 10px; }
.customer-panel .search-box { flex: 0 0 230px; }
.organization-panel .toolbar select { width: auto; min-width: 124px; min-height: 36px; padding: 7px 28px 7px 9px; font-size: 10px; }
.organization-panel .search-box { flex: 0 0 230px; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { height: 52px; padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; white-space: nowrap; }
.data-table th { height: 42px; color: var(--muted); background: #fafbfa; font-weight: 650; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfb; }
.person-cell { display: flex; align-items: center; gap: 9px; }
.table-avatar { width: 30px; height: 30px; display: grid; place-items: center; color: #2c5e4a; background: #dcefe6; border-radius: 5px; font-size: 11px; font-weight: 750; }
.table-avatar svg { width: 15px; height: 15px; }
.person-cell div { display: grid; gap: 2px; }
.person-cell strong { font-size: 11px; }
.person-cell small { color: var(--muted); font-size: 9px; }
.table-actions { display: flex; gap: 4px; }
.table-actions .icon-button { width: 30px; height: 30px; }
.table-actions svg { width: 15px; }
.report-panel { min-width: 0; margin-top: 12px; overflow: hidden; }
.report-panel .toolbar-left { flex-wrap: wrap; overflow-x: visible; }
.report-panel .toolbar select { width: auto; min-width: 132px; min-height: 36px; padding: 7px 28px 7px 9px; font-size: 10px; }
.report-panel .toolbar input[type="date"] { width: auto; min-width: 136px; min-height: 36px; padding: 7px 9px; font-size: 10px; }
.report-panel .search-box { min-width: 190px; flex: 1 1 210px; }
.report-table { min-width: 980px; }
.report-schedule-table { min-width: 900px; }
.report-title-cell { min-width: 260px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; }
.report-title-cell > div { min-width: 0; display: grid; gap: 4px; }
.report-title-cell strong, .report-title-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-title-cell strong { font-size: 11px; }
.report-title-cell small { color: var(--muted); font-size: 9px; }
.report-file-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 5px; }
.report-file-icon svg { width: 16px; height: 16px; }
.status-toggle { width: 34px; height: 20px; display: inline-block; cursor: pointer; }
.status-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.status-toggle span { position: relative; width: 34px; height: 20px; display: block; background: #c8d0cc; border-radius: 10px; transition: background-color 150ms ease; }
.status-toggle span::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; content: ""; background: white; border-radius: 50%; box-shadow: 0 1px 3px rgba(20, 28, 24, 0.25); transition: transform 150ms ease; }
.status-toggle input:checked + span { background: var(--green); }
.status-toggle input:checked + span::after { transform: translateX(14px); }
.status-toggle input:disabled + span { opacity: 0.5; cursor: not-allowed; }
.report-detail { min-width: 0; display: grid; gap: 16px; }
.report-stat-band { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); background: #f7f9f8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.report-stat-band > div { min-width: 0; min-height: 84px; padding: 12px; display: grid; align-content: center; gap: 5px; border-right: 1px solid var(--line); }
.report-stat-band > div:last-child { border-right: 0; }
.report-stat-band span, .report-stat-band small { color: var(--muted); font-size: 8px; }
.report-stat-band strong { overflow-wrap: anywhere; font-size: 14px; }
.report-masked { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.report-masked svg { width: 13px; height: 13px; }
.report-detail-columns { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr); gap: 18px; align-items: start; }
.report-detail-section { min-width: 0; padding-top: 13px; border-top: 1px solid var(--line); }
.report-detail-section > header { min-height: 38px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.report-detail-section > header h3 { margin: 0; font-size: 12px; }
.report-detail-section > header p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.report-detail-table { min-width: 760px; }
.report-focus-list { display: grid; }
.report-focus-item { min-height: 62px; padding: 9px 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.report-focus-item:last-child { border-bottom: 0; }
.report-focus-item > div { min-width: 0; display: grid; gap: 4px; }
.report-focus-item strong, .report-focus-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-focus-item strong { font-size: 10px; }
.report-focus-item small { color: var(--muted); font-size: 8px; }
.money-value { font-variant-numeric: tabular-nums; }
.inline-icon { width: 12px; height: 12px; vertical-align: -2px; color: var(--muted); }
.compact-table th, .compact-table td { padding-left: 10px; padding-right: 10px; }
.relation-list { max-width: 210px; display: flex; flex-wrap: wrap; gap: 4px; }
.template-module-list { max-width: 300px; display: flex; flex-wrap: wrap; gap: 4px; }
.template-config-summary { padding: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; }
.template-config-summary span { display: grid; gap: 3px; color: var(--muted); font-size: 9px; }
.template-config-summary strong { color: var(--ink); font-size: 11px; }
.relation-chip { max-width: 100%; padding: 3px 6px; overflow: hidden; color: #315d4b; background: var(--green-soft); border-radius: 3px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.muted-text { color: var(--muted); font-size: 10px; }
.section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.role-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.role-card { min-height: 150px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.role-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.role-card-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 5px; }
.role-card-icon svg { width: 17px; }
.role-card h3 { margin: 12px 0 5px; font-size: 13px; }
.role-card p { min-height: 34px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.role-card footer { margin-top: 12px; padding-top: 11px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.role-card footer span { color: var(--muted); font-size: 10px; }
.text-button { padding: 4px 0; color: var(--green); background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 700; }
.integration-banner { padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fbfcfb; border-bottom: 1px solid var(--line); }
.integration-copy { display: flex; align-items: center; gap: 12px; }
.integration-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 6px; }
.integration-icon svg { width: 19px; }
.integration-copy h3 { margin: 0 0 4px; font-size: 13px; }
.integration-copy p { margin: 0; color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .field { margin: 0; }
.form-grid .full-span { grid-column: 1 / -1; }
.form-actions { padding-top: 16px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.evidence-workspace { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr); gap: 18px; }
.evidence-workspace.readonly { grid-template-columns: 1fr; }
.evidence-history, .evidence-entry { min-width: 0; }
.evidence-entry { padding-left: 18px; border-left: 1px solid var(--line); }
.evidence-section-head { min-height: 24px; margin-bottom: 8px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.evidence-list { max-height: 430px; overflow-y: auto; border-top: 1px solid var(--line); }
.evidence-item { min-width: 0; min-height: 88px; padding: 12px 2px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 10px; border-bottom: 1px solid var(--line); }
.evidence-type-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 5px; }
.evidence-type-icon svg { width: 16px; }
.evidence-item > div:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.evidence-item header { min-width: 0; display: flex; align-items: center; gap: 7px; }
.evidence-item header strong { min-width: 0; overflow-wrap: anywhere; font-size: 11px; }
.evidence-item p { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 9px; line-height: 1.5; }
.evidence-item footer { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 8px; }
.evidence-item > .table-actions { align-self: center; }
.checkbox-field { min-height: 42px; display: flex; align-items: center; gap: 8px; }
.checkbox-field input { width: 16px; min-height: 16px; margin: 0; }
.checkbox-field span { font-size: 11px; font-weight: 600; }
.form-section-label { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.current-links { display: grid; border: 1px solid var(--line); border-radius: 5px; }
.current-links > div { min-height: 48px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.current-links > div:last-child { border-bottom: 0; }
.current-links span { min-width: 0; display: grid; gap: 2px; }
.current-links strong { font-size: 11px; }
.current-links small { color: var(--muted); font-size: 9px; }
.current-links .table-actions { display: flex; flex: 0 0 auto; align-items: center; }
.current-links .table-actions .badge { min-width: auto; display: inline-flex; }
.permission-groups { display: grid; gap: 14px; }
.permission-group h3 { margin: 0 0 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.permission-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.permission-item { min-height: 62px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: white; border-bottom: 1px solid var(--line); }
.permission-item:nth-child(odd) { border-right: 1px solid var(--line); }
.permission-item:nth-last-child(-n+2) { border-bottom: 0; }
.permission-item div { min-width: 0; display: grid; gap: 3px; }
.permission-item strong { font-size: 11px; }
.permission-item code { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.check-result { min-height: 72px; margin-top: 14px; padding: 14px; display: flex; align-items: center; gap: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; }
.check-result-icon { width: 34px; height: 34px; display: grid; place-items: center; background: white; border-radius: 5px; }
.check-result div { display: grid; gap: 3px; }
.check-result strong { font-size: 12px; }
.check-result small { color: var(--muted); font-size: 10px; }
.system-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.system-item { min-height: 76px; padding: 14px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.system-item:nth-child(odd) { border-right: 1px solid var(--line); }
.system-item > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 5px; }
.system-item svg { width: 17px; }
.system-item div { display: grid; gap: 3px; }
.system-item strong { font-size: 11px; }
.system-item small { color: var(--muted); font-size: 9px; }
.demo-seed-panel { margin-top: 16px; }
.demo-seed-panel .panel-header > div:first-child { min-width: 0; }
.demo-seed-panel .panel-header h2 { margin: 3px 0 0; font-size: 16px; line-height: 1.35; }
.demo-seed-panel .panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.demo-seed-panel .panel-actions { display: flex; flex: 0 0 auto; }
.demo-seed-panel .system-list { border-top: 1px solid var(--line); }
.demo-seed-warning { margin: 12px 14px 14px; }
.source-name-cell { display: flex; align-items: center; gap: 9px; }
.source-name-cell > div { display: grid; gap: 3px; }
.source-name-cell code { color: var(--muted); font-size: 9px; }
.source-type-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 5px; }
.source-type-icon svg { width: 15px; }
.table-subtext { margin-top: 3px; display: block; color: var(--muted); font-size: 9px; }
.result-counts { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.success-text { color: var(--green); }
.danger-text { color: var(--red); }
.data-integration-panel { min-width: 0; overflow: hidden; }
.data-integration-panel .toolbar-left { flex-wrap: wrap; overflow-x: visible; }
.data-integration-panel .toolbar select { min-width: 126px; }
.data-integration-panel .search-box { min-width: 190px; flex: 1 1 210px; }
.data-source-table { min-width: 850px; }
.sync-job-table { min-width: 850px; }
.import-workspace { min-height: 360px; display: grid; grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr); }
.import-controls { padding: 20px; border-right: 1px solid var(--line); }
.import-entity-tabs { margin-bottom: 18px; }
.import-actions { padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.import-result { min-width: 0; padding: 20px; }
.import-placeholder { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); }
.import-placeholder svg { width: 30px; height: 30px; }
.import-placeholder span { font-size: 11px; }
.import-result-head { min-height: 72px; display: grid; grid-template-columns: repeat(3, minmax(64px, 1fr)) auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.import-result-head > div { display: grid; gap: 3px; }
.import-result-head strong { font-size: 18px; }
.import-result-head span:not(.badge) { color: var(--muted); font-size: 9px; }
.import-mapping { padding: 14px 0; display: grid; gap: 9px; border-bottom: 1px solid var(--line); }
.import-mapping > span { color: var(--muted); font-size: 9px; font-weight: 700; }
.import-mapping > div { display: flex; flex-wrap: wrap; gap: 6px; }
.import-mapping code { max-width: 100%; padding: 4px 7px; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-soft); color: var(--text); font-size: 9px; }
.import-ready { min-height: 160px; margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--green); font-size: 11px; font-weight: 650; }
.import-ready svg { width: 17px; }
.field-note { margin-top: -3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.security-note { padding: 11px 12px; display: flex; align-items: flex-start; gap: 9px; color: #315d4b; background: var(--green-soft); border: 1px solid #cce8db; border-radius: 5px; font-size: 10px; line-height: 1.5; }
.security-note.warning { color: #7a4b0b; background: var(--amber-soft); border-color: #ecd4a8; }
.security-note svg { width: 16px; height: 16px; flex: 0 0 16px; }
.ai-workspace { display: grid; grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr); gap: 12px; align-items: start; }
.ai-query-panel { position: sticky; top: 84px; }
.ai-query-panel [hidden] { display: none; }
.ai-result-panel { min-height: 520px; overflow: hidden; }
.ai-placeholder { min-height: 518px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); }
.ai-placeholder svg { width: 28px; height: 28px; }
.ai-placeholder strong { color: var(--ink); font-size: 13px; }
.ai-placeholder span { font-size: 10px; }
.ai-result-head { min-height: 62px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.ai-result-head > div { display: grid; gap: 3px; }
.ai-result-head strong { font-size: 13px; }
.ai-result-head span:not(.badge) { color: var(--muted); font-size: 9px; }
.ai-result-body { max-height: 590px; padding: 14px; overflow: auto; }
.ai-object { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ai-object.nested { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
.ai-field { min-width: 0; min-height: 58px; padding: 10px 11px; display: grid; align-content: center; gap: 5px; background: #fafbfa; border: 1px solid var(--line); border-radius: 5px; }
.ai-field.wide { grid-column: 1 / -1; background: white; }
.ai-field > span { color: var(--muted); font-size: 9px; }
.ai-field > strong { overflow-wrap: anywhere; font-size: 11px; font-weight: 650; }
.ai-array { display: grid; gap: 7px; }
.ai-array > article { position: relative; min-width: 0; padding: 10px 10px 10px 38px; border: 1px solid var(--line); border-radius: 5px; }
.ai-array-index { position: absolute; top: 10px; left: 10px; width: 19px; height: 19px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 4px; font-size: 8px; font-weight: 750; }
.ai-empty { min-height: 58px; display: grid; place-items: center; color: var(--muted); font-size: 10px; }
.ai-metadata { padding: 12px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: #f7f9f8; border-top: 1px solid var(--line); }
.ai-metadata > div { min-width: 0; display: grid; gap: 4px; }
.ai-metadata > div.wide { grid-column: 1 / -1; }
.ai-metadata span { color: var(--muted); font-size: 8px; }
.ai-metadata strong, .ai-metadata code { overflow-wrap: anywhere; font-size: 9px; font-weight: 650; }
.token-list { display: grid; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.token-list > div:not(.empty-state) { min-height: 58px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.token-list > div:last-child { border-bottom: 0; }
.token-list > div > span:first-child { min-width: 0; display: grid; gap: 4px; }
.token-list strong { font-size: 11px; }
.token-list small { color: var(--muted); font-size: 9px; }
.compact-empty { min-height: 140px; }
.token-reveal { padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; gap: 8px; background: #f7f9f8; border: 1px solid var(--line); border-radius: 5px; }
.token-reveal code { min-width: 0; overflow-wrap: anywhere; font-size: 10px; line-height: 1.55; }
.job-summary { min-height: 70px; display: grid; grid-template-columns: auto repeat(4, minmax(62px, 1fr)); align-items: center; gap: 12px; }
.job-summary > div { display: grid; gap: 3px; }
.job-summary strong { font-size: 16px; }
.job-summary small { color: var(--muted); font-size: 9px; }
.mcp-connection-list { display: grid; gap: 12px; }
.mcp-connection-panel { overflow: hidden; }
.mcp-connection-actions { display: flex; align-items: center; gap: 7px; }
.mcp-connection-meta { min-height: 46px; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--muted); background: #fafbfa; border-bottom: 1px solid var(--line); font-size: 9px; }
.mcp-connection-meta strong { color: var(--ink); font-size: 11px; }
.mcp-connection-panel .integration-copy p { max-width: min(660px, 60vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcp-resources { border-top: 1px solid var(--line); }
.mcp-resources summary { padding: 11px 16px; color: var(--muted); background: #fafbfa; cursor: pointer; font-size: 10px; font-weight: 700; }
.mcp-view-toolbar { min-height: 52px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.mcp-sync-panel { overflow: hidden; }
.mcp-sync-policy-table { min-width: 1240px; }
.mcp-sync-run-table { min-width: 1040px; }
.mcp-sync-policy-table td:nth-child(1), .mcp-sync-policy-table td:nth-child(2) { min-width: 150px; }
.mcp-sync-policy-table td:nth-child(7) { max-width: 190px; }
.mcp-event-panel { overflow: hidden; }
.mcp-event-section-head { min-height: 48px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fafbfa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mcp-event-section-head > div { display: grid; gap: 2px; }
.mcp-event-section-head strong { font-size: 10px; }
.mcp-event-section-head small { color: var(--muted); font-size: 8px; }
.mcp-event-subscription-table { min-width: 1240px; }
.mcp-event-receipt-table { min-width: 1080px; }
.event-endpoint { max-width: 230px; display: inline-block; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.compact-icon { width: 26px; height: 26px; margin-left: 4px; }
.event-detail-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 12px; }
.sync-run-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sync-run-meta span { min-width: 0; padding: 10px 12px; display: grid; gap: 4px; background: #f7f9f8; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 9px; }
.sync-run-meta span:last-child { grid-column: 1 / -1; }
.sync-run-meta strong { color: var(--ink); font-size: 9px; }
.sync-run-meta code { overflow-wrap: anywhere; color: var(--ink); font-size: 9px; }
.skeleton { min-height: 14px; background: #e9eeeb; border-radius: 3px; animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: 0.5; } }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(16, 24, 20, 0.48); }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.modal.wide { width: min(980px, 100%); }
.modal-header { min-height: 68px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-header p { margin: 0 0 3px; color: var(--muted); font-size: 10px; }
.modal-header h2 { margin: 0; font-size: 16px; }
.modal-body { max-height: calc(100vh - 109px); padding: 18px; display: grid; gap: 16px; overflow-y: auto; }
.employee-profile { min-width: 0; display: grid; gap: 18px; }
.profile-identity { display: grid; grid-template-columns: 58px minmax(210px, 0.9fr) minmax(330px, 1.1fr); align-items: center; gap: 14px; }
.profile-avatar { width: 58px; height: 58px; display: grid; place-items: center; color: white; background: #285c48; border-radius: 6px; font-size: 20px; font-weight: 750; }
.profile-name { min-width: 0; display: grid; gap: 5px; }
.profile-name > div { display: flex; align-items: center; gap: 8px; }
.profile-name h3 { margin: 0; overflow-wrap: anywhere; font-size: 18px; }
.profile-name p, .profile-name > span { margin: 0; color: var(--muted); font-size: 10px; }
.profile-contact { margin: 0; padding-left: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; border-left: 1px solid var(--line); }
.profile-contact div { min-width: 0; display: grid; gap: 3px; }
.profile-contact dt { color: var(--muted); font-size: 8px; }
.profile-contact dd { margin: 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 650; }
.profile-stat-band { display: grid; grid-template-columns: repeat(4, minmax(92px, 0.7fr)) minmax(210px, 1.4fr); background: #f6f8f7; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-stat-band > div { min-width: 0; min-height: 76px; padding: 12px; display: grid; align-content: center; gap: 4px; border-right: 1px solid var(--line); }
.profile-stat-band > div:last-child { border-right: 0; }
.profile-stat-band span, .profile-stat-band small { color: var(--muted); font-size: 8px; }
.profile-stat-band strong { overflow-wrap: anywhere; font-size: 16px; }
.profile-stat-band .cost-stat strong { font-size: 12px; }
.profile-masked { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 650; }
.profile-masked svg { width: 13px; }
.profile-columns { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.profile-section { min-width: 0; padding-top: 13px; border-top: 1px solid var(--line); }
.profile-section > header { min-height: 30px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.profile-section > header h3 { margin: 0; font-size: 12px; }
.profile-section > header span { color: var(--muted); font-size: 9px; }
.profile-record { min-height: 58px; padding: 9px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(154px, auto); align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.profile-record:last-child { border-bottom: 0; }
.profile-record > div:first-child { min-width: 0; display: grid; gap: 5px; }
.profile-record strong { overflow-wrap: anywhere; font-size: 10px; }
.profile-record small { overflow-wrap: anywhere; color: var(--muted); font-size: 8px; line-height: 1.5; }
.profile-record-side { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.profile-record-side .progress-wrap { width: 122px; }
.profile-empty { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 9px; }
.profile-empty svg { width: 13px; }
.profile-output { min-height: 52px; padding: 9px 0; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.profile-output:last-child { border-bottom: 0; }
.profile-output > svg { width: 15px; color: var(--blue); }
.profile-output > div { min-width: 0; display: grid; gap: 4px; }
.profile-output strong, .profile-output a { overflow-wrap: anywhere; color: var(--ink); font-size: 10px; font-weight: 650; text-decoration: none; }
.profile-output a:hover { color: var(--blue); text-decoration: underline; }
.profile-output small { overflow-wrap: anywhere; color: var(--muted); font-size: 8px; }
.profile-updated { margin-right: auto; align-self: center; color: var(--muted); font-size: 8px; }
.department-detail-head { margin-bottom: 12px; background: white; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.department-detail-head .page-intro { margin: 0; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.department-detail-identity { min-height: 86px; padding: 14px 20px; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 16px; background: #fafbfa; }
.department-detail-icon { width: 46px; height: 46px; display: grid; place-items: center; color: white; background: #285c48; border-radius: 6px; }
.department-detail-icon svg { width: 21px; height: 21px; }
.department-detail-identity dl { margin: 0; display: grid; grid-template-columns: repeat(6, minmax(90px, 1fr)); gap: 12px; }
.department-detail-identity dl div { min-width: 0; display: grid; gap: 4px; }
.department-detail-identity dt { color: var(--muted); font-size: 8px; }
.department-detail-identity dd { margin: 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 650; }
.department-detail-navigation { min-width: 0; min-height: 52px; margin-top: 12px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.department-detail-navigation > span { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.department-detail-tabs { min-width: 0; height: auto; }
.department-detail-tabs button { white-space: nowrap; }
.department-detail-content { min-width: 0; margin-top: 12px; display: grid; gap: 12px; }
.aigc-dashboard-panel { overflow: hidden; }
.aigc-stat-band { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #f7f9f8; border-bottom: 1px solid var(--line); }
.aigc-stat-band > div { min-width: 0; min-height: 92px; padding: 14px 16px; display: grid; align-content: center; gap: 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.aigc-stat-band > div:nth-child(4n) { border-right: 0; }
.aigc-stat-band > div:nth-last-child(-n+4) { border-bottom: 0; }
.aigc-stat-band span, .aigc-stat-band small { color: var(--muted); font-size: 9px; }
.aigc-stat-band strong { overflow-wrap: anywhere; font-size: 19px; font-variant-numeric: tabular-nums; }
.aigc-dashboard-body { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr); }
.aigc-dashboard-body > section { min-width: 0; }
.aigc-dashboard-body > section + section { border-left: 1px solid var(--line); }
.aigc-dashboard-body > section > header { min-height: 56px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.aigc-dashboard-body h4 { margin: 0; font-size: 12px; }
.aigc-dashboard-body header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.aigc-dashboard-body > section:first-child .data-table-wrap { max-height: 390px; overflow: auto; }
.aigc-trend-table { min-width: 610px; }
.aigc-kr-list { max-height: 390px; padding: 0 16px; overflow-y: auto; }
.aigc-kr-row { min-width: 0; min-height: 78px; padding: 12px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 0.7fr); align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.aigc-kr-row:last-child { border-bottom: 0; }
.aigc-kr-row > div { min-width: 0; display: grid; gap: 5px; }
.aigc-kr-row strong, .aigc-kr-row small { overflow-wrap: anywhere; }
.aigc-kr-row strong { font-size: 10px; }
.aigc-kr-row small, .aigc-kr-row > div:last-child > span { color: var(--muted); font-size: 8px; }
.department-detail-lower { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.department-result-list { display: grid; }
.department-result { min-height: 64px; padding: 10px 0; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.department-result:last-child { border-bottom: 0; }
.department-result > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 5px; }
.department-result > span:first-child svg { width: 16px; }
.department-result > div { min-width: 0; display: grid; gap: 4px; }
.department-result strong { overflow-wrap: anywhere; font-size: 10px; }
.department-result small { overflow-wrap: anywhere; color: var(--muted); font-size: 8px; line-height: 1.45; }
.department-objective-list { display: grid; }
.department-objective { min-width: 0; border-bottom: 1px solid var(--line); }
.department-objective:last-child { border-bottom: 0; }
.department-objective > header { min-height: 78px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fafbfa; }
.department-objective > header > div { min-width: 0; display: grid; gap: 5px; }
.department-objective > header > div:last-child { min-width: 230px; grid-template-columns: minmax(140px, 1fr) auto; align-items: center; }
.department-objective > header strong { overflow-wrap: anywhere; font-size: 12px; }
.department-objective > header small { overflow-wrap: anywhere; color: var(--muted); font-size: 9px; }
.department-value-metrics { margin-bottom: 0; }
.department-value-panel { margin-top: 0; }
.department-people-table { min-width: 1180px; }
.department-people-toolbar { min-width: 0; padding-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.department-people-toolbar .search-box { width: min(420px, 100%); }
.department-roster-list { max-height: 390px; overflow-y: auto; }
.department-roster-person { min-width: 0; min-height: 62px; padding: 9px 2px; display: grid; grid-template-columns: minmax(230px, 1.45fr) minmax(130px, 0.8fr) minmax(110px, 0.55fr) 36px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.department-roster-person:last-child { border-bottom: 0; }
.department-roster-person > span { min-width: 0; display: grid; gap: 4px; }
.department-roster-person > span small { color: var(--muted); font-size: 8px; }
.department-roster-person > span strong { overflow-wrap: anywhere; font-size: 10px; }
.department-roster-person[hidden] { display: none; }
.department-cost-panel .panel-header { align-items: center; }
.department-cost-table { min-width: 690px; }
.department-cost-table th:nth-child(1) { width: 150px; }
.department-cost-table th:nth-child(3) { width: 160px; }
.department-cost-table th:nth-child(4) { width: 190px; }
.department-cost-table th:nth-child(5) { width: 80px; }
.cost-type-cell { display: flex; align-items: center; gap: 8px; }
.cost-type-cell svg { width: 15px; height: 15px; color: var(--primary); }
.negative-amount { color: var(--danger); font-weight: 700; }
.cost-share-cell { display: grid; grid-template-columns: 42px minmax(80px, 1fr); align-items: center; gap: 8px; }
.cost-share-cell > span { color: var(--muted); font-variant-numeric: tabular-nums; }
.cost-share-cell > i { width: 100%; height: 6px; overflow: hidden; background: #e7ece9; border-radius: 3px; }
.cost-share-cell > i > b { display: block; height: 100%; background: #2f8d68; border-radius: inherit; }
.compact-button { min-height: 32px; padding: 6px 10px; }
.searchable-select { display: grid; gap: 7px; }
.searchable-select .search-box { width: 100%; }
.searchable-select .search-box input { width: 100%; }
.manager-picker-field { align-self: start; }
.department-project-table { min-width: 880px; }
.department-deliverable-table { min-width: 1120px; }
.audit-workspace { min-width: 0; overflow: hidden; }
.audit-workspace .panel-header { min-height: 64px; }
.audit-filter { padding: 14px 16px; display: grid; grid-template-columns: 140px 140px minmax(210px, 1fr) 150px auto; align-items: end; gap: 10px; background: #fafbfa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audit-filter .field { gap: 5px; }
.audit-filter .field input, .audit-filter .field select { min-height: 36px; }
.audit-filter .button { height: 36px; }
.audit-table { min-width: 1050px; }
.audit-actor { min-width: 108px; display: grid; gap: 4px; }
.audit-actor strong { font-size: 10px; }
.audit-actor small { color: var(--muted); font-size: 8px; }
.audit-trace { color: var(--muted); font-size: 9px; }
.audit-pagination, .table-pagination { min-height: 54px; padding: 9px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); background: #fafbfa; border-top: 1px solid var(--line); font-size: 9px; }
.audit-pagination > div, .table-pagination > div { display: flex; align-items: center; gap: 6px; }
.audit-detail { min-width: 0; display: grid; gap: 14px; }
.audit-detail-meta { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.audit-detail-meta div { min-width: 0; min-height: 64px; padding: 10px 12px; display: grid; align-content: center; gap: 4px; background: #fafbfa; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audit-detail-meta div:nth-child(4n) { border-right: 0; }
.audit-detail-meta div:nth-last-child(-n+4) { border-bottom: 0; }
.audit-detail-meta dt { color: var(--muted); font-size: 8px; }
.audit-detail-meta dd { margin: 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 650; }
.audit-data-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.audit-json-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.audit-json-panel header { min-height: 38px; padding: 9px 11px; display: flex; align-items: center; background: #f6f8f7; border-bottom: 1px solid var(--line); }
.audit-json-panel header strong { font-size: 10px; }
.audit-json-panel pre { min-height: 160px; max-height: 320px; margin: 0; padding: 12px; overflow: auto; color: #304038; background: #fcfdfc; font-size: 9px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.data-quality-panel { min-width: 0; overflow: hidden; }
.data-quality-panel .toolbar-left { flex-wrap: wrap; overflow-x: visible; }
.data-quality-panel .toolbar select { width: auto; min-width: 132px; min-height: 36px; padding: 7px 28px 7px 9px; font-size: 10px; }
.data-quality-panel .search-box { min-width: 180px; flex: 1 1 180px; }
.data-quality-table { min-width: 1280px; }
.quality-issue-title { min-width: 190px; display: grid; gap: 4px; }
.quality-issue-title strong { overflow-wrap: anywhere; font-size: 10px; }
.quality-issue-title small { color: var(--muted); font-size: 8px; }
.quality-description { min-width: 0; padding: 12px 14px; display: grid; gap: 5px; background: #f6f8f7; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quality-description strong { overflow-wrap: anywhere; font-size: 10px; line-height: 1.55; }
.quality-description span { color: var(--muted); font-size: 8px; }
.toast-region { position: fixed; z-index: 200; top: 16px; right: 16px; width: min(340px, calc(100vw - 32px)); display: grid; gap: 8px; }
.toast { min-height: 48px; padding: 11px 13px; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 9px; color: #fff; background: #26312c; border-radius: 6px; box-shadow: var(--shadow); font-size: 11px; animation: toast-in 180ms ease-out; }
.toast.error { background: #7b302c; }
.toast svg { width: 17px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-5px); } }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .department-operating-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .operating-grid { grid-template-columns: 1fr; }
  .role-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: 1fr; }
  .deliverable-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-definition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .import-workspace { grid-template-columns: 1fr; }
  .ai-workspace { grid-template-columns: 1fr; }
  .ai-query-panel { position: static; }
  .import-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .department-detail-identity dl { grid-template-columns: repeat(3, minmax(90px, 1fr)); }
  .aigc-dashboard-body { grid-template-columns: 1fr; }
  .aigc-dashboard-body > section + section { border-top: 1px solid var(--line); border-left: 0; }
  .department-detail-lower { grid-template-columns: 1fr; }
  .business-segment-band { grid-template-columns: 1.2fr 0.9fr; }
  .business-segment-total { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .business-segment-band > .business-segment-secondary { border-right: 0; }
  .audit-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-workspace { grid-template-columns: 1fr; }
  .evidence-entry { padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .report-stat-band { grid-template-columns: repeat(3, minmax(110px, 1fr)); }
  .report-stat-band > div:nth-child(3) { border-right: 0; }
  .report-stat-band > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .report-detail-columns { grid-template-columns: 1fr; }
  .audit-keyword { grid-column: 1 / -1; }
  .audit-filter .button { justify-self: end; }
}

@media (max-width: 800px) {
  .mobile-only { display: grid !important; }
  .login-screen { grid-template-columns: 1fr; }
  .login-brand { min-height: auto; padding: 24px; border-right: 0; }
  .login-context { padding: 56px 0 36px; }
  .login-context h1 { font-size: 34px; }
  .login-facts { margin-top: 34px; }
  .login-version { display: none; }
  .login-panel { padding: 38px 24px 50px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform 180ms ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 25; inset: 0; display: none; background: rgba(16,24,20,0.42); }
  .sidebar.open + .sidebar-scrim { display: block; }
  .workspace { grid-column: 1; }
  .topbar { padding: 0 16px; }
  .global-search-panel { position: fixed; top: 62px; right: 12px; left: 12px; width: auto; max-height: calc(100vh - 74px); }
  .global-search-results { max-height: calc(100vh - 132px); }
  .content { padding: 20px 16px 32px; }
  .account-copy, .account-button > svg { display: none; }
  .page-intro { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions { flex-wrap: wrap; }
  .dashboard-department-select { flex: 1; width: auto; }
  .page-actions .button { flex: 1; }
  .section-grid, .system-list { grid-template-columns: 1fr; }
  .system-item:nth-child(odd) { border-right: 0; }
  .permission-list { grid-template-columns: 1fr; }
  .permission-item:nth-child(odd) { border-right: 0; }
  .permission-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .permission-item:last-child { border-bottom: 0; }
  .profile-identity { grid-template-columns: 58px minmax(0, 1fr); }
  .profile-contact { grid-column: 1 / -1; padding: 12px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .profile-stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-stat-band > div { border-bottom: 1px solid var(--line); }
  .profile-stat-band > div:nth-child(2n) { border-right: 0; }
  .profile-stat-band > div:nth-last-child(-n+2) { border-bottom: 0; }
  .profile-stat-band .cost-stat { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .profile-columns { grid-template-columns: 1fr; }
  .department-detail-head .page-intro { padding: 16px; }
  .department-detail-identity { padding: 14px 16px; grid-template-columns: 40px minmax(0, 1fr); align-items: start; }
  .department-detail-icon { width: 40px; height: 40px; }
  .department-detail-identity dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .department-detail-navigation { align-items: flex-start; flex-direction: column; }
  .department-detail-tabs { max-width: 100%; overflow-x: auto; }
  .department-objective > header { align-items: stretch; flex-direction: column; }
  .department-objective > header > div:last-child { min-width: 0; }
  .audit-workspace .panel-header { align-items: flex-start; flex-direction: column; }
  .audit-tabs { max-width: 100%; }
  .audit-detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-detail-meta div:nth-child(4n) { border-right: 1px solid var(--line); }
  .audit-detail-meta div:nth-child(2n) { border-right: 0; }
  .audit-detail-meta div:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .audit-detail-meta div:nth-last-child(-n+2) { border-bottom: 0; }
  .report-stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-stat-band > div:nth-child(3) { border-right: 1px solid var(--line); }
  .report-stat-band > div:nth-child(2n) { border-right: 0; }
  .report-stat-band > div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .report-tabs { overflow-x: auto; }
  .data-quality-panel .toolbar-left { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .login-brand { padding: 20px; }
  .login-context { padding: 42px 0 24px; }
  .login-context h1 { font-size: 29px; }
  .login-facts { grid-template-columns: 1fr; gap: 13px; padding-top: 18px; }
  .login-facts div { padding: 0; }
  .login-facts dt { margin-bottom: 2px; }
  .metric-grid, .role-list, .form-grid { grid-template-columns: 1fr; }
  .metric-grid.org-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid.alert-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid.overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .department-operating-grid { grid-template-columns: 1fr; }
  .department-operating-section > header { align-items: flex-start; }
  .overview-metrics .metric { min-height: 112px; padding: 14px; }
  .overview-metrics .metric strong { font-size: 19px; }
  .dashboard-period-tabs, .month-control, .dashboard-department-select { width: 100%; }
  .month-control input { width: 100%; }
  .operating-trend-chart { height: 220px; padding-left: 8px; padding-right: 8px; gap: 5px; }
  .operating-trend-bars { gap: 2px; }
  .department-performance-panel .panel-header { align-items: flex-start; flex-direction: column; }
  .ai-object, .ai-object.nested, .ai-metadata { grid-template-columns: 1fr; }
  .ai-field.wide, .ai-metadata > div.wide { grid-column: auto; }
  .topbar { height: 64px; }
  .topbar { padding: 0 10px; }
  .topbar-left { gap: 5px; }
  .topbar-left p { display: none; }
  .topbar-left h1 { max-width: 92px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions { gap: 1px; }
  .topbar-actions .icon-button { width: 31px; height: 31px; }
  #refresh-button, .topbar-divider { display: none; }
  .user-avatar { width: 30px; height: 30px; flex-basis: 30px; }
  .context-navigation { margin-bottom: 12px; }
  .context-navigation button { min-height: 36px; padding-right: 8px; padding-left: 8px; font-size: 9px; }
  .content { min-height: calc(100vh - 64px); }
  .page-actions { flex-direction: column; align-items: stretch; }
  .quarter-control, .quarter-control select { width: 100%; }
  .objective-progress { grid-template-columns: 1fr; gap: 7px; }
  .okr-progress-layout { grid-template-columns: 1fr; }
  .okr-checkin-timeline { max-height: 300px; }
  .okr-card-head { align-items: stretch; flex-direction: column; }
  .okr-card-actions { justify-content: flex-end; }
  .project-card > header { flex-direction: column; }
  .project-progress { grid-template-columns: 1fr; gap: 7px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-left { align-items: stretch; flex-direction: column; }
  .toolbar-note { white-space: normal; }
  .report-stat-band { grid-template-columns: 1fr; }
  .report-stat-band > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .report-stat-band > div:last-child { border-bottom: 0; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .search-box { width: 100%; }
  .customer-panel .search-box { flex-basis: auto; }
  .okr-filter-panel .search-box { flex-basis: auto; }
  .organization-panel .toolbar select { width: 100%; }
  .organization-panel .search-box { flex-basis: auto; }
  .data-integration-panel .toolbar select { width: 100%; }
  .data-integration-panel .search-box { min-width: 0; flex: 0 0 auto; }
  .data-source-table .empty-state { position: sticky; left: 14px; width: calc(100vw - 62px); }
  .report-panel .toolbar select, .report-panel .toolbar input[type="date"] { width: 100%; }
  .report-panel .search-box { min-width: 0; flex: 0 0 auto; }
  .report-table .empty-state { position: sticky; left: 14px; width: calc(100vw - 62px); }
  .integration-banner { align-items: flex-start; flex-direction: column; }
  .mcp-connection-panel .panel-header { align-items: flex-start; flex-direction: column; }
  .demo-seed-panel .panel-header { align-items: stretch; flex-direction: column; }
  .demo-seed-panel .panel-actions, .demo-seed-panel .panel-actions .button { width: 100%; }
  .mcp-connection-actions { width: 100%; justify-content: flex-end; }
  .mcp-connection-panel .integration-copy p { max-width: 70vw; }
  .mcp-view-toolbar { align-items: stretch; flex-direction: column; }
  .mcp-view-toolbar > .badge { align-self: flex-start; }
  .mcp-tabs { max-width: 100%; overflow-x: auto; }
  .mcp-tabs button { flex: 0 0 auto; }
  .sync-run-meta { grid-template-columns: 1fr; }
  .sync-run-meta span:last-child { grid-column: auto; }
  .event-detail-grid { grid-template-columns: 1fr; }
  .form-grid .full-span { grid-column: auto; }
  .deliverable-type-grid, .check-grid { grid-template-columns: 1fr; }
  .metric-definition-grid { grid-template-columns: 1fr; }
  .import-result-head { grid-template-columns: repeat(3, 1fr); }
  .import-result-head > .badge { grid-column: 1 / -1; justify-self: start; }
  .job-summary { grid-template-columns: repeat(2, 1fr); }
  .job-summary > .badge { grid-column: 1 / -1; justify-self: start; }
  .modal-backdrop { padding: 8px; }
  .modal { max-height: calc(100vh - 16px); }
  .modal-body { max-height: calc(100vh - 85px); padding: 14px; }
  .modal-body[data-type="entity-evidence"] > .form-actions { position: sticky; z-index: 2; bottom: 0; background: white; }
  .profile-contact { grid-template-columns: 1fr; }
  .profile-record { grid-template-columns: 1fr; gap: 7px; }
  .profile-record-side { justify-content: space-between; }
  .profile-record-side .progress-wrap { width: min(170px, 66%); }
  .profile-stat-band > div { min-height: 68px; }
  .profile-stat-band .cost-stat { grid-column: 1 / -1; }
  .department-detail-metrics, .department-value-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aigc-stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aigc-stat-band > div:nth-child(4n) { border-right: 1px solid var(--line); }
  .aigc-stat-band > div:nth-child(2n) { border-right: 0; }
  .aigc-stat-band > div:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .aigc-stat-band > div:nth-last-child(-n+2) { border-bottom: 0; }
  .aigc-kr-row { grid-template-columns: 1fr; }
  .department-detail-identity { grid-template-columns: 1fr; }
  .department-detail-tabs { width: 100%; }
  .department-detail-tabs button { flex: 0 0 auto; }
  .business-segment-band { grid-template-columns: 1fr; }
  .business-segment-band > div { min-height: 78px; border-right: 0; border-bottom: 1px solid var(--line); }
  .business-segment-band > div:last-child { border-bottom: 0; }
  .business-segment-total { grid-column: auto; border-top: 0; }
  .department-people-toolbar { align-items: stretch; flex-direction: column; }
  .department-people-toolbar .badge { align-self: flex-start; }
  .department-roster-person { grid-template-columns: minmax(0, 1fr) 36px; }
  .department-roster-person > span { grid-column: 1; }
  .department-roster-person > .icon-button { grid-column: 2; grid-row: 1; }
  .department-result { grid-template-columns: 32px minmax(0, 1fr); }
  .department-result > .badge { grid-column: 2; justify-self: start; }
  .department-objective > header > div:last-child { grid-template-columns: 1fr; }
  .audit-filter { grid-template-columns: 1fr; }
  .audit-keyword { grid-column: auto; }
  .audit-filter .button { width: 100%; justify-self: stretch; }
  .audit-tabs { width: 100%; overflow-x: auto; }
  .audit-tabs button { flex: 0 0 auto; }
  .audit-data-grid { grid-template-columns: 1fr; }
  .audit-pagination, .table-pagination { align-items: flex-start; }
  .data-quality-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-quality-panel .toolbar select { width: 100%; }
  .data-quality-panel .search-box { min-width: 0; flex: 0 0 auto; }
  .metric-panel .toolbar select { width: 100%; }
  .metric-panel .search-box { min-width: 0; flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* 我的工作台 */
.button.compact { padding: 6px 12px; font-size: 12px; }
.workspace-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 16px; }
.workspace-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.workspace-card.pending { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.workspace-card header h3 { margin: 8px 0 4px; font-size: 14px; line-height: 1.4; }
.workspace-card-objective { color: var(--muted); font-size: 12px; margin: 0; }
.workspace-card-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.workspace-card-progress { display: flex; align-items: center; gap: 10px; }
.workspace-card-progress strong { font-size: 15px; }
.workspace-card-progress small { color: var(--muted); white-space: nowrap; }
.workspace-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: auto; }
.workspace-task { margin-top: 16px; }
.workspace-task.escalated { border-color: var(--danger, #d4380d); }
.workspace-task-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.workspace-task-header h3 { margin: 0 0 4px; font-size: 15px; }
.workspace-task-header p { margin: 0; color: var(--muted); font-size: 12px; }
.workspace-task-items { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.workspace-task-items li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.workspace-task-items li.done { opacity: 0.6; }
.workspace-task-item-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

@media (max-width: 560px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-card footer { flex-direction: column; align-items: stretch; }
  .workspace-card footer .button { width: 100%; justify-content: center; }
  .workspace-task-items li { flex-direction: column; align-items: flex-start; }
}

/* ===== lead-daily focus mode ===== */
body.ld-focus .app-shell { grid-template-columns: 1fr; }
body.ld-focus .workspace { grid-column: 1; }
body.ld-focus .sidebar { transform: translateX(-102%); transition: transform 0.18s ease; }
body.ld-focus .sidebar.open { transform: none; }
body.ld-focus .mobile-only { display: grid !important; }
body.ld-focus .sidebar-scrim { display: none; }
body.ld-focus .sidebar.open ~ .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(15, 20, 17, 0.4); }

/* ===== cash balance popover ===== */
.cash-balance-panel { position: absolute; z-index: 42; top: calc(100% + 10px); right: 0; min-width: 216px; padding: 13px 15px; display: flex; flex-direction: column; gap: 4px; background: white; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.cash-balance-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.cash-balance-label svg { width: 13px; }
.cash-balance-panel strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.cash-balance-panel small { color: var(--muted); font-size: 9px; }
/* ===== cash balance popover END ===== */
