/* rehber-ds.css — the Rehber's v5 design system (docs/ARAYUZ_ELIT_2026-10-09.md B.4), loaded after rehber.css. Tokens: a 4-px spacing scale,
   a 1.2-ratio type scale with tabular numerals, five tones (bad · human · info · ok · idle) that always come with an icon or a word, 6/10-px
   radii, a shadow only on drawers and dialogs. Components: the review queue (qhead, lane, qrow, qgroup, hero), owner-step/1 (ostep, copyf,
   flist), the review player (player, tline, moments), the drawer, the toolbar with dropdowns, the channel rows, the Keşif/Üretim cards, the
   growth explainer, the settings' new pages, the "hazırlanıyor" state. Light and dark from the same tokens; no inline style (CSP). */
:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 24px; --fs-3xl: 30px;
  --r6: 6px; --r10: 10px;
  --tone-bad: var(--bad); --tone-human: #b45f12; --tone-info: #2f5f9e; --tone-ok: var(--ok); --tone-idle: var(--muted);
  --drawer-shadow: -24px 0 48px -32px rgba(24, 27, 30, .45);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tone-human: #e3a66b; --tone-info: #8fb4e6; --drawer-shadow: -24px 0 48px -28px rgba(0, 0, 0, .8); } }
:root[data-theme="dark"] { --tone-human: #e3a66b; --tone-info: #8fb4e6; --drawer-shadow: -24px 0 48px -28px rgba(0, 0, 0, .8); }

/* five sections on the phone's tab bar */
.tabs { grid-template-columns: repeat(5, 1fr); }
.tab span { white-space: nowrap; }

/* ---------------------------------------------------------------- shared */
.stepn, .qsum, .lane-n, .lane-est, .kv5 dd, .flist-n, .mo-t, .gb-v, .rn-d strong, .cap-n strong { font-variant-numeric: tabular-nums; }
.navsel { display: block; margin: 0 0 var(--s4); }
.navsel select, .tsel select { width: 100%; height: 44px; padding: 0 36px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r6); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-md); font-weight: 550; }
.desk .navsel select, .desk .tsel select { height: 34px; font-size: var(--fs-sm); }
.seg-v5 { margin: 0 0 var(--s5); }
.seg-v5 .n { color: var(--muted); font-weight: 500; font-size: var(--fs-xs); }
.soon { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); margin: 0 0 var(--s4); border: 1px dashed var(--line-2); border-radius: var(--r10); background: var(--surface); color: var(--text-2); }
.soon > .ic { color: var(--muted); margin-top: 2px; }
.soon strong { display: block; color: var(--text); font-size: var(--fs-md); }
.soon span { font-size: var(--fs-sm); color: var(--muted); }
.soon-who { display: block; margin-top: var(--s1); font-size: var(--fs-xs); }
.vacts { display: grid; gap: var(--s2); margin-top: var(--s3); }
.vact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.vact-c { display: inline-flex; align-items: center; gap: var(--s1); color: var(--muted); font-size: var(--fs-sm); }
.vact-c .ic { width: 14px; height: 14px; }
.kv5 { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: var(--s3) var(--s4); margin: var(--s3) 0; }
.kv5 div { min-width: 0; }
.kv5 dt { color: var(--muted); font-size: var(--fs-xs); }
.kv5 dd { margin: 2px 0 0; color: var(--text); font-size: var(--fs-md); font-weight: 600; overflow-wrap: anywhere; }
.kv5-sm dd { font-size: var(--fs-sm); }
.stepn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-size: var(--fs-xs); font-weight: 650; }
h4 { margin: var(--s4) 0 var(--s2); font-size: var(--fs-sm); font-weight: 650; color: var(--text); letter-spacing: 0; }

