/* Layout: sticky brand bar with tabs, one column of sections, cards only where an item is its own object. */
:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --ink: #13263a;
  --muted: #5c6b7a;
  --line: #dde3e9;
  --accent: #1f5fbf;
  --accent-soft: #e6eefa;
  --gold: #b8862a;
  --ok: #1d7a4c;
  --warn: #a8660b;
  --bad: #b3261e;
  --bar: #13263a;
  --bar-ink: #f3f5f7;
  --font-display: "Rubik", "Heebo", system-ui, sans-serif;
  --font-body: "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  --r: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1722; --surface: #142232; --ink: #e8eef4; --muted: #94a3b3; --line: #24384c;
    --accent: #6ea3f0; --accent-soft: #1a2f4a; --gold: #e0b45a; --ok: #5cc28d; --warn: #e3a64a; --bad: #f07c73;
    --bar: #0a121b; --bar-ink: #e8eef4; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1722; --surface: #142232; --ink: #e8eef4; --muted: #94a3b3; --line: #24384c;
  --accent: #6ea3f0; --accent-soft: #1a2f4a; --gold: #e0b45a; --ok: #5cc28d; --warn: #e3a64a; --bad: #f07c73;
  --bar: #0a121b; --bar-ink: #e8eef4; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font-body); }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
h2 { font-size: 1.25rem; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* top bar */
.bar { background: var(--bar); color: var(--bar-ink); position: sticky; top: 0; z-index: 5; }
.bar .wrap { display: flex; align-items: center; gap: 20px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.mono { width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--bar-ink) 10%, transparent); color: var(--gold); display: grid; place-items: center; font: 600 20px Georgia, serif; }
.brand b { font-family: var(--font-display); font-size: 1.05rem; display: block; line-height: 1.1; }
.brand small { opacity: .7; font-size: .78rem; }
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.tabs a { color: inherit; text-decoration: none; padding: 7px 12px; border-radius: 8px; opacity: .75; white-space: nowrap; }
.tabs a:hover { opacity: 1; background: color-mix(in srgb, var(--bar-ink) 8%, transparent); }
.tabs a[aria-current="page"] { opacity: 1; background: color-mix(in srgb, var(--bar-ink) 14%, transparent); }
.bar .out { color: inherit; opacity: .7; font-size: .85rem; text-decoration: none; }

