/* Back office of the line.
   Type: Assistant (same family as the tambur-center site), self-hosted.
   Look: a night newsroom. A deep ink frame around warm paper, one copper
   signal colour for "needs a human now", and calm status colours. */
@font-face { font-family: "Assistant"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/static/fonts/assistant-hebrew.woff2) format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/static/fonts/assistant-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f3efe6; --panel: #fffdf8; --panel-2: #f8f4ec; --ink: #121c2e; --ink-2: #3a475e; --muted: #7b8294;
  --line: #e7e0d2; --line-2: #d9cfbd;
  --night: #0b1424; --night-2: #13213a; --side-ink: #a9b5cc; --side-on: #ffffff;
  --accent: #2547d0; --accent-2: #e7ecfb; --accent-ink: #fff;
  --signal: #d2691e; --signal-2: #fbeee2; --gold: #e7b65c;
  --ok: #0d7a4c; --ok-2: #e2f2e9; --warn: #a35a00; --warn-2: #fbefdc; --bad: #b42318; --bad-2: #fbe7e4;
  --shadow: 0 1px 1px #121c2e0a, 0 2px 4px #121c2e0a, 0 12px 28px -14px #121c2e33;
  --shadow-lift: 0 2px 4px #121c2e0f, 0 18px 40px -16px #121c2e47;
  --r: 0; --r-s: 0;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c1220; --panel: #131c2e; --panel-2: #182337; --ink: #ecf0f7; --ink-2: #bcc6d8; --muted: #8590a6;
    --line: #233049; --line-2: #2f3d5a; --night: #070c17; --night-2: #0f1a2f;
    --accent: #7a9cff; --accent-2: #1b2848; --accent-ink: #0b1220; --signal: #f0924a; --signal-2: #3a2416;
    --ok: #4cc38a; --ok-2: #10301f; --warn: #f0a742; --warn-2: #33260f; --bad: #ff7a6b; --bad-2: #3a1a17;
    --shadow: 0 1px 2px #0006, 0 12px 28px -14px #000a; --shadow-lift: 0 18px 40px -16px #000c; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 "Assistant", "Segoe UI", Arial, sans-serif; background: var(--bg); color: var(--ink);
  font-feature-settings: "tnum"; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 22px; }
