/* Eltan MCP admin. One deep green on a light grey ground, white floating cards.
   Sizes are rem on a
   root that grows with the viewport, so a 3440 screen gets a bigger dashboard, not
   more empty grey. */
:root {
  --canvas: #efefef;
  --card: #ffffff;
  --soft: #f3f3f3;
  --soft-2: #f7f7f7;
  --ink: #141414;
  --ink-2: #3b3b3b;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #ececec;
  --green: #1f7a4d;
  --green-hover: #186640;
  --green-deep: #14472f;
  --green-soft: #a3c9b4;
  --green-tint: #e3f0e8;
  --amber: #8f5a00;
  --amber-tint: #f8ecd6;
  --red: #b0402c;
  --red-tint: #f7e1dc;
  --r-card: 1.6rem;
  --r-inner: 1.15rem;
  --gap: 1.1rem;
  --font: 'Outfit', 'Noto Sans Hebrew', system-ui, sans-serif;
}
html { font-size: clamp(14px, 0.35vw + 10px, 22px); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 0.95rem/1.45 var(--font); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
svg.lucide { width: 1.15rem; height: 1.15rem; stroke-width: 1.8; flex: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.sub-num { color: var(--faint); }

.app { max-width: 160rem; margin: 0 auto; padding: 1.1rem clamp(1rem, 1.6vw, 2.2rem) 2.5rem; }

/* top bar */
.topbar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem;
  background: var(--card); border-radius: 999px; padding: 0.55rem 0.7rem 0.55rem 1.1rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 1.3rem; letter-spacing: -0.015em; }
.logo img { height: 2.5rem; width: auto; display: block; }
.logo b { color: var(--green); font-weight: 700; }
.tabs { justify-self: center; display: flex; gap: 0.2rem; background: var(--soft); border-radius: 999px; padding: 0.3rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 0.55rem 1.1rem; border-radius: 999px; color: var(--ink-2); transition: background .15s, color .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.top-actions { display: flex; align-items: center; gap: 0.5rem; }
.search { display: flex; align-items: center; gap: 0.5rem; background: var(--soft); border-radius: 999px;
  padding: 0 0.9rem; height: 2.6rem; width: 15rem; color: var(--muted); }
.search input { border: 0; background: none; outline: none; width: 100%; color: var(--ink); }
.circle { position: relative; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border-radius: 50%; background: var(--soft); color: var(--ink); transition: background .15s; flex: none; }
.circle:hover { background: #e8e8e8; }
.badge { position: absolute; top: -0.15rem; right: -0.15rem; min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem;
  border-radius: 999px; background: var(--green); color: #fff; font-size: 0.7rem; font-weight: 600; display: grid; place-items: center; }
.me { cursor: pointer; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--green-deep); color: #fff;
  display: grid; place-items: center; font-weight: 600; }

/* greeting */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin: 1.8rem 0 1.4rem 5.4rem; }
.hello h1 { margin: 0; font-weight: 500; font-size: 2.5rem; letter-spacing: -0.025em; line-height: 1.1; }
.hello h1 span { color: var(--faint); font-weight: 400; }
.hello-actions { display: flex; gap: 0.6rem; }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.7rem; padding: 0 1.15rem;
  border-radius: 999px; background: var(--card); color: var(--ink); white-space: nowrap; transition: background .15s, color .15s; }
.pill:hover { background: #fafafa; }
.pill.solid { background: var(--green); color: #fff; }
.pill.solid:hover { background: var(--green-hover); }
.pill.quiet { background: var(--soft); }
.range select { border: 0; background: none; outline: none; cursor: pointer; }

/* body: rail + view */
.body { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1.2rem; align-items: start; }
.rail { position: sticky; top: 1rem; display: grid; gap: 0.9rem; }
.rail-group { background: var(--card); border-radius: 999px; padding: 0.5rem; display: grid; gap: 0.35rem; justify-items: center; }
.rail button { width: 3.1rem; height: 3.1rem; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: background .15s, color .15s; }
.rail button:hover { background: var(--soft); color: var(--ink); }
.rail button.on { background: var(--green); color: #fff; }
.rail svg.lucide { width: 1.3rem; height: 1.3rem; }

/* cards */
.card { background: var(--card); border-radius: var(--r-card); padding: 1.3rem 1.4rem; min-width: 0; }
.card-head { display: flex; align-items: flex-start; gap: 0.8rem; margin-bottom: 1rem; }
.card-head .ico { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--soft); display: grid; place-items: center; flex: none; }
.card-head h2 { margin: 0; font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; }
.card-head p { margin: 0.1rem 0 0; font-size: 0.82rem; color: var(--muted); }
.card-head .end { margin-left: auto; display: flex; gap: 0.4rem; align-items: center; }
.toggle { display: flex; background: var(--soft); border-radius: 999px; padding: 0.25rem; }
.toggle button { padding: 0.45rem 1rem; border-radius: 999px; color: var(--muted); font-size: 0.88rem; }
.toggle button.on { background: var(--green); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 500; background: var(--green); color: #fff; white-space: nowrap; }
.chip.soft { background: var(--green-tint); color: var(--green-deep); }
.chip.amber { background: var(--amber-tint); color: var(--amber); }
.chip.grey { background: var(--soft); color: var(--muted); }
.big { font-size: 2.6rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.empty { color: var(--muted); font-size: 0.9rem; padding: 1.2rem 0; }

/* overview grid */
.overview { display: grid; gap: var(--gap);
  grid-template-columns: minmax(18rem, 1fr) minmax(0, 1.75fr) minmax(18rem, 1fr);
  grid-template-areas: "hero bars load" "table table side"; }
.ov-hero { grid-area: hero; display: grid; gap: var(--gap); align-content: start; }
.ov-bars { grid-area: bars; }
.ov-load { grid-area: load; display: flex; flex-direction: column; }
.ov-table { grid-area: table; }
.ov-side { grid-area: side; display: flex; flex-direction: column; }

/* brand card: solid green, white type, the logo's grid as its one detail */
.ground { position: relative; overflow: hidden; border-radius: var(--r-inner); background: var(--green-deep);
  color: #fff; padding: 1.25rem 1.4rem 1.2rem; min-height: 11.5rem; display: flex; flex-direction: column; isolation: isolate; }
.ground .motif { position: absolute; z-index: -1; right: -0.8rem; top: -1.6rem; height: calc(100% + 3.2rem); width: auto; }
.ground .m-cell { fill: #fff; opacity: 0.07; }
.ground .m-accent { fill: #3fbf7f; opacity: 0.55; }
.ground .m-play { fill: #fff; opacity: 0.22; stroke: #fff; stroke-width: 12; stroke-linejoin: round; stroke-opacity: 1; }
.ground .row { display: flex; justify-content: space-between; align-items: center; }
.ground .tag { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; opacity: 0.8; }
.ground .label { margin-top: 1.1rem; font-size: 0.82rem; opacity: 0.75; }
.ground .value { font-size: 3rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.ground .value small { font-size: 1.05rem; font-weight: 400; opacity: 0.7; margin-left: 0.4rem; letter-spacing: 0; }
.ground .foot { margin-top: auto; padding-top: 1rem; display: flex; justify-content: space-between;
  font-size: 0.82rem; color: rgba(255,255,255,.78); font-weight: 400; }
.stat-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.6rem; }
.stat-row .big { font-size: 2.1rem; }

/* bars: HTML, so the chart takes its card's height at every width */
.ov-bars { display: flex; flex-direction: column; }
.bars { flex: 1; min-height: 17rem; display: grid; grid-template-columns: 2.4rem 1fr; grid-template-rows: 1fr auto;
  --bar-w: clamp(1.6rem, 3.2vw, 3.6rem); padding-top: 2.4rem; }
.bars-y { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
  padding-right: 0.6rem; font-size: 0.72rem; color: var(--muted); margin: -0.45rem 0; }
.bars-plot { position: relative; display: flex; align-items: flex-end; justify-content: space-around; }
.gridline { position: absolute; left: 0; right: 0; border-top: 1px dashed #e3e3e3; }
.bar-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.bar { position: relative; width: var(--bar-w); border-radius: 999px; background-color: var(--green-soft);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.38) 0 0.2rem, transparent 0.2rem 0.55rem); transition: filter .15s; }
.bar-col:hover .bar { filter: brightness(0.95); }
.bar.top { background-color: var(--green); background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.16) 0 0.2rem, transparent 0.2rem 0.55rem); }
.bar.zero { background: #efefef; }
.bar-label { position: absolute; bottom: calc(100% + 0.7rem); left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--green); color: #fff; border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.75rem; font-weight: 600; }
.bar-dot { position: absolute; top: calc(var(--bar-w) / 2 - 0.45rem); left: 50%; transform: translateX(-50%);
  width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--green); border: 3px solid #fff; }
.bars-x { grid-column: 2; display: flex; justify-content: space-around; padding-top: 0.6rem; font-size: 0.75rem; color: var(--muted); }
.bars-x span { flex: 1; text-align: center; }

/* charts */
.chart { position: relative; width: 100%; }
.chart.area svg { height: 9.5rem; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid line { stroke: #e3e3e3; stroke-dasharray: 3 4; }
.chart .hit { fill: transparent; cursor: pointer; }
.load-num { text-align: center; margin: 0.2rem 0 0.4rem; }
.load-num .cap { font-size: 0.82rem; color: var(--muted); }
.load-actions { display: flex; justify-content: center; gap: 0.3rem; margin-top: auto; padding-top: 0.8rem; }
.load-actions .pill { height: 2.6rem; }

/* tables */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.table th { text-align: left; font-weight: 400; color: var(--muted); font-size: 0.82rem; padding: 0 0.9rem 0.6rem; }
.table td { padding: 0.7rem 0.9rem; vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover td { background: var(--soft-2); }
.table tbody tr td:first-child { border-radius: 0.9rem 0 0 0.9rem; }
.table tbody tr td:last-child { border-radius: 0 0.9rem 0.9rem 0; }
.who { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.who b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 14rem; }
.who small { color: var(--muted); font-size: 0.78rem; }
.avatar { width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; font-weight: 600;
  font-size: 0.9rem; flex: none; background: var(--green-tint); color: var(--green-deep); }
.status { display: inline-flex; align-items: center; gap: 0.45rem; }
.status::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--green); }
.status.refused { color: var(--amber); }
.status.error { color: var(--red); }
.status span { color: var(--ink); }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.84rem; }
.detail-text { color: var(--muted); max-width: 26rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* side: refused + editor stack */
.inner { background: var(--soft-2); border-radius: var(--r-inner); padding: 1rem 1.1rem; margin-top: auto; }
.stack { display: flex; align-items: center; margin-top: 0.9rem; }
.stack .avatar { width: 2.7rem; height: 2.7rem; border: 3px solid var(--soft-2); margin-left: -0.55rem; }
.stack .avatar:first-child { margin-left: 0; }
.stack .more { background: var(--green); color: #fff; }

/* list views */
.grid-cards { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-card .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin: 1rem 0; }
.ed-card .stats div { background: var(--soft-2); border-radius: 0.9rem; padding: 0.6rem 0.7rem; }
.ed-card .stats b { display: block; font-size: 1.3rem; font-weight: 500; }
.ed-card .stats span { font-size: 0.75rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.film-card { padding: 0.7rem; }
.film-card .thumb { aspect-ratio: 16 / 11; border-radius: var(--r-inner); background: var(--soft) center / cover no-repeat; display: grid; place-items: center; color: var(--faint); font-size: 0.85rem; }
.film-card .meta { padding: 0.8rem 0.5rem 0.3rem; }
.film-card h3 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.film-card .cuts { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.7rem; }
.film-card .cuts button { padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--soft); font-size: 0.8rem; }
.film-card .cuts button:hover { background: var(--green-tint); color: var(--green-deep); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
.switch { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.switch input { appearance: none; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: #d8d8d8; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 0.2rem; left: 0.2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(1.1rem); }

/* drawer, dialog, tooltip */
.scrim { position: fixed; inset: 0; background: rgba(20,20,20,.28); z-index: 20; }
.drawer { position: fixed; top: 0.8rem; right: 0.8rem; bottom: 0.8rem; width: min(46rem, calc(100vw - 1.6rem));
  background: var(--card); border-radius: var(--r-card); z-index: 21; overflow: auto; padding: 1.4rem 1.5rem 2rem; }
.drawer h2 { margin: 0; font-size: 1.7rem; font-weight: 500; letter-spacing: -0.02em; }
.drawer .sec { margin-top: 1.4rem; }
.drawer .sec h3 { margin: 0 0 0.7rem; font-size: 1rem; font-weight: 500; display: flex; gap: 0.6rem; align-items: baseline; }
.drawer .sec h3 small { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.drawer video { width: 100%; border-radius: var(--r-inner); background: #000; display: block; max-height: 60vh; }
.drawer .review { width: 100%; border-radius: var(--r-inner); background: #1e1e1e; max-height: 18rem; object-fit: contain; display: block; margin-bottom: 0.7rem; }
.drawer pre { white-space: pre-wrap; font: 0.8rem/1.45 ui-monospace, Consolas, monospace; color: var(--muted); background: var(--soft-2); border-radius: 0.8rem; padding: 0.7rem 0.8rem; max-height: 9rem; overflow: auto; margin: 0.6rem 0 0; }
dialog { border: 0; border-radius: var(--r-card); padding: 1.4rem 1.5rem; width: min(34rem, calc(100vw - 2rem)); }
dialog::backdrop { background: rgba(20,20,20,.28); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.dlg-head h2 { margin: 0; font-weight: 500; font-size: 1.4rem; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field > span { font-size: 0.85rem; color: var(--muted); }
.field input { height: 2.8rem; border-radius: 0.9rem; border: 1px solid #e0e0e0; padding: 0 1rem; background: var(--soft-2); }
.checks { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.checks label { display: inline-flex; gap: 0.4rem; align-items: center; }
.dlg-foot { display: flex; justify-content: flex-end; }
.keybox { background: var(--green-tint); border-radius: var(--r-inner); padding: 0.9rem 1rem; margin-bottom: 1rem; }
.keybox p { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--green-deep); }
.keybox code { display: block; word-break: break-all; font: 0.8rem/1.5 ui-monospace, Consolas, monospace; margin-bottom: 0.7rem; }
.tip { position: fixed; z-index: 30; pointer-events: none; background: var(--ink); color: #fff; border-radius: 0.8rem;
  padding: 0.5rem 0.75rem; font-size: 0.8rem; line-height: 1.4; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.tip b { font-weight: 600; }

@media (max-width: 1280px) {
  .overview { grid-template-columns: minmax(16rem, 1fr) minmax(0, 1.6fr);
    grid-template-areas: "hero bars" "load side" "table table"; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { width: 11rem; }
}
@media (max-width: 860px) {
  .topbar { grid-template-columns: auto auto; border-radius: var(--r-card); }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; }
  .search { display: none; }
  .body { grid-template-columns: 1fr; }
  .rail { display: none; }
  .hello { margin-left: 0; }
  .hello h1 { font-size: 1.9rem; }
  .overview { grid-template-columns: 1fr; grid-template-areas: "hero" "bars" "load" "side" "table"; }
  .grid-cards { grid-template-columns: 1fr; }
  .ov-table { overflow-x: auto; }
  .hide-narrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* editor home and shared new pieces */
.editor-home { grid-template-areas: "hero bars load" "table table side"; }
.mini-cap { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.85rem; }
.feature { flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 0.9rem; min-height: 16rem; }
.thumb { border-radius: var(--r-inner); background: var(--soft) center / cover no-repeat; display: grid; place-items: center; color: var(--faint); font-size: 0.85rem; }
.thumb.missing { background-image: none !important; }
.big-thumb { min-height: 14rem; background-size: contain; background-color: #eceae6; }
.feature-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; align-items: center; }
.empty-state { flex: 1; display: grid; place-items: center; align-content: center; gap: 0.8rem; text-align: center; color: var(--muted); padding: 1rem; }
.empty-state p { max-width: 26rem; margin: 0; }
.empty-state svg.lucide { width: 2rem; height: 2rem; color: var(--green); }
.steps { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: 0.8rem; font-size: 0.9rem; }
.steps li::marker { color: var(--green); font-weight: 600; }
.copybox { display: flex; align-items: center; gap: 0.5rem; background: var(--soft-2); border-radius: 0.9rem; padding: 0.5rem 0.5rem 0.5rem 0.8rem; margin-top: 0.5rem; }
.copybox code { flex: 1; min-width: 0; font: 0.76rem/1.45 ui-monospace, Consolas, monospace; word-break: break-all; white-space: pre-wrap; color: var(--ink-2); }
.copybox .pill { height: 2.2rem; padding: 0 0.8rem; font-size: 0.82rem; }
.player-card { margin-bottom: var(--gap); display: grid; gap: 0.7rem; justify-items: start; }
.player-card video { width: 100%; max-height: 70vh; border-radius: var(--r-inner); background: #000; }
.film-card .cut { display: inline-flex; background: var(--soft); border-radius: 999px; }
.film-card .cut button { background: none; }
.film-card .cut button + button { padding-left: 0.4rem; border-left: 1px solid #e2e2e2; border-radius: 0 999px 999px 0; }
.upload-view { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.drop { display: grid; justify-items: center; gap: 0.35rem; text-align: center; padding: 2.4rem 1rem; border: 2px dashed #d9d9d9;
  border-radius: var(--r-inner); background: var(--soft-2); cursor: pointer; color: var(--muted); transition: border-color .15s, background .15s; }
.drop.compact { padding: 1.4rem 1rem; }
.drop b { color: var(--ink); font-weight: 500; }
.drop svg.lucide { width: 2rem; height: 2rem; color: var(--green); }
.drop:hover, .drop.over { border-color: var(--green); background: var(--green-tint); }
.drop-status { display: grid; gap: 0.35rem; margin-top: 0.6rem; }
.up-row { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.85rem; padding: 0.4rem 0.7rem; border-radius: 0.7rem; background: var(--soft-2); }
.up-row.ok .up-state { color: var(--green); }
.up-row.bad .up-state { color: var(--red); }
.hint { margin-top: 1.2rem; background: var(--soft-2); border-radius: var(--r-inner); padding: 0.9rem 1rem; font-size: 0.88rem; }
.hint ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--ink-2); }

/* join and sign in */
.join { display: grid; gap: var(--gap); }
.join-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr); gap: 1.6rem; align-items: stretch; padding: 1.8rem; }
.join-hero h2 { font-size: 2.2rem; font-weight: 500; letter-spacing: -0.02em; margin: 0.9rem 0 0.6rem; line-height: 1.1; }
.join-hero p { margin: 0; color: var(--ink-2); max-width: 38rem; font-size: 1rem; }
.join-steps { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step h3 { margin: 0.9rem 0 0.35rem; font-size: 1.1rem; font-weight: 500; }
.step-body { color: var(--ink-2); font-size: 0.9rem; }
.step-body code { font: 0.8rem ui-monospace, Consolas, monospace; background: var(--soft); padding: 0.1rem 0.4rem; border-radius: 0.4rem; }
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step-top .ico { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.step-n { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 600; }
.join-lower { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.style-row { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.style-row:first-of-type { border-top: 0; }
.style-row p { margin: 0.2rem 0 0; color: var(--ink-2); font-size: 0.88rem; }
.rules { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; font-size: 0.9rem; color: var(--ink-2); }
.faq { margin: 0; font-size: 0.9rem; }
.faq dt { font-weight: 500; margin-top: 0.8rem; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 0.2rem 0 0; color: var(--ink-2); }
.faq code { font: 0.8rem ui-monospace, Consolas, monospace; background: var(--soft); padding: 0.1rem 0.35rem; border-radius: 0.4rem; }
.signin { display: grid; place-items: start center; }
.signin .card { width: min(32rem, 100%); padding: 1.8rem; }
.signin form { display: grid; gap: 0.2rem; }
.signin .toggle { justify-self: start; }
.signin details { margin: 0.2rem 0 0.8rem; font-size: 0.88rem; color: var(--muted); }
.signin summary { cursor: pointer; }
.signin .pill.solid { justify-self: start; }
.form-msg { min-height: 1.2rem; margin: 0 0 0.6rem; color: var(--amber); font-size: 0.88rem; }
.fine { color: var(--muted); font-size: 0.8rem; margin: 1rem 0 0; }

@media (max-width: 1280px) {
  .editor-home { grid-template-areas: "hero bars" "load side" "table table"; }
  .join-steps, .join-lower { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .editor-home { grid-template-areas: "hero" "bars" "load" "side" "table"; }
  .join-hero, .upload-view { grid-template-columns: 1fr; }
  .join-steps, .join-lower { grid-template-columns: 1fr; }
  .join-hero h2 { font-size: 1.8rem; }
}

/* jobs */
.view-stack { display: grid; gap: var(--gap); }
.job-row { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.job-tile { background: var(--soft-2); border-radius: var(--r-inner); padding: 0.9rem 1rem; display: grid; gap: 0.35rem;
  border: 1px solid transparent; transition: border-color .15s, background .15s; min-width: 0; }
.job-tile:hover { border-color: var(--line); background: var(--card); }
.job-tile.running { background: var(--green-tint); }
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.job-top b { font-weight: 500; }
.job-film { font-size: 0.85rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-line { font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; }
.job-foot { display: flex; align-items: center; gap: 0.7rem; font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.job-foot > span { white-space: nowrap; }
.job-foot .who { gap: 0.4rem; margin-right: auto; min-width: 0; overflow: hidden; }
.job-foot .who > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.job-foot .num { color: var(--ink); font-weight: 500; }
.avatar.sm { width: 1.6rem; height: 1.6rem; font-size: 0.65rem; }
.live-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #fff; animation: live 1.4s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.nowrap { white-space: nowrap; }
.drawer .job-last { max-width: 13rem; }

/* connect: Claude Code or Codex */
.connect .toggle { display: inline-flex; margin-bottom: 0.4rem; }
.connect .fine { margin: 0.6rem 0 0; }

/* branches and removal */
.pill.danger { background: var(--red-tint); color: var(--red); }
.pill.danger:hover { background: #f2d3cc; }
.branch-pick select { border: 0; background: none; outline: none; font: inherit; max-width: 16rem; }
.branches { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.branches h3 { margin: 0 0 0.6rem; font-size: 1rem; font-weight: 500; display: flex; gap: 0.6rem; align-items: baseline; }
.branches h3 small { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.branch-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.branch-row small { color: var(--muted); margin-left: auto; }
.branch-row .circle[disabled] { opacity: 0.35; cursor: not-allowed; }
.branch-form { display: grid; gap: 0.6rem; margin-top: 0.9rem; }
.branch-form input { font: inherit; }
.branch-form input[name=name], .branch-form input[name=more] { border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.6rem 0.8rem; background: var(--card); }
.branch-form .pill { justify-self: start; }
.branch-selects { display: grid; gap: 0.5rem; }
.branch-selects select { font: inherit; border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.55rem 0.7rem; background: var(--card); }

/* activation */
.activate { max-width: 44rem; margin: 0 auto; }
.activate .big-name { font-size: 1.6rem; font-weight: 500; margin: 0.2rem 0 0.8rem; }

/* access dates and reports: plain type and squared controls, no capsules */
.access-line { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-2); }
.access-line svg.lucide { width: 1rem; height: 1rem; color: var(--muted); flex: none; }
.access.low { color: var(--red); font-weight: 500; }
.sq { height: 2rem; padding: 0 0.8rem; border-radius: 0.45rem; background: var(--soft); color: var(--ink); font-size: 0.82rem;
  transition: background .15s; white-space: nowrap; }
.sq:hover { background: #e6e6e6; }
.sq:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.table.report th.n, .table.report td.n { text-align: right; }
.table.report td.strong { font-weight: 600; color: var(--ink); }
.table.report td.zero { color: var(--faint); }
.table.report td.warn { color: var(--amber); }
.table.report tfoot td { padding: 0.8rem 0.9rem 0.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.table.report.weeks td:first-child, .table.report.weeks th:first-child { min-width: 10rem; }
