/* rehber.css — the guide's one stylesheet (docs/REHBER_V4_PLAN.md M8). Mobile first; one rail on the desktop, a tab bar on the phone.
   "Graphite ledger" look (after the EnerjiTDG portal's design layer): a paper ground, ink type, hairlines instead of boxes and shadows.
   Colour is neutral first: one red accent marks only the datum line, the active tab/nav item, the step in progress and the count of what is
   urgent. Status tones are muted and live in text or a 6-px dot — labels are monochrome, never a rainbow. Progress alone speaks in two pastels:
   mint for what is done, apricot for the step in progress or the owner's turn (pipeline dots, step icons, job dots, bars). No card shadows; a shadow only on a
   dialog. Type 11 · 12 · 13 · 15 · 28 with light-weight large numerals and mono eyebrows; 4-px base spacing; 4-px radii. AA in light and dark.
   Full-width layout. No inline style (CSP). */
:root {
  --bg: #f1f2f4; --surface: #ffffff; --surface-2: #f6f7f8; --text: #181b1e; --text-2: #2a2e32; --muted: #5f666a; --line: #e3e5e8; --line-2: #cfd3d7; --focus: #ca0a22;
  --brand: #23272d; --brand-ink: #ffffff; --brand-soft: #eceef0; --brand-line: #c4c9cd;
  --navy: #23272d; --navy-2: #30363c; --navy-ink: #f2f3f4; --navy-muted: #a9afb4; --navy-line: #353b41; --accent: #ca0a22;
  --ok: #2c6e4f; --ok-bg: #e9efeb; --warn: #7a5a1c; --warn-bg: #f3f0e8; --bad: #a8261e; --bad-bg: #f8ebe9; --info: #3c4a58; --info-bg: #eceef0;
  --human: #23272d; --human-bg: #eceef0; --idle: #5f666a; --idle-bg: #eceef0;
  --mint: #5fa585; --mint-bg: #e4f3ea; --mint-line: #a8d5bf; --mint-ink: #2a6a4d; --apri: #d58f4f; --apri-bg: #fdf0e3; --apri-line: #f0c9a2; --apri-ink: #8d5420;
  --ease: cubic-bezier(.2, .7, .2, 1); --t-fast: .14s; --t: .22s; --rest: 0 1px 0 rgba(24, 27, 30, .04), 0 12px 28px -20px rgba(24, 27, 30, .32);
  --shadow: none; --lift: 0 18px 40px -24px rgba(24, 27, 30, .45); --hover: color-mix(in srgb, var(--text) 4%, transparent);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --r: 4px; --r-sm: 4px; --tabs-h: 58px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #121417; --surface: #181b1e; --surface-2: #1e2226; --text: #e8eaec; --text-2: #d3d7da; --muted: #9ca3a8; --line: #2a2f34; --line-2: #3a4046; --focus: #ef5a6d;
  --brand: #e8eaec; --brand-ink: #121417; --brand-soft: #24292e; --brand-line: #454c53;
  --navy: #0d0f11; --navy-2: #1c2024; --navy-ink: #e8eaec; --navy-muted: #8f979c; --navy-line: #24292e; --accent: #ef5a6d;
  --ok: #86c3a3; --ok-bg: #18241e; --warn: #cfb27a; --warn-bg: #262219; --bad: #f19a91; --bad-bg: #2b1a19; --info: #b4bcc3; --info-bg: #22272c;
  --human: #e8eaec; --human-bg: #24292e; --idle: #9ca3a8; --idle-bg: #22272c; --shadow: none; --mint: #5e9e80; --mint-bg: #16261e; --mint-line: #2f5a46; --mint-ink: #94d3b4; --apri: #d9a06b; --apri-bg: #2b2018; --apri-line: #6b4b2f; --apri-ink: #f0c193; --rest: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 30px -18px rgba(0, 0, 0, .75); --lift: 0 18px 48px -20px rgba(0, 0, 0, .7); --hover: color-mix(in srgb, var(--text) 6%, transparent); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #121417; --surface: #181b1e; --surface-2: #1e2226; --text: #e8eaec; --text-2: #d3d7da; --muted: #9ca3a8; --line: #2a2f34; --line-2: #3a4046; --focus: #ef5a6d;
  --brand: #e8eaec; --brand-ink: #121417; --brand-soft: #24292e; --brand-line: #454c53;
  --navy: #0d0f11; --navy-2: #1c2024; --navy-ink: #e8eaec; --navy-muted: #8f979c; --navy-line: #24292e; --accent: #ef5a6d;
  --ok: #86c3a3; --ok-bg: #18241e; --warn: #cfb27a; --warn-bg: #262219; --bad: #f19a91; --bad-bg: #2b1a19; --info: #b4bcc3; --info-bg: #22272c;
  --human: #e8eaec; --human-bg: #24292e; --idle: #9ca3a8; --idle-bg: #22272c; --shadow: none; --mint: #5e9e80; --mint-bg: #16261e; --mint-line: #2f5a46; --mint-ink: #94d3b4; --apri: #d9a06b; --apri-bg: #2b2018; --apri-line: #6b4b2f; --apri-ink: #f0c193; --rest: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 30px -18px rgba(0, 0, 0, .75); --lift: 0 18px 48px -20px rgba(0, 0, 0, .7); --hover: color-mix(in srgb, var(--text) 6%, transparent); color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text-2); font: 15px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brand); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--text); text-wrap: balance; }
h1 { font-size: 28px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 15px; font-weight: 600; letter-spacing: -.006em; }
p { margin: 0; }
::selection { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.sprite { display: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); z-index: 30; }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic.big { width: 36px; height: 36px; stroke-width: 1.4; }
.logo { width: 28px; height: 28px; flex: none; }
.logo-bg { fill: var(--accent); }
.logo-fg { fill: #ffffff; }
.muted, .sub { color: var(--muted); }
.sub { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }

/* boot and loading */
.boot, .loading { display: flex; align-items: center; gap: 12px; justify-content: center; min-height: 40vh; color: var(--muted); font-size: 13px; }
.boot-mark, .spin { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); border-top-color: var(--text); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .boot-mark, .spin { animation: none; } .card.flash { animation: none; } }

/* shell: phone first */
.app { min-height: 100vh; }
.rail { display: none; }
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 15px; letter-spacing: -.012em; }
.brand:hover { text-decoration: none; }
main { display: block; width: 100%; max-width: none; margin: 0; padding: 24px 18px calc(var(--tabs-h) + 32px + env(safe-area-inset-bottom)); }
main:focus { outline: none; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabs-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .01em; min-height: 48px; }
.tab .ic { width: 20px; height: 20px; }
.tab::before { content: ""; position: absolute; top: -1px; left: 50%; width: 24px; height: 2px; background: transparent; transform: translateX(-50%); }
.tab.on { color: var(--text); font-weight: 600; }
.tab.on .ic { color: var(--text); }
.tab.on::before { background: var(--accent); }
.tab:hover { text-decoration: none; color: var(--text); }
.tab .nb { position: absolute; top: 5px; left: calc(50% + 5px); }
.nb { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #ffffff; font-size: 10.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 9px; border-radius: 13px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill:hover { text-decoration: none; border-color: var(--muted); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
a.pill { position: relative; } a.pill::after { content: ""; position: absolute; inset: -9px -4px; } /* a 44-px finger target around a quiet 26-px pill */
.p-ok { color: var(--text-2); background: transparent; } .p-warn { color: var(--text-2); background: transparent; } .p-bad { color: var(--bad); background: transparent; border-color: color-mix(in srgb, var(--bad) 35%, var(--line-2)); }
.p-ok .dot { background: var(--ok); } .p-warn .dot { background: var(--warn); } .p-bad .dot { background: var(--bad); }

/* desktop: a rail, no tab bar, no top bar */
@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 224px 1fr; }
  .bar, .tabs { display: none; }
  .rail { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 22px 12px; background: var(--navy); border-right: 1px solid var(--navy-line); color: var(--navy-ink); }
  .rail .brand { color: var(--navy-ink); }
  .rail .brand { padding: 2px 10px 26px; }
  .rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
  .nav { position: relative; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 12px; border-radius: var(--r-sm); color: var(--navy-muted); font-weight: 500; font-size: 14px; }
  .nav .ic { width: 18px; height: 18px; }
  .nav:hover { background: color-mix(in srgb, var(--navy-ink) 6%, transparent); color: var(--navy-ink); text-decoration: none; }
  .nav.on { background: var(--navy-2); color: var(--navy-ink); font-weight: 600; }
  .nav.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 2px; background: var(--accent); }
  .nav.on .ic { color: var(--navy-ink); }
  .rail-foot { color: var(--navy-muted); } .rail-foot .pill { border-color: var(--navy-line); color: var(--navy-muted); }
  .nav .nb { margin-left: auto; }
  .rail-foot { margin-top: auto; padding: 10px; }
  main { padding: 40px clamp(28px, 3.2vw, 56px) 56px; }
}

/* page parts */
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 28px; }
.page-h .sub { margin-top: 8px; font-size: 13px; }
.sec { margin: 40px 0 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sec-h h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
.link { font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.link:hover { color: var(--text); }
.link .ic { width: 14px; height: 14px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px -4px; font-weight: 500; font-size: 13px; color: var(--muted); }
.back:hover { color: var(--text); text-decoration: none; }
.back .ic { width: 17px; height: 17px; }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; padding: 12px 14px; border: 1px solid var(--line); border-left: 2px solid var(--line-2); border-radius: 0; background: var(--surface-2); color: var(--text-2); font-size: 13px; line-height: 1.55; }
.note .ic { width: 17px; height: 17px; margin-top: 1px; color: var(--muted); }
.note.warn { background: var(--surface-2); border-left-color: var(--warn); color: var(--text-2); }
.note.warn .ic { color: var(--warn); }
.more { margin-top: 12px; color: var(--muted); font-size: 13px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 20px; border: 1px solid var(--line); border-radius: 0; color: var(--muted); background: transparent; }
.empty strong { color: var(--text); font-size: 15px; font-weight: 600; }
.empty .ic { color: var(--muted); }
.empty p { max-width: 460px; font-size: 13px; }

/* buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 550; letter-spacing: 0; cursor: pointer; white-space: nowrap; transition: background-color .12s, border-color .12s, color .12s; }
.btn:hover { text-decoration: none; background: var(--surface-2); border-color: var(--text); }
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn:disabled:hover { background: var(--surface); border-color: var(--line-2); }
.btn .ic { width: 16px; height: 16px; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 86%, var(--bg)); border-color: color-mix(in srgb, var(--brand) 86%, var(--bg)); }
.btn.primary:disabled:hover { background: var(--brand); border-color: var(--brand); }
.btn.ghost { background: transparent; color: var(--text-2); border-color: transparent; }
.btn.ghost:hover { background: var(--hover); color: var(--text); border-color: transparent; }
.btn.danger { background: var(--surface); color: var(--bad); border-color: var(--line-2); }
.btn.danger:hover { background: var(--bad-bg); border-color: var(--bad); }
.btn.wide { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 3px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 11.5px; font-weight: 550; letter-spacing: .005em; white-space: nowrap; }
.chip .ic { width: 12px; height: 12px; stroke-width: 1.9; }
/* labels are monochrome: the tone only darkens the ink; a real problem alone keeps a muted red */
.t-ok { color: var(--text-2); background: transparent; } .t-warn { color: var(--text); background: var(--surface-2); border-color: var(--muted); } .t-bad { color: var(--bad); background: transparent; border-color: color-mix(in srgb, var(--bad) 40%, var(--line-2)); }
.t-info { color: var(--text-2); background: transparent; } .t-human { color: var(--text); background: var(--surface-2); border-color: var(--text); } .t-idle { color: var(--muted); background: transparent; border-color: var(--line); }

/* hints (install · notifications) */
.hints { display: grid; gap: 8px; margin-bottom: 16px; }
.hint { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 0; background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--text); color: var(--text-2); }
.hint > .ic { color: var(--text); }
.hint div { flex: 1; display: grid; gap: 2px; }
.hint > div > span { font-size: 13px; color: var(--muted); }

