/* أبو حسن: media company deck (DEC-415). DEC-341 palette only: #0A0A0A #FFFFFF #FDB016 #1EB789 #6163AD #F0505A and their alphas. */
.ah-deck{display:grid;gap:22px}
.ah-hero{position:relative;display:grid;grid-template-columns:200px minmax(0,1fr);gap:28px;align-items:center;padding:28px clamp(18px,3vw,36px);
 border:1px solid rgba(253,176,22,.28);border-radius:26px;overflow:hidden;
 background:radial-gradient(120% 140% at 100% 0%,rgba(253,176,22,.13),transparent 55%),radial-gradient(90% 120% at 0% 100%,rgba(97,99,173,.16),transparent 60%),#0A0A0A;
 box-shadow:0 30px 80px rgba(10,10,10,.6),inset 0 1px 0 rgba(255,255,255,.06)}
.ah-hero::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.06;background-image:radial-gradient(#FFFFFF .7px,transparent .7px);background-size:10px 10px}
.ah-emblem{width:200px;height:200px;position:relative;z-index:1}
.ah-emblem svg{width:100%;height:100%;overflow:visible}
.ah-ring{transform-origin:100px 100px}
.ah-r1{animation:ah-spin 60s linear infinite}
.ah-r2{animation:ah-spin 34s linear infinite reverse}
.ah-r3{animation:ah-spin 18s linear infinite}
.ah-core{transition:stroke .6s}
.ah-glyph{font-family:var(--owner-system-fonts,system-ui,sans-serif);font-size:44px;font-weight:700;fill:#FDB016}
.ah-emblem[data-state="working"] .ah-r3{animation-duration:6s}
.ah-emblem[data-state="working"] .ah-core{stroke:#1EB789}
.ah-emblem[data-state="working"] .ah-glyph{fill:#1EB789}
.ah-emblem[data-state="waiting"] .ah-core{animation:ah-breathe 2.6s ease-in-out infinite}
.ah-emblem[data-state="alert"] .ah-core{stroke:#F0505A}
.ah-emblem[data-state="alert"] .ah-glyph{fill:#F0505A}
.ah-emblem[data-state="idle"] .ah-r1,.ah-emblem[data-state="idle"] .ah-r2,.ah-emblem[data-state="idle"] .ah-r3{animation-duration:90s}
@keyframes ah-spin{to{transform:rotate(360deg)}}
@keyframes ah-breathe{0%,100%{stroke-width:2;filter:none}50%{stroke-width:4;filter:drop-shadow(0 0 10px rgba(253,176,22,.7))}}
.ah-voice{position:relative;z-index:1;min-width:0}
.ah-id{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin-bottom:10px;color:var(--ink-2)}
.ah-id strong{font-size:var(--t-lg);color:var(--gold);letter-spacing:.01em}
.ah-id small{color:var(--ink-3);font-size:var(--t-xs)}
.ah-greet{font-size:clamp(24px,3.2vw,34px);font-weight:700;line-height:1.35;margin-bottom:12px}
.ah-lines{display:grid;gap:10px}
.ah-lines li{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:start;gap:12px;font-size:var(--t-md);line-height:1.7;color:var(--text)}
.ah-lines li i{width:8px;height:8px;border-radius:50%;margin-top:.7em;background:var(--ink-3)}
.ah-lines li[data-tone="gold"] i{background:var(--gold);box-shadow:0 0 0 4px var(--gold-8)}
.ah-lines li[data-tone="green"] i{background:var(--green);box-shadow:0 0 0 4px var(--green-10)}
.ah-lines li[data-tone="coral"] i{background:var(--coral);box-shadow:0 0 0 4px var(--coral-10)}
.ah-go{color:var(--gold);font-size:var(--t-sm);border:1px solid var(--gold-30);border-radius:999px;padding:2px 12px;white-space:nowrap}
.ah-go:hover{background:var(--gold-8)}
.ah-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.ah-decide{display:grid;gap:2px;text-align:start;padding:16px 18px;border-radius:18px;border:1px solid var(--line-2);background:var(--panel);transition:transform .2s,border-color .2s}
.ah-decide small{color:var(--ink-3);font-size:var(--t-xs)}
.ah-decide strong{font-size:var(--t-md);line-height:1.5}
.ah-decide[data-tone="gold"]{border-color:var(--gold-30);background:linear-gradient(180deg,rgba(253,176,22,.10),rgba(253,176,22,.02))}
.ah-decide[data-tone="gold"] small{color:var(--gold)}
.ah-decide:hover{transform:translateY(-2px);border-color:var(--gold-30)}
.ah-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;align-items:start}
.ah-col{display:grid;gap:22px}
.ah-prod{display:grid;gap:10px;padding:14px 0;border-top:1px solid var(--line)}
.ah-prod:first-of-type{border-top:0}
.ah-prod header{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between}
.ah-track{display:flex;gap:0;overflow-x:auto;padding:6px 2px 4px;scrollbar-width:thin}
.ah-track li{flex:1 0 74px;display:grid;justify-items:center;gap:4px;position:relative;text-align:center;font-size:var(--t-xs);color:var(--ink-3)}
.ah-track li::before{content:"";position:absolute;top:10px;inset-inline-start:-50%;width:100%;height:2px;background:var(--line-2)}
.ah-track li:first-child::before{display:none}
.ah-track li i{position:relative;z-index:1;width:22px;height:22px;border-radius:50%;border:2px solid var(--line-2);background:#0A0A0A}
.ah-track li[data-st="done"] i{border-color:var(--green);background:var(--green)}
.ah-track li[data-st="done"]::before{background:var(--green-35)}
.ah-track li[data-st="done"] span{color:var(--ink-2)}
.ah-track li[data-st="run"] i{border-color:var(--gold);box-shadow:0 0 0 6px var(--gold-8);animation:ah-breathe 1.8s ease-in-out infinite}
.ah-track li[data-st="run"] span,.ah-track li[data-st="you"] span{color:var(--gold);font-weight:600}
.ah-track li[data-st="you"] i{border-color:var(--gold);background:var(--gold)}
.ah-track li[data-st="stop"] i{border-color:var(--coral);background:var(--coral-10)}
.ah-track li[data-st="stop"] span{color:var(--coral)}
.ah-track li[data-st="next"] i{border-color:var(--ink-2)}
.ah-track small{color:var(--ink-2);font-size:var(--t-xs)}
.ah-emps{display:grid;gap:10px}
.ah-emps-full{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.ah-emp{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.ah-emp[data-state="working"]{border-color:var(--green-35)}
.ah-emp[data-state="blocked"]{border-color:var(--coral-40)}
.ah-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-size:20px;font-weight:700;color:var(--gold);border:1.5px solid var(--gold-30);background:radial-gradient(circle at 30% 30%,rgba(253,176,22,.18),rgba(10,10,10,1) 70%)}
.ah-emp[data-state="working"] .ah-avatar{color:var(--green);border-color:var(--green-35)}
.ah-emp-body{min-width:0;display:grid;gap:4px}
.ah-emp-body p{margin:0}
.ah-emp-body small{color:var(--ink-3)}
.ah-emp-state{display:flex;flex-wrap:wrap;gap:6px}
.ah-emp details summary{cursor:pointer;color:var(--ink-3);font-size:var(--t-xs)}
.ah-res .row .chip,.ah-team .chip,.ah-file-name+.chip{flex:0 0 auto;width:auto;align-self:center}
.ah-file-name small{color:var(--ink-3)}
.ah-feed{display:grid;gap:8px}
.ah-feed li{display:grid;grid-template-columns:86px minmax(0,1fr);gap:10px;font-size:var(--t-sm);line-height:1.6}
.ah-feed time{color:var(--ink-3);font-size:var(--t-xs)}
.ah-file{position:relative;overflow:hidden;display:inline-flex;margin-top:12px}
.ah-file input{position:absolute;inset:0;opacity:0;cursor:pointer}
/* 2026-10-17: the upload bar is a real <progress> (no inline style; CSP style-src 'self') */
.ah-progress{display:block;inline-size:140px;block-size:6px;border:0;border-radius:3px;background:var(--line);overflow:hidden;appearance:none;-webkit-appearance:none;color:var(--gold)}
.ah-progress::-webkit-progress-bar{background:var(--line);border-radius:3px}
.ah-progress::-webkit-progress-value{background:var(--gold);border-radius:3px;transition:inline-size .3s}
.ah-progress::-moz-progress-bar{background:var(--gold);border-radius:3px}
.ah-version{display:grid;gap:12px;padding:16px 0;border-top:1px solid var(--line)}
.ah-version:first-child{border-top:0}
.ah-version header{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ah-version header h3{font-size:var(--t-lg);margin-inline-end:6px}
.ah-version header small{color:var(--ink-3);margin-inline-start:auto}
.ah-version video{width:min(100%,420px);aspect-ratio:9/16;max-height:72vh;border-radius:18px;background:var(--bg);border:1px solid var(--line-2);justify-self:center}
.ah-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin-top:10px}
.ah-checks li{display:grid;grid-template-columns:10px minmax(0,1fr);column-gap:10px;font-size:var(--t-sm)}
.ah-checks li i{grid-row:span 2;width:8px;height:8px;border-radius:50%;margin-top:.6em;background:var(--ink-3)}
.ah-checks li[data-tone="green"] i{background:var(--green)}
.ah-checks li[data-tone="gold"] i{background:var(--gold)}
.ah-checks li[data-tone="coral"] i{background:var(--coral)}
.ah-checks small{color:var(--ink-3);font-size:var(--t-xs)}
.ah-review{display:grid;gap:10px}
.ah-changes{display:grid;gap:12px;padding:14px;border:1px solid var(--line-2);border-radius:16px;background:var(--panel)}
.ah-changes fieldset{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
.ah-changes legend{font-weight:600;margin-bottom:6px;width:100%}
.ah-changes select{background:#0A0A0A;border:1px solid var(--line-2);border-radius:10px;padding:4px 8px;margin-inline-start:6px}
.res-table{display:grid;gap:0;font-size:var(--t-sm)}
.res-head,.res-row{display:grid;grid-template-columns:1.2fr 1fr .8fr 1fr .8fr .9fr 1.1fr;gap:10px;padding:10px 4px;border-top:1px solid var(--line);align-items:start}
.res-head{color:var(--ink-3);font-size:var(--t-xs);border-top:0}
/* 2026-10-17 fix round: only the cells are grids; a nested .unk or .chip stays inline («? مجهول» on one line) */
.res-row>span{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere;word-break:break-word}
.res-row .unk{display:inline}
.res-row .chip{justify-self:start;width:auto}
.res-row small{color:var(--ink-3);font-size:var(--t-xs);line-height:1.5}
.res-row .unk{color:var(--ink-3)}
@media (max-width:900px){
 .ah-hero{grid-template-columns:1fr;justify-items:center;text-align:center}
 .ah-emblem{width:150px;height:150px}
 .ah-voice{width:100%;text-align:start}
 .ah-grid{grid-template-columns:1fr}
 .res-head{display:none}
 .res-row{grid-template-columns:1fr 1fr;gap:6px 12px}
 .res-row>span:first-child{grid-column:1/-1}
 .ah-track li{flex:1 0 46px;font-size:var(--t-xs)}
 .ah-track li i{width:18px;height:18px}
 .ah-track li::before{top:8px}
}
@media (prefers-reduced-motion:reduce){
 .ah-ring,.ah-core,.ah-track li[data-st="run"] i{animation:none!important}
 .ah-decide{transition:none}
}
/* full-journey continuation 2026-10-04: writers' drafts and the approved package, in the version card's language */
.ah-draft{display:grid;gap:10px;padding:14px 0;border-top:1px solid var(--line)}
.ah-draft header{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ah-draft header h3{font-size:var(--t-md,var(--t-lg));margin-inline-end:6px}
.ah-draft header small{color:var(--ink-3);margin-inline-start:auto}
.ah-draft-text{white-space:pre-wrap;word-break:break-word;font:inherit;line-height:1.7;margin:0;padding:12px 14px;border:1px solid var(--line-2);border-radius:14px;max-height:46vh;overflow:auto}
/* 2026-10-19 DEC-440 (Ameer decides): the angle and the pull score above a draft, and the checker's notes fold below it (company.js writersHtml).
   The rows inside the fold are the .rows.ah-report rows the rest of the deck uses; the summary carries the verdict counts, so it may wrap on a phone */
.ah-angle,.ah-pull{display:grid;gap:2px}
.ah-angle p,.ah-pull p{margin:0}
.ah-pull .sc-bar{display:inline-block;vertical-align:middle;width:96px;margin-inline-start:8px}
details.fc-notes>summary{flex-wrap:wrap;row-gap:4px}
.fc-notes-h{margin:10px 0 0;font-size:var(--t-sm);color:var(--ink-2)}
.ah-package{display:grid;gap:8px;padding:10px 0;border-top:1px dashed var(--line-2)}
.ah-package .actions{flex-wrap:wrap}
/* ---- team directory and member pages (2026-10-08) ---- */
.team-tools{display:flex;gap:10px;align-items:center}
.team-tools input{max-width:420px}
.ah-roster{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}
.ah-member-item[hidden],.ah-dept[hidden]{display:none}
.ah-member{display:grid;grid-template-columns:44px minmax(0,1fr) 14px;gap:12px;align-items:start;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--ink);text-decoration:none;min-height:44px;height:100%;transition:border-color .15s,background .15s;scroll-margin-block:calc(var(--topbar-h,72px) + 16px) calc(var(--dock) + 16px)}
.ah-member:hover{border-color:var(--gold-30);background:var(--raised)}
.ah-member[data-state="working"]{border-color:var(--green-35)}
.ah-member[data-state="blocked"]{border-color:var(--coral-40)}
.ah-member[data-state="working"] .ah-avatar{color:var(--green);border-color:var(--green-35)}
.ah-member-body{min-width:0;display:grid;gap:4px}
.ah-member-name{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.ah-member-body small{color:var(--ink-3);font-size:var(--t-xs)}
.ah-member-body .sub{color:var(--ink-2);font-size:var(--t-xs);line-height:1.6;overflow-wrap:anywhere}
.ah-member-go{color:var(--ink-3);font-size:22px;line-height:1;align-self:center}
.ah-member:hover .ah-member-go{color:var(--gold)}
.ah-name{color:inherit;text-decoration:none}
.ah-name:hover strong{color:var(--gold)}
.ah-member-hero{display:grid;grid-template-columns:72px minmax(0,1fr);gap:18px;align-items:center;padding:20px clamp(16px,3vw,28px);border:1px solid var(--gold-30);border-radius:22px;background:radial-gradient(120% 140% at 100% 0%,rgba(253,176,22,.10),transparent 55%),var(--bg)}
.ah-member-hero .ah-avatar{width:72px;height:72px;font-size:32px}
.ah-member-hero[data-state="working"]{border-color:var(--green-35)}
.ah-member-hero[data-state="blocked"]{border-color:var(--coral-40)}
.ah-member-id{min-width:0;display:grid;gap:6px}
.ah-member-id h2{font-size:clamp(22px,2.6vw,28px)}
.ah-member-id>p{margin:0;color:var(--ink-2)}
.member-pager{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:8px;border-top:1px solid var(--line)}
.member-pager small{color:var(--ink-3)}
.more-sheet{overflow:auto}
.more-nav{display:grid;gap:6px}
.more-nav button{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:center;min-height:52px;padding:8px 12px;border:1px solid var(--line);border-radius:14px;text-align:start;color:var(--ink);background:var(--panel)}
.more-nav button span{display:grid;gap:2px;min-width:0}
.more-nav button small{color:var(--ink-3);font-size:var(--t-xs);line-height:1.5}
.more-nav button[aria-current=page]{border-color:var(--gold-30);color:var(--gold)}
@media(max-width:899px){.ah-member-hero{grid-template-columns:56px minmax(0,1fr);gap:14px}.ah-member-hero .ah-avatar{width:56px;height:56px;font-size:26px}.more-nav button small{display:none}}
.ah-report .row>span>strong,.ah-report .row>span>small{display:block}
.ah-report .row>span>small{color:var(--ink-2);font-size:var(--t-xs);line-height:1.7;margin-top:2px}
.ah-report .row>.actions{justify-content:flex-end}
.ah-report .row>.chip{justify-self:start}
@media(max-height:500px) and (min-width:600px){.more-nav{grid-template-columns:1fr 1fr}}
/* owner journey 2026-10-09: today's hunt by number with each candidate's card, the month bank groups, package checks */
.ah-digest{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ah-digest summary,.block details>summary{cursor:pointer;line-height:1.8}
.ah-digest summary>strong{display:inline-block;min-width:1.8em;text-align:center;border-radius:999px;background:var(--gold-30);margin-inline-end:6px}
.ah-topic-card{border-inline-start:3px solid var(--gold);padding:6px 12px;margin:6px 0 10px}
.ah-topic-card p{margin:4px 0;line-height:1.8}
.block details{margin:6px 0}
.ah-date{white-space:nowrap}
/* 2026-10-12 montage picker: footage that arrived by WhatsApp/S3, one full-width row per item, 44px tap targets */
.ah-intake{border:1px solid var(--line-2);border-radius:14px;padding:6px 14px 10px;margin:14px 0 4px}
.ah-intake legend{padding:0 6px;font-weight:600}
.ah-intake-item{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 0;cursor:pointer;line-height:1.6}
.ah-intake-item+.ah-intake-item{border-top:1px solid var(--line)}
.ah-intake-item input{flex:0 0 auto;width:22px;height:22px;margin:0;accent-color:var(--gold)}
.ah-intake .note{margin-top:6px}
/* 2026-10-12 whole Studio: start an episode from a calendar draft */
.cal-start{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;margin:.75rem 0 .25rem}
.cal-start .btn{min-height:44px}
.cal-start small{color:var(--ink-3)}
/* 2026-10-12 coherent partner: switch a montage effect to a licensed alternative (or back to his own) */
.sfx-alt{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .5rem;margin-top:.35rem}
.sfx-use{min-height:44px;padding:6px 14px;font-size:14px}
/* 2026-10-12 complete experience: his post -> draft decisions and the episode scope of an effect choice */
.post-acts{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;margin:.6rem 0 .25rem}
.post-acts .btn{min-height:44px;padding:6px 14px;font-size:14px}
.post-acts select,.sfx-scope select{min-height:44px;flex:0 1 26rem;min-width:0;width:100%;max-width:100%;font:inherit;padding:4px 8px}
.sfx-scope{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:.5rem 0}
/* 2026-10-17 fix round: a second line of a row that is its own sentence (never glued to the line before it) */
.row small.ln{display:block;color:var(--ink-2);font-size:var(--t-xs);line-height:1.7;margin-top:2px}
/* 2026-10-19 DEC-441 (room of seven): eight drafts, each folded under one line (writer, angle, pull, words, the star and the WhatsApp badge),
   the suggested one open. The card look stays on the article; the fold only holds it. */
.ah-drafts>details.fold.ah-fold{border-top:1px solid var(--line)}
details.fold.ah-fold>summary{flex-wrap:wrap;gap:4px 10px;padding-block:6px;color:var(--text-strong)}
details.fold.ah-fold>summary .ah-sum-name{font-weight:600}
details.fold.ah-fold>summary .ah-sum-meta{color:var(--ink-3);font-size:var(--t-xs)}
details.fold.ah-fold>summary .st[data-st=star]{font-size:var(--t-xs);color:var(--gold)}
details.fold.ah-fold>summary .ah-wa{display:inline-flex}
/* 2026-10-20 DEC-442 (Fable then Opus): the model badge of a draft the fallback wrote sits on its fold line; its sentence sits first inside the fold */
details.fold.ah-fold>summary .ah-model{display:inline-flex}
details.fold.ah-fold>.ah-draft>.ah-fallback{color:var(--ink-2);margin-block:2px 6px}
details.fold.ah-fold>.ah-draft{border-top:0;padding-block:4px 14px}
/* the summary already says who wrote it and the star, so the open card does not say them twice */
details.fold.ah-fold>.ah-draft>header>h3,details.fold.ah-fold>.ah-draft>header>.st[data-st=star]{display:none}
.ws .ah-drafts:has(>.ah-fold){display:block;overflow:visible;scroll-snap-type:none}
.ws .ah-drafts>details.fold.ah-fold{margin:0 0 var(--s-2);border-top:0;border-radius:var(--r-1);background:var(--surface-1)}
.ws .ah-drafts>details.fold.ah-fold[data-state=pick]{box-shadow:inset 0 0 0 1px var(--line-gold)}
.ws .ah-drafts>details.fold.ah-fold>summary{padding-inline:var(--s-3)}
.ws .ah-drafts>.ah-fold>.ah-draft{background:transparent;box-shadow:none}
/* 2026-10-20 DEC-444 (merge the angles): the «للدمج» box at the end of a draft's fold line with the badges beside it, the notes inside the fold,
   and the merge bar after the drafts. The word beside the box is not a label (console.js toggles the box from it, so the fold stays shut). */
details.fold.ah-fold>summary .ah-merged,details.fold.ah-fold>summary .ah-auto-chip,details.fold.ah-fold>summary .ah-rank{display:inline-flex}
details.fold.ah-fold>summary .ah-merge-pick{display:inline-flex;align-items:center;gap:6px;margin-inline-start:auto;min-height:36px;color:var(--ink-2);font-size:var(--t-xs);cursor:pointer}
.ah-merge-box{inline-size:24px;block-size:24px;margin:0;accent-color:var(--gold);cursor:pointer}
.ah-merge-box:disabled{cursor:not-allowed;opacity:.45}
.ah-merge-word{user-select:none}
details.fold.ah-fold>.ah-draft>.ah-merge-from,details.fold.ah-fold>.ah-draft>.ah-why{color:var(--ink-2);margin-block:2px 6px}
details.fold.ah-fold>.ah-draft>.ah-auto{display:grid;gap:4px;padding:8px 12px;border:1px dashed var(--line-2);border-radius:var(--r-1)}
.ah-merge{display:grid;gap:10px;margin-block:var(--s-3) 0;padding:14px 0;border-top:1px solid var(--line)}
.ah-merge h3{font-size:var(--t-md,var(--t-lg))}
.ah-merge p{margin:0}
.ah-merge .field{display:grid;gap:6px}
.ah-merge textarea{inline-size:100%;min-height:64px}
.ah-merge .ah-merge-how{color:var(--ink-2)}
.ah-merges-h{font-size:var(--t-sm,var(--t-xs));color:var(--ink-2);margin:6px 0 0}
.ah-merges{margin:0}
/* 2026-10-21 DEC-445 (the schools): the school chip right after the writer's name on the fold line, and the one legend line above the drafts */
details.fold.ah-fold>summary .ah-school{display:inline-flex}
/* 2026-10-21 r89 follow-up: the draft's level right after its school chip (a note: quiet ink, green when above them, coral on a red line) */
details.fold.ah-fold>summary .ah-level{color:var(--ink-2);font-size:var(--t-xs)}
details.fold.ah-fold>summary .ah-level[data-level=ABOVE]{color:var(--green)}
details.fold.ah-fold>summary .ah-level[data-red]{color:var(--coral)}
.ah-schools{margin:0 0 var(--s-2);color:var(--ink-2)}
.ah-schools .ah-school-def strong{color:var(--text-strong);font-weight:600}
/* 2026-10-21 DEC-449 («عدّل هنا»): his version chip on the fold line, the line above his text, the writer's text in its fold, and the editor under the text.
   While the editor is open its three fields stand in place of the text above them, so the draft reads once. */
details.fold.ah-fold>summary .ah-mine-chip{display:inline-flex}
details.fold.ah-fold>.ah-draft>.ah-mine{color:var(--ink-2);margin-block:2px 6px}
details.fold.ah-fold>.ah-draft>.ah-orig{margin-block:6px;border-top:0}
details.fold.ah-fold>.ah-draft>.ah-orig>.ah-draft-text{color:var(--ink-2)}
.ah-edit{margin-block:8px}
.ah-edit>summary{display:inline-flex;list-style:none;min-height:40px;align-items:center;cursor:pointer}
.ah-edit>summary::-webkit-details-marker{display:none}
.ah-edit[open]>summary{margin-block-end:8px}
.ah-edit-form{display:grid;gap:10px;padding:12px;border:1px solid var(--line-gold);border-radius:var(--r-1);background:var(--surface-1)}
.ah-edit-form p{margin:0}
.ah-edit-form .field{display:grid;gap:6px}
.ah-edit-form textarea{inline-size:100%;min-height:56px;line-height:1.7}
.ah-edit-form textarea[data-draft-part=body]{min-height:180px}
.ah-draft:has(>.ah-edit[open])>.ah-draft-text{display:none}
/* 2026-10-22 calm C (calm-20261022/design/CALM.md §4.5 items 4-6): a draft's fold line says the name, ★, his version, when it finished and the
   merge box; the school, level, pull, words, model, WhatsApp, merge, notes and rank chips keep their markup (keys, pins) and are said in words
   inside «ليش هالمسودة؟» instead. The action row sits right under the text; «عن الجولة» closes the room. */
details.fold.ah-fold>summary :is(.ah-school,.ah-level,.ah-sum-meta,.ah-model,.ah-wa,.ah-merged,.ah-auto-chip,.ah-rank){display:none}
details.fold.ah-fold>summary .ah-sum-time{color:var(--ink-3);font-size:var(--t-sm)}
details.fold.ah-fold>.ah-draft>details.fold.ah-why{margin-block:2px 8px}
details.fold.ah-why>.ah-facts{color:var(--ink-2);font-size:var(--t-sm)}
details.fold.ah-why>:is(.ah-angle,.ah-pull,.ah-why,.ah-merge-from){color:var(--ink-2)}
details.fold.ah-fold>.ah-draft>.ah-draft-text+.actions{margin-block:10px 4px}
details.fold.ah-round{margin-block:var(--s-3) 0}
details.fold.ah-round>.note{color:var(--ink-2)}
/* 2026-10-21 DEC-451 «شغّل باقي الزوايا» (MORE_ANGLES.md section 3): the fold of paused angles under a finished room, the line of a «باقي الزوايا» room
   and the topic's own round under it, read only */
details.fold.ah-more,details.fold.ah-base{margin-block:var(--s-3) 0}
details.fold.ah-more>.note,details.fold.ah-more>.actions{margin-block:8px 0}
.ah-more-list{margin-block:6px 0}
.ah-more-list .row{align-items:center;gap:8px}
.ah-more-pick{display:inline-flex;align-items:center;gap:8px;min-height:36px;cursor:pointer}
.ah-more-box{inline-size:24px;block-size:24px;margin:0;accent-color:var(--gold);cursor:pointer}
.ah-more-room,.ah-more-asked{color:var(--ink-2)}
details.fold.ah-base .ah-base-draft{padding-block:10px;border-top:1px solid var(--line)}
/* fix C-1 (CALM.md §4.5): the draft's «التفاصيل» under «عدّل هنا» (company.js moreFoldHtml), its P6 headings small and quiet */
details.fold.ah-notes{margin-block:var(--s-3) 0}
details.fold.ah-notes>.more-h{margin:12px 0 4px;font-size:var(--t-sm);font-weight:600;color:var(--ink-2)}
