/* Nova Plan — Live, Anhänge, Tickets, Backlog, Ideenpool, Konto. Grundlagen und Tokens in app.css. */
/* --- Live, Anhänge, Schnellbearbeitung --- */
.bell { position: relative; width: 40px; height: 40px; border-radius: 50%; }
.bell .badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--act-fill); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--board-tint); }
.pop.wide { width: 380px; }
.pop .row.note { align-items: flex-start; }
.pop .row.note > span:not(.av) { flex: 1; font-size: 14px; line-height: 1.4; }
.pop .row.note small { display: block; color: var(--ink-3); margin-top: 2px; }
.pop .row.unread { background: color-mix(in srgb, var(--act-soft) 55%, #fff); }
.pop .row.sel { background: var(--ground); }
.fld { display: grid; gap: 4px; margin-bottom: 10px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
select.field { appearance: none; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E645B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; padding-right: 32px; cursor: pointer; font-weight: 600; color: var(--ink); }
.card .cover { margin: -12px -14px 10px; border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden; background: var(--ground); }
.card .cover img { display: block; width: 100%; max-height: 180px; object-fit: cover; pointer-events: none; }
.qe-btn { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--panel); color: var(--ink-2); box-shadow: 0 1px 3px rgba(70, 50, 25, .15); opacity: 0; transition: opacity .12s; }
.card:hover .qe-btn, .card:focus-visible .qe-btn { opacity: 1; }
.qe-btn:hover { color: var(--ink); background: var(--ground); }
.qe-bg { position: fixed; inset: 0; z-index: 45; background: rgba(43, 38, 34, .45); animation: fade .15s ease-out; }
.qe { position: fixed; display: flex; gap: 10px; align-items: flex-start; }
.qe-main { display: grid; gap: 8px; justify-items: start; }
.qe-title { width: 100%; min-height: 96px; border-color: transparent; box-shadow: var(--shadow-lift); font-weight: 620; }
.qe-side { display: grid; gap: 6px; animation: rise .18s var(--ease); }
.btn.qe-act { background: rgba(43, 38, 34, .82); color: #fff; justify-content: flex-start; }
.btn.qe-act:hover { background: var(--ink); }
.mcover { margin: -28px -28px 20px; height: 200px; border-radius: 22px 22px 0 0; overflow: hidden; background: var(--ground); display: grid; place-items: center; }
.mcover img { max-width: 100%; max-height: 200px; object-fit: contain; }
.modal-bg.dropping .modal { outline: 3px dashed var(--act); outline-offset: 6px; }
.files { display: grid; gap: 10px; }
.file { display: flex; gap: 12px; align-items: flex-start; }
.file .thumb { width: 104px; height: 72px; flex: none; border-radius: 10px; overflow: hidden; background: var(--ground); display: grid; place-items: center; color: var(--ink-2); text-decoration: none; }
.file .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file .ext { font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.finfo { min-width: 0; }
.finfo b { display: block; overflow-wrap: anywhere; font-size: 14px; }
.finfo small { color: var(--ink-3); }
.descbox .desc.ph { color: var(--ink-3); }
.descbox textarea.live { line-height: 1.55; min-height: 110px; }
.writers { font-size: 12.5px; color: var(--act-ink); font-weight: 650; min-height: 0; margin-top: 4px; }
.writers:empty { display: none; }
.here { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; font-size: 13px; color: var(--ink-3); }
.here:empty { display: none; }
.here .av { --ring: var(--panel); }
.mention { color: var(--act-ink); font-weight: 700; }
.dsect { margin: 4px 0 8px; font-weight: 700; font-size: 12px; color: var(--ink-3); }
.dhr { border: 0; border-top: 1px solid var(--hair); }
.lrow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.keyhelp { width: min(520px, 100%); }
.keyhelp h2 { font-size: 20px; margin-bottom: 4px; }
.keyhelp dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 16px 0 0; align-items: center; }
.keyhelp dd { margin: 0; color: var(--ink-2); }
kbd { font: 700 12.5px/1 var(--font); background: var(--ground); border: 1px solid var(--hair-2); border-bottom-width: 2px; border-radius: 7px; padding: 4px 7px; color: var(--ink); }
.card:focus-visible { outline: 2px solid var(--act); outline-offset: 1px; }
@media (max-width: 720px) {
  .mcover { margin: -20px -16px 16px; border-radius: 0; height: 160px; }
  .qe { left: 16px !important; right: 16px; top: 80px !important; flex-direction: column; }
  .qe-main { width: 100% !important; }
  .qe-btn { opacity: 1; }
  .pop.wide { width: calc(100vw - 24px); }
}

/* --- Navigation, Umschalter --- */
.mainnav { display: flex; gap: 2px; margin-left: 10px; background: rgba(255, 255, 255, .5); border-radius: var(--r-pill); padding: 3px; }
.navlink { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--r-pill); color: var(--ink-2); font-weight: 650; text-decoration: none; font-size: 14px; }
.navlink:hover { color: var(--ink); }
.navlink.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(80, 60, 30, .1); }
.seg { display: inline-flex; background: var(--ground-2); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.seg button { height: 30px; min-width: 34px; padding: 0 14px; border-radius: var(--r-pill); font-weight: 650; font-size: 14px; color: #5F564E; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(80, 60, 30, .12); }
.sortsel select.field { height: 34px; padding-top: 0; padding-bottom: 0; border-radius: var(--r-pill); font-size: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* --- Tickets --- */
.tmark { width: 12px; height: 12px; border-radius: 3.5px; background: var(--c); flex: none; display: inline-block; }
.ref { font-weight: 700; color: var(--ink-3); letter-spacing: .01em; font-size: 12px; }
.prio-wrap { display: inline-flex; }
svg.i.prio { stroke-width: 2.6; width: 14px; height: 14px; }
.cref { font-size: 12.5px; font-weight: 750; color: var(--ink-3); letter-spacing: .01em; }
.cref .tmark { width: 10px; height: 10px; border-radius: 3px; }
.card .meta .parent { color: var(--ink-3); }
.blocked { background: var(--late-soft); color: var(--late); border-radius: var(--r-pill); padding: 0 8px; font-weight: 700; font-size: 11.5px; }
.pts { min-width: 22px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--ground-2); color: var(--ink-2); font-weight: 750; font-size: 11.5px; display: inline-grid; place-items: center; }
.tkey { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tkey .ref { font-size: 13px; }
.parentlink { font-size: 13px; color: var(--ink-2); }
.pts-in { width: 76px; height: 32px; padding: 0 10px; }
.trow { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 7px 8px; margin-left: -8px; border-radius: 10px; }
button.trow:hover, .trow:hover { background: var(--card); }
.trow .tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--ground); border-radius: var(--r-pill); padding: 2px 9px; white-space: nowrap; }
.status.done { background: var(--done-soft); color: var(--done); }
.ltype { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; min-width: 128px; }
.msec h3 .cnt { margin-left: 4px; }
.subs > input.field { margin-top: 6px; }

/* --- Backlog --- */
main.backlog { padding: 0 24px 40px; height: calc(100dvh - 72px - 66px); overflow: auto; display: grid; gap: 18px; align-content: start; }
.bsec { background: var(--panel); border-radius: var(--r-panel); padding: 14px 16px 14px; box-shadow: 0 1px 2px rgba(80, 60, 30, .06); transition: box-shadow .15s; }
.bsec.active { box-shadow: 0 0 0 2px color-mix(in srgb, var(--act) 35%, transparent); }
.bsec.over { box-shadow: 0 0 0 2px var(--act); }
.bhd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.bhd h2 { font-size: 16px; }
.bhd .sp { flex: 1; }
.sdates, .sum { font-size: 13px; color: var(--ink-3); }
.goal { margin: -2px 0 10px; color: var(--ink-2); font-size: 14px; }
.brows { display: grid; }
.brow { display: grid; grid-template-columns: 12px 64px minmax(0, 1fr) auto auto 16px 96px 24px 30px; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; cursor: pointer; border-top: 1px solid var(--hair); }
.brow:first-child { border-top: 0; }
.brow:hover { background: var(--card); }
.brow .tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.blbls { display: flex; gap: 4px; }
.brow .pill.bar { width: 24px; }
.brow .status { justify-self: start; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.brow.done .tt { color: var(--ink-3); text-decoration: line-through; }
.brow .pts { margin: 0; }
.brow .av { --ring: var(--panel); }
.av.none { --c: #ccc; color: var(--ink-3); }
.empty.drop { padding: 14px; border: 2px dashed var(--hair-2); border-radius: 12px; text-align: center; }
.badd { margin-top: 8px; border-style: dashed; background: transparent; }
.badd:focus { border-style: solid; background: var(--panel); }

/* --- Ideenpool --- */
.pooldot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }
.pool .lh { gap: 8px; }
.pool { border-top: 5px solid var(--c); }
.card.idea .meta { margin-top: 10px; }
.vote { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--ground); color: var(--ink-2); font-weight: 700; font-size: 12.5px; transition: background-color .15s, transform .15s var(--ease); }
.vote:hover { background: var(--ground-2); }
.vote.on { background: var(--act-soft); color: var(--act-ink); }
.vote:active { transform: scale(.94); }
.rate { font-size: 12px; color: var(--ink-3); }
.rate b { color: var(--ink); }
.made { font-weight: 700; color: var(--done); background: var(--done-soft); border-radius: var(--r-pill); padding: 1px 8px; font-size: 12px; }
main.matrix-wrap { padding: 0 24px 32px; height: calc(100dvh - 72px - 66px); overflow: auto; }
.matrix { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.mgrid2 { display: grid; grid-template-columns: 36px repeat(5, minmax(0, 1fr)); grid-auto-rows: auto; gap: 6px; background: var(--panel); border-radius: var(--r-panel); padding: 14px 16px 12px 10px; }
.mspan { grid-column: 2 / -1; }
.axis { display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.axis.ylab { justify-items: start; padding-left: 2px; }
.axis.xlab { grid-column: 2 / -1; padding-top: 2px; }
.mcell { position: relative; height: 128px; border-radius: 10px; background: var(--card); border: 1px solid var(--hair); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow: hidden; transition: box-shadow .12s; }
.mcell.win { background: color-mix(in srgb, var(--done-soft) 60%, #fff); }
.mcell.waste { background: color-mix(in srgb, var(--late-soft) 35%, #fff); }
.mcell.over { box-shadow: 0 0 0 2px var(--act); }
.qname { font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--ink-3); padding: 0 2px; }
.qname.win { color: var(--done); }
.mchip { display: flex; align-items: center; gap: 6px; width: 100%; flex: none; text-align: left; background: var(--panel); border: 1px solid var(--hair); border-radius: 9px; padding: 4px 7px; font-size: 12.5px; font-weight: 600; cursor: grab; }
.mchip:hover { border-color: var(--hair-2); box-shadow: 0 2px 6px -2px rgba(80, 60, 30, .15); }
.mchip .pooldot { width: 8px; height: 8px; }
.mchip .mt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv { color: var(--act-ink); font-weight: 800; font-size: 11.5px; }
.mcell .more { margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 2px 6px; border-radius: var(--r-pill); }
.mcell .more:hover { background: var(--ground-2); color: var(--ink); }
.unrated { background: var(--panel); border-radius: var(--r-panel); padding: 14px; display: grid; gap: 6px; max-height: calc(100dvh - 72px - 66px - 40px); grid-template-rows: auto auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); } /* lange Titel dürfen die Spalte nicht verbreitern */
.unrated h3 { font-size: 15px; display: flex; gap: 8px; align-items: center; margin: 0; }
.unrated .empty { margin: 0 0 4px; }
.unlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; overflow: auto; padding: 1px; }
.mcount { display: grid; place-items: center; align-content: center; gap: 0; flex: 1; width: 100%; border-radius: 8px; font-size: 11px; font-weight: 650; color: var(--ink-2); }
.mcount b { font-size: 20px; color: var(--ink); line-height: 1.1; }
.mcount:hover, .mcount:focus-visible { background: rgba(255, 255, 255, .7); }
.ideagrid { display: grid; grid-template-columns: 1fr 200px; gap: 28px; margin-top: 10px; }
.scales { display: grid; gap: 16px; }
.scale .mlab small { font-weight: 600; margin-left: 8px; color: var(--ink-3); }
.scale .seg button { min-width: 44px; }
.voters { flex-wrap: wrap; min-height: 8px; margin: 4px 0 8px; }
.voters .av { --ring: var(--panel); }
@media (max-width: 720px) {
  .mainnav .navlink span { display: none; }
  .mainnav .navlink { padding: 0 10px; }
  main.backlog, main.matrix-wrap { padding: 0 16px 24px; }
  .brow { grid-template-columns: 12px 56px 1fr 30px; }
  .brow > :nth-child(n+4):not(:last-child) { display: none; }
  .matrix { grid-template-columns: 1fr; }
  .mgrid2 { grid-template-columns: 22px repeat(5, minmax(0, 1fr)); gap: 4px; padding: 10px 8px; }
  .mcell { height: 92px; padding: 4px; }
  .qname { font-size: 9.5px; }
  .mchip { padding: 3px 5px; font-size: 11px; }
  .mchip .pooldot { display: none; }
  .ideagrid { grid-template-columns: 1fr; }
  .ltype { min-width: 0; }
}

/* --- Konto, Team, Einstieg, Offline --- */
.net { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; white-space: nowrap; }
.net::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.net.off { background: var(--late-soft); color: var(--late); }
.net.busy { background: var(--ground-2); color: var(--ink-2); }
.card.unsaved { border-style: dashed; border-color: var(--late); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 2px; cursor: pointer; }
.check input { margin-top: 2px; }
.check b { display: block; font-size: 14px; }
.check small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.av.sys { --c: #CBBFAF; color: var(--ink-2); }
.welcome h2 { font-size: 22px; letter-spacing: -.01em; margin-bottom: 6px; padding-right: 40px; }
.welcome { width: min(600px, 100%); }
.steps { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps p { margin: 2px 0 0; color: var(--ink-2); line-height: 1.5; }
.wicon { width: 40px; height: 40px; border-radius: 12px; background: var(--ground); display: grid; place-items: center; color: var(--ink-2); }
.welcome > .btn { width: 100%; justify-content: center; height: 46px; }
.mine { background: var(--panel); border-radius: var(--r-panel); padding: 16px 18px; margin: 8px 0 28px; box-shadow: 0 1px 2px rgba(80, 60, 30, .06); }
.mine h2 { margin: 0 0 8px; font-size: 17px; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.minelist { display: grid; }
.minerow { display: grid; grid-template-columns: 10px auto 1fr auto auto; gap: 12px; align-items: center; padding: 9px 8px; border-top: 1px solid var(--hair); color: inherit; text-decoration: none; border-radius: 10px; }
.minerow:first-child { border-top: 0; }
.minerow:hover { background: var(--card); }
.minerow .tt { font-weight: 620; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minerow small { color: var(--ink-3); white-space: nowrap; }
.minerow .due { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.minelist > .btn { justify-self: start; margin-top: 6px; }
.mine-empty { margin: 0; }
.listempty { margin: 2px 4px 10px; color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }
.brow.bhead-row { cursor: default; border-top: 0; padding-top: 0; padding-bottom: 4px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.brow.bhead-row:hover { background: none; }
.arch small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.icon-btn.sure { background: var(--late-soft); color: var(--late); }
.voters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.voter { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-2); }
.voter .av { --ring: var(--panel); }
@media (max-width: 720px) {
  .net { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 80; box-shadow: var(--shadow-pop); }
    .minerow { grid-template-columns: 10px 1fr auto; }
  .minerow .ref, .minerow small { display: none; }
  .brow.bhead-row { display: none; }
}

/* --- Karte als ganze Seite --- */
.carding #bhead, .carding #board { display: none; }
.cardpage { height: calc(100vh - 72px); height: calc(100dvh - 72px); overflow: auto; padding: 0 24px 64px; outline: none; }
.cardpage.dropping { box-shadow: inset 0 0 0 3px var(--act); }
.cbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; height: 52px; background: var(--board-tint); }
.cbar .sp { flex: 1; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 8px; border-radius: var(--r-pill); color: var(--ink-2); font-weight: 650; font-size: 14px; max-width: 60vw; }
.back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back:hover { background: var(--ground-2); color: var(--ink); }
.cwrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cmain { background: var(--panel); border-radius: 22px; padding: 28px 36px 36px; box-shadow: 0 1px 2px rgba(80, 60, 30, .06); min-width: 0; }
.cmain .mcover { margin: -28px -36px 24px; height: 220px; border-radius: 22px 22px 0 0; }
.cmain .mtitle { font-size: 30px; line-height: 1.2; letter-spacing: -.02em; margin-top: 2px; }
.cmain .tkey { margin-bottom: 2px; }
.cmain .msec { margin-top: 32px; }
.cmain .descsec { margin-top: 22px; }
.cmain .desc { max-width: 72ch; }
.adders { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.addchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); border: 1px dashed var(--hair-2); color: var(--ink-2); font-size: 13.5px; font-weight: 650; }
.addchip:hover { border-style: solid; border-color: var(--ink-3); color: var(--ink); background: var(--card); }
.msec h3 .hadd { margin-left: auto; }
.details { position: sticky; top: 60px; background: var(--panel); border-radius: var(--r-panel); padding: 8px 10px 10px; box-shadow: 0 1px 2px rgba(80, 60, 30, .06); }
.drow { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; min-height: 42px; gap: 8px; }
.dl { font-size: 13px; color: var(--ink-3); font-weight: 650; padding-left: 8px; }
.dv { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-height: 34px; padding: 4px 8px; border-radius: 10px; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); width: 100%; }
button.dv:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); }
.dv.ro { cursor: default; }
.dv .none { color: var(--ink-3); font-weight: 500; }
.dv .avs .av, .dv > .av { --ring: var(--panel); }
.dv .avs { gap: 3px; }
.dv .avs .av + .av { margin-left: 0; }
.details.short .dsep, .details.short .dsep ~ .drow { display: none; }
.moredet { margin: 2px 0 0 4px; }
.dv .lbls { display: flex; flex-wrap: wrap; gap: 4px; }
.dv .due { border-radius: var(--r-pill); padding: 1px 8px; }
.dv .due.x { padding: 0; }
.dnote { color: var(--ink-3); font-weight: 600; }
.dnote.late { color: var(--late); }
.donecheck { padding: 0 0 6px 120px; font-size: 13.5px; }
.dsep { border-top: 1px solid var(--hair); margin: 6px 8px; }
.details .pts-in { width: 80px; height: 34px; margin-left: 0; }
.details .here { padding: 8px 8px 0; margin: 0; }
.details .here:empty { display: none; }
.ev.log { font-size: 13.5px; color: var(--ink-2); grid-template-columns: 30px 1fr; }
.ev.log .av.sm { margin: 3px; }
.ev.log b { font-weight: 650; }
@media (max-width: 900px) {
  .cardpage { padding: 0 12px 40px; height: calc(100dvh - 64px); }
  .cwrap { grid-template-columns: 1fr; }
  .cmain { padding: 18px 16px 28px; border-radius: 18px; }
  .cmain .mcover { margin: -18px -16px 18px; height: 160px; border-radius: 18px 18px 0 0; }
  .cmain .mtitle { font-size: 24px; }
  .cmain .details { position: static; box-shadow: none; background: var(--card); border: 1px solid var(--hair); margin-top: 16px; }
  .drow { grid-template-columns: 96px minmax(0, 1fr); }
  .donecheck { padding-left: 112px; }
}

/* --- Anmeldung mit Microsoft --- */
.btn.ms { justify-content: center; height: 48px; background: var(--panel); border: 1.5px solid var(--hair-2); color: var(--ink); text-decoration: none; gap: 10px; }
.btn.ms:hover { border-color: var(--ink-3); background: var(--card); }
.mslogo { display: grid; grid-template-columns: 8px 8px; gap: 2px; }
.mslogo i { width: 8px; height: 8px; display: block; }
.mslogo i:nth-child(1) { background: #F25022; } .mslogo i:nth-child(2) { background: #7FBA00; } .mslogo i:nth-child(3) { background: #00A4EF; } .mslogo i:nth-child(4) { background: #FFB900; }

/* --- Namenswahl (nur lokal) --- */
.picker { width: min(440px, 100%); background: var(--panel); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-pop); display: grid; gap: 14px; }
.picker h1 { font-size: 26px; letter-spacing: -.02em; }
.picker > p { margin: -6px 0 4px; color: var(--ink-2); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.person { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); text-align: left; font-weight: 650; }
.person:hover, .person:focus-visible { border-color: var(--act); background: var(--panel); }
.person .av { --ring: var(--card); }
.login .picker form.newperson { display: grid; gap: 8px; width: auto; background: none; box-shadow: none; border-radius: 0; padding: 14px 0 0; border-top: 1px solid var(--hair); }
.newperson label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.newperson .btn { justify-content: center; height: 44px; }

/* --- Overview und Tickets --- */
.overview > h1 { margin-bottom: 16px; }
.ovgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "mine late" "mine act"; gap: 24px; align-items: start; }
.ovgrid > :nth-child(1) { grid-area: mine; } .ovgrid > :nth-child(2) { grid-area: late; } .ovgrid > :nth-child(3) { grid-area: act; }
@media (min-width: 1500px) { .ovgrid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "mine late act"; } }
.ovgrid .mine { margin: 0; }
.panel { background: var(--panel); border-radius: var(--r-panel); padding: 16px 18px; box-shadow: 0 1px 2px rgba(80, 60, 30, .06); }
.panel h2 { margin: 0 0 8px; font-size: 17px; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.panel .empty { margin: 0; }
.minerow.slim { grid-template-columns: 10px 1fr auto auto; }
.overfeed { gap: 2px; }
.overfeed a.ev { color: inherit; text-decoration: none; border-radius: 10px; padding: 7px 8px; margin: 0 -8px; }
.overfeed a.ev:hover { background: var(--card); }
.overfeed .ev { font-size: 14px; grid-template-columns: 26px 1fr; padding: 7px 0; }
.overfeed small .pooldot { width: 7px; height: 7px; }
.thead { display: flex; align-items: baseline; gap: 12px; }
.thead h1 { margin-bottom: 14px; }
.thead .sub { color: var(--ink-2); }
.tfilters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tsel select.field { height: 36px; padding-top: 0; padding-bottom: 0; border-radius: var(--r-pill); font-size: 14px; width: auto; }
.tablewrap { background: var(--panel); border-radius: var(--r-panel); box-shadow: 0 1px 2px rgba(80, 60, 30, .06); overflow: hidden; }
.ttable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ttable th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 700; padding: 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.ttable th button { display: inline-flex; align-items: center; gap: 4px; padding: 12px 12px; width: 100%; font-weight: 700; color: inherit; }
.ttable th button:hover, .ttable th[aria-sort] button { color: var(--ink); }
.ttable td { padding: 10px 12px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.ttable tbody tr { cursor: pointer; }
.ttable tbody tr:hover td { background: var(--card); }
.ttable tbody tr:last-child td { border-bottom: 0; }
.ttable tr.done .ttitle { color: var(--ink-3); }
.tref { white-space: nowrap; font-weight: 750; color: var(--ink-3); font-size: 13px; }
.tref .tmark { width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.ttitle { font-weight: 620; min-width: 220px; }
.ttitle small { display: block; font-weight: 600; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.tboard { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--ink-2); }
.ttable .due { border-radius: var(--r-pill); padding: 2px 8px; font-size: 13px; }
.ttable .due.x { padding: 0; color: var(--ink-2); }
.ttable td.empty { text-align: center; padding: 28px; color: var(--ink-3); }
@media (max-width: 900px) {
  .ovgrid { grid-template-columns: 1fr; grid-template-areas: "mine" "late" "act"; }
  .ttable .hide-sm { display: none; }
  .ttitle { min-width: 0; }
}

