/* ============================================================
   Jira Dashboard - Design angelehnt an die TechByGiusi-Apps
   warm · spielerisch · modern · flüssig
   ============================================================ */

@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-wght-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-ext-wght-normal.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 {
  --bg: #f7f5ef; --panel: #fffefa; --panel2: #efede7; --text: #1f201d; --ink: #1f201d; --muted: #73746d; --border: #dfded6;
  --accent: #7568e8; --lime: #d8f28c; --lime-soft: #eaf8bd; --coral: #ff795f; --green: #42825f;
  --danger: #e0573d; --warn: #d99a1e; --ok: #42825f;
  --cat-new: #b4b3a9; --cat-ind: var(--accent); --cat-done: #42825f;
  --shadow: 0 8px 18px rgba(31,32,29,.05); --shadow-lg: 0 24px 70px rgba(31,32,29,.11);
  --ease: cubic-bezier(.2,.75,.25,1); --spring: cubic-bezier(.34,1.56,.64,1);
  --r: 22px; --r-sm: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #151613; --panel: #1e1f1c; --panel2: #282925; --text: #f6f5ef; --ink: #f6f5ef; --muted: #adaea6; --border: #353631;
  --lime-soft: #29321a; --cat-new: #6b6c64; --danger: #ff795f;
  --shadow: 0 8px 18px rgba(0,0,0,.25); --shadow-lg: 0 24px 70px rgba(0,0,0,.4); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #151613; --panel: #1e1f1c; --panel2: #282925; --text: #f6f5ef; --ink: #f6f5ef; --muted: #adaea6; --border: #353631;
    --lime-soft: #29321a; --cat-new: #6b6c64; --danger: #ff795f;
    --shadow: 0 8px 18px rgba(0,0,0,.25); --shadow-lg: 0 24px 70px rgba(0,0,0,.4); color-scheme: dark;
  }
}
html { --accent-soft: color-mix(in srgb, var(--accent) 14%, var(--panel)); --accent-fg: color-mix(in srgb, var(--accent) 88%, var(--ink)); scroll-behavior: smooth; }
:root[data-theme="dark"] { --accent-fg: color-mix(in srgb, var(--accent) 55%, #ffffff); --ok: #7cc79a; --green: #5fae82; --cat-done: #5fae82; --warn: #e8b14a; --accent-soft: color-mix(in srgb, var(--accent) 22%, var(--panel)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --accent-fg: color-mix(in srgb, var(--accent) 55%, #ffffff); --ok: #7cc79a; --green: #5fae82; --cat-done: #5fae82; --warn: #e8b14a; --accent-soft: color-mix(in srgb, var(--accent) 22%, var(--panel)); } }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 14px/1.5 Inter, "Segoe UI", Helvetica, Arial, sans-serif; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; transition: background-color .35s var(--ease), color .35s var(--ease); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-fg); text-decoration: none; font-weight: 600; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--muted); } .small { font-size: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--lime); color: #1f201d; }
*::-webkit-scrollbar { width: 10px; height: 10px; } *::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--accent) 70%, var(--border)); background-clip: padding-box; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }

/* Deko-Blobs im Hintergrund */
.blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(120px); animation: drift 40s var(--ease) infinite alternate; }
.blobs i:nth-child(1) { width: 640px; height: 640px; right: -220px; top: -260px; background: var(--lime); opacity: .16; }
.blobs i:nth-child(2) { width: 560px; height: 560px; left: -240px; bottom: -280px; background: #e4ded0; opacity: .45; animation-duration: 50s; }
:root[data-theme="dark"] .blobs i:nth-child(1) { opacity: .05; } :root[data-theme="dark"] .blobs i:nth-child(2) { opacity: .0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .blobs i:nth-child(1) { opacity: .05; } :root:not([data-theme]) .blobs i:nth-child(2) { opacity: 0; } }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.06); } }

/* ---------- Header ---------- */
.topbar::before { content: ''; position: absolute; inset: -20px -20px 0; background: var(--bg); z-index: -2; pointer-events: none; }
.topbar::after { content: ''; position: absolute; inset: 0; background: var(--panel); border-radius: inherit; z-index: -1; pointer-events: none; }
.topbar { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; gap: 14px; margin: 12px 16px 0; padding: 9px 10px 9px 14px;
  background: var(--panel); isolation: isolate;
  border: 0; border-radius: 20px; box-shadow: 0 12px 40px rgba(31,32,29,.07);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.topbar.scrolled { box-shadow: 0 16px 46px rgba(31,32,29,.14); }
.brand { font-weight: 820; letter-spacing: -.035em; font-size: 17px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo { width: 34px; height: 34px; border-radius: 11px; background: var(--lime); color: #1f201d; display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(31,32,29,.12); transition: transform .4s var(--spring); }
.logo svg { width: 19px; height: 19px; stroke-width: 2.3; }
.brand:hover .logo { transform: rotate(-8deg) scale(1.06); }
.tabs { display: flex; gap: 3px; overflow-x: auto; flex: 1; scrollbar-width: none; padding: 4px; border-radius: 15px; background: var(--panel2); }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 11px; border: 0; background: none; cursor: pointer; white-space: nowrap; color: var(--muted); font-weight: 650; font-size: 13px;
  transition: color .2s, background .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease); }
.tab:hover { color: var(--text); transform: translateY(-1px); }
.tab:active { transform: scale(.96); }
.tab.active { color: var(--text); background: var(--panel); box-shadow: 0 3px 10px rgba(31,32,29,.09); }
.tab .i { width: 15px; height: 15px; }
.actions { display: flex; align-items: center; gap: 4px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 15px; border: 1px solid var(--border); border-radius: 13px; background: var(--panel); cursor: pointer; white-space: nowrap; font-weight: 700; font-size: 13px; color: var(--text);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--border) 75%, transparent); transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .2s, border-color .2s; text-decoration: none !important; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 color-mix(in srgb, var(--border) 75%, transparent); }
.btn:active { transform: translateY(3px) scale(.98); box-shadow: 0 2px 0 color-mix(in srgb, var(--border) 75%, transparent); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.primary, .btn.on { background: var(--ink); border-color: var(--ink); color: var(--bg); box-shadow: 0 5px 0 color-mix(in srgb, var(--ink) 20%, transparent); }
.btn.primary:hover, .btn.on:hover { box-shadow: 0 7px 0 color-mix(in srgb, var(--ink) 20%, transparent); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: #1f201d; box-shadow: 0 5px 0 color-mix(in srgb, var(--lime) 45%, transparent); }
.btn.danger { color: var(--danger); }
.btn.ghost { border-color: transparent; background: none; box-shadow: none; width: 40px; min-height: 40px; padding: 0; }
.btn.ghost:hover { background: var(--panel2); box-shadow: none; }
.btn.ghost:active { transform: scale(.92); }
.btn.spin .i { animation: spin .7s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }
.icon { display: inline-grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--muted); width: 30px; height: 30px; border-radius: 9px; transition: background .2s, color .2s, transform .2s var(--spring); }
.icon .i { width: 16px; height: 16px; }
.icon:hover { background: var(--panel2); color: var(--text); transform: translateY(-1px); }
.icon:active { transform: scale(.88); }
.icon.del:hover { color: var(--danger); }

/* ---------- Kopfbereich ---------- */
.note { margin: 14px 20px 0; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--lime) 14%, var(--panel)); border: 0; font-size: 13px; }
#banner .note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modal .note { margin: 0; }
#dashHead { padding: 26px 20px 0; }
.dashTitle { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 780; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); flex: none; }
.dashTitle h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -.045em; font-weight: 820; margin: 6px 0 0; }
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::after { content: ""; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: .04em; height: .34em; border-radius: 6px; background: var(--lime); transform-origin: left; animation: mark .8s .15s var(--ease) both; }
:root[data-theme="dark"] .hl::after { opacity: .5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .hl::after { opacity: .5; } }
@keyframes mark { from { transform: scaleX(0); } }
.dashTitle code { font: 600 12px ui-monospace, SFMono-Regular, Consolas, monospace; padding: 4px 9px; border-radius: 8px; background: var(--panel2); color: var(--muted); margin-bottom: 6px; }
.editBar { display: grid; grid-template-columns: 1fr 2fr 150px auto; gap: 12px; align-items: end; margin-top: 16px; background: var(--panel); border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: var(--r); padding: 14px; animation: pop .35s var(--spring); }

