/* Tarima TV portal — brand: charcoal #1D1D1D, Tarima red #FF3333, white. Montserrat headings, Inter text. */
:root {
  color-scheme: light;
  --brand-red: #ff3333;          /* logo red: marks, accents, large shapes */
  --red: #d92b2b;                /* red for buttons and links (readable on white) */
  --red-hover: #c22020;
  --red-soft: #fdeaea;
  --charcoal: #1d1d1d;
  --bg: #f4f4f2; --surface: #ffffff; --surface-2: #f8f8f6;
  --ink: #1d1d1d; --ink-2: #4a4a47; --muted: #84837e;
  --line: #e6e5e0; --line-2: #d4d3cc;
  --good: #137a32; --good-soft: #e4f4e8; --warn: #8a5a00; --warn-soft: #fdf2d9; --bad: #c4231f; --bad-soft: #fde8e7;
  --info: #2a6fd1; --info-soft: #e7effb;
  --concert: #2a78d6; --music: #1baf7a; --ads: #eb6834;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.03);
  --head: "Montserrat", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --red: #ff4d4d; --red-hover: #ff6b6b; --red-soft: #3a1b1b;
    --bg: #121212; --surface: #1b1b1b; --surface-2: #222221;
    --ink: #f1f0ec; --ink-2: #c5c4bd; --muted: #8f8e88; --line: #2c2c2a; --line-2: #3a3a37;
    --good: #43c463; --good-soft: #16301d; --warn: #f0b440; --warn-soft: #33290f; --bad: #ff6b66; --bad-soft: #3a1c1b;
    --info: #6aa5f2; --info-soft: #1b2a3d;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); }
h1 { font-size: 26px; font-weight: 800; margin: 2px 0 4px; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin: 30px 0 12px;
     display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 12px; height: 12px; background: var(--brand-red); flex: none; }
h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .ink2 { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.eyebrow { font-family: var(--head); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-red); }

/* ---------- top bar (charcoal, like the grid header) */
.top { background: var(--charcoal); position: sticky; top: 0; z-index: 10; border-bottom: 3px solid var(--brand-red); }
.top .in { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 26px; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 24px; display: block; }
.brand span { font-family: var(--head); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: #a9a8a2;
              text-transform: uppercase; border-left: 1px solid #3a3a37; padding-left: 12px; }
.nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; height: 100%; scrollbar-width: none; }
.nav a { color: #c9c8c2; padding: 0 13px; white-space: nowrap; font-weight: 600; font-size: 13.5px; display: flex; align-items: center;
         border-bottom: 3px solid transparent; margin-bottom: -3px; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.on { color: #fff; border-bottom-color: #fff; }
.who { display: flex; align-items: center; gap: 10px; color: #a9a8a2; font-size: 12.5px; white-space: nowrap; }
.who .av { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-red); color: #fff; display: grid; place-items: center;
           font-weight: 700; font-size: 12px; font-family: var(--head); }
.who a { color: #e6e5e0; }
main { max-width: 1200px; margin: 0 auto; padding: 26px 20px 40px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.head .lede { color: var(--ink-2); max-width: 640px; margin: 0; }
footer.foot { max-width: 1200px; margin: 0 auto; padding: 18px 20px 30px; color: var(--muted); font-size: 12px;
              display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }
footer.foot img { height: 14px; opacity: .8; vertical-align: -2px; }

/* ---------- building blocks */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 16px 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tile { padding: 14px 16px; position: relative; }
.tile .k { color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.tile .v { font-family: var(--head); font-size: 28px; font-weight: 800; line-height: 1.2; margin-top: 2px; }
.tile.accent { border-top: 3px solid var(--brand-red); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2);
       background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 9px; font: 600 13.5px var(--text);
       cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; text-decoration: none; }
.btn:hover { background: var(--surface-2); border-color: var(--muted); text-decoration: none; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn.dark { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px;
        background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.paid { background: var(--info-soft); color: var(--info); border-color: transparent; }
.pill.bonus { background: #f1e9fd; color: #6a43c8; border-color: transparent; }
.pill.comp { background: var(--surface-2); color: var(--ink-2); }
.pill.barter { background: #e2f3f0; color: #0c6b5b; border-color: transparent; }
.pill.good, .pill.sent, .pill.complete, .pill.on-pace, .pill.aired { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill.warn, .pill.draft, .pill.behind, .pill.stale { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.bad, .pill.missed, .pill.failed { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.premiere { background: var(--red-soft); color: var(--red); border-color: transparent; }
@media (prefers-color-scheme: dark) { .pill.bonus { background: #2b2140; color: #b9a3f5; } .pill.barter { background: #14302b; color: #6fd3bf; } }
.flash { padding: 11px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.flash.ok { background: var(--good-soft); color: var(--good); } .flash.error { background: var(--bad-soft); color: var(--bad); }
.banner { background: var(--charcoal); color: #fff; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; display: flex; gap: 12px; align-items: center; }
.spin { width: 16px; height: 16px; border: 2px solid var(--brand-red); border-right-color: transparent; border-radius: 50%; animation: s .8s linear infinite; flex: none; }
@keyframes s { to { transform: rotate(360deg); } }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700;
     padding: 10px 12px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, table tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.tablewrap { overflow-x: auto; border-radius: var(--radius); }
.card > table th:first-child, .card > .tablewrap > table th:first-child { border-top-left-radius: var(--radius); }

/* ---------- schedule */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.step { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.step b { font-family: var(--head); width: 28px; height: 28px; flex: none; display: grid; place-items: center; background: var(--charcoal);
          color: #fff; font-size: 13px; }
.step div { font-size: 13px; color: var(--ink-2); line-height: 1.35; } .step div strong { color: var(--ink); display: block; font-size: 13.5px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.days { display: grid; gap: 10px; }
.day { display: grid; grid-template-columns: 74px 1fr auto; gap: 18px; align-items: center; padding: 14px 18px; }
.day.today { border-color: var(--brand-red); box-shadow: 0 0 0 1px var(--brand-red), var(--shadow); }
.day.past { opacity: .78; }
.dbox { text-align: center; border-right: 1px solid var(--line); padding-right: 14px; }
.dbox .wd { font-family: var(--head); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dbox .dn { font-family: var(--head); font-size: 28px; font-weight: 800; line-height: 1.05; }
.dbox .mo { font-size: 11.5px; color: var(--muted); }
.day.today .dbox .wd { color: var(--brand-red); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; padding: 3px 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip b { color: var(--ink); font-weight: 700; margin-right: 5px; font-variant-numeric: tabular-nums; }
.chip.prem { border-color: color-mix(in srgb, var(--brand-red) 40%, var(--line)); }
.chip.prem b { color: var(--red); }
.meta { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.more { position: relative; }
.more summary { list-style: none; } .more summary::-webkit-details-marker { display: none; }
.more[open] .menu { display: flex; }
.menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; flex-direction: column; min-width: 170px;
        background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; }
.menu a, .menu button { all: unset; cursor: pointer; padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--ink); }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu form { display: block; }
@media (max-width: 760px) {
  .day { grid-template-columns: 58px 1fr; } .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .dbox .dn { font-size: 24px; }
}

/* ---------- progress, forms, misc */
.bar { height: 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; min-width: 90px; position: relative; }
.bar i { display: block; height: 100%; background: var(--info); }
.bar i.aired { position: absolute; left: 0; top: 0; background: var(--good); }
label { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 5px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand-red) 55%, transparent); outline-offset: 1px; border-color: var(--brand-red); }
input[type=checkbox] { width: auto; accent-color: var(--red); }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.line-card { border: 1px solid var(--line); border-left: 4px solid var(--brand-red); border-radius: 10px; padding: 16px; background: var(--surface-2); margin-bottom: 12px; }
.dow { display: flex; gap: 6px; flex-wrap: wrap; }
.dow label { display: flex; align-items: center; gap: 4px; margin: 0; font-weight: 600; border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 9px; background: var(--surface); }
.help { font-size: 12px; color: var(--muted); margin-top: 5px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.hbar { display: grid; grid-template-columns: 120px 1fr 44px; gap: 10px; align-items: center; margin: 6px 0; font-size: 13px; }
.hbar .t { height: 10px; } .hbar .t i { display: block; height: 10px; border-radius: 0 5px 5px 0; background: var(--music); }
details > summary { cursor: pointer; color: var(--red); font-weight: 600; }
.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-family: var(--head); font-size: 16px; margin-bottom: 4px; }

/* ---------- sign-in */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--charcoal); }
.login-hero { position: relative; padding: 56px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.login-hero img { height: 40px; align-self: flex-start; }
.login-hero h1 { color: #fff; font-size: 40px; line-height: 1.1; max-width: 460px; margin: 0; }
.login-hero h1 em { font-style: normal; color: var(--brand-red); }
.login-hero p { color: #b9b8b2; max-width: 420px; }
.login-hero .frame { position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border: 26px solid var(--brand-red); }
.login-panel { background: var(--bg); display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: 100%; max-width: 380px; padding: 30px; }
.login-card h3 { font-size: 20px; margin-bottom: 4px; }
.gbtn { width: 100%; padding: 12px; font-size: 14.5px; margin-top: 18px; }
.gbtn svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; } .login-hero { padding: 32px 24px; gap: 28px; } .login-hero h1 { font-size: 30px; } }

/* commercials */
.client { margin-top: 18px; }
.client-h { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.client-h .cn { font-family: var(--head); font-weight: 800; font-size: 17px; }

/* phones: menu on its own row, compact steps and tiles */
@media (max-width: 760px) {
  .top .in { flex-wrap: wrap; height: auto; padding: 10px 16px 0; gap: 8px 14px; }
  .brand span { display: none; }
  .who { margin-left: auto; }
  .nav { order: 3; flex: 0 0 100%; height: 42px; margin: 0 -6px; }
  .nav a { padding: 0 10px; }
  main { padding: 18px 16px 30px; }
  h1 { font-size: 23px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .step { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
  .step div { font-size: 0; } .step div strong { font-size: 12.5px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile .v { font-size: 22px; }
  .head .row { width: 100%; } .head .row form, .head .row .btn { flex: 1; }
  .head .row .btn { width: 100%; }
}
.day > * { min-width: 0; }
td { overflow-wrap: anywhere; }
@media (max-width: 760px) { .chip { white-space: normal; } .card { max-width: 100%; } }

/* day playlist */
.pl-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; position: sticky; top: 63px; z-index: 4; }
.pl-tools input { max-width: 340px; flex: 1; min-width: 200px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; flex-wrap: wrap; }
.seg button { all: unset; cursor: pointer; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--charcoal); color: #fff; }
.hour { margin-bottom: 8px; overflow: hidden; }
.hour > summary { list-style: none; cursor: pointer; padding: 10px 16px; display: flex; gap: 12px; align-items: baseline; color: var(--ink); }
.hour > summary::-webkit-details-marker { display: none; }
.hour > summary b { font-family: var(--head); font-size: 15px; min-width: 58px; }
.hour > summary::before { content: "▸"; color: var(--muted); }
.hour[open] > summary::before { content: "▾"; }
table.pl { table-layout: fixed; width: 100%; }
table.pl td { padding: 7px 12px; font-size: 13.5px; overflow-wrap: anywhere; }
.hour { scroll-margin-top: 150px; }
table.pl td.t { width: 104px; } table.pl td.d { width: 70px; } table.pl td.ty { width: 118px; color: var(--ink-2); font-size: 12.5px; }
table.pl .dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; background: var(--line-2); vertical-align: 0; }
table.pl .k-concert .dot { background: var(--concert); } table.pl .k-music .dot { background: var(--music); }
table.pl .k-ad .dot { background: var(--ads); } table.pl .k-graphic .dot { background: var(--charcoal); }
table.pl tr.k-concert td { background: color-mix(in srgb, var(--concert) 7%, transparent); }
table.pl tr.k-ad td { background: color-mix(in srgb, var(--ads) 6%, transparent); }
table.pl tr.k-promo td, table.pl tr.k-graphic td { color: var(--ink-2); }
table.pl .id { margin-top: 1px; }
@media (max-width: 760px) { .pl-tools { position: static; } table.pl td.d { display: none; } table.pl td.ty { width: 22px; padding-right: 0; font-size: 0; } table.pl td.t { width: 92px; } }

/* rules page */
.srcs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: -4px 0 4px; }
.src { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap;
  background: var(--line); color: var(--ink-2); }
.src.s-doc { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red-ink, #b3261e); }
.src.s-aired { background: color-mix(in srgb, var(--music) 16%, transparent); color: color-mix(in srgb, var(--music) 70%, #000); }
.src.s-sheet { background: color-mix(in srgb, var(--concert) 14%, transparent); color: color-mix(in srgb, var(--concert) 75%, #000); }
.src.s-traffic { background: color-mix(in srgb, var(--ads) 16%, transparent); color: color-mix(in srgb, var(--ads) 70%, #000); }
.rules { padding: 4px 0; }
.rule { display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.rule:first-child { border-top: 0; }
.rule .n { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.rule .txt { line-height: 1.5; }
.rule .note { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.45; }
.rule .s { padding-top: 2px; }
b.val { font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--red) 8%, transparent); padding: 0 3px; border-radius: 3px; }
.rule .edit { display: none; margin-top: 10px; gap: 10px 16px; flex-wrap: wrap; align-items: center; }
body.editing .rule .edit { display: flex; }
.rule .fld { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rule .promos { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; margin: 0; font-weight: 500; }
.savebar { display: none; position: sticky; bottom: 12px; margin-top: 16px; padding: 12px 16px; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; z-index: 5; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
body.editing .savebar { display: flex; }
details.el { margin: 8px 0; } details.el summary { cursor: pointer; font-weight: 600; }
details.el .chips { margin-top: 8px; }
ul.checks { margin: 0; padding-left: 20px; line-height: 1.8; }
@media (max-width: 760px) { .rule { grid-template-columns: 30px 1fr; padding: 12px 14px; } .rule .s { grid-column: 2; } }
.rulecheck { margin-top: 14px; } .rulecheck summary { cursor: pointer; display: flex; gap: 10px; align-items: center; }
.chip.off { opacity: .45; text-decoration: line-through; }

/* monthly concert programming */
.monthgrid table { table-layout: fixed; min-width: 900px; }
.monthgrid td { vertical-align: top; padding: 8px 8px; }
.monthgrid tr.wkend td { background: color-mix(in srgb, var(--concert) 4%, transparent); }
.monthgrid td.dcell { white-space: nowrap; }
.monthgrid td.dcell b { font-family: var(--head); }
button.slot { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 6px 8px; border-radius: 8px;
  border: 1px solid transparent; line-height: 1.3; }
button.slot:hover { border-color: var(--line-2); background: var(--card, #fff); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
button.slot.pinned { border-color: color-mix(in srgb, var(--red) 30%, transparent); }
button.slot .a { display: block; font-weight: 700; font-size: 13.5px; color: var(--ink); }
button.slot .c { display: block; font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.slot .m { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
button.slot .tgs { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; } button.slot .tgs:empty { display: none; }
button.slot .tgs i.tg { margin-left: 0; }
button.slot.empty { color: var(--muted); font-size: 12.5px; border: 1px dashed var(--line-2); text-align: center; }
button.slot.empty.faint { border-color: transparent; opacity: .55; } button.slot.empty.faint:hover { opacity: 1; border-color: var(--line-2); }
td.marathon button.slot { display: inline-block; width: auto; min-width: 180px; max-width: 240px; vertical-align: top; margin: 0 6px 6px 0; border-color: var(--line); }
.pushed { color: var(--bad); font-weight: 600; }
i.tg { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 0 5px; border-radius: 4px; margin-left: 3px;
  background: var(--line); color: var(--ink-2); white-space: nowrap; }
i.t-STRONG { background: color-mix(in srgb, var(--music) 18%, transparent); color: color-mix(in srgb, var(--music) 70%, #000); }
i.t-MARQ { background: color-mix(in srgb, var(--concert) 16%, transparent); color: color-mix(in srgb, var(--concert) 75%, #000); }
i.t-TROP { background: color-mix(in srgb, var(--ads) 18%, transparent); color: color-mix(in srgb, var(--ads) 70%, #000); }
i.t-SOFT, i.t-WEAK { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
i.t-HOL { background: #eaf3ea; color: #2f6b34; } i.t-PIN { background: var(--red-soft); color: var(--red); }
td.lbl { font-size: 12.5px; } td.lbl .pill { margin: 2px 0; }
button.linklike { all: unset; cursor: pointer; color: var(--red); } button.linklike:hover { text-decoration: underline; }
td.dcell button.linklike { color: var(--ink); }
tr.dayall td { background: var(--bg, #f6f5f2); }
.airings { display: grid; gap: 4px; font-size: 13px; padding: 4px 0; } .airings .num { display: inline-block; min-width: 150px; color: var(--ink-2); }
.notes { padding: 6px 0; } .notes .note { padding: 9px 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.notes .note:first-child { border-top: 0; } .notes .note.bad { border-left: 3px solid var(--bad); }
.notes .note.warn { border-left: 3px solid #e0a100; } .notes .note.info { border-left: 3px solid var(--line-2); }
.notes .note summary { cursor: pointer; } .notes .note ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
dialog#dlg, dialog#daydlg { border: 0; padding: 18px 20px; width: min(720px, calc(100vw - 32px)); max-height: 85vh; overflow: auto; }
dialog#daydlg { width: min(460px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(20,20,20,.45); }
.althead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.alts { display: grid; gap: 4px; }
.alt button { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); }
.alt button:hover { border-color: var(--red); } .alt.current button { background: var(--red-soft); cursor: default; }
.alt .a { font-weight: 700; } .alt .c { color: var(--ink-2); font-size: 13px; } .alt .m { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.alt button .c { display: block; }
details.blocked { margin-top: 14px; } details.blocked summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.alt.off { padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.alt.off .a { color: var(--ink-2); } .alt.off .why { display: block; color: var(--bad); font-size: 12px; }
@media (max-width: 760px) { .airings .num { min-width: 0; display: block; } }
.calstate { margin-bottom: 12px; } .calstate.bad { border-left: 3px solid var(--bad); }
.calstate .foreign { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.calstate .foreign ul { columns: 2; margin: 6px 0 0; padding-left: 18px; }
.mbox { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
#files .file { margin-top: 6px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }

/* catalog check */
details.check { margin-bottom: 10px; overflow: hidden; }
details.check > summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; gap: 10px; align-items: center; }
details.check > summary::-webkit-details-marker { display: none; }
details.check > summary::before { content: "▸"; color: var(--muted); }
details.check[open] > summary::before { content: "▾"; }
details.check.lv-bad { border-left: 3px solid var(--bad); }
details.check.lv-warn { border-left: 3px solid #e0a100; }
details.check .cnt { margin-left: auto; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
details.check .why { padding: 0 16px 10px 40px; color: var(--muted); font-size: 13.5px; }
details.check .cfind { margin: 0 16px 10px 40px; max-width: 320px; }
details.check td.aid { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; }
details.check table { table-layout: fixed; } details.check th:first-child { width: 46%; } details.check th:nth-child(2) { width: 22%; }
details.check > summary b { color: var(--ink); }