/* ---------------------------------------------------------------- Bugün: the review queue */
.qhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s5); margin: 0 0 var(--s4); }
.qhead h1 { font-size: var(--fs-2xl); }
.desk .qhead h1 { font-size: var(--fs-3xl); font-weight: 400; letter-spacing: -.02em; }
.qsum { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px var(--s4); min-width: 220px; }
.qsum-n { font-size: var(--fs-md); color: var(--text-2); } .qsum-n strong { font-size: var(--fs-2xl); color: var(--text); font-weight: 600; margin-right: 2px; }
.qsum-m { justify-self: end; font-size: var(--fs-md); color: var(--text); font-weight: 600; }
.qsum progress { grid-column: 1 / -1; width: 100%; height: 6px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 3px; background: var(--line); overflow: hidden; }
.qsum progress::-webkit-progress-bar { background: var(--line); border-radius: 3px; }
.qsum progress::-webkit-progress-value { background: var(--mint); border-radius: 3px; } .qsum progress::-moz-progress-bar { background: var(--mint); }
.qsum progress.over::-webkit-progress-value { background: var(--apri); } .qsum progress.over::-moz-progress-bar { background: var(--apri); }
.lanef { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s5); }
.qdot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tone-idle); }
.t-bad > .qdot, .qdot.t-bad, .t-bad .hero-k .qdot { background: var(--tone-bad); }
.t-human > .qdot, .qdot.t-human, .t-human .hero-k .qdot { background: var(--tone-human); }
.t-info > .qdot, .qdot.t-info, .t-info .hero-k .qdot { background: var(--tone-info); }
.t-ok > .qdot, .qdot.t-ok { background: var(--tone-ok); }
.hero { margin: 0 0 var(--s5); padding: var(--s5); border: 1px solid var(--line-2); border-radius: var(--r10); background: var(--surface); }
.hero.t-bad { border-color: color-mix(in srgb, var(--tone-bad) 45%, var(--line-2)); box-shadow: inset 3px 0 0 var(--tone-bad); }
.hero.t-human { box-shadow: inset 3px 0 0 var(--tone-human); }
.hero-k { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s2); color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.hero-ch { margin-left: auto; font-weight: 500; } .hero-est { font-weight: 500; }
.hero-ch + .hero-est::before { content: "·"; margin-right: var(--s2); }
.hero h2 { font-size: var(--fs-xl); line-height: 1.3; margin: 0 0 var(--s2); }
.hero-t { color: var(--text-2); font-size: var(--fs-md); max-width: 72ch; }
.hero-act { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.hero-why { margin: var(--s3) 0 0; color: var(--muted); font-size: var(--fs-xs); max-width: 72ch; }
.lane { margin: 0 0 var(--s5); }
.lane-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); margin: 0 0 var(--s2); padding: 0 0 var(--s2); border-bottom: 1px solid var(--line); }
.lane-h h2 { font-size: var(--fs-lg); }
.lane-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 650; color: var(--text); }
.lane-acil .lane-n { background: var(--tone-bad); border-color: var(--tone-bad); color: #fff; }
.lane-est { color: var(--muted); font-size: var(--fs-sm); }
.lane-hint { flex-basis: 100%; color: var(--muted); font-size: var(--fs-xs); }
.desk .lane-hint { flex-basis: auto; margin-left: auto; }
.qlist { display: grid; border: 1px solid var(--line); border-radius: var(--r10); background: var(--surface); overflow: hidden; }
.qlist + .qlist { margin-top: var(--s2); }
.qrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s1) var(--s3); padding: var(--s3) var(--s4); border-top: 1px solid var(--line); align-items: start; }
.qrow:first-child { border-top: 0; }
.qrow > .qdot { margin-top: 7px; }
.qrow.kritik { background: color-mix(in srgb, var(--tone-bad) 5%, var(--surface)); }
.qmain { display: grid; gap: 2px; min-width: 0; }
.qtitle { color: var(--text); font-size: var(--fs-md); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.qmeta { display: flex; flex-wrap: wrap; gap: 0 var(--s3); color: var(--muted); font-size: var(--fs-xs); }
.qmeta > span + span::before { content: "·"; margin-right: var(--s3); color: var(--line-2); }
.qcrit { color: var(--tone-bad); font-weight: 650; }
.qsys { display: inline-flex; align-items: center; gap: 4px; } .qsys .ic { width: 12px; height: 12px; }
.qtext { color: var(--text-2); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qmore summary { cursor: pointer; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.qmore p { margin-top: var(--s1); font-size: var(--fs-sm); }
.qact { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.desk .qrow { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 10px var(--s4); }
.desk .qrow > .qdot { margin-top: 0; align-self: center; }
.desk .qact { grid-column: 3; margin-top: 0; justify-content: flex-end; flex-wrap: nowrap; }
.desk .qtext { -webkit-line-clamp: 1; }
.qact .cmd-inline { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qgroup { border-top: 1px solid var(--line); }
.qgroup:first-child { border-top: 0; }
.qgroup > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); cursor: pointer; list-style: none; }
.qgroup > summary::-webkit-details-marker { display: none; }
.qgroup > summary:hover { background: var(--surface-2); }
.qg-t { display: grid; gap: 2px; min-width: 0; } .qg-t strong { color: var(--text); font-size: var(--fs-md); }
.qg-chev .ic { width: 16px; height: 16px; color: var(--muted); transition: transform var(--t-fast); }
details[open] > summary .qg-chev .ic { transform: rotate(90deg); }
.qg-b { border-top: 1px solid var(--line); background: var(--surface-2); }
.qg-b .qrow { padding-left: var(--s6); background: transparent; }
.qg-f { display: flex; justify-content: flex-end; padding: var(--s2) var(--s4); border-top: 1px solid var(--line); }
.qfoot { display: grid; gap: var(--s2); margin: var(--s5) 0 0; }
.desk .qfoot { grid-template-columns: 1fr 1fr; }
.qfoot a { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r10); background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); font-weight: 550; }
.qfoot a:hover { text-decoration: none; border-color: var(--line-2); color: var(--text); }
.qfoot .ic { width: 16px; height: 16px; color: var(--muted); } .qfoot .chev { margin-left: auto; }

/* ---------------------------------------------------------------- owner-step/1 */
.ostep { display: grid; gap: var(--s3); }
.ostep-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); }
.ostep-t { display: block; color: var(--text); font-size: var(--fs-lg); }
.ostep-meta { display: flex; gap: var(--s3); color: var(--muted); font-size: var(--fs-xs); } .ostep-meta span { display: inline-flex; align-items: center; gap: 4px; } .ostep-meta .ic { width: 13px; height: 13px; }
.ostep-go { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.ostep-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.ostep-steps li { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-md); color: var(--text-2); }
.ostep-b h4 { margin-top: var(--s2); }
.copyfs { display: grid; border: 1px solid var(--line); border-radius: var(--r6); overflow: hidden; }
.copyf { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l b" "v b"; gap: 2px var(--s3); align-items: center; padding: var(--s2) var(--s3); border-top: 1px solid var(--line); background: var(--surface); }
.copyf:first-child { border-top: 0; }
.copyf-l { grid-area: l; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.copyf-v { grid-area: v; min-width: 0; font-family: var(--mono); font-size: var(--fs-sm); color: var(--text); overflow-wrap: anywhere; }
code.copyf-v { background: transparent; padding: 0; }
.copyf .btn { grid-area: b; }
.copyf.multi summary { cursor: pointer; font-family: var(--mono); font-size: var(--fs-sm); }
.copyf.multi pre { margin: var(--s2) 0 0; padding: var(--s2); max-height: 220px; overflow: auto; white-space: pre-wrap; background: var(--surface-2); border-radius: var(--r6); font-size: var(--fs-xs); }
.flist { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r6); overflow: hidden; }
.flist-i { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s2) var(--s3); border-top: 1px solid var(--line); background: var(--surface); }
.flist-i:first-child { border-top: 0; }
.flist-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: var(--fs-xs); font-weight: 700; }
.flist-m { display: grid; min-width: 0; } .flist-m strong { color: var(--text); font-size: var(--fs-md); overflow-wrap: anywhere; }
.flist-p { color: var(--muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ostep-mode, .ostep-done { display: flex; gap: var(--s2); align-items: flex-start; margin: 0; padding: var(--s3); border-radius: var(--r6); background: var(--surface-2); font-size: var(--fs-sm); color: var(--text-2); }
.ostep-mode .ic, .ostep-done .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.ostep-done { flex-wrap: wrap; align-items: center; } .ostep-done .ic { color: var(--tone-ok); }

/* ---------------------------------------------------------------- dialogs: the v5 head, wide (review), drawer */
.dlg-h5 { position: sticky; top: calc(var(--s5) * -1); z-index: 2; display: flex; justify-content: space-between; gap: var(--s3); align-items: flex-start; margin: calc(var(--s5) * -1) calc(var(--s5) * -1) var(--s4); padding: var(--s4) var(--s5); background: var(--surface); border-bottom: 1px solid var(--line); }
.dlg-h5 h2 { font-size: var(--fs-lg); line-height: 1.3; }
.dlg-h5 .dlg-lead { margin-top: 2px; font-size: var(--fs-sm); }
#dlg:not(.drawer) { padding: var(--s5); }
#dlg.dlg-wide { width: min(1120px, calc(100vw - 24px)); }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; border-left: 1px solid var(--line-2); box-shadow: var(--drawer-shadow); padding: 0; }
.dlg.drawer[open] { animation: drawer-in var(--t) var(--ease); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.dr-h { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s4) var(--s5); background: var(--surface); border-bottom: 1px solid var(--line); }
.dr-h h2 { font-size: var(--fs-lg); }
.dr-b { padding: var(--s4) var(--s5) var(--s6); display: grid; gap: var(--s3); }
.dr-b > p { display: flex; flex-wrap: wrap; gap: var(--s2); }
.dr-act { display: flex; flex-wrap: wrap; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line); }
@media (max-width: 1023px) {
  .drawer { inset: auto 0 0 0; width: 100vw; height: auto; max-height: 88dvh; border-left: 0; border-top: 1px solid var(--line-2); border-radius: var(--r10) var(--r10) 0 0; }
  @keyframes drawer-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  .dr-b { padding-bottom: calc(var(--s6) + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .dlg.drawer[open] { animation: none; } }

/* ---------------------------------------------------------------- the review player */
.review { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .review { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; } .review-main { position: sticky; top: 72px; } }
.player { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r6); background: #0d0f11; }
.player-none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s3); padding: var(--s5); color: #c9ced2; text-align: center; font-size: var(--fs-sm); }
.tline { position: relative; height: 28px; margin-top: var(--s3); border-radius: var(--r6); background: var(--surface-2); border: 1px solid var(--line); }
.tl-m { position: absolute; top: 3px; width: 12px; height: 20px; margin-left: -6px; padding: 0; border: 0; border-radius: 3px; background: var(--tone-human); cursor: pointer; }
.tl-m.sev-yuksek { background: var(--tone-bad); } .tl-m.sev-dusuk { background: var(--tone-idle); }
.tl-m:hover, .tl-m:focus-visible { transform: scaleY(1.15); }
.tl-w { position: absolute; top: 0; bottom: 0; width: 20%; background: color-mix(in srgb, var(--tone-info) 22%, transparent); border-left: 2px solid var(--tone-info); }
.at-0 { left: 0%; } .at-5 { left: 5%; } .at-10 { left: 10%; } .at-15 { left: 15%; } .at-20 { left: 20%; } .at-25 { left: 25%; } .at-30 { left: 30%; } .at-35 { left: 35%; } .at-40 { left: 40%; } .at-45 { left: 45%; }
.at-50 { left: 50%; } .at-55 { left: 55%; } .at-60 { left: 60%; } .at-65 { left: 65%; } .at-70 { left: 70%; } .at-75 { left: 75%; } .at-80 { left: 80%; } .at-85 { left: 85%; } .at-90 { left: 90%; } .at-95 { left: 95%; } .at-100 { left: 100%; }
.tl-w.at-85, .tl-w.at-90, .tl-w.at-95, .tl-w.at-100 { width: auto; right: 0; }
.tl-legend { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s1); color: var(--muted); font-size: var(--fs-xs); }
.lg-m, .lg-w { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--tone-human); } .lg-w { background: color-mix(in srgb, var(--tone-info) 35%, transparent); border-left: 2px solid var(--tone-info); margin-left: var(--s2); }
.review-sum { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); color: var(--muted); font-size: var(--fs-sm); } .review-sum span { display: inline-flex; gap: 4px; align-items: center; } .review-sum .ic { width: 14px; height: 14px; }
.moments { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r6); overflow: hidden; }
.moments li + li { border-top: 1px solid var(--line); }
.moments button { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; width: 100%; padding: var(--s2) var(--s3); border: 0; background: var(--surface); color: var(--text-2); font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer; }
.moments button:hover { background: var(--surface-2); }
.mo-t { font-family: var(--mono); font-size: var(--fs-xs); color: var(--text); font-weight: 600; }
.mo-w button { grid-template-columns: 76px minmax(0, 1fr); background: color-mix(in srgb, var(--tone-info) 8%, var(--surface)); }
.checks, .shorts, .qnotes, .evid, .evid2 { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.checks li { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.qnotes li, .shorts li, .evid li { display: flex; gap: var(--s2); align-items: flex-start; font-size: var(--fs-sm); }
.qnotes .ic { color: var(--tone-human); width: 16px; height: 16px; margin-top: 2px; } .evid .ic, .shorts .ic { width: 16px; height: 16px; color: var(--muted); margin-top: 2px; }
.qnotes-l { border: 1px solid var(--line); border-radius: var(--r10); background: var(--surface); gap: 0; }
.qnotes-l li { padding: var(--s3) var(--s4); border-top: 1px solid var(--line); align-items: center; } .qnotes-l li:first-child { border-top: 0; }
.qnotes-l li > span { display: grid; flex: 1; min-width: 0; } .qnotes-l .btn { margin-left: auto; }
.evid2 li { display: grid; font-size: var(--fs-sm); padding-left: var(--s3); border-left: 2px solid var(--line); }
.cmts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.cmts li { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r6); }
.cmt-h { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; } .cmt-h strong { color: var(--text); font-size: var(--fs-sm); }
.cmt-t { margin: var(--s1) 0 0; font-size: var(--fs-md); }
.cmt-d { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s2); align-items: end; margin-top: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--r6); background: var(--surface-2); }
.cmt-d .sub { grid-column: 1 / -1; font-size: var(--fs-xs); } .cmt-d p { font-size: var(--fs-sm); }