/* cards: what the owner must do */
.cards { display: grid; gap: 12px; }
.card { position: relative; padding: 16px 18px 16px 20px; border-radius: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--kc, var(--line-2)); }
.card h3 { margin: 10px 0 4px; }
.card p { color: var(--muted); line-height: 1.6; }
.card .who { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.card .who .ic { width: 15px; height: 15px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.kind { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--kc, var(--muted)); }
.kind .ic { width: 14px; height: 14px; stroke-width: 1.9; }
.card-ch { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.cmd { display: block; width: 100%; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
/* the kinds: ink for a decision, muted red for a problem, quiet graphite for the rest */
.k-sorun { --kc: var(--bad); } .k-karar { --kc: var(--text); } .k-eksik { --kc: var(--text-2); } .k-zaman { --kc: var(--muted); } .k-bilgi { --kc: var(--muted); }
.card.kritik { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.card.flash { animation: flash 1.6s ease-out 1; }
@keyframes flash { 0% { background-color: var(--surface-2); border-color: var(--text); } 100% { background-color: var(--surface); } }

/* channel tiles */
.tiles { display: grid; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.tile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 0; background: var(--surface); border: 0; border-top: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); transition: background-color .12s; }
.tile:first-child { border-top: 0; }
.tile:hover { text-decoration: none; background: var(--surface-2); }
.tile:hover .chev { color: var(--text); }
.tile-main { display: grid; gap: 2px; min-width: 0; }
.tile-main strong { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-facts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.tile-facts span, .facts div { display: grid; gap: 1px; min-width: 0; }
.tile-facts em, .facts em { font-style: normal; color: var(--muted); font-size: 12px; }
.tile-facts b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.tile .chev { grid-row: 1; grid-column: 3; color: var(--muted); }
.ready { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
@media (min-width: 900px) { .tile { grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1.6fr) auto; } .tile-facts { grid-column: auto; border-top: 0; padding-top: 0; } .tile .chev { grid-column: 4; } }

/* avatars (12 buckets: classes, never inline) — a graphite ramp, not a rainbow; white initials stay AA on each */
.av { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r); color: #ffffff; font-weight: 600; font-size: 15px; letter-spacing: -.01em; flex: none; }
.av-lg { width: 64px; height: 64px; font-size: 22px; border-radius: 6px; }
.av-0 { background: #23272d; } .av-1 { background: #3c4348; } .av-2 { background: #4a5157; } .av-3 { background: #2f3a40; } .av-4 { background: #3a4248; } .av-5 { background: #535a60; }
.av-6 { background: #2a2f33; } .av-7 { background: #444b51; } .av-8 { background: #343b41; } .av-9 { background: #50575c; } .av-10 { background: #8a0717; } .av-11 { background: #5a6166; }

/* progress */
progress { -webkit-appearance: none; appearance: none; width: 100%; max-width: 160px; height: 3px; border: 0; border-radius: 0; background: var(--line); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 0; }
progress::-webkit-progress-value { background: var(--mint); border-radius: 0; transition: width var(--t) var(--ease); }
progress::-moz-progress-bar { background: var(--mint); border-radius: 0; }
.ready-big { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 0; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.ready-big progress { max-width: none; flex: 1; height: 4px; border-radius: 0; }
.ready-big div { display: grid; gap: 2px; min-width: 150px; }
.ready-big span { color: var(--muted); font-size: 13px; }

/* channel page */
.ch-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ch-head h1 { overflow-wrap: anywhere; }
.seg { display: flex; gap: 0; padding: 0; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-2); margin: 0 0 20px; overflow-x: auto; scrollbar-width: none; }
.seg a, .seg button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 0; border: 0; border-left: 1px solid var(--line); background: transparent; font: inherit; font-weight: 550; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg a:first-child, .seg button:first-child { border-left: 0; }
.seg a:hover, .seg button:hover { text-decoration: none; color: var(--text); background: var(--surface-2); }
.seg .on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.seg .on:hover { background: var(--brand); color: var(--brand-ink); }
.seg .n { color: inherit; opacity: .7; font-weight: 450; font-variant-numeric: tabular-nums; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.step { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 0; background: var(--surface); border: 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step-ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); transition: background-color var(--t), border-color var(--t), color var(--t); }
/* the step icons carry the pipeline's pastel states: mint for done, apricot for the step in progress or the owner's turn, light grey in line */
.step-ic.t-ok { background: var(--mint-bg); border-color: var(--mint-line); color: var(--mint-ink); }
.step-ic.t-info, .step-ic.t-human, .step-ic.t-warn { background: var(--apri-bg); border-color: var(--apri-line); color: var(--apri-ink); }
.step-ic.t-idle { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
.step-ic.t-bad { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); color: var(--bad); }
.step-ic .ic { width: 16px; height: 16px; stroke-width: 1.9; }
.step-main { display: grid; gap: 2px; min-width: 0; }
.step-main span { color: var(--muted); font-size: 13px; }
.step-side { display: grid; justify-items: end; gap: 3px; }
.who2 { font-size: 12px; color: var(--muted); }
.s-yakinda .step-main strong { color: var(--muted); font-weight: 500; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px; border-radius: 0; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.facts b { font-size: 15px; font-weight: 600; color: var(--text); }
.facts span { color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stats div { padding: 14px 16px; border-radius: 0; background: var(--surface); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats dt { color: var(--muted); font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; } .stats dd { margin: 8px 0 0; font-size: 28px; font-weight: 300; letter-spacing: -.03em; line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; }
.form-card { display: grid; gap: 12px; padding: 18px; border-radius: 0; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.form-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 550; color: var(--text-2); }
input[type=text], input[type=email], input[type=password], input[type=url], select { height: 44px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-weight: 400; transition: border-color .12s; }
input[type=text]:hover, input[type=email]:hover, input[type=password]:hover, input[type=url]:hover, select:hover { border-color: var(--muted); }
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus, input[type=url]:focus, select:focus { border-color: var(--text); }
input:disabled { background: var(--surface-2); color: var(--muted); }
select { height: 44px; padding: 0 8px; }
label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 450; font-size: 13px; line-height: 1.5; }
label.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }

/* video lists */
.vlist { display: grid; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.vrow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 0; background: var(--surface); border: 0; border-top: 1px solid var(--line); color: var(--text); }
.vrow:first-child { border-top: 0; }
.vrow:hover { text-decoration: none; background: var(--surface-2); }
.vrow .chev { display: none; }
.vrow-main { display: grid; gap: 2px; min-width: 0; }
.vrow-main strong { font-weight: 550; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vrow-side { display: grid; justify-items: end; gap: 6px; }
.vrow-side progress { width: 110px; }
.fold { margin-top: 22px; }
.fold summary { cursor: pointer; color: var(--muted); font-weight: 550; font-size: 13px; padding: 12px 0; }
.fold summary:hover { color: var(--text); }
.fold .vlist { margin-top: 8px; }

/* ideas */
.ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.ideas li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 0; background: var(--surface); border: 0; border-top: 1px solid var(--line); }
.ideas li:first-child { border-top: 0; }
.ideas li div { display: grid; gap: 2px; min-width: 0; }

/* what the system is doing */
.doing { list-style: none; margin: 0; padding: 0; display: grid; border-radius: 0; background: var(--surface); border: 1px solid var(--line); }
.doing li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.doing li:first-child { border-top: 0; }
/* job dots: done is quiet grey, running is ink, waiting is a hollow ring, a failure alone is red */
.jd { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); grid-row: span 2; }
.j-completed { background: var(--mint-line); } .j-failed { background: var(--bad); } .j-queued, .j-claimed { background: var(--line-2); } .j-running { background: var(--apri); animation: halo-sm 2.4s var(--ease) infinite; } .j-waiting_for_human, .j-waiting_for_provider { background: transparent; box-shadow: inset 0 0 0 1.5px var(--apri); }
.jl { font-weight: 550; color: var(--text); min-width: 0; overflow-wrap: anywhere; } .js { font-weight: 400; color: var(--muted); } .jm { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (min-width: 700px) { .doing li { grid-template-columns: auto 1fr auto; } .jd { grid-row: auto; } }

/* settings rows */
.rows { display: grid; border-radius: 0; background: var(--surface); border: 1px solid var(--line); }
.rows > .note { margin: 10px 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 12px 16px; border-top: 1px solid var(--line); font-weight: 400; font-size: 15px; }
.rows > .row:first-child { border-top: 0; }
.row > div { display: grid; gap: 2px; min-width: 0; }
.row strong { font-weight: 550; color: var(--text); }
.pair { display: inline-flex; align-items: center; gap: 6px; }
input[role=switch] { -webkit-appearance: none; appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; flex: none; cursor: pointer; margin: 0; }
input[role=switch]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 2px rgba(24, 27, 30, .25); transition: transform .15s; }
input[role=switch]:checked { background: var(--brand); }
input[role=switch]:checked::after { transform: translateX(18px); background: var(--brand-ink); }

/* login */
.login { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; max-width: none; }
.login-card { width: 100%; max-width: 380px; display: grid; gap: 14px; padding: 32px 28px; border-radius: 0; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent); }
.login-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: -.015em; color: var(--text); }
.login-err { color: var(--bad); font-size: 13px; min-height: 1em; }

/* the public pages Google's consent screen links to (hakkinda.html, gizlilik.html): readable text, nothing else */
.legal { max-width: 720px; margin: 0 auto; padding: 32px 20px 48px; }
.legal h1 { font-size: 26px; line-height: 1.2; margin: 18px 0 6px; }
.legal h2 { font-size: 17px; margin: 28px 0 6px; }
.legal p, .legal li { color: var(--text-2); line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--text); text-decoration: underline; }
.legal .muted { color: var(--muted); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.legal-foot { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.login-foot { margin: 2px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); text-align: center; }
.login-foot a, .legal-foot a { color: var(--brand); }

/* dialog, toast */
.dlg { width: min(520px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--text-2); box-shadow: var(--lift); }
.dlg::backdrop { background: rgba(18, 20, 23, .5); }
.dlg-body { display: grid; gap: 14px; padding: 22px; }
.dlg-body h2 { font-size: 17px; }
.dlg-list { display: grid; gap: 8px; }
.dlg-list .btn { justify-content: flex-start; }
.dlg-act { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.dlg-err { color: var(--bad); font-size: 13px; min-height: 1em; }
.acks { display: grid; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 0; }
.acks legend { font-weight: 600; font-size: 13px; padding: 0 4px; color: var(--text); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 40;
  max-width: min(520px, calc(100vw - 32px)); padding: 11px 16px; border-radius: var(--r); background: var(--text); color: var(--bg); font-weight: 500; font-size: 13px; box-shadow: var(--lift); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: var(--bg); }
@media (min-width: 900px) { .toast { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } input[role=switch]::after { transition: none; } }

/* Faz 1: the Hesap tab, Ayarlar › YouTube bağlantısı and › Dizüstü */
.form-grid { display: grid; gap: 12px; }
.form-grid .note { margin: 0; }
.row0 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.row0 .btn { margin-left: auto; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 16px; margin: 0; }
.kv div { display: grid; gap: 2px; min-width: 0; }
.kv dt { color: var(--muted); font-size: 12px; }
.kv dd { margin: 0; font-weight: 550; color: var(--text); overflow-wrap: anywhere; }
.mini-steps, .setup-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.55; }
.setup-steps { gap: 10px; margin: 12px 0; }
.setup-steps a { font-weight: 550; white-space: nowrap; text-decoration: underline; }
.setup-steps a .ic { width: 13px; height: 13px; vertical-align: -1px; }
.small-gap { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.dlg-err:empty { display: none; }
.sec[id] { scroll-margin-top: 72px; }
.stats.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .stats.s3 div { padding: 12px 10px; } .stats.s3 dd { font-size: 22px; } }
.rows > p.muted { margin: 0; padding: 12px 14px; }

/* ======================================================================================================================================
   desktop (≥ 1024 px, html.desk set by rehber.js): the console's frame and density (cloud/public/styles, spec-v31 §B) — ONE 52 px bar whose
   brand cell is the side menu's width, the page title as the last crumb, a narrow side menu, 13 px type, ledger panels, tables and two
   columns. The phone keeps the layout above; nothing here applies below 1024 px.
   ====================================================================================================================================== */
:root.desk { --bg: #f1f2f4; --surface: #ffffff; --surface-2: #f6f7f8; --text: #181b1e; --text-2: #2a2e32; --muted: #5f666a; --line: #e3e5e8; --line-2: #cfd3d7; --focus: #ca0a22;
  --brand: #23272d; --brand-ink: #ffffff; --brand-soft: #eceef0; --brand-line: #c4c9cd; --r: 3px; --r-sm: 3px; --side-w: 228px; --top-h: 52px; }
@media (prefers-color-scheme: dark) { :root.desk:not([data-theme="light"]) { --bg: #121417; --surface: #181b1e; --surface-2: #1e2226; --text: #e8eaec; --text-2: #d3d7da; --muted: #9ca3a8; --line: #2a2f34; --line-2: #3a4046; --focus: #ef5a6d;
  --brand: #e8eaec; --brand-ink: #121417; --brand-soft: #24292e; --brand-line: #454c53;
  --navy: #0d0f11; --navy-2: #1c2024; --navy-ink: #e8eaec; --navy-muted: #8f979c; --navy-line: #24292e; --accent: #ef5a6d;
  --ok: #86c3a3; --ok-bg: #18241e; --warn: #cfb27a; --warn-bg: #262219; --bad: #f19a91; --bad-bg: #2b1a19; --info: #b4bcc3; --info-bg: #22272c;
  --human: #e8eaec; --human-bg: #24292e; --idle: #9ca3a8; --idle-bg: #22272c; --shadow: none; --mint: #5e9e80; --mint-bg: #16261e; --mint-line: #2f5a46; --mint-ink: #94d3b4; --apri: #d9a06b; --apri-bg: #2b2018; --apri-line: #6b4b2f; --apri-ink: #f0c193; --rest: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 30px -18px rgba(0, 0, 0, .75); --lift: 0 18px 48px -20px rgba(0, 0, 0, .7); --hover: color-mix(in srgb, var(--text) 6%, transparent); color-scheme: dark; } }
:root.desk[data-theme="dark"] { --bg: #121417; --surface: #181b1e; --surface-2: #1e2226; --text: #e8eaec; --text-2: #d3d7da; --muted: #9ca3a8; --line: #2a2f34; --line-2: #3a4046; --focus: #ef5a6d;
  --brand: #e8eaec; --brand-ink: #121417; --brand-soft: #24292e; --brand-line: #454c53;
  --navy: #0d0f11; --navy-2: #1c2024; --navy-ink: #e8eaec; --navy-muted: #8f979c; --navy-line: #24292e; --accent: #ef5a6d;
  --ok: #86c3a3; --ok-bg: #18241e; --warn: #cfb27a; --warn-bg: #262219; --bad: #f19a91; --bad-bg: #2b1a19; --info: #b4bcc3; --info-bg: #22272c;
  --human: #e8eaec; --human-bg: #24292e; --idle: #9ca3a8; --idle-bg: #22272c; --shadow: none; --mint: #5e9e80; --mint-bg: #16261e; --mint-line: #2f5a46; --mint-ink: #94d3b4; --apri: #d9a06b; --apri-bg: #2b2018; --apri-line: #6b4b2f; --apri-ink: #f0c193; --rest: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 30px -18px rgba(0, 0, 0, .75); --lift: 0 18px 48px -20px rgba(0, 0, 0, .7); --hover: color-mix(in srgb, var(--text) 6%, transparent); color-scheme: dark; }
.desk body { font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.desk h2 { font-size: 14px; font-weight: 600; } .desk h3 { font-size: 14px; font-weight: 600; }
.desk .sub { font-size: 12px; }
.dapp { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: var(--top-h) minmax(0, 1fr); min-height: 100vh; }
.dtop { grid-column: 1 / -1; grid-row: 1; position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr) auto; align-items: center;
  height: var(--top-h); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
/* the datum line: the one structural job of the red — under the brand cell */
.dtop-brand { display: flex; align-items: center; height: 100%; padding: 0 18px; background: var(--navy); border-bottom: 0; box-shadow: inset 0 -2px 0 var(--accent); }
.dtop-brand .brand { color: var(--navy-ink); }
.dtop-brand .brand { font-size: 14px; font-weight: 650; letter-spacing: -.01em; gap: 10px; }
.dtop-brand .logo, .desk .logo { width: 22px; height: 22px; }
.dcrumbs { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 28px; font-size: 13px; white-space: nowrap; }
.dcrumbs a { color: var(--muted); } .dcrumbs a:hover { color: var(--text); text-decoration: none; }
.dcrumbs .sep { color: var(--line-2); }
.dcrumbs h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.dtop-acts { display: flex; align-items: center; gap: 10px; padding-right: 18px; }
.dtop-acts .pill { height: 26px; padding: 0 10px 0 9px; font-size: 11.5px; }
.dme { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.dme:hover { text-decoration: none; filter: brightness(1.15); }
.dside { grid-column: 1; grid-row: 2; position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); display: flex; flex-direction: column; padding: 14px 10px;
  background: var(--navy); border-right: 1px solid var(--navy-line); color: var(--navy-ink); }
.dside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.dnav { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--r-sm); color: var(--navy-muted); font-size: 13px; font-weight: 500; }
.dnav .ic { width: 16px; height: 16px; color: var(--navy-muted); }
.dnav:hover { background: color-mix(in srgb, var(--navy-ink) 6%, transparent); color: var(--navy-ink); text-decoration: none; }
.dnav.on { background: var(--navy-2); color: var(--navy-ink); font-weight: 600; }
.dnav.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 2px; background: var(--accent); } .dnav.on .ic { color: var(--navy-ink); }
.dnav .nb { margin-left: auto; }
.dside-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--navy-line); color: var(--navy-muted); }
.dmain { grid-column: 2; grid-row: 2; width: 100%; max-width: none; margin: 0; padding: 28px clamp(24px, 2.6vw, 48px) 56px; min-width: 0; }
.dhello { display: flex; align-items: baseline; gap: 14px; margin: 0 0 24px; } .dhello strong { font-size: 26px; font-weight: 300; letter-spacing: -.03em; color: var(--text); } .dhello span { color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; }
.desk .hints { margin-bottom: 16px; } .desk .hint { padding: 10px 14px; } .desk .note { margin: 12px 0; padding: 10px 12px; font-size: 12.5px; }

/* panels and grids — a leaf of paper with a hairline; no lift */
.dgrid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.dgrid-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dcol { min-width: 0; }
.dpanel { background: var(--surface); border: 1px solid var(--line); border-radius: 0; margin: 0 0 24px; overflow: hidden; box-shadow: var(--shadow); }
.dpanel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dpanel-h h2 { font-size: 13px; font-weight: 600; letter-spacing: -.005em; text-transform: none; color: var(--text); }
.dpanel-b > .note { margin: 12px 16px; }
.dpanel-b > .fold { margin: 8px 16px 12px; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dempty { display: flex; align-items: center; gap: 12px; padding: 16px; color: var(--muted); }
.dempty > .ic { width: 18px; height: 18px; color: var(--muted); } .dempty div { display: grid; gap: 2px; } .dempty strong { color: var(--text); font-size: 13px; font-weight: 600; } .dempty span { font-size: 12px; }

/* task rows (the desktop's cards) */
.trows { display: grid; }
.trow { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 16px 12px 18px; border-top: 1px solid var(--line); }
.trow:first-child { border-top: 0; }
.trow:hover { background: var(--surface-2); }
.trow::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--kc, var(--line-2)); }
.trow-kind { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--kc, var(--muted)); } .trow-kind .ic { width: 13px; height: 13px; stroke-width: 1.9; }
.trow-main { display: grid; gap: 2px; min-width: 0; } .trow-main strong { font-size: 13px; font-weight: 600; color: var(--text); }
.trow-text { color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trow-sys { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; } .trow-sys .ic { width: 13px; height: 13px; }
.trow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: 12px; }
.trow-meta > span { display: inline-flex; align-items: center; gap: 4px; } .trow-meta .ic { width: 13px; height: 13px; }
.trow-act { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.trow.kritik .trow-kind { color: var(--bad); }
.trow.flash { animation: flash 1.6s ease-out 1; }
.cmd.cmd-inline { display: inline-block; width: auto; padding: 4px 8px; border-radius: var(--r-sm); font-size: 12px; }

/* buttons, chips, controls: the console's sizes */
.desk .btn { height: 30px; padding: 0 12px; border-radius: var(--r-sm); font-size: 12.5px; gap: 6px; }
.desk .btn.sm { height: 26px; padding: 0 9px; font-size: 12px; border-radius: var(--r-sm); }
.desk .btn .ic { width: 14px; height: 14px; }
.desk .btn.icon-only { width: 26px; padding: 0; }
.desk .chip { height: 20px; padding: 0 7px; font-size: 11px; border-radius: 3px; gap: 4px; } .desk .chip .ic { width: 11px; height: 11px; }
.desk input[type=text], .desk input[type=email], .desk input[type=password], .desk input[type=url] { height: 32px; border-radius: var(--r-sm); font-size: 13px; }
.desk select { height: 30px; border-radius: var(--r-sm); font-size: 13px; }
.desk label { font-size: 12px; }
.desk input[role=switch] { width: 36px; height: 20px; border-radius: 10px; } .desk input[role=switch]::after { width: 14px; height: 14px; } .desk input[role=switch]:checked::after { transform: translateX(16px); }

/* tables — the ledger: no zebra, a hairline and a hover tell the rows apart; numbers right and tabular */
.tscroll { overflow-x: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--surface); }
.dtable td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text-2); }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable .sub.block { display: block; margin-top: 2px; max-width: 520px; }
.dtable td.tact { text-align: right; white-space: nowrap; }
.dtable a strong { color: var(--text); font-weight: 600; }
.dtable .tcol-title { min-width: 260px; width: 42%; } .dtable .tcol-title strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dtable .tcol-ch { min-width: 120px; }
tr.rowlink { cursor: pointer; } tr.rowlink:hover td { background: var(--surface-2); }
.tcell-main { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; } .tcell-main:hover { text-decoration: none; }
.tcell-main > span:last-child { display: grid; min-width: 0; }
.tready { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; } .tready progress { width: 88px; }
.fold .tscroll { margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 0; }

/* Bugün's side column: channels, the laptop, the system's own work */
.chrows { display: grid; }
.chrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--text); }
.chrow:first-child { border-top: 0; } .chrow:hover { background: var(--surface-2); text-decoration: none; }
.chrow-main { display: grid; min-width: 0; } .chrow-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .chrow-main span { color: var(--muted); font-size: 12px; }
.chrow-ready { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; } .chrow-ready progress { width: 60px; }
.av-sm { width: 28px; height: 28px; font-size: 11px; border-radius: 3px; } .av-md { width: 40px; height: 40px; font-size: 14px; border-radius: 4px; }
.lmini, .dlist { list-style: none; margin: 0; padding: 0; }
.lmini li, .dlist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); }
.lmini li:first-child, .dlist li:first-child { border-top: 0; }
.lm-l { display: grid; min-width: 0; } .lm-l span { color: var(--muted); font-size: 12px; }
.dlist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; } .dlist .jd { grid-row: auto; } .dlist .jm { white-space: nowrap; }

