/* Shared workspace layout and page compositions. */
.gate, .app, #reminderModal {
  --jis-navy-950:#09182c;
  --jis-navy-900:#132b46;
  --jis-navy-800:#193756;
  --jis-blue-700:#285cd4;
  --jis-blue-100:#edf2ff;
  --jis-gold:#e9bf58;
  --jis-canvas:#f5f7fa;
  --jis-border:#dce3ed;
  --jis-text:#132b46;
  --jis-muted:#50627a;
  --jis-radius-lg:13px;
  --jis-shadow:0 14px 36px #09182c0a,0 1px 2px #09182c08;
  --jis-sidebar-width:222px;
  --jis-topbar-height:60px;
}
h1,h2,h3,h4,.stat b,.kpi b { font-family:var(--jis-display); }
.gate-shell { grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr); background:#f5f7fa; }
.gate-feature { position:relative; overflow:hidden; isolation:isolate; min-height:100vh; justify-content:flex-start; padding:clamp(36px,5vw,94px); gap:clamp(72px,17vh,170px); background:linear-gradient(145deg,#09182c 30%,#132b46 82%); }
.gate-identity { font-weight:575; font-size:13px; }
.gate-identity img { width:52px; height:52px; border-radius:7px; }
.gate-feature h2 { font-size:clamp(62px,7vw,124px); line-height:.94; font-weight:640; letter-spacing:-.077em; }
.gate-feature p { max-width:36ch; color:#c5d3e7; font-size:clamp(15px,1.55vw,20px); margin-top:25px; }
.gate-feature p::after { display:none; }
.gate-signal { position:absolute; z-index:-1; inset:auto 0 8%; width:100%; height:24%; overflow:visible; fill:none; }
.signal-grid { stroke:#9fbbdd29; stroke-width:1; }
.signal-main { stroke:#e9bf58; stroke-width:1.4; }
.signal-shadow { stroke:#e9bf58; stroke-width:8; opacity:.09; }
.gate-signal circle { fill:#e9bf58; }
.gate-card { width:min(86%,465px); padding:clamp(26px,3.4vw,50px); border-radius:16px; }
.gate-brand { border:0; padding:0; margin-bottom:25px; color:#50627a; font-size:13px; font-weight:600; }
.gate-brand [data-ui-icon] { width:36px; height:36px; border-radius:8px; background:#edf2ff; color:#285cd4; }
.gate-card h1 { font-size:clamp(28px,3vw,43px); letter-spacing:-.055em; line-height:1.07; font-weight:720; }
.gate-card p { line-height:1.7; margin:13px 0 23px; }
#organisationSignIn { width:100%; min-height:48px; color:#132b46; background:#fff; border:1px solid #b7c5d8; gap:12px; }
#organisationSignIn:hover { background:#edf2ff; border-color:#285cd4; }
#localSignIn button { background:#285cd4; color:white; border-color:#285cd4; }
.app { background:var(--jis-canvas); }
.app .side { background:linear-gradient(180deg,#09182c 45%,#132b46); padding:23px 13px 20px; }
.app .brand { padding:0 4px 22px; }
.app .brand .logo { width:42px; height:42px; border-radius:7px; }
.app .brand b { font-family:var(--jis-display); font-size:14px; font-weight:720; }
.app .nav button { min-height:41px; margin-bottom:3px; font-weight:525; font-size:12px; color:#c9d6e8; }
.app .nav button .ui-icon { width:17px; height:17px; }
.app .nav button.active { background:#193655; border-color:#34506e; box-shadow:inset 2px 0 #e9bf58; color:#fff; }
.app .sidefoot { border-top:1px solid #ffffff26; margin-top:auto; }
.app .top { background:#fff; }
.app .content { padding:clamp(19px,2.6vw,43px); }
.app #environmentNote { margin:0 0 19px; padding:6px 11px; border-color:#dee6f2; font-size:11px; }
#workspace > section .title { margin-bottom:18px; padding-bottom:19px; border-bottom:1px solid #dbe3ef; }
#workspace > section .title h1 { font-weight:690; font-size:clamp(31px,3.55vw,57px); line-height:1.04; letter-spacing:-.065em; }
#workspace > section .hero-date { color:#51657e; font-weight:600; margin-bottom:9px; font-size:12px; }
#workspace > section .page-icon { background:#edf2ff; border:1px solid #dbe5fb; color:#285cd4; }
#workspace > section .card { padding:clamp(14px,1.5vw,24px); }
#workspace > section .cardhead h3 { font-size:clamp(17px,1.55vw,23px); font-weight:715; letter-spacing:-.039em; }
#workspace > section .btn, .app #signOut { font-weight:600; font-size:13px; border-radius:7px; }
#workspace > section .btn:not(.alt) { background:#285cd4; border-color:#285cd4; }
#workspace > section .btn:not(.alt):hover { background:#1f48a7; }
#workspace > section :is(input:not([type=checkbox]),select,textarea) { background:#fff; border:1px solid #c9d4e3; border-radius:7px; }
#workspace > section :is(input:not([type=checkbox]),select,textarea):focus { border-color:#285cd4; }
#workspace > section .field { font-weight:600; font-size:12px; }
#workspace > section .field :is(input,textarea,select,span) { font-weight:400; }

/* Executive overview */
#execForm .filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; align-items:end; gap:11px; margin:0 0 17px; }
.executive-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); background:white; border:1px solid #dce3ed; border-radius:11px; margin-bottom:17px; }
.executive-metrics > div { min-width:0; padding:16px clamp(12px,1.7vw,28px); }
.executive-metrics > div + div { border-left:1px solid #e4e9f1; }
.executive-metrics span { color:#50627a; display:block; font-size:12px; font-weight:550; }
.executive-metrics strong { display:block; margin-top:5px; font:690 clamp(26px,3.4vw,49px)/1 var(--jis-display); letter-spacing:-.065em; font-variant-numeric:tabular-nums; }
.executive-primary, .executive-secondary, .executive-tables { display:grid; gap:16px; margin-bottom:16px; align-items:stretch; }
.executive-primary { grid-template-columns:minmax(0,2.15fr) minmax(0,1fr); }
.executive-secondary { grid-template-columns:repeat(3,minmax(0,1fr)); }
.executive-tables { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); }
.executive-primary > .card, .executive-secondary > .card { margin-bottom:0; }
.coverage-panel { min-width:0; border-radius:13px; padding:17px clamp(11px,1.55vw,25px) 14px; color:#eef4ff; background:linear-gradient(150deg,#122d4c,#09182c 70%); box-shadow:0 12px 20px #09182c17; }
.coverage-head { display:flex; align-items:start; justify-content:space-between; flex-wrap:wrap; gap:5px 16px; }
.coverage-head h2 { margin:0; font-size:22px; font-weight:690; letter-spacing:-.045em; }
.coverage-head p { margin:3px 0 8px; font-size:12px; color:#aec0d7; }
.chart-legend { display:flex; flex-wrap:wrap; gap:12px; color:#dce8f8; font-size:11px; }
.chart-legend span::before { content:""; display:inline-block; width:13px; height:3px; margin:0 5px 3px 0; background:#e9bf58; }
.chart-legend span + span::before { background:#74a0ff; }
.coverage-plot { position:relative; }
.coverage-plot svg { width:100%; display:block; overflow:visible; }
.coverage-plot text { font-size:13px; fill:#becde0; }
.chart-grid { stroke:#92abc337; }
.coverage-line,.entries-line { fill:none; stroke:#74a0ff; stroke-width:2.6; vector-effect:non-scaling-stroke; }
.entries-line { stroke:#e9bf58; stroke-width:1.4; stroke-dasharray:5 4; }
.coverage-plot circle { fill:#b6cdff; }
.trend-point { position:absolute; width:20px; height:20px; top:var(--y); left:var(--x); transform:translate(-50%,-50%); border-radius:50%; }
.trend-point:focus-visible { outline:2px solid #e9bf58; outline-offset:0; }
.trend-point > span { position:absolute; z-index:2; pointer-events:none; display:none; bottom:110%; left:50%; transform:translateX(-50%); padding:6px 9px; background:#fff; color:#09182c; border-radius:6px; white-space:nowrap; font-size:11px; box-shadow:0 8px 18px #0004; }
.trend-point:hover > span,.trend-point:focus > span { display:block; }
.mix-ring-layout { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:13px; }
.tone-ring { width:clamp(94px,8.8vw,155px); aspect-ratio:1; display:grid; place-items:center; border-radius:50%; background:conic-gradient(var(--slices)); }
.tone-ring > span { width:73%; aspect-ratio:1; display:grid; align-content:center; text-align:center; border-radius:50%; background:white; }
.tone-ring b { font:700 27px/1 var(--jis-display); }
.tone-ring small { color:#50627a; font-size:11px; }
.mix-key,.agency-ranking { margin:0; padding:0; list-style:none; }
.mix-ring-layout .mix-key { flex:1 0 112px; }
.mix-key li,.agency-ranking li { display:flex; gap:8px; align-items:center; min-height:28px; font-size:12px; }
.mix-key li b,.agency-ranking li b { margin-left:auto; font-weight:620; font-variant-numeric:tabular-nums; }
.mix-key i { width:8px; height:8px; border-radius:50%; background:var(--swatch); flex:none; }
.media-stack { display:flex; overflow:hidden; height:13px; border-radius:4px; margin:0 0 12px; }
.media-stack i + i { border-left:1px solid white; }
.agency-ranking li + li,.mix-stack-layout li + li { border-top:1px solid #ecf0f5; }
.executive-operations strong { font-size:29px; }
.heat { display:inline-block; min-width:33px; padding:3px 8px; text-align:center; border-radius:4px; background:#f4f6fa; }
.heat[data-level="1"] { background:#e3ebfc; }
.heat[data-level="2"] { background:#cadbfa; }
.heat[data-level="3"] { background:#aac5f4; }
.heat[data-level="4"] { background:#2b58af; color:white; }

/* Editorial workspace */
.entry-assignment > .card { border-top:3px solid #285cd4; }
.entry-assignment .formgrid { margin-bottom:8px; }
.entry-assignment #entryDeadline { margin:0; font-size:12px; padding:7px 10px; }
.entry-assignment #dutyMeta { align-self:center; color:#50627a; }
.entry-assignment #lateReasonBox { margin-top:12px; }
.entry-assignment #lateReason { min-height:62px; }
.entry-compose { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); align-items:start; gap:16px; }
.entry-story-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.entry-story-grid label:has(#entryHeadline) { grid-column:1/-1; grid-row:2; }
.entry-story-grid label:has(#entrySummary) { grid-column:1/-1; grid-row:3; }
.entry-story-grid label:has(#entryResult) { grid-column:1/-1; }
#entryHeadline { font:650 clamp(18px,2vw,28px)/1.25 var(--jis-display); padding:12px; }
#workspace > section .story-input { min-height:clamp(236px,32vh,460px); padding:16px; font-size:15px; line-height:1.7; }
.entry-inspector .formgrid { grid-template-columns:1fr; }
.entry-inspector .formgrid textarea { min-height:85px; }
#entryForm #suggestionPopup { position:static; margin:15px 0 0; background:#f4f7ff; border:1px solid #d4dff6; border-left:3px solid #e9bf58; box-shadow:none; }
#suggestionPopup p { margin:5px 0; }
#suggestionSeconds { align-self:center; font-variant-numeric:tabular-nums; color:#405879; }
.entry-actions { border-top:1px solid #dce3ed; padding-top:12px; margin-top:1px; }

/* Manager duty planning */
#workspace > section #dutyCalendar { min-width:0; padding:16px; background:#f5f7fa; border:1px solid #e1e7ef; border-radius:10px; }
#workspace > section .duty-builder { grid-template-columns:minmax(0,1.18fr) minmax(0,1fr); gap:clamp(15px,2vw,28px); align-items:start; }
#workspace > section .duty-builder .formgrid { grid-template-columns:1fr 1fr; gap:10px; }
#workspace > section .day-tile { min-height:clamp(40px,4vw,54px); background:#fff; border:1px solid #dce4ef; border-radius:6px; font-size:13px; }
#workspace > section .day-tile:disabled { background:#eef1f6; border-color:transparent; color:#4b5e77; opacity:.85; }
#workspace > section .day-tile:not(:disabled):hover { border-color:#285cd4; }
#workspace > section .day-tile[aria-pressed="true"] { background:#285cd4; }
#workspace > section .calendar-toolbar strong { font:700 clamp(15px,1.6vw,22px)/1.2 var(--jis-display); text-align:center; letter-spacing:-.04em; }
#workspace > section .month-calendar { gap:5px; }
#workspace > section .month-calendar > b { padding:4px 0; }
#workspace > section .compact-roster .roster-day { border:0; padding:0; gap:9px; }
#workspace > section .compact-roster article { background:#f6f8fc; border:1px solid #e1e7ef; border-left:3px solid #6c91e8; padding:11px; }
#reminderModal { box-shadow:0 25px 80px #09182c4d; border-radius:13px; }

@media(max-width:1040px) {
  .executive-primary { grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); }
  .executive-tables { grid-template-columns:minmax(0,1fr); }
  #workspace > section .duty-builder { grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); }
}
@media(max-width:760px) {
  .gate-shell { display:grid; grid-template-columns:1fr; grid-template-rows:auto 1fr; }
  .gate-feature { min-height:0; padding:22px 25px 31px; gap:26px; }
  .gate-feature h2 { font-size:clamp(36px,8.7vw,61px); }
  .gate-feature h2 br { display:initial; }
  .gate-feature p { margin-top:10px; font-size:13px; max-width:30ch; }
  .gate-identity img { width:38px; height:38px; }
  .gate-signal { inset:auto -27% 7% auto; width:75%; height:50%; opacity:.55; }
  .gate-card { margin:25px auto; align-self:start; width:min(92%,465px); }
  .executive-primary,.executive-secondary,.entry-compose,#workspace > section .duty-builder { grid-template-columns:minmax(0,1fr); }
  .executive-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .executive-metrics > div:nth-child(3) { border-left:0; }
  .executive-metrics > div:nth-child(n+3) { border-top:1px solid #e4e9f1; }
  #execForm .filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app .side { padding:10px 13px; }
  .app .brand { padding:0; }
  #workspace > section .day-tile { min-height:39px; }
}
@media(max-width:380px) {
  #workspace > section .duty-builder .formgrid { grid-template-columns:1fr; }
  #workspace > section #dutyCalendar { padding:8px; }
  #workspace > section .month-calendar { gap:2px; }
}