/* ---------------------------------------------------------------- Kanallar: toolbar, groups, rows */
.toolbar { display: grid; gap: var(--s2); margin: 0 0 var(--s4); }
.toolbar input[type=search] { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r6); background: var(--surface); color: var(--text); font: inherit; }
@media (min-width: 600px) { .toolbar { grid-template-columns: minmax(200px, 1fr) repeat(3, auto); align-items: center; } .toolbar .tsel select { width: auto; min-width: 150px; } }
.desk .toolbar input[type=search] { height: 34px; font-size: var(--fs-sm); }
.cgroup { margin: 0 0 var(--s3); border: 1px solid var(--line); border-radius: var(--r10); background: var(--surface); overflow: hidden; }
.cgroup > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); cursor: pointer; list-style: none; }
.cgroup > summary::-webkit-details-marker { display: none; }
.cgroup > summary:hover { background: var(--surface-2); }
.cg-t { display: grid; gap: 2px; min-width: 0; } .cg-t strong { color: var(--text); font-size: var(--fs-lg); } .cg-t .sub { font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-s { display: flex; flex-wrap: wrap; gap: var(--s1); justify-content: flex-end; }
.cg-b { border-top: 1px solid var(--line); }
.cgroup-flat .cg-b { border-top: 0; }
.cg-f { padding: var(--s2) var(--s4); border-top: 1px solid var(--line); background: var(--surface-2); font-size: var(--fs-xs); }
.cg-f .grp-h { margin: 0; padding: 0; border: 0; background: transparent; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); }
.cg-f .grp-t { display: flex; flex-wrap: wrap; gap: 0 var(--s3); } .cg-f .grp-t .sub { font-size: var(--fs-xs); }
.cg-f .grp-t .sub:first-child, .cg-f .grp-t .sub:nth-child(2) { display: none; }
.cg-f .grp-b { display: flex; gap: var(--s2); }
.crow { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "av m m" "av s n"; gap: 2px var(--s3); align-items: center; padding: 10px var(--s4); border-top: 1px solid var(--line); color: var(--text-2); }
.crow:first-child { border-top: 0; }
.crow:hover { text-decoration: none; background: var(--surface-2); }
.crow:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.crow .av { grid-area: av; } .crow-m { grid-area: m; display: grid; min-width: 0; } .crow-s { grid-area: s; } .crow-n { grid-area: n; color: var(--muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow-m strong { color: var(--text); font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .crow-m .sub { font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow .chev { display: none; }
@media (min-width: 900px) {
  .crow { grid-template-columns: auto minmax(180px, 1.4fr) minmax(150px, auto) minmax(0, 1fr) auto; grid-template-areas: "av m s n c"; }
  .crow-n { font-size: var(--fs-sm); } .crow .chev { display: block; grid-area: c; width: 16px; height: 16px; color: var(--muted); }
}
/* Üretim › Videolar: one video a line (title and channel · step · age; the stage bar from 900 px; the state) */
.vlines { border: 1px solid var(--line); border-radius: var(--r10); background: var(--surface); overflow: hidden; }
.fold .vlines { margin-top: var(--s2); }
.vline { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "m s"; gap: 2px var(--s3); align-items: center; padding: 10px var(--s4); border-top: 1px solid var(--line); color: var(--text-2); }
.vline:first-child { border-top: 0; }
.vline:hover { text-decoration: none; background: var(--surface-2); }
.vline:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.vl-m { grid-area: m; display: grid; min-width: 0; } .vl-s { grid-area: s; } .vl-p { display: none; }
.vl-m strong { color: var(--text); font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vl-m .sub { font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vline .chev { display: none; }
@media (min-width: 900px) {
  .vline { grid-template-columns: minmax(0, 1.6fr) minmax(140px, 1fr) minmax(140px, auto) auto; grid-template-areas: "m p s c"; }
  .vl-p { display: block; grid-area: p; } .vline .chev { display: block; grid-area: c; width: 16px; height: 16px; color: var(--muted); }
}
/* Bildirimler: the state at a glance */
.notify-kv { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r10); background: var(--surface); }

/* ---------------------------------------------------------------- Keşif / Üretim cards */
.xlist { display: grid; gap: var(--s3); }
@media (min-width: 1100px) { .xlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.xcard { display: grid; gap: var(--s2); align-content: start; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r10); background: var(--surface); }
.xcard header { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; } .xcard header strong { color: var(--text); font-size: var(--fs-md); margin-right: auto; }
.xcard p { font-size: var(--fs-sm); }
.xfacts { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); color: var(--muted); } .xfacts span { display: inline-flex; gap: 4px; align-items: center; } .xfacts .ic { width: 13px; height: 13px; }
.xmore summary { cursor: pointer; color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; } .xmore[open] summary { margin-bottom: var(--s2); }
.vwrap { display: grid; } .vnote { display: flex; gap: var(--s2); align-items: center; margin: 0; padding: 4px var(--s4) var(--s2); color: var(--tone-human); font-size: var(--fs-xs); } .vnote .ic { width: 13px; height: 13px; }

/* ---------------------------------------------------------------- Rakamlar: why it grew */
.growth { margin: 0 0 var(--s5); }
.gcard { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r10); background: var(--surface); }
.gcard + .gcard { margin-top: var(--s3); }
.gcard header { display: grid; gap: 2px; } .gcard header strong { color: var(--text); font-size: var(--fs-md); }
.gsum { margin: var(--s2) 0 0; font-size: var(--fs-md); color: var(--text); }
.ggrid { display: grid; gap: var(--s2) var(--s5); }
@media (min-width: 800px) { .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gbars, .glist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.gbars li { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(80px, 1.4fr) auto; gap: var(--s2); align-items: center; font-size: var(--fs-sm); }
.gbars progress { width: 100%; height: 8px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 4px; background: var(--line); overflow: hidden; }
.gbars progress::-webkit-progress-bar { background: var(--line); } .gbars progress::-webkit-progress-value { background: var(--tone-info); } .gbars progress::-moz-progress-bar { background: var(--tone-info); }
.gb-v { color: var(--text); font-weight: 600; font-size: var(--fs-xs); }
.glist { counter-reset: g; } .glist li { display: flex; justify-content: space-between; gap: var(--s2); font-size: var(--fs-sm); padding: 2px 0; border-bottom: 1px dashed var(--line); }

/* ---------------------------------------------------------------- Ayarlar: grouped menu, renewals, accounts, providers, languages, machines */
.am-g { margin: var(--s4) 0 var(--s1); padding: 0 10px; color: var(--muted); font-size: var(--fs-xs); font-weight: 650; }
.ayar-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); margin: 0 0 var(--s3); }
.ayar-top .navsel { margin: 0; flex: 1 1 200px; max-width: 280px; }
.renew, .accs, .chain { list-style: none; margin: 0; padding: 0; display: grid; }
.renew li, .accs li, .chain li { display: grid; gap: var(--s1) var(--s3); align-items: center; padding: var(--s3) 0; border-top: 1px solid var(--line); }
.renew li:first-child, .accs li:first-child, .chain li:first-child { border-top: 0; }
.renew li { grid-template-columns: 84px minmax(0, 1fr) auto; }
.rn-d, .rn-m, .acc-m, .ch-m { display: grid; min-width: 0; } .rn-d strong { color: var(--text); font-size: var(--fs-md); } .rn-m strong, .acc-m strong, .ch-m strong { color: var(--text); font-size: var(--fs-md); }
.renew li.soon3 .rn-d strong { color: var(--tone-human); }
.accs li { grid-template-columns: minmax(0, 1fr) auto; }
@media (min-width: 700px) { .accs li { grid-template-columns: minmax(0, 1.4fr) minmax(160px, 1fr) auto auto; } }
.am { display: grid; gap: 2px; font-size: var(--fs-xs); color: var(--muted); }
.am progress { width: 100%; height: 6px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 3px; background: var(--line); overflow: hidden; }
.am progress::-webkit-progress-bar { background: var(--line); } .am progress::-webkit-progress-value { background: var(--mint); } .am progress::-moz-progress-bar { background: var(--mint); }
.am progress.warn::-webkit-progress-value { background: var(--apri); } .am progress.warn::-moz-progress-bar { background: var(--apri); }
.am progress.crit::-webkit-progress-value { background: var(--tone-bad); } .am progress.crit::-moz-progress-bar { background: var(--tone-bad); }
.chain li { grid-template-columns: auto minmax(0, 1fr) auto; }
.ch-t { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); min-width: 0; } .ch-t strong { overflow-wrap: anywhere; }
/* the guard desk's rows: the owner's "done" buttons go under the text, never squeezed beside it */
.renew li > :nth-child(n+4), .renew li > .vacts { grid-column: 2 / -1; justify-self: start; }
.rn-m strong { overflow-wrap: anywhere; }
.accs li > .vacts { grid-column: 1 / -1; }
.renew .vacts, .accs .vacts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: 0; }
.certs { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; }
.certs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1) var(--s3); align-items: center; padding: var(--s2) 0; border-top: 1px solid var(--line); }
.certs li:first-child { border-top: 0; }
.cert-m { display: grid; min-width: 0; } .cert-m strong { color: var(--text); font-size: var(--fs-md); }
.sub.block { display: block; }
.chain li.off .ch-m { opacity: .55; }
.ch-a { display: flex; align-items: center; gap: var(--s1); }
.ch-a .btn:nth-child(1) .ic { transform: rotate(90deg); } .ch-a .btn:nth-child(2) .ic { transform: rotate(90deg); }
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s2); margin-top: var(--s3); }
.lang { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--r6); background: var(--surface); cursor: pointer; }
.lang.on { border-color: var(--text); } .lang > span { display: grid; } .lang strong { color: var(--text); font-size: var(--fs-sm); } .lang .sub { font-size: var(--fs-xs); }
.lang input { margin-top: 3px; }
.mcards { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .mcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mcard { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r10); background: var(--surface); }
.mcard header { display: flex; justify-content: space-between; gap: var(--s2); align-items: center; } .mcard header strong { color: var(--text); }
.capbox { display: grid; gap: var(--s3); }
@media (min-width: 700px) { .capbox { grid-template-columns: 120px minmax(0, 1fr); align-items: start; } .capbox > .note, .capbox > .ok-line, .capbox > .vacts { grid-column: 1 / -1; } }
.cap-n { display: grid; justify-items: start; } .cap-n strong { font-size: var(--fs-3xl); font-weight: 400; color: var(--text); line-height: 1; }
.capbox.over .cap-n strong { color: var(--tone-bad); }