/* a channel */
.dch-head { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; }
.dch-id { display: grid; gap: 2px; min-width: 0; } .dch-id strong { font-size: 26px; font-weight: 300; letter-spacing: -.03em; line-height: 1.1; color: var(--text); }
.kpis { margin-left: auto; display: flex; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.kpi { display: grid; gap: 4px; min-width: 104px; padding: 10px 16px; background: var(--surface); border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.kpi:first-child { border-left: 0; }
.kpi span { color: var(--muted); font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; } .kpi b { font-size: 22px; font-weight: 300; letter-spacing: -.03em; line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; }
.dtabs { display: flex; gap: 28px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.dtabs a { margin-bottom: -1px; padding: 9px 2px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; }
.dtabs a:hover { color: var(--text); text-decoration: none; } .dtabs a.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.dtabs .n { margin-left: 5px; color: var(--muted); font-weight: 450; font-family: var(--mono); font-size: 11px; }
.dfacts { display: grid; margin: 0; }
.dfacts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); }
.dfacts div:first-child { border-top: 0; } .dfacts dt { color: var(--muted); } .dfacts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.vmini a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); color: var(--text); }
.vmini a:first-child { border-top: 0; } .vmini a:hover { background: var(--surface-2); text-decoration: none; } .vmini a > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-grid { display: grid; gap: 0; }
.desk .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin-bottom: 24px; }
.desk .form-card { margin: 0; padding: 16px 18px; gap: 10px; border-radius: 0; } .desk .form-card h3 { font-size: 14px; }
.desk .stats.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .desk .stats div { border-radius: 0; padding: 12px 16px; } .desk .stats dd { font-size: 24px; }
.desk .sec { margin: 0 0 28px; } .desk .sec-h { margin-bottom: 10px; padding-bottom: 6px; } .desk .sec-h h2 { font-size: 13px; }
.desk .rows { border-radius: 0; } .desk .row { font-size: 13px; min-height: 0; padding: 10px 14px; }
.desk .seg { border-radius: var(--r-sm); } .desk .seg a, .desk .seg button { height: 28px; border-radius: 0; font-size: 12px; }
.desk .fold summary { font-size: 12px; padding: 6px 0; }
.desk .setup-steps { font-size: 13px; gap: 8px; }
@media (max-width: 1279px) { .kpi { min-width: 84px; } .dgrid { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 20px; } .dmain { padding: 22px 24px 48px; }
  .dtable th, .dtable td { padding: 8px 12px; } .tready progress { width: 56px; } .dtable .tcol-title { min-width: 220px; } }

