/* ======================================================================
   Mini-Baukästen: Palette, Handy-/Fenster-Rahmen, Bildschirm-Bausteine
   ====================================================================== */
.mb [hidden] { display: none !important; }
.mb-name { display: grid; gap: 8px; min-width: 260px; }
.mb-name label { font-size: .84rem; font-weight: 600; }
.mb-name input { padding: 11px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg); font-size: 1rem; }
.mb-name input:focus { outline: none; border-color: var(--brand); background: var(--paper); box-shadow: 0 0 0 4px rgba(31,94,216,.12); }
.mb-grid { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
@media (max-width: 900px) { .mb-grid { grid-template-columns: minmax(0, 1fr); } }
.mb-pal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--sh-1); position: sticky; top: calc(var(--nav-h) + 16px); max-height: calc(100vh - var(--nav-h) - 32px); display: flex; flex-direction: column; }
@media (max-width: 900px) { .mb-pal { position: static; max-height: none; } }
.mb-pal__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mb-pal__head h2 { font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: 1.1rem; }
.kat-search--sm input { padding: 9px 12px 9px 38px; font-size: .92rem; }
.kat-search--sm svg { left: 12px; width: 16px; height: 16px; }
.filters--sm { gap: 5px; margin: 10px 0; }
.filters--sm button { padding: 5px 10px; font-size: .78rem; }
.mb-pal__list { display: grid; gap: 6px; overflow: auto; padding-right: 4px; }
.mb-pal__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); cursor: grab; transition: border-color .2s, background .2s, transform .2s; }
.mb-pal__item:hover { border-color: var(--brand); }
.mb-pal__item.on { background: var(--brand-soft); border-color: var(--brand-soft); }
.mb-pal__item.dragging { opacity: .5; }
.mb-pal__item[hidden] { display: none; }
.mb-pal__grip { color: var(--line-2); font-size: .9rem; letter-spacing: -2px; }
.mb-pal__txt { display: grid; min-width: 0; }
.mb-pal__txt b { font-size: .9rem; }
.mb-pal__txt span { font-size: .74rem; color: var(--ink-3); }
.mb-pal__add { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); font-size: 1.1rem; line-height: 1; color: var(--brand); }
.mb-pal__add:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.mb-pal__item.on .mb-pal__add { border-color: var(--brand); background: var(--brand); color: #fff; }
.mb-stage { display: grid; gap: 14px; }
.mb-stage__frame { display: grid; place-items: center; padding: clamp(16px, 3vw, 36px); background: var(--bg-2); border: 2px dashed transparent; border-radius: var(--r-xl); min-height: 560px; transition: border-color .2s, background .2s; }
.mb-stage__frame.can-drop { border-color: var(--line-2); }
.mb-stage__frame.over { border-color: var(--brand); background: var(--brand-soft); }
.mb-stage__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.mb-stage__acts { display: flex; gap: 8px; }
.mb-done { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(26px, 4vw, 44px) 0 clamp(40px, 6vw, 70px); }
.mb-done[hidden] { display: none; }
.mb-empty { display: grid; gap: 6px; place-items: center; text-align: center; padding: 40px 20px; color: var(--ink-3); font-size: .9rem; }
.mb-empty b { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }

/* Handy */
.ph { width: 330px; max-width: 100%; height: 640px; border-radius: 38px; background: #0f172a; padding: 12px; box-shadow: 0 30px 60px -30px rgba(16,27,45,.6), inset 0 0 0 2px #2a3650; display: flex; flex-direction: column; --sc-accent: #1f5ed8; }
.ph__bar { display: flex; justify-content: space-between; padding: 6px 18px 4px; font-size: .68rem; font-weight: 600; color: #fff; font-family: var(--font-mono); }
.ph__head { display: flex; align-items: center; gap: 10px; padding: 8px 16px 10px; color: #fff; }
.ph__icon { width: 30px; height: 30px; border-radius: 9px; background: var(--sc-accent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .78rem; flex: 0 0 auto; }
.ph__head b { font-family: var(--font-display); font-size: .98rem; }
.ph__screen { flex: 1; min-height: 0; background: #f6f8fb; border-radius: 22px 22px 0 0; overflow: auto; position: relative; }
.ph__tabs { display: flex; gap: 2px; padding: 8px 6px 10px; background: #fff; border-radius: 0 0 26px 26px; min-height: 58px; overflow-x: auto; }
.ph__tabs:empty::after { content: 'Bausteine erscheinen hier als Reiter'; font-size: .7rem; color: var(--ink-3); margin: auto; }
.mb-tab { position: relative; flex: 1 0 60px; display: grid; justify-items: center; gap: 3px; padding: 6px 4px; border-radius: 10px; font-size: .62rem; color: var(--ink-3); cursor: pointer; border: 0; background: none; }
.mb-tab__dot { width: 20px; height: 20px; border-radius: 6px; background: var(--line); }
.mb-tab.on { color: var(--sc-accent); }
.mb-tab.on .mb-tab__dot { background: var(--sc-accent); }
.mb-tab__t { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-tab__x { position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); font-size: .55rem; display: grid; place-items: center; opacity: 0; transition: opacity .2s; color: var(--ink-2); }
.mb-tab:hover .mb-tab__x, .mb-tab.on .mb-tab__x { opacity: 1; }
@media (hover: none) { .mb-tab__x { opacity: 1; } }
.mb-tab.dragging { opacity: .4; }
.mb-tab.before::before, .mb-tab.after::after { content: ''; position: absolute; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--brand); }
.mb-tab.before::before { left: -2px; } .mb-tab.after::after { right: -2px; }

/* Fenster (Software) */
.dk { width: 100%; max-width: 900px; height: 560px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(16,27,45,.5); display: flex; flex-direction: column; overflow: hidden; --sc-accent: #1f5ed8; }
.dk__bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #f0f3f8; border-bottom: 1px solid var(--line); }
.dk__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.dk__bar b { margin-left: 10px; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); font-weight: 500; }
.dk__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 190px minmax(0, 1fr); }
@media (max-width: 640px) { .dk__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); } .dk { height: 620px; } }
.dk__side { background: #121a2b; color: #c9d3e6; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; overflow: auto; }
@media (max-width: 640px) { .dk__side { flex-direction: row; flex-wrap: wrap; } }
.dk__brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; }
.dk__side nav { display: contents; }
.dk__side nav:empty::after { content: 'Bausteine erscheinen hier im Menü'; font-size: .72rem; color: #7d8aa3; padding: 8px; }
.dk__side .mb-tab { display: flex; justify-items: start; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; font-size: .82rem; color: #c9d3e6; text-align: left; flex: 0 0 auto; }
.dk__side .mb-tab.on { background: rgba(255,255,255,.1); color: #fff; }
.dk__side .mb-tab .mb-tab__dot { width: 8px; height: 8px; border-radius: 50%; }
.dk__side .mb-tab .mb-tab__t { max-width: none; }
.dk__side .mb-tab .mb-tab__x { position: static; margin-left: auto; opacity: .6; background: transparent; border: 0; color: #c9d3e6; }
.dk__side .mb-tab.before::before, .dk__side .mb-tab.after::after { left: 4px; right: 4px; top: auto; bottom: auto; width: auto; height: 3px; }
.dk__side .mb-tab.before::before { top: -3px; } .dk__side .mb-tab.after::after { bottom: -3px; }
.dk__screen { overflow: auto; background: #f6f8fb; position: relative; }

/* Bildschirm-Bausteine */
.sc { padding: 14px; font-family: var(--font-body); font-size: 13px; color: var(--sc-ink, #1c2431); }
.dk .sc { padding: 22px 26px; font-size: 14px; max-width: 720px; }
.sc[hidden] { display: none; }
.sc--in { animation: sc-in .3s cubic-bezier(.22,1,.36,1); }
@keyframes sc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sc__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15em; margin-bottom: 10px; }
.sc-btn { display: inline-flex; justify-content: center; align-items: center; width: 100%; padding: 11px 14px; border-radius: 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--sc-accent) 88%, #fff), var(--sc-accent)); color: #fff; font-weight: 600; font-size: .95em; border: 0; margin-top: 10px; box-shadow: 0 8px 16px -10px var(--sc-accent); transition: transform .15s; }
.sc-btn:active { transform: scale(.98); }
.sc-btn--ghost { background: var(--sc-card, #fff); color: var(--sc-ink, #1c2431); border: 1px solid var(--sc-line2, #cfd6e1); box-shadow: none; }
.sc-btn--big { font-size: 1.1em; padding: 16px; border-radius: 999px; }
.sc-btn.on { background: #b91c1c; }
.sc-btn:disabled { opacity: .6; }
.sc-mini { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--sc-accent); color: var(--sc-accent); background: var(--sc-card, #fff); font-size: .78em; font-weight: 600; white-space: nowrap; }
.sc-note { font-size: .8em; color: var(--sc-ink2, #6c7787); margin-top: 8px; }
.sc-ok { margin-top: 10px; padding: 9px 12px; border-radius: 8px; background: #e7f7ee; color: #14663a; font-size: .85em; }
.sc-ok[hidden] { display: none; }
.sc-card { padding: 10px 12px; border-radius: 10px; background: var(--sc-card, #fff); border: 1px solid var(--sc-line, #e3e8ef); display: grid; gap: 2px; margin-top: 10px; box-shadow: 0 1px 2px rgba(16,27,45,.04), 0 6px 16px -14px rgba(16,27,45,.3); }
.sc-card span { font-size: .85em; color: var(--sc-ink2, #55617a); }
.sc-field { display: grid; gap: 3px; margin-top: 10px; font-size: .82em; font-weight: 600; }
.sc-field input { padding: 9px 11px; border: 1px solid var(--sc-line2, #cfd6e1); border-radius: 9px; font: inherit; font-weight: 400; background: var(--sc-card, #fff); }
.sc-list { display: grid; gap: 6px; margin-top: 4px; }
.sc-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--sc-card, #fff); border: 1px solid var(--sc-line, #e3e8ef); border-radius: 10px; box-shadow: 0 1px 2px rgba(16,27,45,.04); }
.sc-list li > span { flex: 1; min-width: 0; display: grid; }
.sc-list li b { font-weight: 600; }
.sc-list li small { color: var(--sc-ink2, #6c7787); font-size: .82em; }
.sc-list li.neu { animation: sc-in .4s; border-color: var(--sc-accent); }
.sc-list li.pick.on { border-color: var(--sc-accent); background: color-mix(in srgb, var(--sc-accent) 10%, #fff); }
.sc-list--plain li { background: transparent; border: 0; padding: 6px 0; border-bottom: 1px solid var(--sc-line, #e3e8ef); border-radius: 0; justify-content: space-between; }
.sc-badge { font-style: normal; font-size: .72em; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--sc-accent) 12%, #fff); color: var(--sc-accent); }
.sc-num, .sc-ico { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sc-accent); color: #fff; font-style: normal; font-size: .75em; font-weight: 700; }
.sc-ico { background: color-mix(in srgb, var(--sc-accent) 12%, #fff); color: var(--sc-accent); }
.sc-ico svg { width: 14px; height: 14px; }
.sc-fab { position: absolute; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; background: var(--sc-accent); color: #fff; font-size: 1.6em; line-height: 1; border: 0; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.sc-login { display: grid; gap: 4px; padding-top: 14px; text-align: center; }
.sc-login__logo { width: 56px; height: 56px; border-radius: 16px; background: var(--sc-accent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2em; margin: 0 auto 6px; }
.sc-login b { font-family: var(--font-display); font-size: 1.1em; }
.sc-login .sc-field { text-align: left; }
.sc-login small { color: var(--sc-ink2, #6c7787); margin-top: 8px; }
.sc-toggles { display: grid; gap: 6px; }
.sc-toggles li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--sc-card, #fff); border: 1px solid var(--sc-line, #e3e8ef); border-radius: 10px; }
.sc-switch { position: relative; width: 38px; height: 22px; }
.sc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sc-switch i { position: absolute; inset: 0; border-radius: 999px; background: #cfd6e1; transition: background .2s; }
.sc-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--sc-card, #fff); transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.sc-switch input:checked + i { background: var(--sc-accent); }
.sc-switch input:checked + i::after { transform: translateX(16px); }
.sc-chat { display: flex; flex-direction: column; height: 100%; min-height: 300px; }
.sc-chat__log { flex: 1; display: grid; gap: 6px; align-content: start; overflow: auto; padding-bottom: 8px; }
.sc-msg { max-width: 82%; padding: 8px 11px; border-radius: 14px 14px 14px 4px; background: var(--sc-card, #fff); border: 1px solid var(--sc-line, #e3e8ef); justify-self: start; font-size: .92em; }
.sc-msg.me { background: var(--sc-accent); color: #fff; border-color: transparent; border-radius: 14px 14px 4px 14px; justify-self: end; }
.sc-chat__in { display: flex; gap: 6px; }
.sc-chat__in input { flex: 1; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--sc-line2, #cfd6e1); font: inherit; }
.sc-chat__in button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--sc-accent); color: #fff; display: grid; place-items: center; }
.sc-chat__in svg { width: 15px; height: 15px; }
.sc-timer { text-align: center; padding-top: 10px; }
.sc-timer small { color: var(--sc-ink2, #6c7787); }
.sc-timer b { display: block; font-family: var(--font-mono); font-size: 2.2em; margin: 10px 0; font-variant-numeric: tabular-nums; }
.sc-check { display: grid; gap: 6px; }
.sc-check label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--sc-card, #fff); border: 1px solid var(--sc-line, #e3e8ef); border-radius: 10px; cursor: pointer; }
.sc-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sc-check i { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #cfd6e1; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.sc-check i svg { width: 14px; height: 14px; }
.sc-check input:checked + i { background: var(--sc-accent); border-color: var(--sc-accent); }
.sc-check input:checked ~ span { text-decoration: line-through; color: var(--sc-ink2, #6c7787); }
.sc-progress { height: 6px; border-radius: 999px; background: #e3e8ef; margin-top: 12px; overflow: hidden; }
.sc-progress i { display: block; height: 100%; width: 0; background: var(--sc-accent); border-radius: 999px; transition: width .3s; }
.sc-cam { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.sc-cam__view { flex: 1; min-height: 280px; border-radius: 12px; background: radial-gradient(circle at 35% 40%, #4a5568, #1a202c 70%); position: relative; display: flex; align-items: flex-end; padding: 10px; color: #fff; transition: filter .15s; }
.sc-cam__view.flash { filter: brightness(3); }
.sc-cam__view small { font-size: .7em; background: rgba(0,0,0,.45); padding: 3px 7px; border-radius: 6px; }
.sc-cam__grid { position: absolute; inset: 10%; border: 1px solid rgba(255,255,255,.3); }
.sc-cam__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.sc-cam__shutter { width: 58px; height: 58px; border-radius: 50%; background: var(--sc-card, #fff); border: 5px solid #cfd6e1; }
.sc-cam__thumbs { display: flex; gap: 4px; }
.sc-cam__thumb { width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #4a5568, #a0aec0); animation: sc-in .3s; }
.sc-map svg { width: 100%; border-radius: 12px; display: block; margin-bottom: 8px; }
.sc-scan__view { height: 200px; border-radius: 12px; background: #1a202c; position: relative; overflow: hidden; }
.sc-scan__view::before { content: ''; position: absolute; inset: 20% 15%; border: 2px solid rgba(255,255,255,.6); border-radius: 8px; }
.sc-scan__view i { position: absolute; left: 15%; right: 15%; top: 20%; height: 2px; background: #34d3ee; box-shadow: 0 0 10px #34d3ee; animation: sc-scan 1.6s ease-in-out infinite alternate; }
@keyframes sc-scan { from { top: 20%; } to { top: 78%; } }
.sc-cal b { display: block; font-family: var(--font-display); margin-bottom: 6px; }
.sc-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 12px; }
.sc-cal__grid span { aspect-ratio: 1; display: grid; place-items: center; font-size: .78em; border-radius: 7px; color: var(--sc-ink2, #55617a); }
.sc-cal__grid span.today { background: var(--sc-accent); color: #fff; font-weight: 700; }
.sc-cal__grid span.free { background: color-mix(in srgb, var(--sc-accent) 12%, #fff); color: var(--sc-accent); font-weight: 600; }
.sc-stamps b { display: block; font-family: var(--font-display); font-size: 1.1em; }
.sc-stamps__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.sc-stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed #cfd6e1; background: var(--sc-card, #fff); color: #fff; display: grid; place-items: center; transition: transform .15s; }
.sc-stamp svg { width: 55%; height: 55%; }
.sc-stamp.on { background: var(--sc-accent); border-style: solid; border-color: var(--sc-accent); }
.sc-stamp:active { transform: scale(.9); }
.sc-steps { display: grid; gap: 0; }
.sc-steps li { display: flex; gap: 12px; align-items: center; padding: 8px 0; position: relative; color: var(--sc-ink2, #6c7787); }
.sc-steps li i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #cfd6e1; display: grid; place-items: center; font-size: .75em; font-style: normal; font-weight: 700; flex: 0 0 auto; background: var(--sc-card, #fff); }
.sc-steps li i svg { width: 14px; height: 14px; }
.sc-steps li.done { color: var(--sc-ink, #1c2431); } .sc-steps li.done i { background: var(--sc-accent); border-color: var(--sc-accent); color: #fff; }
.sc-steps li.now { color: var(--sc-ink, #1c2431); font-weight: 600; } .sc-steps li.now i { border-color: var(--sc-accent); color: var(--sc-accent); }
.sc-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dk .sc-kpis { grid-template-columns: repeat(4, 1fr); }
.sc-kpis div { padding: 12px; background: var(--sc-card, #fff); border: 1px solid var(--sc-line, #e3e8ef); border-radius: 10px; }
.sc-kpis small { color: var(--sc-ink2, #6c7787); font-size: .78em; display: block; }
.sc-kpis b { font-family: var(--font-display); font-size: 1.4em; }
.sc-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 12px; padding: 0 4px; }
.sc-bars i { flex: 1; background: var(--sc-accent); border-radius: 4px 4px 0 0; opacity: .85; }
.sc-tablewrap { overflow: auto; border: 1px solid var(--sc-line, #e3e8ef); border-radius: 10px; background: var(--sc-card, #fff); }
.sc-table { width: 100%; border-collapse: collapse; font-size: .9em; }
.sc-table th, .sc-table td { padding: 8px 10px; border-bottom: 1px solid var(--sc-line, #e3e8ef); text-align: left; white-space: nowrap; }
.sc-table thead th { font-size: .74em; text-transform: uppercase; letter-spacing: .06em; color: var(--sc-ink2, #6c7787); background: #f6f8fb; }
.sc-table td.ok { color: #15803d; font-weight: 600; } .sc-table td.warn { color: #b45309; font-weight: 600; }
.sc-week td { padding: 5px; }
.sc-chip { display: inline-block; padding: 4px 8px; border-radius: 6px; background: color-mix(in srgb, var(--sc-accent) 12%, #fff); color: var(--sc-accent); font-size: .85em; font-weight: 600; cursor: grab; }
.sc-chip.off { background: #f1f3f7; color: var(--sc-ink2, #6c7787); }
.sc-kanban { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 8px; overflow-x: auto; }
.sc-kanban__col { background: #eef1f5; border-radius: 10px; padding: 8px; min-height: 160px; transition: background .2s; }
.sc-kanban__col.over { background: color-mix(in srgb, var(--sc-accent) 14%, #fff); }
.sc-kanban__col > b { display: flex; justify-content: space-between; font-size: .78em; text-transform: uppercase; letter-spacing: .06em; color: var(--sc-ink2, #6c7787); margin-bottom: 6px; }
.sc-kanban__col > b em { font-style: normal; }
.sc-card--k { cursor: grab; margin-top: 6px; font-size: .9em; }
.sc-card--k.drag { opacity: .4; }
.sc-sign p { font-size: .95em; }
.sc-sign__pad { width: 100%; height: 120px; border: 1.5px dashed #cfd6e1; border-radius: 10px; background: var(--sc-card, #fff); margin-top: 10px; touch-action: none; display: block; }
.sc-sign small { color: var(--sc-ink2, #6c7787); display: block; margin-top: 4px; }
.sc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Dunkler Bildschirm (Mini-Baukästen) */
.ph--dunkel .ph__screen, .dk--dunkel .dk__screen { background: #0f1729; --sc-card: #182134; --sc-ink: #eef2f8; --sc-ink2: #aab6cc; --sc-line: #2a3650; --sc-line2: #3a475f; }
.ph--dunkel .ph__tabs { background: #121a2b; }
.ph--dunkel .mb-tab { color: #8a97ad; }
.ph--dunkel .mb-tab__dot { background: #2a3650; }
.ph--dunkel .sc-field input, .dk--dunkel .sc-field input, .ph--dunkel .sc-chat__in input, .dk--dunkel .sc-chat__in input { color: var(--sc-ink); }
.ph--dunkel .sc-kanban__col, .dk--dunkel .sc-kanban__col { background: #1b2538; }
.ph--dunkel .sc-table thead th, .dk--dunkel .sc-table thead th { background: #1b2538; }
.ph--dunkel .mb-empty b, .dk--dunkel .mb-empty b { color: #fff; }
.mb-help { background: var(--accent-soft); border: 1px solid #bfe6ee; border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 12px; font-size: .88rem; color: var(--ink-2); }
.mb-help b { display: block; color: var(--ink); margin-bottom: 4px; }
.mb-help ol { margin: 0 0 0 18px; display: grid; gap: 2px; }
.mb-help ol li { list-style: decimal; }
.mb-name .seg { margin-top: 4px; }

.mb { padding-top: var(--nav-h); }
.mb-jump { display: none; position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; padding: 12px 20px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; box-shadow: var(--sh-3); white-space: nowrap; }
@media (max-width: 900px) { .mb-jump { display: block; } .mb-done .mb-jump { display: none; } }
