/* The Werkstatt — ported from core/werkstatt/mockups/werkstatt.html (lines 3–497),
   the editor's chrome only: the prototype's own site (.hdr, .band, .hero, …)
   is not here, because the real page is drawn by Astro in the canvas, and the
   role switch is gone. Values are the mockup's; where this file adds a rule
   the comment says why. Light is the default, [data-theme=dark] per device. */

/* Figtree, bundled (fonts/, SIL OFL 1.1 -- fonts/OFL.txt): the mockup loads it from
   Google Fonts, which the editor's CSP (font-src 'self') does not allow (C7). */
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 900;font-display:swap;src:url("/bearbeiten/app/fonts/figtree-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 900;font-display:swap;src:url("/bearbeiten/app/fonts/figtree-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  /* editor chrome (1a) */
  /* SPEC D231 (the owner's colours, 2026-11-28, „Klar“; replaces D219's salmon): a cool light ground,
     white cards, near-black ink, one blue accent for what a person does (the main button, links,
     selection, add rows). Every pair is contrast-checked: text 4.5:1, marks 3:1. */
  --ink:#141b24; --muted:#44505e; --faint:#566271; --ghost:#8a95a3; --line:#e1e6ec; --line-soft:#edf1f5; --dash:#c5ced8; --panel:#fff; --hover:#edf2f7; --off:#dbe2ea; --bg:#f4f6f9;
  --blue:#1d5bd6; --violet:oklch(0.55 0.18 300); --green:#1b7a45; --grey:oklch(0.76 0.01 260); --orange:oklch(0.7 0.15 55);
  --blue-ring:rgba(29,91,214,.22); --green-soft:color-mix(in srgb,var(--green) 8%,transparent); --blue-soft:rgba(29,91,214,.08); --green-ring:color-mix(in srgb,var(--green) 25%,transparent); --on-soft:#f8fafc; --shadow-lift:0 10px 24px rgba(16,24,40,.14); --font:var(--efont);
  --shadow-pop:0 16px 40px rgba(16,24,40,.14); --efont:'Figtree',system-ui,sans-serif; --mono:ui-monospace,Menlo,Consolas,monospace;
  --red:#c62828; --radius:12px;
  /* accent *text* (add rows, seams, links): 4.5:1 at least on --bg and white (W11, axe). Lines and fills keep --blue. */
  --blue-ink:#1a4eb8;
  /* the main action of a form or screen is the accent (D231), its text on it */
  --primary:var(--blue); --on-primary:#fff;
  /* one colour per function, in its icon (D219, D231): Beitrag, Termin, Datei, Hinweis, Person, Seite, Preise, Ordner */
  --c-beitrag:#b23a0a; --c-termin:#13703a; --c-datei:#8f5a00; --c-hinweis:#b4235f; --c-person:#4f46e5; --c-seite:#0c6a84; --c-preis:#8a5a2b; --c-folder:#8f5a00;
  /* motion (owner, 2026-11-28): UI states 120-220 ms, ease-out, no bounce; only when something appears */
  --ease:cubic-bezier(.2,.8,.2,1); --t-press:120ms; --t-state:180ms; --t-sheet:220ms;
}
/* „Dunkel“ (D231): per device, [data-theme=dark] */
:root[data-theme="dark"]{ color-scheme:dark; --blue:#86aeff; --blue-ink:#a3c1ff; --blue-ring:rgba(134,174,255,.3); --blue-soft:rgba(134,174,255,.14); --ink:#eef0f3;
  --primary:#86aeff; --on-primary:#0b1424; --red:#ff8a80; --green:#6fd69a;
  --c-beitrag:#ff9e70; --c-termin:#74d69e; --c-datei:#e8c066; --c-hinweis:#f58fbd; --c-person:#a9c4f5; --c-seite:#63d3c9; --c-preis:#d8a873; --c-folder:#e8c066; --muted:#bcc3cc; --faint:#a1aab5; --ghost:#77808b; --line:#2d3238; --line-soft:#262a30; --dash:#474e58; --panel:#1c1f24; --hover:#262b32; --off:#3a414a; --bg:#111316; --on-soft:#21252b; --grey:oklch(0.5 0.01 260); --shadow-pop:0 16px 40px rgba(0,0,0,.6); }
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.4 var(--efont);-webkit-font-smoothing:antialiased;overflow:hidden}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
/* Phones: no grey flash on a tap, no font inflation in landscape, and no
   pull-to-refresh or page bounce behind the Werkstatt's own scroll areas.
   Controls react at once (no double-tap wait) and their labels are not
   selected by a long press; text stays selectable. Every :hover rule in this
   file sits under (hover:hover) and (pointer:fine), or a tap leaves it on. */
html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;text-size-adjust:100%;overscroll-behavior:none}
button,a,[role=button],label,select,summary{touch-action:manipulation}
button,[role=button],[role=tab],summary{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
/* Press feedback on touch down, not on release: buttons shrink a little, rows tint. */
.btn-dark,.btn-line,.btn-text,.icon,.fab,.chip{transition:transform var(--t-press) var(--ease)}
:is(.btn-dark,.btn-line,.btn-text,.icon,.fab,.chip):not(:disabled):active{transform:scale(.97)}
:is(.list .row,.recent .rrow,.pop .erow,.pop button.mvrow,.ptree .pt-row,.pop .asheet button,.pop .selopt,.menu button):not(:disabled):active{background:var(--hover)}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.skip{position:absolute;left:8px;top:-40px;z-index:100;background:var(--ink);color:var(--panel);padding:8px 12px;border-radius:8px;font-weight:600} .skip:focus{top:8px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.btn-dark{height:36px;padding:0 16px;display:inline-flex;align-items:center;gap:8px;border-radius:8px;background:var(--primary);color:var(--on-primary);font-size:14px;font-weight:600;white-space:nowrap}
.btn-dark:disabled{opacity:.35;cursor:default} .btn-dark.sm{height:34px;padding:0 14px}
.btn-text{height:34px;padding:0 14px;display:inline-flex;align-items:center;border-radius:8px;font-size:14px;color:var(--muted)} @media (hover:hover) and (pointer:fine){.btn-text:hover{background:var(--hover)}}
.btn-line{height:36px;padding:0 14px;display:inline-flex;align-items:center;gap:8px;border-radius:8px;border:1px solid var(--line);font-size:14px;font-weight:500;background:var(--panel)} @media (hover:hover) and (pointer:fine){.btn-line:hover{background:var(--hover)}} .btn-line.on{background:var(--ink);color:var(--panel);border-color:var(--ink)}
.ico{flex:none;display:block}

/* ---- editor shell ---- */
.app{height:100%;display:grid;grid-template-rows:auto 1fr}
/* I6, inhalt.html .top: one row, 48 px with its border; the school's name is the first thing in it */
.top{height:48px;background:var(--panel);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:4px;padding:0 16px;position:relative;z-index:50;white-space:nowrap}
.top button{white-space:nowrap}
@media (max-width:1479px){.top .sname{display:none}}
/* inhalt.html lines 31-33: the header's buttons are smaller than the editor's general ones */
.top .btn-line{height:32px;padding:0 12px;font-size:13px;font-weight:400;gap:6px}
.top .btn-dark{height:34px;padding:0 14px}
.top .btn-text{padding:0 10px;font-size:13px}
/* the page's h1 stays for the outline and the screen reader; the mockup draws only the school's name */
.top h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
.top .sname{font-size:13px;color:var(--muted);margin-right:12px;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.sp{flex:1}
/* the mockup's inline `style="position:relative"` wrappers, as classes (no inline style in the app) */
.mwrap{position:relative} .mwrap.row{display:flex}
.menu{position:absolute;top:48px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-pop);padding:6px;min-width:220px;display:none;flex-direction:column;z-index:60}
.menu.open{display:flex}
.menu.end{right:0}
.menu button{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;text-align:left;font-size:14px}
@media (hover:hover) and (pointer:fine){.menu button:hover{background:var(--hover)}} .menu button:disabled{color:var(--ghost);cursor:default} @media (hover:hover) and (pointer:fine){.menu button:disabled:hover{background:none}} .menu button small{color:var(--muted);font-size:12px;margin-left:auto}
.menu .hd{font-size:11px;color:var(--faint);text-transform:uppercase;letter-spacing:.06em;padding:8px 10px 4px}
.views{display:flex;gap:4px;margin-right:6px;flex:none}
/* „Mehr ▾“ holds a phone's tabs beyond the fourth (app.js syncMore, SPEC D154): only below 820 px */
.top .more{display:none} #btnMore{display:inline-flex;align-items:center;gap:5px} #btnMore .caret{font-size:10px;flex:none} #btnMore .n{flex:none}
.vtab{height:32px;padding:0 12px;border-radius:8px;font-size:14px;color:var(--muted)} @media (hover:hover) and (pointer:fine){.vtab:hover{background:var(--hover)}} .vtab[aria-current="page"]{background:var(--primary);color:var(--on-primary);font-weight:600} @media (hover:hover) and (pointer:fine){.vtab[aria-current="page"]:hover{background:var(--ink);color:var(--panel);font-weight:600}}
.seg2{display:flex;border:1px solid var(--line);border-radius:8px;padding:2px;gap:2px;background:var(--panel)}
.seg2 button{padding:5px 12px;border-radius:6px;font-size:14px;color:var(--muted)} .seg2 button.on{background:var(--primary);color:var(--on-primary);font-weight:600}
.seg2.hidden{display:none}
.modebar{display:none;align-items:center;gap:14px;height:34px;padding:0 20px;background:var(--ink);color:var(--panel);font:13px var(--efont);position:sticky;top:0;z-index:6}
body.edit .modebar{display:flex}
.modebar b{font-weight:600} .modebar .m{opacity:.75}
.modebar .mb-say{display:flex;align-items:center;gap:14px;min-width:0;flex:1}
.modebar .mb-btn{display:none;align-items:center;gap:4px;font:inherit;font-weight:600;color:inherit;background:rgba(255,255,255,.12);border:0;border-radius:7px;padding:3px 9px;cursor:pointer;flex:none} @media (hover:hover) and (pointer:fine){.modebar .mb-btn:hover{background:rgba(255,255,255,.22)}}
.modebar .mb-info{display:inline-flex}
.modebar.post .mb-btn{display:none}
.icon{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:6px;color:var(--ink)} @media (hover:hover) and (pointer:fine){.icon:hover{background:var(--hover)}} .icon:disabled{color:var(--ghost);cursor:default;background:none}
.icon.narrow{width:28px}
#menuUndo{min-width:300px}
#menuUndo button{font-size:13px} #menuUndo button.done{color:var(--faint)} #menuUndo .hd{display:flex;justify-content:space-between}
.chg li.rm{opacity:.45;text-decoration:line-through}
.chg li .was{display:block;font-size:12px;color:var(--faint)}
.lock{position:fixed;inset:0;z-index:200;background:rgba(20,20,20,.55);display:none;align-items:center;justify-content:center;padding:20px}
.lock.open{display:flex} .lock .box{background:var(--panel);color:var(--ink);border-radius:14px;padding:26px;width:min(440px,100%);display:flex;flex-direction:column;gap:14px;font:14px/1.45 var(--efont);box-shadow:var(--shadow-pop)}
.lock h2{font-size:18px;margin:0} .lock .code{display:flex;gap:8px} .lock .code input{font:600 22px var(--mono);letter-spacing:.3em;text-align:center;width:150px;border:1px solid var(--line);border-radius:8px;padding:8px;background:var(--panel);color:var(--ink)}
.lock .r{display:flex;gap:8px;justify-content:flex-end}
/* the lock's error line (the mockup's prototype accepts every code) */
.lock .err{font-size:13px;color:var(--red)} .lock .err:empty{display:none}
.lock .small{font-size:12px;color:var(--muted)}
.timer{font-size:12px;color:var(--muted);white-space:nowrap}
.badge{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;padding:2px 7px;border-radius:999px;background:var(--hover);color:var(--ink);width:max-content}
.badge.warn{background:oklch(0.62 0.16 50 / 0.15);color:oklch(0.45 0.16 50)} .badge.bad{background:oklch(0.55 0.2 25 / 0.12);color:oklch(0.45 0.2 25)} .badge.ok{background:oklch(0.55 0.13 160 / 0.14);color:oklch(0.4 0.13 160)}

/* ---- home and the other full views ---- */
.home{position:absolute;inset:0;background:var(--bg);z-index:30;display:none;overflow:auto;font:14px var(--efont);color:var(--ink)}
/* A short list (Beiträge, Hinweise) neither moves the page sideways (the scrollbar's room is kept)
   nor lifts the „Fertig“ band off the bottom (owner, 2026-10-04): the band takes what is left. */
.home.open{display:flex;flex-direction:column} @media (min-width:900px){.home{scrollbar-gutter:stable}} .home.open>*{flex:none;width:100%} .home.open>.donebar{margin-top:auto}
.home .wrap{max-width:900px;margin:0 auto;padding:36px 24px 60px;display:flex;flex-direction:column;gap:28px}
.home .wrap.wide{max-width:1560px} /* Home, Inhalt, Dateien, Zugänge: wide screens used (owner, 2026-11-10) */
.home .two{display:flex;gap:20px;align-items:flex-start} .home .two>.grow{flex:1;min-width:0}
.home h2{font-size:22px;margin:0} .home .lead{color:var(--muted);margin-top:4px}
.home h3{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 10px;font-weight:600}
.qa{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.qa button{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 14px;text-align:left;display:flex;align-items:center;gap:12px;min-height:68px}
@media (hover:hover) and (pointer:fine){.qa button:hover{border-color:var(--ink)}} .qa button b{font-size:15px}
.qa button.big{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.qa .hic{width:28px;height:28px;flex:none;display:grid;place-items:center;color:var(--c,var(--ink))}
.qa .big .hic{color:var(--on-primary)}
.t-beitrag{--c:var(--c-beitrag)} .t-termin{--c:var(--c-termin)} .t-datei{--c:var(--c-datei)} .t-hinweis{--c:var(--c-hinweis)} .t-person{--c:var(--c-person)} .t-seite{--c:var(--c-seite)} .t-preis{--c:var(--c-preis)}
.hrow{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:flex;align-items:center;gap:14px}
.hrow .tx{flex:1} .hrow .tx b{display:block} .hrow .tx span{font-size:13px;color:var(--muted)}
.hrow .btn-line{height:32px;font-size:13px}
.stage{position:relative;overflow:hidden;display:grid;grid-template-columns:auto 1fr auto auto}
/* The main area keeps the wide column where the tree is not shown (Home, Inhalt, …): in the tree's
   narrow one a popover anchored there -- „Beitrag schreiben“ -- was cut off at its edge. */
@media (min-width:821px){.stage > .frame{grid-column:2}}
/* The page tree (pagetree.js, plan A1b): the Website tab's left column; not on a phone yet (A4). */
.ptree{width:280px;background:var(--panel);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;overflow:hidden}
.ptree[hidden]{display:none}
.ptree .pt-head{padding:12px 12px 6px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px} .ptree .pt-head h2{margin:0;font-size:15px;font-weight:600}
.ptree .pt-fold,.ptree .pt-unfold{display:grid;place-items:center;width:30px;height:30px;border:0;background:none;border-radius:7px;color:var(--muted);cursor:pointer;flex:none} @media (hover:hover) and (pointer:fine){.ptree .pt-fold:hover,.ptree .pt-unfold:hover{background:var(--line);color:var(--ink)}}
.ptree .pt-unfold{display:none}
@media (min-width:821px){ .ptree.col{width:44px;align-items:center;padding-top:8px} .ptree.col > :not(.pt-unfold){display:none} .ptree.col > .pt-unfold{display:grid} }
.ptree .pt-search{display:flex;align-items:center;gap:6px;margin:0 10px 6px;padding:0 8px;height:32px;border:1px solid var(--line);border-radius:8px;color:var(--faint)}
.ptree .pt-q{border:0;outline:0;flex:1;min-width:0;background:none;font:inherit;font-size:13px;color:var(--ink)}
.ptree .pt-search:focus-within{outline:2px solid var(--blue);outline-offset:1px}
.ptree .pt-list{flex:1;overflow:auto;padding:0 6px 12px}
.ptree .pt-gh{display:flex;align-items:baseline;gap:8px;padding:14px 10px 4px;font-size:11px;font-weight:600;color:var(--faint);text-transform:uppercase;letter-spacing:.06em}
.ptree .pt-gn{margin-left:auto;text-transform:none;letter-spacing:0;font-weight:400} .ptree .pt-gn.full{color:var(--red);font-weight:600}
.ptree .pt-row{display:flex;align-items:center;gap:3px;min-height:32px;padding-right:6px;border-radius:7px;cursor:pointer;position:relative;font-size:14px}
@media (hover:hover) and (pointer:fine){.ptree .pt-row:hover{background:var(--hover)}}
.ptree .pt-row.cur{background:var(--blue-soft)} .ptree .pt-row.cur::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:3px;border-radius:2px;background:var(--blue)}
.ptree .pt-row:focus-visible{outline-offset:-2px}
.ptree .pt-caret{width:20px;height:24px;display:grid;place-items:center;color:var(--faint);border-radius:5px;flex:none} @media (hover:hover) and (pointer:fine){.ptree .pt-caret:hover{background:var(--off)}}
.ptree .pt-caret .ico{transition:transform .12s} .ptree .pt-caret.open .ico{transform:rotate(90deg)} .ptree .pt-caret.none{visibility:hidden}
.ptree .pt-ic{color:var(--muted);flex:none;display:grid} .ptree .pt-ic.ch{color:var(--green)} .ptree .pt-row.cur .pt-ic{color:var(--blue-ink)}
.ptree .pt-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:3px}
.ptree .pt-t mark{background:oklch(0.9 0.12 95);color:inherit;border-radius:2px}
.ptree .pt-row.hid .pt-t,.ptree .pt-row.hid .pt-ic{color:var(--ghost)}
.ptree .pt-marks{display:flex;align-items:center;gap:4px;flex:none;color:var(--faint)}
.ptree .pt-dot{width:7px;height:7px;border-radius:50%;background:var(--blue)}
.ptree .pt-new{font-style:normal;font-size:10px;font-weight:700;padding:1px 5px;border-radius:5px;background:var(--green-soft);color:oklch(0.42 0.11 160);text-transform:uppercase}
.ptree .pt-n,.ptree .pt-where{font-size:12px}
.ptree .pt-empty{color:var(--faint);padding:12px 10px;margin:0}
.ptree .pt-row[draggable=true]{cursor:grab} .ptree .pt-row.dragging{opacity:.45}
.ptree .pt-row.drop-in{background:var(--blue-soft);box-shadow:inset 0 0 0 2px var(--blue)} .ptree .pt-gh.drop-in{background:var(--blue-soft);color:var(--blue-ink);border-radius:7px}
/* The move dialog (pagetree.js, A2b): before and after, then what changes. */
.pt-move .box{width:min(620px,100%)}
.pt-move h2{margin:0;font-size:18px}
.pt-cmp{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:start}
.pt-cap{font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--faint);margin-bottom:4px}
.pt-arr{color:var(--faint);font-size:20px;align-self:center;padding-top:18px}
.pt-mt{font-size:13px;border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:var(--bg)}
.pt-mt .ln{display:flex;gap:6px;align-items:center;padding:2px 0;min-width:0} .pt-mt .ln span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pt-mt .me{font-weight:700;color:var(--blue-ink)} .pt-mt .nw{font-weight:700;color:oklch(0.42 0.11 160)} .pt-mt .dim{color:var(--faint)}
.pt-cons{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.pt-cons li{display:flex;gap:10px;align-items:flex-start;font-size:13px} .pt-cons li > .ico{margin-top:2px;color:var(--muted)}
.pt-cons code{font-size:12px} .pt-cons small,.pt-chk small{color:var(--muted)}
.pt-chk{display:flex;gap:8px;align-items:flex-start;font-size:13px} .pt-chk input{margin-top:3px}
@media (max-width:620px){.pt-cmp{grid-template-columns:1fr}.pt-arr{display:none}}
/* A row's ⋯ and its menu (pagetree.js, A2c). */
.ptree .pt-more{margin-left:auto;display:none;place-items:center;width:24px;height:24px;border-radius:6px;color:var(--muted);flex:none}
.ptree .pt-row:focus .pt-more,.ptree .pt-row.cur .pt-more{display:grid} @media (hover:hover) and (pointer:fine){.ptree .pt-row:hover .pt-more{display:grid}} @media (hover:hover) and (pointer:fine){.ptree .pt-more:hover{background:var(--line);color:var(--ink)}}
.ptree .pt-marks + .pt-more{margin-left:4px}
.ptree .pt-row:has(.pt-ren) .pt-more,.ptree .pt-row:has(.pt-ren) .pt-info{display:none}
.ptree .pt-info{display:none;place-items:center;width:24px;height:24px;border-radius:6px;color:var(--muted);flex:none}
.ptree .pt-row:focus .pt-info,.ptree .pt-row.cur .pt-info{display:grid} @media (hover:hover) and (pointer:fine){.ptree .pt-row:hover .pt-info{display:grid}} @media (hover:hover) and (pointer:fine){.ptree .pt-info:hover{background:var(--line);color:var(--ink)}}
/* The Seiteninfo and „Neue Seite“ (pageinfo.js, A3): a column right of the canvas. */
.pinfo{width:360px;border-left:1px solid var(--line);background:var(--panel);overflow:auto;padding:0 0 24px;font-size:14px}
/* D165: the right column is always there; the Gestaltung panel (the operator's) takes its place while open. */
.stage:has(> .gpanel.open) > .pinfo{display:none}
/* The settings sheets (ui.js popover, kinds block · row · chrome) open here, over the Seiteninfo (D165, plan E2). */
.stage > .pinfo,.stage > .rsheet{grid-column:3;grid-row:1}
.stage > .gpanel{grid-column:4;grid-row:1}
.rsheet{width:360px;border-left:1px solid var(--line);background:var(--panel);overflow:auto;z-index:2}
.rsheet:empty{display:none}
.rsheet > .pop.docked{position:static;width:auto;max-height:none;border:0;border-radius:0;box-shadow:none;padding:16px}
/* „‹ Zurück“ from an entry's form to its block's sheet (D167). */
.pop .pback{justify-self:start;font:inherit;font-size:13px;font-weight:600;color:var(--blue-ink);background:none;border:0;padding:2px 0;cursor:pointer;margin-bottom:-4px}
.rsheet > .pop.docked .iform{width:auto}
/* The block sheet's tabs and Aussehen's „Mehr“ (D166). */
.pop .sheets{display:grid;gap:12px}
.pop .lookmore{grid-column:1/-1} .pop .lookmore > summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--muted);padding:4px 0}
.pop .lookmore[open] > summary{margin-bottom:8px}
/* Below 1680 px (the website would be narrower than ~1040 px, a site's phone layout) the website keeps
   its width: the right column is a layer over its right edge, there only while something is open in it
   (D165, the mockup's „Schwebend“). */
