/* Night waterfront — a quiet, blue-black ledger with coral navigation and sea-glass actions. */
:root, .nightshift {
  --canvas:#0b1522; --rail:#101e2e; --paper:#142637; --ink:#f6f0e3; --muted:#acc1cf;
  --line:#34495a; --accent:#ffc09f; --accent-bg:#413028; --nav:#101e2e;
  --green:#82e8d2; --green-bg:#173e3e; --warn:#f7ca88; --warn-bg:#392f25;
  --red:#ffb1b2; --red-bg:#452d35; --violet:#c9bcf5; --violet-bg:#343045;
  --vice-action-ink:#242019; --vice-mint:var(--green); --nav-ink:var(--muted);
  --nav-active:var(--accent); --bar:64px; --radius:9px;
  --system-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-family:var(--system-font); font-variant-numeric:tabular-nums;
}
html {background:var(--canvas)}
.nightshift {background:var(--canvas);color:var(--ink)}
.nightshift .skip-content {position:fixed;top:4px;left:12px;z-index:40;padding:10px 15px;background:var(--accent);color:#231c19;transform:translateY(-160%)}
.nightshift .skip-content:focus {transform:none}
.nightshift :focus-visible {outline:3px solid #8be9de;outline-offset:3px}
.nightshift .topbar {min-height:var(--bar);background:#0e1c2b;border-bottom:1px solid #354654;padding-inline:24px;gap:22px}
.nightshift .brand {gap:10px}
.nightshift .brand-mark {border-radius:9px}
.nightshift .brand > span {font:italic 720 28px/1 Arial,sans-serif;letter-spacing:-1.9px}
.nightshift .brand small {display:block;border:0;padding:0;margin:4px 0 0;color:#f2a88d;font:650 9px/1 var(--system-font);text-transform:uppercase;letter-spacing:1.55px}
.nightshift .identity-caption {display:none}
.nightshift .mode-tag {background:#37403e;color:#e5dfb3}
.nightshift .demo-role select,.nightshift .filter {border:1px solid #475c69;background-color:#152838;color:var(--ink);border-radius:7px}
.nightshift .button,.nightshift .icon-button {border-radius:7px}
.nightshift .button.primary {background:var(--accent);color:#291d19;border-color:var(--accent)}
.nightshift .button.secondary,.nightshift .icon-button {color:var(--ink);background:#203647;border-color:#375060}
.nightshift .button:hover:not(:disabled),.nightshift .icon-button:hover {background:#2a4050;border-color:#718b98;color:var(--ink)}
.nightshift .button.primary:hover:not(:disabled) {background:#ffd1b9;color:#291d19}
.nightshift .page-head {position:relative;isolation:isolate;overflow:hidden;min-height:113px;padding:19px 24px 22px;background-color:#172c40;border:1px solid #365262;border-radius:10px;margin:0 0 19px;align-items:center}
.nightshift .page-head::before {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(98deg,#172e43 15%,#18394a 49%,#294450 76%,#42394b)}
.nightshift .page-head::after {content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#ffa988;pointer-events:none}
.nightshift .page-head h1 {font:650 clamp(32px,3.2vw,50px)/1.12 var(--vice-display);letter-spacing:-.012em;color:#fff3df}
.nightshift .page-head p,.nightshift .page-head .freshness {color:#d1dfe3}
.nightshift .panel,.nightshift .finance-panel,.nightshift .assistant-compose,.nightshift .assistant-exchange,.nightshift .assistant-sources,.nightshift .selected-work {background:var(--paper);border:1px solid #304758;border-radius:9px}
.nightshift .panel .panel {border:0;background:transparent}
.nightshift .panel h2,.nightshift .finance-panel h2,.nightshift .board-section-head h2 {font-size:19px;letter-spacing:-.025em}
.nightshift .pill {background:#273d50;color:#d2deeb;border-radius:5px}
.nightshift .pill.deposit {color:#93efd7;background:#144442}
.nightshift .task-dialog {background:#122334;border:1px solid #577280;border-radius:12px}
.nightshift .task-detail textarea,.nightshift .owner-field .filter,.nightshift .assistant-compose textarea {border-color:#47606f;background:#0d1c2b;color:var(--ink)}
.nightshift .toast {background:#274756;color:#f8f3ea;border:1px solid #658c96}
.nightshift .data-head,.nightshift .data-row:nth-child(odd),.nightshift .data-row {background:var(--rail)}
.nightshift .data-row:nth-child(even) {background:#142334}
.nightshift .lane {background:#101d2c;border-color:#344a59;border-radius:9px}
.nightshift .lane-head {background:#213342;border-radius:5px}
.nightshift .lane[data-stage="active"] .lane-head {background:#1a3d4a}
.nightshift .lane[data-stage="review"] .lane-head {background:#383249}
.nightshift .lane[data-stage="done"] .lane-head {background:#1c3c39}
.nightshift .task-card {background:#192c3c;border-color:#364b5c;border-radius:7px}
.nightshift .task-card:hover {background:#21394a;border-color:#699398}
.nightshift .team-board {--board-divider:#344b59}
.nightshift .board-controls {gap:11px 20px;margin:0 0 12px}
.nightshift .board-periods {border-radius:7px;background:#112232;border:1px solid var(--line)}
.nightshift .board-period[aria-pressed="true"] {background:#f6bb9f;color:#241f1b;border-color:transparent}
.nightshift .board-demo-note {margin-bottom:7px;color:var(--muted)}
.nightshift .board-kpis {background:transparent;border:1px solid #39515e;border-radius:9px;overflow:hidden}
.nightshift .board-kpi {background:#142837;border-color:#39515e}
.nightshift .board-kpi:nth-child(-n+3) {background:#1a3240}
.nightshift .board-kpi:nth-child(3) {box-shadow:inset 0 3px #80d9c5}
.nightshift .board-kpi h2 {color:#d6e1e4;min-height:36px;line-height:1.4}
.nightshift .board-kpi .board-number {font:600 clamp(27px,2.55vw,39px)/1.15 var(--vice-display);white-space:normal}
.nightshift .board-recorded-basis {background:#151f28;border:0;border-left:3px solid var(--warn);padding:9px 13px;margin:10px 0;color:var(--muted)}
.nightshift .board-recorded-basis strong {margin-bottom:2px}
.nightshift .board-recorded-basis .board-scope-note {margin-top:2px}
.nightshift .board-section {margin-bottom:27px}
.nightshift .board-table-scroll,.nightshift .team-table-wrap {border:1px solid #344958;border-radius:8px;background:#101e2c}
.nightshift .board-stat-table thead th,.nightshift .team-table thead th {font-size:12px;color:#c8d9e1;background:#1d3140}
.nightshift .board-stat-table tfoot,.nightshift .team-table tfoot {background:#1d3140}
.nightshift .board-stat-table tbody > tr:not(.board-details-row):hover {background:#172b3a}
.nightshift .team-table tbody tr {border-color:#314454}
.nightshift .team-table tbody tr.selected {background:#f5bd9f}
.nightshift .board-metric .board-value-state,.nightshift .board-metric .board-known-number {font-size:11px}
.nightshift .bottom-nav {background:#102131;border-top:1px solid #415663}
.nightshift .bottom-nav .nav-item {border-radius:6px}
.nightshift .bottom-nav .nav-item[aria-current="page"] {color:#ffc09f;background:#263645;box-shadow:inset 0 2px #ffb48f}
.nightshift .board-lower {gap:20px}
.nightshift .board-lower > .board-section {padding:16px;border:1px solid #354b59;border-radius:9px;background:#102231}
.nightshift details>summary {text-underline-offset:3px}
.nightshift :is(.data-row,.plain-row,.action-row,.overview-link):hover {background:#1c3344}
@media(min-width:1100px) {
 .nightshift {--rail-size:194px}
 .nightshift .topbar {padding:0 25px 0 20px}
 .nightshift .topbar .brand {width:calc(var(--rail-size) - 22px);min-width:0}
 .nightshift .identity-caption {display:flex;align-items:baseline;gap:9px;font-size:13px}
 .nightshift .identity-caption span {color:var(--muted);font-size:12px}
 .nightshift #desktop-nav {display:none}
 .nightshift .layout:not(.leads-only) {padding-left:var(--rail-size)}
 .nightshift .layout:not(.leads-only) .sidebar {position:fixed;display:flex!important;top:var(--bar);bottom:0;left:0;width:var(--rail-size);height:calc(100dvh - var(--bar));flex-direction:column;padding:16px 12px 15px;background:#101e2d;border-right:1px solid #304351;overflow:auto;z-index:4}
 .nightshift #rail-nav {display:grid;gap:2px}
 .nightshift #rail-nav .nav-item {justify-content:flex-start;gap:11px;padding:0 11px;min-height:39px;font-size:13px;font-weight:550;letter-spacing:0;border-radius:6px;color:#bbcad5}
 .nightshift #rail-nav .nav-item .icon {height:17px;width:17px;color:#96afbb}
 .nightshift #rail-nav .nav-item[aria-current="page"] {color:var(--accent);background:#27343c;box-shadow:inset 2px 0 var(--accent)}
 .nightshift #rail-nav .nav-item[aria-current="page"] .icon {color:var(--accent)}
 .nightshift #rail-nav .nav-item:hover {background:#203443;color:var(--ink)}
 .nightshift .sidebar-footer {margin-top:auto;padding:22px 9px 0;font-size:12px;color:var(--muted)}
 .nightshift .sidebar-footer .bot-link {color:#bce1de}
 .nightshift .sidebar-footer p {color:var(--muted)}
 .nightshift .content {padding:22px clamp(20px,2.15vw,38px) 55px;max-width:1720px}
}
@media(min-width:800px) and (max-width:1099px) {
 .nightshift .topbar {gap:12px;padding-inline:15px}
 .nightshift #desktop-nav .nav-item {min-height:64px}
}
@media(max-width:799px) {
 .nightshift {--bar:60px}
 .nightshift .topbar {min-height:var(--bar);padding-inline:max(13px,env(safe-area-inset-left)) max(13px,env(safe-area-inset-right));gap:8px}
 .nightshift .brand {gap:7px}
 .nightshift .brand > span {font-size:23px}
 .nightshift .brand small {font-size:8px;letter-spacing:1.1px}
 .nightshift .content {padding-inline:14px;padding-top:13px}
 .nightshift .page-head {min-height:83px;padding:15px 14px;margin-bottom:14px;border-radius:8px}
 .nightshift .page-head h1 {font-size:32px}
 .nightshift .page-head p {font-size:13px;line-height:1.35}
 .nightshift .overview-page-head .freshness {font-size:11px}
 .nightshift .overview-page-head .freshness small {display:inline;margin-left:5px;font-size:11px}
 .nightshift .board-kpis-recorded .board-kpi {padding:11px 12px}
 .nightshift .board-kpis-recorded h2,.nightshift .board-kpis-recorded .board-kpi:last-child h2 {min-height:30px}
 .nightshift .board-kpi .board-number {font-size:29px}
 .nightshift .board-kpi > p {margin-top:4px}
 .nightshift .board-period {min-height:43px}
 .nightshift .board-lower > .board-section {padding:13px}
 .nightshift .bottom-nav .nav-item {min-height:48px}
}
@media(prefers-reduced-motion:reduce) {
 .nightshift *, .nightshift *::before,.nightshift *::after {animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
/* The public illustration sits behind the section heading; live controls have their own surfaces. */
.nightshift .page-head::before {
  background:linear-gradient(90deg,#112738 4%,#112738 52%,#11273877 65%,#10263742 100%),
             url("marina-panorama.webp") right 53% / auto 185% no-repeat,#132939;
}
.nightshift .page-head .freshness {padding:3px 7px;border-radius:4px;background:#0d2030e8}
@media(min-width:1100px){
 .nightshift .board-kpis-recorded .board-kpi h2 {display:block;min-height:40px}
 .nightshift .board-kpis-recorded .board-currency {margin-left:3px}
}
@media(max-width:799px){
 .nightshift .page-head::before {background:linear-gradient(90deg,#112738 6%,#112738ec 39%,#11273894 70%,#11273836),url("marina-panorama.webp") 85% 54% / auto 130% no-repeat,#132939}
 .nightshift .overview-page-head .freshness {justify-self:start}
 .nightshift .board-periods {display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
 .nightshift .board-period {flex:1 0 auto;padding:6px 5px;min-height:44px;font-size:12px}
}
.nightshift .pill.good {background:var(--green-bg);color:var(--green)}
.nightshift .pill.attn {background:var(--warn-bg);color:var(--warn)}
.nightshift .pill.bad {background:var(--red-bg);color:var(--red)}
.nightshift .pill.info {background:#223c4c;color:#b2d9ed}
.nightshift .pill.review {background:var(--violet-bg);color:var(--violet)}
.nightshift .lane-head {align-items:center;padding:6px 9px;margin-bottom:6px}
.nightshift .board-toolbar .search,.nightshift .board-filter-toggle {border-color:#405667;border-radius:7px}
.nightshift .next-task {padding:clamp(17px,2.1vw,30px);background:#193243;border:1px solid #426170;border-left:3px solid var(--green);border-radius:8px}
.nightshift .next-task h2 {font-size:clamp(22px,2vw,31px);letter-spacing:-.025em}
.nightshift .buyer-aside {padding:17px;background:#101f2e;border:1px solid #334a59;border-radius:8px}
.nightshift .buyer-metrics dd {font:600 25px/1.1 var(--vice-display);color:var(--green)}
.nightshift .task-line .icon,.nightshift .overview-link .icon {color:var(--accent)}
.nightshift .bottom-nav .nav-item:focus-visible,.nightshift .board-period:focus-visible {outline-offset:-3px}
@media(max-width:799px) {
 .nightshift .board-page-head {min-height:72px;padding:10px 12px;gap:4px 9px;margin-bottom:9px}
 .nightshift .board-page-head.all-members-heading > div:first-child > p {display:none}
 .nightshift .board-page-head .freshness {padding:1px 4px}
 .nightshift .board-controls {gap:6px 10px;margin-bottom:5px}
 .nightshift .board-kpis-recorded .board-kpi {padding:9px 10px}
 .nightshift .board-kpis-recorded h2,.nightshift .board-kpis-recorded .board-kpi:last-child h2 {display:block;min-height:28px;margin:0 0 2px}
 .nightshift .board-currency {margin-left:3px}
 .nightshift .board-kpis-recorded .board-kpi p {line-height:1.25;font-size:11px}
 .nightshift .board-demo-note {font-size:11px;margin-bottom:6px}
}
@media(max-width:359px){
 .nightshift .topbar {padding-inline:8px;gap:3px}
 .nightshift .brand {gap:4px}
 .nightshift .brand-mark {width:23px;height:23px}
 .nightshift .brand > span {font-size:19px}
 .nightshift .brand small {font-size:7px;margin-top:2px}
 .nightshift .top-actions {gap:3px}
 .nightshift .demo-role select {max-width:101px;padding-inline:3px}
 .nightshift .top-actions .avatar-top {display:none}
}

.report-form .report-editor, .report-form .caps-editor-row {
  min-width: 0; margin: 0; padding: 0; border: 0;
}
.report-editor, .caps-rows { display: grid; gap: .8rem; }
.report-form .caps-editor-row { padding: .8rem; border: 1px solid var(--line, #334958); border-radius: .65rem; }
.caps-fields { display: grid; grid-template-columns: .8fr 1fr 1.2fr; gap: .55rem; }
.caps-field { display: grid; gap: .25rem; min-width: 0; }
.caps-field input { width: 100%; min-width: 0; box-sizing: border-box; }
.caps-row-buttons { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .55rem; }
.caps-test { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.5rem; }
.report-form .caps-test input { width: 1.1rem; height: 1.1rem; min-height: 0; }
.caps-fields input:disabled { opacity: .5; }