/* ---- Fikirler (Faz 4): the Writer's video idea cards */
.ideas-list { display: grid; gap: 12px; margin-top: 14px; }
.idea { position: relative; padding: 16px 18px 16px 20px; border-radius: 0; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.idea::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line-2); }
.idea.s-pending::before { background: var(--text); } .idea.s-approved::before { background: var(--muted); } .idea.s-unfit::before, .idea.s-rejected::before { background: var(--line); }
.idea h3 { margin: 10px 0 4px; font-size: 16px; line-height: 1.3; }
.idea > p { color: var(--muted); }
.idea-facts { display: grid; gap: 10px; margin: 14px 0 0; }
.idea-facts div { display: grid; gap: 2px; }
.idea-facts dt { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.idea-facts dd { margin: 0; font-size: 14px; color: var(--text-2); }
.idea-q { display: grid; gap: 4px; margin-top: 12px; padding: 10px 12px; border-radius: 0; background: var(--surface-2); border-left: 2px solid var(--text); font-size: 14px; color: var(--text); }
.idea-q span { color: var(--muted); font-size: 13px; }
.idea-unfit { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 0; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.idea-unfit .ic { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.idea-en { margin-top: 10px; font-size: 12px; color: var(--muted); font-style: italic; }
.idea-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.idea-new { display: grid; gap: 2px; margin: 10px 0 0; font-size: 14px; } .idea-new strong { font-size: 12px; font-weight: 600; color: var(--muted); } .desk .idea-new { font-size: 13px; }
.idea .fold { margin-top: 10px; }
ul.plain { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
ul.plain li + li { margin-top: 3px; }
ol.steps-plain { margin: 10px 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
ol.steps-plain code, .idea code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); padding: 0 5px; border-radius: 3px; }
.copyline { display: flex; gap: 8px; align-items: center; margin: 8px 0 4px; }
.copyline .cmd { flex: 1; min-width: 0; }
.copyline { flex-wrap: wrap; }
.copy-k { flex-basis: 100%; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.copyline .sub { flex: 1; font-size: 13px; color: var(--muted); }
.envvar { margin: 10px 0 12px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.envvar .copyline { margin: 4px 0; }
.envvar .sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
@media (min-width: 640px) { .idea-facts { grid-template-columns: 1fr 1fr; } }
.desk .ideas-list { margin-top: 0; gap: 12px; }
.desk .idea { padding: 14px 16px 14px 18px; } .desk .idea h3 { font-size: 15px; } .desk .idea-facts dd, .desk .idea-q { font-size: 13px; }
.idea-more { margin-top: 12px; }
.idea-more .idea-facts { margin-top: 8px; }
.idea-sub { margin: 14px 0 0; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* channel idea cards (Faz 4, second step) */
.idea.s-sent::before { background: var(--muted); } .idea.s-setup::before { background: var(--text); }
.kc-ev { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.kc-ev .ic { width: 15px; height: 15px; margin-top: 2px; flex: none; color: var(--muted); }
.kc-opts { display: grid; gap: 4px 18px; margin-top: 4px; }
.kc-opts ul.plain { color: var(--text-2); font-size: 14px; }
ul.kc-handles { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
ul.kc-handles li { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
ul.kc-handles .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.kc-ex { margin: 6px 0 0; padding-left: 20px; font-size: 14px; display: grid; gap: 4px; }
ol.kc-ex .idea-en { display: block; margin-top: 1px; }
ul.kc-src li { display: grid; gap: 1px; } ul.kc-src a { color: var(--text); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--line-2); }
ol.kc-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
ol.kc-steps li { position: relative; padding-left: 22px; display: grid; gap: 1px; color: var(--muted); }
ol.kc-steps li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); }
ol.kc-steps li.done { color: var(--text-2); } ol.kc-steps li.done::before { background: var(--mint-line); border-color: var(--mint); }
ol.kc-steps li.now { color: var(--text); } ol.kc-steps li.now strong { color: var(--text); } ol.kc-steps li.now::before { border-color: var(--apri); background: var(--apri-bg); box-shadow: inset 0 0 0 2px var(--apri-bg), inset 0 0 0 5px var(--apri); }
.idea .btns { margin-top: 8px; }
@media (min-width: 640px) { .kc-opts { grid-template-columns: 1fr 1fr; } }
.dtopics { table-layout: fixed; width: 100%; }
.dtopics th:last-child, .dtopics td:last-child { width: 172px; }
.dtopics .tcell-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Faz 5: the channel setup (§21) — readiness actions, the YouTube panel, the step dialogs */
.step-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.step-act .btn { height: 34px; }
.yt-set { display: grid; gap: 10px; padding: 14px 16px; border-radius: 0; background: var(--surface); border: 1px solid var(--line); }
.yt-set .btns { margin-top: 2px; }
.yt-note { font-size: 12px; }
.desk .yt-set { border: 0; border-radius: 0; padding: 12px 16px; }
.dlg { max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; }
.dlg.wide { width: min(720px, calc(100vw - 24px)); }
.dlg-lead { color: var(--muted); font-size: 14px; }
.dlg-act.sticky { position: sticky; bottom: 0; z-index: 1; margin: 0 -22px -22px; padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.dlg-act .btn { white-space: normal; height: auto; min-height: 44px; padding-top: 8px; padding-bottom: 8px; text-align: center; line-height: 1.25; }
.desk .dlg-act .btn { min-height: 32px; padding-top: 5px; padding-bottom: 5px; }
.dlg-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dlg [hidden] { display: none !important; }
.dlg-body .fold { margin-top: 0; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--text); }
.pick { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pick legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 13px; color: var(--text); }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  font-weight: 500; font-size: 14px; cursor: pointer; }
.opt:hover { border-color: var(--line-2); }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.opt:has(input:checked) { border-color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--text); }
.opt.off { cursor: not-allowed; opacity: .55; }
.opt-main { display: grid; gap: 2px; min-width: 0; }
.opt-main .sub { font-weight: 400; }
dl.pos { display: grid; gap: 10px; margin: 0; }
dl.pos div { display: grid; gap: 2px; }
dl.pos dt { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
dl.pos dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
dl.pos ul.plain { margin-top: 0; color: var(--text-2); font-size: 14px; }
.pos-sum { font-size: 14px; }
.tr-fold { margin-top: 0; }
.tr-fold > dl, .tr-fold > blockquote, .tr-fold > p { margin-top: 8px; }
.gen { display: flex; align-items: center; gap: 6px; }
.gen .ic { width: 14px; height: 14px; }
.pins { display: grid; gap: 12px; }
.pins select { width: 100%; min-width: 0; height: 44px; }
.pin-desc { font-weight: 400; font-size: 12px; color: var(--muted); }
.pin-desc [lang] { font-style: italic; }
.img-part { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 0; }
.img-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.img-h h3 { font-size: 15px; }
.pf-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.pf-circle figcaption { max-width: 110px; text-align: center; }
.img-part > .btn { justify-self: start; }
.preview-sq { display: block; width: 160px; height: 160px; border-radius: 3px; border: 1px solid var(--line); }
.pf-circle { display: grid; justify-items: center; gap: 4px; margin: 0; }
.preview-circle { display: block; width: 98px; height: 98px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.crop { display: grid; gap: 4px; }
.banner-frame { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 3px; border: 1px solid var(--line); background: var(--surface-2); }
.safe-box { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
ul.measured { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
ul.measured li { padding: 2px 8px; border-radius: 3px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-family: var(--mono); font-size: 11.5px; }
.desc-text { margin: 0; padding: 12px 14px; border-left: 2px solid var(--text); border-radius: 0; background: var(--surface-2); color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.desc-text.tr { border-left-color: var(--line-2); color: var(--muted); }
@media (max-width: 520px) { .dlg-body { padding: 18px 16px; } .dlg-act.sticky { margin: 0 -16px -18px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); } .dlg-act .btn { flex: 1 1 auto; } }
.desk .opt { min-height: 0; padding: 8px 10px; font-size: 13px; }
.desk .pins select { height: 32px; }
.desk .dlg-lead, .desk .desc-text, .desk dl.pos dd, .desk .pos-sum { font-size: 13px; }

/* ---- Faz 5: the Discovery research on a channel idea (§20) — the steps, the review the owner confirms, the job reasons */
.kd { display: grid; gap: 4px; }
ol.kc-steps li.stop { color: var(--text); } ol.kc-steps li.stop strong { color: var(--bad); } ol.kc-steps li.stop::before { background: var(--bad); border-color: var(--bad); }
.kd-review { display: grid; gap: 14px; margin-top: 12px; padding: 14px 16px; border-radius: 0; background: var(--surface-2); border: 1px solid var(--line); border-top: 2px solid var(--text); }
.kd-head { font-size: 15px; color: var(--text); }
.kd-sec { display: grid; gap: 4px; }
.kd-sec h4 { margin: 0; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kd-sec ul.plain { margin: 0; color: var(--text-2); }
.kd-quote { margin: 0; padding: 8px 12px; border-left: 2px solid var(--line-2); border-radius: 0; background: var(--surface); color: var(--muted); font-size: 13px; font-style: italic; }
.kd-who { font-style: normal; font-weight: 600; color: var(--text); }
ol.kd-findings { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); background: var(--surface); }
ol.kd-findings li { display: grid; gap: 4px; padding: 10px 12px; border-radius: 0; background: var(--surface); border: 0; border-top: 1px solid var(--line); }
ol.kd-findings li:first-child { border-top: 0; }
ol.kd-findings p { font-size: 14px; }
.kd-f-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chip.unverified { color: var(--muted); background: transparent; border-style: dashed; border-color: var(--line-2); }
dl.kd-contract { display: grid; gap: 6px; margin: 0; }
dl.kd-contract div { display: grid; grid-template-columns: minmax(84px, 30%) minmax(0, 1fr); gap: 10px; }
dl.kd-contract dt { color: var(--muted); font-size: 13px; }
dl.kd-contract dd { margin: 0; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.kd-fold { margin-top: 0; }
.kd-review > .kd-fold { margin-top: -4px; }
ol.kd-seeds { display: grid; gap: 6px; margin: 6px 0 0; padding-left: 20px; font-size: 13px; }
ol.kd-seeds li { display: grid; gap: 1px; } ol.kd-seeds li.off { color: var(--muted); }
ol.kd-seeds .idea-en { margin-top: 0; }
ul.kd-neg li { display: grid; gap: 2px; } ul.kd-neg a, ul.kd-neg .sub { overflow-wrap: anywhere; }
.kd-foot { font-size: 12px; color: var(--muted); }
.kd-stop { margin-top: 6px; }
.desk .kd-review { padding: 12px 14px; gap: 12px; } .desk ol.kd-findings p, .desk .kd-head { font-size: 13px; }
.jr { grid-column: 2; color: var(--muted); font-size: 12px; }
@media (min-width: 700px) { .doing .jr { grid-column: 2 / -1; } }
.dlist .jr { grid-column: 2 / -1; }
.dlg h2[tabindex="-1"]:focus { outline: none; }

/* the system's own work: one quiet line at the bottom of Bugün (docs/REHBER_V4_PLAN.md §23, §24) */
.quiet { margin: 28px 0 4px; border-radius: 0; background: var(--surface); border: 1px solid var(--line); }
.quiet > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; }
.quiet > summary:hover { color: var(--text); }
.quiet > summary::-webkit-details-marker { display: none; }
.quiet > summary::after { content: "›"; margin-left: auto; font-size: 18px; line-height: 1; color: var(--muted); transition: transform .15s; }
.quiet[open] > summary::after { transform: rotate(90deg); }
.quiet > summary .ic { width: 15px; height: 15px; flex: none; }
.quiet.q-warn { border-color: var(--line-2); box-shadow: inset 2px 0 0 var(--warn); } .quiet.q-warn > summary { color: var(--text); }
.q-off { font-family: var(--mono); font-size: 11px; padding: 1px 7px; border-radius: 3px; border: 1px solid var(--line); background: transparent; }
.qlist { list-style: none; margin: 0; padding: 0 0 4px; }
.qlist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.qlist li .ic { width: 15px; height: 15px; color: var(--muted); } .qlist .q-completed .ic { color: var(--muted); } .qlist .q-failed .ic { color: var(--bad); }
.qlist .jr { display: block; font-size: 12px; color: var(--muted); } .qlist .jm { font-size: 12px; color: var(--muted); white-space: nowrap; }
.qlist .jm { display: inline-flex; align-items: center; gap: 8px; } .qlist .jm .btn { margin: -4px 0; }
@media (max-width: 600px) { .qlist li { grid-template-columns: auto minmax(0, 1fr); row-gap: 2px; } .qlist .jm { grid-column: 2; white-space: normal; flex-wrap: wrap; } }
.q-empty { padding: 0 14px 12px; margin: 0; }
/* the YouTube Partner Program goal (Kanal › İstatistik) */
.ypp-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.ypp-head > div { display: grid; gap: 2px; }
.ypp { display: grid; gap: 14px; padding: 14px 16px; border-radius: 0; background: var(--surface); border: 1px solid var(--line); }
.ypp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: end; }
.ypp-row progress { grid-column: 1 / -1; width: 100%; max-width: none; height: 4px; border-radius: 0; }
.ypp-wrap { display: grid; gap: 10px; } .ypp-wrap > p { margin: 0; } .ypp-wrap .ypp-head { margin-bottom: 0; }
.desk .ypp-wrap { padding: 12px 16px; }
.ypp-l { display: grid; gap: 1px; } .ypp-n { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.ypp-or { margin: -4px 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.ypp-foot { font-size: 12px; margin: 6px 0 0; }

/* the main channels (docs/REHBER_V4_PLAN.md §22): Kanallarım groups each Google account's sub-channels under one heading */
.grp { margin: 32px 0 0; }
.grp-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.grp-t { display: grid; gap: 2px; min-width: 0; } .grp-t .sub { font-size: 13px; overflow-wrap: anywhere; }
.desk .grp-h { padding: 12px 16px 4px; margin: 0; }
.grp-h { flex-wrap: wrap; } .grp-h > .grp-t { flex: 1 1 220px; }
.grp-b { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: 0 1 auto; margin-left: auto; }
.grp-ask { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 12px; border-radius: 0; background: var(--surface-2); border: 1px solid var(--line); border-left: 2px solid var(--text); color: var(--text-2); font-size: 13px; }
.grp-ask > .ic { width: 17px; height: 17px; flex: none; color: var(--text); }
.grp-ask > span { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.desk .grp-ask { margin: 0 16px 10px; }
.kc-look { margin: 12px 0 4px; padding: 10px 12px; border-left: 2px solid var(--text); border-radius: 0; background: var(--surface-2); }
.kc-look p { margin: 4px 0; font-size: 14px; } .kc-look .idea-sub { margin-top: 0; } .kc-look .muted { font-size: 12px; }
.audit-qa { display: grid; gap: 0; margin: 12px 0 0; border: 1px solid var(--line); } .audit-qa > div { padding: 10px 12px; border-radius: 0; background: var(--surface); border-top: 1px solid var(--line); }
.audit-qa > div:first-child { border-top: 0; }
.audit-qa dt { font-weight: 600; font-size: 13px; margin: 0 0 4px; color: var(--text); } .audit-qa dd { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.audit-qa dd span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.kc-grp { display: flex; gap: 6px; align-items: center; margin: 8px 0 0; font-size: 13px; color: var(--text-2); font-weight: 550; } .kc-grp .ic { width: 15px; height: 15px; flex: none; color: var(--muted); }
/* §22/§23: three tabs and the gear; Bugün from the most urgent — one big card, the next three, a calm state */
.tabs { grid-template-columns: repeat(3, 1fr); }
.bar-r { display: inline-flex; align-items: center; gap: 8px; }
.gear { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r); color: var(--muted); }
.gear .ic { width: 20px; height: 20px; } .gear:hover { background: var(--hover); color: var(--text); text-decoration: none; } .gear.on { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg.under { margin: -6px 0 16px; }
.now { margin: 8px 0 0; } .now-h { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin: 0 0 10px; }
.card-big { padding: 24px 24px 22px 26px; border-color: var(--line-2); } .card-big::before { top: 0; bottom: 0; width: 2px; } .card-big h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin: 12px 0 8px; } .card-big p { font-size: 15px; }
.card-big .card-act .btn:first-child { min-height: 44px; }
.card-sm { padding: 14px 16px 14px 18px; } .card-sm h3 { font-size: 15px; margin: 6px 0 2px; } .card-sm p { font-size: 13px; } .card-sm .card-act { margin-top: 10px; }
.calm { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 0; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); margin: 8px 0 0; }
.calm .ic.big { width: 26px; height: 26px; color: var(--mint-ink); flex: none; } .calm div { display: grid; gap: 4px; } .calm strong { color: var(--text); font-weight: 600; } .calm span { color: var(--muted); font-size: 14px; }
.dsub { margin-top: 10px !important; padding-top: 10px !important; border-top: 1px solid var(--line); }
.dside .dsub { border-top-color: var(--navy-line); }
.dpanel.now .card-big { border: 0; border-radius: 0; } .dpanel.now .card-big::before { top: 0; bottom: 0; }
.kpis-row { margin: 0 0 16px; flex-wrap: wrap; }
/* a readiness row's details on the same screen (the chosen name / @handle, the description to paste, the drawn images): copy, folder */
.rdet { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.rdet > summary { cursor: pointer; padding: 8px 12px; font-size: 13px; color: var(--muted); }
.rdet[open] > summary { border-bottom: 1px solid var(--line); }
.rdet-text { margin: 0; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; font: 13px/1.5 var(--font, system-ui); max-height: 320px; overflow: auto; }
.rdet-tr { margin: 0; padding: 8px 12px; font-size: 13px; color: var(--muted); white-space: pre-wrap; }
.rdet .fold { margin: 0 12px 10px; }
.rdet-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; }
.rdet-act .sub { font-size: 12px; }
.rdet-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.rdet-img { display: block; margin: 10px 12px 0; max-width: calc(100% - 24px); height: auto; border-radius: 8px; border: 1px solid var(--line); }
.rdet-profile { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; }


/* ---- control room (Bugün): the urgent work on top, every channel at a glance, the pipeline tracker, the automatic work apart ---- */
/* Acil işlemler — decisions, problems, gaps; the first thing on the page: a leaf with an ink rule on top, the count in the one red */
.acil { margin: 20px 0 0; padding: 18px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--text); border-radius: 0; box-shadow: var(--shadow); }
.acil-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 16px; }
.acil-h h2 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--text); margin: 0; }
.acil-h .sub { margin-left: auto; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.acil-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--accent); color: #ffffff; font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.acil-grid { display: grid; gap: 20px; align-items: start; }
.acil-grid > :only-child { grid-column: 1 / -1; }
.acil .now, .acil .calm, .acil .sec { margin: 0; }
.acil .sec-h { margin-bottom: 10px; }
.acil .fold { margin-top: 10px; }
.desk .acil { margin: 0 0 28px; padding: 16px 18px 18px; }
.desk .acil .dgrid { gap: 20px; }
.desk .acil .dpanel { margin-bottom: 0; box-shadow: none; }
@media (min-width: 900px) { .acil-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
@media (max-width: 599px) { .acil { padding: 14px 14px 16px; } .acil-h .sub { margin-left: 0; flex-basis: 100%; } }

/* Toplu özet — the totals over every channel: one ledger strip, light large numerals, no coloured tops */
.ozet-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; margin: 0 0 16px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.okpi { --oc: var(--text); display: grid; gap: 4px; align-content: start; padding: 14px 16px; background: var(--surface); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); min-width: 0; }
.okpi span { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.okpi b { font-size: 30px; font-weight: 300; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--text); }
.okpi em { font-style: normal; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.ok-brand { --oc: var(--text); } .ok-info { --oc: var(--text); } .ok-human { --oc: var(--text); } .ok-ok { --oc: var(--text); } .ok-bad { --oc: var(--bad); } .ok-idle { --oc: var(--muted); }
.okpi.ok-bad b { color: var(--bad); } .okpi.ok-human b { font-weight: 500; } .okpi.ok-idle b { color: var(--muted); }
.desk .ozet .ozet-kpis { margin: 0; border-top: 0; border-left: 0; border-bottom: 1px solid var(--line); }
.desk .ozet .okpi { box-shadow: none; background: var(--surface); border-color: var(--line); border-bottom: 0; }
.desk .ozet .okpi:last-child { border-right: 0; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.pcard { display: grid; gap: 16px; padding: 14px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); color: var(--text); transition: border-color .12s; }
.pcard:hover { text-decoration: none; border-color: var(--text); }
.pcard-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pcard-t { display: grid; gap: 1px; flex: 1 1 auto; min-width: 0; }
.pcard-t strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-t .sub { font-size: 12px; }

/* the pipeline tracker: Fikir → Senaryo → Ses → Video → Küçük resim → Yayın — pastel states that rest the eye: mint for what is done, apricot
   for the step in progress (a slow breathing halo) and for the owner's turn ("!"), light grey for what is in line, a muted red only when a step stopped.
   The joining line turns mint along the done run and fades mint → apricot into the current step. */
.pipe { --pd: 22px; --pw: 2px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pipe li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 0 2px; text-align: center; }
.pipe li::before { content: ""; position: absolute; top: calc(var(--pd) / 2 - var(--pw) / 2); right: 50%; width: 100%; height: var(--pw); border-radius: 2px; background: var(--line); transition: background var(--t); }
.pipe li:first-child::before { display: none; }
.pipe li.ps-done::before { background: var(--mint-line); }
.pipe li.ps-now::before, .pipe li.ps-human::before { background: linear-gradient(90deg, var(--mint-line), var(--apri-line)); }
.pipe li.ps-block::before { background: linear-gradient(90deg, var(--mint-line), color-mix(in srgb, var(--bad) 40%, var(--line))); }
.pipe .pd { position: relative; z-index: 1; display: grid; place-items: center; width: var(--pd); height: var(--pd); border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--line-2); font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted);
  transition: background-color var(--t), border-color var(--t), transform var(--t) var(--ease), box-shadow var(--t); }
.pipe .pl { font-size: 11px; font-weight: 500; line-height: 1.25; letter-spacing: 0; color: var(--muted); overflow-wrap: normal; word-break: normal; transition: color var(--t); }
@media (min-width: 600px) { .pipe .pl { font-size: 11.5px; letter-spacing: 0; } }
.ps-done .pd { background: var(--mint-bg); border-color: var(--mint-line); color: var(--mint-ink); }
.ps-now .pd { background: var(--apri-bg); border-color: var(--apri); color: var(--apri-ink); animation: halo 2.4s var(--ease) infinite; }
.ps-human .pd { background: var(--apri-bg); border-color: var(--apri); color: var(--apri-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--apri-line) 45%, transparent); }
.ps-block .pd { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); color: var(--bad); }
.ps-done .pl { color: var(--text-2); } .ps-now .pl { color: var(--text); font-weight: 650; } .ps-human .pl { color: var(--text); font-weight: 650; } .ps-block .pl { color: var(--bad); font-weight: 650; }
.pipe li:hover .pd { transform: scale(1.08); }
@keyframes halo { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--apri) 38%, transparent); } 70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--apri) 0%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
/* the full tracker: a tick on the done steps, a dot on the current one */
.pipe:not(.sm):not(.cnt) .ps-done .pd::after { content: ""; width: 4px; height: 8px; border: solid var(--mint-ink); border-width: 0 1.6px 1.6px 0; transform: translateY(-1px) rotate(45deg); }
.pipe:not(.sm):not(.cnt) .ps-now .pd::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--apri); }
.pipe:not(.sm):not(.cnt) .ps-human .pd::after { content: "!"; color: var(--apri-ink); font-size: 11px; font-weight: 800; }
.pipe:not(.sm):not(.cnt) .ps-block .pd::after { content: "!"; color: var(--bad); font-size: 11px; font-weight: 800; }
/* the small tracker (a video row, a table cell): dots only — a touch stronger so the pastel still reads at 9 px */
.pipe.sm { --pd: 9px; --pw: 1.5px; max-width: 180px; margin-top: 6px; }
.pipe.sm li { gap: 0; }
.pipe.sm .pd { border-width: 1.5px; }
.pipe.sm .ps-done .pd { background: var(--mint-line); border-color: var(--mint); }
.pipe.sm .ps-now .pd, .pipe.sm .ps-human .pd { background: var(--apri-line); border-color: var(--apri); box-shadow: none; }
.pipe.sm .ps-now .pd { animation: halo-sm 2.4s var(--ease) infinite; }
.pipe.sm li:hover .pd { transform: none; }
@keyframes halo-sm { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--apri) 40%, transparent); } 70% { box-shadow: 0 0 0 4px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
/* the counts (a channel): how many videos stand on each step */
.pipe.cnt { --pd: 30px; }
.pipe.cnt .pd { font-size: 11.5px; }
.pipe.cnt .ps-done .pd { color: var(--mint-ink); }
.pipe.cnt .ps-block .pd { color: var(--bad); }
.pipe.cnt .ps-human .pd, .pipe.cnt .ps-now .pd { color: var(--apri-ink); }
.pipe.cnt .ps-wait .pd { color: var(--text-2); }
.pipe-card { display: grid; gap: 18px; padding: 16px 16px 18px; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); }
.pipe-card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 12px; }
.pipe-card-h > :last-child:not(:first-child) { margin-left: auto; }
.pipe-card-h > div { display: grid; gap: 2px; min-width: 0; }
.pipe-card-h strong { font-size: 15px; font-weight: 600; color: var(--text); }
.desk .pipe-card { margin: 0 0 24px; }
.vrow-main .pipe.sm { margin-top: 8px; }
.tpipe .pipe.sm { min-width: 150px; margin: 0; }
/* the every-channel table (desktop Toplu özet): plain numerals, a frame only where it matters */
.pgrid .pcol { text-align: center; width: 1%; white-space: nowrap; }
.pgrid th.pcol { padding-left: 10px; padding-right: 10px; }
.pc { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.c-zero { color: var(--line-2); }
.c-wait { background: transparent; color: var(--text-2); }
.c-done { background: var(--mint-bg); color: var(--mint-ink); }
.c-now { background: transparent; color: var(--apri-ink); font-weight: 650; box-shadow: inset 0 0 0 1px var(--apri-line); }
.c-human { background: var(--apri-bg); color: var(--apri-ink); font-weight: 650; box-shadow: inset 0 0 0 1px var(--apri-line); }
.c-block { background: var(--bad-bg); color: var(--bad); font-weight: 650; }

/* Otomatik işler — what the system runs by itself, set apart at the bottom: no box, a hairline and a quieter voice */
.auto-zone { margin: 48px 0 0; padding: 20px 0 0; background: transparent; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; }
.auto-h { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.auto-h > .ic { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
.auto-h > div { display: grid; gap: 2px; min-width: 0; }
.auto-h h2 { font-size: 15px; font-weight: 600; margin: 0; color: var(--text); }
.auto-h .sub { font-size: 13px; }
.auto-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.auto-facts .chip { height: 26px; padding: 0 10px; font-size: 12px; }
.auto-zone .quiet { margin: 0; }
.desk .auto-zone { margin: 12px 0 0; }
.desk .auto-zone .dgrid { gap: 20px; }
.desk .auto-zone .dpanel { margin-bottom: 0; }
@media (max-width: 599px) { .auto-zone { padding: 16px 0 0; } }


/* ---- the finish: motion that answers the hand, quiet depth on what can be picked up, an editorial tick under every heading ----
   Everything here is presentation only: hover lifts of 1–2 px, a pressed state that sinks, one easing curve, focus halos, a thin themed
   scrollbar, a hatched paper for the empty states, a red left rule for what is urgent. prefers-reduced-motion turns the motion off. */

/* scrollbars: thin, themed, never a grey slab */
html { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; scroll-behavior: smooth; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid transparent; border-radius: 10px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }
::-webkit-scrollbar-corner { background: transparent; }
.rail, .dside { scrollbar-color: var(--navy-line) transparent; }
.rail ::-webkit-scrollbar-thumb, .dside ::-webkit-scrollbar-thumb { background-color: var(--navy-line); }
.tscroll, .seg { scrollbar-width: thin; }

/* buttons: lift on hover, sink on press, a soft halo around the focus ring */
.btn { transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease); }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(24, 27, 30, .04), 0 6px 14px -10px rgba(24, 27, 30, .45); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.985); box-shadow: inset 0 1px 2px rgba(24, 27, 30, .16); transition-duration: .06s; }
.btn.ghost:hover:not(:disabled), .btn.ghost:active:not(:disabled) { box-shadow: none; }
.btn.primary:active:not(:disabled) { box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35); }
.btn .ic, .link .ic, .back .ic, .chip .ic, .kind .ic, .trow-kind .ic { flex: none; }
.chip, .kind, .trow-kind, .nb, .count, .acil-n { line-height: 1; }
.link .ic, .back .ic { transition: transform var(--t) var(--ease); }
.link:hover .ic { transform: translateX(2px); }
.back:hover .ic { transform: translateX(-2px); }
.linkbtn, .link, .back, .dcrumbs a, .fold summary, .tab, .dnav, .nav, .gear, .pill, .dme { transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }

/* focus: the red ring stays (one shape everywhere); controls also get a faint halo, inputs a calm ink ring */
.btn:focus-visible, .seg a:focus-visible, .seg button:focus-visible, .dtabs a:focus-visible, .pill:focus-visible, .gear:focus-visible, .tile:focus-visible, .vrow:focus-visible, .pcard:focus-visible, .chrow:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--focus) 12%, transparent); }
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus, input[type=url]:focus, select:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 9%, transparent); }
input[type=text], input[type=email], input[type=password], input[type=url], select { transition: border-color var(--t-fast), box-shadow var(--t) var(--ease); }
input[role=switch] { transition: background-color var(--t) var(--ease); }
input[role=switch]::after { transition: transform var(--t) var(--ease); }

/* headings: a short ink tick on the hairline — the ledger's one ornament */
.sec-h, .dpanel-h { position: relative; }
.sec-h::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 28px; height: 1px; background: var(--text); }
.dpanel-h::after { content: ""; position: absolute; left: 16px; bottom: -1px; width: 22px; height: 1px; background: var(--text); }
.dpanel-h { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-2) 55%, var(--surface))); }
.dtop { box-shadow: 0 1px 0 var(--line), 0 10px 24px -22px rgba(24, 27, 30, .5); border-bottom-color: transparent; }
.bar { box-shadow: 0 10px 24px -24px rgba(24, 27, 30, .5); }
.dcrumbs .sep { opacity: .8; }