/* ---------- Grid & Karten ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 18px 20px 28px; }
.w1 { grid-column: span 1; } .w2 { grid-column: span 2; } .w3 { grid-column: span 3; } .w4 { grid-column: span 4; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .w3, .w4 { grid-column: span 2; } .editBar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; padding: 14px 12px 20px; } .w1, .w2, .w3, .w4 { grid-column: span 1; } .topbar { flex-wrap: wrap; margin: 8px 8px 0; top: 8px; gap: 8px; } .tabs { order: 3; flex-basis: 100%; } .actions { margin-left: auto; } #btnFull { display: none; } .actions .btn.ghost { width: 36px; min-height: 36px; } #btnEdit { padding: 0 11px; } .editBar { grid-template-columns: 1fr; } #updated { display: none; } #dashHead { padding: 18px 12px 0; } .note { margin: 12px 12px 0; } }

.card { position: relative; background: var(--panel); border: 0; border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 120px; min-width: 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s, background-color .35s var(--ease); }
.grid > .card:hover { box-shadow: 0 16px 36px rgba(31,32,29,.08); }
.anim .grid > .card, .anim.grid > .card { animation: rise .7s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.985); } }
.card.dragging { opacity: .35; transform: scale(.97); } .card.dropTarget { outline: 2px dashed var(--accent); outline-offset: 3px; }
.cardHead { display: flex; align-items: center; gap: 8px; padding: 14px 16px 0; min-height: 44px; }
.cardHead h3 { margin: 0; flex: 1; min-width: 0; }
.cardHead h3 .eyebrow { max-width: 100%; }
.cardHead h3 .eyebrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cardTools { display: none; gap: 1px; } .editing .cardTools { display: flex; } .editing .grid > .card:not(.addCard) { cursor: grab; }
.editing .grid > .card:not(.addCard) { animation: wiggle .5s var(--ease); }
@keyframes wiggle { 30% { transform: rotate(-.6deg); } 60% { transform: rotate(.5deg); } }
.cardBody { padding: 10px 16px 16px; flex: 1; min-width: 0; }
.grid > .addCard { grid-column: 1 / -1; width: 100%; box-sizing: border-box; display: flex; border: 2px dashed var(--border); background: transparent; box-shadow: none; align-items: center; justify-content: center; text-align: center; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 700; gap: 8px; flex-direction: row; }
.addCard:hover { border-color: var(--accent); color: var(--accent-fg); transform: translateY(-3px); background: var(--accent-soft); }
.err { color: var(--danger); font-size: 13px; word-break: break-word; }
.loading { display: flex; flex-direction: column; gap: 8px; font-size: 0; }
.loading::before, .loading::after { content: ""; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--panel2) 25%, color-mix(in srgb, var(--panel2) 40%, var(--panel)) 50%, var(--panel2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.loading::after { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* KPI */
.card.hi { background: var(--lime); border-color: var(--lime); color: #1f201d; }
.card.hi .eyebrow, .card.hi .kpiSub { color: #5c6144; } .card.hi .eyebrow i { background: #1f201d; box-shadow: 0 0 0 4px rgba(31,32,29,.12); }
.card.hi .icon { color: #5c6144; } .card.hi .icon:hover { background: rgba(255,255,255,.4); color: #1f201d; }
.card.warnCard { background: color-mix(in srgb, var(--danger) 5%, var(--panel)); }
.kpi { font-size: clamp(34px, 3.6vw, 46px); font-weight: 820; letter-spacing: -.05em; line-height: 1.05; cursor: pointer; font-variant-numeric: tabular-nums; display: inline-block; transition: transform .3s var(--spring); }
.kpi:hover { transform: scale(1.04); }
.kpi.warn { color: var(--danger); }
.kpiSub { margin-top: 4px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpiSub .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* Balken */
.bars { display: flex; flex-direction: column; gap: 4px; }
.barRow { display: grid; grid-template-columns: minmax(80px, 34%) 1fr 44px; gap: 10px; align-items: center; cursor: pointer; padding: 5px 8px; border-radius: 10px; transition: background .2s, transform .2s var(--ease); }
.barRow:hover { background: var(--panel2); transform: translateX(3px); }
.barLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.barTrack { height: 12px; background: var(--panel2); border-radius: 999px; overflow: hidden; }
.barFill { height: 100%; border-radius: 999px; transform-origin: left; }
.anim .barFill { animation: grow .9s var(--ease) both; animation-delay: calc(var(--n, 0) * 45ms + 150ms); }
@keyframes grow { from { transform: scaleX(0); } }
.barVal { text-align: right; font-variant-numeric: tabular-nums; font-weight: 760; }

/* Donut */
.donutWrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.donutWrap svg { width: 156px; height: 156px; flex: none; overflow: visible; }
@keyframes donut { from { stroke-dasharray: 0 400; } }
.donutWrap text { fill: currentColor; }
.legend { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 150px; }
.legend div { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px 8px; border-radius: 9px; transition: background .2s, transform .2s var(--ease); }
.legend div:hover { background: var(--panel2); transform: translateX(3px); }
.dot { width: 10px; height: 10px; border-radius: 4px; flex: none; display: inline-block; }
.legend .n { margin-left: auto; font-weight: 760; font-variant-numeric: tabular-nums; }

/* Themen */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 4px 28px; }
.topic { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 4px 12px; padding: 10px 12px; border-radius: 14px; cursor: pointer; transition: background .2s, transform .25s var(--ease); }
.topic:hover { background: color-mix(in srgb, var(--c) 9%, var(--panel)); transform: translateX(3px); }
.anim .topic { animation: rise .55s var(--ease) both; animation-delay: calc(var(--n, 0) * 45ms + 120ms); }
.topic .tn { font-weight: 650; display: flex; align-items: center; gap: 9px; min-width: 0; line-height: 1.3; }
.topic .tn::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
.topic .tc { font-size: 18px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.topic .tpc { min-width: 38px; text-align: right; color: var(--muted); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.topic .tp { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--panel2); overflow: hidden; }
.topic .tp i { display: block; height: 100%; background: var(--c); border-radius: 3px; transform-origin: left; }
.anim .topic .tp i { animation: grow 1s var(--ease) both; animation-delay: calc(var(--n, 0) * 45ms + 280ms); }
.topic .tsub { grid-column: 1 / -1; padding-left: 18px; }
.topic.other .tn { color: var(--muted); }

/* Tabelle */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--border); cursor: pointer; white-space: nowrap; user-select: none; }
.tbl th:hover { color: var(--text); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; transition: background .15s; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--panel2); }
.tbl tbody tr:hover td:first-child { border-radius: 10px 0 0 10px; } .tbl tbody tr:hover td:last-child { border-radius: 0 10px 10px 0; }
.tbl tbody tr .icon { opacity: 0; } .tbl tbody tr:hover .icon { opacity: 1; }
.tblWrap { overflow-x: auto; }
.tbl td.sum { max-width: 420px; font-weight: 550; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--panel2); color: var(--text); border: 0; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cat-new); }
.badge.indeterminate::before { background: var(--cat-ind); } .badge.done::before { background: var(--cat-done); }