main { padding-block: 24px 60px; display: flex; flex-direction: column; gap: 28px; }
section.view { display: flex; flex-direction: column; gap: 28px; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 16px; }
.lede { color: var(--muted); margin: 4px 0 0; max-width: 70ch; }
.lede b { color: var(--ink); font-variant-numeric: tabular-nums; }
.fresh { color: var(--muted); font-size: .8rem; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi .l { color: var(--muted); font-size: .82rem; }
.kpi .v { font-family: var(--font-display); font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi .d { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.up { color: var(--ok); } .down { color: var(--bad); }

/* today strip: the owner reads the day in 10 seconds */
.today { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.today:empty { display: none; }
.td { background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; min-width: 0; }
.td:hover { border-color: var(--accent); }
.td .l { color: var(--muted); font-size: .8rem; }
.td .v { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.td .s { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.td.ok { border-inline-start-color: var(--ok); } .td.warn { border-inline-start-color: var(--warn); } .td.bad { border-inline-start-color: var(--bad); }
.td.bad .v { color: var(--bad); } .td.warn .v { color: var(--warn); }
@media (max-width: 760px) { .today { grid-template-columns: 1fr 1fr; } .td .v { font-size: 1.2rem; } }

/* day timeline */
.timeline { display: flex; flex-direction: column; border-inline-start: 2px solid var(--line); margin-inline-start: 8px; }
.slot { position: relative; padding: 10px 22px 10px 0; display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 14px; align-items: start; }
.slot::before { content: ""; position: absolute; inset-inline-start: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.slot.done::before { background: var(--ok); border-color: var(--ok); }
.slot.fail::before { background: var(--bad); border-color: var(--bad); }
.slot .t { font-family: var(--font-display); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.slot .k { font-weight: 600; }
.slot .h { color: var(--muted); font-size: .9rem; grid-column: 2 / 3; }
.empty { color: var(--muted); padding: 18px; border: 1px dashed var(--line); border-radius: var(--r); text-align: center; }

.pill { display: inline-block; font-size: .75rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: currentColor; }
.pill.bad { color: var(--bad); border-color: currentColor; }
.pill.warn { color: var(--warn); border-color: currentColor; }
.pill.sched { color: var(--accent); border-color: currentColor; }
.tag { display: inline-block; font-size: .75rem; padding: 1px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }

.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.grid2 > * { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }

/* chart */
.chart { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.chart svg { display: block; width: 100%; height: auto; direction: ltr; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.legend { display: flex; gap: 14px; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 5px; vertical-align: middle; }
.tip { position: absolute; top: 8px; pointer-events: none; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 20px rgb(0 0 0 / .12); border-radius: 8px; padding: 6px 10px; font-size: .8rem; white-space: nowrap; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters select, .filters input, .field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 0;
}
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: .85rem; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* content list */
.items { display: flex; flex-direction: column; gap: 10px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.item > summary { list-style: none; cursor: pointer; padding: 12px 16px; display: grid; grid-template-columns: 92px 1fr auto; gap: 4px 14px; align-items: center; }
.item > summary::-webkit-details-marker { display: none; }
.item .when { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; line-height: 1.3; }
.item .when b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }
.item .what { min-width: 0; }
.item .what .k { font-weight: 600; }
.item .what .h { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item[open] .what .h { white-space: normal; }
.item .body { padding: 0 16px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.item .body h4 { margin: 0 0 4px; font-size: .78rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.item .body p { margin: 0; white-space: pre-wrap; }
.item .links a { margin-inline-end: 10px; }
@media (max-width: 560px) { .item > summary { grid-template-columns: 70px 1fr; } .item > summary .pill { grid-column: 2; justify-self: start; } }

/* tables */
.tbl { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .8rem; font-weight: 500; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* inspiration */
.add { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.add .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: .8rem; color: var(--muted); }
.drop { border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); cursor: pointer; font-size: .9rem; }
.drop.has { border-style: solid; }
.drop img { max-height: 120px; border-radius: 6px; display: block; margin: 0 auto 6px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 9px 18px; cursor: pointer; font-weight: 500; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.small { padding: 4px 10px; font-size: .82rem; }
.btn.danger { color: var(--bad); }
.msg { font-size: .85rem; color: var(--muted); }
.msg.err { color: var(--bad); }
@media (max-width: 700px) { .add { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.card .shot { aspect-ratio: 4 / 3; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); font-family: var(--font-display); font-size: 1.1rem; max-width: 100%; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; }
.card .in { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.card .note { margin: 0; white-space: pre-wrap; }
.card .url { font-size: .8rem; overflow-wrap: anywhere; }
.card .used { font-size: .82rem; color: var(--ok); }
.card .foot { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.card.is-used { opacity: .75; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.mono.has-logo { background: transparent; overflow: hidden; }
.mono.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.login .mono { background: var(--bar); width: 44px; height: 44px; font-size: 26px; }

/* media */
.mgroups { display: flex; flex-direction: column; gap: 22px; }
.mgroup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mgroup > header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.mgroup > header h2 { margin-top: 2px; }
.msec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.msec h3 { font-size: .9rem; color: var(--muted); font-weight: 500; }
.mstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.mtile { margin: 0; display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; min-width: 0; }
.mtile video, .mtile .imgbtn img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; display: block; }

.mtile.is-wide video, .mtile.is-wide .imgbtn img { aspect-ratio: auto; }
.mtile .imgbtn { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.mtile.is-audio { grid-column: span 1; }
.mtile .aud { background: var(--accent-soft); border-radius: 10px; padding: 14px 8px; }
.mtile .aud audio { width: 100%; }
.mtile.is-compare { grid-column: span 1; }
.mtile figcaption { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.mrow { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mrow.small { justify-content: start; font-size: .8rem; }
.mhook { margin: 0; color: var(--muted); font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcap { margin: 4px 0 0; white-space: pre-wrap; font-size: .85rem; }
.mcaps summary, .mtile summary { cursor: pointer; color: var(--accent); font-size: .85rem; }
.mcaps h4 { margin: 10px 0 2px; font-size: .78rem; color: var(--muted); font-weight: 500; }
.lightbox { border: 0; padding: 12px; background: var(--surface); border-radius: 14px; max-width: min(92vw, 720px); max-height: 92vh; }
.lightbox::backdrop { background: rgb(0 0 0 / .7); }
.lightbox img, .lightbox video { max-width: 100%; max-height: 80vh; display: block; margin: 8px auto 0; border-radius: 8px; }
.cmp { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #000; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-b { position: absolute; inset: 0; }
.cmp-bar { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px rgb(0 0 0 / .5); pointer-events: none; }
.cmp-l { position: absolute; top: 8px; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; }
.cmp-l.a { left: 8px; } .cmp-l.b { right: 8px; }
.cmp input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; direction: ltr; }
@media (max-width: 560px) { .mstrip { grid-auto-columns: 62%; } }

/* performance */
.grid2.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .grid2.even { grid-template-columns: 1fr; } }
.bars { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.barrow { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: .85rem; }
.barrow .bt { background: var(--accent-soft); border-radius: 6px; height: 14px; overflow: hidden; }
.barrow .bt i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.barrow .bv { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.hookcell { min-width: 220px; max-width: 360px; }
th.n { text-align: end; } td.n { text-align: end; }
tr.us td { background: var(--accent-soft); }

/* market */
.tabs .badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #13263a; font-size: .72rem; font-weight: 600; margin-inline-start: 4px; }
.filters .sep { width: 1px; align-self: stretch; background: var(--line); margin-inline: 4px; }
.chip.small { padding: 3px 10px; font-size: .78rem; }
.mk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.mk-card.voted-like { border-color: var(--ok); }
.mk-card.voted-dislike { opacity: .7; }
.mk-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; background: #0d1722; color: #fff; text-decoration: none; overflow: hidden; }
.mk-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-thumb .src { position: absolute; top: 10px; inset-inline-start: 10px; font-size: .75rem; padding: 2px 10px; border-radius: 999px; background: rgb(0 0 0 / .65); color: #fff; }
.mk-thumb .src.competitor { background: #b3261e; }
.mk-thumb .src.hashtag { background: #8a5a00; }
.mk-thumb .play { position: absolute; width: 54px; height: 54px; border-radius: 50%; background: rgb(0 0 0 / .45); display: grid; place-items: center; font-size: 20px; }
.mk-card .in { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mk-card .nums { font-size: .85rem; font-variant-numeric: tabular-nums; }
.mk-card .cap { margin: 0; font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; direction: auto; unicode-bidi: plaintext; }
.mk-card .agentwhy { margin: 0; font-size: .8rem; color: var(--accent); }
.votes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vbtn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 6px; cursor: pointer; font-weight: 500; }
.vbtn.like[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.vbtn.dislike[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: #fff; }
.why { display: flex; flex-direction: column; gap: 6px; }
.why input { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.tagpick { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-card .foot { margin-top: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* watch */
.watch3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .watch3 { grid-template-columns: 1fr; } }
.wl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wadd { display: flex; gap: 6px; }
.wadd input { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; direction: ltr; }
.wlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wlist li { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 3px 4px 3px 12px; font-size: .85rem; direction: ltr; }
.wlist li.fresh { background: none; padding: 0; }
.wlist .x { border: 0; background: transparent; color: inherit; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; }
.wlist .x:hover { background: color-mix(in srgb, currentColor 15%, transparent); }

/* ---------- autopilot panel (overview) */
.ap { display: grid; gap: 14px; margin: 6px 0 22px; }
.ap-goal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.ap-num b { font-size: 2rem; font-variant-numeric: tabular-nums; }
.ap-num span { color: var(--muted); }
.ap-bar { height: 10px; border-radius: 6px; background: var(--accent-soft); overflow: hidden; margin: 10px 0 8px; }
.ap-bar i { display: block; height: 100%; background: var(--gold); border-radius: 6px; }
.ap-pace { margin: 0; font-size: .9rem; }
.ap-pace.ok { color: var(--ok); }
.ap-pace.warn { color: var(--ink); }
.ap-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
@media (max-width: 860px) { .ap-cols { grid-template-columns: 1fr; } }
.ap-need { background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; }
.ap-need h3 { margin: 0 0 4px; font-size: 1rem; }
.ap-need .why { margin: 0 0 8px; color: var(--muted); font-size: .88rem; }
.ap-copy { white-space: pre-wrap; font: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 0 0 8px; }
.ap-links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; font-size: .85rem; }
.ap-steps { margin: 0 0 8px; padding-inline-start: 20px; font-size: .86rem; color: var(--muted); }
.ap-act { display: flex; gap: 8px; align-items: center; }
.ap-days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; min-height: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 8px 8px; }
.ap-day { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.ap-day i { width: 70%; background: var(--accent); border-radius: 4px 4px 0 0; }
.ap-day .ap-v { font-size: .75rem; font-variant-numeric: tabular-nums; }
.ap-day small { font-size: .62rem; color: var(--muted); }
.ap-day em { font-style: normal; font-size: .58rem; color: var(--muted); text-align: center; line-height: 1.1; overflow: hidden; max-height: 2.3em; }
.ap-entry { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ap-entry ul { margin: 0; padding-inline-start: 18px; }
.ap-entry p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- owner notes on media (media tab) */
.mnotes { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.mnotes summary { cursor: pointer; font-size: .85rem; color: var(--accent); }
.mnotes .votes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 6px; }
.mnotes .nq { margin: 2px 0 4px; font-size: .8rem; color: var(--muted); }
.mnotes .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.mnotes textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: .88rem; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--surface); color: var(--ink); resize: vertical; }

/* מה חדש: agents' daily improvements */
.nw-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.nw-filter button { font: inherit; font-size: .85rem; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.nw-filter button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.nw-day { margin: 0 0 22px; }
.nw-day h2 { font-size: 1rem; margin: 0 0 10px; display: flex; gap: 10px; align-items: baseline; }
.nw-day h2 small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.nw-row { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 8px; }
.nw-tag { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; color: #fff; }
.nw-tag.video { background: #c0582f; } .nw-tag.dashboard { background: #3b6fb6; } .nw-tag.growth { background: #2f8a5b; } .nw-tag.social { background: #8a5bb8; } .nw-tag.publisher { background: #6b7785; }
.nw-row b { display: block; line-height: 1.4; }
.nw-row p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; white-space: pre-line; }
.nw-row a { font-size: .85rem; }
@media (max-width: 600px) { .nw-row { grid-template-columns: 1fr; } }

/* content calendar (2026-11-29) */
.cal-toggle { display: flex; gap: 6px; }
.cal { display: flex; flex-direction: column; gap: 14px; }
.cal-alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cal-alerts li { background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--accent); border-radius: 10px; padding: 9px 12px; }
.cal-alerts li.warn { border-inline-start-color: var(--warn); }
.cal-alerts li.bad { border-inline-start-color: var(--bad); }
.cal-alerts li.ok { border-inline-start-color: var(--ok); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-nav h2 { text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wd { text-align: center; color: var(--muted); font-size: .8rem; }
.cal-cell { min-height: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; text-align: start; position: relative; cursor: pointer; min-width: 0; }
.cal-cell:disabled { cursor: default; color: inherit; }
.cal-cell.out { background: transparent; border: 0; }
.cal-cell.past { opacity: .62; }
.cal-cell.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-cell.gap { border-style: dashed; border-color: var(--warn); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
.cal-cell.has:hover { border-color: var(--accent); }
.cal-d { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-posts { display: flex; flex-direction: column; gap: 3px; }
.cal-p { display: flex; gap: 4px; align-items: center; font-size: .76rem; font-variant-numeric: tabular-nums; border-radius: 6px; padding: 1px 5px; background: var(--accent-soft); border-inline-start: 3px solid var(--accent); }
.cal-p.ok { border-inline-start-color: var(--ok); }
.cal-p.warn { border-inline-start-color: var(--warn); }
.cal-p.bad { border-inline-start-color: var(--bad); }
.cal-more, .cal-gap { font-size: .74rem; color: var(--muted); }
.cal-gap { color: var(--warn); font-weight: 600; }
.cal-legend { flex-wrap: wrap; }
@media (max-width: 600px) {
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 58px; padding: 3px; border-radius: 7px; }
  .cal-p { padding: 0; background: none; border: 0; justify-content: center; }
  .cal-p .tm { display: none; }
  .cal-posts { flex-direction: row; flex-wrap: wrap; gap: 1px; }
  .cal-gap { font-size: .66rem; }
  .cal-nav h2 { font-size: 1.05rem; }
}

/* ---- מצב הפרסום (ops.js) */
.op-h2 { font-size: 1.05rem; margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
.op-h2 small { color: var(--muted); font-weight: 400; font-size: .85rem; }
.op-h2 .badge:empty { display: none; }
.op-list { display: flex; flex-direction: column; gap: 8px; }
.op-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.op-row.done { border-inline-start-color: var(--ok); }
.op-row.failed { border-inline-start-color: var(--bad); }
.op-row.late, .op-row.approval { border-inline-start-color: var(--warn); }
.op-row.scheduled { border-inline-start-color: var(--accent); }
.op-row.skipped { opacity: .7; }
.op-when { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.op-when b { font-size: 1.05rem; }
.op-when small { color: var(--muted); font-size: .78rem; }
.op-what { min-width: 0; }
.op-k { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.op-h { color: var(--muted); font-size: .88rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-why { margin: 8px 0 0; font-size: .9rem; line-height: 1.5; }
.op-row.failed .op-why b { color: var(--bad); } .op-row.late .op-why b { color: var(--warn); }
.op-err { margin-top: 6px; font-size: .8rem; color: var(--muted); }
.op-err code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; }
.op-links { display: flex; gap: 12px; margin-top: 6px; font-size: .85rem; }
.op-act { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 110px; }
.op-q { font-size: .8rem; color: var(--accent); max-width: 170px; }
.op-fine { background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--ok); border-radius: var(--r); padding: 14px; margin: 0; color: var(--ok); font-weight: 500; }
.op-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; }
.op-day.is-today { border-color: var(--accent); }
.op-day > summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; cursor: pointer; list-style: none; }
.op-day > summary::-webkit-details-marker { display: none; }
.op-day > summary b { min-width: 104px; }
.op-day > .op-list { padding: 0 10px 10px; }
.op-counts { display: flex; gap: 6px; flex-wrap: wrap; }
.op-none { color: var(--muted); font-size: .85rem; }
.op-log { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.op-log small { color: var(--muted); }
@media (max-width: 640px) {
  .op-row { grid-template-columns: 52px 1fr; }
  .op-act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; min-width: 0; }
  .op-q { max-width: none; }
}
#ops-health { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.op-h2 .badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .75rem; font-weight: 600; }