/* tabs: the indicator grows in from its centre; the desktop tabs keep a hairline preview on hover */
.tab::before { width: 28px; height: 2px; border-radius: 0 0 2px 2px; background: var(--accent); transform: translateX(-50%) scaleX(0); transition: transform var(--t) var(--ease); }
.tab.on::before { transform: translateX(-50%) scaleX(1); }
.tab .ic { transition: transform var(--t) var(--ease); }
.tab:active .ic { transform: scale(.92); }
.tab .nb, .dnav .nb, .nav .nb { box-shadow: 0 0 0 2px var(--surface); }
.dnav .nb, .nav .nb { box-shadow: 0 0 0 2px var(--navy); }
.dtabs a { transition: color var(--t-fast), border-color var(--t) var(--ease); }
.dtabs a:hover:not(.on) { border-bottom-color: var(--line-2); }
.dtabs a.on .n { color: var(--text-2); }
.seg a, .seg button { transition: color var(--t-fast), background-color var(--t-fast); }
.dnav.on::before, .nav.on::before { border-radius: 0 2px 2px 0; }
.dnav:hover .ic, .nav:hover .ic { color: var(--navy-ink); }

/* things that can be picked up rest a touch above the paper on hover */
.card, .pcard, .idea, .opt { transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t-fast), background-color var(--t-fast); }
.card:hover, .idea:hover { transform: translateY(-1px); box-shadow: var(--rest); }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--rest); border-color: var(--line-2); }
.pcard:active { transform: translateY(0); box-shadow: none; }
.card-big:hover { transform: translateY(-1px); }
.dpanel.now .card-big:hover, .card.flash:hover { transform: none; box-shadow: none; }
.opt:hover { box-shadow: var(--rest); }

