/* hakobu OS – LIEFERUNG-5 „B+C“ (Ergänzung zu style.css, gleiche Tokens): Projekt als Raum (schmale Symbolspalte,
   Projektkopf, Reiter, Board/Liste/Ticket groß, rechts das Gespräch der Projekt-Session bzw. der Thread des Tickets;
   Handy: Gespräch unter der Ansicht). Lebende Karten im Verlauf; im Enso-Modus hebt Antippen ein Blatt über die
   Enso-Seite, das Enso strömt dabei klein nach oben und zurück. Keine Schatten, kleine Radien. */
@media (min-width: 900px) { .only-phone { display: none !important; } }
@media (max-width: 899px) { .only-desk { display: none !important; } }
.sp { flex: 1; } .fl { flex: 1; min-width: 0; }
.muted { color: var(--muted); } .small { font-size: max(var(--min-text), .78125rem); }
.btn.sm { min-height: 34px; padding: 0 .75rem; font-size: .84375rem; }
.btn svg.i { width: 16px; height: 16px; }
.linkbtn.ink { color: var(--ink); font-size: inherit; } .linkbtn.ink:hover { color: var(--blue-text); }
mark { background: color-mix(in srgb, var(--blue) 24%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.mention { color: var(--blue-text); background: color-mix(in srgb, var(--blue) 12%, transparent); border-radius: 3px; padding: 0 .1875rem; font-weight: 500; }

.side-item.nav { padding: .4375rem .625rem; }
.side-item.nav svg.i { width: 19px; height: 19px; color: var(--muted); }
.side-item[aria-current="true"].nav svg.i { color: inherit; }
.pmark { width: 22px; height: 22px; border-radius: 4px; flex: none; display: inline-grid; place-items: center; font: 700 max(var(--min-text), .625rem)/1 var(--f-mono); color: #fff; letter-spacing: 0; }

/* ---------- Kopf, Reiter */
.wk { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wk .ph { position: relative; display: flex; align-items: center; gap: .75rem; padding: calc(env(safe-area-inset-top) + .75rem) 1.5rem .625rem; border-bottom: 1px solid var(--line); min-height: 64px; flex: none; background: var(--paper); }
.ph .ttl { flex: 1; min-width: 0; }
.ph h2 { margin: 0; font: 700 1.1875rem/1.25 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph .sub { font-size: max(var(--min-text), .78125rem); color: var(--muted); display: flex; gap: .375rem; align-items: center; white-space: nowrap; overflow: hidden; margin-top: 2px; }
.ph .sub .sep { opacity: .5; }
.pswitch { border: 0; background: none; padding: 0; display: flex; align-items: center; gap: .5rem; font: 700 1.1875rem/1.25 var(--f-body); color: var(--ink); max-width: 100%; min-width: 0; text-align: left; }
.pswitch .pname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pswitch svg.i { width: 16px; height: 16px; color: var(--muted); }
.pm-item { display: flex; align-items: center; gap: .625rem; } .pm-item span:nth-child(2) { flex: 1; }
.members { display: inline-flex; align-items: center; gap: 0; } .members .av + .av { margin-left: -.25rem; } .members > span:last-child { margin-left: .375rem; }
.crumb { font-size: max(var(--min-text), .8125rem); color: var(--muted); display: flex; gap: .375rem; align-items: center; white-space: nowrap; overflow: hidden; }
.crumb button { border: 0; background: none; padding: 0; color: var(--blue-text); font-size: max(var(--min-text), .8125rem); }
.crumb .key { font-family: var(--f-mono); }
.search { position: relative; display: flex; align-items: center; gap: .375rem; border: 1px solid var(--control-border); border-radius: 4px; padding: 0 .625rem; height: 34px; color: var(--muted); background: var(--paper-raised); width: 220px; flex: none; }
.search .sicon { display: grid; place-items: center; cursor: text; }
.search input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; font-size: .875rem; color: var(--ink); padding: 0; }
.search input::-webkit-search-cancel-button { display: none; }
.search svg.i { width: 15px; height: 15px; }
.search:focus-within { border-color: var(--blue-text); }
.search-res { position: absolute; top: calc(100% + 4px); right: 0; width: min(440px, calc(100vw - 24px)); max-height: 60vh; overflow-y: auto; background: var(--paper-raised); border: 1px solid var(--control-border); border-radius: 6px; padding: .25rem; z-index: 30; }
.sr-item { display: flex; gap: .625rem; align-items: flex-start; width: 100%; text-align: left; border: 0; background: none; padding: .5rem .625rem; border-radius: 4px; color: var(--ink); }
.sr-item:hover, .sr-item:focus-visible { background: var(--sheet-2); }
.sr-item svg.i { width: 16px; height: 16px; color: var(--muted); margin-top: 2px; }
.sr-text { display: flex; flex-direction: column; min-width: 0; }
.sr-text b { font-weight: 600; font-size: .875rem; } .sr-text small { font-size: max(var(--min-text), .78125rem); color: var(--muted); }
.tabs { display: flex; gap: 2px; padding: 0 1.25rem; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; scrollbar-width: none; background: var(--paper); }
.tabs button { border: 0; background: none; padding: .625rem .75rem .5625rem; font-size: .875rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: .375rem; align-items: center; }
.tabs button svg.i { width: 15px; height: 15px; }
.tabs button[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.tabs .n { font: max(var(--min-text), .71875rem) var(--f-mono); color: var(--muted); font-weight: 400; }
@media (max-width: 899px) {
  .wk .ph { padding: calc(env(safe-area-inset-top) + .5rem) .5rem .5rem .25rem; min-height: 56px; gap: .25rem; }
  .pswitch, .ph h2 { font-size: 1.0625rem; }
  .tabs { padding: 0 .375rem; }
  .search { width: 38px; border-color: transparent; background: transparent; padding: 0 .625rem; }
  .search:not(:focus-within) input { width: 0; }
  .search:focus-within { position: absolute; left: 8px; right: 8px; width: auto; z-index: 5; background: var(--paper-raised); border-color: var(--blue-text); }
}

/* ---------- Kennzeichen */
.kd { display: inline-flex; align-items: center; gap: .3125rem; font: 600 max(var(--min-text), .71875rem)/1 var(--f-body); padding: .25rem .5rem .25rem .375rem; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--customer-petrol, #086593) 55%, transparent); color: var(--ink); background: color-mix(in srgb, var(--customer-petrol, #086593) 9%, var(--paper-raised)); white-space: nowrap; letter-spacing: 0; text-transform: none; }
.kd svg.i { width: 13px; height: 13px; color: var(--blue-text); }
.kd.mini { padding: 2px .375rem 2px .25rem; font-size: max(var(--min-text), .65625rem); }
.cdot { width: 9px; height: 9px; border-radius: 2px; flex: none; display: inline-block; }
.st { display: inline-flex; align-items: center; gap: .375rem; font-size: max(var(--min-text), .8125rem); white-space: nowrap; color: var(--ink); }
.st i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
.tone-open i { border-color: var(--ink); } .tone-work i { background: var(--blue); border-color: var(--blue); }
.tone-wait i { background: var(--part); border-color: var(--part); } .tone-done i { background: var(--ok); border-color: var(--ok); } .tone-inbox i { border-style: dashed; }
.av { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--sheet-2); border: 1px solid var(--line); font: 600 max(var(--min-text), .65625rem)/1 var(--f-body); color: var(--ink); flex: none; }
.av.xs { width: 18px; height: 18px; font-size: max(var(--min-text), .59375rem); } .av.lg { width: 28px; height: 28px; font-size: max(var(--min-text), .75rem); }
.av.none { border-style: dashed; color: var(--muted); background: transparent; }
.av.agent { background: transparent; border: 0; }
.av.lg.agent .ensomark { width: 26px; height: 26px; font-size: 1.625rem; }
.pri { display: inline-flex; gap: 1.5px; align-items: flex-end; height: 11px; flex: none; }
.pri b { width: 3px; background: var(--line); border-radius: 1px; } .pri b:nth-child(1) { height: 5px; } .pri b:nth-child(2) { height: 8px; } .pri b:nth-child(3) { height: 11px; }
.pri.p1 b:nth-child(1), .pri.p2 b:nth-child(-n+2) { background: var(--muted); } .pri.p3 b { background: var(--part); } .pri.urgent b { background: var(--danger); }
.lab { font: 500 max(var(--min-text), .6875rem)/1 var(--f-body); padding: .1875rem .375rem; border-radius: 3px; background: var(--sheet-2); color: var(--muted); white-space: nowrap; }
.runs { display: inline-flex; align-items: center; gap: .25rem; font-size: max(var(--min-text), .75rem); color: var(--muted); white-space: nowrap; }
.runs svg.i { width: 14px; height: 14px; }
.runs .w, .w { color: var(--part); font-weight: 600; display: inline-flex; align-items: center; gap: .25rem; }
.runs .w::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--part); }
.w.run { color: var(--blue-text); }
.due { font-size: max(var(--min-text), .75rem); color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: .1875rem; }
.due.over { color: var(--danger); } .due svg.i { width: 13px; height: 13px; }
.key { font: max(var(--min-text), .71875rem) var(--f-mono); color: var(--muted); }

/* ---------- Raum mit Gespräch am Rand */
.room { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.room.dock-closed { grid-template-columns: minmax(0, 1fr) 52px; }
.rm { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.dock { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--paper); }
.dock .dh { display: flex; align-items: center; gap: .5rem; padding: .75rem .5rem .625rem 1rem; border-bottom: 1px solid var(--line); font-size: .875rem; flex: none; min-height: 50px; }
.dock .dh b { font-weight: 600; white-space: nowrap; }
.dock .dh small { color: var(--muted); font-size: max(var(--min-text), .75rem); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .dh svg.i { width: 18px; height: 18px; color: var(--muted); }
.dock .tlwrap { flex: 1; min-height: 0; }
.dock .timeline { padding: .875rem .875rem .5rem; gap: .625rem; }
.dock .timeline > * { max-width: none; }
.dock-tl > :first-child { margin-top: auto; }
.dock .timeline > .msg.user .bubble { max-width: 84%; }
.dock .timeline > .card { width: calc(100% - 26px); }
.dock .composer { padding: .375rem .625rem calc(.625rem + env(safe-area-inset-bottom)); background: var(--paper); }
.dock .composer .inner { max-width: none; }
.dock .composer label[for$="-cam"] { display: none; }
.dock .composer textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-empty { margin: auto 0 0; }
.dock.closed { align-items: stretch; }
.dock-open { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: .625rem; padding: .875rem 0; color: var(--muted); }
.dock-open:hover { background: var(--sheet-2); color: var(--ink); }
.dock-open > span:not(.count):not(.ensomark) { writing-mode: vertical-rl; font-size: max(var(--min-text), .8125rem); }
.dock-open svg.i { width: 16px; height: 16px; }
.lastline { margin: 2px .625rem 0; border: 1px solid var(--line); border-radius: 6px; padding: .5rem .75rem; font-size: .84375rem; display: flex; gap: .5rem; align-items: flex-start; background: var(--paper-raised); text-align: left; color: var(--ink); }
.lastline .nd { flex: none; margin-top: .375rem; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.lastline span:last-child { flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 899px) {
  .room, .room.dock-closed { display: flex; flex-direction: column; }
  .rm { flex: 1; }
  .dock { border-left: 0; border-top: 1px solid var(--line); flex: none; }
  .dock .dh { padding: .375rem .375rem .25rem .875rem; min-height: 40px; border-bottom: 0; }
  .room.dock-phone-open .dock { height: 60dvh; }
  .room.dock-phone-open .rm { flex: 1 1 0; }
  .room.dock-phone-open .dock .dh { border-bottom: 1px solid var(--line); }
  .dock .composer { padding-top: .5rem; }
}
.agentline { display: flex; align-items: center; gap: .5rem; margin: .625rem 1.5rem 0; padding: .4375rem .625rem; border-radius: 4px; background: color-mix(in srgb, var(--blue) 12%, var(--paper-raised)); font-size: max(var(--min-text), .8125rem); flex: none; }
.agentline .ensomark, .agentline svg.i { width: 15px; height: 15px; color: var(--blue-text); }
.agentline button { border: 0; background: none; color: var(--blue-text); font-size: max(var(--min-text), .8125rem); padding: 0; font-weight: 600; }
.agentline.soft { margin: .625rem 1rem 0; }
@media (max-width: 899px) { .agentline { margin: .5rem .75rem 0; } }

/* ---------- Board und Liste */
.boardwrap, .listwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tools { display: flex; align-items: center; gap: .5rem; padding: .75rem 1.5rem .625rem; flex: none; min-width: 0; }
.tools .fl { flex: 1; }
.chips { display: flex; gap: .375rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.chips .chip { border: 1px solid var(--control-border); background: transparent; border-radius: 999px; padding: .25rem .75rem; font: max(var(--min-text), .8125rem)/1.35 var(--f-body); color: var(--muted); white-space: nowrap; display: inline-flex; gap: .375rem; align-items: center; max-width: none; overflow: visible; flex: none; }
.chips .chip:hover { border-color: var(--ink); }
.chips .chip[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--on-action); }
.chips .chip .n { font: max(var(--min-text), .71875rem) var(--f-mono); opacity: .8; }
.chips .chip svg.i { width: 14px; height: 14px; }
.board { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(148px, 1fr)); gap: .75rem; padding: 2px 1.5rem 1.25rem; overflow-x: auto; scrollbar-width: thin; }
.board.scroll { grid-template-columns: repeat(var(--cols, 5), 220px); padding: .75rem 1rem 1rem; flex: none; }
.colm { display: flex; flex-direction: column; gap: .5rem; min-height: 0; min-width: 0; background: color-mix(in srgb, var(--sheet-2) 60%, transparent); border-radius: 6px; padding: .5rem; overflow-y: auto; scrollbar-width: none; }
.board.scroll .colm { overflow: visible; }
.colm.drop { outline: 2px dashed var(--blue-text); outline-offset: -2px; }
.colh { display: flex; align-items: center; gap: .4375rem; padding: .25rem .25rem 2px; font: 600 max(var(--min-text), .6875rem)/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.colh .n { font: max(var(--min-text), .75rem) var(--f-mono); letter-spacing: 0; margin-left: auto; }
.tc { border: 1px solid var(--line); background: var(--paper-raised); border-radius: 6px; padding: .5625rem .6875rem; display: flex; flex-direction: column; gap: .375rem; text-align: left; width: 100%; color: var(--ink); font-size: .84375rem; line-height: 1.35; cursor: pointer; flex: none; }
.tc:hover { border-color: var(--control-border); }
.tc.dragging { opacity: .5; }
.tc .top { display: flex; align-items: center; gap: .375rem; font: max(var(--min-text), .71875rem)/1 var(--f-mono); color: var(--muted); }
.tc .tt { font-weight: 500; overflow-wrap: anywhere; }
.tc .bot { display: flex; align-items: center; gap: .375rem; flex-wrap: wrap; }
.tc.draft { border-style: dashed; border-color: var(--control-border); background: transparent; }
.tc .dr { font: 600 max(var(--min-text), .65625rem)/1.2 var(--f-body); color: var(--muted); display: inline-flex; gap: .25rem; align-items: center; }
.tc .acts { display: flex; gap: .25rem .75rem; flex-wrap: wrap; align-items: center; }
.tc.done { opacity: .72; } .tc.done .tt { text-decoration: line-through; text-decoration-color: var(--line); }
.tlist { flex: 1; min-height: 0; overflow-y: auto; padding: 0 0 1rem; }
.lgrp h4 { margin: 0; padding: .875rem 1rem .375rem; font: 600 max(var(--min-text), .6875rem)/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .4375rem; position: sticky; top: 0; background: var(--paper); z-index: 1; }
.lgrp h4 .n { font: max(var(--min-text), .75rem) var(--f-mono); letter-spacing: 0; margin-left: auto; }
.lgrp h4 svg.i { width: 14px; height: 14px; }
.lgrp h4 .linkbtn { text-transform: none; letter-spacing: 0; font-size: max(var(--min-text), .8125rem); font-weight: 600; }
.lrow { display: flex; gap: .625rem; align-items: flex-start; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; padding: .6875rem 1rem; color: var(--ink); }
.lrow:hover { background: var(--sheet-2); }
.lrow .lt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.lrow .tt { font-weight: 500; font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; }
.lrow .drk { color: var(--muted); font-weight: 600; font-size: max(var(--min-text), .78125rem); }
.lrow .lm { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font: max(var(--min-text), .71875rem) var(--f-mono); color: var(--muted); }
.lrow.done .tt { color: var(--muted); }
.lrow .lm .st, .lrow .lm .due, .lrow .lm .runs { font-family: var(--f-body); }
.lrow > svg.i { width: 17px; height: 17px; color: var(--muted); margin-top: 2px; }
@media (min-width: 900px) { .listwrap .tlist, .wk-page .tlist { padding: 0 .5rem 1rem; } }
.rdot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: .375rem; background: var(--muted); }
.rdot.running { background: var(--blue); } .rdot.wait { background: var(--part); } .rdot.stopped { background: var(--danger); }
.mrow .rdot { margin-top: 0; }
.wk-page { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.wk-empty { color: var(--muted); padding: 1.375rem 1.5rem; margin: 0; font-size: .90625rem; }
.wk-empty.bad { color: var(--danger); }
@media (max-width: 899px) { .tools { padding: .5rem .75rem; } .tools .btn span { display: none; } }

/* ---------- Ticket-Seite */
.tpage { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 272px; }
.tpage .tmain { overflow-y: auto; padding: 1.375rem 1.75rem 2rem; display: flex; flex-direction: column; gap: 1.375rem; min-width: 0; }
.tpage .tside { border-left: 1px solid var(--line); padding: 1.25rem 1.125rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.125rem; }
.tpage.one { display: block; overflow-y: auto; }
.tpage.one .tmain { overflow: visible; padding: 1rem 1rem 1.5rem; gap: 1.125rem; }
.ttitle h1 { margin: 0; font: 700 1.4375rem/1.3 var(--f-body); overflow-wrap: anywhere; }
.ttitle h2 { margin: 0; font: 700 1.1875rem/1.3 var(--f-body); }
.marks { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
.by { display: flex; align-items: center; gap: .375rem; flex-wrap: wrap; font-size: max(var(--min-text), .78125rem); color: var(--muted); margin-top: .5rem; }
.draftbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .625rem; padding: .5rem .625rem; border: 1px dashed var(--control-border); border-radius: 6px; font-size: .84375rem; }
.draftbar > span { flex: 1 1 220px; }
.tedit { display: flex; flex-direction: column; gap: .5rem; }
.tedit input, .tedit textarea, .wedit, .wpage input[type=text] { width: 100%; border: 1px solid var(--control-border); border-radius: 4px; padding: .5625rem .6875rem; background: var(--paper-raised); color: var(--ink); }
.tedit .et-title { font: 700 1.1875rem/1.3 var(--f-body); }
.tedit textarea, .wedit { resize: vertical; font: .875rem/1.5 var(--f-mono); }
.tedit .row, .wpage .row, .runacts { display: flex; gap: .5rem; flex-wrap: wrap; }
.meta { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: .5rem .75rem; margin: 0; font-size: .875rem; align-items: center; }
.meta dt { color: var(--muted); font-size: max(var(--min-text), .8125rem); }
.meta dd { margin: 0; display: flex; align-items: center; gap: .4375rem; flex-wrap: wrap; min-width: 0; }
.meta.side { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.meta.side dt { margin-top: .625rem; } .meta.side dt:first-child { margin-top: 0; }
.meta select, .meta input[type=date] { font: inherit; font-size: .875rem; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 4px; padding: 2px .25rem; margin-left: -.3125rem; max-width: 100%; min-width: 0; }
.meta select:hover, .meta input[type=date]:hover, .meta select:focus-visible { border-color: var(--control-border); }
.meta select option { background: var(--paper-raised); color: var(--ink); }
.selwrap { display: inline-flex; align-items: center; gap: .25rem; }
.sect h3 { margin: 0 0 .5rem; font: 600 max(var(--min-text), .6875rem)/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.sect .meta2 { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: max(var(--min-text), .75rem); }
.desc { font-size: .9375rem; }
.att { display: flex; flex-wrap: wrap; gap: .375rem; align-items: center; }
.att .file svg.i { width: 15px; height: 15px; color: var(--muted); }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.links li > button { display: flex; align-items: center; gap: .5rem; width: 100%; border: 0; background: none; padding: .3125rem 0; text-align: left; font-size: .875rem; color: var(--ink); }
.links li > button:hover .lt2 { color: var(--blue-text); }
.links svg.i { width: 16px; height: 16px; color: var(--muted); }
.links .lt2 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.links small { font-size: max(var(--min-text), .75rem); color: var(--muted); white-space: nowrap; }
.links .addlink { padding-left: 1.5rem; }
.runbox { border: 1px solid var(--line); border-radius: 6px; padding: .625rem .75rem .5rem; }
.runbox .rh { display: flex; align-items: center; gap: .5rem; font-size: .875rem; margin-bottom: .5rem; flex-wrap: wrap; }
.runbox .rh b { font-weight: 600; } .runbox .rh svg.i { width: 15px; height: 15px; }
.runacts { margin: 2px 0 .25rem 1.375rem; }
.rail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rail-list > li { position: relative; padding: 0 0 .75rem 1.375rem; min-width: 0; }
.rail-list > li::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: -10px; width: 1px; background: var(--line); }
.rail-list > li:last-child::before { display: none; }
.rail-list .nd { position: absolute; left: 1px; top: 6.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.rail-list .r-wait .nd { background: var(--part); left: 0; top: 5.5px; width: 9px; height: 9px; }
.rail-list .r-run .nd { background: var(--blue); }
.rl { font-size: .84375rem; line-height: 20px; display: flex; gap: .5rem; align-items: baseline; }
.rl .t { flex: 1; min-width: 0; } .rl small { font-size: max(var(--min-text), .71875rem); color: var(--muted); white-space: nowrap; }
.cm { display: flex; gap: .625rem; }
.cm + .cm { margin-top: .875rem; }
.cm .cb { flex: 1; min-width: 0; font-size: .90625rem; }
.cm .cn { font-size: max(var(--min-text), .78125rem); color: var(--muted); display: flex; gap: .375rem; flex-wrap: wrap; }
.cm .cn b { color: var(--ink); font-weight: 600; }
.cin { display: flex; align-items: flex-end; gap: .375rem; border: 1px solid var(--control-border); border-radius: 6px; padding: .25rem .25rem .25rem .6875rem; margin-top: .875rem; background: var(--paper-raised); }
.cin:focus-within { border-color: var(--blue-text); }
.cin textarea { flex: 1; border: 0; background: transparent; resize: vertical; padding: .375rem 0; min-height: 36px; outline: none; font-size: .90625rem; }
.cin .send { width: 36px; height: 34px; }
.cin + .note { margin-top: .375rem; font-size: max(var(--min-text), .75rem); }
details.activity summary { cursor: pointer; font: 600 max(var(--min-text), .6875rem)/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); list-style: none; }
details.activity summary::-webkit-details-marker { display: none; }
details.activity ul { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .375rem; font-size: max(var(--min-text), .8125rem); }
details.activity li { display: flex; gap: .5rem; align-items: center; } details.activity li > span:nth-child(2) { flex: 1; min-width: 0; }
details.activity small { color: var(--muted); font-size: max(var(--min-text), .71875rem); white-space: nowrap; }

/* ---------- Wissen */
.wiki { flex: 1; min-height: 0; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.wiki.one { display: flex; flex-direction: column; }
.wnav { border-right: 1px solid var(--line); overflow-y: auto; padding: .625rem .5rem 1rem; min-height: 0; }
.wiki.one .wnav { border-right: 0; flex: 1; }
.wsp h4 { margin: .75rem .5rem .25rem; font: 600 max(var(--min-text), .6875rem)/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; gap: .5rem; align-items: center; }
.wsp > .linkbtn { margin: 0 .5rem .375rem; }
.wlist { list-style: none; margin: 0; padding: 0; }
.wl-item { display: flex; gap: .5rem; align-items: flex-start; width: 100%; text-align: left; border: 0; background: none; padding: .4375rem .5rem; border-radius: 4px; color: var(--ink); }
.wl-item:hover { background: var(--sheet-2); }
.wl-item[aria-current="true"] { background: color-mix(in srgb, var(--action) 12%, var(--paper-raised)); }
.wl-item svg.i { width: 16px; height: 16px; color: var(--muted); margin-top: 2px; }
.wl-t { display: flex; flex-direction: column; min-width: 0; } .wl-t span { font-size: .875rem; font-weight: 500; } .wl-t small { font-size: max(var(--min-text), .71875rem); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wlist .addlink { margin: .375rem .5rem; }
.wpage { overflow-y: auto; padding: 1.375rem 1.75rem 2rem; min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: .875rem; }
.wiki.one .wpage { padding: .875rem 1rem 1.5rem; flex: 1; }
.wph { display: flex; align-items: flex-start; gap: .625rem; }
.wph h2 { margin: 0; font: 700 1.3125rem var(--f-body); flex: 1; }
.wpt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1875rem; }
.wpt .crumbs { font: max(var(--min-text), .75rem) var(--f-mono); color: var(--muted); }
.wver { display: flex; gap: .375rem; align-items: center; font-size: max(var(--min-text), .78125rem); color: var(--muted); }
.wbody { max-width: 760px; font-size: .96875rem; }
.wbody .md h1 { font: 700 1.5rem/1.25 var(--f-body); margin: 0 0 .5em; }
.wbody .md h2 { font: 700 1.125rem/1.3 var(--f-body); margin: 1em 0 .4em; }

/* ---------- Lebende Karten im Verlauf (ui_show) */
.lc { border: 1px solid var(--line); background: var(--paper-raised); border-radius: 6px; display: flex; flex-direction: column; text-align: left; width: 100%; color: var(--ink); overflow: hidden; cursor: pointer; max-width: 560px; }
.lc:hover { border-color: var(--control-border); }
.lc:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 2px; }
.lc .lch { display: flex; align-items: center; gap: .5rem; padding: .5625rem .75rem .5rem; border-bottom: 1px solid var(--line); font: 600 max(var(--min-text), .6875rem)/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.lc .lch svg.i { width: 15px; height: 15px; }
.lc .lck { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lc .live { display: inline-flex; gap: .3125rem; align-items: center; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: max(var(--min-text), .71875rem); white-space: nowrap; }
.lc .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.lc .lcb { padding: .625rem .75rem .75rem; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; }
.lc .lcb h4 { margin: 0; font: 600 .96875rem/1.3 var(--f-body); }
.lc .lcf { padding: .5rem .75rem; border-top: 1px solid var(--line); font-size: max(var(--min-text), .78125rem); color: var(--blue-text); }
.lc.opened .lcf { color: var(--muted); }
.lc .wk-empty { padding: .25rem 0; font-size: .84375rem; }
@media (max-width: 899px) { .lc .live { display: none; } }
.cnt { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: .375rem; }
.cnt > div { border-radius: 4px; background: var(--sheet-2); padding: .375rem .5rem; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cnt b { font: 600 1.125rem/1.1 var(--f-body); }
.cnt span { font-size: max(var(--min-text), .65625rem); color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: .25rem; align-items: center; }
.cnt .st { font-size: max(var(--min-text), .65625rem); gap: 0; flex: none; } .cnt .st i { width: 6px; height: 6px; }
.cnt .hi { background: color-mix(in srgb, var(--blue) 13%, var(--paper-raised)); }
.lcfilter { display: flex; gap: .375rem; align-items: center; font-size: max(var(--min-text), .78125rem); color: var(--muted); } .lcfilter svg.i { width: 14px; height: 14px; }
.hot { display: flex; flex-direction: column; }
.hot > div { display: flex; gap: .5rem; align-items: center; font-size: .84375rem; padding: .3125rem 0; border-top: 1px solid var(--line); min-width: 0; }
.hot > div:first-child { border-top: 0; }
.hot .k { font: max(var(--min-text), .71875rem) var(--f-mono); color: var(--muted); width: 46px; flex: none; }
.hot .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot svg.i { width: 14px; height: 14px; color: var(--part); }
.hn { font-size: max(var(--min-text), .75rem); white-space: nowrap; color: var(--muted); }
.hn.approval { color: var(--part); font-weight: 600; display: inline-flex; gap: .25rem; align-items: center; } .hn.approval::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--part); }
.hn.over, .hn.prio { color: var(--danger); }
.mrow { display: flex; gap: .625rem; align-items: center; flex-wrap: wrap; font-size: max(var(--min-text), .8125rem); }
.lcprev { font-size: .84375rem; color: var(--muted); max-height: 5.4em; overflow: hidden; }
.lcprev .md > * { margin: 0 0 .2em; }
/* im Verlauf: Knoten der Spur blau umrandet (Agent zeigt etwas) */
.timeline > .msg.uishow { --ny: 11px; gap: 4px; }
.timeline > .msg.agent.uishow::after { background: var(--paper); border-color: var(--blue); }
.timeline > .msg.uishow .who { padding-left: 0; }
.focus-tl .lc, .dock .lc { max-width: none; }
.dock .cnt { gap: .25rem; } .dock .cnt > div { padding: .3125rem .375rem; } .dock .cnt span > span:last-child { display: none; }
.msg.uishow.first .who { color: var(--blue-text); }

/* ---------- Blatt im Enso-Modus (C) */
.focus-left { grid-column: 1; grid-row: 1; }
.focus-right { grid-column: 2; grid-row: 1; }
.focus-mini { position: absolute; left: 50%; top: 5vh; width: 24vh; aspect-ratio: 1; transform: translateX(-50%); display: grid; place-items: center; pointer-events: none; z-index: 1; padding-top: 1%; }
.focus.sheet-open .focus-mini { pointer-events: auto; cursor: pointer; }
.focus-mini-state { opacity: 0; font-size: .9375rem; font-weight: 500; transition: opacity .25s; text-align: center; }
.focus.sheet-open .focus-mini-state { opacity: 1; transition: opacity .3s .55s; }
.focus .focus-center { transition: opacity .25s; }
.focus.sheet-open .focus-center { opacity: 0; }
.focus.sheet-open .focus-stage { pointer-events: none; }
.focus-sheet-slot { grid-column: 1; grid-row: 1; position: relative; z-index: 3; pointer-events: none; min-height: 0; }
.focus-sheet { position: absolute; left: 0; right: 0; bottom: 0; top: 33vh; pointer-events: auto; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--paper-raised); display: flex; flex-direction: column; min-height: 0; transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .26s; }
.focus-sheet.in, .pane.in { animation: shIn .42s cubic-bezier(.2,.8,.2,1); }
.focus-sheet.out { transform: translateY(80px); opacity: 0; }
@keyframes shIn { from { transform: translateY(60px); opacity: 0; } }
.handle { height: 22px; display: grid; place-items: center; flex: none; cursor: grab; touch-action: none; }
.handle i { width: 40px; height: 4px; border-radius: 2px; background: var(--control-border); }
.sh { display: flex; align-items: center; gap: .375rem; padding: 0 .5rem .5rem 1rem; border-bottom: 1px solid var(--line); flex: none; min-width: 0; }
.sh b { flex: 1; min-width: 0; font-size: .9375rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; white-space: nowrap; overflow: hidden; }
.sh b > span:not(.kd) { overflow: hidden; text-overflow: ellipsis; }
.sh b svg.i { width: 16px; height: 16px; color: var(--muted); }
.sh .iconbtn svg.i { width: 17px; height: 17px; }
.focus-sheet .agentline, .pane .agentline { margin: .625rem 1rem 0; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.fv-body { padding: 1rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1.125rem; }
.fv-body .tlist, .fv-body .wpage { overflow: visible; padding: 0; }
.fv-body .lgrp h4, .fv-board .lgrp h4 { background: var(--paper-raised); }
.fv-board .tlist { overflow: visible; }
.fv-board .board .colm { background: color-mix(in srgb, var(--sheet-2) 80%, transparent); }
@media (max-width: 900px) {
  .focus-left { grid-column: 1; grid-row: 1; } .focus-right { grid-column: 1; grid-row: 2; }
  .focus-mini { top: 3vh; width: 18vh; }
  .focus-sheet-slot { position: fixed; inset: 0; grid-row: auto; }
  .focus-sheet { top: 21vh; border-left: 0; border-right: 0; }
  .fv-body { padding: .875rem 1rem 1.5rem; }
}

/* ---------- Geteilte Ansicht im normalen Chat (Breite ziehbar), Handy: Blatt */
.split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(360px, 1fr) 9px minmax(320px, var(--pw, 460px)); }
.split > .chat { min-width: 0; min-height: 0; }
.grip { cursor: col-resize; position: relative; display: grid; place-items: center; touch-action: none; }
.grip::before { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: var(--line); }
.grip i { width: 5px; height: 36px; border-radius: 3px; background: var(--control-border); position: relative; }
.grip:hover i { background: var(--blue-text); }
.pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--paper); }
.pane .sh { padding-top: .75rem; min-height: 52px; }
.pane .lgrp h4 { background: var(--paper); }
@media (max-width: 899px) {
  .split { display: flex; flex-direction: column; }
  .split > .grip { display: none; }
  .split > .chat { flex: 1; }
  .pane { position: fixed; left: 0; right: 0; bottom: 0; top: 14dvh; z-index: 25; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--paper-raised); }
  .pane .sh { padding-top: 0; min-height: 0; }
  .pane .lgrp h4 { background: var(--paper-raised); }
}
@media (prefers-reduced-motion: reduce) { .focus-sheet, .pane, .focus-mini-state { animation: none; transition: none; } }

/* @-Erwähnung: Auswahl der Ansprechpartner über dem Kommentarfeld */
.cin { position: relative; }
.mention-menu { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 240px; max-width: 360px; background: var(--paper-raised); border: 1px solid var(--control-border); border-radius: 6px; padding: .25rem; display: flex; flex-direction: column; }
.mention-menu[hidden] { display: none; }
.mention-item { display: flex; gap: .625rem; align-items: baseline; border: 0; background: none; text-align: left; padding: .4375rem .625rem; border-radius: 4px; font-size: .875rem; color: var(--ink); }
.mention-item b { font-weight: 600; color: var(--blue-text); }
.mention-item span { color: var(--muted); font-size: max(var(--min-text), .8125rem); }
.mention-item.on, .mention-item:hover { background: var(--sheet-2); }

/* ---------- 0.11.0 Navigation „Vier Türen“: eine Leiste überall, einklappbar; Handy: Türen unten */
.shell { --side: 236px; }
@media (min-width: 900px) {
  .shell.nav-mini { grid-template-columns: 68px minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .shell .sidebar.nav4 { display: none !important; }
  .shell .main { display: flex !important; }
  .shell.has-tabs .main { height: calc(100dvh - 58px - env(safe-area-inset-bottom)); }
}
.nav4 .side-head { padding: calc(env(safe-area-inset-top) + 1rem) 1rem .625rem; }
.nav-new { padding: 2px .75rem .75rem; }
.nav-new .btn { min-height: 38px; }
.doors { display: flex; flex-direction: column; gap: 2px; padding: 0 .5rem; flex: 1; min-height: 0; overflow-y: auto; }
.door { display: flex; align-items: center; gap: .6875rem; width: 100%; border: 0; background: transparent; color: var(--side-ink); padding: .5625rem .625rem; border-radius: 5px; text-align: left; font-size: .90625rem; position: relative; }
.door:hover { background: var(--side-hover); }
.door[aria-current="true"] { background: var(--side-sel); color: var(--side-sel-ink); }
.door svg.i { width: 19px; height: 19px; flex: none; opacity: .9; }
.door-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav4 .side-foot { gap: 2px; }
.nav4 .me { border: 0; background: transparent; color: inherit; text-align: left; padding: .25rem; border-radius: 5px; }
.nav4 .me:hover { background: var(--side-hover); }
.nav4 .fold { color: var(--side-muted); }
.nav4 .fold:hover { background: var(--side-hover); color: var(--side-ink); }
.nav4.mini .side-head { justify-content: center; padding-left: 0; padding-right: 0; }
.nav4.mini .nav-new { padding: 2px .625rem .75rem; }
.nav4.mini .nav-new .btn { padding: 0; }
.nav4.mini .doors { align-items: center; padding: 0 .375rem; }
.nav4.mini .door { flex-direction: column; gap: .1875rem; width: 56px; padding: .5rem 0 .375rem; font-size: max(var(--min-text), .65625rem); text-align: center; justify-content: center; }
.nav4.mini .door-t { flex: none; overflow: visible; }
.nav4.mini .door .count { position: absolute; top: 2px; right: 4px; min-width: 17px; height: 17px; line-height: 17px; font-size: max(var(--min-text), .625rem); padding: 0 .25rem; }
.nav4.mini .side-foot { flex-direction: column; padding: .5rem 0 calc(.625rem + env(safe-area-inset-bottom)); gap: .375rem; }
.nav4.mini .me { flex: none; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper-raised); border-top: 1px solid var(--line); padding: .375rem 0 calc(.5rem + env(safe-area-inset-bottom)); }
.tabbar button { border: 0; background: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: max(var(--min-text), .6875rem); position: relative; padding: 2px 0; min-height: 44px; justify-content: center; }
.tabbar button[aria-current="true"] { color: var(--ink); font-weight: 600; }
.tabbar svg.i { width: 22px; height: 22px; }
.tabbar .count { position: absolute; top: -2px; left: 54%; min-width: 17px; height: 17px; line-height: 17px; font-size: max(var(--min-text), .625rem); padding: 0 .25rem; }
.me-btn { border: 0; background: none; padding: 0; flex: none; }
.me-btn .me-av { width: 30px; height: 30px; font-size: max(var(--min-text), .8125rem); background: var(--sheet-2); color: var(--ink); border: 1px solid var(--line); }

.umenu { min-width: 230px; }
.um-head { padding: .5rem .75rem .5625rem; border-bottom: 1px solid var(--line); margin-bottom: .25rem; display: flex; flex-direction: column; }
.um-head small { color: var(--muted); font-size: max(var(--min-text), .75rem); }

/* ---------- To-Do, Chats: ruhige Zeilen */
.td { display: flex; flex-direction: column; max-width: 820px; width: 100%; }
.wk-page > .td { padding: .25rem 1.5rem 1.75rem; }
.td-grp { margin-top: 1.125rem; }
.td-grp > h3 { margin: 0 0 .25rem; font: 600 max(var(--min-text), .6875rem)/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; gap: .5rem; }
.td-row { display: flex; align-items: center; gap: .75rem; width: 100%; min-width: 0; padding: .625rem .375rem; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-align: left; }
button.td-row:hover, .td-go:hover { background: var(--sheet-2); }
.td-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; border: 0; background: none; color: inherit; text-align: left; padding: 0; border-radius: 4px; }
.td-row > .td-go { padding: 2px 0; }
.td-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.td-t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-t small { font-size: max(var(--min-text), .78125rem); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-o { flex: none; font-size: max(var(--min-text), .75rem); color: var(--muted); }
.td-acts { flex: none; display: flex; gap: .375rem; align-items: center; }
.td-appr { margin: .5rem 0 .875rem; }
.td-src { display: flex; gap: .625rem; align-items: baseline; font-size: max(var(--min-text), .78125rem); color: var(--muted); margin-bottom: .25rem; }
.td-appr .card { margin: 0; max-width: 680px; }
.td-empty { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 4rem 1.25rem; color: var(--muted); text-align: center; }
.td-tools { display: flex; gap: .625rem; align-items: center; flex-wrap: wrap; margin-top: .375rem; }
.td-tools .wsearch { flex: 1; min-width: 200px; }
.td-tools .seg2.light { background: var(--sheet-2); display: inline-grid; grid-template-columns: repeat(3, auto); }
.td-tools .seg2 button { color: var(--muted); }
.td-tools .seg2 button[aria-pressed="true"] { background: var(--paper-raised); color: var(--ink); }
.chatrow .em-22 { flex: none; }
.kind { flex: none; font-size: max(var(--min-text), .6875rem); border: 1px solid var(--line); color: var(--muted); border-radius: 3px; padding: 0 .3125rem; }
.wait { color: var(--part); font-weight: 600; }
.wsearch { width: 100%; border: 1px solid var(--control-border); border-radius: 6px; padding: .5625rem .75rem; background: var(--paper-raised); color: var(--ink); font-size: .9375rem; }
.wsearch:focus { outline: none; border-color: var(--blue-text); }
@media (max-width: 899px) { .wk-page > .td { padding: 0 .875rem 1.5rem; } .td-row { padding: .6875rem 2px; } }

/* ---------- Projekte (Übersicht) */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .875rem; padding: 1rem 1.5rem 1.75rem; }
.pcard { display: flex; flex-direction: column; gap: .625rem; text-align: left; border: 1px solid var(--line); background: var(--paper-raised); color: var(--ink); border-radius: 8px; padding: .875rem 1rem; min-width: 0; }
.pcard:hover { border-color: var(--control-border); }
.pc-top { display: flex; align-items: center; gap: .625rem; min-width: 0; }
.pc-top b { font-size: .96875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-sub { font-size: max(var(--min-text), .78125rem); color: var(--muted); }
.pc-bar { height: 5px; border-radius: 3px; background: var(--sheet-2); overflow: hidden; }
.pc-bar i { display: block; height: 100%; background: var(--action); }
.pc-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: max(var(--min-text), .78125rem); color: var(--muted); }
@media (max-width: 899px) { .pgrid { padding: .5rem .875rem 1.5rem; grid-template-columns: minmax(0, 1fr); } }

/* Projekt-Reiter ohne Spalte am Rand; Chat als eigener Reiter */
.room.solo { grid-template-columns: minmax(0, 1fr); }
.room.chat-tab { display: flex; }
.dock.full { border-left: 0; flex: 1; }
.dock.full .timeline { padding: 1.125rem max(1rem, calc((100% - 47.5rem) / 2)) .625rem; }
.dock.full .timeline > * { max-width: 760px; }
.dock.full .composer .inner { max-width: 760px; margin: 0 auto; }

/* ---------- Wissen: Suche, Bereiche, Seitenbaum, Blättern */
.wstart { padding: .5rem 1.5rem 1.75rem; display: flex; flex-direction: column; }
.wstart .wbar { padding: .25rem 0 .375rem; }
.wspace { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wbar { padding: .75rem 1.5rem; border-bottom: 1px solid var(--line); flex: none; }
.wk-h { margin: 1.125rem 0 .375rem; font: 600 max(var(--min-text), .6875rem)/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .625rem; max-width: 980px; }
.wcard { display: flex; flex-direction: column; gap: .375rem; text-align: left; border: 1px solid var(--line); background: var(--paper-raised); color: var(--ink); border-radius: 8px; padding: .6875rem .8125rem; min-width: 0; }
.wcard:hover { border-color: var(--control-border); }
.wcard b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcard small { display: flex; gap: .375rem; align-items: center; color: var(--muted); font-size: max(var(--min-text), .78125rem); }
.wcard small .pmark { width: 18px; height: 18px; font-size: max(var(--min-text), .53125rem); }
.wcard.space { flex-direction: row; align-items: center; gap: .75rem; }
.wc-t { display: flex; flex-direction: column; min-width: 0; }
.wc-t small { display: block; }
.pmark.firm { background: var(--action); color: var(--on-action); }
.pmark.firm svg.i { width: 13px; height: 13px; }
.wres { padding: 0 0 1.25rem; }
.wk-page > .wres { padding: .25rem 1.5rem 1.5rem; }
.spsw { width: 100%; display: flex; align-items: center; gap: .5625rem; border: 1px solid var(--line); background: var(--paper-raised); color: var(--ink); border-radius: 6px; padding: .4375rem .625rem; font-weight: 600; margin: 2px 0 .625rem; text-align: left; }
.spsw > svg.i { width: 15px; height: 15px; color: var(--muted); }
.ctx-item[aria-current="true"] { background: var(--sheet-2); }
.wtree { display: flex; flex-direction: column; gap: 1px; }
.tnode { display: flex; align-items: center; padding-left: calc(var(--d) * .875rem); border-radius: 5px; }
.tn-tog { width: 22px; height: 28px; flex: none; display: grid; place-items: center; border: 0; background: none; color: var(--muted); padding: 0; }
.tn-tog svg.i { width: 13px; height: 13px; }
.chv { display: grid; transition: transform .15s; }
.chv.open { transform: rotate(90deg); }
.tn { flex: 1; min-width: 0; text-align: left; border: 1px solid transparent; background: none; color: var(--ink); padding: .3125rem .5rem; border-radius: 5px; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn.top { font-weight: 600; }
.tn.folder { color: var(--muted); }
button.tn:hover { background: var(--sheet-2); }
.tn[aria-current="true"] { background: var(--paper-raised); border-color: var(--line); }
.tnode.dragging { opacity: .45; }
.tnode.drop-in { background: color-mix(in srgb, var(--blue) 14%, transparent); }
.tnode.drop-before { box-shadow: inset 0 2px 0 var(--blue-text); }
.tnode.drop-after { box-shadow: inset 0 -2px 0 var(--blue-text); }
.whint { margin: .625rem .375rem 0; font-size: max(var(--min-text), .75rem); }
.wnav .addlink { margin: .5rem .375rem 0; }
.wtitle { margin: 0; font: 700 1.375rem/1.25 var(--f-body); }
.wkids { margin-top: .375rem; }
.pn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .625rem; margin-top: .625rem; }
.pnb { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; border: 1px solid var(--line); background: var(--paper-raised); color: var(--ink); border-radius: 8px; padding: .5625rem .75rem; }
.pnb:hover { border-color: var(--control-border); }
@media (max-width: 899px) { .row.wacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; } .row.wacts > .btn { justify-content: center; min-height: 44px; } }
.pnb small { display: inline-flex; align-items: center; gap: .25rem; color: var(--muted); font-size: max(var(--min-text), .75rem); }
.pnb small svg.i { width: 13px; height: 13px; }
/* lange Titel (LIEFERUNG-16): höchstens zwei Zeilen, dann „…“; volle Knopfbreite, nie über den Rand */
.pnb b { font-weight: 600; align-self: stretch; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; hyphens: auto;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pnb small { align-self: stretch; min-width: 0; }
.pnb.nx { text-align: right; }
.pnb.nx small { justify-content: flex-end; }
.wacts { padding-top: .75rem; border-top: 1px solid var(--line); }
.wacts .btn { gap: .375rem; }
.mvbox { display: flex; flex-wrap: wrap; gap: .375rem; align-items: center; padding: .625rem .75rem; background: var(--sheet-2); border-radius: 8px; }
.ph .crumb { margin-bottom: 2px; }
.ph .crumb .cur { color: var(--muted); }
@media (max-width: 899px) {
  .wstart { padding: .25rem .875rem 1.5rem; }
  .wbar { padding: .25rem 0 .5rem; border-bottom: 0; }
  .wiki.one .wnav { padding: .375rem .875rem 1.25rem; }
  .wcards { grid-template-columns: minmax(0, 1fr); }
  .wcards.spaces { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .chv { transition: none; } }
.wstart .wbar { border-bottom: 0; }
@media (max-width: 899px) {
  .td-row:has(> .td-acts) { flex-wrap: wrap; row-gap: .5rem; }
  .td-row > .td-go { flex-basis: 100%; }
  .td-row > .td-acts { margin-left: 2.125rem; }
  .td-row > .td-go + .iconbtn { margin-left: auto; }
}
.td-o.over { color: var(--danger); }

/* ---------- 0.12.0 Agent fragen, von überall */
.askbtn { gap: .375rem; flex: none; }
/* Handy (LIEFERUNG-16): das Ensō schwebt als runder Knopf, standardmäßig unten rechts, per Ziehen verschiebbar */
.askfab { position: fixed; z-index: 13; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  right: 14px; bottom: calc(74px + env(safe-area-inset-bottom)); border: 1px solid var(--control-border); background: var(--paper-raised); color: var(--ink);
  box-shadow: 0 6px 18px rgb(0 0 0 / .18); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.askfab.low { bottom: calc(18px + env(safe-area-inset-bottom)); }
.askfab.placed { right: auto; bottom: auto; }
.askfab.dragging { box-shadow: 0 10px 26px rgb(0 0 0 / .28); transform: scale(1.06); transition: transform .12s; }
.askfab { transition: opacity .18s; }
.askfab.yield { opacity: .16; pointer-events: none; }
.askfab .em-30 { width: 30px; height: 30px; font-size: 1.875rem; }
html.kbd .askfab { display: none; }
/* Inhalt lässt sich unter dem Knopf hervorscrollen */
.shell.has-tabs .wk-page, .shell.has-tabs .wiki.one .wnav, .shell.has-tabs .wiki.one .wpage, .shell.has-tabs .todo-page { padding-bottom: 5.25rem; }
/* Öffnen/Schließen über transform und opacity (nav.js), Ursprung am verschiebbaren Knopf. */
dialog.ask { width: min(560px, calc(100vw - 24px)); border: 1px solid var(--line); border-radius: 10px; padding: 1.125rem; background: var(--paper-raised); color: var(--ink); }
dialog.ask::backdrop { background: rgb(0 0 0 / .35); }
dialog.ask .ask-head { display: flex; align-items: center; gap: .625rem; margin-bottom: .625rem; }
dialog.ask h3 { margin: 0; font-size: 1.0625rem; }
dialog.ask textarea { width: 100%; border: 1px solid var(--control-border); border-radius: 6px; padding: .625rem .75rem; background: var(--paper); color: var(--ink); font: inherit; resize: vertical; margin-top: .625rem; }
dialog.ask .row { display: flex; gap: .5rem; margin-top: .75rem; }
.cl-results { display: flex; flex-direction: column; gap: .25rem; margin-top: .375rem; }
.cl-results .btn { justify-content: flex-start; text-align: left; }
.ask-where { margin: .5rem 0 0; }
.ctxchip { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); background: var(--sheet-2); border-radius: 6px; padding: .25rem .25rem .25rem .625rem; font-size: .84375rem; min-width: 0; }
.ctxchip .fl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctxchip svg.i { width: 15px; height: 15px; color: var(--muted); flex: none; }
.ctxref { display: flex; justify-content: flex-end; margin-top: .25rem; }
.ctxref a { display: inline-flex; align-items: center; gap: .3125rem; font-size: max(var(--min-text), .75rem); color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: 1px .5625rem 1px .4375rem; max-width: 80%; }
.ctxref a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctxref a:hover { color: var(--blue-text); }
.ctxref svg.i { width: 13px; height: 13px; flex: none; }
.wempty-t { font: 700 1.375rem/1.25 var(--f-body); margin: 0; }
@media (max-width: 899px) {
  .wiki.one .wtree { margin-top: .625rem; }
  .wiki.one .tn { padding: .625rem .5rem; font-size: .9375rem; }
  .wiki.one .tn-tog { width: 38px; height: 42px; }
  .wiki.one .tn-tog svg.i { width: 15px; height: 15px; }
}

/* ---------- 0.13.0 WYSIWYG-Editor im Wissen */
.wy { border: 1px solid var(--control-border); border-radius: 8px; background: var(--paper-raised); display: flex; flex-direction: column; min-width: 0; }
.wy-bar { order: -1; position: sticky; top: 0; z-index: 2; display: flex; gap: 2px; padding: .3125rem .375rem; border-bottom: 1px solid var(--line); background: var(--paper-raised); border-radius: 8px 8px 0 0; overflow-x: auto; scrollbar-width: none; }
.wy-b { flex: none; min-width: 34px; height: 34px; padding: 0 .5rem; border: 0; border-radius: 5px; background: none; color: var(--ink); font: 600 .875rem/1 var(--f-body); display: inline-grid; place-items: center; }
.wy-b:hover { background: var(--sheet-2); }
.wy-b:disabled { opacity: .35; }
.wy-b.b { font-weight: 800; } .wy-b.i { font-style: italic; font-family: Georgia, serif; } .wy-b.mono { font-family: var(--f-mono); font-size: max(var(--min-text), .8125rem); }
.wy-b.src { margin-left: auto; font-weight: 500; font-size: max(var(--min-text), .8125rem); border: 1px solid var(--line); }
.wy-b.src[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.wy-b svg.i { width: 18px; height: 18px; }
.wy-doc { padding: 1rem 1.25rem 1.375rem; min-height: 300px; outline: none; line-height: 1.6; font-size: .9375rem; color: var(--ink); overflow-wrap: anywhere; }
.wy-doc:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--blue-text) 40%, transparent); }
.wy-doc > * { margin: 0 0 .75rem; }
.wy-doc h1 { font-size: 1.5rem; line-height: 1.25; } .wy-doc h2 { font-size: 1.25rem; } .wy-doc h3 { font-size: 1.0625rem; } .wy-doc h4, .wy-doc h5, .wy-doc h6 { font-size: .9375rem; }
.wy-doc ul, .wy-doc ol { padding-left: 1.5rem; }
.wy-doc li.task { list-style: none; margin-left: -1.375rem; }
.wy-doc li.task > input { margin: 0 .5rem 0 0; vertical-align: -2px; width: 15px; height: 15px; }
.wy-doc blockquote { border-left: 3px solid var(--line); padding: 2px 0 2px .875rem; color: var(--muted); }
.wy-doc code { font-family: var(--f-mono); font-size: .9em; background: var(--sheet-2); border-radius: 3px; padding: 0 .1875rem; }
.wy-doc pre { background: var(--sheet-2); border-radius: 6px; padding: .625rem .75rem; overflow-x: auto; font-family: var(--f-mono); font-size: max(var(--min-text), .8125rem); line-height: 1.5; white-space: pre; }
.wy-doc pre code { background: none; padding: 0; font-size: inherit; }
.wy-doc table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.wy-doc th, .wy-doc td { border: 1px solid var(--line); padding: .3125rem .5625rem; min-width: 60px; vertical-align: top; }
.wy-doc th { background: var(--sheet-2); text-align: left; }
.wy-doc [data-align="center"] { text-align: center; } .wy-doc [data-align="right"] { text-align: right; }
.wy-doc hr { border: 0; border-top: 1px solid var(--line); margin: 1.125rem 0; }
.wy-doc img { max-width: 100%; height: auto; border-radius: 4px; }
.wy-link { color: var(--blue-text); text-decoration: underline; text-underline-offset: 2px; cursor: text; }
.wy-chip { font-size: max(var(--min-text), .78125rem); border: 1px dashed var(--control-border); border-radius: 4px; padding: 0 .375rem; color: var(--muted); }
.wy-raw { border: 1px dashed var(--control-border); border-radius: 6px; padding: .375rem .625rem; background: var(--paper); user-select: text; }
.wy-raw small { display: block; font-size: max(var(--min-text), .6875rem); color: var(--muted); letter-spacing: .04em; margin-bottom: 2px; }
.wy-raw pre { margin: 0; background: none; padding: 0; font-size: max(var(--min-text), .78125rem); white-space: pre-wrap; color: var(--muted); }
.wy-src { min-height: 360px; border: 0; padding: .875rem 1rem; background: var(--paper-raised); color: var(--ink); font: max(var(--min-text), .8125rem)/1.55 var(--f-mono); resize: vertical; outline: none; border-radius: 0 0 8px 8px; }
.wedit-page .row { margin-top: 2px; }
@media (max-width: 899px) {
  /* Handy: Leiste unten, über der Tastatur (Viewport schrumpft mit, interactive-widget=resizes-content) */
  .wy-bar { order: 2; position: static; top: auto; border-bottom: 0; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
  /* beim Tippen fest über der Tastatur (der Viewport schrumpft mit, interactive-widget=resizes-content) */
  .wy:focus-within .wy-bar { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 25; border-radius: 0; padding: .3125rem max(.5rem, env(safe-area-inset-left)) calc(.3125rem + env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgb(0 0 0 / .08); }
  .wy:focus-within { margin-bottom: 3.75rem; }
  .wedit-page .wph h2 { display: none; }
  .wy-b { min-width: 40px; height: 40px; }
  .wy-doc { padding: .75rem .875rem 1.125rem; min-height: 240px; font-size: 1rem; }
}

/* ---------- 0.13.2 Ticketkopf (LIEFERUNG-16): ruhiger Kopf, Felder als gleich breite Kacheln */
.ttitle .trow { display: flex; align-items: flex-start; gap: .375rem; }
.ttitle .trow > h1, .ttitle .trow > h2 { flex: 1; min-width: 0; }
.ttitle .tedit-btn { width: 40px; height: 40px; margin-top: -.25rem; }
.tfields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: .875rem 0 .375rem; }
.tfields.side { grid-template-columns: minmax(0, 1fr); gap: .375rem; margin: 0; }
.tfields .tf.wide { grid-column: 1 / -1; }
.tf { display: flex; flex-direction: column; gap: .1875rem; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-raised); padding: .375rem .625rem .25rem; }
.tf-l { font-size: max(var(--min-text), .75rem); color: var(--muted); }
.tf-v { display: flex; align-items: center; min-height: 36px; min-width: 0; }
.tf-sel { position: relative; display: flex; align-items: center; gap: .5rem; width: 100%; min-width: 0; min-height: 36px; cursor: pointer; }
.tf-sel select, .tf-sel input[type=date] { appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; width: 100%; font: inherit; font-size: .90625rem; color: var(--ink); background: transparent; border: 0; padding: .375rem 1.375rem .375rem 0; margin: 0; cursor: pointer; }
.tf-sel input[type=date] { padding-right: 0; }
.tf-sel select option { background: var(--paper-raised); color: var(--ink); }
.tf-sel > svg.i { position: absolute; right: 0; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.tf-sel select:disabled { cursor: default; }
.tf:focus-within { border-color: var(--blue-text); }
.tf-sel .st > span { display: none; }
.tf-ro { display: flex; align-items: center; gap: .375rem; font-size: .90625rem; }
.tf-empty { border: 0; background: none; padding: .375rem 0; width: 100%; min-height: 36px; text-align: left; font: inherit; font-size: .90625rem; color: var(--muted); cursor: pointer; }
.tf-empty:hover { color: var(--ink); }
.tf-none { color: var(--muted); font-size: .90625rem; }
.tf-labs { display: flex; flex-wrap: wrap; gap: .375rem; align-items: center; width: 100%; min-height: 36px; }
.tf-add { margin-left: auto; width: 36px; height: 36px; }
.tf-input { width: 100%; min-height: 36px; border: 0; background: transparent; font: inherit; font-size: .90625rem; color: var(--ink); outline: none; }
.tf-proj { display: inline-flex; align-items: center; gap: .5rem; min-height: 36px; }
@media (max-width: 899px) { .tf-v, .tf-sel, .tf-empty, .tf-input { min-height: 40px; } }

/* ---------- 0.13.2 Projekt bearbeiten */
.pedit { max-width: 720px; padding: 1.125rem 1.25rem 5.625rem; display: flex; flex-direction: column; gap: 1.125rem; }
.pe-h { margin: 0; font: 700 1.25rem/1.3 var(--f-body); }
.pe-s { display: flex; flex-direction: column; gap: .75rem; }
.pe-s h3 { margin: 0; font-size: max(var(--min-text), .8125rem); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pe-f { display: flex; flex-direction: column; gap: .25rem; }
.pe-f > label { font-size: max(var(--min-text), .8125rem); color: var(--muted); }
.pe-f input[type=text], .pe-col input[type=text] { font: inherit; font-size: .9375rem; color: var(--ink); background: var(--paper-raised); border: 1px solid var(--control-border); border-radius: 6px; padding: .5625rem .6875rem; min-height: 44px; min-width: 0; }
.pe-f input.bad { border-color: var(--red-text, #b42318); }
.pe-f input:disabled, .pe-col input:disabled { opacity: .7; }
.pe-colors { display: flex; flex-wrap: wrap; gap: .5rem; }
.pe-sw { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; outline: 1px solid var(--line); cursor: pointer; }
.pe-sw[aria-checked="true"] { border-color: var(--paper); outline: 2px solid var(--ink); }
.pe-cols { display: flex; flex-direction: column; gap: .375rem; }
.pe-col { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px 36px; gap: .375rem; align-items: center; }
.pe-done { display: inline-flex; align-items: center; gap: .3125rem; font-size: max(var(--min-text), .8125rem); color: var(--muted); min-height: 44px; padding: 0 .25rem; }
.pe-err { color: var(--red-text, #b42318); margin: 0; }
.pe-save { gap: .5rem; }
.pe-mem { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .375rem; }
.pe-mem li { display: flex; align-items: center; gap: .625rem; border: 1px solid var(--line); border-radius: 8px; padding: .25rem .375rem .25rem .625rem; background: var(--paper-raised); min-height: 48px; }
.pe-mem li .fl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-role { width: auto; flex: none; min-width: 150px; }
.pe-add { border: 1px dashed var(--control-border); border-radius: 8px; padding: 0 .625rem; }
.pe-danger .btn.danger { border-color: var(--red-text, #b42318); color: var(--red-text, #b42318); }
.pedit-btn { flex: none; }
@media (max-width: 899px) { .pedit { padding: .875rem .875rem 6.25rem; } .pe-role { min-width: 130px; } }

/* ---------- 0.13.3 (LIEFERUNG-16a): Projekt bearbeiten scrollt selbst, der Hintergrund bleibt stehen */
.rm > .pedit { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pedit { scroll-padding-bottom: 96px; }
@media (max-width: 899px) { .rm > .pedit { padding-bottom: calc(6.875rem + env(safe-area-inset-bottom)); } }

/* Handy (LIEFERUNG-21): Board mit Spalten zum Wischen, Grenzen der kleineren Basisgröße */
.tc-move { display: none; }
@media (max-width: 899px), (pointer: coarse) {
  .tc-move { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -14px -11px -14px 0; border: 0; background: none; color: var(--muted); }
}
@media (max-width: 899px) {
  .board, .board.scroll { display: flex; gap: 10px; padding: 2px 12px 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 12px; overscroll-behavior-x: contain; scrollbar-width: none; }
  /* overflow-x: Spalten sind sonst durch overflow-y auch seitlich scrollbar (1 px Überhang) und schlucken die erste Wischgeste (LIEFERUNG-21a) */
  .board .colm { flex: 0 0 min(80vw, 300px); scroll-snap-align: start; padding-top: 0; overflow-x: hidden; }
  .board .colh { position: sticky; top: 0; z-index: 1; margin: 0 -8px; padding: 8px 12px 6px; background: color-mix(in srgb, var(--sheet-2) 60%, var(--paper)); }
  .fv-board .board .colh { position: static; background: none; }
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), textarea, select:not(.chathead select) { font-size: 16px !important; }
  /* Tippflächen: kleine Knöpfe behalten ihre Größe, die Fläche zum Tippen ist unsichtbar 44 px hoch */
  :where(.btn, .iconbtn, .linkbtn, .chip, .pswitch, .me-btn, .em-listen) { position: relative; }
  :is(.btn, .iconbtn, .linkbtn, .chip, .pswitch, .me-btn, .em-listen)::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
  .chips { padding-block: 10px; margin-block: -10px; }
  .tabs button, .ctxmenu .ctx-item, .lrow { min-height: 44px; }
  .ctx-item[aria-checked="true"] { background: var(--sheet-2); font-weight: 600; }
}

/* Ticket schließen mit Grund (LIEFERUNG-22) */
.cr { font-size: max(var(--min-text), .75rem); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 .375rem; white-space: nowrap; }
.cr a { color: var(--blue-text); }
.cl-reasons { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; }
.cl-reasons legend { font-size: max(var(--min-text), .8125rem); color: var(--muted); padding: 0; margin-bottom: .25rem; }
dialog .cl-reasons label { display: flex; align-items: center; gap: .625rem; min-height: 44px; margin: 0; font-size: .9375rem; color: var(--ink); }
dialog.cl-dlg textarea { width: 100%; border: 1px solid var(--control-border); border-radius: 4px; padding: .625rem .75rem; background: var(--paper-raised); color: var(--ink); resize: vertical; }
.tjump { gap: .25rem; color: var(--muted); }
.tjump svg.i { width: 17px; height: 17px; }

/* Handy: Thread als normaler Abschnitt am Ende des Tickets, eine Scrollfläche (LIEFERUNG-22) */
@media (max-width: 899px) {
  .dock.thread-inline { border-top: 1px solid var(--line); background: none; }
  .thread-inline .dh { border-bottom: 0; padding: .625rem 1rem .25rem; }
  .thread-inline .tlwrap { flex: none; }
  .thread-inline .timeline { flex: none; overflow: visible; padding: .375rem 1rem .5rem; }
  .thread-inline .dock-empty { margin: 0; }
  .thread-inline .composer { padding: .25rem .625rem calc(.75rem + env(safe-area-inset-bottom)); }
}

/* Vorschläge beim Schreiben (LIEFERUNG-23) */
.ref-suggest { max-width: min(360px, calc(100vw - 16px)); }
.ref-suggest .ctx-item { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
.ref-suggest .ctx-item[aria-selected="true"] { background: var(--sheet-2); }
.ref-suggest small { color: var(--muted); font-size: max(var(--min-text), .75rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
