/* Media dashboard additions. Everything else comes from the website's site.css + admin.css (assets/web/, synced). */
.md-mode { margin-inline-start: 8px; padding: 3px 10px; font-size: 12px; font-weight: 700; background: var(--s1); border: 1px solid var(--ln); color: var(--mut); }
.md-mode.live { background: #6B1F1F; border-color: #FF9A8A; color: #FFE0DA; }
.md-toast { position: fixed; inset-inline: 0; bottom: 16px; text-align: center; pointer-events: none; }
.md-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.md-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1.5px solid var(--ln); background: #0D1219; }
.md-card b { font-family: var(--f-d); font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.md-card a { color: var(--y); font-weight: 600; text-decoration: underline; }
.md-sec { display: flex; flex-direction: column; gap: 12px; }
.md-sec h2 { font-size: 20px; font-weight: 700; }
.md-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.md-date { font-size: 13px; color: var(--mut); font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.ms-tag.moon { background: #2B3A52; }
.ms-tag.ok { background: #1F4A2C; color: #CFF3D8; }
.ms-tag.warn { background: none; border: 1px dashed var(--mut); color: var(--mut); }
.ms-tag.bad { background: #6B1F1F; color: #FFE0DA; }
.ms-tag.plat { font-family: var(--f-m); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
/* calendar month grid */
.cal-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.cal-bar .seg { flex: 0 1 220px; }
.cal-bar select.inp { width: auto; flex: 0 1 180px; color-scheme: dark; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav h2 { min-width: 9em; text-align: center; font-size: 20px; font-weight: 700; }
.adm .cal-bar .m-sm, .adm .cal-nav .m-sm { min-height: 52px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--ln); border-inline-start: 1px solid var(--ln); }
.cal-dow { padding: 8px; font-size: 12px; font-weight: 700; color: var(--mut); text-align: center; border-inline-end: 1px solid var(--ln); border-bottom: 1px solid var(--ln); background: var(--s1); }
.cal-day { min-height: 108px; padding: 6px; display: flex; flex-direction: column; gap: 4px; border-inline-end: 1px solid var(--ln); border-bottom: 1px solid var(--ln); background: #0D1219; min-width: 0; }
.cal-day.out { background: var(--bg); opacity: .45; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--y); }
.cal-n { font-family: var(--f-m); font-size: 12px; color: var(--mut); }
.cal-ev { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 3px 6px; font-size: 12px; font-weight: 600; line-height: 1.4; background: var(--s2); border-inline-start: 3px solid var(--y); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.cal-ev.religious { border-color: #9BD7A6; }
.cal-ev.national { border-color: #F3C954; }
.cal-ev.commercial, .cal-ev.sport, .cal-ev.gaming { border-color: #7FB2FF; }
.cal-ev.moon { border-style: dashed; }
.cal-ev:focus-visible { outline: 2px solid var(--y); outline-offset: 1px; }
.ev-form { display: flex; flex-direction: column; gap: 22px; }
.ev-form textarea.inp { min-height: 96px; padding-block: 12px; resize: vertical; line-height: 1.6; }
.chk.sm span { min-height: 36px; padding: 0 10px; font-size: 13px; }
.md-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.md-shots { display: flex; flex-direction: column; gap: 6px; padding-inline-start: 14px; border-inline-start: 3px solid var(--ln); font-size: 14px; }
.md-shots li { list-style: none; }
.md-lib { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ln); }
.md-lib > * { padding: 10px 8px; border-bottom: 1px solid var(--ln); font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.md-lib .h { font-size: 12px; font-weight: 700; color: var(--mut); }
@media (max-width: 700px) {
  .md-cards { grid-template-columns: minmax(0, 1fr); }
  .cal-grid { display: none; }
  .cal-bar .seg, .cal-bar select.inp { flex: 1 1 100%; }
  .md-lib { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .md-lib .h:nth-child(n+3) { display: none; }
}
.cal-mlist { display: none; }
@media (max-width: 700px) { .cal-mlist { display: flex; } }

/* ---- Boards A1-A12 (approved 11-08, owner: all defaults). From design/go_media/tools/build_media.py MB_CSS. ---- */
:root { --t-rel: #9BD7A6; --t-nat: #F3C954; --t-com: #7FB2FF; --t-sport: #F2A0C0; --t-game: #BCA8FF; --t-launch: #FFB13B; --t-upd: #6FD6D0; --t-school: #C9D1DC;
        --bad: #FF9A8A; --bad-bg: #6B1F1F; --ok: #9BD7A6; --ok-bg: #1F4A2C; --info-bg: #2B3A52; }
.adm-nav { overflow-x: auto; scrollbar-width: none; }
.adm-nav a { white-space: nowrap; }
.adm-main { gap: 28px; }
.adm-main > .seg, .fld > .seg, .md-row > .seg, .mb-box > .seg { flex: none; }
.mb-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.mb-h .sub { font-size: 15px; color: var(--mut); margin-top: 6px; }
.mb-h .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.adm .mb-h .btn { min-height: 48px; font-size: 15px; padding: 0 20px; }
.mb-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; align-items: start; }
.mb-cols.side { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.mb-box { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1.5px solid var(--ln); background: #0D1219; min-width: 0; }
.mb-box.s1 { background: var(--s1); }
.mb-box h3 { font-size: 17px; font-weight: 700; }
.mb-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mb-sec-h a { font-size: 14px; font-weight: 600; color: var(--y); text-decoration: underline; }
/* stat cards */
.md-cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.md-card .hint { font-weight: 600; }
.md-card.warn { border-color: var(--bad); }
.md-card.warn b { color: var(--bad); }
/* tags */
.ms-tag { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ms-tag.y { background: var(--y); color: var(--yi); }
.ms-tag.info { background: var(--info-bg); }
.ms-tag.line { background: none; border: 1px solid var(--ln); color: var(--mut); }
.ms-tag .dot { width: 8px; height: 8px; background: currentColor; flex: none; }
.ty { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; font-size: 13px; font-weight: 700; background: var(--s1); border-inline-start: 3px solid var(--y); white-space: nowrap; }
.ty.rel { border-color: var(--t-rel); } .ty.nat { border-color: var(--t-nat); } .ty.com { border-color: var(--t-com); }
.ty.sport { border-color: var(--t-sport); } .ty.game { border-color: var(--t-game); } .ty.launch { border-color: var(--t-launch); } .ty.upd { border-color: var(--t-upd); }
.cal-ev.rel { border-color: var(--t-rel); } .cal-ev.nat { border-color: var(--t-nat); } .cal-ev.com { border-color: var(--t-com); }
.cal-ev.sport { border-color: var(--t-sport); } .cal-ev.game { border-color: var(--t-game); } .cal-ev.launch { border-color: var(--t-launch); } .cal-ev.upd { border-color: var(--t-upd); }
.cal-ev .mk { color: var(--mut); font-weight: 700; margin-inline-start: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--mut); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; display: inline-block; }
.lg-dash { border: 1.5px dashed var(--mut); }
/* rows */
.ev-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border: 1.5px solid var(--ln); background: #0D1219; }
.ev-row .when { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.ev-row .when b { font-family: var(--f-d); font-size: 26px; line-height: 1; }
.ev-row .when span { font-size: 13px; color: var(--mut); }
.ev-row .what { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ev-row .nm { font-size: 16px; font-weight: 700; }
.nt-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 14px; border: 1.5px solid var(--ln); background: #0D1219; align-items: start; }
.nt-row .tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; line-height: 1.6; }
.nt-row a { color: var(--y); font-weight: 600; text-decoration: underline; font-size: 13px; }
.mono { font-family: var(--f-m); font-size: 12.5px; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.time { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
/* mode */
.md-mode.live { background: var(--bad-bg); border-color: var(--bad); color: #FFE0DA; }
/* login */
.lg-wrap { max-width: 440px; margin: 0 auto; padding: 72px 24px; display: flex; flex-direction: column; gap: 22px; }
.lg-steps { display: flex; gap: 8px; font-size: 13px; font-weight: 700; color: var(--mut); }
.lg-steps span { flex: 1; padding-top: 8px; border-top: 3px solid var(--ln); }
.lg-steps span.on { color: var(--ink); border-color: var(--y); }
.lg-steps span.done { border-color: var(--y); }
.code-in { font-family: var(--f-m); font-size: 28px; text-align: center; justify-content: center; direction: ltr; min-height: 64px; }
.code-in .dg { white-space: nowrap; letter-spacing: .45em; margin-inline-end: -.45em; }
.code-in .ph0 { color: var(--mut); opacity: .5; }
.lg-wrap .btn { min-height: 52px; font-size: 16px; }
.lg-note { font-size: 13px; color: var(--mut); line-height: 1.6; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; font-size: 14px; font-weight: 600; line-height: 1.6; border: 1.5px solid var(--bad); background: rgba(107,31,31,.35); color: #FFE0DA; }
.alert svg { flex: none; margin-top: 3px; color: var(--bad); }
.alert.info { border-color: var(--ln); background: var(--s1); color: var(--ink); }
.alert.info svg { color: var(--y); }
.alert.ok { border-color: var(--ok); background: rgba(31,74,44,.45); color: #E3F7E8; }
.alert.ok svg { color: var(--ok); }
.alert .act { margin-inline-start: auto; color: var(--y); text-decoration: underline; white-space: nowrap; }
/* form bits */
.sw { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.sw i { position: relative; width: 44px; height: 26px; background: var(--s2); border: 1.5px solid var(--ln); flex: none; }
.sw i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 17px; height: 17px; background: var(--mut); }
.sw.on i { background: var(--y); border-color: var(--y); }
.sw.on i::after { inset-inline-start: auto; inset-inline-end: 3px; background: var(--yi); }
.sw.dis { opacity: .5; }
.ck { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.ck i { width: 22px; height: 22px; border: 1.5px solid var(--ln); background: #0D1219; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ck.on i { background: var(--y); border-color: var(--y); color: var(--yi); }
.ck.bad i { border-color: var(--bad); }
.sel { justify-content: space-between; }
.sel::after { content: ""; width: 8px; height: 8px; border-inline-end: 2px solid var(--mut); border-bottom: 2px solid var(--mut); transform: rotate(45deg) translateY(-3px); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.danger { color: var(--bad) !important; border-color: var(--bad) !important; }
.adm-btns.split { justify-content: space-between; flex-wrap: wrap; }
.adm-btns .grp { display: flex; gap: 12px; flex-wrap: wrap; }
/* ideas */
.id-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.id-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1.5px solid var(--ln); background: #0D1219; }
.id-card h3 { font-size: 19px; font-weight: 700; line-height: 1.4; }
.id-hook { font-size: 15px; line-height: 1.7; padding: 10px 12px; background: var(--s1); }
.id-hook b { color: var(--y); font-size: 12px; display: block; margin-bottom: 2px; }
.shots { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--ln); }
.shots li { list-style: none; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--ln); font-size: 14px; line-height: 1.55; }
.shots .tc { font-family: var(--f-m); font-size: 12.5px; color: var(--mut); direction: ltr; text-align: start; unicode-bidi: isolate; padding-top: 2px; }
.id-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.id-foot .who { font-size: 13px; color: var(--mut); }
.reason { font-size: 14px; line-height: 1.6; color: var(--mut); padding-inline-start: 12px; border-inline-start: 3px solid var(--bad); }
/* review */
.rv { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: start; }
.vid { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #000; overflow: hidden; border: 1.5px solid var(--ln); }
.vid img { width: 100%; height: 100%; object-fit: cover; object-position: 88% 55%; }
.vid .sz { position: absolute; inset: 0; pointer-events: none; }
.vid .sz .ztop { position: absolute; inset-inline: 0; top: 0; height: 12%; background: rgba(255,111,216,.28); border-bottom: 1.5px dashed var(--ph); }
.vid .sz .bot { position: absolute; inset-inline: 0; bottom: 0; height: 22%; background: rgba(255,111,216,.28); border-top: 1.5px dashed var(--ph); }
.vid .sz .side { position: absolute; top: 12%; bottom: 22%; inset-inline-end: 0; width: 16%; background: rgba(255,111,216,.28); border-inline-start: 1.5px dashed var(--ph); }
[dir="rtl"] .vid .sz .side { inset-inline-end: auto; left: auto; right: 0; }
.vid .cap { position: absolute; inset-inline: 10%; top: 40%; text-align: center; font-family: var(--f-d); font-weight: 700; font-size: 22px; line-height: 1.3; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.vid .tl { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-family: var(--f-m); font-size: 12px; color: #fff; direction: ltr; }
.vid .tl .pbar { flex: 1; height: 4px; background: rgba(255,255,255,.3); position: relative; }
.vid .tl .pbar::after { content: ""; position: absolute; inset-block: 0; left: 0; width: 34%; background: var(--y); }
.vid .smp { position: absolute; top: 10px; inset-inline-start: 10px; padding: 2px 8px; font-family: var(--f-m); font-size: 11px; color: var(--ph); border: 1px dashed var(--ph); background: rgba(0,0,0,.6); }
.cnt { font-family: var(--f-m); font-size: 12.5px; color: var(--mut); direction: ltr; unicode-bidi: isolate; }
.cnt.over { color: var(--bad); font-weight: 700; }
.ta { min-height: 120px; align-items: flex-start; padding-block: 12px; line-height: 1.7; font-size: 15px; white-space: pre-line; }
.chk-list { display: flex; flex-direction: column; gap: 12px; }
.chk-list .ck { align-items: flex-start; }
.chk-list .ck small { display: block; font-size: 13px; font-weight: 500; color: var(--mut); margin-top: 2px; }
.pk { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--ln); background: #0D1219; }
.pk .ico { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ln); }
.pk .meta { font-size: 13px; color: var(--mut); }
.ver { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1.5px solid var(--y); background: var(--s1); }
.ver .btn:disabled, .btn.off { opacity: .45; cursor: not-allowed; }
/* posts */
.pst { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border: 1.5px solid var(--ln); background: #0D1219; }
.pst-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pst-h .pacc { font-size: 14px; font-weight: 600; color: var(--mut); }
.pst-b { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
.pst-b .thb { width: 72px; aspect-ratio: 9 / 16; overflow: hidden; background: var(--s1); }
.pst-b .thb img { width: 100%; height: 100%; object-fit: cover; object-position: 88% 55%; }
.pst-b .cp { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pst-b .ti { font-size: 16px; font-weight: 700; }
.pst-b .tx { font-size: 14px; line-height: 1.6; color: var(--card-ink); }
.kv { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--mut); }
.kv b { color: var(--ink); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.steps span { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--mut); }
.steps span::before { content: ""; height: 4px; background: var(--s2); }
.steps span.done::before { background: var(--y); }
.steps span.now { color: var(--ink); }
.steps span.now::before { background: repeating-linear-gradient(90deg, var(--y) 0 8px, var(--s2) 8px 12px); }
.pst .note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mut); padding: 8px 10px; border: 1px dashed var(--mut); }
.pst-f { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pst-f .sp { margin-inline-start: auto; }
.st-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.st-key div { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mut); line-height: 1.5; }
/* library */
.lib { width: 100%; border-collapse: collapse; font-size: 14px; }
.lib th { text-align: start; font-size: 12px; font-weight: 700; color: var(--mut); padding: 10px 10px; border-bottom: 1px solid var(--ln); background: var(--s1); white-space: nowrap; }
.lib td { padding: 12px 10px; border-bottom: 1px solid var(--ln); vertical-align: middle; }
.lib tr.flag td { background: rgba(107,31,31,.18); }
.lib .fn { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lib .fn .ico { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--s1); flex: none; }
.lib .fn b { display: block; font-weight: 700; }
.lib .fn small { display: block; font-size: 12px; color: var(--mut); }
.yes { color: var(--ok); font-weight: 700; } .no { color: var(--mut); } .miss { color: var(--bad); font-weight: 700; }
.lib-cards { display: none; flex-direction: column; gap: 10px; }
/* accounts */
.acc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.acc { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1.5px solid var(--ln); background: #0D1219; }
.acc.later { opacity: .55; }
.acc-h { display: flex; align-items: center; gap: 12px; }
.acc-h .ico { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ln); }
.acc-h b { font-size: 18px; } .acc-h small { display: block; font-size: 13px; color: var(--mut); }
.acc dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: 14px; }
.acc dt { color: var(--mut); } .acc dd { font-weight: 600; }
.acc .foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ln); }
/* results */
.later-band { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px dashed var(--ph); color: var(--ink); font-size: 14px; font-weight: 600; }
.later-band b { color: var(--ph); font-family: var(--f-m); font-size: 12px; }
.chart { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 4px; align-items: end; height: 180px; padding-top: 8px; border-bottom: 1px solid var(--ln); direction: ltr; }
.chart i { display: block; background: var(--y); min-height: 2px; }
.chart i.pk2 { background: var(--sun); }
.ch-ax { display: flex; justify-content: space-between; font-family: var(--f-m); font-size: 11px; color: var(--mut); direction: ltr; }
.res td.n, .res th.n { text-align: end; } .res td.n { font-variant-numeric: tabular-nums; font-family: var(--f-m); font-size: 13px; }
/* links editor */
.le { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; }
.le-prev { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.le-prev .frame { width: 390px; height: 760px; overflow: hidden; border: 1.5px solid var(--ln); background: var(--bg); }
.le-prev .frame img { width: 390px; display: block; }
.lk { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--ln); background: #0D1219; }
.lk .mv { display: flex; flex-direction: column; gap: 2px; }
.lk .mv button { all: unset; width: 28px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ln); color: var(--mut); cursor: pointer; }
.lk .ico { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ln); }
.lk .tx { min-width: 0; } .lk .tx b { display: block; font-size: 15px; } .lk .tx small { display: block; font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slk { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--ln); background: #0D1219; font-size: 14px; }
.slk.off { opacity: .6; }
.slk .cn { font-size: 13px; color: var(--mut); white-space: nowrap; }
.slk .pth { white-space: nowrap; overflow-wrap: normal; }
.ar-in { font-family: var(--f-ar); letter-spacing: 0; }
/* states sheet */
.stg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.stg > div { display: flex; flex-direction: column; gap: 10px; }
.stg .lab { font-family: var(--f-m); font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; direction: ltr; text-align: start; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 20px; border: 1.5px dashed var(--ln); text-align: center; color: var(--mut); font-size: 15px; }
.empty b { color: var(--ink); font-size: 17px; }
.sk { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1.5px solid var(--ln); background: #0D1219; }
.sk i { display: block; height: 14px; background: linear-gradient(90deg, var(--s1), var(--s2), var(--s1)); }
.toast-b { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--s2); border: 1.5px solid var(--ln); font-size: 14px; font-weight: 600; align-self: center; }
.toast-b.ok svg { color: var(--ok); } .toast-b.bad { border-color: var(--bad); } .toast-b.bad svg { color: var(--bad); }
.dlg-wrap { position: relative; padding: 28px; background: rgba(0,0,0,.55); border: 1px solid var(--ln); display: flex; justify-content: center; }
.dlg { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--s1); border: 1.5px solid var(--ln); }
.dlg h3 { font-size: 19px; font-weight: 700; }
.dlg p { font-size: 14px; line-height: 1.7; color: var(--card-ink); }
.dlg .adm-btns .btn { min-height: 48px; font-size: 15px; }
@media (max-width: 700px) {
  .mb-cols, .mb-cols.side, .id-grid, .rv, .le, .acc-grid, .grid3, .stg { grid-template-columns: minmax(0, 1fr); }
  .md-cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-card { padding: 14px; } .md-card b { font-size: 30px; }
  .st-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib { display: none; } .lib-cards { display: flex; }
  .le-prev { display: none; }
  .slk { grid-template-columns: minmax(0, 1fr) auto; } .slk .tgt { grid-column: 1 / -1; grid-row: 2; }
  .chart { height: 130px; gap: 2px; }
  .adm-btns .grp { flex-direction: column; width: 100%; }
  .adm-btns.split { flex-direction: column; }
  .ev-row { grid-template-columns: 64px minmax(0, 1fr); padding: 12px; } .ev-row .when b { font-size: 22px; }
  .pst-b { grid-template-columns: 56px minmax(0, 1fr); } .pst-b .thb { width: 56px; }
  .lg-wrap { padding: 40px 20px; }
  .adm-hd .md-mode { display: none; }
  .ph-mode { display: flex !important; }
  .lk .sw { font-size: 0; gap: 0; } .lk { gap: 10px; }
  .cal-nav { flex-wrap: wrap; } .cal-nav .hj { flex-basis: 100%; margin: 0; } .cal-bar .cal-sw { display: none; }
}
.cal-nav .hj { margin-inline-start: auto; }
.ph-mode { display: none; align-items: center; gap: 8px; padding: 8px 20px; font-size: 13px; font-weight: 700; color: var(--mut); background: var(--s1); border-bottom: 1px solid var(--ln); }
.ph-mode.live { background: var(--bad-bg); color: #FFE0DA; }

/* ---- build additions (not on the boards: real controls for the drawn ones) ---- */
.ty.school, .cal-ev.school { border-color: var(--t-school); }
button.cal-ev .mk { pointer-events: none; }
.sw { cursor: pointer; position: relative; }
.sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sw input:focus-visible + i { outline: 2px solid var(--y); outline-offset: 2px; }
.sw input:checked + i { background: var(--y); border-color: var(--y); }
.sw input:checked + i::after { inset-inline-start: auto; inset-inline-end: 3px; background: var(--yi); }
.sw input:disabled { cursor: not-allowed; }
.sw:has(input:disabled) { opacity: .5; }
label.ck { cursor: pointer; position: relative; }
label.ck input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
label.ck input:focus-visible + i { outline: 2px solid var(--y); outline-offset: 2px; }
label.ck input:checked + i { background: var(--y); border-color: var(--y); color: var(--yi); }
label.ck i svg { visibility: hidden; } label.ck input:checked + i svg { visibility: visible; }
.ck.dis { opacity: .55; }
select.inp.sel { color-scheme: dark; }
.ms-bar select.inp { width: auto; flex: 0 1 200px; color-scheme: dark; }
.code-in input { all: unset; width: 100%; text-align: center; letter-spacing: .45em; font: inherit; }
.ta-ro { white-space: pre-wrap; overflow-wrap: anywhere; }
.vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid .noclip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--mut); font-size: 14px; text-align: center; padding: 20px; }
.vid[data-pl="reels"] .sz .ztop { height: 10%; } .vid[data-pl="reels"] .sz .bot { height: 26%; } .vid[data-pl="reels"] .sz .side { width: 14%; bottom: 26%; top: 10%; }
.vid[data-pl="shorts"] .sz .ztop { height: 9%; } .vid[data-pl="shorts"] .sz .bot { height: 20%; } .vid[data-pl="shorts"] .sz .side { width: 15%; bottom: 20%; top: 9%; }
.vid.nosz .sz { display: none; }
.thb .thph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--mut); }
dialog.md-dlg { padding: 0; border: 0; background: none; color: inherit; max-width: calc(100vw - 32px); width: 440px; }
dialog.md-dlg::backdrop { background: rgba(0,0,0,.6); }
dialog.md-dlg .dlg { max-width: none; }
dialog.md-dlg textarea.inp, dialog.md-dlg input.inp { width: 100%; color-scheme: dark; }
.toast-b.md-toast-b { position: fixed; bottom: 16px; inset-inline: 0; margin: 0 auto; width: max-content; max-width: calc(100vw - 32px); z-index: 20; }
.toast-b[hidden] { display: none; }
.lk-out { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ms-item .fn .ico { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--s1); flex: none; }
/* classes for what the boards drew with inline styles (the CSP blocks style attributes) */
.sk i.w30 { width: 30%; } .sk i.w40 { width: 40%; } .sk i.w70 { width: 70%; } .sk i.w85 { width: 85%; } .sk i.w90 { width: 90%; }
.sm13 { font-size: 13px; } .ink { color: var(--ink); } .mut { color: var(--mut); } .push { margin-inline-start: auto; } .start { align-self: flex-start; }
.legend i.lg-rel { background: var(--t-rel); } .legend i.lg-nat { background: var(--t-nat); } .legend i.lg-com { background: var(--t-com); } .legend i.lg-sport { background: var(--t-sport); }
.legend i.lg-game { background: var(--t-game); } .legend i.lg-launch { background: var(--t-launch); } .legend i.lg-upd { background: var(--t-upd); } .legend i.lg-school { background: var(--t-school); }
.cal-bar select.inp.sel { width: auto; flex: 0 1 190px; }
.cal-mlist.col10 { flex-direction: column; gap: 10px; }
.md-flags.wide { gap: 14px 24px; }
.grp.g8 { display: flex; gap: 8px; }
.lbl.sm-lbl { font-size: 13px; margin-bottom: 6px; }
.col12 { display: flex; flex-direction: column; gap: 12px; } .col24 { display: flex; flex-direction: column; gap: 24px; }
.md-row.between { justify-content: space-between; }
.ms-item .fn { display: flex; gap: 10px; align-items: center; }
