/* Operational additions retain the existing brand surfaces and geometry. */
.period-tabs button[aria-pressed="true"],.period-tabs button[aria-pressed="true"]:hover { background:var(--selection);color:var(--selection-text); }
.period-tabs button[aria-busy="true"] { position:relative;cursor:progress; }
.period-tabs button[aria-busy="true"]::after { content:"";position:absolute;inset:3px;border:1px solid var(--accent);border-radius:inherit;opacity:.55;animation:period-request 1.2s ease-in-out infinite;pointer-events:none; }
@keyframes period-request { 50% { opacity:1; } }
@media(prefers-reduced-motion:reduce) { .period-tabs button[aria-busy="true"]::after { animation:none;opacity:.8; } }
.live-notice,.live-state { color:var(--text); background:var(--surface-raised); border:1px solid var(--control-border); border-radius:16px; padding:14px 18px; }
.live-notice { display:flex; align-items:flex-start; gap:12px; margin:16px 0; line-height:1.5; }
.live-notice svg { flex:0 0 20px; width:20px; height:20px; stroke:var(--accent); }
.live-notice[data-kind="error"] { border-color:var(--danger,#b44e44); }
.live-state { min-height:160px; display:grid; align-content:center; justify-items:start; gap:12px; margin:16px 0; }
.live-state h2,.live-state p,.live-notice p { margin:0; }
.live-status { display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:600; border:1px solid var(--control-border); border-radius:999px; padding:5px 10px; background:var(--surface-raised); color:var(--text); }
.live-status::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--accent); }
.live-status[data-state="pending"]::before { background:var(--text-muted,var(--text)); }
.live-form { display:grid; gap:18px; min-width:0; }
.live-form .form-field { min-width:0; }
.live-form .field { max-width:100%; }
.live-form .field[aria-invalid="true"] { border-color:var(--danger,#b44e44); }
.live-form [aria-busy="true"],.live-form button:disabled { opacity:.6; cursor:wait; }
.live-form .form-actions { display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-end; }
.live-form .error-text:empty { display:none; }
.live-form .error-text { color:var(--danger,#b44e44); line-height:1.45; }
.live-mfa { display:grid; gap:16px; align-items:start; }
.live-mfa-code { font-variant-numeric:tabular-nums; letter-spacing:.28em; font-size:24px; width:100%; max-width:280px; }
.live-mfa-qr { display:block; width:min(240px,100%); height:auto; border-radius:16px; padding:16px; background:#fff; }
.live-mfa-secret { overflow-wrap:anywhere; font-family:ui-monospace,monospace; font-size:13px; }
.live-grants { display:flex; gap:12px; flex-wrap:wrap; }
.live-grants label { display:flex; align-items:center; gap:8px; padding:10px 12px; border:1px solid var(--control-border); border-radius:12px; }
.live-grants input { accent-color:var(--accent); }
.live-candidate-flags { display:flex; gap:6px; flex-wrap:wrap; }
.live-table-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.live-provenance { font-size:12px; overflow-wrap:anywhere; line-height:1.5; color:var(--text-muted,var(--text)); }
.live-record-name { overflow-wrap:anywhere; }
.live-empty-value { color:var(--text-muted,var(--text)); }
.live-inline-error { padding:10px 12px; border-radius:10px; border:1px solid var(--danger,#b44e44); color:var(--text); background:var(--surface-raised); }
.live-dashboard { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px; }
.live-dashboard>article { min-width:0;min-height:240px;padding:25px; }
.live-dashboard .hero-card { grid-column:span 1;grid-row:auto; }
.live-dashboard .activity-card { grid-column:span 1;grid-row:auto; }
.live-dashboard .profit-card { grid-column:span 1;grid-row:auto;justify-content:space-between; }
.live-dashboard .live-finance-card { grid-column:span 2;grid-row:auto; }
.live-dashboard .target-card { grid-column:span 1;grid-row:auto; }
.live-dashboard .hero-footer { gap:12px;flex-wrap:wrap; }
.live-dashboard .hero-footer .btn { color:inherit; }
.live-hero-count { font-size:clamp(58px,6vw,96px);font-weight:600;line-height:1.3;letter-spacing:-.04em; }
.live-count { font-size:46px;font-weight:600;line-height:1.4; }
.live-count-row { display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid var(--control-border); }
.live-count-row:last-child { border-bottom:0; }
.live-count-row>strong { margin-left:auto;font-size:25px;font-weight:600; }
.live-pagination { display:flex;align-items:center;justify-content:flex-end;gap:15px;flex-wrap:wrap;padding:18px 0;font-size:12px; }
.live-state>svg { width:32px;height:32px;stroke:var(--accent);fill:none;stroke-width:1.5; }
.live-line-row { display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(85px,1fr)) auto;align-items:end;gap:12px;padding:14px 0;border-bottom:1px solid var(--control-border); }
.live-checkbox { display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.5; }
.live-checkbox input { margin-top:4px;accent-color:var(--accent);flex:0 0 auto; }
.live-spec { display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,2fr);gap:12px;line-height:1.5;font-size:13px; }
.live-spec dt { color:var(--text-muted,var(--text)); }
.live-spec dd { margin:0;overflow-wrap:anywhere; }
.live-source-detail { border-top:1px solid var(--control-border);padding:16px 0;margin:16px 0; }
.live-source-detail summary { cursor:pointer;font-weight:600; }
.live-org-select select { max-width:190px; }
.live-form hr { width:100%;border:0;border-top:1px solid var(--control-border); }
.live-form .form-field { display:flex;flex-direction:column;gap:7px; }
.live-form .form-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }
.live-form .field { width:100%;box-sizing:border-box; }
.live-notice+p { line-height:1.5; }
.live-status { white-space:nowrap; }
@media(max-width:1100px){.live-dashboard{grid-template-columns:repeat(2,minmax(0,1fr));}.live-dashboard .live-finance-card{grid-column:span 1;}.live-line-row{grid-template-columns:repeat(2,minmax(0,1fr));}.live-line-row>.form-field:first-child{grid-column:1/-1;}.live-org-select select{max-width:135px;}}
@media(max-width:760px){.live-dashboard{grid-template-columns:1fr;gap:16px;}.live-dashboard>article{grid-column:1!important;min-height:220px;}.live-line-row{grid-template-columns:repeat(2,minmax(0,1fr));}.live-spec{grid-template-columns:1fr;gap:6px;}.live-spec dd{margin-bottom:10px;}.live-org-select{flex:1;min-width:0;}.live-org-select select{max-width:100%;}.page-heading{flex-wrap:wrap;gap:14px;}}
.live-form :is(input,select,textarea,button):focus-visible,.live-table-actions button:focus-visible { outline:2px solid var(--focus); outline-offset:3px; }
@media(max-width:600px) { .live-notice,.live-state { padding:14px; } .live-form .form-grid { grid-template-columns:1fr; } .live-form .form-actions>* { flex:1 1 140px; } }