/* rows and tables: a whisper of ground on hover and a 2-px ink mark that slides in on the left; the chevron leans forward */
.tile, .vrow, .chrow, .vmini a, .step, .trow, .ideas li, .lmini li, .dlist li, .qlist li, .doing li { transition: background-color var(--t-fast), box-shadow var(--t) var(--ease); }
.tile:hover, .vrow:hover, .chrow:hover, .vmini a:hover { background: color-mix(in srgb, var(--surface-2) 75%, var(--surface)); box-shadow: inset 2px 0 0 var(--text); }
.step:hover, .ideas li:hover, .lmini li:hover, .dlist li:hover, .qlist li:hover, .doing li:hover { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.tile .chev, .vrow .chev { transition: transform var(--t) var(--ease), color var(--t-fast); }
.tile:hover .chev, .vrow:hover .chev { transform: translateX(3px); }
.dtable thead th { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.dtable tbody tr td { transition: background-color var(--t-fast); }
.dtable tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
.dtable tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--text); }
tr.rowlink:active td { background: var(--surface-2); }
/* the owner's step in the video's list gets a faint apricot wash, so the eye lands on it first */
.step:has(> .step-ic.t-human) { background: color-mix(in srgb, var(--apri-bg) 55%, var(--surface)); box-shadow: inset 2px 0 0 var(--apri); }
.step:has(> .step-ic.t-human):hover { background: color-mix(in srgb, var(--apri-bg) 75%, var(--surface)); }
.s-tamam .step-main strong { color: var(--text-2); }

/* urgent: a muted-red left rule and a breath of red ground at the edge — never a red box */
.card.kritik::before, .card.k-sorun::before, .trow.kritik::before, .trow.k-sorun::before { width: 3px; background: var(--bad); }
.card.kritik, .trow.kritik { background: linear-gradient(90deg, color-mix(in srgb, var(--bad-bg) 70%, var(--surface)), var(--surface) 38%); }
.trow::before { border-radius: 0 2px 2px 0; }
.acil { box-shadow: inset 2px 0 0 var(--accent); }
.acil-n { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.quiet.q-warn { box-shadow: inset 2px 0 0 var(--apri); }

/* numerals: light, tight, lining and tabular; the KPI strips gain a coloured top hairline only on hover */
.okpi b, .kpi b, .stats dd, .dhello strong, .dch-id strong { font-feature-settings: "tnum" 1, "lnum" 1; font-variant-numeric: tabular-nums lining-nums; }
.okpi b { font-size: 34px; font-weight: 250; letter-spacing: -.045em; }
.kpi b { font-size: 24px; font-weight: 250; letter-spacing: -.04em; }
.okpi, .kpi, .stats div { position: relative; transition: background-color var(--t-fast); }
.okpi::after, .kpi::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--oc, var(--text)); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.okpi:hover, .kpi:hover, .stats div:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
.okpi:hover::after, .kpi:hover::after { transform: scaleX(1); }
.okpi.ok-ok { --oc: var(--mint); } .okpi.ok-human { --oc: var(--apri); } .okpi.ok-info { --oc: var(--apri-line); } .okpi.ok-bad { --oc: var(--bad); } .okpi.ok-idle { --oc: var(--line-2); }
.okpi span::before, .kpi span::before { content: ""; display: inline-block; width: 6px; height: 1px; margin: 0 6px 0 0; vertical-align: middle; background: currentColor; opacity: .6; }

/* the pipeline cards breathe a little more */
.pipe-card { gap: 20px; padding: 18px 20px 20px; }
.pcard { gap: 18px; padding: 16px 18px 18px; }
.pcards { gap: 14px; }
.cards { gap: 14px; }
.step { padding: 13px 16px; gap: 14px; }

/* empty and calm states: a hatched paper and the icon in a ring, a mint rule when all is well */
.empty { border: 1px dashed var(--line-2); background: repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in srgb, var(--line) 38%, transparent) 11px 12px); padding: 44px 24px; gap: 10px; }
.empty .ic, .dempty > .ic { box-sizing: content-box; padding: 10px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); }
.dempty > .ic { padding: 7px; }
.calm { box-shadow: inset 2px 0 0 var(--mint-line); }

/* loading: a soft breath on the words, the spinner keeps its turn */
.boot, .loading { animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.spin, .boot-mark { border-top-color: var(--apri); }

/* dialogs and toasts arrive instead of appearing */
.dlg[open] { animation: dlg-in var(--t) var(--ease); }
.dlg[open]::backdrop { animation: fade-in var(--t) ease-out; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.toast { transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }

/* avatars: a hairline of light so the graphite squares don't read as holes */
.av { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .pcard, .idea, .opt, .tile, .vrow, .chrow, .step, .tab::before, .okpi::after, .kpi::after, .pipe .pd, .link .ic, .back .ic, .tile .chev, .vrow .chev { transition: none; }
  .btn:hover:not(:disabled), .btn:active:not(:disabled), .card:hover, .idea:hover, .pcard:hover, .card-big:hover, .pipe li:hover .pd, .link:hover .ic, .back:hover .ic, .tile:hover .chev, .vrow:hover .chev, .tab:active .ic { transform: none; }
  .ps-now .pd, .pipe.sm .ps-now .pd, .j-running, .boot, .loading, .dlg[open], .dlg[open]::backdrop { animation: none; }
}

/* ---- narrow screens: nothing wider than the viewport, labels that never run into each other, buttons that wrap instead of spilling ---- */
main, .dmain, .dcol, .acil-grid > *, .pcard, .pipe-card, .card, .trow-main, .vrow-main, .tile-main { min-width: 0; }
.card h3, .card p, .trow-main strong, .trow-text, .acil-h h2, .pipe-card-h strong, .okpi span, .kpi span, .vrow-main strong { overflow-wrap: anywhere; }
.tscroll { max-width: 100%; -webkit-overflow-scrolling: touch; }
.dpanel-b { min-width: 0; }
.dtopics { min-width: 520px; }
.dpanel-b:has(> .dtopics) { overflow-x: auto; }
.trow-act, .card-act { flex-wrap: wrap; min-width: 0; }
.pipe.sm li { padding: 0; }
/* the desktop frame only ever runs at ≥ 1024 px; if it lands in anything narrower (an embedded preview), fold it to one column */
@media (max-width: 1023px) {
  .dgrid, .dgrid-even, .desk .acc-grid { grid-template-columns: minmax(0, 1fr); }
  .trow { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .trow-act { justify-content: flex-start; }
  .dch-head { flex-wrap: wrap; } .kpis { margin-left: 0; flex-wrap: wrap; }
}
@media (max-width: 599px) {
  .kpis-row, .kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-left: 0; width: 100%; }
  .kpi { min-width: 0; border-top: 1px solid var(--line); } .kpi:nth-child(-n+2) { border-top: 0; } .kpi:nth-child(odd) { border-left: 0; }
  .ozet-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .okpi b { font-size: 24px; }
  .page-h { flex-wrap: wrap; }
  .card-big { padding: 18px 16px 16px 18px; } .card-big h3 { font-size: 19px; }
  .pcards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .card-act .btn, .btns .btn, .row0 .btn { flex: 1 1 auto; min-width: 0; max-width: 100%; height: auto; min-height: 44px; padding-top: 8px; padding-bottom: 8px; white-space: normal; text-align: center; line-height: 1.25; }
  .row0 .btn { margin-left: 0; }
  .card-act .linkbtn, .card-act .link { flex-basis: 100%; }
}
@media (max-width: 400px) {
  .pipe { --pd: 18px; }
  .pipe .pl { font-size: 10px; letter-spacing: -.01em; }
  .pipe.cnt { --pd: 22px; }
  .pipe.cnt .pd { font-size: 10px; }
  .pipe li { gap: 4px; padding: 0 1px; }
  .pcard, .pipe-card { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 340px) {
  .pipe .pl { overflow-wrap: anywhere; }
  .ozet-kpis, .kpis-row, .kpis { grid-template-columns: minmax(0, 1fr); }
}

/* Ayarlar › Abonelikler and Kanal › Tarz (plan §38) */
.svc-row { align-items: flex-start; }
.svc-side { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.svc-end { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.svc-key { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.svc-key input { min-width: 0; flex: 1 1 180px; }
.svc-h { font-size: 14px; margin: 18px 0 4px; }
.svc-list { margin: 6px 0 8px; padding-left: 18px; }

/* ---- the interface review of 7 Oct 2026 (docs/ARAYUZ_DENETIMI_2026-10-07.md) ---------------------------------------------------------------
   UI-1: the small labels read in the page's own type (no monospace, no capitals) · UI-5: a status chip carries its tone in its text and a 6-px dot,
   so a problem, the owner's turn, work in progress and done read apart at a glance (still no filled colour blocks) */
.kind, .trow-kind, .stats dt, .kpi span, .okpi span, .dtable thead th, .idea-facts dt, .idea-sub, dl.pos dt, .kd-sec h4, .now-h, .acil-h .sub, .ypp-or, .copy-k {
  font-family: inherit; text-transform: none; letter-spacing: .01em; font-size: 11.5px; font-weight: 600; }
.dhello span { font-family: inherit; font-size: 12.5px; letter-spacing: 0; }
.chip { gap: 6px; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; flex: none; }
.chip:has(.ic)::before { display: none; }
.t-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--line-2)); }
.t-warn { color: var(--warn); background: transparent; border-color: color-mix(in srgb, var(--warn) 45%, var(--line-2)); }
.t-bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line-2)); }
.t-human { color: var(--apri-ink); background: transparent; border-color: color-mix(in srgb, var(--apri) 55%, var(--line-2)); }
.t-info { color: var(--info); border-color: var(--line-2); }
/* UI-6: the automatic side's facts are a plain line, not buttons */
.auto-facts .chip { border-color: transparent; background: transparent; padding-left: 0; height: auto; }

