:root {
  --bg: #eef3f8;
  --ink: #111827;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #dbe3ee;
  --panel: rgba(255,255,255,.9);
  --blue: #2563eb;
  --cyan: #0f766e;
  --purple: #6d5bd0;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --soft-blue: #eaf2ff;
  --soft-purple: #f1e8ff;
  --soft-green: #e7f8ee;
  --soft-red: #ffe8e8;
  --shadow: 0 20px 70px rgba(15,23,42,.12);
  --day: 62px;
  --lane: 172px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% -8%, rgba(37,99,235,.10), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(15,118,110,.08), transparent 24%),
    var(--bg);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .18s ease; }
.app.sidebar-collapsed { grid-template-columns: 74px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: #0f172a; color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px; overflow: hidden; }
.sidebar-toggle { position: absolute; top: 18px; right: 10px; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.06); color: #cbd5e1; display: grid; place-items: center; font-size: 20px; line-height: 1; }
.sidebar-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
.brand { display: flex; gap: 12px; align-items: center; padding: 4px 8px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; background: linear-gradient(135deg,#22c55e,#2563eb); }
.brand-text { min-width: 0; }
.brand strong { display: block; font-size: 15px; }
.brand span { color: #9ca3af; font-size: 12px; }
.nav { display: grid; gap: 6px; }
.nav a { border: 0; min-height: 42px; border-radius: 8px; background: transparent; color: #cbd5e1; display: flex; align-items: center; gap: 10px; padding: 0 12px; text-decoration: none; }
.nav a.active { background: #1e293b; color: #fff; box-shadow: inset 3px 0 0 #38bdf8; }
.nav svg { width: 17px; height: 17px; stroke-width: 2; }
.nav-mark { width: 24px; height: 24px; border-radius: 8px; background: rgba(255,255,255,.08); display: none; place-items: center; font-size: 12px; font-weight: 900; flex: 0 0 auto; }
.side-card { margin-top: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 12px; color: #cbd5e1; font-size: 12px; background: rgba(255,255,255,.04); display: grid; gap: 8px; }
.sidebar-collapsed .sidebar { padding: 22px 12px; align-items: center; }
.sidebar-collapsed .brand { padding: 34px 0 14px; justify-content: center; width: 100%; }
.sidebar-collapsed .brand-text, .sidebar-collapsed .nav-label, .sidebar-collapsed .side-card { display: none; }
.sidebar-collapsed .nav { width: 100%; }
.sidebar-collapsed .nav a { justify-content: center; padding: 0; }
.sidebar-collapsed .nav-mark { display: grid; }
.sidebar-collapsed .nav a.active { box-shadow: inset 3px 0 0 #38bdf8; }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #22c55e; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; padding: 18px 28px 14px; background: rgba(248,250,252,.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.title-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 14px; }
h1 { margin: 0; font-size: 25px; letter-spacing: 0; }
.hint { color: var(--muted); font-size: 13px; margin-top: 5px; }
.actions, .filter-strip, .table-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions { justify-content: flex-end; }
.btn { border: 1px solid var(--line); border-radius: 8px; min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; color: var(--text); background: #fff; text-decoration: none; }
.btn.primary { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.commandbar { display: grid; grid-template-columns: minmax(260px, 1.2fr) 1.8fr auto; gap: 10px; align-items: center; }
.search { height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.search input { border: 0; outline: 0; min-width: 0; width: 100%; }
.segmented { display: flex; gap: 6px; flex-wrap: wrap; }
.segmented button, .chip { border: 1px solid var(--line); background: rgba(255,255,255,.88); border-radius: 999px; min-height: 32px; padding: 0 11px; color: #526174; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; }
.segmented button.active, .chip.active { background: #edf4ff; color: #1d4f91; border-color: #c7d7f8; }
.content { padding: 20px 28px 34px; }
.panel { background: var(--panel); border: 1px solid rgba(219,227,238,.9); border-radius: 8px; box-shadow: 0 1px 0 rgba(15,23,42,.02); backdrop-filter: blur(12px); min-width: 0; }
.risk-panel { position: relative; z-index: 18; overflow: visible; }
.panel-head { padding: 14px 16px; border-bottom: 1px solid rgba(219,227,238,.72); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.panel h2 { margin: 0; font-size: 15px; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 18px 0 22px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 16px; min-height: 124px; display: flex; flex-direction: column; justify-content: center; gap: 10px; cursor: pointer; }
.kpi span { color: var(--muted); font-size: 13px; font-weight: 700; }
.kpi strong { font-size: 32px; line-height: 1; color: var(--ink); }
.kpi small { color: #8390a3; font-size: 13px; line-height: 1.35; }
.grid-2 { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(330px,.8fr); gap: 14px; }
.dashboard-grid { margin-top: 14px; }
.dashboard-commandbar { grid-template-columns: minmax(260px, .95fr) minmax(380px, 1.55fr) auto; margin-bottom: 4px; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 14px 16px; }
.card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 14px; display: grid; gap: 10px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15,23,42,.1); }
.progress { height: 8px; border-radius: 99px; overflow: hidden; background: #edf2f7; }
.progress span { display: block; height: 100%; background: var(--cyan); }
.milestone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 16px; }
.milestone-lane { border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg,#fff,#fbfdff); min-width: 0; overflow: hidden; }
.milestone-head { min-height: 48px; padding: 12px 13px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; background: #f8fafc; }
.milestone-head strong { font-size: 15px; color: var(--ink); }
.milestone-head span { color: var(--muted); font-size: 12px; }
.milestone-group { border-bottom: 1px solid var(--line); cursor: pointer; }
.milestone-group:last-child { border-bottom: 0; }
.milestone-group:hover { background: #f8fbff; }
.milestone-date { min-height: 40px; padding: 9px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.milestone-date strong { color: #174ea6; font-size: 16px; }
.milestone-date span { border-radius: 999px; padding: 2px 8px; background: var(--soft-blue); color: var(--blue); font-size: 12px; }
.milestone-items { display: grid; gap: 7px; padding: 0 10px 11px; }
.milestone-item { width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; padding: 9px 10px; display: grid; gap: 5px; text-align: left; color: var(--text); }
.milestone-item:hover { border-color: #bdd1ff; box-shadow: 0 8px 18px rgba(15,23,42,.08); }
.milestone-item.risk { border-color: #fecaca; box-shadow: inset 3px 0 0 var(--red); }
.milestone-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.milestone-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.risk-summary-grid { position: relative; z-index: 12; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px 16px; overflow: visible; }
.risk-card { position: relative; min-height: 116px; border: 1px solid #fed7aa; border-radius: 8px; background: linear-gradient(180deg,#fffaf4,#fff); padding: 14px; display: grid; align-content: center; gap: 8px; text-align: left; color: var(--text); cursor: pointer; box-shadow: 0 1px 0 rgba(15,23,42,.02); }
.risk-card:hover { z-index: 40; border-color: #fdba74; box-shadow: 0 10px 24px rgba(15,23,42,.09); transform: translateY(-1px); }
.risk-card.danger { border-color: #fecaca; background: linear-gradient(180deg,#fff7f7,#fff); }
.risk-card span { color: #92400e; font-size: 13px; font-weight: 800; }
.risk-card.danger span { color: #b42318; }
.risk-card strong { color: var(--ink); font-size: 30px; line-height: 1; }
.risk-tooltip { position: absolute; left: calc(100% + 10px); top: 10px; z-index: 120; width: min(320px, 46vw); border: 1px solid rgba(191,204,222,.92); border-radius: 8px; background: rgba(255,255,255,.98); box-shadow: 0 16px 42px rgba(15,23,42,.16); padding: 11px 12px; color: #334155; font-style: normal; font-size: 12px; line-height: 1.55; opacity: 0; pointer-events: none; transform: translateX(-4px); transition: opacity .14s ease, transform .14s ease; }
.risk-tooltip::before { content: ""; position: absolute; left: -6px; top: 18px; width: 10px; height: 10px; background: #fff; border-left: 1px solid rgba(191,204,222,.92); border-bottom: 1px solid rgba(191,204,222,.92); transform: rotate(45deg); }
.risk-card:hover .risk-tooltip, .risk-card:focus-visible .risk-tooltip { opacity: 1; transform: translateX(0); }
.risk-summary-grid .risk-card:nth-child(4n) .risk-tooltip { left: auto; right: calc(100% + 10px); }
.risk-summary-grid .risk-card:nth-child(4n) .risk-tooltip::before { left: auto; right: -6px; border-left: 0; border-bottom: 0; border-right: 1px solid rgba(191,204,222,.92); border-top: 1px solid rgba(191,204,222,.92); }
.risk-help { position: relative; display: inline-flex; align-items: center; vertical-align: middle; }
.risk-inline-tooltip { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 130; width: min(320px, 44vw); border: 1px solid rgba(191,204,222,.95); border-radius: 8px; background: rgba(255,255,255,.98); box-shadow: 0 16px 42px rgba(15,23,42,.16); padding: 10px 12px; color: #334155; font-style: normal; font-size: 12px; line-height: 1.55; text-align: left; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .14s ease, transform .14s ease; white-space: normal; }
.risk-inline-tooltip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #fff; border-right: 1px solid rgba(191,204,222,.95); border-bottom: 1px solid rgba(191,204,222,.95); transform: translateX(-50%) rotate(45deg); }
.risk-help:hover .risk-inline-tooltip, .risk-help:focus-within .risk-inline-tooltip { opacity: 1; transform: translate(-50%, 0); }
.table-wrap .risk-inline-tooltip { left: calc(100% + 10px); top: 50%; bottom: auto; z-index: 45; width: 300px; max-width: min(300px, 42vw); transform: translate(4px, -50%); word-break: break-word; }
.table-wrap .risk-inline-tooltip::after { left: -5px; top: 50%; bottom: auto; border-right: 0; border-bottom: 0; border-left: 1px solid rgba(191,204,222,.95); border-top: 1px solid rgba(191,204,222,.95); transform: translateY(-50%) rotate(-45deg); }
.table-wrap .risk-help:hover .risk-inline-tooltip, .table-wrap .risk-help:focus-within .risk-inline-tooltip { transform: translate(0, -50%); }
.empty-state { padding: 16px; color: var(--muted); font-size: 13px; }
.focus-list { padding: 8px 0; max-height: 360px; overflow: auto; }
.focus-row { min-height: 54px; padding: 10px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(160px, .35fr) minmax(0, 1fr); gap: 12px; align-items: center; cursor: pointer; }
.focus-row:hover { background: #f8fafc; }
.focus-row strong { display: block; color: var(--ink); font-size: 14px; }
.focus-row span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.focus-tags { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.focus-tags .jira-key { border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; background: #fff; font-size: 12px; }
.panel-title-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.calendar-legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.calendar-legend span { min-height: 22px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; align-items: center; }
.calendar-legend .holiday { background: #fff7f7; color: #9f1239; border-color: #fecdd3; }
.calendar-legend .adjusted-workday { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.timeline { overflow: auto; max-height: calc(100vh - 245px); background: #fff; border-radius: 0 0 8px 8px; scrollbar-color: #aab7c8 #eef3f8; scrollbar-width: thin; }
.gantt { display: grid; position: relative; }
.cell { min-height: 42px; border-right: 1px solid rgba(219,227,238,.62); border-bottom: 1px solid rgba(219,227,238,.62); background: rgba(255,255,255,.92); position: relative; padding: 6px; }
.head { min-height: 38px; background: #f8fafc; color: #526174; font-size: 12px; font-weight: 700; display: grid; place-items: center; position: sticky; top: 0; z-index: 6; }
.day-head { gap: 3px; align-content: center; justify-items: center; }
.day-head span { line-height: 1; }
.day-head em { min-width: 18px; height: 16px; border-radius: 999px; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 900; line-height: 1; }
.day-head.weekend, .day-head.holiday { background: #fff7f7; color: #9f1239; }
.day-head.weekend em, .day-head.holiday em { background: #ffe4e6; color: #be123c; }
.day-head.adjusted-workday { background: #eff6ff; color: #1d4ed8; }
.day-head.adjusted-workday em { background: #dbeafe; color: #1d4ed8; }
.corner { left: 0; z-index: 8; place-items: center start; }
.lane { position: sticky; left: 0; z-index: 4; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; background: #fff; cursor: pointer; }
.avatar { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: #334155; font-size: 11px; font-weight: 900; }
.meta strong { display: block; font-size: 13px; }
.meta span { color: var(--muted); font-size: 12px; }
.meta strong, .meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { border-radius: 99px; background: #eef2f7; color: #526174; padding: 2px 6px; font-size: 12px; }
.gantt-row { grid-column: 2 / -1; min-height: 52px; border-bottom: 1px solid rgba(219,227,238,.62); background: linear-gradient(90deg, rgba(203,213,225,.42) 1px, transparent 1px) 0 0 / var(--day) 100%, linear-gradient(180deg, rgba(250,252,255,.96), rgba(255,255,255,.96)); position: relative; padding: 10px 0; }
.day-marker { position: absolute; inset-block: 0; pointer-events: none; border-right: 1px solid rgba(219,227,238,.48); }
.day-marker.weekend { background: rgba(255,241,242,.54); }
.day-marker.holiday { background: rgba(254,226,226,.64); }
.day-marker.adjusted-workday { background: rgba(219,234,254,.48); }
.bar { position: absolute; height: 22px; border: 0; border-radius: 999px; padding: 0 12px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 4px 12px rgba(15,23,42,.10); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bar.dev { background: linear-gradient(90deg,#2f6fd6,#0f8f9a); }
.bar.test { background: linear-gradient(90deg,#6d5bd0,#8b6bd8); }
.bar.risk { box-shadow: inset 0 0 0 1px rgba(217,119,6,.55), 0 4px 12px rgba(15,23,42,.10); }
.bar.risk::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(254,243,199,.82); }
.bar small { opacity: .78; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.bar:hover { filter: brightness(1.04); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15,23,42,.15); }
.bar.active { filter: brightness(1.05); box-shadow: 0 0 0 2px rgba(37,99,235,.16), 0 12px 24px rgba(15,23,42,.16); }
.preview-pop { position: fixed; z-index: 40; width: min(340px, calc(100vw - 28px)); border: 1px solid rgba(191,204,222,.95); border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: 0 18px 48px rgba(15,23,42,.18); backdrop-filter: blur(18px); overflow: hidden; display: none; }
.preview-pop.show { display: block; }
.preview-top { padding: 11px 12px; background: linear-gradient(90deg,#f8fafc,#eef6ff); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; cursor: grab; user-select: none; }
.preview-top strong { display: block; color: #174ea6; font-size: 15px; }
.preview-top span { display: block; margin-top: 3px; color: #64748b; font-size: 12px; }
.preview-close { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: #64748b; display: grid; place-items: center; flex: 0 0 auto; }
.preview-body { padding: 11px 12px 12px; display: grid; gap: 9px; }
.preview-summary { color: #1f2937; font-size: 13px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.preview-timeline { display: grid; gap: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.preview-time { display: grid; grid-template-columns: 58px 1fr; gap: 8px; align-items: center; font-size: 12px; }
.preview-time span { color: var(--muted); }
.preview-time strong { color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-meta { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.preview-chip { border: 1px solid var(--line); border-radius: 999px; background: #f8fafc; color: #526174; min-height: 24px; padding: 0 8px; display: inline-flex; align-items: center; font-size: 12px; }
.preview-chip.risk { background: var(--soft-red); color: #b42318; border-color: #ffc7c7; }
.risk-text { color: #b42318 !important; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.blue { background: var(--blue); } .purple { background: var(--purple); } .red { background: var(--red); }
.detail-panel { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 34px rgba(15,23,42,.08); overflow: hidden; }
.detail-hero { padding: 14px 16px; background: linear-gradient(90deg,#f8fafc,#eef6ff); color: var(--text); border-bottom: 1px solid var(--line); }
.detail-hero span { display: block; color: #64748b; font-size: 12px; margin-bottom: 4px; }
.detail-hero strong { font-size: 18px; color: #111827; }
.detail-body { padding: 14px 16px; display: grid; grid-template-columns: minmax(260px, 1fr) 1.3fr auto; gap: 14px; align-items: center; }
.summary { line-height: 1.6; font-size: 13px; color: #374151; }
.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.detail-grid div { border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: #f8fafc; }
.detail-grid span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.detail-grid strong { font-size: 13px; }
.window-list { border-top: 1px solid var(--line); max-height: 360px; overflow: auto; }
.window-item { padding: 11px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; cursor: pointer; }
.window-item:hover { background: #f8fafc; }
.window-item strong, .jira-key { color: #174ea6; }
a.jira-key { text-decoration: none; font-weight: 800; }
a.jira-key:hover { text-decoration: underline; }
.table-tools { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.date-filter { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.88); color: #526174; font-size: 12px; cursor: text; }
.date-filter:focus-within { border-color: #93b4ff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.date-filter input { width: 126px; min-height: 30px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; cursor: text; }
.date-filter.wide-field input { width: min(520px, 52vw); }
#componentConfig { width: 300px; }
.filter-clear { border: 1px solid var(--line); border-radius: 999px; min-height: 32px; padding: 0 10px; background: #fff; color: #526174; font-size: 12px; }
.table-wrap { overflow: auto; background: #fff; border-radius: 0 0 8px 8px; }
table { border-collapse: collapse; width: 100%; min-width: 1220px; }
th, td { border-bottom: 1px solid var(--line); padding: 11px 12px; font-size: 13px; white-space: nowrap; text-align: left; }
th { background: #f8fafc; color: #526174; font-size: 12px; position: sticky; top: 0; z-index: 1; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: #174ea6; background: #eef6ff; }
.th-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.column-filter { margin-top: 7px; width: 100%; min-width: 78px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 8px; outline: 0; color: var(--text); font-size: 12px; }
.column-filter:focus { border-color: #93b4ff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.multi-filter { position: relative; margin-top: 7px; }
.multi-filter-toggle { width: 100%; min-width: 96px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 8px; color: var(--text); font-size: 12px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-filter-toggle::after { content: "⌄"; float: right; color: #64748b; }
.multi-filter.open .multi-filter-toggle { border-color: #93b4ff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.multi-filter-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: max(180px, 100%); max-height: 260px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 16px 34px rgba(15,23,42,.16); display: none; }
.multi-filter.open .multi-filter-menu { display: grid; gap: 2px; }
.multi-filter-menu label { min-height: 28px; padding: 5px 7px; border-radius: 6px; display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 12px; color: var(--text); }
.multi-filter-menu label:hover { background: #f1f5f9; }
.multi-filter-menu input { width: 14px; height: 14px; accent-color: var(--blue); }
tr:hover td { background: #fbfdff; }
.issue-title { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; min-height: 24px; border-radius: 99px; padding: 0 8px; font-size: 12px; border: 1px solid transparent; }
.badge.ok { background: var(--soft-green); color: #117244; border-color: #b8e5cd; }
.badge.active { background: var(--soft-blue); color: var(--blue); border-color: #b9ceff; }
.badge.warning { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.badge.danger { background: var(--soft-red); color: #b42318; border-color: #ffc7c7; }
.badge.risk { background: var(--soft-red); color: #b42318; border-color: #ffc7c7; }
.log-message { max-width: 760px; max-height: 130px; overflow: auto; margin: 0; white-space: pre-wrap; word-break: break-word; color: #334155; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; line-height: 1.45; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(15,23,42,.22); display: none; align-items: center; justify-content: center; padding: 28px; }
.modal-backdrop.show { display: flex; }
.modal { width: min(920px, calc(100vw - 42px)); max-height: min(720px, calc(100vh - 42px)); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.modal-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.ops-page { min-height: 100vh; background: radial-gradient(circle at 10% -10%, rgba(37,99,235,.12), transparent 30%), radial-gradient(circle at 86% 8%, rgba(15,118,110,.10), transparent 28%), var(--bg); }
.ops-shell { width: min(1180px, calc(100vw - 44px)); margin: 0 auto; padding: 32px 0 42px; display: grid; gap: 16px; }
.ops-hero { border: 1px solid rgba(219,227,238,.9); border-radius: 8px; background: rgba(255,255,255,.88); box-shadow: 0 14px 46px rgba(15,23,42,.08); padding: 22px 24px; display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.ops-hero span { color: #2563eb; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ops-hero h1 { margin-top: 6px; }
.ops-hero p { margin: 8px 0 0; color: var(--muted); line-height: 1.65; }
.ops-task-list { padding: 14px 16px; display: grid; gap: 10px; }
.ops-task-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 14px; display: grid; grid-template-columns: minmax(280px, 1fr) auto auto auto; gap: 12px; align-items: center; }
.ops-task-card.risk-config-card { grid-template-columns: minmax(260px, 1fr) auto; }
.ops-task-card strong { display: block; color: var(--ink); font-size: 15px; }
.ops-task-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ops-task-card small { display: block; margin-top: 8px; color: #8390a3; font-size: 12px; }
.ops-toggle { display: inline-flex; align-items: center; gap: 6px; color: #526174; font-size: 12px; }
.ops-switch-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ops-actions { padding: 0 16px 16px; display: flex; gap: 10px; align-items: center; }
@media (max-width: 1280px) {
  .app, .app.sidebar-collapsed { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sidebar-toggle { display: none; }
  .sidebar-collapsed .sidebar { align-items: stretch; }
  .sidebar-collapsed .brand { padding: 4px 8px 14px; justify-content: flex-start; }
  .sidebar-collapsed .brand-text, .sidebar-collapsed .nav-label, .sidebar-collapsed .side-card { display: block; }
  .sidebar-collapsed .nav a { justify-content: flex-start; padding: 0 12px; }
  .sidebar-collapsed .nav-mark { display: none; }
  .nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .commandbar, .kpis, .grid-2, .cards, .detail-body, .risk-summary-grid { grid-template-columns: 1fr; }
  .ops-task-card, .ops-hero { grid-template-columns: 1fr; display: grid; }
}