h2 { font-size: 18px; font-weight: 800; margin: 0 0 14px; letter-spacing: -.005em; }
small, .muted { color: var(--muted); } p.muted { font-size: 14.5px; }
hr { border: 0; border-top: 1px solid #ffffff14; margin: 12px 14px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--gold); color: var(--night); }

/* --- frame: a full-height night sidebar, the page beside it --- */
.layout { display: flex; min-height: 100vh; }
.side { width: 256px; flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  color: var(--side-ink); overflow: hidden;
  background: radial-gradient(420px 260px at 100% 0%, #2547d033, transparent 70%),
              radial-gradient(360px 300px at 0% 100%, #d2691e26, transparent 70%),
              linear-gradient(180deg, var(--night-2), var(--night)); }
.side::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(#ffffff10 1px, transparent 1px); background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000, transparent 45%); }
.masthead { position: relative; display: grid; gap: 8px; justify-items: start; padding: 26px 24px 20px; margin: 0 !important;
  border-bottom: 1px solid #ffffff12; background: none !important; box-shadow: none !important; }
.masthead img { width: 128px; height: auto; display: block; filter: drop-shadow(0 2px 10px #0006); }
.masthead span { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--gold); }
.masthead:hover { text-decoration: none; }
.side-links { position: relative; flex: 1; overflow-y: auto; padding: 14px 12px; scrollbar-width: thin; scrollbar-color: #ffffff22 transparent; }
.side-links a { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-bottom: 2px; border-radius: 0;
  color: var(--side-ink); font-weight: 600; font-size: 15.5px; transition: background .15s, color .15s; }
.side-links a:hover { background: #ffffff0d; color: var(--side-on); text-decoration: none; }
.side-links a.on { background: linear-gradient(270deg, #ffffff1f, #ffffff08); color: var(--side-on); }
.side-links a.on::before { content: ""; position: absolute; inset-inline-start: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0;
  background: linear-gradient(var(--gold), var(--signal)); box-shadow: 0 0 14px var(--signal); }
.side-links a.on .ico { color: var(--gold); }
.side-links a.soon { opacity: .45; }
.side-links small { margin-inline-start: auto; font-size: 11px; font-weight: 700; color: inherit; border: 1px solid #ffffff2e; border-radius: 0; padding: 0 8px; }
.side-foot { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-top: 1px solid #ffffff12; background: #00000026; }
.side-foot .who-text b { color: #fff; font-size: 14.5px; } .side-foot .who-text small { color: var(--side-ink); }
.avatar { width: 38px; height: 38px; border-radius: 0; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--gold), var(--signal)); color: var(--night); font-weight: 800; font-size: 17px; }
.who-text { display: grid; line-height: 1.2; } .who-text small { font-size: 12.5px; }
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 36px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.brand { display: none; } .brand img { height: 32px; width: auto; display: block; }
.today { color: var(--muted); font-weight: 700; font-size: 14px; }
.who { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.who a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 700; padding: 7px 12px; border-radius: 0; }
.who a:hover { background: var(--panel); text-decoration: none; box-shadow: var(--shadow); }
.who .ico { width: 17px; height: 17px; }
.menu-btn { display: none; }
.scrim { display: none; }
main { flex: 1; width: 100%; max-width: 1200px; padding: 30px 36px 70px; animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* --- surfaces --- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card > h2:first-child { display: flex; align-items: center; gap: 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; } .card-head a { font-weight: 700; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { margin: 0; padding: 20px 22px; position: relative; overflow: hidden; }
.stat b { display: block; font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-weight: 700; font-size: 14.5px; }
.stat::after { content: ""; position: absolute; inset-inline-end: -30px; top: -30px; width: 110px; height: 110px; border-radius: 0;
  background: radial-gradient(var(--accent-2), transparent 70%); }
.stats .stat:nth-child(2n)::after { background: radial-gradient(var(--signal-2), transparent 70%); }
.list { margin: 0 0 12px; padding: 0; list-style: none; }
.list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li > a:first-child { font-weight: 700; }
.crumbs { font-size: 14px; margin: 0 0 4px; color: var(--muted); font-weight: 600; }

/* --- home --- */
.hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 34px 36px 32px; margin-bottom: 22px; border-radius: 0; color: #fff; isolation: isolate;
  background: radial-gradient(600px 300px at 0% 0%, #2547d0aa, transparent 65%),
              radial-gradient(500px 320px at 100% 120%, #d2691e88, transparent 60%),
              linear-gradient(135deg, var(--night-2), var(--night));
  box-shadow: 0 30px 60px -30px #0b1424aa; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6;
  background-image: linear-gradient(#ffffff0b 1px, transparent 1px), linear-gradient(90deg, #ffffff0b 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(ellipse at 30% 40%, #000, transparent 75%); }
.hero h1 { margin: 2px 0 16px; font-size: 40px; color: #fff; }
.hero-eyebrow { margin: 0; color: var(--gold); font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.hero-status { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-next { color: #c6d0e2; font-weight: 600; font-size: 15px; }
.live { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 16px; border-radius: 0; font-weight: 800; font-size: 14.5px;
  background: #ffffff14; border: 1px solid #ffffff26; backdrop-filter: blur(6px); }
.live i { width: 9px; height: 9px; border-radius: 0; background: #3ddc84; box-shadow: 0 0 0 0 #3ddc84aa; animation: pulse 1.8s infinite; }
.live.is-closed i { background: var(--gold); animation: none; box-shadow: 0 0 10px var(--gold); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px #3ddc8400; } 100% { box-shadow: 0 0 0 0 #3ddc8400; } }
.hero-figures { display: flex; gap: 10px; }
.hero-figures div { min-width: 118px; padding: 14px 18px; border-radius: 0; background: #ffffff10; border: 1px solid #ffffff1c; backdrop-filter: blur(8px); }
.hero-figures b { display: block; font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.hero-figures span { font-size: 13px; font-weight: 700; color: #c6d0e2; }
.hero-wave { position: absolute; inset-inline: 0; bottom: -6px; width: 100%; height: 90px; z-index: -1; opacity: .5; }
.hero-wave path { fill: none; stroke: var(--gold); stroke-width: 1.6; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s .2s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.alert { display: block; padding: 14px 20px; margin-bottom: 20px; border-radius: 0; background: var(--bad-2); color: var(--bad); font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--bad) 25%, transparent); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 18px 20px; border-radius: 0; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink);
  transition: transform .15s, box-shadow .15s; }
a.kpi:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.kpi b { font-size: 32px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.kpi > span:last-child { grid-column: 2; color: var(--muted); font-weight: 700; font-size: 14px; line-height: 1.3; }
.kpi-ico { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 0; display: grid; place-items: center; color: var(--accent); background: var(--accent-2); }
.kpi-ico.ok { color: var(--ok); background: var(--ok-2); } .kpi-ico.warn { color: var(--warn); background: var(--warn-2); }
.kpi-ico.signal { color: var(--signal); background: var(--signal-2); }
.kpi-ico .ico { width: 24px; height: 24px; }
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.split > .card { margin: 0; }
.chart-card { color: var(--accent); }
.chart-card h2, .chart-foot { color: var(--ink); }
.area { width: 100%; height: 190px; display: block; overflow: visible; }
.area .grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 5; }
.area-x { display: flex; justify-content: space-between; direction: ltr; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.area-x span { flex: 1; text-align: center; } .area-x span:first-child { text-align: left; } .area-x span:last-child { text-align: right; }
.chart-foot { margin: 12px 0 0; font-size: 14px; color: var(--muted); } .chart-foot b { color: var(--ink); font-size: 18px; }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.queue a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 0; color: var(--ink); border: 1px solid var(--line);
  background: var(--panel-2); transition: border-color .15s, transform .15s; }
.queue a:hover { text-decoration: none; border-color: var(--accent); transform: translateX(-2px); }
.q-play { width: 40px; height: 40px; border-radius: 0; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--signal))); }
.q-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; } .q-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-text small { font-size: 13px; }

/* --- controls --- */
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
input, select, textarea, button { font: inherit; font-size: 15px; }
input, select, textarea { padding: 10px 13px; border: 1px solid var(--line-2); border-radius: 0; background: var(--panel); color: var(--ink);
  transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-2); }
textarea { width: 100%; max-width: 680px; line-height: 1.6; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); vertical-align: middle; }
input[type=file] { padding: 7px; background: var(--panel-2); }
button { padding: 10px 20px; border-radius: 0; border: 0; color: var(--accent-ink); font-weight: 800; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  box-shadow: 0 1px 0 #ffffff33 inset, 0 6px 16px -8px var(--accent); transition: transform .08s, filter .15s, box-shadow .15s; }
button:hover { filter: brightness(1.07); box-shadow: 0 1px 0 #ffffff33 inset, 0 10px 22px -10px var(--accent); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .4; cursor: not-allowed; filter: none; transform: none; box-shadow: none; }
button.quiet { background: var(--panel); color: var(--ink-2); border: 1px solid var(--line-2); font-weight: 700; box-shadow: none; }
button.quiet:hover { background: var(--panel-2); }
button.needs-listen:not(:disabled) { background: linear-gradient(180deg, color-mix(in srgb, var(--ok) 85%, #fff), var(--ok)); box-shadow: 0 6px 16px -8px var(--ok); }
button.link { background: none; border: 0; color: var(--muted); padding: 0 6px; font-size: 14px; font-weight: 700; box-shadow: none; }
label { font-weight: 700; color: var(--ink-2); }
.card form + form, .card .row + p { margin-top: 12px; }
form.inline { display: inline; }

/* --- tables --- */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: start; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12.5px; color: var(--muted); font-weight: 800; letter-spacing: .04em; background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: color-mix(in srgb, var(--panel-2) 70%, transparent); }
table.card { padding: 0; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.facts th { width: 180px; background: none; }
tr.mine td { font-weight: 700; }
td.bar { width: 50%; } td.bar span { display: block; height: 12px; border-radius: 0; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--signal))); }

/* --- status pills --- */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; padding: 3px 11px; border-radius: 0;
  background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 0; background: currentColor; }
.tag.editor, .tag.reviewer, .tag.sound, .tag.review { color: var(--warn); background: var(--warn-2); border-color: transparent; }
.tag.approved { color: var(--ok); background: var(--ok-2); border-color: transparent; }
.tag.approved::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.tag.rejected { color: var(--bad); background: var(--bad-2); border-color: transparent; }
.tag.offair { color: var(--muted); }
h1 .tag { font-size: 14px; vertical-align: middle; margin-inline-start: 6px; }

/* --- messages --- */
.ok { color: var(--ok); font-weight: 700; } .error { color: var(--bad); }
p.ok { background: var(--ok-2); padding: 11px 16px; border-radius: 0; }
.card.error { background: var(--bad-2); border-color: transparent; color: var(--bad); }
.card.error a { color: inherit; text-decoration: underline; }

/* --- pages --- */
audio { height: 38px; width: 100%; max-width: 300px; display: block; }
.players { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.players > div { flex: 1 1 260px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; }
.players audio { max-width: none; margin-top: 8px; }
.process { display: grid; gap: 12px; justify-items: start; }
.settings .setting { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.settings .setting:last-of-type { border-bottom: 0; }
.settings .setting span { font-weight: 700; }
.settings button { margin-top: 16px; }
.news-tools { margin-bottom: 14px; gap: 16px; }
.story-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .story-head h2 { margin: 0; flex: 1 1 300px; }
.story.picked { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-2), var(--shadow); }
.story details { border-top: 1px solid var(--line); padding: 8px 0; } .story details p { margin: 6px 0; white-space: pre-line; }
.story summary { cursor: pointer; font-weight: 700; }
mark { background: #ffe58a; color: #16233a; padding: 0 3px; border-radius: 0; }
.reading { white-space: pre-line; font-size: 19px; line-height: 1.9; max-width: 68ch; }
pre { white-space: pre-wrap; word-break: break-all; font-size: 12.5px; margin: 0; background: var(--panel-2); padding: 12px; border-radius: 0; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 5px; height: 160px; direction: ltr; }
.hours div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.hours span { width: 100%; border-radius: 0; min-height: 3px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); }
.hours div:hover span { background: var(--signal); }
.hours small { font-size: 10.5px; }
a.current { font-weight: 800; color: var(--ink); }
.eyebrow { margin: 0; color: var(--signal); font-weight: 800; font-size: 13.5px; letter-spacing: .04em; }
a.stat { color: var(--ink); transition: transform .15s, box-shadow .15s; } a.stat:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 0;
  background: linear-gradient(135deg, var(--gold), var(--signal)); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 4px 12px -4px var(--signal); }
.list .push { margin-inline-start: auto; }
.empty { display: grid; justify-items: center; gap: 4px; padding: 30px; text-align: center; color: var(--muted); background: var(--panel-2); border-radius: 0;
  border: 1px dashed var(--line-2); }
.empty-ico { width: 46px; height: 46px; border-radius: 0; display: grid; place-items: center; background: var(--ok-2); color: var(--ok); font-weight: 800; font-size: 22px; margin-bottom: 6px; }
.empty b { color: var(--ok); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.tabs { display: inline-flex; padding: 4px; gap: 2px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 0; margin-bottom: 14px; }
.toolbar .tabs { margin: 0; }
.tabs a { padding: 6px 16px; border-radius: 0; color: var(--ink-2); font-weight: 700; font-size: 14.5px; }
.tabs a:hover { text-decoration: none; background: var(--panel); }
.tabs a.current { background: var(--night); color: #fff; box-shadow: 0 4px 12px -6px var(--night); }
a.button { display: inline-block; padding: 9px 16px; border-radius: 0; font-weight: 700; font-size: 14.5px; }
a.button.quiet { border: 1px solid var(--line-2); color: var(--ink-2); background: var(--panel); } a.button:hover { text-decoration: none; background: var(--panel-2); }
.process { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: end; justify-items: stretch; gap: 14px 22px; }
.process label { display: grid; gap: 6px; }
.process label:has(input[type=checkbox]) { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--panel-2); border-radius: 0; }
.process button { grid-column: 1 / -1; justify-self: start; }
.person { border-bottom: 1px solid var(--line); } .person:last-of-type { border-bottom: 0; }
.person summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 2px; cursor: pointer; list-style: none; }
.person summary::-webkit-details-marker { display: none; }
.person[open] summary { font-weight: 800; }
.phone-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 20px; padding: 6px 0 18px; align-items: end; }
.phone-form label { display: grid; gap: 6px; }
.phone-form fieldset { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 0; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.phone-form legend { font-weight: 800; color: var(--ink-2); padding: 0 6px; }
.phone-form label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.phone-form .row { grid-column: 1 / -1; }

/* --- login: anonymous on purpose --- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; overflow: hidden; position: relative;
  background: #070c17; color: #fff; }
.login-page::after { content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image: radial-gradient(#ffffff12 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 70%); }
.aurora { position: fixed; inset: 0; filter: blur(70px); opacity: .75; }
.aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: #2547d0; top: -18vmax; right: -10vmax; }
.aurora i:nth-child(2) { background: #d2691e; bottom: -24vmax; left: -12vmax; animation-duration: 28s; opacity: .7; }
.aurora i:nth-child(3) { background: #5b2bb5; top: 30%; left: 35%; width: 26vmax; height: 26vmax; animation-duration: 18s; opacity: .45; }
@keyframes drift { to { transform: translate(-6vmax, 5vmax) scale(1.12); } }
.login { position: relative; z-index: 1; width: min(400px, 100%); display: grid; gap: 14px; padding: 38px 34px 34px; border-radius: 0;
  background: linear-gradient(160deg, #ffffff1a, #ffffff08); border: 1px solid #ffffff24; backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 40px 80px -30px #000c, inset 0 1px 0 #ffffff26; animation: rise .5s ease-out both; }
.login .lock { width: 52px; height: 52px; border-radius: 0; display: grid; place-items: center; background: #ffffff14; border: 1px solid #ffffff26; }
.login .lock .ico { width: 26px; height: 26px; color: #fff; }
.login h1 { margin: 6px 0 0; font-size: 32px; color: #fff; }
.login .sub { margin: -8px 0 6px; color: #aab5cb; font-size: 15px; }
.login label { display: grid; gap: 7px; color: #d5dcea; font-size: 14px; }
.login input { width: 100%; padding: 13px 15px; font-size: 16px; color: #fff; background: #0000002e; border: 1px solid #ffffff26; border-radius: 0; }
.login input:focus { border-color: #ffffffa0; box-shadow: 0 0 0 4px #ffffff1a; }
.login button { margin-top: 6px; padding: 14px; font-size: 16.5px; color: #0b1424; background: #fff; box-shadow: 0 12px 30px -12px #000; }
.login button:hover { filter: none; background: #f0f3fa; }
.login-error { margin: 0; padding: 10px 14px; border-radius: 0; background: #ff5a4a26; border: 1px solid #ff7a6b55; color: #ffd0ca; font-weight: 700; font-size: 14.5px; }

/* --- phone --- */
@media (max-width: 980px) { .kpis { grid-template-columns: repeat(2, 1fr); } .split { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .top { padding: 0 10px; gap: 6px; height: 58px; }
  .brand { display: block; } .today { display: none; }
  .menu-btn { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; background: transparent; color: var(--ink); border: 0; box-shadow: none; }
  .menu-btn .ico { width: 24px; height: 24px; }
  .who a span { display: none; } .who a { padding: 9px; }
  .side { position: fixed; z-index: 20; inset-inline-start: 0; top: 0; bottom: 0; width: 280px; transform: translateX(100%); transition: transform .25s ease; }
  body.nav-open .side { transform: none; box-shadow: 0 0 60px #000a; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 15; background: #0b1424aa; backdrop-filter: blur(2px); }
  main { padding: 18px 16px 50px; }
  h1 { font-size: 27px; }
  .card { padding: 18px 16px; border-radius: 0; }
  .hero { padding: 24px 20px 22px; border-radius: 0; gap: 18px; }
  .hero h1 { font-size: 29px; margin-bottom: 12px; }
  .hero-figures { width: 100%; } .hero-figures div { flex: 1; min-width: 0; padding: 12px; } .hero-figures b { font-size: 26px; } .hero-figures span { font-size: 12px; }
  .kpis { gap: 10px; } .kpi { padding: 14px; column-gap: 10px; } .kpi-ico { width: 40px; height: 40px; border-radius: 0; } .kpi b { font-size: 26px; }
  .kpi > span:last-child { font-size: 12.5px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; } .stat { padding: 14px; } .stat b { font-size: 28px; }
  .stat span { font-size: 13px; line-height: 1.25; display: block; }
  table, tbody, tr, td, th { display: block; } tr:first-child:has(th) { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; } td { border: 0; padding: 3px 0; }
  table.card tr { padding: 10px 14px; }
  .settings .setting { flex-wrap: wrap; }
  input:not([type=checkbox]), select, textarea { width: 100%; }
  .row > button { flex: 1 1 auto; }
  .list .push { margin-inline-start: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .hero-wave path { stroke-dashoffset: 0; } }

/* Square everywhere, by request: no rounded corners on any control. */
input, select, textarea, button { -webkit-appearance: none; appearance: none; border-radius: 0; }
input[type=checkbox] { -webkit-appearance: auto; appearance: auto; }
audio { border-radius: 0; }
.hero-figures .now { background: #3ddc8414; border-color: #3ddc8440; }
.hero-figures .now span { display: inline-flex; align-items: center; gap: 6px; }
.hero-figures .now i { width: 7px; height: 7px; background: #3ddc84; animation: pulse 1.8s infinite; }
@media (max-width: 820px) { .hero-figures { flex-wrap: wrap; } .hero-figures div { flex: 1 1 40%; } }

/* --- news sources: pick outlets by their logo --- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { margin-bottom: 6px; }
.lead { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 60ch; }
.chosen-count { display: grid; justify-items: center; padding: 12px 22px; background: var(--night); color: #fff; }
.chosen-count b { font-size: 34px; line-height: 1; font-weight: 800; color: var(--gold); }
.chosen-count span { font-size: 13px; font-weight: 700; color: #c6d0e2; }
.outlets-group { margin-bottom: 26px; }
.outlets-group h2 { font-size: 13.5px; letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; }
.outlets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.outlets form { margin: 0; }
button.outlet { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: start;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 400;
  transition: border-color .15s, transform .15s, box-shadow .15s, background .15s; }
button.outlet:hover { filter: none; transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow-lift); }
button.outlet img { width: 48px; height: 48px; flex: none; object-fit: contain; filter: grayscale(.85); opacity: .75; transition: filter .2s, opacity .2s; }
button.outlet:hover img, button.outlet.on img { filter: none; opacity: 1; }
.outlet-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.outlet-text b { font-size: 17px; font-weight: 800; }
.outlet-text small { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outlet-text .bad { color: var(--bad); }
.switch { width: 40px; height: 22px; flex: none; position: relative; background: var(--line-2); transition: background .2s; }
.switch i { position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; background: #fff; transition: inset-inline-start .2s; box-shadow: 0 1px 2px #0003; }
button.outlet.on { border-color: var(--ink); background: linear-gradient(0deg, var(--panel), var(--panel)) padding-box; box-shadow: inset 0 -3px 0 var(--signal), var(--shadow); }
button.outlet.on .switch { background: var(--ok); }
button.outlet.on .switch i { inset-inline-start: 21px; }
details.more summary { cursor: pointer; font-weight: 800; }
.packs button.outlet { min-height: 92px; }
.pack-count { color: var(--muted); font-size: 12px !important; }
.pack-details { margin-top: 14px; } .pack-details summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.pack-details p { font-size: 14px; margin: 8px 0; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud form { margin: 0; }
button.tagchip { padding: 6px 12px; font-size: 14px; font-weight: 700; background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
button.tagchip small { color: var(--muted); font-weight: 600; margin-inline-start: 4px; }
button.tagchip:hover { filter: none; border-color: var(--ink); }
button.tagchip.blocked { background: var(--bad-2); color: var(--bad); border-color: var(--bad); text-decoration: line-through; }
button.tagchip.blocked:disabled { opacity: .75; }
.morning-hero .hero-next { margin: 0; }
.headlines { margin: 0; padding: 0; list-style: none; counter-reset: h; }
.headlines li { counter-increment: h; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.headlines li:last-child { border-bottom: 0; }
.headlines li::before { content: counter(h); grid-row: 1 / 3; font-size: 22px; font-weight: 800; color: var(--signal); line-height: 1.2; }
.headlines b { font-size: 16px; line-height: 1.35; } .headlines small { font-size: 13px; }
.chain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chain a { display: grid; justify-items: center; padding: 14px 6px; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); }
.chain a:hover { text-decoration: none; border-color: var(--ink); }
.chain b { font-size: 30px; line-height: 1; font-weight: 800; } .chain span { font-size: 13px; color: var(--muted); font-weight: 700; }
.split > div > .card { margin-bottom: 20px; }
.archive-suggest { margin-top: 20px; }

/* --- recording studio --- */
.studio { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.studio-deck { background: linear-gradient(160deg, var(--night-2), var(--night)); color: #fff; padding: 22px; box-shadow: 0 30px 60px -30px #0b1424aa; }
.studio-screen { position: relative; background: #00000040; border: 1px solid #ffffff1a; }
.studio-screen canvas { display: block; width: 100%; height: 200px; }
.studio-overlay { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s; background: #0b1424cc; }
.studio-overlay.show { opacity: 1; }
.studio-overlay span { font-size: 96px; font-weight: 800; color: var(--gold); }
.studio-time { position: absolute; top: 10px; inset-inline-start: 14px; display: flex; align-items: center; gap: 8px; font-size: 22px; }
.rec-dot { width: 10px; height: 10px; background: #ffffff40; }
body.recording .rec-dot { background: #ff4d4d; animation: pulse 1.2s infinite; }
.meter { height: 8px; margin-top: 10px; background: #ffffff14; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3ddc84, var(--gold)); transition: width .06s; }
.meter i.clip { background: #ff4d4d; }
.studio-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.studio-controls .quiet { background: #ffffff10; color: #fff; border-color: #ffffff30; }
button.big-rec { width: 78px; height: 78px; padding: 0; display: grid; place-items: center; background: #fff; border: 0; box-shadow: 0 0 0 6px #ffffff1f; }
button.big-rec span { width: 34px; height: 34px; background: #e5342b; transition: transform .2s; }
body.recording button.big-rec span { transform: scale(.7); }
.studio-hint { text-align: center; color: #aab5cb !important; margin: 14px 0 0; }
.studio-review { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.studio-review audio { max-width: 420px; flex: 1; }
.studio-review .quiet { background: #ffffff10; color: #fff; border-color: #ffffff30; }
.studio-form { display: grid; gap: 14px; }
.studio-form label { display: grid; gap: 6px; }
@media (max-width: 980px) { .studio { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.studio-controls .quiet:disabled { background: transparent; color: #ffffff55; border-color: #ffffff22; opacity: 1; }

/* --- sound editor on the clip page --- */
.editor { background: linear-gradient(160deg, var(--night-2), var(--night)); color: #e9eef8; padding: 24px; margin-bottom: 20px;
  box-shadow: 0 30px 60px -30px #0b1424aa; }
.editor h2 { color: #fff; margin-bottom: 4px; }
.editor-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 16px; }
.editor-head p { margin: 0; color: #aab5cb; font-size: 14.5px; max-width: 640px; }
.editor-clock { text-align: end; flex: none; }
.editor-clock b { display: block; font-size: 30px; font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -.01em; }
.editor-clock small { color: #8d99b1; }
.ed-wave { position: relative; direction: ltr; background: #00000045; border: 1px solid #ffffff1a; height: 180px; cursor: crosshair;
  touch-action: none; user-select: none; overflow: hidden;
  background-image: linear-gradient(#ffffff08 1px, transparent 1px); background-size: 100% 45px; }
.ed-wave canvas { display: block; width: 100%; height: 180px; }
.ed-cut { position: absolute; top: 0; bottom: 0; background: #0b1424b3; backdrop-filter: grayscale(1); }
.ed-cut-start { left: 0; border-right: 2px solid var(--gold); }
.ed-cut-end { right: 0; border-left: 2px solid var(--gold); }
.ed-handle { position: absolute; top: 50%; width: 14px; height: 54px; margin-top: -27px; background: var(--gold); cursor: ew-resize; }
.ed-cut-start .ed-handle { right: -8px; }
.ed-cut-end .ed-handle { left: -8px; }
.ed-handle::before { content: ""; position: absolute; inset: 14px 5px; border-inline: 1px solid #0b142488; }
.ed-patch { position: absolute; top: 0; bottom: 0; background: #3ddc8426; border-inline: 1px solid #3ddc84; pointer-events: none; }
.ed-patch small { position: absolute; top: 4px; left: 4px; background: #3ddc84; color: #06281a; font-weight: 800; padding: 0 6px; font-size: 12px; }
.ed-sel { position: absolute; top: 0; bottom: 0; background: #7a9cff33; border-inline: 2px solid #8fb0ff; pointer-events: none; }
.ed-head { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: #fff; box-shadow: 0 0 12px #fff8; pointer-events: none; }
.ed-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #aab5cb; padding: 20px; text-align: center; }
.editor.no-wave .ed-cut, .editor.no-wave .ed-head { display: none; }
.ed-ruler { position: relative; direction: ltr; height: 22px; color: #7f8ba3; font-size: 12px; }
.ed-ruler span { position: absolute; top: 4px; transform: translateX(-50%); }
.ed-ruler span:first-child { transform: none; } .ed-ruler span:last-child { transform: translateX(-100%); }
.ed-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 10px 0 4px; min-height: 44px; }
.ed-selbox, .ed-recbox { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 6px 12px; background: #7a9cff1f; border: 1px solid #7a9cff55; }
.ed-recbox { background: #ff4d4d1a; border-color: #ff4d4d66; }
.ed-recbox b { font-size: 20px; color: #fff; }
.ed-recbox .muted { color: #c4cde0 !important; font-size: 14px; }
.rec-dot.on { background: #ff4d4d; animation: pulse 1.2s infinite; }
.ed-btn { display: inline-flex; align-items: center; gap: 8px; background: #ffffff12; color: #fff; border: 1px solid #ffffff33;
  padding: 8px 14px; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.ed-btn:hover { background: #ffffff22; }
.ed-btn.ghost { background: transparent; border-color: #ffffff22; color: #c4cde0; }
.ed-btn.rec i { width: 10px; height: 10px; background: #ff4d4d; }
.ed-btn .tri { width: 0; height: 0; border-block: 6px solid transparent; border-inline-end: 10px solid currentColor; }
.ed-btn.on .tri { width: 10px; height: 12px; border: 0; border-inline: 3px solid currentColor; }
.ed-patches { margin-top: 14px; border-top: 1px solid #ffffff14; padding-top: 12px; }
.ed-patches h3 { margin: 0 0 8px; font-size: 15px; color: #fff; }
.ed-patchrow { display: flex; gap: 14px; align-items: center; padding: 6px 0; }
.ed-patchrow b { background: #3ddc84; color: #06281a; padding: 0 8px; }
.ed-form { margin-top: 18px; border-top: 1px solid #ffffff14; padding-top: 18px; }
.ed-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ed-tile { display: flex; gap: 10px; align-items: start; padding: 12px 14px; background: #ffffff0a; border: 1px solid #ffffff1f; cursor: pointer; }
.ed-tile:has(input:checked) { background: #e7b65c1f; border-color: var(--gold); }
.ed-tile input { accent-color: var(--gold); margin-top: 5px; }
.ed-tile b { display: block; color: #fff; } .ed-tile small { color: #9aa6bd; font-size: 13px; }
.ed-tile.static { cursor: default; opacity: .75; }
.ed-fields { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 14px; }
.ed-fields label { display: grid; gap: 6px; color: #c4cde0; font-size: 14px; }
.ed-fields input:not([type=range]), .ed-fields select { background: #ffffff10; color: #fff; border: 1px solid #ffffff33; }
.ed-fields select option { color: #121c2e; }
.ed-vol output { color: var(--gold); font-weight: 800; }
.ed-vol input { accent-color: var(--gold); }
.ed-vol.off { opacity: .35; pointer-events: none; }
.ed-submit { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.ed-submit .muted { color: #8d99b1 !important; margin: 0; } .ed-submit a { color: #8fb0ff; }
@media (max-width: 1100px) { .ed-tiles { grid-template-columns: repeat(2, 1fr); } .ed-fields { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ed-tiles, .ed-fields { grid-template-columns: 1fr; } .editor-head { flex-direction: column; align-items: start; } }

/* --- joining clips --- */
.join { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.join-pick { max-height: 640px; overflow: auto; }
.join-search { width: 100%; margin-bottom: 10px; }
.join-row { display: flex; gap: 12px; align-items: center; width: 100%; text-align: start; padding: 10px 12px; background: var(--panel);
  border: 1px solid var(--line); margin-bottom: -1px; cursor: pointer; font: inherit; color: var(--ink); }
.join-row:hover { background: var(--panel-2); }
.join-row .plus { width: 28px; height: 28px; display: grid; place-items: center; background: var(--accent-2); color: var(--accent); font-weight: 800; flex: none; }
.join-row span { flex: 1; } .join-row small { display: block; }
.join-row.used { opacity: .45; }
.join-chain { background: linear-gradient(160deg, var(--night-2), var(--night)); color: #e9eef8; padding: 20px; position: sticky; top: 20px; }
.join-chain h2 { color: #fff; }
.join-list { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: j; min-height: 60px; }
.join-list li { counter-increment: j; display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: #ffffff0d;
  border: 1px solid #ffffff1f; margin-bottom: 6px; }
.join-list li::before { content: counter(j); background: var(--gold); color: var(--night); font-weight: 800; padding: 0 8px; }
.join-list li span { flex: 1; } .join-list li small { color: #9aa6bd; }
.join-list li button { background: transparent; border: 1px solid #ffffff2a; color: #fff; padding: 2px 9px; font: inherit; cursor: pointer; }
.join-empty { color: #8d99b1; border: 1px dashed #ffffff2a; padding: 18px; text-align: center; margin-bottom: 14px; }
.join-total { display: flex; justify-content: space-between; color: #aab5cb; margin-bottom: 14px; }
.join-total b { color: var(--gold); font-size: 20px; }
.join-chain label { display: grid; gap: 6px; margin-bottom: 12px; color: #c4cde0; }
.join-chain input, .join-chain select { background: #ffffff10; color: #fff; border: 1px solid #ffffff33; }
.join-chain select option { color: #121c2e; }
@media (max-width: 980px) { .join { grid-template-columns: 1fr; } .join-chain { position: static; } }
.ed-vol input[type=range] { background: transparent; border: 0; padding: 0; height: 44px; }

/* --- marketing --- */
.ad-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.legend { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.legend i { width: 12px; height: 12px; display: inline-block; }
.lg-plays { background: var(--accent); } .lg-conn { background: var(--signal); }
.bars { display: flex; align-items: end; gap: 3px; height: 150px; direction: ltr; border-bottom: 1px solid var(--line-2);
  background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 25%; }
.bar { flex: 1; height: 100%; position: relative; display: flex; align-items: end; }
.bar i { display: block; width: 100%; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, transparent)); min-height: 1px; }
.bar b { position: absolute; bottom: 0; left: 25%; width: 50%; background: var(--signal); }
.bar:hover i { filter: brightness(1.2); }
.advertiser { padding: 0; overflow: hidden; }
.adv-head { display: flex; gap: 16px; align-items: center; padding: 18px 22px; background: var(--panel-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.adv-mark { width: 48px; height: 48px; display: grid; place-items: center; background: var(--night); color: var(--gold); font-size: 24px; font-weight: 800; flex: none; }
.adv-name { flex: 1; min-width: 160px; } .adv-name h2 { margin: 0; }
.adv-link { display: flex; gap: 8px; align-items: center; }
.adv-link input { width: 300px; font-size: 13px; color: var(--muted); }
.ads-table { margin: 0; } .ads-table th:first-child, .ads-table td:first-child { padding-inline-start: 22px; }
.adv-more { padding: 12px 22px 16px; } .adv-more summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.adv-more form { margin-top: 10px; }
.mk-forms { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.mk-form { display: grid; gap: 12px; } .mk-form label { display: grid; gap: 6px; }
.mk-form label.check { display: flex; }
.mk-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scope { border: 1px solid var(--line); padding: 10px 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scope legend { color: var(--muted); font-size: 14px; padding: 0 6px; }
.scope .chip { display: inline-flex; cursor: pointer; }
.scope .chip input { position: absolute; opacity: 0; pointer-events: none; }
.scope .chip span { padding: 6px 12px; border: 1px solid var(--line-2); background: var(--panel); font-size: 14px; font-weight: 700; }
.scope .chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.scope .chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 980px) { .mk-forms { grid-template-columns: 1fr; } .adv-link input { width: 100%; } .adv-link { width: 100%; } }

/* --- the advertiser's report: anonymous, standalone --- */
.report-page { background: var(--bg); }
.report { max-width: 920px; margin: 0 auto; padding: 40px 16px 60px; }
.report-head { background: linear-gradient(160deg, var(--night-2), var(--night)); color: #fff; padding: 28px 28px 24px; }
.report-head small { color: var(--gold); font-weight: 800; letter-spacing: .04em; }
.report-head h1 { margin: 4px 0 6px; color: #fff; } .report-head p { margin: 0; color: #aab5cb; }
.report-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 20px 0; }
.report-kpis div { background: var(--panel); padding: 20px; display: grid; }
.report-kpis b { font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.report-kpis span { color: var(--muted); font-weight: 700; }
.report-card { background: var(--panel); border: 1px solid var(--line); padding: 22px; margin-bottom: 20px; }
.report-card h2 { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.report-foot { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .report-kpis { grid-template-columns: 1fr; } }

/* --- foreign desk: world map --- */
.regions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.region { background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.region b { color: var(--muted); margin-inline-start: 4px; }
.region.on { background: var(--night); color: #fff; border-color: var(--night); } .region.on b { color: var(--gold); }
.region:disabled { opacity: .4; cursor: default; }
.wmap { position: relative; background: radial-gradient(900px 400px at 60% 30%, #1a2d52, #0b1424 70%); border: 1px solid #0b1424;
  overflow: hidden; margin-bottom: 20px; box-shadow: 0 30px 60px -30px #0b1424aa; }
.wmap svg.world { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 520; }
.wmap svg.world > path { fill: #1d2c48; stroke: #0b1424; stroke-width: .5; transition: fill .3s, opacity .3s; }
.wmap svg.world > path.hot { fill: color-mix(in srgb, #e7b65c calc(var(--heat) * 100%), #1d2c48); cursor: pointer; }
.wmap svg.world > path.hot:hover, .wmap svg.world > path.sel { fill: #ffd27d; }
.wmap svg.world > path.dim { opacity: .3; }
.dot { cursor: pointer; } .dot .core { fill: #0b1424; stroke: #ffd27d; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.dot .ring { fill: none; stroke: #ffd27d; stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ring 2.4s infinite; }
.dot text { fill: #ffd27d; font: 800 9px "Assistant", sans-serif; text-anchor: middle; pointer-events: none; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.wmap-callouts { position: absolute; inset: 0; pointer-events: none; }
.callout { position: absolute; pointer-events: auto; max-width: 260px; text-align: start; background: #0b1424e6; color: #fff;
  border: 1px solid #ffd27d55; border-inline-start: 3px solid #ffd27d; padding: 7px 10px; font: inherit; cursor: pointer;
  box-shadow: 0 10px 24px -10px #000; backdrop-filter: blur(4px); animation: pop .35s ease-out both; }
.callout:hover { border-color: #ffd27d; z-index: 2; }
.callout small { display: block; color: #ffd27d; font-weight: 800; font-size: 12px; }
.callout span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.35; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wmap-panel { position: absolute; top: 12px; bottom: 12px; left: 12px; width: min(360px, 45%); background: #0b1424f2; color: #fff;
  border: 1px solid #ffffff22; display: flex; flex-direction: column; animation: pop .25s ease-out both; z-index: 3; }
.wmap-panel header { display: flex; justify-content: space-between; align-items: start; padding: 14px 16px; border-bottom: 1px solid #ffffff1a; }
.wmap-panel h2 { color: #fff; margin: 0; } .wmap-panel header small { color: #ffd27d; font-weight: 800; }
.wmap-close { background: transparent; border: 1px solid #ffffff33; color: #fff; padding: 2px 10px; font: inherit; cursor: pointer; }
.wmap-panel ol { list-style: none; margin: 0; padding: 0; overflow: auto; }
.wmap-panel li { padding: 12px 16px; border-bottom: 1px solid #ffffff12; }
.wmap-panel li a { color: #fff; font-weight: 700; display: block; line-height: 1.35; }
.wmap-panel li small { color: #9aa6bd; }
.wmap-legend { position: absolute; bottom: 10px; right: 14px; display: flex; gap: 8px; align-items: center; color: #9aa6bd; font-size: 12px; }
.wmap-legend i { width: 90px; height: 8px; background: linear-gradient(90deg, #1d2c48, #e7b65c); transform: scaleX(-1); }
.wlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.wcard { background: var(--panel); border: 1px solid var(--line); padding: 16px 18px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow); }
.wcard.picked { border-color: var(--ok); box-shadow: inset 3px 0 0 var(--ok); }
.wcard:target { outline: 2px solid var(--gold); }
.wcard-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wplace { background: var(--night); color: var(--gold); font-weight: 800; font-size: 13px; padding: 2px 9px; }
.wsrc { display: inline-flex; gap: 3px; align-items: center; color: var(--muted); font-size: 13px; }
.wsrc img { width: 20px; height: 20px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.wsrc b { color: var(--ink); margin-inline-start: 4px; }
.wcard-top small { margin-inline-start: auto; }
.wcard h3 { margin: 0; font-size: 18px; line-height: 1.35; } .wcard h3 a { color: var(--ink); }
.wcard details summary { cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 700; }
.wcard details ul { margin: 8px 0 0; padding-inline-start: 18px; font-size: 14px; } .wcard details li { margin-bottom: 4px; }
.wpick { justify-self: start; }
@media (max-width: 980px) { .wlist { grid-template-columns: 1fr; } .callout { max-width: 180px; } .callout span { font-size: 12.5px; } .wmap-panel { width: auto; right: 12px; } }
.wmap-callouts .leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wmap-callouts .leaders line { stroke: #ffd27d; stroke-width: 1; stroke-dasharray: 3 3; opacity: .8; }

/* --- management report --- */
.ceo-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; padding: 28px 30px;
  background: radial-gradient(500px 240px at 0% 0%, #2547d044, transparent 70%), linear-gradient(160deg, var(--night-2), var(--night));
  color: #fff; margin-bottom: 20px; }
.ceo-head small { color: var(--gold); font-weight: 800; letter-spacing: .03em; }
.ceo-head h1 { color: #fff; margin: 4px 0 6px; font-size: 42px; } .ceo-head p { margin: 0; color: #aab5cb; }
.ceo-tools { display: flex; gap: 8px; } .ceo-tools .quiet { background: #ffffff10; color: #fff; border-color: #ffffff30; }
.ceo-lines { border-inline-start: 4px solid var(--gold); background: var(--panel); padding: 14px 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.ceo-lines p { margin: 4px 0; font-size: 17px; font-weight: 600; }
.ceo-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 20px; }
.ceo-kpis.small { grid-template-columns: repeat(4, 1fr); }
.ceo-kpi { background: var(--panel); padding: 18px 20px; display: grid; gap: 2px; align-content: start; }
.ceo-kpi > span { color: var(--muted); font-weight: 700; font-size: 14px; }
.ceo-kpi b { font-size: 44px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.ceo-kpis.small .ceo-kpi b { font-size: 30px; }
.ceo-kpi b small { font-size: 18px; color: var(--muted); margin-inline-start: 4px; }
.ceo-kpi em { color: var(--muted); font-style: normal; font-size: 13px; }
.dl { font-weight: 800; font-size: 14px; justify-self: start; padding: 1px 8px; }
.dl.up { color: var(--ok); background: var(--ok-2); } .dl.down { color: var(--bad); background: var(--bad-2); } .dl.flat { color: var(--muted); background: var(--panel-2); }
.ceo-svg { display: block; width: 100%; height: 220px; direction: ltr; }
.ceo-svg .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ceo-svg .area { fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.ceo-svg .line { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ceo-svg .prev { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.lg-prev { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 7px); height: 3px !important; }
.ceo-axis { display: grid; direction: ltr; color: var(--muted); font-size: 12px; text-align: center; margin-top: 4px; }
.ceo-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ceo-top { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.ceo-top li { counter-increment: t; display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ceo-top li::before { content: counter(t); width: 30px; height: 30px; flex: none; display: grid; place-items: center; background: var(--night); color: var(--gold); font-weight: 800; }
.ceo-top li span { flex: 1; } .ceo-top li small { display: block; color: var(--muted); }
.ceo-top li em { font-style: normal; font-weight: 800; font-size: 20px; }
.ceo-bar { display: grid; grid-template-columns: 140px 1fr 50px; gap: 10px; align-items: center; padding: 6px 0; }
.ceo-bar i { height: 14px; background: var(--panel-2); } .ceo-bar b { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #6f8cff); }
.ceo-bar em { font-style: normal; font-weight: 800; text-align: end; }
.heat { display: grid; grid-template-columns: 56px repeat(24, 1fr); gap: 3px; direction: ltr; }
.heat .hh { font-size: 11px; color: var(--muted); text-align: center; }
.heat .dd { font-size: 13px; font-weight: 700; color: var(--ink-2); direction: rtl; text-align: end; padding-inline-end: 6px; }
.heat i { aspect-ratio: 1.6; background: color-mix(in srgb, var(--signal) calc(var(--v) * 100%), var(--panel-2)); }
.ceo-foot { margin-top: 4px; }
@media (max-width: 980px) { .ceo-kpis, .ceo-kpis.small, .ceo-two { grid-template-columns: 1fr 1fr; } }
@media print {
  .side, .top, .ceo-tools { display: none !important; }
  body { background: #fff; } .main, main { padding: 0 !important; }
  .card, .ceo-kpi, .ceo-lines { box-shadow: none; break-inside: avoid; }
  .ceo-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .heat i, .dl, .ceo-top li::before, .ceo-bar b { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.ceo-tools .seg { padding: 9px 18px; border: 1px solid #ffffff30; color: #fff; font-weight: 800; text-decoration: none; }
.ceo-tools .seg.on { background: var(--gold); color: var(--night); border-color: var(--gold); }

/* --- staff chat --- */
.badge { margin-inline-start: auto; background: var(--signal); color: #fff; font-style: normal; font-weight: 800; font-size: 12px; padding: 0 7px; line-height: 20px; }
.chat-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 0; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); min-height: 560px; }
.rooms { border-inline-end: 1px solid var(--line); background: var(--panel-2); padding: 10px 0; overflow: auto; max-height: 72vh; }
.rooms h3 { font-size: 12px; color: var(--muted); margin: 14px 16px 6px; letter-spacing: .03em; }
.room { display: block; padding: 10px 16px; color: var(--ink); text-decoration: none !important; border-inline-start: 3px solid transparent; }
.room b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .room small { color: var(--muted); }
.room:hover { background: var(--panel); } .room.on { background: var(--panel); border-inline-start-color: var(--accent); }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.chat-head h2 { margin: 0; } .chat-head small { color: var(--muted); font-weight: 700; }
.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-log { flex: 1; overflow: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; max-height: 60vh; min-height: 200px;
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 16px 16px; }
.clip-chat .chat-log { max-height: 360px; border: 1px solid var(--line); }
.msg { max-width: 72%; align-self: flex-start; background: var(--panel); border: 1px solid var(--line); padding: 8px 12px; box-shadow: var(--shadow); }
.msg.mine { align-self: flex-end; background: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.msg b { font-size: 13px; color: var(--accent); } .msg.mine b { color: var(--ink-2); }
.msg p { margin: 2px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg small { color: var(--muted); font-size: 12px; }
.chat-empty { color: var(--muted); margin: auto; text-align: center; }
.chat-send { display: flex; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); align-items: end; }
.clip-chat .chat-send { padding: 12px 0 0; border: 0; }
.chat-send textarea { flex: 1; resize: none; min-height: 44px; font: inherit; }
.room.person { display: flex; align-items: center; gap: 10px; } .room.person span { min-width: 0; flex: 1; }
.avatar { width: 32px; height: 32px; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-style: normal; font-weight: 800; }
.room .badge { margin: 0; }
.chat-back { display: none; font-size: 22px; text-decoration: none !important; padding: 0 4px; }
.msg.gone { opacity: .6; } .msg.gone p { font-style: italic; }
.msg small { display: flex; gap: 10px; align-items: center; }
.msg-del { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; opacity: 0; min-height: 0; }
.msg:hover .msg-del, .msg-del:focus-visible { opacity: 1; } .msg-del:hover { color: var(--bad); }
@media (hover: none) { .msg-del { opacity: 1; } }
.msg-img { display: block; margin: 6px 0; } .msg-img img { display: block; max-width: min(320px, 100%); max-height: 320px; object-fit: cover; border: 1px solid var(--line); }
.msg-file { display: inline-flex; gap: 8px; align-items: center; margin: 6px 0; padding: 8px 12px; border: 1px solid var(--line); background: var(--panel-2); font-weight: 700; overflow-wrap: anywhere; }
.msg-file::before { content: "⬇"; }
.vplay { display: flex; align-items: center; gap: 10px; margin: 6px 0; min-width: 220px; }
.vbtn { width: 36px; height: 36px; min-height: 0; padding: 0; flex: none; background: var(--accent); border: 0; color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; }
.vbtn::before { content: ""; border-style: solid; border-width: 7px 11px 7px 0; border-color: transparent currentColor transparent transparent; margin-inline-end: 3px; }
.vplay.on .vbtn::before { border: 0; width: 10px; height: 13px; margin: 0; border-inline: 4px solid currentColor; }
.vbar { flex: 1; height: 6px; background: var(--line); cursor: pointer; position: relative; } .vbar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--accent); }
.vplay small { font-variant-numeric: tabular-nums; }
.chat-send { flex-direction: column; align-items: stretch; }
.chat-row { display: flex; gap: 8px; align-items: end; }
.chat-tool { width: 44px; height: 44px; min-height: 0; flex: none; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); }
.chat-tool:hover { border-color: var(--accent); color: var(--accent); }
.chat-tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.chat-mic.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.chat-attached { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 12px; background: var(--accent-2); font-weight: 700; }
.chat-attached button { background: none; border: 0; min-height: 0; padding: 0 4px; cursor: pointer; color: inherit; }
.chat-rec { display: flex; align-items: center; gap: 10px; color: var(--bad); font-weight: 700; }
.chat-rec i { width: 10px; height: 10px; background: var(--bad); animation: blink 1s infinite; } .chat-rec span { color: var(--muted); font-weight: 400; flex: 1; }
@keyframes blink { 50% { opacity: .2; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 800px) {
  .chat-wrap { grid-template-columns: 1fr; min-height: 0; } .rooms { max-height: none; border-inline-end: 0; }
  .chat-wrap.picked .rooms, .chat-wrap:not(.picked) .chat-main { display: none; }
  .chat-back { display: block; } .chat-log { max-height: 62vh; } .msg { max-width: 90%; }
}


/* --- tasks and calendar --- */
.task-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.segs { display: flex; border: 1px solid var(--line); background: var(--panel); }
.segs .seg { padding: 9px 18px; font-weight: 800; color: var(--ink-2); text-decoration: none !important; display: flex; gap: 8px; align-items: center; }
.segs .seg + .seg { border-inline-start: 1px solid var(--line); }
.segs .seg b { font-size: 12px; background: var(--panel-2); padding: 0 6px; color: var(--muted); }
.segs .seg.on { background: var(--night, var(--ink)); color: #fff; } .segs .seg.on b { background: var(--gold, var(--accent)); color: var(--night, #000); }
.task-new { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.task-new label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.task-new .grow { flex: 1 1 260px; }
.task-new button { min-height: 44px; }
.task-notes { flex-basis: 100%; } .task-notes summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; }
.task-notes textarea { width: 100%; margin-top: 6px; }
.tasks { display: grid; gap: 22px; margin-top: 22px; }
.task-group h2, .task-group summary h2 { display: inline-flex; gap: 10px; align-items: center; font-size: 15px; margin: 0 0 10px; color: var(--ink-2); }
.task-group h2 b { background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; padding: 0 7px; }
.task-group.late h2 { color: var(--signal); } .task-group.late h2 b { background: var(--signal); color: #fff; border-color: var(--signal); }
.done-group summary { cursor: pointer; list-style: none; } .done-group summary::-webkit-details-marker { display: none; }
.task { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-inline-start: 4px solid var(--accent);
  padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 8px; }
.task.late { border-inline-start-color: var(--signal); }
.task.done { border-inline-start-color: var(--line); background: var(--panel-2); box-shadow: none; }
.task.done .task-body b { text-decoration: line-through; color: var(--muted); }
.task-check { width: 28px; height: 28px; min-height: 0; padding: 0; flex: none; background: var(--panel); border: 2px solid var(--line-2, var(--line)); color: transparent;
  font-weight: 900; cursor: pointer; display: grid; place-items: center; }
.task-check:hover { border-color: var(--ok); color: var(--ok); }
.task.done .task-check { background: var(--ok); border-color: var(--ok); color: #fff; }
.task-body { flex: 1; min-width: 0; } .task-body b { display: block; overflow-wrap: anywhere; }
.task-body small { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); margin-top: 2px; }
.task-body p { margin: 6px 0 0; color: var(--ink-2); white-space: pre-wrap; font-size: 14px; }
.task-acts { display: flex; gap: 6px; align-items: center; flex: none; }
.task-acts select { max-width: 130px; padding: 4px 6px; font-size: 13px; min-height: 0; }
.task-acts .quiet { padding: 4px 10px; min-height: 0; font-size: 13px; }
.task-del:hover { color: var(--bad); border-color: var(--bad); }
.cal-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 18px; margin-top: 22px; align-items: start; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-head h2 { margin: 0; font-size: 22px; }
.cal-head .seg { border: 1px solid var(--line); padding: 6px 14px; text-decoration: none !important; font-weight: 800; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.cal-wd { text-align: center; font-weight: 800; color: var(--muted); font-size: 13px; padding: 6px 0; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel-2); }
.cal-day { min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 3px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none !important; min-width: 0; background: var(--panel); }
.cal-day:hover { background: var(--panel-2); }
.cal-day.blank { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--panel-2) 6px 7px); }
.cal-day .n { font-weight: 800; font-size: 14px; width: 26px; height: 26px; display: grid; place-items: center; }
.cal-day.today .n { background: var(--accent); color: var(--accent-ink); }
.cal-day.on { outline: 3px solid var(--night, var(--ink)); outline-offset: -3px; }
.cal-day.closed { background: color-mix(in srgb, var(--gold, var(--warn)) 10%, var(--panel)); }
.cal-closed { font-size: 11px; font-weight: 800; color: var(--warn); }
.cal-t { font-size: 12px; background: var(--accent-2); border-inline-start: 3px solid var(--accent); padding: 1px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-t.done { background: var(--panel-2); border-color: var(--line); color: var(--muted); text-decoration: line-through; }
.cal-more { font-size: 11px; color: var(--muted); font-weight: 700; }
.cal-side h2 { margin-top: 0; }
.cal-side .task { flex-wrap: wrap; } .cal-side .task-acts { flex-basis: 100%; justify-content: flex-end; }
@media (max-width: 1000px) { .cal-wrap { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .cal-day { min-height: 54px; padding: 3px; } .cal-t, .cal-closed { display: none; }
  .cal-day:has(.cal-t)::after { content: ""; width: 6px; height: 6px; background: var(--accent); margin: auto auto 2px; }
  .task { flex-wrap: wrap; } .task-acts { flex-basis: 100%; justify-content: flex-end; }
}
.btn-link { padding: 6px 12px; border: 1px solid var(--line); font-weight: 800; text-decoration: none !important; }
.masthead.rental b { display: block; color: #fff; font-size: 26px; font-weight: 800; line-height: 1.1; } .brand-name { font-size: 20px; font-weight: 800; color: var(--ink); }

/* --- rented lines --- */
.rent-cap-bar { display: flex; height: 44px; margin-bottom: 16px; border: 1px solid var(--line); }
.rent-cap-bar i { display: flex; align-items: center; padding: 0 14px; font-style: normal; font-weight: 800; font-size: 14px; min-width: 0; white-space: nowrap; overflow: hidden; }
.rent-cap-bar .ours { background: var(--night); color: var(--gold); }
.rent-cap-bar .theirs { background: repeating-linear-gradient(135deg, var(--accent-2) 0 10px, var(--panel) 10px 20px); color: var(--accent); }
.rent-cap-form, .rent-edit { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.rent-cap-form label, .rent-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.rent-edit .grow { flex: 1 1 220px; } .rent-edit .wide { flex-basis: 100%; } .rent-edit textarea { width: 100%; }
.rental { position: relative; }
.rental.off { opacity: .7; }
.rental-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.rental-head .grow { flex: 1; min-width: 0; } .rental-head h2 { margin: 0; } .rental-head small { color: var(--muted); }
.rental-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 14px; }
.rental-stats div { padding: 10px 14px; display: flex; flex-direction: column; } .rental-stats div + div { border-inline-start: 1px solid var(--line); }
.rental-stats span { font-size: 12px; color: var(--muted); font-weight: 700; } .rental-stats b { font-size: 20px; }
.rental-usage { width: 100%; border-collapse: collapse; } .rental-usage th, .rental-usage td { text-align: start; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.rental-usage th { font-size: 12px; color: var(--muted); } .rental-usage tr.now td { font-weight: 800; }
.rent-toggle { position: absolute; inset-inline-end: 20px; bottom: 18px; }
.rent-new h3 { margin: 10px 0 0; font-size: 15px; }
@media (max-width: 700px) { .rental-stats { grid-template-columns: 1fr 1fr; } .rental-stats div:nth-child(3) { border-inline-start: 0; } .rent-toggle { position: static; margin-top: 10px; } }