/* ---- Ayarlar (UI-27…37): a menu of ten pages, groups of rows, meters --------------------------------------------------------------------- */
.ayar { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 32px; align-items: start; }
.ayar-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ayar-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text-2); }
.ayar-menu a:hover { background: var(--hover); text-decoration: none; color: var(--text); }
.ayar-menu a.on { background: var(--surface); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); border: 1px solid var(--line); }
.ayar-menu .am-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ayar-menu .am-t strong { font-weight: 600; font-size: 14px; }
.ayar-menu .ic { width: 18px; height: 18px; color: var(--muted); }
.ayar-menu .chev { margin-left: auto; }
.desk .ayar-menu { position: sticky; top: calc(var(--top-h, 52px) + 20px); }
.desk .ayar-menu a { padding: 8px 10px; }
.desk .ayar-menu .am-t strong { font-size: 13px; font-weight: 550; }
.ayar-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 11px; font-weight: 700; border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.ayar-n.bad { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.ayar-search { margin: 0 0 14px; position: relative; }
.ayar-search input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit; }
.ayar-hits { list-style: none; margin: 6px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); display: grid; gap: 1px; }
.ayar-hits a { display: grid; gap: 1px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--text); }
.ayar-hits a:hover { background: var(--hover); text-decoration: none; }
.ayar-none { margin: 8px 2px 0; font-size: 13px; }
.ayar-page { min-width: 0; max-width: 860px; display: grid; gap: 20px; }
.ayar-h { margin: 0 0 4px; } .ayar-h h1 { font-size: 22px; font-weight: 600; } .ayar-h .sub { margin-top: 4px; }
.sgroup { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; scroll-margin-top: 80px; }
.sgroup-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 18px 12px; border-bottom: 1px solid var(--line); }
.sgroup-h h2 { font-size: 15px; font-weight: 600; } .sgroup-h .sub { margin-top: 3px; max-width: 70ch; }
.sgroup-b { padding: 4px 18px 14px; display: grid; }
.sgroup-b > .rows { border: 0; margin: 0 -18px; }
.sgroup-b > .note { margin: 12px 0 4px; }
.sgroup-b > .btns, .sgroup-b > .more { margin-top: 12px; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.sgroup-b > .srow:first-child, .srows > .srow:first-child { border-top: 0; }
.srow-t { display: grid; gap: 3px; min-width: 0; }
.srow-t strong { font-weight: 600; color: var(--text); display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.srow-d { color: var(--muted); font-size: 13px; line-height: 1.45; max-width: 64ch; }
.srow-c { flex: none; display: flex; align-items: center; gap: 8px; }
.srow-c select { height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--text); padding: 0 8px; font: inherit; }
.smore { border-top: 1px solid var(--line); }
.smore > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 0; font-weight: 550; font-size: 13.5px; color: var(--text-2); }
.smore > summary::-webkit-details-marker { display: none; }
.smore > summary .sub { font-weight: 450; }
.smore > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(-45deg); transition: transform var(--t-fast); flex: none; }
.smore[open] > summary::before { transform: rotate(45deg); }
.smore > summary:hover { color: var(--text); }
.smore-b { padding: 0 0 14px; display: grid; gap: 10px; }
.svc .smore { border-top: 0; } .svc .smore > summary { padding: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.todo-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.todo-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); }
.todo-list a:hover { background: var(--hover); text-decoration: none; }
.todo-list a > span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.todo-list .tl-bad .ic:first-child { color: var(--bad); } .todo-list .tl-warn .ic:first-child { color: var(--warn); }
.ok-line { display: flex; align-items: center; gap: 8px; padding: 12px 0 4px; color: var(--ok); font-weight: 550; }
.kv2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; margin: 10px 0 2px; }
.kv2 dt { color: var(--muted); font-size: 12.5px; } .kv2 dd { margin: 4px 0 0; color: var(--text); font-weight: 550; }
.meters { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 10px 0 4px; }
.meter { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; display: grid; gap: 10px; background: var(--surface); scroll-margin-top: 80px; }
.meter.m-critical { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); box-shadow: inset 3px 0 0 var(--bad); }
.meter.m-warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); box-shadow: inset 3px 0 0 var(--warn); }
.meter-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; } .meter-h > div { display: grid; gap: 2px; min-width: 0; }
.meter-w { display: grid; gap: 5px; }
.meter-l { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); } .meter-l b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.meter progress, .budget-bar progress { max-width: none; width: 100%; height: 6px; border-radius: 3px; }
.meter progress::-webkit-progress-bar, .budget-bar progress::-webkit-progress-bar { border-radius: 3px; }
.meter progress::-webkit-progress-value, .budget-bar progress::-webkit-progress-value { border-radius: 3px; }
progress.lv-warn::-webkit-progress-value { background: var(--warn); } progress.lv-warn::-moz-progress-bar { background: var(--warn); }
progress.lv-critical::-webkit-progress-value { background: var(--bad); } progress.lv-critical::-moz-progress-bar { background: var(--bad); }
progress.lv-unknown::-webkit-progress-value { background: var(--line-2); } progress.lv-unknown::-moz-progress-bar { background: var(--line-2); }
.meter-n { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.meters-mini { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.budget-bar { display: grid; gap: 6px; padding: 4px 0 12px; }
.svcs { display: grid; gap: 10px; margin: 10px 0 4px; }
.svc { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; display: grid; gap: 6px; scroll-margin-top: 80px; }
.svc > .svc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-size: inherit; }
.svc-t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .svc-t strong { color: var(--text); font-weight: 600; }
.svc-c { display: flex; align-items: center; gap: 10px; flex: none; }
.svc-meter { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); } .svc-meter:hover { text-decoration: none; color: var(--text); }
.svc-off .srow-t strong { font-weight: 550; }
.srows { display: grid; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; } .inline-form .pre { color: var(--muted); }
.inline-form input { width: 90px; height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--text); padding: 0 8px; font: inherit; font-variant-numeric: tabular-nums; }
.seg-sm { margin: 0; } .seg-sm button { height: 34px; padding: 0 12px; }
@media (max-width: 1023px) {
  .ayar-menu a { padding: 14px 12px; background: var(--surface); border: 1px solid var(--line); }
  .ayar-menu ul { gap: 8px; }
  .ayar-page { gap: 16px; }
  .sgroup-h, .sgroup-b { padding-left: 14px; padding-right: 14px; } .sgroup-b > .rows { margin: 0 -14px; }
  .srow { align-items: flex-start; } .srow-c { padding-top: 2px; }
  .srow:has(form, .pair, .seg, select, .btn) { flex-wrap: wrap; } .srow:has(form, .pair, .seg, select, .btn) .srow-c { margin-left: auto; }
}

/* ---- Bugün, Kanallar, Videolar after the review (UI-2, 9, 10, 12, 13, 14, 16, 19, 23, 25) -------------------------------------------------- */
.trow-x > summary { list-style: none; cursor: pointer; } .trow-x > summary::-webkit-details-marker { display: none; }
.trow-x[open] > summary { display: none; } .trow-full { color: var(--muted); font-size: 12px; line-height: 1.5; }
.trow-x:not([open]) > summary:hover .trow-text { color: var(--text-2); }
.card-more { margin: 8px 0 0; } .card-more > summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 550; } .card-more > summary:hover { color: var(--text); }
.card-more p { margin-top: 6px; color: var(--text-2); font-size: 14px; }
.calm.warn { box-shadow: inset 2px 0 0 var(--warn); } .calm.warn .ic.big { color: var(--warn); }
.ozet-sub { margin: 14px 0 8px; }
.uplist { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); background: var(--surface); }
.uplist li + li { border-top: 1px solid var(--line); }
.uplist a { display: flex; align-items: center; gap: 14px; padding: 10px 14px; color: var(--text-2); } .uplist a:hover { background: var(--hover); text-decoration: none; }
.up-t { display: grid; min-width: 86px; color: var(--muted); font-size: 12.5px; } .up-t b { color: var(--text); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.up-m { display: grid; gap: 2px; flex: 1; min-width: 0; } .up-m strong { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpanel .uplist { border: 0; }
.cal { display: grid; gap: 12px; } .cal-d h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); } .dpanel .cal { padding: 4px 14px 14px; }
.dpanel .cal-d .uplist { border: 1px solid var(--line); } .cal-h { min-width: 48px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 16px 4px; color: var(--muted); font-size: 12px; }
.lg { display: inline-flex; align-items: center; gap: 6px; } .lg::before { content: ""; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--surface); }
.lg-block::before { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); } .lg-human::before { background: var(--apri-bg); border-color: var(--apri-line); }
.lg-now::before { background: transparent; border-color: var(--apri-line); } .lg-done::before { background: var(--mint-bg); border-color: var(--mint-line); }
.chfilter { display: grid; gap: 10px; margin: 0 0 18px; }
.chfilter input { width: 100%; max-width: 520px; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; }
.fchip .n { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; } .fchip:hover { border-color: var(--text); }
.fchip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); } .fchip.on .n { color: inherit; opacity: .75; }
.tile-st { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0; } .tile-st .sub { font-size: 12.5px; }
.tstatus .chip { max-width: 180px; }
.sub.old { color: var(--warn); } .sub.block { display: block; }
.stats dd.dd-s { font-size: 17px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
[hidden] { display: none !important; }
@media (max-width: 1023px) {
  .seg a, .seg button { padding: 0 11px; font-size: 12.5px; }
  .uplist a { gap: 10px; padding: 10px 12px; } .up-t { min-width: 72px; }
}
.acil-stack { display: grid; gap: 16px; } .acil-stack .now .card-big { max-width: 920px; }
@media (max-width: 1023px) { .up-m strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .pcard-t .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.dpanel-b > .btns, .dpanel-b > .note, .dpanel-b > .more { margin: 12px 16px; }
/* the settings pages never grow wider than the phone: their grid tracks shrink to the screen (long inputs and amounts wrap inside) */
.ayar-page, .sgroup-b, .srows, .svcs { grid-template-columns: minmax(0, 1fr); }
.meters { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); } .meters-mini { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.meter-l { flex-wrap: wrap; } .svc > .svc-h { flex-wrap: wrap; } .svc-key input { min-width: 0; }

/* the review fixes' panel parts (findings 40, 43, 76; UI-18): the login's code, the snoozed cards, the second factor's key and codes */
.login-code { margin-top: 2px; }
.snoozed { margin-top: 10px; } .snoozed .dlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.snoozed .dlist li > span { display: grid; gap: 2px; min-width: 0; }
.totp-secret { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; } .totp-secret .mono { font-size: 15px; letter-spacing: .04em; padding: 6px 10px; border: 1px solid var(--line); background: var(--surface-2); word-break: break-all; }
.codes { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px 12px; }
.ch-head .btn { margin-left: auto; align-self: center; } .dch-head > .btn { margin-left: 12px; align-self: center; }
.inline-form input[type=password], .inline-form input[type=text] { width: 220px; max-width: 100%; } .dch-id .chip { justify-self: start; }
@media (max-width: 600px) { .inline-form { flex-wrap: wrap; } .inline-form input[type=password], .inline-form input[type=text] { width: 100%; } .ch-head { flex-wrap: wrap; } }
.stats.s2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats div > .sub { display: block; margin-top: 2px; }
/* bulgu 81: the totals say when they hold an old reading */
.stale-note { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 12px; }
.stale-note .ic { flex: none; margin-top: 2px; width: 14px; height: 14px; color: var(--warn); }
/* UI-16: a tab bar wider than the screen fades where more tabs wait */
.seg.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.seg.more-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
.seg.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
/* UI-28: the service catalog's search */
.svc-search { margin: 0 0 12px; }
.svc-search input { width: 100%; max-width: 420px; }
/* UI-14: sortable column heads in the desktop channel table */
.dtable th .th-sort { all: unset; cursor: pointer; font: inherit; color: inherit; white-space: nowrap; }
.dtable th .th-sort:hover { color: var(--text); text-decoration: underline; }
.dtable th .th-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.dtable th .th-sort.on { color: var(--text); font-weight: 600; }
/* finding 75 / UI-19: the video itself on its page */
.vprev { margin: 0; }
.vprev video, .vprev img { display: block; width: 100%; max-width: 640px; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-sm); }
.vprev figcaption { margin-top: 6px; }
/* the held channel's line (phone): the chip and its words wrap inside the screen */
.held-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
/* finding 75: the preview inside a desktop panel keeps the panel's padding */
.dpanel-b > .vprev { padding: 12px 16px 14px; }
/* a subscription without a readable counter says why and where to look */
.svc-nometer { display: flex; gap: 6px; align-items: flex-start; }
.svc-nometer .ic { width: 14px; height: 14px; margin-top: 2px; flex: none; }