@media (min-width:821px) and (max-width:1679px){
  .pinfo,.rsheet{position:absolute;top:0;right:0;bottom:0;z-index:30;box-shadow:-12px 0 28px rgba(0,0,0,.08)}
  .rsheet{z-index:31}
  .pinfo.idle{display:none}
}
.pinfo .pi-idle{padding:14px 16px;display:grid;gap:10px;color:var(--muted);font-size:13px;line-height:1.5} .pinfo .pi-idle p{margin:0} .pinfo .pi-idle b{color:var(--ink);font-size:15px}
.pinfo .pi-idle .btn-line{justify-self:start;display:inline-flex;gap:6px;align-items:center}
.pinfo .pi-h{position:sticky;top:0;z-index:1;background:var(--panel);display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px 10px;border-bottom:1px solid var(--line)}
.pinfo .pi-h h2{margin:0;font-size:16px;display:flex;align-items:center;gap:8px;min-width:0} .pinfo .pi-h h2 span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pinfo .pi-h h2:focus{outline:none} .pinfo .pi-ic{display:grid;color:var(--muted)} .pinfo .pi-ic.ch{color:var(--green)}
.pinfo .pi-h .icon{font-size:20px;line-height:1;width:30px;height:30px;border:0;background:none;border-radius:7px;color:var(--muted);cursor:pointer} @media (hover:hover) and (pointer:fine){.pinfo .pi-h .icon:hover{background:var(--line)}}
.pinfo .pi-sec{padding:12px 16px;border-bottom:1px solid var(--line);display:grid;gap:8px}
.pinfo h3{margin:0;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--faint)} .pinfo h3 small{text-transform:none;letter-spacing:0;font-weight:400}
.pinfo .pi-l{font-size:12px;font-weight:600;color:var(--muted)}
.pinfo .pi-in{font:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:7px 9px;width:100%;min-width:0}
.pinfo .pi-adr{font:12px ui-monospace,monospace;color:var(--muted);overflow-wrap:anywhere}
.pinfo .pi-note{margin:0;font-size:12px;color:var(--muted)}
.pinfo .pi-line{display:flex;gap:8px;align-items:center;font-size:13px} .pinfo .pi-line .ico{color:var(--muted);flex:none}
.pinfo .pi-list{list-style:none;margin:0;padding:0;display:grid;gap:6px} .pinfo .pi-list li{display:flex;gap:8px;align-items:center;font-size:13px} .pinfo .pi-list li > .ico{color:var(--muted);flex:none}
.pinfo .pi-grow{flex:1;min-width:0} .pinfo .pi-form{font:inherit;font-size:13px;border:1px solid var(--line);border-radius:6px;padding:1px 4px;background:var(--panel);color:var(--ink);max-width:9.5em}
.pinfo .lnk.red,.pinfo .btn-line.red{color:var(--red)}
.pinfo .pi-warn{font-size:13px;background:var(--orange-soft,oklch(0.96 0.04 70));border-radius:8px;padding:8px 10px}
.pinfo .pi-tz{display:grid;grid-template-columns:96px 1fr;gap:8px}
.pinfo .pi-img{border:1px dashed var(--line);border-radius:8px;background:var(--bg);color:var(--muted);font:inherit;font-size:12px;min-height:72px;overflow:hidden;padding:0;cursor:pointer} .pinfo .pi-img img{width:100%;height:100%;object-fit:cover;display:block} .pinfo .pi-img[disabled]{cursor:default}
.pinfo .pi-adv{padding:12px 16px;display:grid;gap:8px} .pinfo .pi-adv summary{cursor:pointer;font-weight:600} .pinfo .pi-adv[open]{display:grid}
.pinfo .pi-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center} .pinfo .pi-row.end{justify-content:flex-end;padding:12px 16px 0}
.pinfo .pi-prev{display:grid;gap:6px}
.pinfo .pi-slug{display:flex;align-items:center;gap:2px;font:12px ui-monospace,monospace;color:var(--muted);min-width:0} .pinfo .pi-slug span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto} .pinfo .pi-slug input{font:inherit;color:var(--ink);flex:1;min-width:6em}
.pinfo .pi-adv .pi-err{padding:0}
.pt-move .pt-adv summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--muted)}
.pt-move .pt-slugrow{display:flex;align-items:center;gap:2px;font:12px ui-monospace,monospace;color:var(--muted);margin-top:6px} .pt-move .pt-slug{font:inherit;color:var(--ink);flex:1;min-width:6em;border:1px solid var(--line);border-radius:6px;padding:4px 6px;background:var(--panel)}
.pt-move .pt-err{color:var(--red);font-size:12px;margin-top:4px} .pt-move .pt-err:empty{display:none}
.pinfo .switches{display:grid;gap:12px}
.pinfo .sk{display:flex;flex-direction:column;gap:3px;height:54px;padding:6px;border-radius:6px;background:var(--line-soft)}
.pinfo .sk i{display:block;height:6px;border-radius:2px;background:var(--dash)} .pinfo .sk i.h{height:9px;width:60%;background:var(--muted)} .pinfo .sk i.p{background:linear-gradient(135deg,#9bc7ad,#5b8fbf);height:14px}
.pinfo .sk .row{display:flex;gap:3px} .pinfo .sk .row i{flex:1;height:12px}
.pinfo .pi-presets{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pinfo .pi-preset{display:grid;gap:4px;border:1px solid var(--line);border-radius:10px;padding:8px;cursor:pointer;font-size:13px} .pinfo .pi-preset:has(input:checked){border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.pinfo .pi-preset input{position:absolute;opacity:0;pointer-events:none} .pinfo .pi-preset:has(input:focus-visible){outline:2px solid var(--blue);outline-offset:2px} .pinfo .pi-preset small{color:var(--muted)}
.pinfo .pi-err{color:var(--red);font-size:13px;padding:0 16px} .pinfo .pi-err:empty{display:none}
.pinfo > .pi-note{padding:10px 16px 0}
@media (max-width:820px){.pinfo{display:none} .stage > .pinfo,.stage > .rsheet,.stage > .gpanel{grid-column:auto;grid-row:auto}}
.ptree .pt-ren{font:inherit;width:100%;min-width:0;border:1px solid var(--blue);border-radius:6px;padding:2px 6px;background:var(--panel);color:var(--ink)}
.pop.pt-pop{padding:6px;gap:0}
.pt-menu{display:flex;flex-direction:column}
.pt-menu [role=menuitem]{display:flex;justify-content:space-between;gap:12px;align-items:center;text-align:left;font:inherit;font-size:14px;padding:7px 10px;border:0;border-radius:7px;background:none;color:var(--ink);cursor:pointer}
.pt-menu [role=menuitem]:focus-visible{background:var(--blue-soft)} @media (hover:hover) and (pointer:fine){.pt-menu [role=menuitem]:hover{background:var(--blue-soft)}} .pt-menu [role=menuitem][disabled]{color:var(--faint);cursor:default;background:none}
.pt-menu [role=menuitem].danger{color:var(--red)} .pt-menu kbd{font:12px var(--efont);color:var(--faint)}
.ptree .pt-row.drop-b::after,.ptree .pt-row.drop-a::after{content:"";position:absolute;left:24px;right:4px;height:2px;border-radius:1px;background:var(--blue)} .ptree .pt-row.drop-b::after{top:-1px} .ptree .pt-row.drop-a::after{bottom:-1px}
@media (max-width:820px){.ptree{display:none}}
/* #views holds the tabs' absolutely placed sections: no grid item of its own -- as one it
   took a second row (31 px of the stage) once the Gestaltung panel filled the second column (D8) */
#views{display:contents}
.frame{position:relative;overflow:auto;background:var(--bg)}
.gpanel{width:380px;background:var(--panel);border-left:1px solid var(--line);padding:0;overflow:auto;display:none;flex-direction:column;font-size:14px}
.gpanel.open{display:flex}
.gpanel p{margin:0;color:var(--muted)}
/* I3 (gestaltung.js; gestaltung.html's left column): head / .sheet (104 px labels, 32 px controls) / foot -- the H2 sheet's parts, no inline style */
.gpanel>*{padding-left:16px;padding-right:16px}
.gpanel .head{position:sticky;top:0;z-index:3;background:var(--panel);display:flex;align-items:center;gap:10px;padding-top:12px;padding-bottom:10px;border-bottom:1px solid var(--line-soft)}
.gpanel .head h2{font-size:15px;font-weight:600;margin:0;margin-right:auto;line-height:1.2} .gpanel .head small{display:block;font-weight:400;font-size:12px;color:var(--muted)}
.gpanel .x{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;color:var(--muted);flex:none} @media (hover:hover) and (pointer:fine){.gpanel .x:hover{background:var(--hover);color:var(--ink)}}
.gpanel .sheet{display:grid;grid-template-columns:104px minmax(0,1fr);column-gap:12px;row-gap:8px;align-items:center;padding-top:12px;padding-bottom:12px}
.gpanel .sheet label{font-size:13px;font-weight:400;color:var(--muted);margin:0;display:flex;align-items:center;gap:6px;min-width:0;line-height:1.25}
.gpanel .sheet .cap2{grid-column:1/-1;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-top:6px} .gpanel .sheet .cap2:first-child{margin-top:0}
.gpanel .more:not([hidden]){display:contents}
.gpanel .hint.err{color:var(--red)}
.ovr{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--blue);flex:none}
.rst{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;color:var(--muted);font-size:13px;flex:none} @media (hover:hover) and (pointer:fine){.rst:hover{background:var(--hover);color:var(--ink)}}
.gpanel .ctl input[type=range]{flex:1;min-width:0;accent-color:var(--ink);height:32px;margin:0}
.gpanel .ctl input[type=number],.gpanel .ctl input[type=text]{height:32px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-size:13px;min-width:0}
.gpanel .ctl input[type=number]{width:68px;flex:none;text-align:right} .gpanel .ctl input[type=text]{flex:1}
.gpanel .ctl input[type=color]{width:32px;height:32px;padding:2px;border:1px solid var(--line);border-radius:8px;background:var(--panel);flex:none}
.gpanel .ctl input:focus-visible,.gpanel .ctl .sel>select:focus-visible{outline:2px solid var(--blue-ring);outline-offset:1px;border-color:var(--ink)}
.gpanel .ctl>.seg{flex-wrap:wrap}
.gpanel .ctl .unit{font-size:12px;color:var(--muted);min-width:22px}
.richtung{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:10px 12px;flex-wrap:wrap;border:1px solid var(--line);border-radius:10px;background:var(--on-soft)}
.richtung .pv{width:46px;height:34px;border-radius:6px;background:#f6f2ec;border:1px solid var(--line);position:relative;flex:none} .richtung .pv::before{content:"";position:absolute;left:6px;top:6px;width:18px;height:4px;border-radius:2px;background:#9a4a2b} .richtung .pv::after{content:"";position:absolute;left:6px;top:14px;right:6px;height:12px;border-radius:2px;background:#e8e1d8}
.richtung .t{flex:1 1 180px;min-width:0} .richtung .t b{display:block;font-size:13px} .richtung .t small{font-size:12px;color:var(--muted)}
.richtung .sel{position:relative;flex:none;width:150px}
.richtung .sel>select{appearance:none;-webkit-appearance:none;width:100%;height:32px;padding:0 28px 0 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-size:13px}
.richtung .sel::after{content:"";position:absolute;right:11px;top:12px;width:7px;height:7px;border-right:1.6px solid var(--muted);border-bottom:1.6px solid var(--muted);transform:rotate(45deg);pointer-events:none}
.gpanel .sheet .cap2{display:flex;align-items:center;gap:8px} .gpanel .sheet .cap2 :is(.lnk,.note){margin-left:auto;text-transform:none;letter-spacing:0;font-weight:500;color:var(--muted)}
.gpanel .fold{grid-column:1/-1;height:32px;border:1px dashed var(--dash);border-radius:8px;font-size:13px;color:var(--muted);margin-top:4px} @media (hover:hover) and (pointer:fine){.gpanel .fold:hover{color:var(--ink);border-color:var(--ink)}}
.gpanel .zeilen{grid-column:1/-1;font-size:13px;color:var(--muted)}
.gpanel .foot{position:sticky;bottom:0;z-index:3;background:var(--panel);display:flex;align-items:center;gap:8px;padding-top:10px;padding-bottom:12px;border-top:1px solid var(--line-soft)}
.gpanel .foot .done{margin-left:auto;flex:none;height:32px;padding:0 14px;border-radius:8px;background:var(--primary);color:var(--on-primary);font-weight:600;font-size:13px}
/* the canvas: the page (C5 below), or a placeholder panel */
.canvas{display:flex;flex-direction:column}
/* the page, drawn by Astro (canvas.js, C1b): it scrolls inside the frame */
.canvas-frame{flex:1;width:100%;min-height:480px;border:0;display:block;background:#fff}
.canvas-empty{flex:1;display:flex;align-items:center;justify-content:center;padding:48px 24px}
.canvas-empty .box{max-width:520px;text-align:center;display:flex;flex-direction:column;gap:8px;color:var(--muted);border:1.5px dashed var(--dash);border-radius:12px;padding:32px 28px;background:var(--panel)}
.canvas-empty .box b{color:var(--ink);font-size:16px}

/* ---- the one segmented control, the one switch, the one add row (W10) ---- */
.seg{display:flex;gap:4px;flex-wrap:wrap} .seg button{border:1px solid var(--line);border-radius:6px;padding:4px 9px;font-size:13px;background:var(--panel);color:var(--ink);min-height:24px} @media (hover:hover) and (pointer:fine){.seg button:hover{border-color:var(--ink)}} .seg button.on{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.seg.scroll{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:4px} .seg.scroll button{flex:none;white-space:nowrap}
.seg-group{flex:none;align-self:center;font-size:11px;color:var(--muted);white-space:nowrap;margin-left:6px} .seg-group:first-child{margin-left:0}
.seg button.swatch{width:30px;height:30px;padding:0;border-radius:50%;border:2px solid var(--line)} .seg button.swatch.on{border-color:var(--ink);box-shadow:inset 0 0 0 2px var(--panel)}
.tog{width:36px;height:20px;border-radius:10px;background:var(--off);position:relative;flex:none}
.tog::after{content:"";position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .12s}
.tog[aria-checked="true"]{background:var(--primary)} .tog[aria-checked="true"]::after{left:18px}
/* the switch is one button (label + track), so the whole row is the 24 px target (W11) */
.switch{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:24px;text-align:left;font-size:14px}
.switch small{display:block;font-size:12px;color:var(--muted)}
.switch[aria-checked="true"] .tog{background:var(--primary)} .switch[aria-checked="true"] .tog::after{left:18px}
.switch:disabled{opacity:.4;cursor:default}
.add{display:block;width:100%;border:1.5px dashed color-mix(in srgb,var(--blue) 55%,transparent);border-radius:12px;padding:14px;font:600 15px var(--efont);color:var(--blue-ink);background:transparent;text-align:center;margin-top:10px}
@media (hover:hover) and (pointer:fine){.add:hover{border-color:var(--blue);color:var(--blue-ink);background:color-mix(in srgb,var(--blue) 6%,transparent)}}

/* ---- the bottom band ---- */
.donebar{display:none;position:sticky;bottom:0;z-index:7;background:var(--ink);color:var(--panel);padding:12px 40px;font:14px var(--efont);align-items:center;gap:16px;box-shadow:0 -8px 24px rgba(0,0,0,.12)} body.edit .donebar{display:flex} .donebar b{font-weight:600} .donebar span{opacity:.75} .donebar .btn-dark{background:var(--panel);color:var(--ink);margin-left:auto}
.donebar .btn-dark:disabled{opacity:.5}
.donebar.always{display:flex} .home>.donebar{margin-top:0}
body.creating #view-site>.donebar:not(.createbar){display:none}
.donebar.createbar{position:fixed;left:0;right:0;bottom:0;z-index:7} .createbar .r{display:flex;gap:8px;margin-left:auto} .createbar .btn-line{background:transparent;color:var(--panel);border-color:rgba(255,255,255,.5)}
.btn-line.danger,.createbar .btn-line.danger{background:var(--red);border-color:var(--red);color:#fff}
.chg li .locked{font-size:12px;color:var(--muted);white-space:nowrap}
.top .chgbtn{gap:6px;font-weight:600} .top .chgbtn .n{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--blue);color:#fff;font-size:12px;display:inline-grid;place-items:center}
.top .chgbtn:disabled .n{background:var(--ghost)}
/* The session's time left (SPEC D185), beside the account; the last five minutes in red. */
.top .chgbtn.go{background:var(--blue);border-color:var(--blue);color:#fff} .top .chgbtn.go .n{background:#fff;color:var(--blue-ink)} /* something to send (D220) */
.vtab .ico{display:none} .vtab{display:inline-flex;align-items:center}
.modebar .mb-done{display:inline-flex;background:var(--panel);color:var(--ink)} .modebar .mb-done:disabled{opacity:.55;cursor:default}
body:not(.edit) .modebar .mb-done{display:none}
.recent .ph{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:6px} .recent .ph h2{font-size:14px;margin:0} .recent .ph small{color:var(--faint);font-size:12px}
.recent .rows{list-style:none;margin:0 -16px;padding:0;max-height:min(60dvh,360px);overflow:auto}
.recent .rrow{display:grid;grid-template-columns:8px minmax(0,1fr) 64px auto auto;gap:10px;align-items:center;min-height:44px;padding:4px 6px 4px 16px} @media (hover:hover) and (pointer:fine){.recent .rrow:hover{background:var(--hover)}}
.recent .dot{width:8px;height:8px;border-radius:50%;background:var(--blue)} .recent .d-post{background:var(--green)} .recent .d-ter{background:var(--violet)} .recent .d-file{background:var(--orange)} .recent .d-acc,.recent .d-site{background:var(--grey)}
.recent .tx{min-width:0} .recent .tx b{display:block;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .recent .tx span{display:block;font-size:12px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recent .view,.chg li .view{height:28px;padding:0 8px;border-radius:7px;font-size:12px;color:var(--blue-ink);white-space:nowrap} @media (hover:hover) and (pointer:fine){.recent .view:hover,.chg li .view:hover{background:var(--hover)}}
.recent .t{font-size:12px;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
.recent .x{width:28px;height:28px;border-radius:7px;display:grid;place-items:center;color:var(--faint)} @media (hover:hover) and (pointer:fine){.recent .x:hover{background:var(--line);color:var(--ink)}} .recent .x.off{visibility:hidden}
.recent .pf{border-top:1px solid var(--line-soft);margin:6px -16px -4px;padding:9px 16px 0;font-size:12px;color:var(--muted)}

/* ---- popovers ---- */
.pop{position:absolute;z-index:40;width:320px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-pop);padding:16px;display:flex;flex-direction:column;gap:12px;font:14px/1.4 var(--efont)}
.pop.fixed{position:fixed;z-index:70;max-height:calc(100dvh - 90px);overflow:auto}
.pop.sheetpop{overflow-x:hidden} .pop.sheetpop .sheet select{min-width:0;max-width:100%}
.pop h2{font-size:15px;font-weight:600;margin:0;display:flex;align-items:center;gap:8px} .pop h2 small{font-weight:400;color:var(--muted)}
.pop .sub{font-size:13px;color:var(--muted);margin-top:2px}
.pop .r{display:flex;gap:8px;justify-content:flex-end;align-items:center} .pop .r .del{margin-right:auto;font-size:13px;color:var(--red)}
.pop label{font-size:12px;color:var(--muted);font-weight:600;display:block;margin-bottom:4px}
.pop input,.pop textarea,.pop select{font:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:7px 9px;width:100%}
.pop textarea{min-height:64px;resize:vertical}
.pop .ck{display:flex;align-items:flex-start;gap:8px;font-size:13px} .pop .ck input{width:auto;margin-top:3px}
.pop .row2{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px} .pop .row2 small{color:var(--muted)}
.f2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pop .arrows{margin-left:auto;display:flex;gap:2px} .pop .arrows button{width:32px;height:32px;border-radius:6px;display:flex;align-items:center;justify-content:center} @media (hover:hover) and (pointer:fine){.pop .arrows button:hover{background:var(--hover)}} .pop .arrows button:disabled{opacity:.3}

/* ---- the change list ---- */
.chg{list-style:none;padding:0;margin:0;font-size:14px;display:flex;flex-direction:column}
.chg li{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--line-soft)} .chg li:last-child{border-bottom:1px solid var(--line-soft)}
.chg li i{width:14px;height:10px;border-radius:3px;border:1.5px dashed var(--blue);flex:none}
.chg li i.bad{border-color:var(--red)}
.chg li .tx{flex:1;min-width:0} .chg .tx b{font-weight:500;display:block} .chg .tx span{font-size:12px;color:var(--muted)} .chg .tx span.bad{color:oklch(0.5 0.2 25)}
.chg li button{font-size:13px;color:var(--muted);text-decoration:underline;text-underline-offset:2px;min-height:24px}
/* a group heading when the list spans several pages or areas (the mockup's .menu .hd) */
.chg li.gh{display:block;border-top:0;padding:12px 0 4px;font-size:11px;color:var(--faint);text-transform:uppercase;letter-spacing:.06em}
.chg li.gh+li{border-top:0}
.pend{border:1px solid var(--line);border-radius:10px;padding:12px;font-size:13px;display:flex;flex-direction:column;gap:8px}
.pend b{font-weight:600} .pend .r{justify-content:flex-start}
.pend .btn-line{height:30px;padding:0 10px;font-size:13px}
.conf{border:1.5px solid oklch(0.62 0.16 50);border-radius:8px;padding:10px;font-size:13px;display:flex;flex-direction:column;gap:6px} .conf b{font-weight:600} .conf label{font-weight:400;font-size:13px;color:var(--ink);display:flex;gap:8px;align-items:flex-start;margin:0} .conf label input{width:auto;margin-top:3px} .conf .q{display:block;color:var(--muted);font-size:12px;margin-top:2px}
/* The Freigabe panel (E2, freigabe.js). */
.pop .r.wrap{flex-wrap:wrap}
.pop .r .back{margin-right:auto}
.pop .replybox:empty{display:none}
.pop .replybox .r{margin-top:6px}

/* ---- the popover as a bottom sheet: its phone form (ui.js isPhone()) ---- */
.pop.as-sheet{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;max-height:78dvh;overflow:auto;overscroll-behavior:contain;z-index:70;border-radius:14px 14px 0 0;border-width:1px 0 0;padding:18px 16px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -12px 32px rgba(0,0,0,.22)}
.pop.as-sheet::before{content:"";display:block;width:36px;height:4px;border-radius:2px;background:var(--dash);margin:-8px auto 2px;flex:none}
.pop-scrim{position:fixed;inset:0;z-index:69;background:rgba(20,20,20,.35)}

/* ---- toast, live region, tip ---- */
.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);background:var(--ink);color:var(--panel);padding:8px 14px;border-radius:20px;font:13px var(--efont);z-index:80;opacity:0;transition:opacity .2s;pointer-events:none;max-width:90vw}
.toast.show{opacity:1}
/* a toast with one action ("noch 5 Min · Verlängern") takes the pointer */
.toast.act{display:flex;align-items:center;gap:12px;padding:6px 6px 6px 14px}
.toast.act.show{pointer-events:auto}
.toast.act button{height:28px;padding:0 12px;border-radius:14px;background:var(--panel);color:var(--ink);font-weight:600;font-size:13px}
.toast.act .x{background:none;color:var(--panel);width:28px;padding:0;opacity:.75}
.tip{position:fixed;z-index:70;background:var(--ink);color:var(--panel);font:12px var(--efont);padding:5px 9px;border-radius:6px;pointer-events:none;display:none;white-space:nowrap}

/* ---- the way in (SPEC D241): the login window, the link page, „Das war ich nicht“ ----
   A phone's whole screen, not a card: the Wappen centred on top, the main button where the
   thumb is; at the computer the same 400 px column. Light or dark by the device -- before a
   login there is no setting of one's own. */
body.login{min-height:100dvh;overflow:auto;display:flex;justify-content:center;font:16px/1.5 var(--efont)}
@media (prefers-color-scheme:dark){body.login{color-scheme:dark;--bg:#111316;--panel:#1c1f24;--ink:#eef0f3;--muted:#bcc3cc;--faint:#a1aab5;--ghost:#77808b;--line:#2d3238;--line-soft:#262a30;--hover:#262b32;
  --blue:#86aeff;--blue-ink:#a3c1ff;--blue-ring:rgba(134,174,255,.3);--blue-soft:rgba(134,174,255,.14);--primary:#86aeff;--on-primary:#0b1424;--red:#ff8a80;--green:#6fd69a}}
.login-screen{position:relative;width:min(400px,100%);min-height:100dvh;display:flex;flex-direction:column;padding:calc(env(safe-area-inset-top,0px) + 28px) 24px calc(env(safe-area-inset-bottom,0px) + 20px)}
@media (min-width:600px){.login-screen{min-height:0;align-self:flex-start;padding-top:72px;padding-bottom:48px}
  .login-screen form.addr,.login-screen form.codeform{flex:none} .login-screen :is(.go,a.btn,.danger,form.end,details.nomail){margin-top:8px}}
.login-screen .mark{align-self:center;margin:6px auto 22px}
.login-screen .mark img{display:block;height:112px;width:auto}
.login-screen .mark .dk{display:none}
@media (prefers-color-scheme:dark){.login-screen .mark .lt{display:none}.login-screen .mark .dk{display:block}}
@media (max-height:640px){.login-screen .mark img{height:76px}.login-screen .mark{margin-bottom:14px}}
/* The code step: „Andere Adresse“ above, the Wappen smaller below it. */
.login-screen:has(.back) .mark{margin-top:40px} .login-screen:has(.back) .mark img{height:84px}
.login-screen h1{margin:0 0 8px;font-size:30px;line-height:1.15;font-weight:700;text-align:center}
.login-screen .lead{margin:0 0 26px;color:var(--muted);text-align:center}
.login-screen .lead b{display:block;color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.login-screen .back{position:absolute;top:calc(env(safe-area-inset-top,0px) + 14px);left:20px;display:inline-flex;align-items:center;gap:6px;height:44px;color:var(--blue-ink);font-weight:600;text-decoration:none}
.login-screen .back::before{content:"←"}
.login-screen form.addr,.login-screen form.codeform{display:flex;flex-direction:column;flex:1}
.login-screen label{font-size:14px;font-weight:600;color:var(--muted);margin-bottom:8px}
.login-screen input{width:100%;height:54px;border:1.5px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);font:16px var(--efont);padding:0 16px}
.login-screen input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px var(--blue-ring)}
.login-screen input::placeholder{color:var(--ghost)}
.login-screen #code{font:650 28px var(--efont);letter-spacing:.3em;text-align:center;font-variant-numeric:tabular-nums}
.login-screen .help{margin:10px 0 24px;font-size:14px;color:var(--faint)}
.login-screen .state{min-height:24px;margin:14px 0 0;font-size:15px;color:var(--muted)}
.login-screen .state.bad{color:var(--red);font-weight:600} .login-screen .state:empty{display:none}
.login-screen .done{margin:0 0 20px;padding:12px 14px;border-radius:12px;background:var(--green-soft);font-size:15px}
.login-screen :is(.go,.second,.danger,a.btn){width:100%;height:54px;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:17px;font-weight:650;text-decoration:none;transition:transform var(--t-press) var(--ease),opacity var(--t-state)}
.login-screen :is(.go,a.btn){background:var(--primary);color:var(--on-primary);margin-top:auto}
.login-screen .second{margin-top:12px;background:var(--panel);color:var(--ink);border:1.5px solid var(--line)}
.login-screen .danger{background:var(--red);color:var(--on-primary);margin-top:auto}
.login-screen form.end{margin-top:auto}
.login-screen .quiet{align-self:center;margin-top:8px;min-height:48px;padding:0 10px;display:inline-flex;align-items:center;gap:8px;border-radius:10px;color:var(--blue-ink);font-weight:600;text-decoration:none}
.login-screen #install{color:var(--muted)}
.login-screen :is(.go,.second,.danger,a.btn,.quiet):not(:disabled):active{transform:scale(.97)}
.login-screen :is(.go,.second):disabled{opacity:.45;cursor:default}
.login-screen .spin{width:18px;height:18px;border-radius:50%;border:2.5px solid currentColor;border-right-color:transparent;animation:wk-spin .7s linear infinite}
@keyframes wk-spin{to{transform:rotate(1turn)}}
/* The code: six cells over the one real field (anmelden.js); without script the field itself. */
.login-screen .cellwrap{position:relative}
.login-screen .cells{display:none}
.js .login-screen .cells{display:grid;grid-template-columns:repeat(3,1fr) 14px repeat(3,1fr);gap:8px;pointer-events:none}
.js .login-screen .cellwrap #code{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px}
.login-screen .cells .gap{align-self:center;height:2px;background:var(--ghost);border-radius:1px;margin:0 2px}
.login-screen .cell{height:68px;border-radius:14px;border:1.5px solid var(--line);background:var(--panel);display:grid;place-items:center;font-size:34px;font-weight:650;font-variant-numeric:tabular-nums;transition:border-color var(--t-state)}
.login-screen .cell.cur{border-color:var(--blue);box-shadow:0 0 0 4px var(--blue-ring)}
.login-screen .cell.cur::after{content:"";width:2px;height:30px;background:var(--blue);animation:wk-blink 1s steps(1) infinite}
.login-screen .cell b{font-weight:inherit;animation:wk-pop var(--t-press) var(--ease) both}
.login-screen .cells.bad .cell{border-color:var(--red)}
.login-screen .cells.shake{animation:wk-shake 180ms var(--ease) 2}
.js .login-screen .codeform .go{display:none}
@keyframes wk-blink{50%{opacity:0}} @keyframes wk-pop{from{opacity:0;transform:scale(.85)}} @keyframes wk-shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
@media (prefers-reduced-motion:reduce){.login-screen .cells.shake,.login-screen .cell b{animation:none}}
.login-screen details.nomail{margin-top:auto;align-self:stretch;text-align:center}
.login-screen details.nomail summary{list-style:none;display:inline-flex;align-items:center;min-height:48px;padding:0 10px;color:var(--blue-ink);font-weight:600;cursor:pointer}
.login-screen details.nomail summary::-webkit-details-marker{display:none}
.login-screen details.nomail[open]{text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:4px 16px 8px}
.login-screen details.nomail p{margin:0 0 10px;color:var(--muted);font-size:15px}
.login-screen details.nomail a{color:var(--blue-ink);font-weight:600}
.login-screen dialog{border:0;border-radius:20px;padding:20px 24px calc(env(safe-area-inset-bottom,0px) + 20px);background:var(--panel);color:var(--ink);width:min(440px,100%);max-width:100%}
@media (max-width:599px){.login-screen dialog{margin:auto 0 0;border-radius:20px 20px 0 0}}
.login-screen dialog::backdrop{background:rgba(10,15,25,.4)}
.login-screen dialog h2{margin:0 0 6px;font-size:22px}
.login-screen dialog p{margin:0 0 12px;color:var(--muted)}
.login-screen dialog ol{margin:0 0 18px;padding-left:22px;line-height:2.2}
@media (hover:hover) and (pointer:fine){.login-screen :is(.go,a.btn):hover{filter:brightness(1.06)} .login-screen :is(.second,.quiet):hover{background:var(--hover)}}

/* ---- the gate pages (/bearbeiten/f/…, their answers): the lock's box ---- */
body.gate{min-height:100dvh;display:grid;place-items:center;padding:16px;overflow:auto}
.gate-card{background:var(--panel);border-radius:14px;padding:26px;width:min(440px,100%);box-shadow:var(--shadow-pop);display:flex;flex-direction:column;gap:12px;font:14px/1.45 var(--efont)}
.gate-card h1{margin:0;font-size:18px}
.gate-card p{margin:0;color:var(--ink)}
.gate-card form{display:flex;flex-direction:column;gap:8px}
.gate-card label{font-size:12px;color:var(--muted);font-weight:600}
.gate-card input{font:600 22px var(--mono);letter-spacing:.3em;text-align:center;border:1px solid var(--line);border-radius:8px;padding:8px;width:100%}
.gate-card button{height:36px;border-radius:8px;background:var(--primary);color:var(--on-primary);font-weight:600}
.gate-card .hint{font-size:12px;color:var(--muted)}
.gate-card a{color:var(--blue-ink)}

/* ---- Home (C4) ---- */
/* The mockup's renderHome(): its inline `margin-bottom:8px` / `margin-top:8px` on
   the rows are the list gap here; one section per heading (W11). */
.home .hsec{display:flex;flex-direction:column}
.home .hsec>h3:focus{outline:none} .home .hsec>h3:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.home .hlist{display:flex;flex-direction:column;gap:8px}
.home .hlist:empty{display:none}
.home .hsec>.add{margin-top:8px}
.home .hrow .tx{min-width:0;overflow-wrap:anywhere}
.home .hbtns{display:flex;gap:14px;align-items:center}
.home .hnote{margin:0;font-size:13px;color:var(--muted)}
.home-confirm{display:flex;flex-direction:column;gap:12px}
@media (max-width:820px){
  .home .wrap{padding:24px 16px 40px;gap:24px}
  .home .qa{grid-template-columns:1fr 1fr;gap:10px}
  .home .qa button{min-height:88px;padding:14px 12px}
  .home .qa button.big{grid-column:1/-1;min-height:72px}
  .home .hrow{flex-wrap:wrap;gap:10px 14px}
  .home .hrow .tx{flex:1 1 180px}
  .home .hbtns{margin-left:auto}
}

/* ---- Termine (D2, inhalt.js + kalender.js; the mockup's .tgrid/.cal/.tform/.tlist) ---- */
/* The mockup's lines 167–184, with a row per week (the grid's role=row), the other
   month's days in --faint on --bg instead of opacity .35 (axe: contrast), the list
   as a <ul>, and kalender.js's
   picker (.calpick) beside a date field in any form. */
.imp{display:flex;gap:8px;flex-wrap:wrap}
/* Inhalt (G2; the mockup's inhalt.html .bar/.list/.grp/.row/.ti/.badge/.side, chooser.html .pager):
   the bar, the list and the Kalender on the left, the one side (aside) on the right. */
.home .wrap.inh{gap:14px} .inh .menu{top:40px}
.inh .bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.inh .bar .vw{margin-left:auto}
.inh .seg{display:inline-flex;flex-wrap:wrap;border:1px solid var(--line);border-radius:8px;padding:2px;gap:2px;background:var(--panel)}
.inh .seg button{height:28px;padding:0 11px;border:0;border-radius:6px;font-size:13px;color:var(--muted);background:transparent;display:inline-flex;align-items:center;gap:4px} @media (hover:hover) and (pointer:fine){.inh .seg button:hover{color:var(--ink)}} .inh .seg button.on{background:var(--primary);color:var(--on-primary);font-weight:600}
.inh .seg button .n{font-size:11px;font-weight:600}
.inh .sel{position:relative;display:inline-block} .inh .sel select{appearance:none;-webkit-appearance:none;height:32px;padding:0 28px 0 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-size:13px}
.inh .sel::after{content:"";position:absolute;right:11px;top:11px;width:7px;height:7px;border-right:1.6px solid var(--muted);border-bottom:1.6px solid var(--muted);transform:rotate(45deg);pointer-events:none}
.inh .search{height:32px;padding:0 10px 0 30px;border:1px solid var(--line);border-radius:8px;background:var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235f636b' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='m10.5 10.5 3 3'/%3E%3C/svg%3E") 9px center/14px no-repeat;color:var(--ink);font:inherit;font-size:13px;width:200px;max-width:100%}
.inh .cols{display:grid;grid-template-columns:minmax(0,1fr) clamp(360px,32vw,560px);gap:24px;align-items:start}
.inh .main{min-width:0;display:flex;flex-direction:column;gap:14px}
.inh .vlist,.inh .vcal{display:flex;flex-direction:column;gap:14px;min-width:0}
.inh .side{position:sticky;top:12px;min-width:0}
.inh .side .tform{position:static}
.sidecard{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}
.home .sidecard h3{margin:0;font-size:15px;text-transform:none;letter-spacing:0;color:var(--ink);font-weight:600;display:flex;align-items:center;gap:8px;overflow-wrap:anywhere} .sidecard h3 .badge{margin-left:auto;flex:none}
.sidecard .sub{font-size:12px;color:var(--muted);margin:0} .sidecard .tf-when{margin:0;font-size:13px} .sidecard .r{display:flex;gap:8px;justify-content:flex-end}
.badge.blue{background:var(--blue-ring);color:oklch(0.42 0.16 255)} :root[data-theme="dark"] .badge.blue{color:var(--blue-ink)} /* inhalt.html's --blue-ink: 0.52 on the ring is under 4.5:1 at 11 px (axe) */ .badge.off{color:var(--muted)}
.listbox{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.list .none{margin:0;padding:18px 14px;font-size:13px;color:var(--muted)}
.home .list .grp{display:flex;align-items:center;gap:10px;margin:0;padding:8px 14px;background:var(--on-soft);border-bottom:1px solid var(--line-soft);font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)} .list .grp:not(:first-child){border-top:1px solid var(--line)}
.list .row{display:grid;grid-template-columns:28px minmax(0,1fr) 150px 118px;gap:12px;align-items:center;width:100%;padding:10px 14px;border:0;border-bottom:1px solid var(--line-soft);background:transparent;text-align:left;font:inherit;font-size:14px;color:var(--ink);cursor:pointer;position:relative}
.list .row:last-child{border-bottom:0} @media (hover:hover) and (pointer:fine){.list .row:hover{background:var(--hover)}} .list .row.cur{background:var(--blue-soft);box-shadow:inset 3px 0 0 var(--blue)}
.list .row:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.list .row.past .t b,.list .row.past .d{color:var(--muted)}
.list .row .ti{width:26px;height:26px;border-radius:7px;display:grid;place-items:center;background:var(--hover);font-size:13px;font-weight:700}
.list .row .ti .ico{width:15px;height:15px}
.list .row .ti.b{background:oklch(0.58 0.15 255 / 0.12);color:var(--blue-ink)} .list .row .ti.t{background:oklch(0.55 0.13 160 / 0.14);color:oklch(0.4 0.13 160)} .list .row .ti.h{background:oklch(0.62 0.16 50 / 0.16);color:oklch(0.45 0.16 50)}
.list .row .t{min-width:0} .list .row .t b{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .list .row .t small,.list .row .d small{display:block;color:var(--muted);font-size:12px} .list .row .t small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list .row .d{font-size:13px;white-space:nowrap}
.list .row .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pager{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:10px 14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
/* G3: the Termin view's specials row, the sheet's card, the question over it (chooser.html lines 69–73, 91–100) */
.specials{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);font-size:13px}
.specials .sp{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:0 10px;border:1px solid var(--line);border-radius:8px} .specials .sp .dot{width:8px;height:8px;border-radius:50%;background:oklch(0.55 0.13 160);flex:none} .specials .sp .dot.off{background:var(--ghost)} .specials .sp small{color:var(--muted)} .specials .sp small.warn{color:oklch(0.45 0.16 50)}
.specials .sw{display:inline-flex;align-items:center;min-height:24px;padding:0 2px}
.specials .sw2{position:relative;display:block;width:32px;height:18px;border-radius:9px;background:var(--off)} .specials .sw2::after{content:"";position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2)} .specials .sw2.on{background:var(--ink)} .specials .sw2.on::after{left:16px}
.specials .sw:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:6px}
.specials .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.specials .btn-line.sm{height:32px;font-size:13px}
.inh .side{align-self:start}
.inh .side .tform,.inh .side .sidecard{box-shadow:var(--shadow-pop)}
/* G5: inhalt.html's .sheet grid -- labels in a 78 px column beside the fields -- for the three sheets in
   Inhalt's side only; the Website tab's Termin and Hinweis popovers keep their stacked labels. */
.inh .side :is(.tform,.sidecard) > div:has(> label),.inh .side :is(.tform,.sidecard) .f2 > div:has(> label){display:grid;grid-template-columns:78px minmax(0,1fr);column-gap:10px;row-gap:4px;align-items:start}
.inh .side :is(.tform,.sidecard) .f2{display:flex;flex-direction:column;gap:12px}
.inh .side :is(.tform,.sidecard) label{margin:0;padding-top:8px;font-size:13px;font-weight:400}
.inh .side :is(.tform,.sidecard) label small{display:block;font-size:11px}
.inh .side :is(.tform,.sidecard) div:has(> label) > :is(.note,.sub){grid-column:2}
.inh .side .calpick{grid-column:1 / -1}
/* G4: the Hinweis sheet (inhalt.html .sheet/.pv) */
.hsheet label{font-size:12px;color:var(--muted);font-weight:600;display:block;margin-bottom:4px}
.hsheet input,.hsheet select,.hsheet textarea{font:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:7px 9px;width:100%}
.hsheet textarea{min-height:72px;resize:vertical}
.hsheet .seg{width:max-content;max-width:100%}
.hsheet .err{font-size:13px;color:var(--red)} .hsheet .err:empty{display:none} .hsheet .sub{margin:0}
.hsheet .foot{display:flex;align-items:center;gap:8px;padding-top:12px;border-top:1px solid var(--line-soft)} .hsheet .foot .btn-dark{margin-left:auto} .hsheet .foot .rm{height:32px;padding:0 10px;border-radius:8px;font-size:13px;color:var(--red)} @media (hover:hover) and (pointer:fine){.hsheet .foot .rm:hover{background:var(--hover)}}
.hsheet .dirty{margin:0;font-size:12px;color:var(--blue-ink);background:var(--blue-soft);border:1px solid var(--blue-ring);border-radius:8px;padding:6px 10px}
.pv{border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:13px;background:var(--on-soft);display:flex;gap:8px;align-items:flex-start;overflow-wrap:anywhere} .pv i{width:16px;height:16px;border-radius:50%;background:oklch(0.62 0.16 50 / 0.3);flex:none;margin-top:2px} .pv .lnk{color:var(--blue-ink);text-decoration:underline}
/* G7: the Verlauf (inhalt.html .hist) */
.hist{border-top:1px solid var(--line-soft);padding-top:10px;display:flex;flex-direction:column;gap:6px}
.hist h4{margin:0;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.hist ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px;font-size:12px}
.hist li{display:grid;grid-template-columns:78px minmax(0,1fr);gap:8px;color:var(--ink)} .hist li time{color:var(--muted);font-variant-numeric:tabular-nums}
/* G6: moderation in place (inhalt.html .mod) */
.mod{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--on-soft);display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--ink)}
.mod b{font-weight:600} .mod .sub{margin:0;font-size:12px;color:var(--muted)}
.mod .lnk{min-height:24px;padding:0;font:inherit;color:var(--blue-ink);text-decoration:underline;text-underline-offset:2px}
.mod .r{display:flex;flex-wrap:wrap;gap:6px}
.mod .r button,.mod .modnote button{height:30px;padding:0 10px;border-radius:7px;border:1px solid var(--line);font-size:13px;background:var(--panel);color:var(--ink)}
.mod .r button:disabled,.mod .modnote button:disabled{opacity:.5}
.mod .r .ok,.mod .modnote .ok{background:var(--primary);color:var(--on-primary);border-color:var(--primary);font-weight:600}
.mod .modnote{display:flex;flex-direction:column;gap:6px;align-items:flex-start} .mod .modnote:empty{display:none}
.mod .modnote textarea{width:100%;font:inherit;font-size:13px;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:6px 9px;resize:vertical}
.shead{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)} .shead b{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase} .shead .badge{margin-left:auto}
.tform .dirty{margin:0;font-size:12px;color:var(--blue-ink);background:var(--blue-soft);border:1px solid var(--blue-ring);border-radius:8px;padding:6px 10px}
.tform .foot{display:flex;align-items:center;gap:8px;padding-top:12px;border-top:1px solid var(--line-soft)} .tform .foot .btn-dark{margin-left:auto} .tform .foot .rm{height:32px;padding:0 10px;border-radius:8px;font-size:13px;color:var(--red)} @media (hover:hover) and (pointer:fine){.tform .foot .rm:hover{background:var(--hover)}}
.guard{position:absolute;inset:0;border-radius:12px;background:rgba(245,245,242,.6);backdrop-filter:blur(1px);display:flex;align-items:flex-start;justify-content:center;padding-top:40px;z-index:5}
:root[data-theme="dark"] .guard{background:rgba(20,21,23,.6)}
.guard .box{width:calc(100% - 24px);background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-pop);padding:16px} .guard .box h4{margin:0 0 6px;font-size:15px;overflow-wrap:anywhere} .guard .box p{margin:0 0 12px;font-size:13px;color:var(--muted)}
.guard .r{display:flex;gap:6px} .guard .r button{height:32px;padding:0 12px;border-radius:8px;font-size:13px;border:1px solid var(--line);background:var(--panel);color:var(--ink)} .guard .r .keep{margin-left:auto;background:var(--ink);color:var(--panel);border-color:var(--ink);font-weight:600} .guard .r .drop{color:var(--red)}
.pager button{height:28px;min-width:28px;padding:0 8px;border-radius:7px;border:1px solid var(--line);font-size:12px;background:var(--panel);color:var(--ink)} @media (hover:hover) and (pointer:fine){.pager button:hover{border-color:var(--ink)}} .pager button.on{background:var(--ink);color:var(--panel);border-color:var(--ink)} .pager button:disabled{opacity:.4;cursor:default} .pager .n{margin-left:auto}
.cal .ev.post{background:var(--blue-ring)} .cal .ev.hin{background:oklch(0.62 0.16 50 / 0.18)}
.cal{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px}
.cal .ch{display:flex;align-items:center;gap:8px;margin-bottom:10px} .cal .ch b{font-size:15px;flex:1}
.cal .ch button.mv{width:30px;height:30px;border-radius:6px;border:1px solid var(--line);font-size:16px;line-height:1} @media (hover:hover) and (pointer:fine){.cal .ch button.mv:hover{background:var(--hover)}}
.cal .ch .hint{font-size:12px;color:var(--muted)}
.cal .dow{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;padding:0 0 6px} .cal .dow span{padding:0 6px}
.cal .days{display:flex;flex-direction:column;gap:4px}
.cal .wk{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cal .day{min-height:78px;min-width:0;border:1px solid var(--line-soft);border-radius:8px;padding:5px 6px;text-align:left;display:flex;flex-direction:column;gap:3px;background:var(--panel);font-size:12px;cursor:pointer}
@media (hover:hover) and (pointer:fine){.cal .day:hover{border-color:var(--ink)}} .cal .day.other{background:var(--bg);color:var(--faint)}
.cal .day .n{font-weight:600;font-size:12px;align-self:flex-start} .cal .day.today .n{background:var(--ink);color:var(--panel);border-radius:10px;padding:0 6px}
.cal .day.sel{box-shadow:0 0 0 2px var(--blue);border-color:var(--blue)}
.cal .day:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.cal .ev{display:block;font-size:11px;line-height:14px;min-height:16px;padding:1px 5px;border-radius:4px;background:var(--blue-ring);color:var(--ink);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}
.cal .ev.fer{background:oklch(0.62 0.16 50 / 0.18)} .cal .ev.ext{background:var(--hover);color:var(--muted)} .cal .ev.on{outline:2px solid var(--blue)} .cal .ev.span{background:oklch(0.62 0.16 50 / 0.12)}
.cal .more{font-size:11px;color:var(--muted);text-align:left;min-height:16px}
.calmore{display:flex;flex-direction:column;gap:6px} .calmore .ev{padding:6px 8px;border-radius:6px;background:var(--blue-ring);text-align:left} .calmore .ev.fer{background:oklch(0.62 0.16 50 / 0.18)} .calmore .ev.ext{background:var(--hover);color:var(--muted)}
/* kalender.js datePicker: the button beside a date field, the grid under its row */
.dfield{display:flex;gap:4px;align-items:center} .dfield input{flex:1;min-width:0}
.dfield input::-webkit-calendar-picker-indicator{display:none}
.f2:has(.dfield){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.calbtn{width:34px;height:34px;border:1px solid var(--line);border-radius:8px;background:var(--panel);flex:none} .calbtn[aria-expanded="true"]{border-color:var(--blue);color:var(--blue-ink)}
.calpick .cal.picker{padding:10px;border-radius:10px}
.cal.picker .ch{margin-bottom:6px} .cal.picker .ch b{font-size:13px}
.cal.picker .dow{gap:2px;padding-bottom:4px} .cal.picker .dow span{padding:0;text-align:center}
.cal.picker .days,.cal.picker .wk{gap:2px}
.cal.picker .day{min-height:30px;padding:0;align-items:center;justify-content:center;border-color:transparent}
.cal.picker .day .n{align-self:center;font-weight:500} .cal.picker .day.sel{background:var(--primary);color:var(--on-primary)}
.tform{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px;position:sticky;top:12px}
.home .tform h3{margin:0;font-size:15px;text-transform:none;letter-spacing:0;color:var(--ink);font-weight:600}
.tform label{font-size:12px;color:var(--muted);font-weight:600;display:block;margin-bottom:4px}
.tform input,.tform select{font:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:7px 9px;width:100%}
.tform input:disabled,.tform select:disabled{background:var(--bg);color:var(--muted)}
.tform .r{display:flex;gap:8px;justify-content:flex-end;align-items:center} .tform .r .del{margin-right:auto;font-size:13px;color:var(--red);min-height:24px}
.tform .sub{font-size:12px;color:var(--muted);margin:0} .tform .tf-when{margin:0;font-size:13px}
.tform .err{font-size:13px;color:var(--red)} .tform .err:empty{display:none}
.tlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.tlist button{display:flex;gap:10px;align-items:center;width:100%;min-height:36px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);text-align:left;font-size:13px}
@media (hover:hover) and (pointer:fine){.tlist button:hover{border-color:var(--ink)}} .tlist button.on{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}
.tlist .d{min-width:52px;font-weight:600;color:var(--muted);flex:none;white-space:nowrap} .tlist .t{flex:1;min-width:0} .tlist .m{color:var(--muted)}
.tlist .src,.review .src{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:0 6px;white-space:nowrap}
.tlist .src:first-of-type{margin-left:auto} .tlist .none{font-size:13px;color:var(--muted)}
.review .row2{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.review .revlist{list-style:none;margin:0;padding:0;max-height:48dvh;overflow:auto;border-top:1px solid var(--line-soft)}
.review .revlist li{border-bottom:1px solid var(--line-soft)}
.pop .review .revlist label.ck{display:flex;align-items:center;gap:8px;padding:7px 2px;margin:0;font-size:13px;font-weight:400;color:var(--ink)}
.review .revlist .d{min-width:84px;color:var(--muted);font-weight:600;white-space:nowrap} .review .revlist .t{flex:1;min-width:0} .review .revlist small{color:var(--muted)}
.pop .sub.bad{color:var(--red)}
@media (max-width:820px){
  .inh .cols{grid-template-columns:minmax(0,1fr)} .inh .side{position:static}
  /* G8: the list alone; a row opens the side as a bottom sheet over a scrim (inhalt.js syncPhone) */
  .inh .side{display:none}
  .inh .side.open{display:flex;flex-direction:column;gap:12px;position:fixed;left:0;right:0;bottom:0;top:auto;z-index:41;max-height:85dvh;overflow-y:auto;overscroll-behavior:contain;background:var(--bg);border-radius:16px 16px 0 0;padding:12px 12px 20px;box-shadow:0 -10px 30px rgba(0,0,0,.25)}
  .inh .scrim{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.4)}
  .inh .sheetx{position:sticky;top:0;align-self:flex-end;z-index:2;flex:none;width:40px;height:40px;margin-bottom:-40px;border-radius:8px;font-size:24px;line-height:1;color:var(--ink);background:var(--bg)} @media (hover:hover) and (pointer:fine){.inh .sheetx:hover{background:var(--hover)}}
  .inh .side.open .shead{padding-right:44px}
  .inh .side.open .guard{position:absolute;min-height:100%;height:auto}
  .inh .vcal,.inh .vlist{min-width:0}
  .tform{position:static}
  .list .row{grid-template-columns:28px minmax(0,1fr) auto;row-gap:2px} .list .row .d{grid-column:2} .list .row .badge{grid-column:3;grid-row:1 / span 2}
  .inh .bar .vw{margin-left:0}
  .imp{width:100%} .imp>button{flex:1 1 auto}
  .cal{padding:8px}
  /* D242: the phone's own month -- the width of the screen, a number in a circle, a dot per entry,
     the selected day's entries under it. */
  .cal.compact{padding:10px 6px;border:0;background:transparent}
  .cal.compact .ch{padding:0 6px} .cal.compact .ch .hint{display:none} .cal.compact .ch b{font-size:19px;order:-1}
  .cal.compact .ch button.mv{border:0;width:40px;height:40px;font-size:22px;color:var(--blue-ink)}
  .cal.compact .ch .tdy{height:34px;padding:0 12px;border-radius:999px;background:var(--hover);color:var(--blue-ink);font-weight:600;font-size:14px}
  .cal.compact .dow{gap:0;font-size:11px;text-align:center} .cal.compact .dow span{padding:0;text-align:center}
  .cal.compact .days,.cal.compact .wk{gap:0}
  .cal.compact .day{min-height:48px;padding:4px 0 2px;border:0;border-radius:0;background:transparent;align-items:center;gap:3px;border-top:1px solid var(--line-soft)}
  .cal.compact .day.other{background:transparent;color:var(--faint)}
  .cal.compact .day .n{align-self:center;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:17px;font-weight:500;padding:0}
  .cal.compact .day.today .n{background:transparent;color:var(--primary);font-weight:700;padding:0}
  .cal.compact .day.sel{box-shadow:none} .cal.compact .day.sel .n{background:var(--ink);color:var(--panel)} .cal.compact .day.sel.today .n{background:var(--primary);color:var(--on-primary)}
  .cal.compact .day .dots{display:flex;gap:3px;height:6px} .cal.compact .day .dots i{width:6px;height:6px;border-radius:50%;background:var(--c-termin)}
  .cal.compact .day .dots i.fer{background:oklch(0.62 0.16 50)} .cal.compact .day .dots i.ext{background:var(--ghost)} .cal.compact .day .dots i.post{background:var(--c-beitrag)} .cal.compact .day .dots i.hin{background:var(--c-hinweis)}
  .cal .agenda{margin-top:10px;padding:0 6px} .cal .agenda h3{font-size:15px;margin:6px 0 8px}
  .cal .ag-list{display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:14px;overflow:hidden}
  .cal .ag-ev{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 14px;border-bottom:1px solid var(--line-soft);text-align:left;font-size:16px;color:var(--ink)} .cal .ag-ev:last-child{border-bottom:0} .cal .ag-ev:active{background:var(--hover)}
  .cal .ag-ev i{width:4px;align-self:stretch;border-radius:2px;background:var(--c-termin)} .cal .ag-ev.fer i{background:oklch(0.62 0.16 50)} .cal .ag-ev.ext i{background:var(--ghost)} .cal .ag-ev.post i{background:var(--c-beitrag)} .cal .ag-ev.hin i{background:var(--c-hinweis)}
  .cal .ag-add{width:100%;min-height:48px;margin-top:10px;border-radius:14px;background:var(--panel);border:1px solid var(--line);color:var(--blue-ink);font-weight:600;font-size:16px}
}
/* „Heute“ and the agenda are the phone's (D242). */
.cal:not(.compact) .tdy,.cal:not(.compact) .agenda{display:none}

/* ---- the Website tab (C5): the page in an iframe, the editor's layer over it ---- */
/* The canvas fills the frame under the mode strip; the page scrolls inside the
   iframe, so the layer (.ov) is the iframe's own box and its coordinates are the
   iframe's getBoundingClientRect() values as they come. */
.canvas{height:100%;min-height:0}
body.edit .canvas{height:calc(100% - 34px)}
.cwrap{position:relative;flex:1;min-height:0;display:flex}
.chost{flex:1;min-width:0;display:flex}
.chost .canvas-frame{height:100%;min-height:0}
/* The page stands as a window on the editor's ground, at most 1380 px wide (SPEC D189: wide enough to
   show how wide the content is; the mockup's .site had 1060); the
   layer is the window's own box, so its coordinates stay the iframe's. A phone keeps the full width. */
@media (min-width:821px){
  .cwrap{width:calc(100% - 36px);max-width:1380px;margin:18px auto 0;border-radius:10px 10px 0 0;box-shadow:0 1px 3px rgba(0,0,0,.08)}
  .chost .canvas-frame{border-radius:10px 10px 0 0}
}
/* clip, not hidden: a focused control must never scroll the layer itself */
.ov{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:clip}
.ov .ghost{position:absolute;pointer-events:none}
/* one block: the mockup's band outline, number badge and hint */
/* H1: lines, not boxes. The frame lies on the line shared with the neighbours (site.js cellFrames). */
.mk{position:absolute;pointer-events:none;box-sizing:border-box;border:1px solid rgba(28,29,33,.14);border-radius:2px}
.mk.hover{border:1.5px solid var(--blue);z-index:1}
.mk.sel{border:2px solid var(--blue);background:oklch(0.58 0.15 255 / 0.05);z-index:1}
.mk.locked{border-style:dotted} .mk.sel.locked{border-style:solid}
/* the badge sits inside the frame: its outer edge 8px from the frame's outer corner (the border is 1px, 2px selected) */
.mk .num{position:absolute;left:7px;top:7px;min-width:24px;height:24px;padding:0 6px;border-radius:7px;background:#1c1d21;color:#fff;font:700 12px/24px var(--efont);text-align:center;pointer-events:auto;z-index:2}
.mk.sel>.num{left:6px;top:6px}
.mk .num:focus-visible,.mk .num.sel{outline:2px solid var(--blue);outline-offset:2px} @media (hover:hover) and (pointer:fine){.mk .num:hover{outline:2px solid var(--blue);outline-offset:2px}}
.mk .num{box-shadow:0 0 0 2px #fff} .mk.hover>.num,.mk.sel>.num{box-shadow:0 0 0 2px #fff,0 0 0 4px oklch(0.58 0.15 255 / 0.18)}
.mk .num.lk{background:#6b6e76}
.mk .hint{position:absolute;left:42px;top:9px;font:600 11px/22px var(--efont);color:#5f636b;display:none;background:rgba(255,255,255,.94);padding:0 8px;border-radius:6px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:.02em}
.mk.hover .hint,.mk:focus-within .hint,.mk.sel .hint{display:block}
/* The Griff (D170): where a dragged block lands -- a blue line on that edge of the target. */
.ov .dropline{position:absolute;background:var(--blue);border-radius:2px;pointer-events:none;z-index:4}
.ov .dropline[hidden]{display:none}
body.grabbing,body.grabbing *{cursor:grabbing!important}
/* The divider of a two-column row (D170): a grab strip on the shared line, its split shown while it is used. */
.ov .divider{position:absolute;width:16px;transform:translateX(-50%);pointer-events:auto;cursor:col-resize;touch-action:none;z-index:2}
.ov .divider::before{content:"";position:absolute;left:7px;top:0;bottom:0;width:2px;border-radius:1px;background:transparent}
.ov .divider:focus-visible::before,.ov .divider.drag::before{background:var(--blue)} @media (hover:hover) and (pointer:fine){.ov .divider:hover::before{background:var(--blue)}}
.ov .divider:focus-visible{outline:0}
.ov .divider .dlbl{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:2px 7px;border-radius:10px;background:var(--blue);color:#fff;font:600 12px var(--efont);white-space:nowrap}
.ov .divider:focus-visible .dlbl,.ov .divider.drag .dlbl{display:block} @media (hover:hover) and (pointer:fine){.ov .divider:hover .dlbl{display:block}}
.ov .divider[hidden]{display:none}
/* "+ Baustein" between blocks (the mockup's .seam button) */
.ov .seam{position:absolute;transform:translate(-50%,-50%);height:26px;padding:0 11px;border-radius:13px;background:var(--panel);color:var(--blue-ink);border:1.5px solid rgba(28,29,33,.14);font:600 12px var(--efont);pointer-events:auto;z-index:4;white-space:nowrap;box-shadow:0 0 0 3px var(--panel)}
.ov .seam:focus-visible{border-color:var(--blue);background:color-mix(in srgb,var(--blue) 6%,var(--panel))} @media (hover:hover) and (pointer:fine){.ov .seam:hover{border-color:var(--blue);background:color-mix(in srgb,var(--blue) 6%,var(--panel))}}
/* H1: seams show only with their band's hover or selection (.on, set by site.js); still in the DOM and the Tab order */
.ov .seam:not(.on):not(:focus-visible){opacity:0}
/* „daneben“: a round ⊕ on the frame's right edge, its centre 20px inside it, so a full-width block's is never clipped */
.mk>.seam.beside{left:calc(100% - 19px);top:50%;width:26px;height:26px;padding:0;font-size:16px;line-height:23px;border-radius:50%;text-align:center}
.mk.sel>.seam.beside{left:calc(100% - 18px)}

/* the rich text's floating bar (the mockup's .ttb): never takes the focus */
.ttb{position:absolute;display:flex;z-index:6;background:var(--ink);color:var(--panel);border-radius:8px;padding:4px;gap:2px;box-shadow:var(--shadow-pop);font:600 13px var(--efont);pointer-events:auto}
.ttb button{color:var(--panel);min-width:32px;height:30px;border-radius:6px;display:flex;align-items:center;justify-content:center}
.ttb button[aria-pressed="true"]{background:rgba(255,255,255,.18)} @media (hover:hover) and (pointer:fine){.ttb button:hover{background:rgba(255,255,255,.18)}}
.ttb button.w{padding:0 8px;font-weight:500}
.ttb .sepr{width:1px;background:rgba(255,255,255,.25);margin:4px 3px}
/* the popovers of the page (block, item, chooser, library, link) */
/* a popover fits the canvas (ui.js place keeps it inside); a long one scrolls itself */
#main>.pop{max-height:calc(100dvh - 80px);overflow:auto}
.pop .iform,.pop .chooser{display:flex;flex-direction:column;gap:12px}
.pop .prow{display:flex;flex-direction:column}
.pop .prow>.switch{font-size:13px}
.pop .row2+.row2,.pop .prow .row2{margin-top:6px}
.pop label small{font-weight:400}
.pop .err{font-size:13px;color:var(--red)} .pop .err:empty{display:none}
.pop .picked{font-size:12px;color:var(--muted)} .pop .picked:empty{display:none}
.btn-text.mini{height:26px;padding:0 8px;font-size:12px}
.pop .badge.bad{margin-top:6px}
.drop{display:block;width:100%;border:1.5px dashed var(--dash);border-radius:8px;padding:22px;text-align:center;color:var(--muted);font-size:13px;background:transparent}
.drop b{display:block;color:var(--ink);font-weight:600;margin-bottom:2px}
.drop.over{border-color:var(--blue);background:var(--blue-soft)} @media (hover:hover) and (pointer:fine){.drop:hover{border-color:var(--blue);background:var(--blue-soft)}}
.drop:disabled{opacity:.6;cursor:progress}
.pop .pickgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;max-height:228px;overflow:auto;padding:2px}
.pop .pickgrid button{aspect-ratio:1;border-radius:6px;background:var(--line-soft);border:2px solid transparent;position:relative;overflow:hidden}
.pop .pickgrid button img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pop .pickgrid button.on{border-color:var(--ink)} @media (hover:hover) and (pointer:fine){.pop .pickgrid button:hover{border-color:var(--ink)}}
.pop .pickgrid button small{position:absolute;left:0;right:0;bottom:0;font-size:9px;background:rgba(0,0,0,.72);color:#fff;padding:1px 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pop .pickgrid .warn{position:absolute;right:3px;top:3px;width:16px;height:16px;border-radius:50%;background:var(--red);color:#fff;font:700 11px/16px var(--efont);font-style:normal;text-align:center}
.pop .pickgrid .addpic{background:none;border:1.5px dashed var(--dash);color:var(--muted);font-size:12px}
.pop .pickgrid .sub{grid-column:1/-1;margin:0}
/* the one picture grid (SPEC D213, Q4) in a gallery's sheet: chosen, dragged, its actions under it */
.pop .pgrid button{touch-action:none} .pop .pgrid button.lift{transform:scale(1.06) rotate(-2deg);box-shadow:var(--shadow-lift);z-index:3} .pop .pgrid button.gap{box-shadow:-5px 0 0 -1px var(--blue)}
.pgact{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px} .pgact span{font-size:12px;color:var(--muted);margin-right:auto} .pgact .red{color:var(--red)}
/* ---- Bild wählen (H5; chooser.html panel 2): filter row, 4-column grid, drop zone, the upload inline (.upl) ---- */
.pop.sheetpop .filt{display:flex;gap:6px;align-items:center} .filt .search{flex:1;min-width:0} .filt .ctl{flex:none}
.pop.sheetpop .pics{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;max-height:228px;overflow:auto;padding:2px}
.pics .pic{position:relative;aspect-ratio:4/3;border-radius:8px;background:var(--line-soft);border:2px solid transparent;overflow:hidden} @media (hover:hover) and (pointer:fine){.pics .pic:hover{border-color:var(--dash)}} .pics .pic[aria-pressed=true]{border-color:var(--ink)}
.pics .pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pics .pic small{position:absolute;left:0;right:0;bottom:0;font:10px/16px var(--efont);background:rgba(0,0,0,.45);color:#fff;padding:0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.pics .pic .warn{position:absolute;right:4px;top:4px;width:16px;height:16px;border-radius:50%;background:oklch(0.62 0.16 50);color:#fff;font:700 10px/16px var(--efont);font-style:normal;text-align:center}
.pics .pic.add{background:none;border:1.5px dashed var(--dash);color:var(--muted);font-size:12px;display:grid;place-items:center} @media (hover:hover) and (pointer:fine){.pics .pic.add:hover{border-color:var(--ink);color:var(--ink)}}
.pics .sub{grid-column:1/-1;margin:0}
.pop.sheetpop .body .drop{border-radius:10px;padding:14px;background:var(--on-soft)}
.pop.sheetpop .upl{display:grid;grid-template-columns:96px minmax(0,1fr) 24px;gap:12px;align-items:start;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--on-soft)}
.upl .th{width:96px;height:72px;border-radius:6px;object-fit:cover;background:var(--line-soft)} .upl .th.doc{display:grid;place-items:center;font-size:12px;font-weight:600;color:var(--muted)}
.pop.sheetpop .upl .sheet{padding:0;grid-template-columns:78px minmax(0,1fr)}
.upl .ctl input{flex:1;min-width:0} .upl .ctl small{font-size:13px;color:var(--muted)}
.upl .chip{height:auto;min-height:32px;padding:5px 10px;white-space:normal;text-align:left;line-height:1.25}
.upl .x{width:24px;height:24px;border-radius:6px;display:grid;place-items:center;color:var(--muted)} @media (hover:hover) and (pointer:fine){.upl .x:hover{background:var(--hover);color:var(--ink)}}
/* A sheet never scrolls sideways (owner, 2026-10-05): #main>.pop's overflow:auto outranked .sheetpop's. */
#main>.pop.sheetpop,.pop.fixed.sheetpop{overflow-x:hidden}
.pop.sheetpop .upl .sheet>*{min-width:0} .upl .chip{max-width:100%;white-space:nowrap}
/* The form takes the popover's whole width under its picture (2026-10-05: three columns were cramped). */
.pop.sheetpop .upl{grid-template-columns:minmax(0,1fr) 24px;row-gap:8px}
.pop.sheetpop .upl>.th{grid-column:1;grid-row:1;width:120px;height:80px}
.pop.sheetpop .upl>.x{grid-column:2;grid-row:1}
.pop.sheetpop .upl>.sheet{grid-column:1/-1;grid-row:2;grid-template-columns:92px minmax(0,1fr)}
.upl .x.sm{width:20px;height:20px;font-size:11px}
.pop.sheetpop .stepper{display:flex;justify-content:space-between;align-items:center} .pop.sheetpop .stepper[hidden]{display:none}
.pics .pic .nr{position:absolute;left:4px;top:4px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--ink);color:var(--panel);font:700 11px/18px var(--efont);text-align:center}
/* ---- Baustein einfügen (H4; chooser.html panel 1): search, grouped types, the strip naming the variant ---- */
.pop.sheetpop .body{padding-top:12px;padding-bottom:12px;display:flex;flex-direction:column;gap:10px}
.pop.sheetpop .search{height:32px;padding:0 10px 0 30px;border:1px solid var(--line);border-radius:8px;background:var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235f636b' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='m10.5 10.5 3 3'/%3E%3C/svg%3E") 9px center/14px no-repeat;color:var(--ink);font:inherit;font-size:13px;width:100%}
.pop.sheetpop .head .x{flex:none;width:30px;height:30px;border-radius:7px;display:grid;place-items:center;color:var(--muted)} @media (hover:hover) and (pointer:fine){.pop.sheetpop .head .x:hover{background:var(--hover);color:var(--ink)}}
.libgroups{display:flex;flex-direction:column;gap:10px;max-height:min(46dvh,380px);overflow:auto;padding:2px}
.libgroups .cap2{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-top:4px}
.libgroups .none{margin:8px 0;font-size:13px;color:var(--muted)}
.types{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.type{display:flex;gap:10px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:10px;text-align:left;background:var(--panel)} @media (hover:hover) and (pointer:fine){.type:hover{border-color:var(--dash);background:var(--on-soft)}} .type[aria-pressed=true]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.type .pv{width:56px;height:40px;border-radius:6px;background:var(--on-soft);border:1px solid var(--line-soft);flex:none;padding:5px;display:grid;gap:3px;align-content:start}
.pv i{display:block;border-radius:2px;background:#d4d0c8;height:3px} .pv i.p{background:#b9c9bf;height:auto;min-height:10px} .pv i.a{background:#c9a08a}
.pv i.tall{min-height:20px} .pv i.tall14{min-height:14px} .pv i.round{border-radius:50%;min-height:12px} .pv i.h6{height:6px} .pv i.h8{height:8px}
.pv i.w2{width:20%} .pv i.w3{width:30%} .pv i.w4{width:40%} .pv i.w5{width:50%} .pv i.w6{width:60%} .pv i.w7{width:70%} .pv i.w8{width:80%} .pv i.w15{width:15%}
.pv .g2,.pv .g3,.pv .g4,.pv .g7{display:grid;gap:3px} .pv .g2{grid-template-columns:1fr 1fr} .pv .g3{grid-template-columns:repeat(3,1fr)} .pv .g4{grid-template-columns:repeat(4,1fr)} .pv .g7{grid-template-columns:repeat(7,1fr);gap:2px}
.type b{display:block;font-size:13px;font-weight:600;line-height:1.2} .type small{display:block;font-size:11px;color:var(--muted);line-height:1.25;margin-top:2px}
.varnote{display:flex;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--on-soft);font-size:13px} .varnote[hidden]{display:none}
.varnote small{display:block;color:var(--muted);font-size:12px}
@media (max-width:820px){.types{grid-template-columns:1fr} .libgroups{max-height:none;overflow:visible}}
/* In the right column (E6) the library takes the column's height, one type per line. */
.rsheet .libgroups{max-height:none;overflow:visible}

/* ---- the property sheet (H2/H3; popover.html panels 1-4): the block's and the row's popover ----
   head (number, name, where, toolbar) / .sheet (92 px labels, 32 px controls) / foot. No inline style:
   the width alone is ui.js popover()'s. The controls (.sel, .seg, .chip, .tb) are ui.js's. */
.pop.sheetpop{padding:0;gap:0}
.pop.sheetpop>*{padding-left:16px;padding-right:16px}
.pop.sheetpop .head{position:sticky;top:0;z-index:3;background:var(--panel);border-radius:12px 12px 0 0;display:flex;align-items:center;gap:10px;padding-top:12px;padding-bottom:10px;border-bottom:1px solid var(--line-soft)}
.pop.sheetpop .head .ttl{display:flex;flex-direction:column;min-width:0;margin-right:auto}
.pop.sheetpop .head h2{display:block;font-size:15px;font-weight:600;margin:0;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pop.sheetpop .head small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pop.sheetpop .head .num{width:22px;height:22px;border-radius:50%;background:var(--ink);color:var(--panel);font-size:12px;font-weight:600;display:grid;place-items:center;flex:none}
.pop.sheetpop .head .menu{right:12px;top:46px}
.pop.sheetpop .head .menu button{font-size:13px;padding:7px 10px}
.pop.sheetpop .head .menu .none{padding:8px 10px;font-size:13px;color:var(--muted)}
.tb{display:flex;gap:2px;flex:none}
.tb button{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;color:var(--ink)} @media (hover:hover) and (pointer:fine){.tb button:hover{background:var(--hover)}} .tb button:disabled{color:var(--ghost);cursor:default} @media (hover:hover) and (pointer:fine){.tb button:disabled:hover{background:none}}
.tb .sep{width:1px;background:var(--line);margin:6px 3px}
.tb svg{width:16px;height:16px}
.pop.sheetpop .sheet{display:grid;grid-template-columns:92px minmax(0,1fr);column-gap:12px;row-gap:8px;align-items:center;padding-top:12px;padding-bottom:12px}
.sheet .prow{display:contents}
.sheet .prow.wide{display:block;grid-column:1/-1} .sheet .prow.wide>label{display:block;margin:0 0 6px}
.pop.sheetpop .sheet label{font-size:13px;font-weight:400;color:var(--muted);white-space:nowrap;margin:0}
.pop.sheetpop .sheet .cap2{grid-column:1/-1;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-top:6px} .pop.sheetpop .sheet .cap2:first-child{margin-top:0}
.sheet .cap2 :is(.lnk,.note){float:right;text-transform:none;letter-spacing:0;font-weight:500;color:var(--muted)} .sheet .cap2 .lnk{text-decoration:underline;text-underline-offset:2px;min-height:0;font-size:inherit} @media (hover:hover) and (pointer:fine){.sheet .cap2 .lnk:hover{color:var(--ink)}}
.sheet .hint{grid-column:2;font-size:12px;color:var(--muted);margin-top:-2px} .sheet .hint:empty{display:none}
.sheet .hint.all{grid-column:1/-1}
.sheet .hint .lnk{font:inherit;color:inherit;text-decoration:underline;text-underline-offset:2px} @media (hover:hover) and (pointer:fine){.sheet .hint .lnk:hover{color:var(--ink)}}
.ctl{display:flex;align-items:center;gap:6px;min-height:32px;min-width:0}
.ctl.off{opacity:.45;pointer-events:none}
.ctl>.sel{position:relative;flex:1;min-width:0}
.ctl>.sel>select{appearance:none;-webkit-appearance:none;width:100%;height:32px;padding:0 28px 0 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-size:13px}
@media (hover:hover) and (pointer:fine){.ctl>.sel>select:hover{border-color:var(--dash)}} .ctl>.sel>select:focus-visible{border-color:var(--ink);outline:2px solid var(--blue-ring);outline-offset:1px}
.ctl>.sel::after{content:"";position:absolute;right:11px;top:12px;width:7px;height:7px;border-right:1.6px solid var(--muted);border-bottom:1.6px solid var(--muted);transform:rotate(45deg);pointer-events:none}
.chip{height:32px;padding:0 10px;border:1px solid var(--line);border-radius:8px;font-size:12px;color:var(--muted);display:inline-flex;align-items:center;gap:6px;white-space:nowrap;background:var(--panel);flex:none} @media (hover:hover) and (pointer:fine){.chip:hover{border-color:var(--dash)}} .chip.on{color:var(--ink);border-color:var(--ink);background:var(--on-soft)}
.chip i{width:12px;height:12px;border-radius:3px;border:1.5px solid var(--dash);display:inline-block} .chip.on i{background:var(--ink);border-color:var(--ink)}
.ctl>.seg{display:inline-flex;flex-wrap:nowrap;border:1px solid var(--line);border-radius:8px;padding:2px;gap:2px;background:var(--panel)}
.ctl>.seg.scroll{flex:1;min-width:0}
.ctl>.seg button{height:26px;min-height:0;padding:0 10px;border:0;border-radius:6px;font-size:13px;color:var(--muted);background:none;display:inline-flex;align-items:center;gap:6px} @media (hover:hover) and (pointer:fine){.ctl>.seg button:hover{color:var(--ink)}} .ctl>.seg button.on{background:var(--primary);color:var(--on-primary);font-weight:600}
.ctl>.seg svg{width:18px;height:12px} .ctl>.seg rect{fill:currentColor;opacity:.35} .ctl>.seg rect.f{opacity:1}
.ctl .thumb{width:44px;height:32px;border-radius:6px;background:linear-gradient(135deg,#9bc7ad,#5b8fbf);flex:none;object-fit:cover}
.ctl .fn{font-size:13px;color:var(--ink);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ctl .bt{height:32px;padding:0 10px;border:1px solid var(--line);border-radius:8px;font-size:13px;white-space:nowrap;flex:none} @media (hover:hover) and (pointer:fine){.ctl .bt:hover{background:var(--hover)}}
.pop.sheetpop .sheet input[type=text]{height:32px;width:100%;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-size:13px}
/* I4: the chrome sheets (gestaltung.html right column): the letter badge, the head's switch, a text area, a date, the Einträge chips */
.pop.chromepop .head .num{width:auto;min-width:22px;height:22px;padding:0 7px;border-radius:7px;background:#5f636b;color:#fff;font-size:11px;font-weight:700;letter-spacing:.02em}
.pop.sheetpop .sheet textarea,.pop.sheetpop .sheet input[type=date]{width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-size:13px}
.pop.sheetpop .sheet textarea{min-height:68px;resize:vertical} .pop.sheetpop .sheet input[type=date]{height:32px;padding:0 10px}
.pop.sheetpop .sheet textarea:focus-visible,.pop.sheetpop .sheet input[type=date]:focus-visible,.pop.sheetpop .sheet input[type=text]:focus-visible{border-color:var(--ink);outline:2px solid var(--blue-ring);outline-offset:1px}
.ctl .thumb.none{background:var(--on-soft);border:1px dashed var(--dash)}
.ctl[data-testid="chrome-head-entries"]{flex-wrap:wrap}
.ctl .chx{height:26px;padding:0 9px;border:1px solid var(--line);border-radius:7px;font-size:12px;display:inline-flex;align-items:center;gap:6px;background:var(--panel);color:var(--ink)} @media (hover:hover) and (pointer:fine){.ctl .chx:hover{border-color:var(--ink)}} .ctl .chx i{font-style:normal;color:var(--ghost)}
.ctl>.sel.chxadd{flex:none;width:64px} .ctl>.sel.chxadd>select{height:26px;border-style:dashed;border-radius:7px;font-size:12px;padding:0 22px 0 9px} .ctl>.sel.chxadd::after{top:9px}
/* the chrome cells on the canvas: grey letter badges; the Kopfzeile's live outside the clipped layer, beside the pencil */
.mk.chrome .num,.hdl>.num{background:#5f636b}
.cwrap .hdl{position:absolute;inset:0;overflow:clip;pointer-events:none;z-index:4}
.cwrap .hdl[hidden]{display:none}
.hdl>.num{position:absolute;min-width:24px;height:24px;padding:0 6px;border-radius:7px;color:#fff;font:700 12px/24px var(--efont);text-align:center;white-space:nowrap;pointer-events:auto;z-index:2;box-shadow:0 0 0 2px #fff}
.hdl>.num:focus-visible{outline:2px solid var(--blue);outline-offset:2px} @media (hover:hover) and (pointer:fine){.hdl>.num:hover{outline:2px solid var(--blue);outline-offset:2px}}
.pop.sheetpop .confirm{margin:0 16px 12px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--on-soft);font-size:13px;display:flex;flex-direction:column;gap:8px}
.pop.sheetpop .confirm .r{display:flex;gap:6px;justify-content:flex-end}
.pop.sheetpop .confirm .r button{height:30px;padding:0 10px;border-radius:7px;font-size:13px;border:1px solid var(--line)} .pop.sheetpop .confirm .r .d{background:var(--red);border-color:var(--red);color:#fff;font-weight:600}
.pop.sheetpop .foot{position:sticky;bottom:0;z-index:3;background:var(--panel);border-radius:0 0 12px 12px;display:flex;align-items:center;gap:8px;padding-top:10px;padding-bottom:12px;border-top:1px solid var(--line-soft)}
.pop.sheetpop .foot .done{margin-left:auto;flex:none;height:32px;padding:0 14px;border-radius:8px;background:var(--primary);color:var(--on-primary);font-weight:600;font-size:13px}
.pop.sheetpop .foot .rm{flex:none;height:32px;padding:0 10px;border-radius:8px;font-size:13px;color:var(--red)} @media (hover:hover) and (pointer:fine){.pop.sheetpop .foot .rm:hover{background:var(--hover)}}
/* H3: the same sheet as the bottom sheet -- the grid at 100 px labels, scrolling inside, the head stays on top */
.pop.as-sheet.sheetpop{max-height:88dvh;overflow-y:auto;overscroll-behavior:contain;padding:0}
.pop.as-sheet.sheetpop::before{margin:8px auto 0}
.pop.as-sheet.sheetpop .head{border-radius:0}
.pop.as-sheet.sheetpop .sheet{grid-template-columns:100px minmax(0,1fr)}
.pop.as-sheet.sheetpop .foot{border-radius:0;padding-bottom:calc(12px + env(safe-area-inset-bottom))}

/* ---- Dateien (D3, dateien.js; the mockup's .chips/.fgrid/.ftile/.fdet) ---- */
/* the bottom band stays at the foot of the view when the list is short */
#view-dateien.open{display:flex;flex-direction:column} #view-dateien>.wrap{flex:1 0 auto;width:100%}
.home .fhead{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap} .home .fhead>div{flex:1;min-width:0}
.home .fnote{margin:0;font-size:12px;color:var(--muted)}
/* the filter row: the one segmented control (ui.js segmented, variant "chips") in the mockup's chip look */
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chips>button{border:1px solid var(--line);border-radius:999px;padding:5px 12px;font-size:13px;min-height:24px;background:var(--panel);color:var(--ink)}
@media (hover:hover) and (pointer:fine){.chips>button:hover{border-color:var(--ink)}}
.chips>button[aria-pressed="true"]{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.fgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.ftile .th .fext{position:absolute;inset:auto 10px 10px auto;min-width:44px;height:28px;padding:0 8px;border-radius:7px;display:grid;place-items:center;font:700 12px var(--efont);color:#fff} /* the document's type (D219) */
/* Dateien › Website by page (SPEC D217): the search and the order, a section per place */
.ftools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 10px} .ftools input[type=search]{flex:1;min-width:200px;height:40px;border:1px solid var(--line);border-radius:10px;padding:0 12px;font:inherit;background:var(--panel)}
.fsort{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)} .fsort select{height:40px;border:1px solid var(--line);border-radius:10px;padding:0 10px;font:inherit;color:var(--ink);background:var(--panel)}
.fsecs{display:flex;flex-direction:column;gap:22px} .fsech{display:flex;align-items:baseline;gap:8px;margin:0 0 8px} .fsech h3{margin:0;font-size:15px} .fsech .n{color:var(--muted);font-size:13px} .fsech .lnk{margin-left:auto}
.ftile .flabel{font-size:12px;color:var(--muted)}
.fempty{margin:0;color:var(--muted);padding:20px 0}
.ftile{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden;text-align:left;display:flex;flex-direction:column;position:relative;color:var(--ink)}
.ftile:focus-visible{border-color:var(--ink)} @media (hover:hover) and (pointer:fine){.ftile:hover{border-color:var(--ink)}} .ftile.sel{box-shadow:0 0 0 2px var(--blue);border-color:var(--blue)}
.ftile .th{height:110px;background:var(--line-soft);position:relative;overflow:hidden;flex:none}
.ftile .th img,.fdet .prev img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ftile .th.doc,.fdet .prev.doc{display:flex;align-items:center;justify-content:center}
.ftile .th.doc::before,.fdet .prev.doc::before{content:"";width:44px;height:56px;border:2px solid var(--dash);border-radius:4px;background:var(--panel)}
.ftile .fb{padding:10px 12px;display:flex;flex-direction:column;gap:4px;min-width:0}
.ftile .fb b{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ftile .fb>span:not(.badge){font-size:12px;color:var(--muted)}
.fbulk{margin-top:14px}
.fdet{position:sticky;top:0;width:320px;flex:none;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px;font-size:14px;align-self:flex-start}
.fdet.empty{color:var(--muted);font-size:13px}
.home .fdet h3{font-size:14px;margin:0;font-weight:600;text-transform:none;letter-spacing:0;color:var(--ink);overflow-wrap:anywhere}
.fdet .kv{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted);align-items:flex-start} .fdet .kv b{color:var(--ink);font-weight:500}
.fdet .kv>.switch{font-size:13px;color:var(--ink)}
.fdet .prev{height:140px;border-radius:8px;background:var(--line-soft);position:relative;overflow:hidden;flex:none}
.fdet .lnk{min-height:24px;padding:0;text-align:left;font:inherit;font-size:13px;color:var(--ink);text-decoration:underline;text-underline-offset:2px}
.fdet .kv .hint{font-size:12px;color:var(--muted)}
.fdet .falt label{font-size:12px;color:var(--muted);font-weight:600;display:block;margin-bottom:4px} .fdet .falt label small{font-weight:400}
.fdet .falt input{font:inherit;width:100%;border:1px solid var(--line);border-radius:8px;padding:7px 9px;color:var(--ink);background:var(--panel)}
.fdet .r{display:flex;gap:6px;flex-wrap:wrap}
.fdet .btn-line:disabled,.fbulk .btn-line:disabled,.home .fhead .btn-dark:disabled{opacity:.45;cursor:default}
.fdet .fnote{font-size:12px;color:var(--muted)}
.pop .flist{margin:0;padding-left:18px;max-height:180px;overflow:auto;font-size:13px;overflow-wrap:anywhere}
/* the badges on a dark panel: the light theme's inks are too dark there */
:root[data-theme="dark"] .ftile .badge.warn,:root[data-theme="dark"] .fdet .badge.warn{color:oklch(0.8 0.12 60)}
:root[data-theme="dark"] .ftile .badge.bad,:root[data-theme="dark"] .fdet .badge.bad{color:oklch(0.8 0.12 25)}
:root[data-theme="dark"] .ftile .badge.ok,:root[data-theme="dark"] .fdet .badge.ok{color:oklch(0.82 0.1 160)}
/* phone: two across; the chosen file's column above the grid, none while nothing is chosen */
@media (max-width:820px){
  .home .two.files{flex-direction:column;align-items:stretch;gap:16px}
  .home .two.files>.fdet{order:-1;position:static;width:auto;align-self:stretch}
  .home .two.files>.fdet.empty{display:none}
  .fgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .ftile .th{height:88px}
  .fdet .prev{height:120px}
}

/* ---- the Beitrag (C6, beitrag.js + crop.js; the mockup's .fld/.flab, .ein/.tag,
   .plusrow, .cropbar/.crophint, .prevsec/.pvpick,
   .menu.ins) -- drawn over the iframe like the rest of the layer ---- */
.wk-post{position:absolute;inset:0;pointer-events:none}
.wk-fld{position:absolute;box-sizing:border-box;pointer-events:none;border:1px solid rgba(28,29,33,.14);border-radius:2px}
.wk-fld.on{border:2px solid var(--blue)}
.wk-fld .flab{position:absolute;left:7px;top:7px;max-width:calc(100% - 20px);padding:3px 4px;border-radius:4px;background:var(--panel);font:600 11px/1 var(--efont);letter-spacing:.05em;text-transform:uppercase;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.wk-fld.on .flab,.wk-ein.sel .wk-tag{left:6px}
.wk-fld.on .flab{top:6px}
/* the Titel's frame starts at the article's corner, under its badge „1“: the label beside the badge (7 + 24 + 8 + 1) */
.wk-fld[data-testid="post-title"] .flab{left:39px} .wk-fld.on[data-testid="post-title"] .flab{left:38px}
.wk-ein{position:absolute;box-sizing:border-box;pointer-events:none;z-index:3;border:1px solid rgba(28,29,33,.14);border-radius:2px}
.wk-ein.sel{border:2px solid var(--blue);background:oklch(0.58 0.15 255 / 0.05)}
.wk-ein .wk-tag{position:absolute;left:7px;top:7px;min-height:24px;padding:0 8px;border-radius:6px;background:rgba(0,0,0,.62);color:#fff;font:600 11px/24px var(--efont);pointer-events:auto;white-space:nowrap}
.wk-ein .wk-tag:focus-visible{background:var(--blue);outline:2px solid var(--blue);outline-offset:2px} @media (hover:hover) and (pointer:fine){.wk-ein .wk-tag:hover{background:var(--blue);outline:2px solid var(--blue);outline-offset:2px}}
.wk-plus{position:absolute;transform:translate(-50%,-50%);height:24px;padding:0 10px;border-radius:12px;background:var(--panel);color:var(--blue-ink);border:1.5px dashed color-mix(in srgb,var(--blue) 55%,transparent);font:600 12px var(--efont);pointer-events:auto;z-index:4;white-space:nowrap}
.wk-plus:focus-visible{border-color:var(--blue);background:color-mix(in srgb,var(--blue) 6%,var(--panel))} @media (hover:hover) and (pointer:fine){.wk-plus:hover{border-color:var(--blue);background:color-mix(in srgb,var(--blue) 6%,var(--panel))}}
.cropzone{position:absolute;z-index:1;pointer-events:auto;cursor:grab;touch-action:none;border-radius:6px}
.cropzone.dragging{cursor:grabbing}
.cropzone:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
.cropzone .crophint{position:absolute;right:10px;bottom:22px;display:none;padding:2px 7px;border-radius:6px;background:rgba(0,0,0,.5);color:#fff;font:600 11px var(--efont);pointer-events:none}
.cropzone:focus-visible .crophint{display:block} @media (hover:hover) and (pointer:fine){.cropzone:hover .crophint{display:block}}
.cropbar{position:absolute;z-index:2;width:56px;height:10px;margin-top:2px;border-radius:5px;background:rgba(255,255,255,.92);box-shadow:0 1px 4px rgba(0,0,0,.4);cursor:ns-resize;touch-action:none;pointer-events:auto}
.cropbar::before{content:"";position:absolute;inset:-8px -4px}
.cropbar:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
/* „Beitrag schreiben“: Schnell or Im Editor (beitrag.js askHow), and the quick form in Inhalt's side (inhalt.js quickBeitrag) */
.how{display:flex;flex-direction:column;gap:8px} .how .hd{margin:0 0 2px;font-size:15px}
.howopt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel)} @media (hover:hover) and (pointer:fine){.howopt:hover{border-color:var(--ink)}} .howopt span{font-size:13px;color:var(--muted)}
.qbfield{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:8px;background:var(--panel);min-width:0}
.qbbar{display:flex;flex-wrap:wrap;gap:2px;padding:4px;border-bottom:1px solid var(--line-soft)} .qbbar button{min-width:32px;height:30px;padding:0 8px;border-radius:6px;font-size:13px} @media (hover:hover) and (pointer:fine){.qbbar button:hover{background:var(--hover)}}
.qbrich{min-height:180px;max-height:50dvh;overflow:auto;padding:8px 10px;font-size:14px;line-height:1.5;outline:none} .qbrich:focus-visible{box-shadow:inset 0 0 0 2px var(--blue)} .qbrich p{margin:0 0 .6em} .qbrich ul,.qbrich ol{margin:0 0 .6em;padding-left:1.4em}
/* The Beitrag window (SPEC D213): Inhalt's side, one window for new and existing */
.bwscreen{display:flex;flex-direction:column;gap:14px} .bwscreen[hidden]{display:none}
.bwpics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px} .bwpics.gapend::after{content:"";border-radius:10px;box-shadow:inset 0 0 0 2px var(--blue)}
.bwpic{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--hover);touch-action:none} .bwpic img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.bwpic .star{position:absolute;left:6px;top:6px;padding:2px 7px;border-radius:999px;background:var(--panel);color:var(--ink);font-size:11px;font-weight:700}
.bwpic.add{display:flex;align-items:center;justify-content:center;background:var(--panel);box-shadow:inset 0 0 0 1.5px var(--line);font-weight:600;color:var(--muted);touch-action:auto}
.bwpic.lift{transform:scale(1.06) rotate(-2deg);box-shadow:var(--shadow-lift);z-index:3} .bwpic.gap{box-shadow:-5px 0 0 -1px var(--blue)}
.bwdocs{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-direction:column;gap:6px}
.bwdocs li{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 6px;border:1px solid var(--line);border-radius:8px;background:var(--panel)} .bwdocs li.dragging{opacity:.5}
.bwdocs .grip{cursor:grab;color:var(--faint);padding:0 4px;font-size:16px;touch-action:none} .bwdocs .kind{font-size:11px;font-weight:700;color:var(--muted);min-width:34px}
.bwdocs input{flex:1;min-width:0} .bwdocs .rm{width:36px;height:36px;border-radius:8px;font-size:18px} @media (hover:hover) and (pointer:fine){.bwdocs .rm:hover{background:var(--hover)}}
.bwbig{display:flex;flex-direction:column;gap:6px} .bwbig img{width:100%;max-height:50dvh;object-fit:contain;border-radius:10px;background:var(--hover)} .bwwhere{font-size:12px;color:var(--muted)}
.bwacts{display:grid;grid-template-columns:repeat(4,1fr);gap:6px} .bwacts .btn-line{height:auto;min-height:44px;padding:6px 4px;justify-content:center;white-space:normal;text-align:center;font-size:13px}
.bwscreen .red{color:var(--red);border-color:currentColor;align-self:flex-start}
.qblink{display:flex;gap:6px;padding:6px;border-top:1px solid var(--line-soft)} .qblink input{flex:1;min-width:0;height:30px;padding:0 8px;border:1px solid var(--line);border-radius:6px;font:inherit}
.pop .f2{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* ---- phone (C7): below 820 px ---- */
/* The tab strip is Home / Inhalt / Website / Dateien (the rest under „Mehr“, D154; a [data-desktop]
   control is hidden), Home is the landing page (app.js), a popover is
   the bottom sheet above, the change list too (the same popover), the Beitrag keeps
   its "+" at the left margin and the floating bar sits at the bottom of the canvas. */
@media (max-width:820px){
  .app{grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr)} /* the header never widens the page (D154) */
  /* the header wraps: the tabs and the account on the first line, the tools under them */
  .top{height:auto;flex-wrap:wrap;row-gap:6px;column-gap:6px;padding:calc(6px + env(safe-area-inset-top,0px)) 8px 6px;white-space:normal;background:var(--bg);border-bottom:0;position:sticky;top:0} /* D231: on the ground; sticky at the top edge, so iOS 26 takes its colour for the status bar instead of blurring the row under it */
  .top::after{content:"";flex-basis:100%;height:0;order:10}
  /* SPEC D220: the tabs are a bar at the bottom, an icon over each word; „Mehr“ opens upwards */
  .app{padding-bottom:calc(60px + env(safe-area-inset-bottom));box-sizing:border-box}
  .top::after{display:none}
  .top .views{position:fixed;left:0;right:0;bottom:0;z-index:30;margin:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;
    padding:4px 4px calc(4px + env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--line);box-shadow:0 -4px 16px rgba(16,24,40,.05)}
  .top .vtab,#btnMore{position:relative;height:52px;width:100%;padding:4px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11.5px;border-radius:10px;min-width:0}
  .top .vtab .ico{display:block;flex:none} .top .vtab .ico.fill,.top .vtab[aria-current="page"] .ico:not(.fill){display:none} .top .vtab[aria-current="page"] .ico.fill{display:block}
  .top .vtab .lbl{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .top .vtab[aria-current="page"]{background:none;color:var(--blue-ink);font-weight:650} @media (hover:hover) and (pointer:fine){.top .vtab[aria-current="page"]:hover{background:none;color:var(--blue-ink)}}
  #btnMore .caret{display:none} .top .vtab .n.todo{position:absolute;top:2px;left:calc(50% + 6px)}
  .top .views .mwrap{position:static;display:block;min-width:0}
  .top .views .menu{position:absolute;top:auto;bottom:calc(100% + 6px);left:8px;right:8px;margin:0}
  .donebar.createbar{bottom:calc(60px + env(safe-area-inset-bottom))}
  /* the account on the second line, after the tools (D154): the first keeps room for the tabs and „Mehr“ */
  .top>.mwrap:last-child{order:40;margin-left:auto}
  .top .vtab.over{display:none}
  .top .more{display:block}
  .top>*{order:20}
  .top .sp{order:25}
  .top>.mwrap:has(#btnSend){order:30}
  .seg2 button{padding:5px 9px}
  .btn-line,.btn-dark{padding:0 12px}
  /* menus open under the header, across it */
  .top .mwrap{position:static}
  .top .menu{left:8px;right:8px;top:auto;margin-top:6px;min-width:0}
  .stage{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr)}
  /* Gestaltung is a bottom sheet (D8, D5), its button the palette icon alone */
  .gpanel.open{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;max-height:72dvh;z-index:65;border-left:0;border-top:1px solid var(--line);border-radius:14px 14px 0 0;box-shadow:0 -12px 32px rgba(0,0,0,.22)}
  .gpanel .head{border-radius:14px 14px 0 0} .gpanel .foot{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  #btnGest{padding:0 10px}
  #btnGest .lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  [data-desktop]{display:none!important}
  /* the mode strip: the page's name and "Fertig" on one line */
  .modebar{gap:10px;padding:0 12px}
  /* D160: on a phone the strip is there in Ansehen too (Website tab), with „Seiten“ first. */
  body[data-view="site"] .modebar{display:flex}
  body:not(.edit) .modebar .mb-edit{display:none}
  .modebar .mb-tree{display:inline-flex} .modebar .mb-word{display:none}
  .modebar.post .mb-tree,.modebar.post .mb-info{display:none}
  /* The tree and the Seiteninfo as bottom sheets (ui.js sideSheet, the Inhalt pattern). */
  .ptree.open,.pinfo.open{display:flex;flex-direction:column;position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;z-index:41;max-height:75dvh;overflow-y:auto;overscroll-behavior:contain;background:var(--panel);border:0;border-radius:16px 16px 0 0;box-shadow:0 -10px 30px rgba(0,0,0,.25)}
  .ptree.open .pt-list{overflow:visible}
  .stage > .scrim{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.4)}
  .ptree .sheetx,.pinfo .sheetx{position:sticky;top:0;align-self:flex-end;z-index:2;flex:none;width:40px;height:40px;margin-bottom:-40px;border:0;border-radius:8px;font-size:24px;line-height:1;color:var(--ink);background:var(--panel);cursor:pointer}
  .pinfo.open .pi-h .icon{display:none}
  .ptree.open .pt-head{padding-right:52px}
  .ptree.open .pt-more,.ptree.open .pt-info{display:grid} .ptree.open .pt-fold{display:none} /* no hover on a phone: ⓘ and ⋯ on every row, no fold in the sheet (D184) */
  .modebar b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .modebar .m{display:none}
  .donebar{padding:10px 12px;gap:8px 12px}
  .donebar>div{flex:1 1 auto;min-width:0}
  .donebar>div br,.donebar>div span{display:none}
  .donebar .btn-dark{white-space:normal;height:auto;min-height:40px;padding:6px 12px;text-align:center;line-height:1.25;max-width:62%}
  /* a new Beitrag's bar: its line on top, the three buttons sharing the row under it; the
     stage ends where the bar begins, so the text's toolbar (.ttb.bottom) stays above it */
  .donebar.createbar{flex-wrap:wrap;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  .createbar>div:first-child{flex:1 1 100%}
  .createbar .r{flex:1 1 100%;margin-left:0}
  .createbar .r>button{flex:1 1 0;min-width:0;min-height:44px;height:auto;white-space:normal;line-height:1.2;justify-content:center;text-align:center;padding:4px 8px}
  .createbar .btn-dark{max-width:none}
  body.creating .stage{padding-bottom:var(--createbar-h,calc(96px + env(safe-area-inset-bottom)))}
  /* the toast above the bottom band, and above a new Beitrag's bar */
  .toast{bottom:calc(84px + env(safe-area-inset-bottom))} body.creating .toast{bottom:calc(108px + env(safe-area-inset-bottom))}
  /* the Beitrag's bar at the bottom (site.js) */
  .ttb.bottom{left:8px;right:8px;top:auto;bottom:10px;justify-content:center;flex-wrap:wrap}
  .ttb.bottom button{min-width:40px;height:36px}
}
/* ---- Zugänge (D4, zugaenge.js; the mockup's .acc/.arow and its inline form) ---- */
.ahead{display:flex;align-items:flex-start;gap:16px} .ahead .grow{flex:1;min-width:0}
.acc{display:flex;flex-direction:column;gap:8px}
.arow{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:grid;grid-template-columns:1.2fr 1.6fr auto;gap:14px;align-items:center}
.arow b{display:block;overflow-wrap:anywhere} .arow b.role{font-weight:500} .arow b.role small{color:var(--muted);font-size:13px;font-weight:400}
.arow span{font-size:13px;color:var(--muted);display:block;overflow-wrap:anywhere}
.arow .r{display:flex;gap:6px;justify-content:flex-end} .arow .btn-line{height:32px;font-size:13px;padding:0 10px}
.aword{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--panel)} .aword small{color:var(--muted);font-weight:400}
.aword .r{display:flex;gap:6px} .aword input{height:32px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;max-width:260px;flex:1}
.arow .btn-line:disabled{opacity:.5;cursor:default}
/* SPEC D156: the website field's state under the role; a person the operator switched off, greyed. */
.arow .aweb{margin-top:2px} .arow .aweb .btn-text{font-size:13px;min-height:32px;padding:0 6px;vertical-align:baseline}
.arow.off{opacity:.6}

/* ---- between the phone and the wide screen (D0): 821–1480 px ---- */
/* One nowrap line needs ~1462 px for the Sekretariat's Website tab once
   "Veröffentlichen (n)" counts (C9); school laptops are 1366 and 1280 wide.
   Below 1480 the header wraps as the phone's does -- "Werkstatt", the tabs and
   the account on the first line, the tools under them -- at desktop sizes. */
@media (min-width:821px) and (max-width:1399px){
  .app{grid-template-rows:auto minmax(0,1fr)}
  .top{height:auto;flex-wrap:wrap;row-gap:6px;padding:8px 16px}
  .top::after{content:"";flex-basis:100%;height:0;order:10}
  .top .sname{order:1}
  /* wrapped (as before I6): „Werkstatt“ stands on the first line beside the tabs, not as a 1 px box of its own */
  .top h1{position:static;width:auto;height:auto;overflow:visible;clip:auto;font-size:15px;font-weight:700;margin:0 8px 0 0;order:1}
  .top .views{order:2;margin-right:auto}
  .top>.mwrap:last-child{order:3}
  .top>*{order:20}
  .top .sp{order:25}
  .top>.mwrap:has(#btnSend){order:30}
}
@media (max-width:820px){.inh .side.open,.ptree.open,.pinfo.open{bottom:calc(60px + env(safe-area-inset-bottom,0px))} .inh .side.open{max-height:calc(85dvh - 60px)} .ptree.open,.pinfo.open{max-height:calc(75dvh - 60px)}}
@keyframes wk-up{from{transform:translateY(24px);opacity:.6}}
.pop.as-sheet,.inh .side.open,.ptree.open,.pinfo.open,.gpanel.open{animation:wk-up var(--t-sheet) var(--ease)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.inh .row .busy{color:var(--blue-ink);font-weight:600}

/* Zugänge (SPEC D200): the person row and the „Berechtigungen“ sheet */
/* SPEC D200: the row's button names the preset (fixed width); „Berechtigungen“, the one sheet for a person. */
.arow .perm{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;width:136px;height:32px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font-size:13px}
@media (hover:hover) and (pointer:fine){.arow .perm:hover{border-color:var(--ink)}} .arow .perm b{font-weight:600} .arow .perm::after{content:"›";color:var(--muted)}
.arow .asay{color:var(--ink)}
.permsheet{display:flex;flex-direction:column;gap:2px} .permsheet .seg{margin-bottom:8px} .permsheet .pnote{margin:4px 0 8px;font-size:13px;color:var(--muted)}
/* Zugänge (SPEC D218): the role as a row that asks before it changes */
.pop.sheetpop .permsheet{display:flex;flex-direction:column;align-items:stretch;gap:2px} .pop.sheetpop .permsheet .plist label{justify-content:flex-start} .pop.sheetpop .permsheet .plist input[type=checkbox]{flex:none;width:auto;margin:0} .pop.sheetpop .permsheet .plist.two{display:block} .pop.sheetpop .permsheet .plist label{white-space:normal;min-width:0} /* one column: the role, the rows, the Ablage (not the sheets' label grid) */
.prole .pline{display:flex;align-items:center;justify-content:space-between;gap:10px} .prole small{color:var(--muted)}
.pask{margin-top:8px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--on-soft)} .pask p{margin:0 0 8px;font-size:13px} .pask .r{display:flex;gap:8px;justify-content:flex-end}
.pfields{padding:0 0 10px} .pfields label{font-size:12px;color:var(--muted);font-weight:600;display:block;margin-bottom:4px}
.pfields input{font:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:7px 9px;width:100%}
.prow-p{border-top:1px solid var(--line-soft)} .prow-p .ph{display:flex;align-items:center;gap:10px;min-height:44px}
.prow-p .ph input{width:18px;height:18px;flex:none} .prow-p .ph b{flex:none;font-weight:600;font-size:14px}
.prow-p .pmore{flex:1;display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:44px;min-width:0;text-align:right}
.prow-p .ps{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--muted)}
.prow-p .pmore i{font-style:normal;color:var(--muted);transition:transform .12s} .prow-p.open .pmore i{transform:rotate(90deg)}
.plist{padding:0 0 10px 28px} .plist .pcols{display:flex;justify-content:space-between;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--faint);padding:4px 6px 2px}
.plist .pline{display:flex;align-items:center;gap:8px} .plist .pline>label:first-child{flex:1;min-width:0}
.plist label{display:flex;align-items:center;gap:8px;min-height:32px;padding:0 6px;border-radius:7px;font-size:14px} @media (hover:hover) and (pointer:fine){.plist label:hover{background:var(--hover)}}
.plist .sub{flex:none;width:132px;justify-content:center} .plist .pline.dis label{color:var(--ghost)} .plist small{margin-left:auto;font-size:12px;color:var(--faint)}
/* Zugänge on a phone (D154): a person's card stacks -- name, what she may, then its buttons */
@media (max-width:820px){.arow{grid-template-columns:minmax(0,1fr);gap:8px;padding:12px} .arow .r{justify-content:flex-start;flex-wrap:wrap} .ahead{flex-wrap:wrap} .aword .r{flex-wrap:wrap} .plist .sub{width:96px}}

/* the one change list (changes.js openList): its foot carries the send button at the bottom right */
.recent .pf{display:flex;align-items:center;gap:10px;flex-wrap:wrap} .recent .pf>span{flex:1;min-width:180px} .recent .pf .r{display:flex;gap:8px;margin-left:auto}
.recent .tx span.bad{color:var(--red)} .recent .dot.bad{background:var(--red)} .recent .x.locked{visibility:visible;width:auto;font-size:11px;color:var(--muted)}

/* Gestaltung „Eigene Farben“ (gestaltung.js customColorRows) */

/* On a phone or any touch screen a field reads at 16 px at least: iOS zooms the page into a smaller one
   when it gets the focus (mobile audit 2026-10-08). The code fields keep their 22 px. */
@media (max-width:820px),(pointer:coarse){
  input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file]),select,textarea{font-size:16px!important}
  .lock .code input,.gate-card input{font-size:22px!important}
}
/* SPEC D90: Jedes Jahr, Dienste, Rechtliches (mockups/schuljahr.html) -- the Inhalt list's own rows and sheet, plus: */
.inh .bar .off{display:none}
.inh .seg button .n.todo{color:oklch(0.45 0.16 50)} :root[data-theme="dark"] .inh .seg button .n.todo{color:oklch(0.8 0.12 60)}
.inh .yearbar{display:flex;align-items:center;gap:10px;padding:8px 14px;border-bottom:1px solid var(--line)} .inh .yearbar b{font-size:14px}
.list .row .t b small.yr{display:inline;margin-left:4px;font-size:11px;font-weight:600;color:var(--muted)}
.inh .side .hsheet .pv{margin:0;padding:10px 12px;border-radius:8px;background:var(--on-soft);font-size:13px;line-height:1.45}
/* The areas' rows as the mockup has them (owner 2026-10-11): „Ergänzen“ in orange for what is to do, a word for what is on its way, a chevron otherwise; the group's count. */
.inh .list .row.todo{box-shadow:inset 3px 0 0 oklch(0.62 0.16 50)} .inh .list .row.todo.cur{box-shadow:inset 3px 0 0 oklch(0.62 0.16 50),inset 0 0 0 1px var(--blue-ring)}
.inh .list .row .go{justify-self:end;height:30px;padding:0 12px;border-radius:7px;font-size:13px;font-weight:600;white-space:nowrap;display:inline-flex;align-items:center;background:oklch(0.62 0.16 50 / 0.15);color:oklch(0.45 0.16 50)}
.inh .list .row .state{justify-self:end;font-size:12.5px;color:var(--muted);white-space:nowrap} .inh .list .row .chev{justify-self:end;color:var(--muted);font-size:18px;line-height:1;padding:0 4px}
.inh .list .grp .n{margin-left:auto;font-variant-numeric:tabular-nums} .inh .list .grp.todo{color:oklch(0.45 0.16 50)}
:root[data-theme="dark"] .inh .list .row .go,:root[data-theme="dark"] .inh .list .grp.todo{color:oklch(0.82 0.12 60)}
/* Personen & Kontakt (SPEC D115, personen.js): the derived line under the list, the sheet's chips, photo, hours rows and preview. */
.inh .list p.sub{margin:0;padding:4px 14px 8px;font-size:12px;color:var(--muted)} .inh .list p.leads{padding-top:10px;font-size:13px;color:var(--ink)}
.inh .side .hsheet .row2{display:flex;align-items:center;gap:8px;flex-wrap:wrap} .inh .side .hsheet .pav{width:36px;height:36px;border-radius:50%;object-fit:cover}
.inh .side .hsheet .pcard{display:flex;align-items:center;gap:10px} .inh .side .hsheet .pcard>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.inh .side .hsheet .phead{display:flex;flex-direction:column;gap:8px} .inh .side .hsheet .sub.todo{padding:8px 10px;border-radius:8px;background:oklch(0.62 0.16 50 / 0.12);color:var(--ink)}
.inh .side .hsheet .row2 input[type=text]{flex:1;min-width:0} .inh .side .hsheet .rm:disabled{opacity:.4;cursor:default}
/* the same sheet as the page editor's popup (personen.js openPersonSheet) */
.pop[data-kind="person"] .inh .side{position:static;display:block} .pop[data-kind="person"] .sidecard{border:0;box-shadow:none;border-radius:0} .inh .side .hsheet .pcard b{font-size:15px;font-weight:500} .inh .side .hsheet .pcard small{color:var(--muted)}
.inh .side .hsheet .chips .chip{border-radius:8px;height:28px} .inh .side .hsheet .hours input[type=time]{width:auto}
.inh .side .hsheet .barriers{display:flex;flex-direction:column;gap:10px} .inh .side .hsheet .barrier{display:flex;flex-direction:column;gap:8px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:10px} .inh .side .hsheet .barrier legend{padding:0 4px;font-size:12px;font-weight:600;color:var(--muted)} .inh .side .hsheet .barrier .rm{align-self:flex-start;height:28px;padding:0 8px;border-radius:8px;font-size:13px;color:var(--red)}
/* Plan v2 B0: the Inhalt tab's orange count (mockups/schuljahr.html .todo-n) */
.vtab .n.todo{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:oklch(0.62 0.16 50 / 0.16);color:oklch(0.45 0.16 50);font-size:11px;font-weight:700} :root[data-theme="dark"] .vtab .n.todo{color:oklch(0.8 0.12 60)} .vtab[aria-current="page"] .n.todo{background:var(--panel);color:oklch(0.45 0.16 50)} :root[data-theme="dark"] .vtab[aria-current="page"] .n.todo{color:oklch(0.8 0.12 60)}

/* „Hilfe – an den Support schreiben“ (support.js, D130) and the „!“ of something begun, not sent */
.pending::after{content:"!";display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:5px;border-radius:50%;background:var(--red);color:#fff;font-size:11px;font-weight:800}
.supp{display:flex;flex-direction:column;gap:8px} .supp.card{max-width:720px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:18px} .supp .ph h2{font-size:15px;margin:0 0 4px}
.supp .lbl{font-size:13px;font-weight:600}
.supp textarea{width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-size:14px;resize:vertical;min-height:96px}
.supp .shots{display:flex;flex-wrap:wrap;gap:8px}
.supp .shot{position:relative;display:flex;flex-direction:column;gap:2px;width:84px}
.supp .shot img,.supp .shot .pdf{width:84px;height:60px;border:1px solid var(--line);border-radius:8px;object-fit:cover;background:var(--on-soft)}
.supp .shot .pdf{display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:var(--muted)}
.supp .shot .nm{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.supp .shot .x{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;background:var(--panel);border:1px solid var(--line);font-size:14px;line-height:1}
.supp .attach{height:60px;padding:0 12px;border:1px dashed var(--dash);border-radius:8px;font-size:13px;color:var(--blue-ink);background:none} @media (hover:hover) and (pointer:fine){.supp .attach:hover{border-color:var(--ink)}}
.supp .where{font-size:12.5px;line-height:1.6;color:var(--muted);padding:8px 10px;border-radius:8px;background:var(--on-soft)} .supp .where b{color:var(--ink);font-weight:600}
.supp kbd{display:inline-block;padding:0 5px;border:1px solid var(--line);border-bottom-width:2px;border-radius:4px;background:var(--panel);font:inherit;font-size:11.5px;color:var(--ink)}
.supp .sub:empty{display:none} .supp .sub{font-size:13px;color:var(--red)}

/* The Symbol picker (ui.js symbolPicker): a dropdown-like button, a grid inline under it */
.sympick{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.symface{display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font-size:14px;text-align:left}
.symface svg{width:22px;height:22px;flex:none} .symface .none{width:22px;text-align:center;color:var(--muted)} .symface b{font-weight:500;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .symface .car{color:var(--muted);font-size:11px}
@media (hover:hover) and (pointer:fine){.symface:hover{border-color:var(--ink)}}
.symgrid{border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:var(--shadow-pop);padding:10px;display:flex;flex-direction:column;gap:8px}
.symgrid[hidden]{display:none}
.symgrid input{font:inherit;font-size:14px;border:1px solid var(--line);border-radius:8px;padding:6px 9px;background:var(--panel);color:var(--ink)}
.symgrid .g{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;max-height:260px;overflow:auto}
.symgrid .g button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px 8px;border:1px solid transparent;border-radius:8px;font-size:11px;color:var(--muted);min-width:0}
.symgrid .g button[hidden]{display:none}
.symgrid .g button svg{width:32px;height:32px;color:var(--ink)} .symgrid .g button .none{height:32px;font-size:20px;line-height:32px}
.symgrid .g button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (hover:hover) and (pointer:fine){.symgrid .g button:hover{background:var(--hover)}}
.symgrid .g button.on{border-color:var(--ink);background:var(--on-soft);color:var(--ink);font-weight:600}
@media (max-width:820px){.symgrid .g{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* „Wer schaut drüber?“ in the change list (changes.js reviewerChoice, SPEC D133) */
.rvs{border:0;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:2px;width:100%}
.rvs legend{font-weight:600;font-size:14px;margin-bottom:4px;padding:0}
.rvs .hd{font-size:11px;color:var(--faint);text-transform:uppercase;letter-spacing:.06em;padding:8px 0 2px}
.rvs .rv{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;font-size:14px;cursor:pointer}
@media (hover:hover) and (pointer:fine){.rvs .rv:hover{background:var(--hover)}} .rvs .rv b{font-weight:500} .rvs .rv small{color:var(--muted);font-size:12px}
.rvs .rv input{margin:0;width:auto;flex:none;accent-color:var(--ink)}
.rvs .sub{margin-top:6px}
.sendnote{display:flex;flex-direction:column;gap:4px;width:100%;margin-top:8px} .sendnote label{font-size:13px;font-weight:600}
.sendnote textarea{width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-size:14px;resize:vertical}
.rvslot{width:100%}

/* The review page of the Freigabe mail (schule.py _review_page, SPEC D134): no script, forms and <details> only */
.gate-card.review{width:min(880px,100%);gap:18px}
.review .rv-k{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.review h1{font-size:22px} .review h2{font-size:15px;margin:0 0 8px}
.review .rv-sub{color:var(--muted);font-size:13px}
.review .rv-note{padding:10px 12px;border-radius:10px;background:var(--on-soft)}
.review .rv-glance{display:flex;flex-direction:column;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px}
.review .rv-glance>ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.review .rv-glance>ul li{padding:4px 10px;border-radius:999px;background:var(--on-soft);font-weight:600;font-size:13px}
.review .rv-pics{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px}
.review .rv-pics figure{margin:0;flex:none;width:160px} .review .rv-pics img{width:160px;height:110px;object-fit:cover;border-radius:8px;border:1px solid var(--line);display:block}
.review .rv-pics figcaption{font-size:12px;color:var(--muted);margin-top:4px}
.review .rv-files{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px} .review .rv-files a{color:var(--blue-ink)}
.review .rv-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.review .rv-list li{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--line-soft)}
.review .rv-list li div{display:flex;flex-direction:column;gap:2px;min-width:0} .review .rv-list li span{color:var(--muted);font-size:13px}
.review .rv-tag{flex:none;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--on-soft)}
.review .rv-neu{background:#e3f4ea;color:#14532d} .review .rv-entfernt{background:#fde8e8;color:#7f1d1d}
.review .rv-diff{font-size:14px;line-height:1.6;margin-top:4px} .review del{background:#fde8e8;color:#7f1d1d} .review ins{background:#e3f4ea;color:#14532d;text-decoration:none}
.review .rv-draw iframe{width:100%;height:520px;border:1px solid var(--line);border-radius:10px;background:#fff}
.review details summary{cursor:pointer;font-weight:600;padding:8px 0}
.review .rv-decide{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--line);border-radius:12px}
.review .rv-decide button{align-self:flex-start;height:36px;padding:0 14px;border-radius:8px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font:600 14px var(--efont)}
.review .rv-decide .rv-ok{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.review .rv-decide textarea,.review .rv-decide select{font:inherit;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink)}
@media (max-width:600px){.review .rv-draw iframe{height:420px}}
.review input[type=radio]{width:auto;font:inherit;letter-spacing:0;padding:0}

/* Abmelden with unsent changes (session.js logout, SPEC D137) */
.lock .bye-list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:2px}
/* the narrowest phones (320 px): four tabs and „Mehr“ still on one line */
@media (max-width:359px){.top .vtab,#btnMore{font-size:10.5px}}

/* SPEC D176 (the mockup's selection, amends D58): no line at rest -- a block shows its frame when the
   pointer is on it (1 px) or it is chosen (2 px), and its name as a blue tag in the frame's corner.
   The tag stays in the Tab order (opacity, never display:none) and shows when it has the focus. Its
   blue is a shade darker than the mockup's, in either theme: white 11 px text needs 4.5 : 1. */
.mk{border:1px solid transparent;border-radius:0}
.mk.hover{border:1px solid var(--blue);z-index:5}
.mk.sel{border:2px solid var(--blue);background:none;z-index:5}
/* above the seams (z 4): where a column starts mid-page its tag meets the „+ Baustein“ of the line above */
.mk.locked{border-style:solid}
.mk .num,.mk.sel>.num{left:0;top:0;min-width:0;height:20px;padding:0 8px;border-radius:0 0 8px 0;background:oklch(0.52 0.15 255);font:600 11px/20px var(--efont);box-shadow:none;opacity:0;transition:opacity .1s}
.mk.hover>.num,.mk.sel>.num,.mk .num:focus-visible{opacity:1;box-shadow:none}
.mk .num:focus-visible,.mk .num.sel{outline:2px solid var(--blue-ink, var(--blue));outline-offset:1px} @media (hover:hover) and (pointer:fine){.mk .num:hover{outline:2px solid var(--blue-ink, var(--blue));outline-offset:1px}}
.mk.chrome .num{background:oklch(0.52 0.15 255)}
/* The page's state above it (SPEC D176): versteckt, neu, nur Admins. */
.strips{display:flex;flex-direction:column;gap:6px;padding:8px 12px 0}
.strips[hidden]{display:none}
.strip{padding:8px 12px;border-radius:8px;font-size:13px}
.strip.hid{background:#ececea;color:var(--muted)}
.strip.new{background:oklch(0.6 0.13 160 / .12);color:oklch(0.42 0.11 160)}
.strip.lock{background:oklch(0.7 0.15 55 / .16);color:oklch(0.42 0.1 55)}
/* SPEC D177: the chosen block's toolbar on the page (the mockup's .tbar): dark, at the frame's top right. */
.ov .tbar{position:absolute;display:flex;gap:2px;padding:3px;background:var(--ink);border-radius:9px;box-shadow:0 6px 18px rgba(0,0,0,.2);pointer-events:auto;z-index:6}
.ov .tbar button{width:30px;height:28px;border-radius:6px;display:grid;place-items:center;color:#fff;background:none;border:0;cursor:pointer}
.ov .tbar button.wide{width:auto;display:flex;gap:6px;padding:0 10px;font:600 12px var(--efont)}
@media (hover:hover) and (pointer:fine){.ov .tbar button:hover{background:rgba(255,255,255,.16)}}
.ov .tbar button:disabled{opacity:.3;cursor:default}
.ov .tbar button:focus-visible{outline:2px solid #fff;outline-offset:-2px}
.ov .tbar .grip{cursor:grab}
.ov .tbar svg{width:15px;height:15px}

/* SPEC D178: the panel's head (name / auf „Seite“ · Variante / ×) and the full-width Inhalt | Aussehen. */
.rsheet .pop.docked .head .x{font-size:15px}
.pop.sheetpop [data-testid="blk-pop-tabs"]{display:flex;width:100%;border:1px solid var(--line);border-radius:9px;padding:2px;margin:4px 0 12px;box-sizing:border-box}
.pop.sheetpop [data-testid="blk-pop-tabs"] button{flex:1;padding:6px;border-radius:7px;border:0;background:none;color:var(--muted);font-size:13px}
.pop.sheetpop [data-testid="blk-pop-tabs"] button[aria-pressed="true"]{background:var(--primary);color:var(--on-primary);font-weight:600}
/* „Zuklappen“: only where the column floats over the page. */
.rsheet .minb{display:none}
@media (min-width:821px) and (max-width:1679px){
  .rsheet .minb{display:grid;place-items:center;flex:none;width:30px;height:30px;border:0;border-radius:7px;background:none;color:var(--muted);font-size:18px;cursor:pointer}
  @media (hover:hover) and (pointer:fine){.rsheet .minb:hover{background:var(--hover);color:var(--ink)}}
  .rsheet.min{bottom:auto}
  .rsheet.min .pop > :not(.head){display:none}
}
/* SPEC D179 (the mockup's Aussehen): Variante as pictures, two to a row; Hintergrund as dots; boxes. */
.vtiles{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
.vtiles .seg-group{grid-column:1/-1;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:4px 0 0;align-self:auto;white-space:normal}
.vtiles button{display:flex;flex-direction:column;gap:4px;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--panel);text-align:left;font:inherit;font-size:12px;color:var(--ink);cursor:pointer;min-width:0}
.vtiles button img{width:100%;height:auto;aspect-ratio:240/150;object-fit:cover;object-position:top;border-radius:6px;background:var(--bg);display:block}
.vtiles button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (hover:hover) and (pointer:fine){.vtiles button:hover{border-color:var(--dash)}}
.vtiles button[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);font-weight:600}
.swatches{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.swatches .sw{width:30px;height:30px;border-radius:50%;border:1px solid var(--line);cursor:pointer;padding:0}
.swatches .sw[aria-pressed="true"]{box-shadow:0 0 0 2px var(--panel),0 0 0 4px var(--ink)}
.swatches .sw:disabled{opacity:.4;cursor:default}
.lookbox{grid-column:1/-1;display:grid;grid-template-columns:subgrid;gap:inherit;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);margin:4px 0}
.lookbox > .cap2{grid-column:1/-1;font-size:12px;font-weight:600;color:var(--ink);text-transform:none;letter-spacing:0}
.lookbox > .hint.all{grid-column:1/-1;margin-top:-4px}
.swatches .sw.img{background:linear-gradient(135deg,#9cc3b8,#5d8aa0);color:#fff;font-size:13px;display:grid;place-items:center}
.pop.sheetpop .prow.wide > .seg{display:flex;width:100%;box-sizing:border-box}
.pop.sheetpop .prow.wide > .seg > button{flex:1;min-width:0;padding-inline:4px}

/* SPEC D180 (the mockup's library): two cards to a row, the picture on top, the choice in the foot. */
.rsheet .types{grid-template-columns:1fr 1fr}
.pop[data-kind="library"] .type{flex-direction:column;align-items:stretch;gap:6px;padding:6px}
.pop[data-kind="library"] .type .libpic,.pop[data-kind="library"] .type .pv{width:100%;height:auto;aspect-ratio:240/150;object-fit:cover;object-position:top;border-radius:6px;background:var(--bg)}
.pop[data-kind="library"] .libbar{display:flex;align-items:center;gap:10px}
.pop[data-kind="library"] .libbar .varnote{flex:1;min-width:0;border:0;background:none;padding:0;display:block}
.pop[data-kind="library"] .libbar .varnote small{display:block}
.pop[data-kind="library"] .libbar .varnote .none{color:var(--muted)}

/* SPEC D181 (the mockup's tree): „+ Neu ▾“, ＋ on a row and on „Kanäle“, ⚠, grey rows, the legend, the ⋯ with icons, „Verschieben …“. */
.ptree .pt-head .mwrap{margin-left:auto} .ptree .pt-head .pt-neu{display:inline-flex;align-items:center;gap:4px}
.ptree .pt-head .menu{top:34px}
.ptree .pt-ghadd{width:18px;height:18px;border-radius:5px;display:inline-grid;place-items:center;color:var(--faint);cursor:pointer;align-self:center} @media (hover:hover) and (pointer:fine){.ptree .pt-ghadd:hover{background:var(--line);color:var(--ink)}}
.ptree .pt-warn{color:var(--orange);display:inline-grid}
.ptree .pt-row.off .pt-t{color:var(--muted)}
.ptree .pt-sub{display:none;place-items:center;width:24px;height:24px;border-radius:6px;color:var(--muted);flex:none}
.ptree .pt-row:focus .pt-sub,.ptree .pt-row.cur .pt-sub{display:grid} @media (hover:hover) and (pointer:fine){.ptree .pt-row:hover .pt-sub{display:grid}} @media (hover:hover) and (pointer:fine){.ptree .pt-sub:hover{background:var(--line);color:var(--ink)}}
.ptree .pt-row:has(.pt-ren) .pt-sub{display:none}
.ptree .pt-legend{border-top:1px solid var(--line);padding:8px 16px 10px;font-size:12px;color:var(--faint);display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:auto}
.ptree .pt-legend > span{display:inline-flex;align-items:center;gap:5px}
.pt-menu .pt-mi{display:inline-flex;align-items:center;gap:10px} .pt-menu .pt-mi > i{width:15px} .pt-menu .pt-mi .ico{color:var(--muted)}
.pt-menu [role=menuitem].danger .ico{color:var(--red)}
.pt-menu .pt-sep{height:1px;background:var(--line);margin:4px 6px}
.pt-mvpop{display:grid;gap:8px;padding:8px 8px 4px}
.pt-mvpop .pt-mvwhere{display:grid;gap:4px;font-size:13px;color:var(--muted)} .pt-mvpop select{width:100%}
.pt-mvpop .pt-mvplace{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)} .pt-mvpop .pt-mvplace > span{flex:1}
.pt-mvpop .r{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
@media (max-width:820px){.ptree .pt-legend{display:none} .ptree.open .pt-row .pt-sub,.ptree.open .pt-row.cur .pt-sub{display:none}}
.ptree .pt-head .menu{min-width:280px} .ptree .pt-head .menu button{white-space:nowrap}
/* SPEC D182 (the mockup): the mode strip's path; the Seiteninfo's „+ Auf weiterer Seite zeigen“, „Inhalt des Kanals“, calendars; the forms' Art cards. */
.modebar .mb-path{opacity:.6;font-weight:500} .modebar.post .mb-path{display:none}
@media (max-width:820px){.modebar .mb-path{display:none}}
.pinfo .pi-add{display:inline-flex;align-items:center;gap:6px;margin-top:6px;color:var(--blue-ink);font-weight:600}
.pinfo .pi-count{margin:0 0 8px}
.pinfo .pi-cals{display:grid;margin-top:4px}
.pinfo .pi-cal{display:flex;gap:8px;align-items:flex-start;padding:7px 0;border-bottom:1px solid var(--line);font-size:13px}
.pinfo .pi-cal small{display:block;color:var(--muted)}
.pinfo .pi-chk{display:flex;gap:8px;align-items:flex-start;margin-top:10px;font-size:13px} .pinfo .pi-chk small{display:block;color:var(--muted)}
.pinfo .pi-kinds{display:grid;gap:8px}
.pinfo .pi-kinds label{position:relative;display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:10px;padding:10px;cursor:pointer}
.pinfo .pi-kinds label:has(input:checked){border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.pinfo .pi-kinds input{position:absolute;opacity:0}
.pinfo .pi-kinds label:has(input:focus-visible){outline:2px solid var(--blue);outline-offset:2px}
.pinfo .pi-kinds .ki{width:34px;height:34px;border-radius:8px;background:var(--green-soft);color:var(--green);display:grid;place-items:center;flex:none}
.pinfo .pi-kinds b{display:block} .pinfo .pi-kinds small{display:block;color:var(--muted);font-size:12px}
/* SPEC D183 (the mockup's entries): „Einträge (n)“ with symbol, name, → Ziel and ↑ ↓ ×; the entry's symbol grid laid open. */
.pop .elist{display:grid;gap:2px}
.pop .elist .plbl{font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin:2px 0 4px}
.pop .erow{display:flex;align-items:center;gap:2px;border-radius:8px}
@media (hover:hover) and (pointer:fine){.pop .erow:hover{background:var(--hover)}}
/* a block's lists span the sheet's two columns */
.sheet > .elist,.sheet > .add,.sheet > .selbox{grid-column:1/-1}
.sheet > .selbox{display:grid;gap:8px}
/* a block's selection (auswahl.js, SPEC D196): a section per shown group, then „Einzeln“ */
.pop .gsec{border:1px solid var(--line);border-radius:10px;overflow:hidden;display:grid;gap:2px;padding-bottom:4px}
.pop .gsec .ghd{display:flex;align-items:center;gap:6px;padding:4px 4px 4px 2px;background:var(--hover);font-size:14px}
.pop .gsec .ghd b{font-weight:600} .pop .gsec .ghd small{color:var(--muted);font-size:12px;margin-right:auto}
.pop .gsec .tw{width:24px;height:24px;border-radius:6px;color:var(--muted);background:none;border:0;flex:none;display:grid;place-items:center} .pop .gsec button.tw{cursor:pointer}
.pop .gsec .ghd .ib{width:28px;height:28px;border-radius:6px;display:grid;place-items:center;color:var(--muted);background:none;border:0;cursor:pointer;flex:none}
.pop .gsec .elist{padding:0 4px}
.pop .gsec .ghid{margin:0;padding:2px 10px;font-size:12px;color:var(--muted)}
.pop .gsec .add{margin:0 4px;width:auto;border:0}
.pop .erow .grip.none{cursor:default}
.pop .erow.cut{opacity:.5} .pop .erow.also{color:var(--muted);padding:4px 0}
.pop .selpick{display:grid;gap:4px;margin:0 4px 4px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--panel)} .pop .selpick[hidden]{display:none}
.pop .selopts{display:grid;gap:2px}
.pop .selopt{display:flex;justify-content:space-between;gap:8px;text-align:left;padding:6px 8px;border-radius:6px;background:none;border:0;font:inherit;color:var(--ink);cursor:pointer}
@media (hover:hover) and (pointer:fine){.pop .selopt:hover{background:var(--hover)}} .pop .selopt small{color:var(--muted)} .pop .selopt.new{color:var(--blue-ink);font-weight:600}
/* „+ Eintrag“ in a sheet: the one add row, quiet -- a line of the list, not a box across the page */
.pop .add{padding:8px 10px;border-radius:8px;font-size:14px;text-align:left}
/* the grip takes the touch, the list still scrolls; the line is the gap the row lands in (ui.js dragRows) */
.pop .erow .grip{flex:none;width:22px;text-align:center;color:var(--muted);cursor:grab;user-select:none;touch-action:none;font-size:15px;line-height:28px}
.pop .erow.dragging{opacity:.4}
.dragline{height:2px;margin:-2px 0 0;background:var(--blue);border-radius:1px;pointer-events:none}
.pop .erow .et{flex:1;min-width:0;display:flex;align-items:center;gap:10px;text-align:left;padding:6px 6px;border-radius:8px;font:inherit;font-size:14px;color:var(--ink);background:none;border:0;cursor:pointer}
.pop .erow .eic{width:28px;height:28px;border-radius:7px;background:var(--bg);display:grid;place-items:center;flex:none;color:var(--ink)} .pop .erow .eic svg{width:16px;height:16px}
.pop .erow .en{min-width:0;overflow:hidden} .pop .erow .en small{display:block;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pop .erow .ib{width:28px;height:28px;border-radius:6px;display:grid;place-items:center;color:var(--muted);background:none;border:0;cursor:pointer;font-size:14px;flex:none}
@media (hover:hover) and (pointer:fine){.pop .erow .ib:hover:not(:disabled){background:var(--line);color:var(--ink)}} .pop .erow .ib:disabled{color:var(--ghost);cursor:default}
.sympick.open .symgrid{position:static;box-shadow:none;border:0;padding:0;margin-top:6px}

/* ---- Schulablage (SPEC D202, D208; ablage.js; the mockup werkstatt-schulablage v13's
   .finder/.fcol/.it/.ib/.fopen/.igrid/.itile/.su/.mvrow) ---- */
.home .fparts{margin:0}
.abl{display:flex;gap:20px;align-items:flex-start} .abl>.grow{flex:1;min-width:0}
.finder{display:flex;background:var(--panel);border:1px solid var(--line);border-radius:12px;min-height:540px;overflow:hidden}
.fcol{flex:none;width:200px;border-right:1px solid var(--line-soft);padding:6px;overflow:auto;display:flex;flex-direction:column;gap:1px}
.fcol .ch{font-size:10.5px;font-weight:700;color:var(--faint);letter-spacing:.07em;padding:8px 8px 4px;text-transform:uppercase}
.fcol .it{display:flex;gap:7px;align-items:center;width:100%;padding:6px 8px;border-radius:7px;font-size:13.5px;white-space:nowrap;text-align:left;color:var(--ink)}
@media (hover:hover) and (pointer:fine){.fcol .it:hover{background:var(--hover)}} .fcol .it.on{background:var(--blue-soft);color:var(--blue-ink);font-weight:600}
.fcol .it .ico{flex:none;color:var(--blue)} .fcol .it .nm{overflow:hidden;text-overflow:ellipsis;min-width:0}
.fcol .it .ro{margin-left:auto;font-size:10.5px;color:var(--faint);font-weight:400;flex:none}
.fcol .it.locked{color:var(--muted);cursor:not-allowed} .fcol .it.locked .ico{color:var(--muted)}
.fcol .add{margin:8px 2px 2px;padding:8px;font-size:13px;border-radius:8px;width:auto}
.fcol.icons{width:60px;padding:8px}
.fcol .ib{width:42px;height:38px;flex:none;border-radius:9px;display:flex;align-items:center;justify-content:center;font:700 11.5px var(--efont);color:var(--ink);background:var(--hover);border:1px solid var(--line);margin:0 auto 6px}
@media (hover:hover) and (pointer:fine){.fcol .ib:hover{border-color:var(--dash)}} .fcol .ib.on{background:var(--blue-soft);color:var(--blue-ink);border-color:var(--blue)} .fcol .ib.locked{opacity:.6;cursor:not-allowed}
.fopen{flex:1;min-width:0;padding:12px 14px 18px;display:flex;flex-direction:column;gap:10px;overflow:auto}
.fopen.over{outline:2px dashed var(--blue);outline-offset:-6px;background:var(--blue-soft)}
.fhead2{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.home .fhead2 h3{font-size:15px;margin:0;font-weight:600;text-transform:none;letter-spacing:0;color:var(--ink);overflow-wrap:anywhere}
.fhead2 .sp{flex:1} .fhead2 .small{font-size:12.5px} .muted{color:var(--muted)} .small{font-size:12.5px}
.igrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(132px,calc((100% - 30px) / 4)),1fr));gap:10px;align-content:start}
.itile{border:1px solid var(--line);border-radius:10px;overflow:hidden;text-align:left;background:var(--panel);color:var(--ink);display:flex;flex-direction:column}
.itile:focus-visible{border-color:var(--ink)} @media (hover:hover) and (pointer:fine){.itile:hover{border-color:var(--ink)}} .itile.sel{border-color:var(--blue);box-shadow:0 0 0 2px var(--blue-ring)}
.itile .pv,.fdet .bigpv,.ficon{display:flex;align-items:center;justify-content:center;font:700 13px var(--efont);color:#fff}
.itile .pv{height:86px}
.itile .m{padding:6px 8px 8px;font-size:11.5px;color:var(--muted);display:flex;flex-direction:column;gap:2px;min-width:0}
.itile .m b{font-size:12.5px;color:var(--ink);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.k-pdf{background:oklch(0.58 0.17 25)} .k-doc{background:oklch(0.55 0.14 255)} .k-xls{background:oklch(0.55 0.13 160)} .k-ppt{background:oklch(0.62 0.15 50)}
.k-img{background:linear-gradient(135deg,#9cc0ad,#4f8a72)} .k-vid{background:oklch(0.5 0.12 300)} .k-zip,.k-file{background:oklch(0.6 0.02 260)}
.k-dir,.itile .pv.k-dir,.ficon.k-dir{background:color-mix(in srgb,var(--c-folder) 14%,var(--panel));color:var(--c-folder)}
.fdet .kind{font-size:11px;font-weight:700;color:var(--faint);text-transform:uppercase;letter-spacing:.07em}
.fdet .bigpv{height:140px;border-radius:8px;font-size:22px}
.fdet .acts{display:flex;flex-direction:column;gap:6px} .fdet .acts .btn-line{justify-content:flex-start}
.btn-line.red{color:var(--red)}
.ficon{width:34px;height:34px;border-radius:8px;flex:none;font-size:10px}
.aoff{display:flex;gap:12px;align-items:center;background:oklch(0.62 0.16 50 / 0.12);border-radius:12px;padding:14px 16px}
.aoff>div{flex:1;display:flex;flex-direction:column} .aoff span:not(.glyph){font-size:13px;color:var(--muted)}
.asu{max-width:600px;margin:12px auto;padding:24px 26px;background:var(--panel);border:1px solid var(--line);border-radius:16px}
.home .asu h3{font-size:19px;margin:6px 0 12px;text-transform:none;letter-spacing:0;color:var(--ink)} .asu p{margin:0 0 12px;line-height:1.5}
.asu-ic{width:64px;height:64px;border-radius:16px;background:var(--blue-soft);color:var(--blue);display:flex;align-items:center;justify-content:center;margin-bottom:8px}
.asu-foot{display:flex;justify-content:flex-end;margin-top:18px} .asu-foot .btn-dark{height:44px}
.atrash{width:100%;max-width:1000px;margin:0 auto}
.atrash .card{background:var(--panel);border:1px solid var(--line);border-radius:12px}
.atrash .r{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line-soft)} .atrash .r:last-child{border-bottom:0}
.atrash .r .t{flex:1;min-width:0;display:flex;flex-direction:column} .atrash .r .t b{font-weight:600;overflow-wrap:anywhere} .atrash .r .t small{color:var(--muted);font-size:12.5px}
.atrash .when{font-size:12.5px;color:var(--muted);text-align:right;white-space:nowrap}
.pop .mvhead{display:flex;align-items:center;gap:8px;min-height:40px} .pop .mvhead b{font-size:15px}
.pop .mvbody{max-height:330px;overflow:auto;border:1px solid var(--line);border-radius:10px}
.pop .mvrow{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:0 12px;border-bottom:1px solid var(--line-soft);text-align:left;color:var(--blue)}
.pop .mvrow:last-child{border-bottom:0} @media (hover:hover) and (pointer:fine){.pop button.mvrow:hover{background:var(--on-soft)}} .pop .mvrow .t{flex:1;color:var(--ink);font-weight:500}
.pop .mvrow .chev{color:var(--faint)} .pop .mvnew{color:var(--blue-ink);font-weight:600}
.pop .mvmake input{flex:1;font:inherit;border:1px solid var(--line);border-radius:8px;padding:7px 9px;color:var(--ink);background:var(--panel)}
.pop .mvwhy:empty{display:none}
.pop .drop{border:1.5px dashed var(--dash);border-radius:12px;padding:28px 16px;text-align:center;color:var(--muted)} .pop .drop.over{border-color:var(--blue);background:var(--blue-soft)}
.pop .drop .lnk{color:var(--blue-ink);text-decoration:underline;text-underline-offset:2px;font:inherit}
.pop .uprows{display:flex;flex-direction:column;gap:8px;max-height:260px;overflow:auto}
.pop .uprow .t{display:flex;flex-direction:column;gap:3px} .pop .uprow b{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.pop .uprow small{font-size:12px;color:var(--muted)} .pop .uprow small.bad{color:var(--red)}
.pop .uprow .prog{display:block;height:4px;background:var(--line);border-radius:2px;overflow:hidden} .pop .uprow .prog i{display:block;height:100%;width:0;background:var(--ink);transition:width .2s}

/* Inhalt › Preise (SPEC D207): the list's head, the categories with their entries, a ⠿ before each row. */
.inh .plist .prow{display:flex;align-items:center} .inh .plist .prow>.row{flex:1;min-width:0}
.inh .plist .grip{flex:none;width:24px;text-align:center;color:var(--muted);cursor:grab;user-select:none;touch-action:none;font-size:15px} .inh .plist .grip.none{cursor:default}
.inh .plist .grp{gap:6px;padding-left:2px} .inh .plist .grp .ct{font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;background:none;border:0;padding:4px 2px;cursor:pointer;text-align:left}
.inh .plist .psec.cur .grp{color:var(--blue-ink)} .inh .plist .dragging{opacity:.45}
.inh .plist img.ti{object-fit:cover}
.inh .plist .add{width:auto;margin:6px 14px 12px;padding:8px}
.inh .side .hsheet .prices{display:grid;gap:6px} .inh .side .hsheet .prow2{display:flex;align-items:center;gap:6px} .inh .side .hsheet .prow2 input{flex:1;min-width:0}
.inh .side .hsheet .prices .add{margin:0;padding:8px}
.inh .side .hsheet details.more>summary{cursor:pointer;font-weight:600;font-size:14px;padding:6px 0} .inh .side .hsheet details.more[open]{display:grid;gap:10px}

/* the phone (D208): one folder at a time, rows, a „+“, a file as its own screen; menus are the popover's bottom sheet */
.mabl{display:flex;flex-direction:column;gap:12px;padding-bottom:80px}
.mabl .mnav{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;min-height:44px}
.home .mabl .mnav h3{margin:0;font-size:17px;font-weight:600;text-transform:none;letter-spacing:0;color:var(--ink);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mabl .mback{display:inline-flex;align-items:center;gap:2px;min-height:44px;color:var(--blue-ink);font-size:15px;justify-self:start;max-width:100%}
.mabl .mback span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mabl .mbtn{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;color:var(--ink);justify-self:end;flex:none}
.mabl .mnote{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.mlist{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.mrow{display:flex;align-items:center;border-bottom:1px solid var(--line-soft)} .mrow:last-child{border-bottom:0}
.mrow .mopen{flex:1;min-width:0;display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 4px 8px 12px;text-align:left;color:var(--ink)}
.mrow .t{flex:1;min-width:0;display:flex;flex-direction:column} .mrow .t b{font-weight:600;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mrow .t small{font-size:12.5px;color:var(--muted)} .mrow.locked .t b{color:var(--muted)}
.mabl .bigpv{height:220px;border-radius:12px;font:700 26px var(--efont);color:#fff;display:flex;align-items:center;justify-content:center}
.home .mabl .mname{margin:0;font-size:18px;font-weight:600;text-transform:none;letter-spacing:0;color:var(--ink);overflow-wrap:anywhere}
.mabl .kv{display:flex;flex-direction:column;gap:4px;font-size:14px;color:var(--muted)} .mabl .kv b{color:var(--ink);font-weight:500}
.mabl .mbar{display:grid;grid-template-columns:1fr 1fr;gap:8px} .mabl .mbar button{height:48px;justify-content:center}
.fab{position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom));width:58px;height:58px;border-radius:50%;background:var(--primary);color:var(--on-panel);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-lift);z-index:6}
.pop .asheet{display:flex;flex-direction:column}
.pop .asheet button{min-height:50px;text-align:left;padding:0 6px;font-size:16px;border-bottom:1px solid var(--line-soft);color:var(--ink)} .pop .asheet button:last-child{border-bottom:0}
.pop .asheet button.red{color:var(--red)}
@media (max-width:820px){
  .atrash .r{flex-wrap:wrap} .atrash .when{text-align:left;order:3;width:100%;padding-left:46px}
}

/* Zugänge › Berechtigungen › Schulablage (SPEC D202): a row per top-level folder */
.pabl{display:flex;flex-direction:column;gap:6px}
.pabl .psec{font-size:11px;font-weight:700;color:var(--faint);text-transform:uppercase;letter-spacing:.07em;margin-top:6px}
.pabl .pline{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px}
.pabl .pline>span{min-width:0;overflow-wrap:anywhere} .pabl .pline.dis{color:var(--muted)} .pabl .pline small{font-size:12px}
.inh .plist .row .d:empty{display:none} /* on a phone the empty cell would push the › to a second line */
.inh .side .hsheet .prices .prow2 input[data-testid=preis-price]{flex:0 0 6.5em}

/* Link teilen (SPEC D204): the duration's − n + and Tage/Stunden, the password, the link to copy */
.pop .shdur{display:flex;flex-direction:column;gap:6px} .pop .shdur label{font-size:12px;color:var(--muted);font-weight:600}
.pop .stepper{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pop .stepper .stepn{width:56px;text-align:center;font:inherit;border:1px solid var(--line);border-radius:8px;padding:6px;color:var(--ink);background:var(--panel)}
.pop .shdur .until{font-size:12.5px;color:var(--muted)}
.pop .pwrow{display:flex;gap:6px} .pop .pwrow[hidden]{display:none}
.pop .pwin{flex:1;min-width:0;font:15px var(--mono);letter-spacing:.08em;border:1px solid var(--line);border-radius:8px;padding:7px 9px;color:var(--ink);background:var(--panel)}
.pop .linkbox{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--on-soft);font-size:13px;overflow-wrap:anywhere}
.pop .linkbox code{font:14px var(--mono);letter-spacing:.06em}
.pop .btn-text.red{color:var(--red);margin-right:auto}
.supp .r{display:flex;justify-content:flex-end;gap:8px;align-items:center}


/* Keys (SPEC D210): „Meine Schlüssel“ */
.pop .keysheet .keyglyph{color:var(--blue);margin:4px 0 2px} .pop .keysheet .keyglyph.ok{color:var(--green)}
.pop .keysheet .btn-dark.wide,.pop .keysheet .btn-line.wide,.pop .keysheet .btn-text.wide{width:100%;height:48px;justify-content:center;font-size:16px}
.pop .keysheet .btn-dark.danger{background:var(--red)} .pop .keysheet .btn-text.red{color:var(--red)}
.pop .keysheet .sub.small{font-size:13px} .pop .keysheet .sub.center{text-align:center}
.pop .keylist button.keyrow{width:100%;text-align:left;min-height:48px;font-weight:600}
.pop .keylist .keyrow.add{color:var(--blue-ink)} .pop .keylist .keyrow.out{color:var(--red)}
.pop .keylist .keyrow .icon.red{color:var(--red);width:44px;height:44px;margin:-6px -10px -6px 0}
.pop .keylist{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px}
.pop .keyrow{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line-soft)} .pop .keyrow:last-child{border-bottom:0}
.pop .keyrow .t{flex:1;min-width:0;display:flex;flex-direction:column} .pop .keyrow .t small{font-size:12px;color:var(--muted)}
.pop .keylist .sub{padding:10px 12px;margin:0}

/* ---- steps in a sheet (steps.js, SPEC D232), from the phone mockup ---- */
.stepsheet-scrim{position:fixed;inset:0;z-index:90;background:rgba(16,24,40,.38);animation:wk-fade 160ms var(--ease)}
.stepsheet{position:fixed;z-index:91;left:50%;top:50%;transform:translate(-50%,-50%);width:min(480px,calc(100vw - 32px));height:min(720px,calc(100dvh - 64px));background:var(--bg);color:var(--ink);border-radius:16px;display:flex;flex-direction:column;box-shadow:var(--shadow-pop);font:15px/1.4 var(--efont);overflow:hidden}
.stepsheet.in-host{position:static;transform:none;width:auto;height:auto;min-height:100%;border-radius:12px;box-shadow:none;border:1px solid var(--line);animation:none}
@media (max-width:820px){
  /* a page sheet as on iOS: from under the header to the bottom; its foot keeps above the keyboard (steps.js followKeyboard) */
  .stepsheet{left:0;right:0;top:calc(40px + env(safe-area-inset-top,0px));bottom:0;transform:none;width:auto;height:auto;border-radius:16px 16px 0 0;animation:wk-sheet var(--t-sheet) var(--ease)}
}
@keyframes wk-sheet{from{transform:translateY(100%)}}
@keyframes wk-fade{from{opacity:0}}
@keyframes wk-rise{from{opacity:0;transform:translateY(6px)}}
/* A step comes in from the side it was moved to (D240): forward from the right, back from the left. */
@keyframes wk-in-r{from{opacity:0;transform:translateX(24px)}} @keyframes wk-in-l{from{opacity:0;transform:translateX(-24px)}}
.stepsheet .grab{width:38px;height:5px;border-radius:3px;background:var(--dash);margin:7px auto 0;flex:none} @media (min-width:821px){.stepsheet .grab{display:none} .stepsheet .sh-head{padding-top:12px}}
.stepsheet .sh-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px;padding:6px 10px 10px;min-height:56px;flex:none}
.stepsheet .sh-head .l{justify-self:start} .stepsheet .sh-head .r{justify-self:end} .stepsheet .sh-head .c{text-align:center;line-height:1.2;min-width:0}
.stepsheet .sh-head h2{font-size:16.5px;margin:0;font-weight:700} .stepsheet .sh-head h2:focus{outline:none} .stepsheet .sh-head small{font-size:12.5px;color:var(--faint)}
.stepsheet .hb{white-space:nowrap;height:40px;padding:0 10px;border-radius:10px;font-size:16px;color:var(--blue-ink);display:inline-flex;align-items:center;gap:2px}
.stepsheet .hb.strong{background:var(--primary);color:var(--on-primary);font-weight:700;padding:0 15px} .stepsheet .hb:disabled{opacity:.35;cursor:default}
.stepsheet .dots{display:flex;gap:5px;justify-content:center;margin-top:6px} .stepsheet .dots i{width:6px;height:6px;border-radius:3px;background:var(--dash);transition:width var(--t-state) var(--ease)} .stepsheet .dots i.on{width:16px;background:var(--blue)} .stepsheet .dots i.past{background:var(--blue)}
.stepsheet .sh-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;padding:4px 16px 24px}
.stepsheet .sh-body.stagger>*{animation:wk-in-r 200ms var(--ease) both} .stepsheet .sh-body.stagger.bwd>*{animation-name:wk-in-l} .stepsheet .sh-body.stagger>:nth-child(2){animation-delay:40ms} .stepsheet .sh-body.stagger>:nth-child(3){animation-delay:80ms} .stepsheet .sh-body.stagger>:nth-child(n+4){animation-delay:120ms}
.stepsheet .sh-foot{flex:none;padding:10px 16px calc(14px + env(safe-area-inset-bottom,0px))}
.stepsheet .sh-foot .why{margin:0 2px 8px;font-size:14px;color:var(--muted);text-align:center}
.stepsheet .sh-foot .moves{display:grid;grid-template-columns:1fr auto 1fr;gap:6px;align-items:center}
.stepsheet .mv{height:48px;border-radius:12px;font-size:16px;display:inline-flex;align-items:center;gap:2px;padding:0 10px;color:var(--blue-ink);white-space:nowrap}
.stepsheet .mv.back{justify-self:start} .stepsheet .mv.mid{justify-self:center;font-weight:600}
.stepsheet .mv.fwd{justify-self:end;background:var(--primary);color:var(--on-primary);font-weight:700;padding:0 10px 0 16px}
.stepsheet .mv:disabled{opacity:.35;cursor:default}
.stepsheet .bigbtn{width:100%;height:52px;border-radius:14px;background:var(--primary);color:var(--on-primary);font-weight:700;font-size:17px;display:flex;align-items:center;justify-content:center;gap:8px}
.stepsheet .bigbtn:disabled{opacity:.35;cursor:default} .stepsheet .bigbtn.ghost{background:transparent;color:var(--blue-ink);font-weight:600}
.stepsheet .qs{color:var(--muted);margin:0 2px 16px;font-size:15px}
.stepsheet .grp{background:var(--panel);border-radius:14px;margin:0 0 14px;overflow:hidden;border:1px solid var(--line)}
.stepsheet .grp-t{display:block;font-size:13px;font-weight:600;color:var(--faint);margin:18px 4px 7px;text-transform:uppercase;letter-spacing:.05em}
.stepsheet .sh-row.pick select{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:16px;color:var(--ink);text-align:right;text-align-last:right}
.stepsheet .sh-row{display:flex;align-items:center;gap:12px;min-height:52px;padding:9px 14px;border-bottom:1px solid var(--line-soft);width:100%;text-align:left;background:var(--panel)}
.stepsheet .sh-row:last-child{border-bottom:0} .stepsheet .sh-row:active{background:var(--hover)} @media (hover:hover) and (pointer:fine){.stepsheet .sh-row:hover{background:var(--hover)}}
.stepsheet .sh-row .k{flex:none;width:104px;color:var(--muted)} .stepsheet .sh-row .v{flex:1;min-width:0;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .stepsheet .sh-row .ico{color:var(--ghost)}
.stepsheet .sh-done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:40px 8px 8px}
.stepsheet .sh-done .ck{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--green) 14%,var(--panel));color:var(--green)}
.stepsheet .sh-done h2{font-size:21px;margin:6px 0 0} .stepsheet .sh-done h2:focus{outline:none} .stepsheet .sh-done p{color:var(--muted);margin:0 0 12px}
.stepsheet .sh-ask{position:absolute;inset:0;z-index:2;background:rgba(16,24,40,.38);display:flex;align-items:flex-end;padding:10px;animation:wk-fade 160ms var(--ease)}
.stepsheet .sh-ask .box{width:100%;background:var(--panel);border-radius:14px;overflow:hidden;animation:wk-rise 200ms var(--ease)}
.stepsheet .sh-ask p{margin:0;padding:14px;text-align:center;color:var(--muted);font-size:13.5px;border-bottom:1px solid var(--line-soft)}
.stepsheet .sh-ask .ab{width:100%;min-height:54px;font-size:17px;color:var(--blue-ink);border-bottom:1px solid var(--line-soft)} .stepsheet .sh-ask .ab:last-child{border-bottom:0;font-weight:600} .stepsheet .sh-ask .ab.red{color:var(--red)}
/* a field group's own inputs (the steps' Titel and Ort, the Notiz) and the Termin's rows (termin.js, SPEC D234) */
.stepsheet .fld{display:block;width:100%;border:0;outline:0;background:transparent;padding:14px;font:inherit;font-size:16px;color:var(--ink)}
.stepsheet .fld.title{font-size:20px;font-weight:700} .stepsheet .fld::placeholder{color:var(--ghost)} .stepsheet .fld:focus-visible{box-shadow:inset 0 0 0 2px var(--blue-ring)}
.stepsheet .fld-sep{height:1px;background:var(--line-soft);margin:0 14px}
.stepsheet .tp-when{display:flex;flex-direction:column}
.stepsheet .tp-when>.switch{padding:12px 14px;min-height:52px;justify-content:space-between;border-bottom:1px solid var(--line-soft);width:100%}
.stepsheet .tp-row{display:flex;align-items:center;gap:8px;min-height:56px;padding:8px 14px;border-bottom:1px solid var(--line-soft)} .stepsheet .tp-row:last-child{border-bottom:0}
.stepsheet .tp-row .k{flex:1;color:var(--ink);font-size:16px} .stepsheet .tp-date{display:inline-flex;align-items:center;gap:4px}
.stepsheet .tp-row input{height:40px;border:0;border-radius:10px;background:var(--hover);padding:0 10px;font:inherit;font-size:16px;color:var(--ink)}
.stepsheet .tp-more{display:flex;flex-direction:column;gap:12px} .stepsheet .tp-more label{display:block;font-size:13px;font-weight:600;color:var(--faint);margin:0 4px 6px}
.stepsheet .tp-more select,.stepsheet .tp-more input,.stepsheet .tp-more textarea{width:100%;min-height:48px;border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:0 12px;font:inherit;font-size:16px;color:var(--ink)}
.stepsheet .tp-more textarea{min-height:110px;padding:12px;resize:vertical}
.stepsheet .tp-note{font-size:13.5px;margin-top:4px}
/* A Hinweis's steps (hinweis.js): the counter, the quick ends, the two Wo cards, the strip as it will read. */
.stepsheet textarea.fld{min-height:130px;resize:vertical}
.stepsheet .count{font-size:13px;color:var(--faint);text-align:right;padding:0 14px 10px}
.stepsheet .sh-row .k.wide{width:auto;flex:1;color:var(--ink)} .stepsheet .sh-row .k.wide+.v{flex:none} .stepsheet .sh-row .ck{flex:none;width:20px;display:grid;place-items:center} .stepsheet .sh-row .ck .ico{color:var(--blue-ink)}
.stepsheet .warn{color:var(--red);font-weight:650}
.stepsheet .choice{display:flex;gap:10px;margin:0 0 14px}
.stepsheet .choice button{flex:1;position:relative;background:var(--panel);border:2px solid var(--line);border-radius:16px;padding:12px;text-align:left;color:var(--ink)}
.stepsheet .choice button.on{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 8%,var(--panel))}
.stepsheet .choice button.on::after{content:"✓";position:absolute;right:10px;top:10px;width:24px;height:24px;border-radius:12px;background:var(--primary);color:var(--on-primary);font-weight:800;font-size:14px;display:grid;place-items:center}
.stepsheet .choice .sk{height:92px;border-radius:9px;background:var(--line-soft);margin-bottom:10px;padding:6px;overflow:hidden}
.stepsheet .choice .sk i{display:block;height:9px;border-radius:3px;background:color-mix(in srgb,var(--c-hinweis) 45%,transparent);margin-bottom:5px}
.stepsheet .choice .sk u{display:block;height:6px;border-radius:3px;background:var(--off);margin:5px 0} .stepsheet .choice .sk u:last-child{width:70%}
.stepsheet .choice .sk-home i{margin-top:22px} .stepsheet .choice .sk-home u:first-of-type{width:60%}
.stepsheet .choice b{display:block;font-size:15.5px} .stepsheet .choice span{font-size:13px;color:var(--muted)}
.stepsheet .prevlbl{font-size:12.5px;color:var(--faint);margin:0 4px 6px;font-weight:600}
.stepsheet .hprev{display:flex;gap:10px;align-items:flex-start;margin:0 0 14px;padding:12px 14px;border-radius:12px;font-weight:600;color:var(--c-hinweis);background:color-mix(in srgb,var(--c-hinweis) 9%,var(--panel));border:1px solid color-mix(in srgb,var(--c-hinweis) 25%,transparent)}
.inh .side .steps-host{padding:0;border:0;background:transparent;box-shadow:none}
/* A Beitrag's steps (beitragsteps.js): the text field in its group, the inputs of the files and the picture's screen, the card. */
.stepsheet .bw-textgrp .qbfield{border:0;border-radius:0} .stepsheet .qbrich{min-height:220px;font-size:16px;padding:12px 14px}
.stepsheet .bwdocs input,.stepsheet .bwscreen input{font:inherit;font-size:16px;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:8px 10px;width:100%;min-height:44px}
.stepsheet .bwscreen label{display:block;font-size:13px;font-weight:600;color:var(--faint);margin:0 4px 6px}
.stepsheet .bwpics{margin-bottom:12px} .stepsheet [data-testid="bw-doc-add"]{width:100%;min-height:48px;margin-top:4px}
.stepsheet .bwprev{display:flex;gap:12px;align-items:center;margin:0 0 14px;padding:10px;border-radius:14px;background:var(--panel);border:1px solid var(--line)}
.stepsheet .bwprev img{width:72px;height:72px;border-radius:10px;object-fit:cover;flex:none} .stepsheet .bwprev>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.stepsheet .bwprev small{color:var(--faint);font-size:12.5px} .stepsheet .bwprev b{font-size:16px} .stepsheet .bwprev span{color:var(--muted);font-size:14px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.stepsheet .tp-more .tp-date input{flex:1}
/* A chooser opened from a step sheet on a phone stands over it. */
body:has(.stepsheet:not(.in-host)) .pop.as-sheet{z-index:93} body:has(.stepsheet:not(.in-host)) .pop-scrim{z-index:92}
.inh .tf-place{margin:2px 0 0;font-weight:600} .inh .tf-note{margin:4px 0 0;color:var(--ink)}
.stepsheet.in-host{border:0;background:transparent;padding:0} .stepsheet.in-host .sh-head{padding:0 0 10px} .stepsheet.in-host .sh-body{padding:4px 0 16px} .stepsheet.in-host .sh-foot{padding:10px 0 0}
/* a touch screen has its own date picker (the wheel, the month), so the month grid's button stays off there */
@media (pointer:coarse){.stepsheet .tp-date .calbtn{display:none}}
@media (max-width:820px){.stepsheet .tp-row{gap:6px;padding:8px 12px} .stepsheet .tp-row input[type=date]{width:148px;padding:0 8px} .stepsheet .tp-row input[type=time]{width:96px;padding:0 8px}}
/* The phone's chooser (M5): two rows, then the uploads as tiles, each with its progress ring. */
.pop .srcrow{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:64px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel);text-align:left;color:var(--ink)}
.pop .srcrow b{font-size:16px} .pop .srcrow span{font-size:13px;color:var(--muted)} .pop .srcrow:active{background:var(--hover)}
.pop .srcrow+.srcrow{margin-top:8px}
.uptiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.uptile{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--hover)}
.uptile img{width:100%;height:100%;object-fit:cover}
.uptile .ring{position:absolute;inset:50% auto auto 50%;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;background:conic-gradient(var(--on-primary) calc(var(--p,0)*360deg),rgba(255,255,255,.3) 0);-webkit-mask:radial-gradient(circle,transparent 14px,#000 15px);mask:radial-gradient(circle,transparent 14px,#000 15px);transition:opacity var(--t-state) var(--ease)}
.uptile[data-state="wait"] img,.uptile[data-state="send"] img{filter:brightness(.6)}
.uptile[data-state="done"] .ring,.uptile[data-state="fail"] .ring{opacity:0}
.uptile .st{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;pointer-events:none}
.uptile .st button{pointer-events:auto}
.uptile .x{position:absolute;right:4px;top:4px;width:28px;height:28px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:14px}
.uptile .retry{padding:6px 8px;border-radius:8px;background:var(--panel);color:var(--ink);font-size:12px;font-weight:600}
.uptile[data-state="fail"] img{filter:grayscale(1) brightness(.6)}
/* A block's chosen picture, large (M5). */
.bigrow{grid-column:1/-1} .bigrow .bigpic{display:block;width:100%;max-height:200px;object-fit:cover;border-radius:10px;background:var(--hover);cursor:pointer}
.bwpic .altb{position:absolute;left:6px;bottom:6px;padding:2px 7px;border-radius:999px;background:rgba(0,0,0,.6);color:#fff;font-size:11px;font-weight:700}