/* Verlauf */
.trend svg { width: 100%; height: auto; display: block; overflow: visible; }
.trend text { fill: var(--muted); font-size: 11px; font-weight: 600; }
.trend .grid line { stroke: var(--border); stroke-dasharray: 3 5; }
.trend path.line { stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.trend .area { opacity: 1; }
.anim .trend path.line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) .2s forwards; }
.anim .trend .area { animation: fade 1s .6s both; }
.anim .trend circle { animation: fade .4s both; animation-delay: calc(var(--n, 0) * 18ms + 600ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
.trend circle { transition: r .2s var(--spring); } .trend circle:hover { r: 6; }
.trendLegend { display: flex; gap: 18px; margin-bottom: 8px; font-weight: 650; }
.trendLegend span { display: inline-flex; align-items: center; gap: 7px; }
.saldo { padding: 1px 9px; border-radius: 999px; background: var(--panel2); }

/* ---------- Modal ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(21,22,19,.38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto; animation: fade .25s var(--ease); }
.modal { margin: auto; background: var(--panel); border: 0; border-radius: 26px; width: 100%; max-width: 720px; box-shadow: var(--shadow-lg); animation: pop .42s var(--spring); }
.backdrop.closing { animation: fade .2s reverse forwards; } .backdrop.closing .modal { animation: popOut .2s var(--ease) forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.95); } }
@keyframes popOut { to { opacity: 0; transform: translateY(12px) scale(.96); } }
.modal.wide { max-width: 1000px; }
.modalHead { display: flex; align-items: center; padding: 18px 20px 14px; gap: 10px; }
.modalHead h2 { font-size: 19px; letter-spacing: -.03em; font-weight: 800; margin: 0; flex: 1; }
.modalBody { padding: 4px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.modalFoot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px 20px; border-top: 1px solid var(--border); }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 700; }
label.f > span.hint { font-weight: 500; }
input:not([type]), input[type=text], input[type=password], input[type=number], input[type=url], input[type=date], input[type=email], input[type=search], select, textarea {
  border: 1px solid var(--border); background: var(--panel2); border-radius: 12px; padding: 9px 12px; width: 100%; color: var(--text); font-weight: 500; transition: border-color .2s, box-shadow .2s, background .2s; }
input:not([type]), input[type=text], input[type=password], input[type=number], input[type=url], input[type=date], input[type=email], input[type=search], select:not([multiple]):not([size]) {
  box-sizing: border-box; height: 42px; min-height: 42px; line-height: 20px;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
textarea { resize: vertical; min-height: 60px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.typeBtn { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); background: var(--panel2); border-radius: 16px; padding: 12px; cursor: pointer; text-align: left; transition: transform .25s var(--spring), border-color .2s, background .2s, box-shadow .2s; }
.typeBtn .i { width: 22px; height: 22px; margin-bottom: 6px; color: var(--muted); transition: transform .35s var(--spring), color .2s; }
.typeBtn:hover { transform: translateY(-3px); }
.typeBtn:hover .i { transform: rotate(-8deg) scale(1.1); color: var(--text); }
.typeBtn b { display: block; font-weight: 760; } .typeBtn.sel { border-color: var(--ink); background: var(--lime); color: #1f201d; box-shadow: 0 5px 0 color-mix(in srgb, var(--lime) 50%, transparent); }
.typeBtn.sel .muted, .typeBtn.sel .i { color: #4d5236; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 650; background: var(--panel2); transition: transform .2s var(--spring), background .2s, color .2s, border-color .2s; }
.chip:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.chip:active { transform: scale(.94); }
.chip.sel { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.topicRow { display: grid; grid-template-columns: 1fr 46px 2fr auto; gap: 8px; align-items: center; animation: pop .3s var(--spring); }
input[type=color] { width: 46px; height: 38px; border: 1px solid var(--border); border-radius: 12px; padding: 3px; background: var(--panel2); cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } input[type=color]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; cursor: pointer; }
.ok { color: var(--ok); font-weight: 700; }
.login { max-width: 360px; margin: 18vh auto; animation: pop .5s var(--spring); }
.foot { text-align: center; padding: 0 0 24px; }
.hr { border: 0; border-top: 1px solid var(--border); width: 100%; margin: 4px 0; }

/* Custom Checkbox */
/* Schalter statt Häkchen - überall */
input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; margin: 0; cursor: pointer; width: 40px; height: 23px; border-radius: 999px; border: 0; background: var(--border); position: relative; display: inline-block; vertical-align: middle; transition: background .25s var(--ease); }
input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--spring), width .2s var(--ease), background .2s; }
input[type=checkbox]:checked { background: var(--ink); }
input[type=checkbox]:checked::after { transform: translateX(17px); background: var(--lime); }
input[type=checkbox]:hover { filter: brightness(.97); }
input[type=checkbox]:active::after { width: 21px; }
input[type=checkbox]:checked:active::after { transform: translateX(13px); }
input[type=checkbox]:disabled { opacity: .5; cursor: default; }
:root[data-theme="dark"] input[type=checkbox]:not(:checked) { background: #45463f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) input[type=checkbox]:not(:checked) { background: #45463f; } }

/* ---------- Navigation-Zähler ---------- */
.cnt { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); font-size: 11px; font-weight: 750; text-align: center; color: var(--muted); line-height: 17px; transition: transform .3s var(--spring); }
.tab.active .cnt, .tlist.active .cnt { background: var(--lime); color: #1f201d; border-color: var(--lime); }
.cnt.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.35); } }
.tabs .sep { width: 1px; background: var(--border); margin: 6px 4px; flex: none; }
.key { font: 650 12px ui-monospace, SFMono-Regular, Consolas, monospace; }

