:root {
  color-scheme: light;
  font: 13px/1.45 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #19324b;
  background: #f6f7f8;
  --navy: #102b47;
  --navy-2: #0b223b;
  --cobalt: #1767a8;
  --cobalt-soft: #e9f2f9;
  --copper: #bd6d43;
  --copper-soft: #faf0e9;
  --surface: #fff;
  --paper: #f6f7f8;
  --line: #d8e0e7;
  --line-strong: #b7c6d2;
  --muted: #62778a;
  --danger: #b74335;
  --danger-soft: #fff0ed;
  --warning: #a86513;
  --warning-soft: #fff5e6;
  --sidebar-width: 232px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 1000; padding: .55rem .85rem; color: #fff; background: var(--navy); }
.skip-link:focus { top: .75rem; }
.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.app-shell.compact { --sidebar-width: 62px; }
.sidebar { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; height: 100vh; color: #e4edf5; background: linear-gradient(180deg, #103251, #0b223b); overflow: hidden; z-index: 20; }
.sidebar-brand { display: flex; align-items: center; gap: .7rem; height: 57px; padding: .75rem .65rem .75rem 1rem; border-bottom: 1px solid #34526c; }
.brand-emblem { display: grid; place-items: center; min-width: 32px; height: 32px; border: 1px solid #96b0c6; border-radius: 4px; color: #fff; font-size: .7rem; letter-spacing: -.05em; font-weight: 800; }
.sidebar-brand strong { flex: 1; font-size: .8rem; line-height: 1.12; letter-spacing: .02em; }
.sidebar-pin { color: #cbd9e6 !important; }
.sidebar nav { flex: 1; overflow: auto; padding: .45rem 0; }
.nav-item { display: grid; grid-template-columns: 19px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; min-height: 43px; padding: 0 .8rem 0 1rem; color: #d5e2ec; border: 0; border-left: 3px solid transparent; background: transparent; text-align: left; white-space: nowrap; font-size: .86rem; }
.nav-item:hover { background: #193d5c; color: #fff; }
.nav-item.active { color: #fff; background: #1d537e; border-left-color: #70b4ea; font-weight: 650; }
.nav-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-copy { overflow: hidden; text-overflow: ellipsis; }
.nav-number { opacity: .74; font-variant-numeric: tabular-nums; margin-right: .25rem; }
.sidebar-footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .8rem 1rem; border-top: 1px solid #34526c; color: #9fb4c7; font-size: .72rem; white-space: nowrap; }
.compact .sidebar-label, .compact .nav-copy { display: none; }
.compact .nav-item { grid-template-columns: 1fr; justify-items: center; padding: 0; }
.compact .sidebar-brand { justify-content: center; padding: .75rem .5rem; }
.compact .sidebar-brand .brand-emblem, .compact .sidebar-footer { display: none; }
.workspace { min-width: 0; }
.context-bar { position: sticky; top: 0; z-index: 15; display: flex; justify-content: space-between; align-items: center; gap: .7rem; min-height: 57px; padding: .45rem 1.1rem; color: #e8f0f6; background: var(--navy); box-shadow: 0 2px 8px #0a1d2d1a; }
.context-controls, .context-actions { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.context-controls label { display: flex; align-items: center; gap: .5rem; color: #c9d9e6; font-size: .78rem; white-space: nowrap; }
.context-controls select { min-width: 145px; max-width: 240px; height: 31px; padding: .25rem .6rem; color: #fff; background: #244661; border: 1px solid #51708b; border-radius: 3px; }
.context-controls select option { color: #19324b; background: #fff; }
.save-status { color: #b6cde0; white-space: nowrap; font-size: .75rem; }
.top-action { height: 32px; padding: 0 .7rem; border: 1px solid transparent; border-radius: 3px; color: #f2f7fb; background: transparent; white-space: nowrap; font-size: .78rem; }
.top-action:hover { background: #274b69; }
.top-action.accent { color: #fff; background: var(--copper); }
.top-action.accent:hover { background: #a65734; }
.identity-name { padding-inline: .7rem; border-left: 1px solid #45617a; font-weight: 600; white-space: nowrap; }
.mobile-nav { display: none; }
main { min-width: 0; padding: 20px 22px 34px; }
.page-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 15px; }
.page-heading h1 { margin: 0; color: var(--navy); font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.page-heading p { margin: .32rem 0 0; color: var(--muted); font-size: .86rem; }
.help-heading { display: flex; align-items: center; gap: 6px; position: relative; min-width: 0; }
.help-trigger { flex: 0 0 auto; width: 18px; height: 18px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--cobalt); font-size: 11px; font-weight: 700; cursor: help; }
.help-trigger:hover, .help-trigger:focus-visible { color: #fff; background: var(--cobalt); }
.help-tooltip { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(340px, 75vw); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--navy); background: #fff; box-shadow: 0 6px 20px #122e4740; font-size: .78rem; line-height: 1.45; font-weight: 400; }
.help-tooltip[hidden] { display: none; }
.page-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.button, .button-link { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 31px; padding: .35rem .72rem; border: 1px solid var(--line-strong); border-radius: 3px; color: #16456e; background: #fff; text-decoration: none; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.button:hover, .button-link:hover { border-color: var(--cobalt); background: var(--cobalt-soft); }
.button.primary { color: #fff; border-color: var(--cobalt); background: var(--cobalt); }
.button.primary:hover { background: #105487; }
.button.danger { color: #fff; border-color: var(--danger); background: var(--danger); }
.button.ghost { border-color: transparent; background: transparent; }
.button.small { min-height: 26px; padding: .18rem .5rem; font-size: .73rem; }
.button-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.icon-button { display: inline-grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 3px; color: #526d82; background: transparent; font-size: 19px; }
.icon-button:hover { color: var(--cobalt); background: var(--cobalt-soft); }
.tab-bar { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tab { padding: .62rem .85rem; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; white-space: nowrap; font-weight: 600; }
.tab:hover { color: var(--navy); }
.tab.active { color: var(--cobalt); border-bottom-color: var(--cobalt); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin: 0 0 .7rem; }
.section-head h2 { margin: 0; font-size: 16px; color: var(--navy); }
.section-head p { margin: .25rem 0 0; color: var(--muted); }
.panel { min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: 0 1px 1px #18324c08; }
.panel + .panel { margin-top: 10px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: .65rem; margin-bottom: 10px; }
.panel-header h2, .panel-header h3 { margin: 0; color: #163751; font-size: 13px; font-weight: 700; }
.panel-header small { color: var(--muted); }
.section-order-block { position: relative; min-width: 0; }
#content > .section-order-block + .section-order-block { margin-top: 9px; }
.section-order-tools { display: flex; justify-content: flex-end; gap: 2px; margin: 0 0 3px; }
.section-order-tools button { width: 25px; height: 23px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--muted); cursor: pointer; }
.section-order-tools button:hover, .section-order-tools button:focus-visible { border-color: var(--cobalt); color: var(--cobalt); }
.section-drag-handle { cursor: grab !important; }
.section-order-block.drop-before::before, .section-order-block.drop-after::after { content: ''; position: absolute; z-index: 5; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--cobalt); }
.section-order-block.drop-before::before { top: -5px; }
.section-order-block.drop-after::after { bottom: -5px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 9px; }
.wide-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .85fr); gap: 9px; margin-bottom: 9px; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 9px; }
.range-panel { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 9px; }
.range-value { padding: 12px 15px; border: 1px solid var(--line); border-radius: 3px; background: #edf3f7; }
.range-value.expected { background: #e8f2fb; }
.range-value.high { background: var(--copper-soft); }
.range-value small { display: block; color: var(--muted); font-weight: 650; }
.range-value strong { display: block; margin-top: 4px; color: var(--navy); font-size: clamp(17px, 1.5vw, 23px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.range-value.expected strong { color: #0d5d9e; }
.range-value.high strong { color: #994d2f; }
.metric-card { min-height: 122px; }
.metric-card .metric-label { color: #36536b; font-weight: 700; font-size: .8rem; }
.metric-card .metric-value { margin: 8px 0; color: var(--navy); font-size: 21px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.1; }
.metric-card .metric-detail { color: var(--muted); font-size: .75rem; }
.metric-card .mini-rule { display: flex; height: 8px; overflow: hidden; border-radius: 2px; margin: 8px 0; background: #e5edf3; }
.metric-card .mini-rule span:first-child { background: var(--cobalt); }
.metric-card .mini-rule span:last-child { background: var(--copper); }
.chart-viewport { overflow-x: auto; }
.chart-bars { display: flex; align-items: end; gap: 3px; min-width: max-content; height: 200px; padding: 9px 2px 21px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent, transparent 39px, #e7edf2 40px); }
.chart-column { display: flex; flex-direction: column-reverse; width: 20px; min-width: 20px; height: 100%; position: relative; }
.chart-column .capex, .chart-column .opex { display: block; width: 100%; }
.chart-column .capex { background: var(--cobalt); }
.chart-column .opex { background: var(--copper); }
.chart-column.actual .capex { background: #5585ad; }
.chart-column.actual .opex { background: #cd906e; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; margin: 5px 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 8px 0 0; color: var(--muted); font-size: .75rem; }
.legend i { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 2px; background: var(--cobalt); }
.legend i.opex { background: var(--copper); }
.stacked-track { display: flex; height: 17px; overflow: hidden; border-radius: 2px; background: #edf1f4; }
.stacked-track span { display: block; min-width: 0; }
.composition-list { display: grid; gap: 7px; margin-top: 11px; }
.composition-row { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #edf0f2; padding-bottom: 5px; }
.composition-row:last-child { border: 0; }
.composition-row strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.warning-list { list-style: none; padding: 0; margin: 0; }
.warning-list li { padding: .45rem .5rem; border-bottom: 1px solid var(--line); color: #765013; background: var(--warning-soft); }
.warning-list li:last-child { border-bottom: 0; }
.empty-state { padding: 17px; color: var(--muted); text-align: center; background: #fafbfc; border: 1px dashed var(--line); border-radius: 3px; }
.notice { padding: .65rem .8rem; border-left: 3px solid var(--cobalt); color: #31536d; background: var(--cobalt-soft); margin: 9px 0; }
.notice.warn { border-color: var(--warning); color: #775217; background: var(--warning-soft); }
.data-table-wrap { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 3px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 540px; background: #fff; }
.data-table th { position: sticky; top: 0; z-index: 1; color: #163d5c; background: #e8eff4; font-size: .72rem; text-align: left; }
.data-table th, .data-table td { border-bottom: 1px solid #e2e8ed; padding: 6px 8px; vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #f8fbfd; }
.data-table .numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table .actions { white-space: nowrap; }
.data-table small { color: var(--muted); }
.data-table tfoot td { font-weight: 750; background: #f0f4f7; }
.muted { color: var(--muted); }
.status-tag { display: inline-block; padding: .16rem .4rem; border-radius: 2px; color: #285473; background: #e9f2f8; font-size: .69rem; font-weight: 700; white-space: nowrap; }
.status-tag.copper { color: #9a512f; background: #f9ede6; }
.status-tag.warning { color: #8a5916; background: #fff2d9; }
.status-tag.danger { color: #a0392e; background: #ffeded; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 8px 0 10px; flex-wrap: wrap; }
.toolbar p { margin: 0; color: var(--muted); }
.toolbar-controls { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.toolbar input, .toolbar select, .inline-field input, .inline-field select { min-height: 30px; padding: .3rem .5rem; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; }
.card-list { display: grid; gap: 10px; }
.record-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.record-card-header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 11px 13px; }
.record-card-header h2, .record-card-header h3 { margin: 4px 0 2px; color: var(--navy); font-size: 15px; }
.record-card-header p { margin: 0; color: var(--muted); }
.record-card-body { padding: 0 13px 12px; }
.record-card.collapsed .record-card-body { display: none; }
.record-card .summary-strip { display: flex; flex-wrap: wrap; gap: 1.2rem; padding: 8px 0; border-top: 1px solid var(--line); color: #36546b; }
.summary-strip strong { display: block; color: var(--navy); font-variant-numeric: tabular-nums; }
.card-heading-tools { display: flex; align-items: center; gap: .3rem; flex-shrink: 0; }
.drag-handle { color: #91a1af; font-size: 17px; cursor: grab; padding: .15rem .3rem; }
.drag-handle:active { cursor: grabbing; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.detail-row { display: flex; justify-content: space-between; gap: .5rem; padding: 5px 0; border-bottom: 1px solid #edf0f2; }
.detail-row:last-child { border: 0; }
.detail-row strong { font-variant-numeric: tabular-nums; }
.filter-strip { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 10px; }
.filter-strip label { display: inline-flex; gap: .35rem; align-items: center; color: #4f687c; font-weight: 600; }
.filter-strip select, .filter-strip input { min-height: 29px; padding: .2rem .45rem; background: #fff; border: 1px solid var(--line-strong); border-radius: 3px; }
.filter-strip details { position: relative; min-width: 100px; padding: .25rem .45rem; border: 1px solid var(--line-strong); background: #fff; }
.filter-strip summary { cursor: pointer; font-weight: 650; }
.filter-checks { position: absolute; top: 100%; left: 0; z-index: 10; display: grid; gap: .4rem; min-width: 180px; max-height: 230px; overflow: auto; padding: .65rem; border: 1px solid var(--line-strong); background: #fff; box-shadow: 0 4px 15px #152b3e26; }
.filter-checks label { white-space: nowrap; }
.filter-checks input { min-height: auto; }
.login-screen { display: grid; place-items: center; min-height: 100vh; padding: 1.5rem; background: radial-gradient(circle at 15% 15%, #1a4c71 0, #102b47 47%, #0b223b 100%); }
.login-card { width: min(100%, 420px); padding: 30px; border-top: 4px solid var(--copper); border-radius: 4px; background: #fff; box-shadow: 0 20px 60px #061a2d66; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 2px solid var(--navy); border-radius: 5px; color: var(--navy); font-weight: 800; letter-spacing: -.12em; white-space: nowrap; }
.brand-mark span { color: var(--copper); }
.login-card h1 { margin: 17px 0 5px; font-size: 23px; line-height: 1.2; }
.login-card p { margin: 0 0 20px; color: var(--muted); }
.login-card label { display: block; margin-bottom: 5px; font-weight: 700; }
.login-card input { width: 100%; min-height: 38px; padding: 8px 9px; border: 1px solid var(--line-strong); border-radius: 3px; }
.login-card button { margin-top: 16px; width: 100%; min-height: 37px; }
.login-card .login-help { margin: 16px 0 0; text-align: center; font-size: 14px; }
.login-help a { color: var(--navy); font-weight: 700; text-decoration: underline; }
.login-help a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.editor-dialog, .confirm-dialog { width: min(95vw, 660px); max-height: 91vh; padding: 0; color: var(--navy); border: 1px solid var(--line-strong); border-radius: 5px; box-shadow: 0 20px 65px #132a3f4d; }
.editor-dialog { resize: both; overflow: auto; }
.editor-dialog::backdrop, .confirm-dialog::backdrop { background: #0a1f34aa; }
.dialog-header { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: start; padding: 13px 16px; background: #fff; border-bottom: 1px solid var(--line); z-index: 1; }
.dialog-header h2 { margin: 1px 0 0; font-size: 18px; }
.dialog-context { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 15px 16px; }
.editor-tab-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.editor-tab-fields[hidden], .activity-delete-confirm[hidden] { display: none; }
.editor-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line-strong); padding-bottom: 10px; }
.editor-tabs [aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.activity-row { border: 1px solid var(--line-strong); border-radius: 5px; padding: 12px; background: #fff; }
.activity-row.archived { background: #f2f4f7; }
.activity-row-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.activity-row-fields { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 9px; }
.activity-tools, .activity-delete-confirm { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.activity-delete-confirm { border: 1px solid var(--danger); border-radius: 4px; padding: 9px; background: #fff5f3; }
.activity-delete-confirm input { width: 120px; min-height: 32px; margin: 0 8px; border: 1px solid var(--line-strong); border-radius: 3px; }
.team-role-table .data-table { min-width: 1160px; }
.team-role-list { display: grid; gap: 9px; margin: 9px 0 14px; }
.team-role-card { border-top: 1px solid var(--line-strong); padding: 11px 0 3px; }
.team-role-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.team-role-heading h3 { margin: 0 0 3px; color: var(--navy); font-size: .95rem; }
.team-role-heading p { margin: 0; color: var(--muted); font-size: .77rem; }
.team-role-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 9px 0; color: var(--muted); font-size: .75rem; }
.team-role-facts strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.team-role-detail { border-top: 1px solid var(--line); padding-top: 10px; }
.team-role-detail summary { cursor: pointer; color: var(--cobalt); font-weight: 650; }
.team-role-detail .team-role-table { margin-top: 10px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 4px; color: #344f65; font-weight: 650; }
.field.wide { grid-column: 1 / -1; }
.field.checkbox { flex-direction: row; align-items: center; }
.field input:not([type=checkbox]), .field select, .field textarea, .confirm-dialog input { width: 100%; min-height: 32px; padding: 6px 7px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--navy); background: #fff; font-weight: 400; }
.field textarea { min-height: 66px; resize: vertical; }
.field input[type=checkbox] { width: 16px; height: 16px; }
.form-error { margin: 10px 16px 0; padding: 8px; color: #9b3329; background: var(--danger-soft); border-left: 3px solid var(--danger); }
.dialog-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: .5rem; padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); }
.confirm-dialog form { padding: 16px; }
.confirm-dialog h2 { margin: 0 0 8px; }
.confirm-dialog .dialog-actions { margin: 16px -16px -16px; }
.toast { position: fixed; right: 20px; bottom: 18px; z-index: 100; max-width: 360px; padding: 10px 14px; color: #fff; background: var(--navy); box-shadow: 0 7px 25px #142b4350; border-radius: 3px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.visible { opacity: 1; transform: none; }
.toast.error { background: var(--danger); }
.master-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.master-grid .panel { margin: 0; }
.wiki-body { padding: 10px 13px 15px; line-height: 1.6; max-width: 85ch; white-space: normal; }
.wiki-body p { margin: 0 0 8px; }
.wiki-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 12px; align-items: start; }
.wiki-tree { position: sticky; top: 68px; max-height: calc(100vh - 82px); display: flex; flex-direction: column; gap: 6px; }
.wiki-tree > label { font-weight: 700; }
.wiki-tree input { min-height: 32px; padding: 5px 7px; border: 1px solid var(--line-strong); border-radius: 3px; }
.wiki-tree nav { overflow: auto; min-height: 0; }
.wiki-link { display: block; width: 100%; min-height: 31px; padding: 5px 7px; border: 0; border-left: 3px solid transparent; background: transparent; color: #31536d; text-align: left; }
.wiki-link:hover, .wiki-link.active { border-left-color: var(--cobalt); background: var(--cobalt-soft); color: var(--navy); }
.wiki-article { display: grid; gap: 12px; min-width: 0; }
.featured-list { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; padding: 8px 0; }
.featured-option { display: inline-flex; gap: .35rem; align-items: center; }
.planner-controls { padding: 8px 10px; background: #fff; border: 1px solid var(--line); }
.planner-controls label { display: inline-flex; align-items: center; gap: .45rem; }
.gantt-scroll { overflow: auto; max-height: 70vh; border: 1px solid var(--line); background: #fff; }
.gantt-content { min-width: 750px; padding-left: var(--lane-width, 180px); position: relative; }
.gantt-month-header { display: flex; height: 35px; border-bottom: 1px solid var(--line); color: var(--navy); background: #e9f0f5; position: sticky; top: 0; z-index: 9; }
.gantt-month-header span { flex: 0 0 auto; padding: 8px 5px; border-right: 1px solid #cddae4; text-align: center; font-size: .76rem; font-weight: 700; }
.gantt-milestones { height: 28px; position: relative; border-bottom: 1px solid var(--line); background: #fcf8f3; }
.gantt-milestone { position: absolute; top: 2px; padding: 2px; border: 0; background: transparent; color: var(--copper); font-size: .71rem; white-space: nowrap; z-index: 6; cursor: grab; }
.gantt-milestone.start { color: #183f72; }
.gantt-milestone.closure { color: #7c4280; }
.gantt-milestone.go-live { color: #a6532d; }
.gantt-milestone span { display: block; transform: translateX(-7px); }
.gantt-today { position: absolute; top: 35px; bottom: 0; border-left: 2px dotted #a6532d; z-index: 2; pointer-events: none; }
.gantt-today[hidden] { display: none; }
.gantt-section-heading { display: flex; align-items: center; gap: .6rem; min-height: 35px; margin-left: calc(-1 * var(--lane-width, 180px)); padding: 3px 8px; border-block: 1px solid var(--line); background: #edf3f7; position: sticky; left: 0; z-index: 5; }
.gantt-section-heading span { color: var(--muted); font-size: .74rem; }
.gantt-section-heading .button:last-child { margin-left: auto; }
.gantt-section-body { display: flex; position: relative; margin-left: calc(-1 * var(--lane-width, 180px)); }
.gantt-name-column { flex: 0 0 var(--lane-width, 180px); width: var(--lane-width, 180px); position: sticky; left: 0; z-index: 4; background: #f7fafc; border-right: 1px solid var(--line); }
.gantt-lane-name { display: flex; align-items: center; gap: 3px; padding: 0 5px; color: #36546b; font-size: .68rem; overflow: hidden; }
.gantt-lane-name span { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gantt-lane-name button { flex: 0 0 auto; border: 0; background: transparent; color: var(--cobalt); }
.gantt-lane-handle { cursor: grab; }
.gantt-lane-name.lane-drop-before { box-shadow: inset 0 3px var(--cobalt); }
.gantt-lane-name.lane-drop-after { box-shadow: inset 0 -3px var(--cobalt); }
.gantt-lane-name, .gantt-lane { height: 34px; border-bottom: 1px solid #e9eef2; }
.gantt-track { position: relative; background-image: linear-gradient(to right, #e7edf2 1px, transparent 1px); }
.gantt-bar { position: absolute; height: 26px; overflow: hidden; padding: 3px 7px; color: #fff; background: var(--cobalt); border: 1px solid #0c568d; border-radius: 3px; text-align: left; white-space: nowrap; cursor: grab; touch-action: none; z-index: 3; box-shadow: 0 1px 3px #152b3e30; }
.gantt-bar[data-gantt-section="interfaces"] { background: #617c9a; border-color: #516d8a; }
.gantt-bar[data-gantt-section="deployments"] { background: var(--copper); border-color: #a25a36; }
.gantt-bar[data-gantt-section="support"] { background: #8b6c8f; border-color: #775b7a; }
.gantt-bar.out-of-scope { opacity: .42; }
.gantt-projection { position: absolute; top: 0; bottom: 0; right: 0; background: repeating-linear-gradient(135deg, #797d8a 0 5px, #a0a4af 5px 10px); pointer-events: none; }
.gantt-bar.dragging { z-index: 8; cursor: grabbing; opacity: .75; }
.gantt-label { position: relative; display: block; overflow: hidden; text-overflow: ellipsis; padding-right: 9px; }
.gantt-resize { position: absolute; z-index: 2; right: 0; top: 0; bottom: 0; width: 11px; cursor: ew-resize; background: #ffffff3b; }
.gantt-resize.start { right: auto; left: 0; }
.gantt-bar.zero-duration { width: 24px !important; overflow: visible; background: var(--copper); border-radius: 50%; }
.gantt-bar.zero-duration .gantt-label { overflow: visible; white-space: nowrap; position: absolute; left: 27px; top: 2px; width: max-content; color: var(--navy); background: #fffdf9d9; padding: 1px 3px; }
.gantt-section.collapsed .gantt-section-body { display: none; }
.gantt-collapsed-summary { display: none; height: 20px; position: relative; background-image: linear-gradient(to right, #e7edf2 1px, transparent 1px); }
.gantt-section.collapsed .gantt-collapsed-summary { display: block; }
.gantt-summary-bar { position: absolute; top: 5px; height: 10px; border-radius: 2px; background: var(--cobalt); opacity: .7; }
.gantt-splitter { position: sticky; left: calc(var(--lane-width, 180px) - 3px); margin-top: -32px; width: 6px; height: 32px; z-index: 10; background: #bdced9; cursor: col-resize; touch-action: none; }
.gantt-splitter:focus-visible { outline: 3px solid var(--copper); }
.gantt-scroll:fullscreen { max-height: none; height: 100vh; }
.gantt-milestone-controls { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: 8px 0; }
.gantt-milestone-controls > div { display: inline-flex; align-items: center; gap: 4px; }
.gantt-footer { margin-top: 7px; color: var(--muted); }
.pivot-controls { padding-bottom: 12px; }
.pivot-view-strip, .pivot-filter-strip { display: flex; flex-wrap: wrap; align-items: end; gap: .4rem .65rem; margin: 8px 12px; padding: 8px; background: #f5f8fa; border: 1px solid var(--line); }
.pivot-view-strip label, .pivot-filter-strip label { display: inline-flex; align-items: center; gap: .35rem; color: #3e5d75; font-weight: 650; }
.pivot-view-strip select, .pivot-view-strip input, .pivot-filter-strip select, .pivot-filter-strip input { min-height: 31px; max-width: 180px; border: 1px solid var(--line-strong); background: #fff; padding: 4px; }
.pivot-filter-chips { display: flex; flex-wrap: wrap; gap: .3rem; width: 100%; }
.pivot-empty-toggle { display: flex; align-items: center; gap: .35rem; margin: 0 12px 9px; }
.pivot-control-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding: 10px 12px; }
.pivot-drop-zone { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 7px; border: 1px dashed #9db4c8; background: #f8fafc; }
.pivot-drop-zone strong { grid-column: 1 / -1; color: var(--navy); font-size: .78rem; }
.pivot-drop-zone:has(:focus) { border-color: var(--cobalt); }
.pivot-field-picker { margin: 8px 12px 0; border: 1px solid var(--line); padding: .45rem .65rem; }
.pivot-field-picker summary { cursor: pointer; color: var(--navy); font-weight: 700; }
.pivot-field-actions { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; padding: 9px 0; }
.pivot-field-actions label { display: grid; gap: 3px; font-size: .76rem; }
.pivot-field-actions select { max-width: 230px; min-height: 31px; }
.pivot-field-list { display: flex; flex-wrap: wrap; gap: .3rem; }
.pivot-field-list span { padding: .2rem .4rem; background: #edf3f8; border: 1px solid #b7c9d8; color: var(--navy); cursor: grab; font-size: .72rem; }
.pivot-control-grid select, .pivot-control-grid input { width: 100%; min-height: 32px; padding: 5px; border: 1px solid var(--line-strong); background: #fff; }
.pivot-measures { display: flex; flex-wrap: wrap; gap: .35rem .8rem; margin: 0 12px 10px; border: 1px solid var(--line); }
.pivot-measures legend { color: var(--navy); font-weight: 700; }
.pivot-measures label { white-space: nowrap; }
.pivot-measures details { min-width: 180px; padding: .35rem .55rem; border: 1px solid var(--line); background: #fff; }
.pivot-measures summary { color: var(--navy); cursor: pointer; font-weight: 700; }
.pivot-measure-group { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-top: .5rem; }
.fiscal-source { margin: .5rem 0; padding: .35rem .5rem; border-left: 2px solid var(--cobalt); background: #f7f9fb; }
.pivot-controls > .toolbar-controls { padding-inline: 12px; }
.pivot-results { margin-top: 12px; }
.pivot-summary { color: var(--muted); padding: 5px 0; }
.pivot-group-actions { display: inline-flex; gap: .3rem; margin-left: 1rem; }
.pivot-table th { min-width: 95px; }
.pivot-table th:first-child { min-width: 170px; }
.pivot-table thead th { position: sticky; top: 0; z-index: 3; background: #e9f0f5; }
.pivot-table thead th[data-pivot-col]::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 8px; cursor: col-resize; }
.pivot-table .pivot-fy-start { border-left: 2px solid #95abc0; }
.pivot-table th:first-child { position: sticky; left: 0; z-index: 2; background: #f8fafc; }
.pivot-table thead th:first-child { z-index: 4; background: #e9f0f5; }
.pivot-table .pivot-group-row th, .pivot-table .pivot-group-row td { background: #e8f0f7; font-weight: 700; }
.pivot-table .pivot-group-row th:first-child { background: #e8f0f7; }
.pivot-row-label { display: inline-flex; align-items: center; gap: .3rem; }
.pivot-row-label[data-depth="2"] { padding-left: 15px; }
.pivot-row-label[data-depth="3"] { padding-left: 30px; }
.pivot-row-label[data-depth="4"] { padding-left: 45px; }
.pivot-group-toggle { width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; color: var(--navy); }
.pivot-value { border: 0; padding: 0; color: var(--cobalt); background: transparent; text-decoration: underline; text-underline-offset: 2px; }
.pivot-drill .panel { margin-top: 12px; }
.pivot-drill-dialog { width: min(1200px, 94vw); max-width: 94vw; max-height: 88vh; padding: 0; border: 1px solid #9fb3c4; border-radius: 7px; color: var(--navy); background: #fff; box-shadow: 0 20px 55px #0a1d2d55; }
.pivot-drill-dialog::backdrop { background: #102b47a8; }
.pivot-drill-dialog:fullscreen { width: 100vw; height: 100vh; max-width: none; max-height: none; }
.pivot-drill-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #e9f0f5; }
.pivot-drill-heading h2 { margin: 0; }
.pivot-drill-heading p { margin: 3px 0 0; color: var(--muted); font-size: .76rem; }
.pivot-drill-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.pivot-drill-tools label { display: inline-flex; align-items: center; gap: .35rem; }
.pivot-drill-tools details { position: relative; }
.pivot-drill-tools summary { cursor: pointer; font-weight: 700; }
.pivot-drill-tools details[open] { padding: 4px 8px; background: #f0f5f9; border: 1px solid var(--line); }
.pivot-drill-tools details[open] label { display: flex; margin-top: 4px; }
.pivot-drill-count { padding: 5px 16px; color: var(--muted); font-size: .75rem; }
.pivot-drill-scroll { max-height: 60vh; overflow: auto; margin: 0 16px 16px; }
.pivot-drill-scroll thead th { position: sticky; top: 0; z-index: 2; background: #e9f0f5; }
.drill-group th { color: var(--navy); background: #e7eff7; }
.team-chart-scroll { overflow: auto; border: 1px solid var(--line); background: linear-gradient(to top, #edf2f6 1px, transparent 1px) 0 0 / 100% 25%; }
.team-chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; margin: 0 2px 4px; }
.team-chart { position: relative; min-height: 180px; }
.team-chart-bars { display: flex; align-items: end; gap: 4px; height: 135px; padding: 9px 7px 0; }
.team-chart-column { display: flex; flex: 0 0 38px; flex-direction: column-reverse; justify-content: flex-start; align-items: stretch; height: 125px; position: relative; }
.team-chart-column > span { display: block; width: 100%; min-height: 0; }
.team-chart-column b { position: absolute; bottom: calc(100% + 2px); left: 0; width: 100%; text-align: center; color: var(--navy); font-size: .6rem; font-variant-numeric: tabular-nums; }
.team-chart-core { background: var(--cobalt); }
.team-chart-support { background: var(--copper); }
.segment-primary { background: var(--cobalt); }
.segment-secondary { background: var(--copper); }
.segment-muted { background: #8997a4; }
.team-chart-column small { position: absolute; top: 128px; left: -3px; color: var(--muted); font-size: .61rem; white-space: nowrap; }
.team-burn-line { position: absolute; top: 5px; left: 0; width: 100%; height: 120px; pointer-events: none; overflow: visible; }
.team-burn-line polyline { fill: none; stroke: #9b3d38; stroke-width: 2; vector-effect: non-scaling-stroke; }
.panel details { margin-top: 11px; }
.panel details summary { cursor: pointer; color: var(--cobalt); font-weight: 700; }
.login-card .form-error { margin-inline: 0; }

@media (max-width: 1250px) {
  .context-bar, .context-controls, .context-actions { flex-wrap: wrap; }
}
@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide-grid { grid-template-columns: 1fr; }
  .record-card-header { flex-wrap: wrap; gap: .5rem; }
  .record-card-header > div:first-child { flex: 1 1 100%; min-width: 0; }
  .card-heading-tools { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; }
  .card-heading-tools > .icon-button:last-child { margin-left: auto; }
}
@media (max-width: 900px) {
  .master-grid, .pivot-control-grid, .wiki-layout { grid-template-columns: 1fr; }
  .wiki-tree { position: static; max-height: 280px; }
  .app-shell, .app-shell.compact { display: block; }
  .sidebar { display: none; }
  .context-bar { position: static; padding: .55rem .75rem; }
  .context-controls { flex-wrap: wrap; }
  .context-controls label { flex: 1 1 135px; }
  .context-controls select { max-width: 100%; min-width: 0; width: 100%; }
  .context-actions { flex-wrap: wrap; }
  .identity-name { padding-left: 0; border: 0; }
  .mobile-nav { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; color: var(--navy); background: #e7eff5; font-weight: 700; }
  .mobile-nav select { flex: 1; min-width: 0; padding: .4rem; border: 1px solid var(--line-strong); }
  main { padding: 14px 11px 26px; }
  .page-heading { flex-direction: column; }
  .dashboard-grid, .range-panel, .two-column, .detail-grid { grid-template-columns: 1fr; }
  .editor-fields { grid-template-columns: 1fr; }
  .editor-tab-fields, .activity-row-fields { grid-template-columns: 1fr; }
  .activity-row-head { align-items: flex-start; flex-direction: column; }
}
@media print {
  .sidebar, .context-bar, .mobile-nav, .page-actions, .button, .icon-button, .toolbar-controls,
  .section-order-tools, .help-trigger, .help-tooltip { display: none !important; }
  .app-shell { display: block; }
  main { padding: 0; }
  .panel, .record-card { box-shadow: none; break-inside: avoid; }
  .record-card-body { display: block !important; }
  details > :not(summary) { display: block !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}
.pager { display: flex; gap: .6rem; align-items: center; justify-content: flex-end; padding: .75rem 0; flex-wrap: wrap; }
.audit-details { white-space: pre-wrap; overflow: auto; max-height: 15rem; max-width: 34rem; padding: .75rem; background: #eef2f8; border-radius: .35rem; }

.collapse-title { color: inherit; font: inherit; font-weight: inherit; text-align: left; border: 0; background: none; cursor: pointer; padding: 0; }
.record-card.drop-before { border-top: 4px solid var(--accent, #1767a8); }
.record-card.drop-after { border-bottom: 4px solid var(--accent, #1767a8); }
[hidden] { display: none !important; }

.gantt-plan-summary { position: relative; margin-left: var(--lane-width, 180px); height: 28px; cursor: grab; touch-action: none; background: #eef3f8; }
.gantt-plan-summary .gantt-summary-bar { pointer-events: none; top: 7px; }

.wiki-illustration { display:block; max-width:100%; height:auto; margin: 1rem 0; }
.drill-field-option { display:flex; align-items:center; gap:.4rem; }
[data-drill-table] { table-layout:fixed; }
[data-drill-col] { min-width:90px; }