/* the desktop side menu at 1024–1279 px: icons only, so the content keeps its width (E-24) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .desk { --side-w: 72px; }
  .desk .dtop-brand .brand span, .desk .dnav span:not(.nb) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .desk .dnav { justify-content: center; padding: 0; height: 40px; }
  .desk .dnav .nb { position: absolute; top: 2px; right: 6px; margin: 0; }
  .desk .dtop-brand { justify-content: center; padding: 0; }
}

/* the phone: hints and the hero's head wrap instead of squeezing (C-QA) */
.hint { border-radius: var(--r10); flex-wrap: wrap; }
.hint div { min-width: 180px; }
@media (max-width: 599px) {
  .hint > .btn { flex: 1 1 100%; }
  .hero { padding: var(--s4); }
  .hero-k { flex-wrap: wrap; }
  .hero-ch { margin-left: 0; flex-basis: 100%; padding-left: 16px; font-size: var(--fs-xs); }
  .hero-est { font-size: var(--fs-xs); }
  .hero-ch + .hero-est::before { content: none; }
  .hero-act .btn { flex: 1 1 auto; }
}
.dcrumbs h1 { line-height: 1.5; }
.page-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin: 0 0 var(--s4); }
.vopt { color: var(--text); font-size: var(--fs-sm); }
.lane-fold > summary { cursor: pointer; list-style: none; }
.lane-fold > summary::-webkit-details-marker { display: none; }
.lane-fold > summary .qg-chev { margin-left: auto; }
.lane-fold > summary .lane-hint { order: 9; }
.lane-fold:not([open]) > summary { border-bottom-style: dashed; }
@media (max-width: 599px) {
  .flist-i { grid-template-columns: auto minmax(0, 1fr); }
  .flist-a { grid-column: 2; }
  .copyf { grid-template-areas: "l l" "v b"; }
}
.dlg-h5 h2:focus, .dr-h h2:focus { outline: none; }