/* ---------- Kanban ---------- */
.kwrap { overflow-x: auto; margin: 0 -4px; padding: 2px 4px 6px; }
.kanban { display: grid; gap: 10px 12px; align-items: start; }
.khead { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 13px; background: var(--panel2); font-weight: 760; font-size: 13px; position: sticky; top: 0; z-index: 1; }
.khead .kname { display: flex; align-items: center; gap: 8px; } .khead .kname::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kc, var(--accent)); }
.khead.over { background: color-mix(in srgb, var(--danger) 14%, var(--panel2)); } .khead.over .kcount { color: var(--danger); }
.kcount { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; font-weight: 700; padding: 0 8px; border-radius: 999px; background: var(--panel); }
.klane { grid-column: 1 / -1; padding: 10px 2px 0; border-top: 1px dashed var(--border); font-size: 13px; }
.kcol { display: flex; flex-direction: column; gap: 8px; min-height: 70px; max-height: 72vh; overflow-y: auto; padding: 6px; border-radius: 16px; background: color-mix(in srgb, var(--panel2) 55%, transparent); border: 2px dashed transparent; transition: background .2s, border-color .2s, transform .25s var(--spring); }
.kcol.over { background: var(--lime-soft); border-color: color-mix(in srgb, var(--lime) 60%, var(--ink)); transform: scale(1.01); }
.kcard { background: var(--panel); border: 0; border-radius: 14px; padding: 10px 12px; cursor: pointer; box-shadow: 0 1px 3px rgba(31,32,29,.07), 0 2px 0 color-mix(in srgb, var(--border) 55%, transparent); transition: transform .25s var(--spring), box-shadow .25s var(--ease), border-color .2s; }
.anim .kcard { animation: rise .5s var(--ease) both; animation-delay: calc(var(--n, 0) * 22ms + 100ms); }
.kcard[draggable="true"] { cursor: grab; }
.kcard:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 10px 22px rgba(31,32,29,.1); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.kcard.dragging { opacity: .3; transform: rotate(3deg) scale(.96); }
.kcard.pending { opacity: .7; animation: breathe 1s infinite; }
.kcard.landed { animation: landed .6s var(--spring); border-color: var(--lime); }
@keyframes landed { 0% { transform: scale(.9) rotate(-3deg); } 60% { transform: scale(1.04) rotate(1deg); } }
@keyframes breathe { 50% { opacity: .45; } }
.ktop { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.ktop .kadd { margin-left: auto; opacity: 0; width: 26px; height: 26px; }
.kcard:hover .kadd { opacity: 1; }
.ksum { margin: 5px 0 8px; font-size: 13px; line-height: 1.38; font-weight: 600; }
.kfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
.kmeta { display: inline-flex; align-items: center; gap: 5px; }
.kmeta .dot { width: 8px; height: 8px; border-radius: 50%; }
.klabel { padding: 1px 7px; border-radius: 6px; background: var(--panel2); }
.avatar { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--av, var(--accent-soft)); color: #1f201d; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 9.5px; flex: none; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--border); }
.avatar.none { background: var(--panel2); color: var(--muted); }
.kmore { font-size: 12px; min-height: 32px; box-shadow: none; border-style: dashed; }
.tbadge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; padding: 0 7px; border-radius: 999px; background: var(--lime); color: #1f201d; font-weight: 750; white-space: nowrap; line-height: 18px; }
.tbadge .i { width: 11px; height: 11px; stroke-width: 2.6; }

/* ---------- To-dos ---------- */
.todoList { display: flex; flex-direction: column; }
.todoAdd { position: relative; margin-bottom: 4px; }
.todoAdd .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.todoAdd input { width: 100%; padding-left: 38px !important; }
.todoList.compact .todoAdd input { padding-top: 7px; padding-bottom: 7px; font-size: 13px; }
.todo { display: flex; gap: 11px; align-items: flex-start; padding: 10px 6px; border-radius: 12px; border-bottom: 1px solid var(--border); transition: background .2s, opacity .3s; }
.todo:hover { background: transparent; }
.todoList .todo:hover .ttext { color: var(--accent); }
.todo:last-of-type { border-bottom: 0; }
.anim .todo, .todo.fresh { animation: slideIn .45s var(--ease) both; animation-delay: calc(var(--n, 0) * 35ms); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } }
.todo input[type=checkbox], input.taskDone[type=checkbox] {
  width: 22px; height: 22px; margin: 2px 0 0; border-radius: 7px;
  border: 1.5px solid var(--muted); background: var(--panel);
  display: inline-grid; place-items: center; box-sizing: border-box;
}
.todo input[type=checkbox]::after, input.taskDone[type=checkbox]::after {
  content: ''; position: static; width: 6px; height: 11px;
  border: solid var(--bg); border-width: 0 2px 2px 0; border-radius: 0;
  background: transparent; box-shadow: none; opacity: 0;
  transform: translateY(-2px) rotate(45deg); transition: opacity .15s;
}
.todo input[type=checkbox]:checked, input.taskDone[type=checkbox]:checked {
  background: var(--ink); border-color: var(--ink);
}
.todo input[type=checkbox]:checked::after, input.taskDone[type=checkbox]:checked::after,
.todo input[type=checkbox]:active::after, input.taskDone[type=checkbox]:active::after {
  width: 6px; background: transparent; transform: translateY(-2px) rotate(45deg);
}
.todo input[type=checkbox]:checked::after, input.taskDone[type=checkbox]:checked::after { opacity: 1; }
.todo input[type=checkbox]:focus-visible, input.taskDone[type=checkbox]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
.todoList { gap: 4px; }
.todoList .todo { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; padding: 16px 12px; min-height: 56px; box-sizing: border-box; align-items: start; border-radius: 0; }
.todoList .todo > input[type=checkbox] { margin: 1px 0 0; align-self: start; }
.todoList .todo > .tmain { display: flex; flex-direction: column; align-items: stretch; gap: 10px; line-height: 24px; }
.todoList .todo .tmeta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; min-width: 0; }
.todoList .todo .ttext { display: block; line-height: 24px; }
.todoList .todo > .tact { align-self: start; }
.todoList .todoAdd { margin-bottom: 10px; }
.todoList .todoAdd input { min-height: 46px; }
.todoList .tact { gap: 6px; }
.todoList .ttext { line-height: 1.55; }
.compact .todo input[type=checkbox] { transform: scale(.9); transform-origin: left center; }
.tmain { flex: 1; min-width: 0; cursor: pointer; }
.ttext { word-break: break-word; font-weight: 600; position: relative; display: inline; background: linear-gradient(currentColor, currentColor) 0 55% / 0 1.5px no-repeat; transition: background-size .35s var(--ease), color .3s; }
.todo.done .ttext { color: var(--muted); background-size: 100% 1.5px; }
.tmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 5px; }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; font-weight: 600; }
.due .i, .tmeta > .i { width: 13px; height: 13px; }
.due.overdue { color: var(--danger); } .due.soon { color: var(--warn); }
.hintDone { color: var(--ok); font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.tact { display: flex; opacity: 0; transition: opacity .2s; } .todo:hover .tact { opacity: 1; }
@media (hover: none) { .tact, .ktop .kadd, .tbl tbody tr .icon { opacity: 1; } }
.compact .todo { padding: 7px 4px; font-size: 13px; }
.tprog { height: 6px; background: var(--panel2); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.tprog i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), color-mix(in srgb, var(--lime) 70%, var(--green))); border-radius: 3px; transition: width .6s var(--ease); }
.tchip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; background: var(--panel2); cursor: pointer; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 650; white-space: nowrap; transition: transform .2s var(--spring), border-color .2s; }
.tchip:hover { border-color: var(--accent); transform: translateY(-1px); }
.tchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--cat-new); }
.tchip.indeterminate i { background: var(--cat-ind); } .tchip.done i { background: var(--cat-done); }
.tchip.done { color: var(--muted); } .tchip.done > span.k { text-decoration: line-through; }
.tchip.missing { border-color: var(--danger); color: var(--danger); } .tchip.missing i { background: var(--danger); }
.tchip.unknown i { background: var(--border); animation: breathe 1s infinite; }
.tchip .tstat { font-family: Inter, system-ui, sans-serif; color: var(--muted); font-weight: 600; }
.tchip .x { margin-left: 2px; color: var(--muted); font-size: 14px; line-height: 1; }
.tchip .x:hover { color: var(--danger); }
.burst { position: fixed; z-index: 120; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 7px; height: 7px; border-radius: 2px; left: -3px; top: -3px; animation: burst .7s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
.pickRes { display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; }
.pickRow { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 10px; font-size: 13px; animation: slideIn .3s var(--ease) both; }
.pickRow:hover { background: var(--panel2); }
.pickRow.missing { color: var(--danger); }
.psum { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.colRow { display: grid; grid-template-columns: 1fr 2fr 80px 64px; gap: 8px; align-items: center; animation: pop .3s var(--spring); }
.colRow.muted { animation: none; font-weight: 700; }
.linkedTodo { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.linkedTodo:hover { background: var(--panel2); }
.linkedTodo a { margin-left: auto; font-size: 12px; } .linkedTodo.done span:nth-child(2) { text-decoration: line-through; color: var(--muted); }

.todoPage { display: grid; grid-template-columns: 250px 1fr; gap: 16px; padding: 18px 20px 28px; align-items: start; }
.anim.todoPage > * { animation: rise .6s var(--ease) both; } .anim.todoPage > *:nth-child(2) { animation-delay: 80ms; }
.tlists { padding: 8px; gap: 2px; min-height: 0; position: sticky; top: 90px; }
.tlist { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-weight: 650; transition: background .2s, transform .2s var(--ease); }
.tlist:hover { background: var(--panel2); }
.tlist.active { background: var(--ink); color: var(--bg); }
.tlist.active .cnt { box-shadow: none; }
.tlist.add { color: var(--muted); margin-top: 4px; justify-content: flex-start; gap: 8px; }
.listHead { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.listName { flex: 1; min-width: 180px; font-size: 24px !important; font-weight: 820 !important; letter-spacing: -.04em; border-color: transparent !important; background: none !important; padding-left: 0 !important; box-shadow: none !important; }
.listName:focus { border-color: var(--accent) !important; padding-left: 12px !important; background: var(--panel2) !important; }
@media (max-width: 760px) { .todoPage { grid-template-columns: 1fr; padding: 12px; } .tlists { position: static; } .colRow { grid-template-columns: 1fr 1fr 60px 56px; } }

.toast { position: fixed; bottom: 22px; left: 50%; z-index: 130; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); padding: 11px 18px 11px 12px; border-radius: 16px; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 650; max-width: 90vw;
  transform: translateX(-50%); animation: toastIn .5s var(--spring); transition: opacity .35s, transform .35s var(--ease); }
.toast::before { content: ""; width: 22px; height: 22px; border-radius: 8px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f201d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; flex: none; }
.toast.bad::before { background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f201d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 8v5M12 17h.01'/%3E%3C/svg%3E") center / 14px no-repeat; }
.toast.out { opacity: 0; transform: translateX(-50%) translateY(14px); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(26px) scale(.9); } }

/* View-Transitions zwischen Dashboards */
::view-transition-old(main), ::view-transition-new(main) { animation-duration: .35s; animation-timing-function: var(--ease); }
::view-transition-old(main) { animation-name: vtOut; } ::view-transition-new(main) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } } @keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
main#grid { view-transition-name: main; }

:fullscreen .actions .btn:not(#btnFull):not(#btnTheme) { display: none; }

/* ---------- Anmeldung ---------- */
body.authPage { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.authWrap { width: 100%; max-width: 420px; animation: pop .55s var(--spring); }
.authCard { padding: 28px; gap: 16px; border-radius: 28px; box-shadow: var(--shadow-lg); }
.authTitle { font-size: 30px; letter-spacing: -.045em; font-weight: 820; margin: 4px 0 0; }
.authLocal { display: flex; flex-direction: column; gap: 10px; }
.btn.big { min-height: 50px; font-size: 14px; border-radius: 15px; width: 100%; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.linkBtn { border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; align-self: center; }
.linkBtn:hover { color: var(--text); }

/* Benutzermenü */
.userBtn { padding: 0 !important; }
.avatar.me { margin: 0; width: 32px; height: 32px; font-size: 11px; border-width: 0; box-shadow: inset 0 -2px 0 rgba(31,32,29,.12); transition: transform .3s var(--spring); }
.userBtn:hover .avatar.me { transform: scale(1.08) rotate(-4deg); }
.menu { position: fixed; z-index: 60; min-width: 250px; padding: 8px; background: var(--panel); border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); animation: pop .3s var(--spring); transform-origin: top right; }
.menuHead { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.menuHead > div { flex: 1; min-width: 0; } .menuHead b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menuItem { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 11px; cursor: pointer; font-weight: 650; text-align: left; transition: background .2s, transform .2s var(--ease); }
.menuItem:hover { background: var(--panel2); transform: translateX(2px); }
.menuItem.danger { color: var(--danger); }
.roleBadge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; background: var(--panel2); border: 1px solid var(--border); }
.roleBadge.admin { background: var(--accent-soft); color: var(--accent-fg); border-color: transparent; }
.roleBadge.superadmin { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.roleBadge .i { width: 12px; height: 12px; }

/* Einstellungen */
.setTabs { display: flex; gap: 4px; padding: 4px; border-radius: 15px; background: var(--panel2); overflow-x: auto; scrollbar-width: none; }
.setTab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 11px; background: none; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; transition: background .25s var(--ease), color .2s, box-shadow .25s; }
.setTab:hover { color: var(--text); }
.setTab.active { background: var(--panel); color: var(--text); box-shadow: 0 3px 10px rgba(31,32,29,.09); }
.setTab .i { width: 15px; height: 15px; }
.setBody { min-height: 220px; animation: fade .3s; }
.setBody > * { animation: rise .4s var(--ease) both; }
.setStack { display: flex; flex-direction: column; gap: 14px; }
.setSect { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 0; border-radius: 18px; background: color-mix(in srgb, var(--panel2) 35%, var(--panel)); }
.btnRow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; width: 100%; box-sizing: border-box; }
.btnRow > .small, .btnRow > [role=status] { order: -1; margin-right: 0; flex: 0 1 auto; }
.copyRow { display: flex; gap: 6px; } .copyRow .btn { min-height: 38px; padding: 0 11px; box-shadow: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important; font-size: 12px !important; }
.guide { border: 1px dashed var(--border); border-radius: 16px; padding: 12px 16px; }
.guide summary { cursor: pointer; font-weight: 750; display: flex; align-items: center; gap: 8px; list-style: none; }
.guide ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.srcBadge { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 750; background: var(--panel2); }
.srcBadge.entra { background: color-mix(in srgb, #5b8def 18%, var(--panel)); color: #3a6fd8; }
.uCell { display: flex; align-items: center; gap: 10px; } .uCell .avatar { margin: 0; width: 32px; height: 32px; font-size: 11px; }
.tbl.users td { padding: 10px 8px; } .tbl.users select { padding: 6px 8px; min-width: 120px; }
.tbl.users tbody tr .icon { opacity: 1; }
.tbl.users tr.inactive td { opacity: .55; }

/* Jira-Erinnerung */
.jiraHint { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--warn) 50%, var(--border)); background: color-mix(in srgb, var(--warn) 14%, var(--panel)); color: color-mix(in srgb, var(--warn) 75%, var(--text)); font-size: 11px; font-weight: 750; cursor: pointer; animation: pop .4s var(--spring); }
.jiraHint .i { width: 12px; height: 12px; }
.todo.done .jiraHint { opacity: 1; }
.remind { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--warn) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--border)); }
.remindIcon { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--warn); color: #1f201d; flex: none; animation: wobble 1.2s var(--spring) .2s; }
@keyframes wobble { 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }
.remindList { display: flex; flex-direction: column; gap: 6px; }
.remindRow { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 0; background: var(--panel2); border-radius: 14px; animation: slideIn .35s var(--ease) both; }
@media (max-width: 640px) { .remindRow { grid-template-columns: 1fr auto; } .remindRow .psum { grid-column: 1 / -1; order: 3; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .blobs i { animation: none; }
}

/* ---------- v1.4 ---------- */
/* Dropdowns: eigener Pfeil mit Abstand */
select { appearance: none; -webkit-appearance: none; padding-right: 38px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2373746d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 14px; }
select:disabled { opacity: .6; cursor: default; }
input[type=search]::-webkit-search-cancel-button { cursor: pointer; }

/* Schalter statt Checkboxen in Formularen (To-do-Häkchen bleiben Checkboxen) */

label.check { gap: 10px; line-height: 1.35; }

/* Logo-Bild */
img.logo { width: 34px; height: 34px; border-radius: 11px; object-fit: contain; background: var(--panel2); box-shadow: none; }

/* Akzentfarbe */
.accentRow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Benutzertabelle: Aktionen bündig */
.uAct { display: flex; justify-content: flex-end; align-items: center; gap: 2px; min-width: 64px; }
.icon.static { cursor: default; opacity: .55; } .icon.static:hover { background: none; transform: none; color: var(--muted); }

/* Kurzanleitung */
.guide .gHead { display: block; margin: 12px 0 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.guide .gHead + ol { margin-top: 6px; }

/* Personenfilter */
.ppl { display: flex; flex-direction: column; gap: 8px; }
.pplSearch { display: grid; grid-template-columns: 1fr 210px; gap: 8px; }
@media (max-width: 640px) { .pplSearch { grid-template-columns: 1fr; } }
.ppl .chip .x { margin-left: 2px; font-size: 14px; line-height: 1; opacity: .7; cursor: pointer; } .ppl .chip .x:hover { opacity: 1; }
.pplRes { display: flex; flex-direction: column; gap: 2px; }
.pplRow { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 0; background: var(--panel2); border-radius: 11px; cursor: pointer; text-align: left; animation: slideIn .25s var(--ease) both; }
.pplRow:hover { background: var(--accent-soft); } .pplRow:disabled { opacity: .5; cursor: default; }
.pplRow b { font-weight: 650; }
.avatar.xs { width: 20px; height: 20px; font-size: 8px; margin: 0 2px 0 -6px; border-width: 0; box-shadow: none; }
.dashPpl { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px dashed var(--border); }
.dashPpl > .btn { align-self: flex-start; }
.rowAct { display: flex; justify-content: flex-end; }

/* Kanban: Schnellfilter & Einfügemarke */
.kbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.ksearch { position: relative; flex: 0 1 260px; min-width: 180px; }
.ksearch .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.ksearch input { padding-left: 34px !important; }
.pplSearch .ksearch { flex: 1; max-width: none; }
.kbar .chips { flex: 1; }
.chip.person { padding-left: 10px; }
.kbar .linkBtn { visibility: hidden; }
.kdrop { height: 4px; margin: -2px 4px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); animation: fade .15s; flex: none; }
.kempty { display: grid; place-items: center; min-height: 56px; color: var(--muted); font-size: 12px; font-weight: 600; border-radius: 12px; border: 2px dashed color-mix(in srgb, var(--border) 80%, transparent); }
.kcol.over .kempty { border-color: transparent; }
.khint { margin-top: 8px; }
.badge.sm { padding: 1px 8px 1px 6px; font-size: 11px; }
.khead .kname::before { background: var(--kc); }

/* ---------- v1.5: Donut ---------- */
.card:has(.donut) .cardBody { display: flex; flex-direction: column; justify-content: center; }
.donut .donutWrap { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 26px; align-items: center; }
@media (max-width: 560px) { .donut .donutWrap { grid-template-columns: 1fr; justify-items: center; } }
.dChart { position: relative; width: 100%; max-width: 210px; aspect-ratio: 1; }
.dChart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dChart circle[data-i] { cursor: pointer; transition: stroke-width .25s var(--ease), opacity .25s; }
.dChart.focus circle[data-i] { opacity: .3; } .dChart.focus circle[data-i].on { opacity: 1; stroke-width: 26; }
.anim .dChart circle[data-i] { animation: donut 1.1s var(--ease) both; animation-delay: calc(var(--n, 0) * 70ms + 100ms); }
.dCenter { position: absolute; inset: 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.dCenter b { font-size: clamp(22px, 2.4vw, 32px); font-weight: 820; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; transition: color .2s; }
.dCenter span { margin-top: 3px; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dLegend { display: flex; flex-direction: column; gap: 2px; min-width: 0; width: 100%; }
.dRow { display: grid; grid-template-columns: 1fr auto 46px; grid-template-rows: auto auto; gap: 4px 12px; align-items: center; padding: 7px 10px; border-radius: 12px; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.dRow:hover, .dRow.on { background: color-mix(in srgb, var(--c) 9%, var(--panel)); transform: translateX(3px); }
.anim .dRow { animation: rise .5s var(--ease) both; animation-delay: calc(var(--n, 0) * 50ms + 150ms); }
.dLabel { display: flex; align-items: center; gap: 9px; font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dLabel i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.dNum { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.dPct { color: var(--muted); font-size: 12px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.dBar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--panel2); overflow: hidden; }
.dBar i { display: block; height: 100%; border-radius: 3px; background: var(--c); transform-origin: left; }
.anim .dBar i { animation: grow .9s var(--ease) both; animation-delay: calc(var(--n, 0) * 50ms + 250ms); }

/* ---------- v1.5: Rechte-Report ---------- */
.permReport { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; animation: rise .4s var(--ease) both; }
.permUser { display: flex; align-items: center; gap: 12px; } .permUser > div { flex: 1; min-width: 0; }
.permUser .avatar { margin: 0; width: 38px; height: 38px; font-size: 12px; }
.verdict { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; }
.verdict > .i { width: 22px; height: 22px; padding: 4px; border-radius: 8px; flex: none; box-sizing: content-box; }
.verdict.ok { background: color-mix(in srgb, var(--green) 12%, var(--panel)); } .verdict.ok > .i { background: var(--green); color: #fff; }
.verdict.warn { background: color-mix(in srgb, var(--warn) 14%, var(--panel)); } .verdict.warn > .i { background: var(--warn); color: #1f201d; }
.verdict.bad { background: color-mix(in srgb, var(--danger) 12%, var(--panel)); } .verdict.bad > .i { background: var(--danger); color: #fff; }
.verdict div div { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tbl.perm td, .tbl.perm th { text-align: center; } .tbl.perm td:first-child, .tbl.perm th:first-child { text-align: left; }
.tbl.perm th { cursor: default; }
.tbl.perm tbody tr:hover td { background: transparent; }
.pm { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; }
.pm .i { width: 14px; height: 14px; stroke-width: 2.6; }
.pm.y { background: color-mix(in srgb, var(--green) 16%, var(--panel)); color: var(--green); }
tr.write .pm.y, tr.admin .pm.y { background: color-mix(in srgb, var(--warn) 18%, var(--panel)); color: color-mix(in srgb, var(--warn) 80%, var(--text)); }
.pm.n { background: var(--panel2); color: var(--muted); } .pm.na { color: var(--muted); }
.pKind { display: inline-block; width: 74px; margin-right: 8px; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.permProj { display: flex; flex-direction: column; gap: 6px; } .permProj b { font-size: 13px; }

/* ---------- v1.5.1: Dark-Mode-Härtung ---------- */
/* Native Dropdown-Listen (v. a. Chrome/Edge unter Windows) */
select option, select optgroup { background-color: var(--panel); color: var(--text); }
/* Browser-Autofill (Login) nicht weiß mit dunkler Schrift */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); caret-color: var(--text); box-shadow: 0 0 0 40px var(--panel2) inset !important; transition: background-color 9999s; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); opacity: 1; }
:root[data-theme="dark"] ::-webkit-calendar-picker-indicator { filter: invert(.85); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) ::-webkit-calendar-picker-indicator { filter: invert(.85); } }
/* Elemente mit fester dunkler Schrift nur auf hellen Flächen - im Dark Mode explizit absichern */
:root[data-theme="dark"] .srcBadge.entra { color: #9dbcff; background: color-mix(in srgb, #5b8def 22%, var(--panel)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .srcBadge.entra { color: #9dbcff; background: color-mix(in srgb, #5b8def 22%, var(--panel)); } }
.avatar { color: #1f201d; }
.avatar:not([style*="--av"]):not(.none) { background: color-mix(in srgb, var(--accent) 35%, #ffffff); }
.card.hi, .card.hi * { color: #1f201d; }
.card.hi .eyebrow, .card.hi .kpiSub, .card.hi .muted { color: #4f5438; }
.typeBtn.sel, .typeBtn.sel * { color: #1f201d; }
.typeBtn.sel .muted { color: #4d5236; }
.btn.lime, .btn.lime * { color: #1f201d; }
.tbadge, .tbadge * { color: #1f201d; }
.tab.active .cnt, .tlist.active .cnt { color: #1f201d; }
/* Hover-Flächen mit getöntem Hintergrund behalten helle Schrift */
.dRow:hover, .dRow.on, .topic:hover, .pplRow:hover, .menuItem:hover, .chip:hover:not(.sel) { color: var(--text); }

/* ---------- v1.5.2: Anmeldeseite zentriert + Vorschau ---------- */
.authCard { align-items: center; text-align: center; }
.authCard > * { width: 100%; }
.authCard .brand { justify-content: center; }
.authCard .authLocal input { text-align: left; }
.authCard .err { text-align: center; }
.authCard .loginNote { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--panel2); color: var(--muted); font-size: 12px; white-space: pre-line; }
.authCard .linkBtn { width: auto; }
.authWrap .authFoot { text-align: center; margin-top: 14px; }
.loginPrev { position: relative; padding: 26px; border-radius: 18px; background: var(--bg); overflow: hidden; display: grid; place-items: center; }
.loginPrev .blobs { position: absolute; z-index: 0; }
.loginPrev .authWrap { position: relative; z-index: 1; animation: none; max-width: 360px; }
.loginPrev .authCard { padding: 22px; pointer-events: none; }
.loginPrev .authTitle { font-size: 24px; }
.loginPrev .tagPrev { position: absolute; top: 10px; left: 12px; z-index: 2; }
.loginGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 820px) { .loginGrid { grid-template-columns: 1fr; } }
.err:empty { display: none; }
.userCreateGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.userCreateGrid .f { min-width: 0; }
.userCreateGrid input, .userCreateGrid select { width: 100%; box-sizing: border-box; }
@media (max-width: 640px) { .userCreateGrid { grid-template-columns: 1fr; gap: 14px; } }
/* Customizable native selects retain keyboard navigation and form semantics. */
@supports (appearance: base-select) {
  select:not([multiple]):not([size]),
  select:not([multiple]):not([size])::picker(select) { appearance: base-select; }
  select:not([multiple]):not([size]) {
    display: inline-flex; align-items: center; gap: 12px;
    background-image: none;
    cursor: pointer; font: inherit; color: var(--text);
    transition: border-color .18s, box-shadow .18s;
  }
  select:not([multiple]):not([size])::picker-icon {
    margin-left: auto; color: var(--muted); transition: rotate .18s;
  }
  select:open::picker-icon { rotate: 180deg; }
  select:not([multiple]):not([size])::picker(select) {
    margin-top: 8px; padding: 6px; border: 1px solid var(--border, #d8d8d0);
    border-radius: 14px; background: var(--panel); color: var(--text);
    box-shadow: 0 14px 38px rgba(0,0,0,.16);
    max-height: min(340px, 55vh); overflow-y: auto; font: inherit;
  }
  select:not([multiple]):not([size]) option {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 12px; min-height: 36px; border-radius: 8px;
    margin: 0; box-sizing: border-box; background: transparent;
    font-weight: 400; line-height: 1.4; text-align: left;
    cursor: pointer; white-space: normal;
  }
  select:not([multiple]):not([size]) option:hover,
  select:not([multiple]):not([size]) option:focus-visible {
    background: color-mix(in srgb, var(--accent) 12%, var(--bg));
    outline: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
  }
  select:not([multiple]):not([size]) option:checked {
    background: color-mix(in srgb, var(--accent) 16%, var(--bg)); font-weight: 600;
  }
  select option::checkmark { color: var(--accent); }
  select:disabled, select option:disabled { opacity: .5; cursor: not-allowed; }
}
.issueTasks { margin-top: 10px; font-size: 12px; width: 100%; }
.issueTasks summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
.subtaskList { display: grid; gap: 8px; margin-top: 6px; }
.subtaskRow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.subtaskRow > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.subtaskRow > span.badge { flex: 0 0 auto; min-width: 0; width: auto; max-width: 100%; white-space: normal; align-self: center; }
.subtaskRow .btn { font-size: 11px; padding: 5px 8px; }
.subtaskDone { color: var(--muted); }
.todoList .linkedIssue { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: auto; max-width: min(100%, 960px); min-width: 0; flex: 0 0 auto; padding: 0; border: 0; border-radius: 0; box-sizing: border-box; background: transparent; }
.todoList .linkedIssue .issueTasks { margin-top: 0; }
.todoList .todo .tmeta { gap: 8px; }
.todoList .linkedIssue .issueTasks { width: auto; display: contents; }
.todoList .linkedIssue .issueTasks > details { min-width: 0; }
.todoList .linkedIssue .issueTasks > details:not([open]) { display: inline-block; }
.todoList .linkedIssue .issueTasks > details > summary { padding: 4px 0; font-size: 11px; color: var(--muted); }
.todoList .linkedIssue:has(details[open]) { width: min(100%, 960px); }
.todoList .linkedIssue details[open] { flex: 1 1 100%; margin-top: 4px; }
.todoList .linkedIssue .subtaskList { gap: 6px; margin-top: 6px; }
.todoList .linkedIssue .tchip { margin: 0; }
.todoList .linkedIssue .tchip .tstat { display: none; }
.todoList .todo .tmeta > .hintDone,
.todoList .todo .tmeta > .muted.small { flex-basis: 100%; }
.todoList .linkedIssue:has(details[open]) { flex-basis: 100%; order: 1; }
.todoList .linkedIssue .subtaskRow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; padding: 10px 12px; }
.todoList .linkedIssue .subtaskRow > :last-child { max-width: 220px; justify-self: end; }
@media (max-width: 640px) {
  .todoList .todo { column-gap: 10px; padding: 14px 8px; }
  .todoList .linkedIssue { padding: 0; }
  .todoList .linkedIssue .subtaskRow { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .todoList .linkedIssue .subtaskRow > :last-child { justify-self: start; max-width: 100%; }
  .todoList .todo > .tact { grid-column: 2 / -1; justify-self: end; }
}
.ticketTransitions { display: grid; gap: 10px; }
.ticketTransitions .btn { justify-content: space-between; flex-wrap: wrap; text-align: left; }
.userCreateActions { width: 100%; justify-content: flex-end; margin-top: 12px; }
.userCreateActions > [role=status] { order: -1; flex: 0 1 auto; min-width: 0; }
.localLoginLink { display: inline-block; align-self: center; margin: 12px 0 4px; color: var(--muted); font-size: 13px; text-align: center; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.localLoginLink:hover { color: var(--text); }
.localLoginLink:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
#dashHead { position: relative; }
#dashHead:has(.jiraLiveBadge) > .dashTitle { padding-right: 295px; }
.jiraLiveBadge { position: absolute; top: 20px; right: 20px; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border: 1px solid color-mix(in srgb, #db9628 55%, var(--border)); border-radius: 14px; color: var(--text); background: color-mix(in srgb, #db9628 12%, var(--panel)); font-size: 12px; }
.jiraLiveBadge > div { display: grid; gap: 3px; }
.jiraLiveBadge strong { font-size: 12px; letter-spacing: .04em; }
.jiraLiveBadge span:not(.jiraLiveDot) { color: var(--muted); font-size: 11px; }
.jiraLiveDot { width: 8px; height: 8px; border-radius: 50%; background: #db9628; box-shadow: 0 0 0 4px color-mix(in srgb, #db9628 15%, transparent); }
@media (max-width: 760px) {
  #dashHead:has(.jiraLiveBadge) > .dashTitle { padding-right: 0; }
  .jiraLiveBadge { position: static; width: fit-content; margin-top: 14px; }
}
.ticketTodoForm { display: grid; gap: 18px; }
.dashTitle > .dashboardShareActions { margin: 0 0 0 auto; display: flex; justify-content: flex-end; align-self: center; }
.kanbanColumnSettings { margin: 16px 0 20px; }
.kanbanColumnSettings > div { gap: 12px !important; }
.kanbanColumnSettings .btnRow { margin-top: 8px; }
.f > .chips { margin-top: 6px; margin-bottom: 12px; gap: 8px; }
/* Shared spacing for settings, editor dialogs and grouped selections. */
:root { --form-field-gap: 8px; --form-row-gap: 16px; --form-section-gap: 24px; }
.modalBody { gap: var(--form-row-gap); padding-top: 12px; }
.modalBody .f, .editBar .f {
  display: flex; flex-direction: column; gap: var(--form-field-gap); min-width: 0;
}
.modalBody .row { gap: var(--form-row-gap); }
.modalBody .setSect { gap: var(--form-row-gap); padding: 20px; }
.modalBody .setSect + .setSect { margin-top: 8px; }
.modalBody .btnRow { gap: 12px; margin-top: 8px; }
.modalBody .f > .chips { margin: 0; gap: 10px; }
.modalBody .f > .chips + input { margin-top: 4px; }
.modalBody p { margin: 0; line-height: 1.55; }
.memberChoices { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 4px 0; }
.memberChoices .check { margin: 0; gap: 10px; min-height: 32px; }
.shareMembers { display: grid; gap: 12px; padding: 4px 0; }
.shareMembers .check { margin: 0; min-height: 32px; }
.dashPpl { gap: 16px; padding-top: 16px; }
.modalFoot { gap: 12px; padding-top: 18px; }
@media (max-width: 640px) {
  .modalBody .setSect { padding: 16px; }
  .memberChoices { flex-direction: column; align-items: flex-start; gap: 12px; }
}
.integratedPrompt { z-index: 1000; }
.modalFoot > .ticketTodoFooter { margin-right: auto; }
.modalFoot:has(.ticketTodoFooter) { flex-wrap: wrap; }
.kwrap .kcol { max-height: none; overflow: visible; }
.jiraColumnOrderRow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 12px; background: var(--panel2); border-radius: 12px; }
.jiraColumnOrderRow .rowAct { display: flex; gap: 8px; }
.jiraColumnOrderRow input[type=checkbox] { appearance: auto; -webkit-appearance: checkbox; width: 18px; height: 18px; border-radius: 4px; accent-color: var(--accent); background: none; }
.jiraColumnOrderRow input[type=checkbox]::after { display: none; }
.jiraColumnOrderRow .rowAct .icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 9px; font-size: 20px; background: var(--panel); }
.jiraColumnOrderRow .rowAct .icon:disabled { opacity: .3; }
.settingsContent, .mfaSetup { display: grid; gap: 20px; min-width: 0; }
.recoveryCodes { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: var(--panel2); border-radius: 12px; user-select: all; }
.backdrop { overscroll-behavior: contain; }
html:has(.backdrop), body:has(.backdrop) { overflow: hidden; }
html { scrollbar-gutter: stable; }
.liveDisabled .liveControl,
.liveDisabled .liveControl + .note,
.liveDisabled .liveControl + .note + .row,
.liveDisabled .kanbanColumnSettings > .btnRow,
.liveDisabled .kanbanColumnSettings > .shareMembers,
.liveDisabled .kanbanColumnSettings > .small { display: none; }
.customCalendarOverlay { z-index: 1100; align-items: center; }
.customCalendar { width: min(360px,100%); padding: 18px; border: 1px solid var(--border); border-radius: 20px; background: var(--panel); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.calendarHeader { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.calendarHeader strong { flex: 1; text-align: center; font-size: 14px; }
.calendarButton { border: 0; background: transparent; border-radius: 10px; color: var(--text); cursor: pointer; padding: 8px; min-width: 34px; min-height: 36px; font: inherit; }
.calendarButton:hover { background: var(--panel2); }
.calendarButton:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.calendarButton:disabled { opacity: .3; cursor: default; }
.calendarGrid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
.calendarWeekday { text-align: center; padding: 6px 0; font-size: 12px; color: var(--muted); }
.calendarDay { min-width: 0; }
.calendarDay.outside { color: var(--muted); opacity: .6; }
.calendarDay.selected { background: var(--accent); color: white; font-weight: 700; opacity: 1; }
.calendarDay[aria-current=date]:not(.selected) { box-shadow: inset 0 0 0 1px var(--accent); }
.calendarActions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
input[type=date]::-webkit-calendar-picker-indicator { pointer-events: none; }
.linkedTodo .linkedTodoStatus { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: 0 0 18px; box-sizing: border-box; border: 1.5px solid var(--border); border-radius: 50%; background: var(--panel2); }
.linkedTodo .linkedTodoStatus.isDone { background: var(--lime); color: #1f201d; border-color: var(--lime); }
.linkedTodoStatus .i { width: 12px; height: 12px; }
.fieldChipGroup { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fieldChipGroup > .chips { gap: 10px; margin: 0; }
.fieldChipGroup > input { margin: 0; }
.modalBody .f > div:has(> .chips + input) { gap: 16px; }
.modalBody .ppl { gap: 16px; }
.modalBody .pplSearch { gap: 12px; }
.modalBody .f > .chips + input,
.modalBody .f > .chips + textarea,
.modalBody .f > .chips + select { margin-top: 8px; }
.tchip.done .k { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.todoList .linkedIssue.completedIssue { background: transparent; }
.todoList .linkedIssue.completedIssue > .tchip { opacity: .7; }
.internalColumnEditor { display: grid; gap: 16px; }
.internalColumnEditor h4 { margin: 0; }
.internalColumnEditor .colRow { grid-template-columns: minmax(120px,1fr) minmax(180px,2fr) 80px auto; }
.internalColumnEditor .rowAct { display: flex; gap: 8px; }
@media(max-width:760px) { .internalColumnEditor .colRow { grid-template-columns: minmax(0,1fr); gap: 10px; } }
.todoList .tmeta > .todoTicketSection { flex: 1 1 100%; width: 100%; min-width: 0; }
.todoTicketStrip { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; overflow-x: auto; padding: 3px 2px 6px; }
.todoTicketGroup { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.todoTicketGroup .tstat { display: none; }
.todoFolderButton { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.todoFolderButton:hover, .todoFolderButton.active { background: var(--panel2); color: var(--accent); }
.todoFolderButton:focus-visible { outline: 2px solid var(--accent); }
.todoSubtaskPanel { width: min(100%,960px); margin-top: 10px; }
.todoSubtaskPanel[hidden] { display: none; }
.todoSubtaskHeading { display: flex; justify-content: space-between; align-items: center; font-weight: 650; font-size: 12px; padding: 6px 0; }
.todoSubtaskPanel .subtaskRow { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
@media(max-width:640px) { .todoSubtaskPanel .subtaskRow { grid-template-columns: minmax(0,1fr); } }
.tchip .ticketSubtaskCount { font-size: 11px; font-weight: 600; color: var(--muted); padding-left: 6px; margin-left: 2px; border-left: 1px solid var(--border); white-space: nowrap; }
.listHead > .todoSort { width: 225px; flex: 0 0 225px; align-self: center; white-space: nowrap; padding-right: 14px !important; }
@supports (appearance: base-select) {
  select:not([multiple]):not([size])::picker-icon { content: ''; width: 8px; height: 8px; flex: 0 0 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); margin-left: auto; margin-right: 3px; }
  select:open::picker-icon { rotate: 180deg; }
  select:not([multiple]):not([size]) { padding-right: 14px !important; white-space: nowrap; }
}
.listHead > .chips { display: flex; align-items: center; margin: 0; }
.listHead > .chips .chip { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; box-sizing: border-box; margin: 0; }
.listHead > .btn { align-self: center; }
.listHead { align-items: center; }
.backdrop > .modal { display: flex; flex-direction: column; max-height: 92dvh; overflow: hidden; }
.backdrop > .modal > .modalHead,
.backdrop > .modal > .modalFoot { flex: 0 0 auto; }
.backdrop > .modal > .modalBody { display: block; flex: 1 1 auto; min-height: 0; max-height: calc(92dvh - 150px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding-bottom: 32px; scroll-padding-bottom: 32px; }
.backdrop > .modal > .modalBody > * + * { margin-top: 16px; }
.backdrop > .modal > .modalBody > .tblWrap { height: auto; min-height: min-content; max-height: none; overflow-x: auto; }
.backdrop > .modal > .modalBody > * { flex-shrink: 0; }
.backdrop > .modal > .modalFoot { padding-bottom: 28px; }
@media(max-width:640px) { .backdrop > .modal { max-height: 92dvh; } }
.backdrop, .backdrop .modal, .backdrop .modal * { scrollbar-width: none; }
.backdrop::-webkit-scrollbar,
.backdrop .modal::-webkit-scrollbar,
.backdrop .modal *::-webkit-scrollbar { display: none; width: 0; height: 0; }
.backdrop > .modal > .modalBody { scrollbar-gutter: auto; }
