/* kantham.ch – Rack-Design
   Idee: alles sieht aus wie die Front eines Serverschranks.
   Jede Zeile ist eine «Höheneinheit» mit Status-LED. */

:root {
  --rack: #1c2730;
  --panel: #243340;
  --panel-2: #2b3c4a;
  --line: #3a4d5c;
  --text: #e8eef1;
  --muted: #93a7b3;
  --amber: #ffb547;
  --amber-dim: #8a6427;
  --ok: #5ed493;
  --bad: #ff6f61;
  --off: #4a5c69;
  --display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r-unit: 6px;
  --r-ctrl: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--rack);
  color: var(--text);
  font: 16px/1.55 var(--body);
}
a { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ---------- LEDs ---------- */
.led {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--off); flex: none;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.4);
}
.led.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.led.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.led.bad { background: var(--bad); box-shadow: 0 0 8px var(--bad); }

/* ---------- Marke + Lüftungsschlitze ---------- */
.wordmark { font: 600 18px var(--display); color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.vents { display: flex; gap: 3px; }
.vents i { width: 3px; height: 22px; border-radius: 2px; background: #1a252e; }

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center;
  padding: calc(20px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right))
           calc(20px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}
/* Login-Karte als Rack-Einschub: Lochreihen links/rechts wie beim Schrank */
.login {
  width: 100%; max-width: 400px; position: relative;
  background: linear-gradient(var(--panel), #213039); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 34px 30px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.login::before, .login::after {
  content: ""; position: absolute; top: 16px; bottom: 16px; width: 6px;
  background: radial-gradient(circle, #0f171d 1.6px, transparent 2px) 0 0 / 6px 14px repeat-y;
}
.login::before { left: 11px; }
.login::after { right: 11px; }
.login h1 { font: 600 26px var(--display); margin: 0 0 6px; display: flex; gap: 10px; align-items: center; }
.login-stack { width: 100%; max-width: 400px; }
.login .login-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.login .login-head .vents i { height: 18px; }
.login-brand { font: 600 20px var(--display); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px;
  margin: 0 4px 16px; }
.login-foot { color: var(--muted); font-size: 13.5px; text-align: center; margin: 16px 0 0; }
@media (max-width: 420px) {
  .login { padding: 22px 26px 26px; }
  .login::before { left: 8px; } .login::after { right: 8px; }
  .login-wrap { align-items: start; padding-top: calc(36px + env(safe-area-inset-top)); }
  .login .btn.block, .login .check { min-height: 48px; }
}
.login p { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.login.wide { max-width: 440px; }
.login .remember { margin-top: 18px; }
.hint { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.steps { color: var(--muted); font-size: 15px; padding-left: 20px; margin: 0 0 18px; }
.steps li { margin: 4px 0; }
.steps b { color: var(--text); font-weight: 600; }

/* 2FA: QR braucht hellen Grund, damit jede Kamera ihn liest */
.qr { background: #fff; border-radius: 12px; padding: 10px; width: min(240px, 100%); margin: 6px auto 4px; }
.qr svg { display: block; width: 100%; height: auto; }
.secret { display: flex; gap: 8px; align-items: center; background: #18222a; border: 1px solid var(--line);
  border-radius: var(--r-ctrl); padding: 6px 6px 6px 12px; }
.secret code { flex: 1; font: 15px/1.5 var(--mono); letter-spacing: .04em; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }

/* ---------- Formulare ---------- */
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=number], input[type=url], textarea, select {
  width: 100%; background: #18222a; border: 1px solid var(--line); border-radius: var(--r-ctrl);
  padding: 11px 12px; font-size: 16px;
}
textarea { font: 13.5px/1.5 var(--mono); min-height: 220px; resize: vertical; tab-size: 4; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--amber); }
.check { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 15px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--amber); flex: none; margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-ctrl);
  padding: 10px 16px; cursor: pointer; font-weight: 500; text-decoration: none; color: var(--text);
  min-height: 42px;
}
.btn:hover { border-color: #56707f; }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #2a1c05; }
.btn.primary:hover { background: #ffc46d; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn.small { padding: 6px 11px; min-height: 34px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.block { width: 100%; margin-top: 22px; }

.error { background: rgba(255,111,97,.12); border: 1px solid rgba(255,111,97,.4); color: #ffc1ba;
  border-radius: var(--r-ctrl); padding: 10px 12px; font-size: 14.5px; white-space: pre-wrap; }
.note { background: rgba(255,181,71,.1); border: 1px solid rgba(255,181,71,.35); color: #ffdca6;
  border-radius: var(--r-ctrl); padding: 10px 12px; font-size: 14.5px; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.side {
  border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px; background: #19232b;
}
.side .wordmark { padding: 4px 10px 18px; display: block; }
.side a.nav {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-ctrl);
  color: var(--muted); text-decoration: none; font-size: 15.5px;
}
.side a.nav:hover { color: var(--text); background: var(--panel); }
.side a.nav.active { color: var(--text); background: var(--panel); }
.side a.nav.active .led { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.side .spacer { flex: 1; }
.side .who { color: var(--muted); font-size: 14px; padding: 8px 12px; }
.side form button { background: none; border: 0; color: var(--muted); padding: 8px 12px; cursor: pointer; font-size: 14px; }
.side form button:hover { color: var(--text); }

main { padding: 28px 32px 80px; max-width: 1180px; width: 100%; }
main h1 { font: 650 32px/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 6px; }
main .lead { color: var(--muted); margin: 0 0 24px; max-width: 70ch; }
main h2 { font: 600 19px var(--display); margin: 32px 0 12px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.toolbar .grow { flex: 1; }

/* Zeilen im Rack-Stil */
.rows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #1f2b35; }
.row {
  display: grid; grid-template-columns: 9px minmax(0, 1.2fr) minmax(0, 1fr) 190px; gap: 14px; align-items: center;
  padding: 13px 16px; border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row .name { font-weight: 600; overflow-wrap: anywhere; }
.row .sub { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.row .ip { font: 13.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.row .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-block; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 1px; }

.editor { padding: 14px 16px 16px; border-top: 1px dashed var(--line); background: #1a252e; }
.editor .toolbar { margin: 10px 0 0; }

/* Kennzahlen */
.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 8px; }
.gauge { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.gauge .k { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.gauge .v { font: 600 28px/1.2 var(--display); margin-top: 4px; overflow-wrap: break-word; }
.gauge .s { overflow-wrap: anywhere; }
.gauge .s { color: var(--muted); font-size: 13.5px; }
.meter { height: 6px; background: #18222a; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--amber); border-radius: 3px; }

/* Statistik */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-ctrl); overflow: hidden; }
.seg button { background: none; border: 0; padding: 8px 14px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--panel-2); color: var(--text); }
.chart { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.chart svg { display: block; width: 100%; height: 160px; }
.bars .bar { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 70px; gap: 12px; align-items: center; padding: 7px 0; }
.bars .bar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.bars .track { height: 10px; background: #18222a; border-radius: 5px; overflow: hidden; }
.bars .track i { display: block; height: 100%; background: var(--amber); border-radius: 5px; }
.bars .track i.err { background: var(--bad); }
.bars .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.plain td, table.plain th { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); }
table.plain th { color: var(--muted); font-weight: 500; border-top: 0; }
table.plain td.n { text-align: right; font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* PC */
.pc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; max-width: 560px; }
.pc .state { display: flex; align-items: center; gap: 12px; font: 600 22px var(--display); }
.pc .state .led { width: 14px; height: 14px; }
.pc .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Claude */
.chat { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; height: calc(100vh - 150px); min-height: 480px; }
.sessions { border: 1px solid var(--line); border-radius: 12px; overflow: auto; background: #1f2b35; }
.sessions button {
  display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line);
  padding: 11px 13px; cursor: pointer; color: var(--text);
}
.sessions button:first-child { border-top: 0; }
.sessions button.on { background: var(--panel-2); }
.sessions .t { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sessions .d { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.convo { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: #1f2b35; min-height: 0; }
.msgs { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 82%; padding: 11px 14px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.msg.user { align-self: flex-end; background: #3a3022; border: 1px solid var(--amber-dim); }
.msg.assistant { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); }
.msg.tool { align-self: flex-start; background: none; border: 1px dashed var(--line); color: var(--muted); font: 13px/1.5 var(--mono); }
.msg.err { align-self: flex-start; background: rgba(255,111,97,.1); border: 1px solid rgba(255,111,97,.4); }
.msg pre { background: #16202760; padding: 8px 10px; border-radius: 8px; overflow: auto; font: 13px/1.5 var(--mono); white-space: pre; }
.msg code { font: 13.5px var(--mono); background: #16202760; padding: 1px 5px; border-radius: 5px; }
.msg .meta { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.compose { border-top: 1px solid var(--line); padding: 12px; display: grid; gap: 10px; }
.compose textarea { min-height: 70px; font: 15px/1.5 var(--body); }
.compose .toolbar { margin: 0; }
.thinking { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
/* Dateien anhängen: Chips über dem Eingabefeld wie kleine Einschub-Etiketten */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 34px;
  background: #18222a; border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 14px; }
.chip .ico { flex: none; color: var(--amber); width: 15px; height: 15px; }
.chip .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip .sz { color: var(--muted); font-size: 12.5px; flex: none; font-variant-numeric: tabular-nums; }
.chip .x { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; color: var(--muted);
  font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.chip .x:hover { color: var(--bad); background: rgba(255,111,97,.12); }
.chip.up { border-style: dashed; }
.chip.up .ico { animation: blink 1s infinite; }
.chips.in-msg { margin-bottom: 8px; white-space: normal; }
.chips.in-msg .chip { padding-right: 10px; background: #16202760; border-color: var(--amber-dim); }
.btn.clip .ico { color: var(--amber); }
.btn.on { border-color: var(--amber); }
.convo { position: relative; }
.drophint { display: none; position: absolute; inset: 8px; border: 2px dashed var(--amber); border-radius: 10px;
  background: rgba(28,39,48,.88); color: var(--amber); font: 600 18px var(--display); place-items: center; z-index: 5; pointer-events: none; }
.convo.drop .drophint { display: grid; }
main h1 #inbox-toggle, main h1 #ses-toggle { margin-left: 8px; vertical-align: middle; }
.inbox { border: 1px solid var(--line); border-radius: 12px; background: #1f2b35; margin-bottom: 16px; max-height: 45vh; overflow: auto; }
.inbox-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.inbox-head .sub { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.inbox .row:first-of-type { border-top: 0; }

/* Netzwerk */
.row .chk { display: inline-flex; gap: 7px; align-items: center; font: 13.5px var(--body); }
.prot-hint { flex-basis: 100%; text-align: right; font-size: 12.5px; }
.warn-risky .check { margin-top: 6px; color: #ffdca6; }
.thinking .led { animation: blink 1s infinite; background: var(--amber); }
@keyframes blink { 50% { opacity: .25; } }

.empty { color: var(--muted); padding: 22px; text-align: center; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  max-width: min(560px, calc(100vw - 32px)); z-index: 50; white-space: pre-wrap; font-size: 15px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.5);
}
.toast.ok { border-color: rgba(94,212,147,.5); }
.toast.bad { border-color: rgba(255,111,97,.6); }

/* Einstellungen */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 20px; min-width: 0; }
.card h2 { margin: 0 0 4px; display: flex; gap: 10px; align-items: center; }
.card > p { color: var(--muted); margin: 0 0 6px; font-size: 15px; }
.card .toolbar { margin: 16px 0 0; }
.actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); column-gap: 14px; }
.keybox { margin-top: 14px; }
.keybox .secret code { font-size: 13.5px; }
.copy-line { display: flex; gap: 8px; align-items: center; margin: 6px 0; min-width: 0; }
.copy-line code { flex: 1; min-width: 0; font: 13.5px/1.45 var(--mono); background: #18222a; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.copy-line .k { color: var(--muted); font-size: 13.5px; width: 70px; flex: none; }
.guide { counter-reset: step; }
.guide ol { padding-left: 22px; margin: 8px 0 0; }
.guide li { margin: 8px 0; color: var(--text); }
.guide li .sub, .guide .sub { color: var(--muted); font-size: 14px; }
.guide b { font-weight: 600; }
.shortcut { border-top: 1px solid var(--line); padding: 16px 0 6px; }
.shortcut:first-of-type { border-top: 0; }
.shortcut h3 { font: 600 17px var(--display); margin: 0 0 2px; display: flex; gap: 10px; align-items: center; }
.siri { color: var(--amber); font-size: 14px; }
details.more summary { cursor: pointer; color: var(--amber); min-height: 44px; display: flex; align-items: center; }

@media (max-width: 900px) {
  :root { --nav-h: calc(62px + env(safe-area-inset-bottom)); }
  .admin { grid-template-columns: 1fr; }
  .side {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; z-index: 40;
    flex-direction: row; justify-content: space-around; gap: 0;
    padding: 4px calc(2px + env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) calc(2px + env(safe-area-inset-left));
    border-right: 0; border-top: 1px solid var(--line);
    background: rgba(25, 35, 43, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .side .wordmark, .side .spacer, .side .who, .side form { display: none; }
  .side a.nav {
    flex: 1 1 0; min-width: 0; min-height: 54px; flex-direction: column; justify-content: center; gap: 6px;
    padding: 6px 1px; font-size: 11px; line-height: 1.1; text-align: center;
  }
  .side a.nav .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side a.nav .lbl[data-short] { font-size: 0; }
  .side a.nav .lbl[data-short]::after { content: attr(data-short); font-size: 11px; }
  .side a.nav:hover { background: none; }
  @media (max-width: 430px) {
    .side a.nav { font-size: 10.5px; letter-spacing: -.01em; }
    .side a.nav .lbl[data-short]::after { font-size: 10.5px; }
  }
  .side a.nav.active { background: none; }

  main {
    padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right))
             calc(var(--nav-h) + 28px) calc(16px + env(safe-area-inset-left));
  }
  main h1 { font-size: 28px; }
  main .lead { font-size: 15px; margin-bottom: 18px; }

  /* Touch-Flächen mind. 44 px, Eingaben 16 px (kein Zoom auf dem iPhone) */
  .btn, .btn.small { min-height: 44px; }
  .btn.small { padding: 8px 14px; font-size: 15px; }
  input[type=text], input[type=password], input[type=number], input[type=url], textarea, select { font-size: 16px; min-height: 44px; }
  textarea { font-size: 16px; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; min-height: 44px; padding: 8px 4px; }
  .toolbar .grow { display: none; }
  .toolbar > .btn { flex: 1 1 auto; }

  /* Zeilen (Proxy, Container): Name oben, Details und Knöpfe darunter eingerückt */
  .row { grid-template-columns: 9px minmax(0, 1fr); gap: 6px 12px; padding: 14px 14px; align-items: start; }
  .row > .led { margin-top: 8px; }
  .row > * + * + * { grid-column: 2; }
  .row .name { font-size: 16px; }
  .row .ip { font-size: 13.5px; line-height: 1.9; }
  .row .acts { justify-content: flex-start; gap: 8px; margin-top: 4px; }
  .row .acts .btn { flex: 1 1 auto; }
  .editor { padding: 12px; }

  .two { grid-template-columns: 1fr; }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gauge { padding: 12px 14px; }
  .gauge .v { font-size: 24px; }
  .bars .bar { grid-template-columns: minmax(0, 1fr) 70px; }
  .bars .track { grid-column: 1 / -1; grid-row: 2; }
  table.plain { font-size: 14px; }
  table.plain td:first-child { overflow-wrap: anywhere; }
  .pc { padding: 18px; }
  .pc .acts .btn { flex: 1 1 auto; }
  .card { padding: 16px; }
  .copy-line { flex-wrap: wrap; }
  .copy-line .k { width: 100%; }
  .toast { bottom: calc(var(--nav-h) + 12px); }

  /* Claude füllt den Bildschirm, Eingabefeld bleibt über der Tastatur */
  body.v-claude { overflow: hidden; }
  body.v-claude main {
    position: fixed; left: 0; right: 0; top: var(--vv-top, 0px); height: var(--vv-h, 100dvh);
    display: flex; flex-direction: column; max-width: none;
    padding: calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right))
             calc(var(--nav-h) + 8px) calc(8px + env(safe-area-inset-left));
  }
  body.v-claude main > h1 { font-size: 22px; margin: 2px 4px 8px; display: flex; align-items: center; gap: 10px; }
  body.v-claude main > .lead { display: none; }
  body.kb .side { display: none; }
  body.kb.v-claude main { padding-bottom: 6px; }
  .chat { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; height: auto; }
  .sessions { display: none; max-height: 40vh; flex: none; }
  .chat.show-ses .sessions { display: block; }
  .sessions button { min-height: 48px; }
  .convo { flex: 1; min-height: 0; height: auto; }
  .msgs { padding: 12px; gap: 10px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .msg { max-width: 94%; font-size: 15.5px; }
  .compose { padding: 8px; gap: 8px; }
  .compose textarea { min-height: 44px; height: 44px; max-height: 30vh; resize: none; font: 16px/1.4 var(--body); padding: 10px 12px; }
  .compose .toolbar { flex-wrap: nowrap; gap: 6px; }
  .compose .toolbar #mh { display: none; }
  .compose .toolbar select { flex: 1 1 auto; min-width: 0; width: auto; }
  .compose .toolbar .btn { flex: none; padding: 8px 12px; }
  .btn.clip { width: 44px; padding: 0; }
  .btn.clip .clip-lbl { display: none; }
  .chip { min-height: 36px; }
  body.v-claude .inbox { flex: none; max-height: 40vh; margin-bottom: 8px; }
  main h1 #inbox-toggle, main h1 #ses-toggle { margin-left: 0; }
  .prot-hint { text-align: left; }
}
@media (min-width: 901px) {
  #ses-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .thinking .led { animation: none; }
}

/* Werbeblocker */
.row.ab { grid-template-columns: 9px minmax(0, 1fr) auto; }
@media (max-width: 900px) { .row.ab { grid-template-columns: 9px minmax(0, 1fr); } }
