/* AVA iOS Klick-Dummy
   Werte 1:1 aus App/Design/Tokens.swift und App/Assets.xcassets/Colors (Hell/Dunkel).
   Layout: ein iPhone (393 x 852 pt) mittig, darüber eine schmale Leiste für Szenen und Darstellung. */

:root {
  /* Seite um das Telefon (nicht Teil der App) */
  --page-bg: #ececec;
  --page-fg: #242424;
  --page-subtle: #6b6b6b;
  --page-chip: #ffffff;
  --page-line: rgba(0, 0, 0, 0.1);
  --bezel: #1b1b1b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-bg: #050505; --page-fg: #ececec; --page-subtle: #a0a0a0; --page-chip: #1e1e1e; --page-line: rgba(255,255,255,0.12); --bezel: #2a2a2a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page-bg: #050505; --page-fg: #ececec; --page-subtle: #a0a0a0; --page-chip: #1e1e1e; --page-line: rgba(255,255,255,0.12); --bezel: #2a2a2a;
  color-scheme: dark;
}

/* App-Tokens (Hell = "Any") */
.phone {
  --background: #ffffff;
  --surface: #f5f5f5;
  --surface-raised: #ffffff;
  --surface-card: #f5f5f5;
  --field-fill: #ffffff;
  --surface-stack: #e4e4e4;
  --foreground: #242424;
  --subtle: #6b6b6b;
  --brand: #242424;
  --on-brand: #ffffff;
  --brand-tint: rgba(36, 36, 36, 0.08);
  --field-stroke: #8c8c8c;
  --separator: rgba(209, 209, 209, 0.6);
  --success: #0e700e;
  --success-bg: #f1faf1;
  --danger: #b10e1c;
  --danger-bg: #fdf3f4;
  --nonbillable-bg: rgba(232, 145, 45, 0.08);
  --nonbillable-text: #8f5a12;
  --score-green: #0e700e;
  --score-amber: #7a6000;
  --score-red: #b10e1c;
  --chart-1: #6b3dbf;
  --chart-2: #9e6ee5;
  --chart-3: #c070ef;
  --skeleton: rgba(36, 36, 36, 0.07);
  --scrim: rgba(0, 0, 0, 0.18);
  --segment-thumb: #ffffff;
  --placeholder: rgba(60, 60, 67, 0.3);
  /* Glas (iOS 26) */
  --glass: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(0, 0, 0, 0.1);
  --glass-hi: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
  --alert-bg: rgba(242, 242, 247, 0.92);
  --switch-off: rgba(120, 120, 128, 0.16);
}
.phone.dark {
  --background: #121212;
  --surface: #1a1a1a;
  --surface-raised: #1e1e1e;
  --surface-card: #262626;
  --field-fill: #303030;
  --surface-stack: #2c2c2c;
  --foreground: #ececec;
  --subtle: #a0a0a0;
  --brand: #e8e8e8;
  --on-brand: #121212;
  --brand-tint: rgba(232, 232, 232, 0.14);
  --field-stroke: #767676;
  --separator: #3a3a3a;
  --success: #3dd68c;
  --success-bg: rgba(61, 214, 140, 0.12);
  --danger: #ff6b78;
  --danger-bg: rgba(177, 14, 28, 0.22);
  --nonbillable-bg: rgba(232, 145, 45, 0.14);
  --nonbillable-text: #e8a85a;
  --score-green: #3dd68c;
  --score-amber: #e3b341;
  --score-red: #ff6b78;
  --chart-1: #fa75f8;
  --chart-2: #e070e8;
  --chart-3: #b88aef;
  --skeleton: rgba(255, 255, 255, 0.07);
  --scrim: rgba(0, 0, 0, 0.5);
  --segment-thumb: #3a3a3a;
  --placeholder: rgba(235, 235, 245, 0.3);
  --glass: rgba(44, 44, 46, 0.6);
  --glass-edge: rgba(255, 255, 255, 0.1);
  --glass-hi: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --alert-bg: rgba(44, 44, 46, 0.92);
  --switch-off: rgba(120, 120, 128, 0.32);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: -apple-system, "SF Pro Text", "SF Pro", "Inter", system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
button:focus-visible, [tabindex]:focus-visible, input:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }
svg { display: block; flex: none; }

/* ---------- Seite ---------- */
.shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-block: 12px 20px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.shellbar {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 13px;
}
.shellbar h1 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.shellbar .sub { color: var(--page-subtle); }
.shellbar .grow { flex: 1 1 auto; }
.seg { display: inline-flex; background: var(--page-line); border-radius: 999px; padding: 2px; }
.seg button { padding: 5px 11px; border-radius: 999px; color: var(--page-subtle); font-weight: 500; font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--page-chip); color: var(--page-fg); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.shellbtn { padding: 6px 12px; border-radius: 999px; background: var(--page-chip); border: 1px solid var(--page-line); font-weight: 500; font-size: 13px; }
.stage { width: 100%; display: flex; justify-content: center; }
.device-box { position: relative; }
.device {
  position: absolute; left: 0; top: 0;
  width: 417px; height: 876px;
  padding: 12px;
  border-radius: 67px;
  background: var(--bezel);
  box-shadow: 0 30px 60px rgba(0,0,0,.25), inset 0 0 0 2px rgba(255,255,255,.06);
  transform-origin: top left;
}
.foot { max-width: 640px; text-align: center; color: var(--page-subtle); font-size: 12px; line-height: 1.5; }

/* ---------- Telefon ---------- */
.phone {
  position: relative;
  width: 393px; height: 852px;
  border-radius: 55px;
  overflow: hidden;
  background: var(--background);
  color: var(--foreground);
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.02em;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
}
.phone input, .phone textarea { user-select: text; -webkit-user-select: text; }
.statusbar {
  position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 34px 0 50px; pointer-events: none;
  font-size: 17px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--foreground);
}
.statusbar .icons { display: flex; gap: 6px; align-items: center; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 124px; height: 36px; border-radius: 20px; background: #000; z-index: 61; pointer-events: none; }
.homebar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 139px; height: 5px; border-radius: 3px; background: var(--foreground); z-index: 90; pointer-events: none; }
.app { position: absolute; inset: 0; }

/* Typografie (tokens.md) */
.t-metric { font-size: 34px; line-height: 41px; font-weight: 600; letter-spacing: -0.02em; }
.t-timer { font-size: 48px; line-height: 56px; font-weight: 300; letter-spacing: -0.01em; }
.t-title { font-size: 20px; line-height: 25px; font-weight: 600; letter-spacing: -0.02em; }
.t-head { font-size: 17px; line-height: 22px; font-weight: 600; }
.t-body { font-size: 17px; line-height: 22px; }
.t-sec { font-size: 15px; line-height: 20px; letter-spacing: -0.012em; }
.t-status { font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: -0.012em; }
.t-hint { font-size: 13px; line-height: 18px; letter-spacing: -0.004em; }
.t-hint-s { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: -0.004em; }
.t-bar { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.w5 { font-weight: 500; } .w6 { font-weight: 600; }
.subtle { color: var(--subtle); }
.fg { color: var(--foreground); }
.clamp1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Glas */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: var(--glass-shadow), inset 0 0 0 0.5px var(--glass-edge), inset 0 1px 0 var(--glass-hi);
}

/* ---------- Anmeldung, Sperre ---------- */
.center-screen {
  position: absolute; inset: 0; padding: 59px 16px 58px;
  display: flex; flex-direction: column; align-items: stretch; background: var(--background);
}
.center-screen .spacer { flex: 1 1 32px; min-height: 32px; }
.mark-head { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.badge-env { font-size: 12px; line-height: 16px; font-weight: 600; padding: 0 10px; min-height: 24px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--surface); }
.primary {
  width: 100%; min-height: 56px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 17px; font-weight: 600; color: var(--on-brand); background: var(--brand); transition: transform .12s, opacity .12s;
}
.primary:active { transform: scale(.97); opacity: .85; }
.primary:disabled { background: var(--brand-tint); color: var(--subtle); transform: none; opacity: 1; }
.primary.destructive { background: var(--danger); color: #fff; }
.textbtn { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; color: var(--foreground); }
.textbtn:active { opacity: .6; }
.login-hint { font-size: 13px; line-height: 18px; color: var(--subtle); text-align: center; padding: 8px 0; }
.capsule-field {
  width: 100%; min-height: 48px; border-radius: 999px; padding: 0 20px; font-size: 17px; letter-spacing: -0.02em;
  background: var(--field-fill); color: var(--foreground); border: 1px solid var(--field-stroke); outline: none;
}
.capsule-field:focus { border: 1.5px solid var(--brand); }
.capsule-field::placeholder { color: var(--placeholder); }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Pager und Tab-Leiste ---------- */
.pager {
  position: absolute; inset: 0;
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.pager::-webkit-scrollbar { display: none; }
.pager.locked { overflow-x: hidden; }
.page {
  flex: 0 0 393px; width: 393px; height: 852px; scroll-snap-align: start; scroll-snap-stop: always;
  position: relative; background: var(--background);
  display: flex; flex-direction: column;
  padding-top: 59px; /* Statusleiste */
}
.bottom-stack {
  position: absolute; left: 0; right: 0; bottom: 21px; z-index: 30;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.bottom-stack > * { pointer-events: auto; }
.tabbar { width: 361px; height: 62px; border-radius: 999px; padding: 4px; position: relative; }
.tabbar .items { position: relative; display: flex; height: 54px; }
.tabbar .pill { position: absolute; top: 0; left: 0; height: 54px; border-radius: 27px; background: var(--brand-tint); pointer-events: none; }
.tabbar .item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--subtle); position: relative; z-index: 1; }
.tabbar .item.on { color: var(--foreground); }
.tabbar .item .lbl { font-size: 10px; line-height: 12px; font-weight: 600; letter-spacing: 0; }
.tabbar .ico { position: relative; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.tab-badge { position: absolute; left: 16px; top: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--on-brand); font-size: 11px; line-height: 18px; font-weight: 600; text-align: center; letter-spacing: 0; font-variant-numeric: tabular-nums; }

.timerbar { width: 361px; height: 48px; border-radius: 999px; padding: 0 4px 0 16px; display: flex; align-items: center; gap: 12px; }
.timerbar .main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 100%; }
.timerbar .clock { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stopbtn { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; }
.stopbtn span { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; }

.notice { width: 361px; min-height: 48px; border-radius: 16px; display: flex; align-items: center; gap: 12px; padding: 0 4px 0 16px; animation: up .35s cubic-bezier(.2,.9,.3,1); }
.notice .txt { flex: 1; font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: -0.012em; padding: 12px 0; }
.notice.no-undo { padding-right: 16px; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Gemeinsame Teile ---------- */
.iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.iconbtn > span { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--foreground); }
.iconbtn.big > span { width: 44px; height: 44px; }
.iconbtn.danger > span { background: var(--danger-bg); color: var(--danger); }
.iconbtn.primary > span { background: var(--brand); color: var(--on-brand); }
.iconbtn.s52 { width: 52px; height: 52px; } .iconbtn.s52 > span { width: 52px; height: 52px; }
.card { background: var(--surface); border-radius: 16px; }
.scroll { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; }
.scroll::-webkit-scrollbar { display: none; }
.sk { background: var(--skeleton); border-radius: 6px; }

/* ---------- Erfassen ---------- */
.cap-head { height: 44px; position: relative; display: flex; align-items: center; justify-content: center; margin: 0 16px; }
.cap-head .prof { position: absolute; right: -4px; top: 0; }
.modepick { align-self: center; display: flex; padding: 4px; border-radius: 999px; position: relative; margin-top: 8px; }
.modepick button { position: relative; z-index: 1; min-width: 96px; min-height: 36px; padding: 0 16px; font-size: 15px; font-weight: 500; letter-spacing: -0.012em; border-radius: 999px; text-align: center; }
.modepick button.on { font-weight: 600; }
.modepick .thumb { position: absolute; top: 4px; height: 36px; border-radius: 999px; background: var(--brand-tint); transition: left .35s cubic-bezier(.3,1.2,.4,1), width .35s; }
.cap-body { flex: 1; min-height: 0; position: relative; margin-top: 8px; }
.mode-layer { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; transition: opacity .25s; }
.mode-layer.hidden { opacity: 0; pointer-events: none; }
.msgs { flex: 1; min-height: 0; padding: 8px 16px; display: flex; flex-direction: column; gap: 12px; }
.msgs .first { margin-top: auto; }
.bubble-user { align-self: flex-end; max-width: calc(100% - 32px); background: var(--surface); border-radius: 20px; padding: 12px 16px; white-space: pre-wrap; }
.msg-ai { white-space: pre-wrap; }
.msg-ok { display: flex; gap: 8px; align-items: baseline; font-weight: 600; }
.msg-ok svg { color: var(--success); transform: translateY(3px); }
.waiting { font-size: 13px; color: var(--subtle); display: flex; gap: 4px; align-items: center; }
.steps { display: flex; flex-direction: column; gap: 4px; }
.steps div { font-size: 15px; line-height: 20px; letter-spacing: -0.012em; animation: up .35s; }
.steps .old { color: var(--subtle); opacity: .6; }
.ctx { align-self: flex-end; margin-left: 32px; background: var(--surface); border-radius: 16px; padding: 12px; display: flex; gap: 8px; }
.chips-s { padding: 0 16px; display: flex; flex-direction: column; align-items: flex-start; }
.chip-s { min-height: 44px; display: flex; align-items: center; }
.chip-s span { display: inline-block; font-size: 13px; line-height: 18px; padding: 9px 14px; border-radius: 18px; background: var(--surface); text-align: left; }
.chips-s .chip-s { transition: transform .5s cubic-bezier(.25,.9,.3,1), opacity .4s; }
.chips-s.folded { pointer-events: none; }
.chips-s.folded .chip-s { opacity: 0; }
.matterchips { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.matterchips button { min-height: 44px; display: flex; align-items: center; }
.matterchips span { min-height: 36px; display: flex; align-items: center; padding: 8px 12px; border-radius: 18px; background: var(--surface); font-size: 15px; font-weight: 500; line-height: 20px; letter-spacing: -0.012em; }
.matterchips .other span { background: none; box-shadow: inset 0 0 0 1px var(--foreground); }
.rtable { display: flex; flex-direction: column; gap: 8px; }
.rtable .box { background: var(--surface); border-radius: 16px; padding: 12px; overflow-x: auto; }
.rtable table { border-collapse: collapse; width: 100%; }
.rtable th { font-size: 13px; font-weight: 600; color: var(--subtle); text-align: left; padding: 0 12px 8px 0; border-bottom: 1px solid var(--separator); }
.rtable td { font-size: 15px; line-height: 20px; letter-spacing: -0.012em; padding: 8px 12px 0 0; vertical-align: top; }
.rtable .m { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 0; }

.capsule { margin: 0 16px; min-height: 56px; border-radius: 28px; padding: 0 6px; display: flex; align-items: flex-end; position: relative; }
.capsule .cbtn { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; flex: none; }
.capsule .cbtn > span { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.capsule .cbtn.brand > span { background: var(--brand); color: var(--on-brand); }
.capsule .cbtn.tint > span { background: var(--brand-tint); }
.capsule .cbtn.locked > span { background: var(--brand-tint); color: var(--subtle); }
.capsule .mid { flex: 1; min-width: 0; min-height: 56px; position: relative; display: flex; align-items: center; }
.capsule textarea {
  width: 100%; border: 0; outline: 0; background: transparent; resize: none; color: var(--foreground);
  font: inherit; font-size: 17px; line-height: 22px; letter-spacing: -0.02em; padding: 17px 0; max-height: 144px; overflow-y: auto; scrollbar-width: none;
}
.capsule .ph { position: absolute; left: 0; right: 0; top: 17px; color: var(--placeholder); pointer-events: none; white-space: nowrap; overflow: hidden; }
.capsule .bars { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 0 4px; }
.capsule .bars i { display: block; width: 3px; border-radius: 2px; background: var(--foreground); height: 4px; transition: height .12s; }
.dock { margin: 0 16px; min-height: 56px; border-radius: 999px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 16px; animation: fadein .3s; }
.dock .info { flex: 1; min-width: 0; min-height: 56px; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-align: left; }
.dock.timer { padding: 0 16px 0 6px; }
.incomplete { display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 16px; font-weight: 600; }
.ring { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--foreground); flex: none; }
.acc { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; flex: none; }
.acc > span { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand); color: var(--on-brand); }
.acc.locked > span { background: var(--brand-tint); color: var(--subtle); }
.pullhint { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 13px; color: var(--subtle); pointer-events: none; display: flex; justify-content: center; gap: 4px; align-items: center; }

/* Formular */
.deck { flex: 1; min-height: 0; position: relative; overflow: hidden; padding: 16px 16px; display: flex; flex-direction: column; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }
.fcard { background: var(--surface-card); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.fcard.nb { background-image: linear-gradient(var(--nonbillable-bg), var(--nonbillable-bg)); }
.fcard .q { display: flex; gap: 8px; align-items: baseline; }
.fcard .q .t-head { flex: 1; }
.deck .fcard.enter-up { animation: cardup .45s cubic-bezier(.2,.85,.25,1); }
.deck .fcard.enter-down { animation: carddown .45s cubic-bezier(.2,.85,.25,1); }
.deck .fcard.fly-right { transition: transform .45s cubic-bezier(.4,0,.6,1), opacity .45s; transform: translateX(460px) rotate(5deg); opacity: 0; }
.deck .fcard.fly-left { transition: transform .45s cubic-bezier(.4,0,.6,1), opacity .45s; transform: translateX(-460px) rotate(-5deg); opacity: 0; }
.deck .fcard.enter-left { animation: cardleft .45s cubic-bezier(.2,.85,.25,1); }
@keyframes cardup { from { transform: translateY(110%); } to { transform: none; } }
@keyframes carddown { from { transform: translateY(-24px) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cardleft { from { transform: translateX(-420px); opacity: 0; } to { transform: none; opacity: 1; } }
.dropdown { min-height: 44px; padding: 8px 12px; border-radius: 8px; background: var(--field-fill); box-shadow: inset 0 0 0 1px var(--separator); display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; }
.dropdown .v { flex: 1; min-width: 0; }
.fieldtitle { font-size: 15px; line-height: 20px; color: var(--subtle); padding: 0 4px; letter-spacing: -0.012em; }
.chipgrid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 8px; }
.fchip { min-height: 44px; display: flex; align-items: center; }
.fchip span { width: 100%; min-height: 40px; border-radius: 999px; background: var(--field-fill); display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 15px; font-weight: 500; letter-spacing: -0.012em; font-variant-numeric: tabular-nums; padding: 0 8px; white-space: nowrap; }
.fchip.on span { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.desc { border-radius: 8px; background: var(--field-fill); box-shadow: inset 0 0 0 1px var(--separator); display: flex; flex-direction: column; }
.desc textarea { border: 0; outline: 0; resize: none; background: transparent; color: var(--foreground); font: inherit; font-size: 17px; line-height: 22px; letter-spacing: -0.02em; padding: 12px 12px 0; min-height: 56px; }
.desc textarea::placeholder, .draftcard textarea::placeholder { color: var(--placeholder); }
.desc .microw { display: flex; justify-content: flex-end; padding: 6px; }
.hintline { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 600; }
.formactions { margin: 0 16px; min-height: 56px; position: relative; display: flex; align-items: center; justify-content: center; }
.formactions .left { position: absolute; left: 0; top: 0; }
.formactions .go { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.formactions .go.locked { background: var(--brand-tint); color: var(--subtle); }
.noticeline { margin: 0 16px; min-height: 44px; border-radius: 16px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 16px; background: var(--surface); animation: up .3s; }
.noticeline.saved { background: var(--success-bg); color: var(--success); }
.noticeline .txt { flex: 1; font-size: 15px; font-weight: 500; line-height: 20px; padding: 12px 0; letter-spacing: -0.012em; }
.billtoggle { min-height: 44px; display: flex; align-items: center; }
.billtoggle span { min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--field-fill); display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--subtle); }
.billtoggle.nb span { color: var(--nonbillable-text); font-weight: 600; }

/* ---------- Übersicht / Offen ---------- */
.pscroll { flex: 1; min-height: 0; }
.pinner { padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 16px; }
.phead { height: 44px; display: flex; align-items: center; justify-content: space-between; }
.phead button { min-height: 44px; font-size: 15px; font-weight: 600; letter-spacing: -0.012em; }
.periodpick { position: relative; display: flex; padding: 3px; min-height: 44px; border-radius: 999px; background: var(--surface); }
.periodpick button { flex: 1; min-height: 38px; position: relative; z-index: 1; font-size: 15px; font-weight: 500; letter-spacing: -0.012em; text-align: center; border-radius: 999px; }
.periodpick button.on { font-weight: 600; }
.periodpick .thumb { position: absolute; top: 3px; bottom: 3px; border-radius: 999px; background: var(--segment-thumb); box-shadow: 0 1px 3px rgba(0,0,0,.12); transition: left .35s cubic-bezier(.3,1.15,.4,1); }
.strip { height: 76px; overflow-x: auto; overflow-y: hidden; display: flex; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .spage { flex: 0 0 100%; display: flex; justify-content: space-between; align-items: center; scroll-snap-align: start; padding: 2px 0; }
.sitem { height: 72px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative; }
.sitem .top { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--subtle); letter-spacing: 0; }
.sitem .bot { font-size: 17px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sitem .bar { height: 3px; border-radius: 2px; background: var(--chart-1); }
.sitem.on { background: var(--brand); }
.sitem.on .top, .sitem.on .bot { color: var(--on-brand); }
.sitem.on .bar { background: var(--on-brand); }
.sitem.today { box-shadow: inset 0 0 0 1.5px var(--foreground); }
.sitem.future { opacity: .55; cursor: default; }
.sitem.future .bot { color: var(--subtle); }
.hero { background: var(--surface); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.hero .row { display: flex; align-items: baseline; justify-content: space-between; }
.split { display: flex; gap: 2px; height: 8px; }
.split i { display: block; height: 8px; border-radius: 4px; }
.rowbtn { background: var(--surface); border-radius: 16px; display: flex; align-items: center; gap: 12px; padding: 0 16px; width: 100%; text-align: left; }
.entry { background: var(--surface); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; position: relative; }
.nbbg { background-image: linear-gradient(var(--nonbillable-bg), var(--nonbillable-bg)); }
.entry .top { display: flex; gap: 12px; align-items: flex-start; }
.entry .top .l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.entry .top .r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.entry .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.status { display: flex; align-items: center; gap: 4px; }
.mrow { background: var(--surface); border-radius: 16px; padding: 12px 16px; min-height: 64px; display: flex; gap: 12px; align-items: flex-start; }
.mrow .l { flex: 1; min-width: 0; }
.mrow .r { text-align: right; white-space: nowrap; }
.section-cap { font-size: 13px; line-height: 18px; color: var(--subtle); margin-bottom: -8px; }
.empty { padding-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* Wischzeilen */
.swipe { position: relative; border-radius: 16px; }
.swipe .act { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 0 20px; border-radius: 16px; font-size: 15px; font-weight: 600; color: var(--on-brand); opacity: 0; }
.swipe .act.lead { left: 0; right: 0; justify-content: flex-start; background: var(--brand); }
.swipe .act.trail { left: 0; right: 0; justify-content: flex-end; background: var(--danger); color: #fff; }
.swipe .face { position: relative; z-index: 1; touch-action: pan-y; transition: transform .3s cubic-bezier(.3,1,.4,1); }
.swipe .face.dragging { transition: none; }

/* Offen */
.orow { background: var(--surface); border-radius: 16px; padding: 12px 16px 12px 12px; min-height: 68px; display: flex; gap: 10px; align-items: flex-start; position: relative; z-index: 1; }
.orow .ic { width: 20px; height: 22px; display: flex; align-items: center; justify-content: center; }
.orow .l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.stackwrap { position: relative; padding-bottom: 8px; }
.stackwrap .edge { position: absolute; left: 0; right: 0; height: 100%; border-radius: 16px; background: var(--surface-stack); }
.countpill { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--brand-tint); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.confirmchip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px 0 6px; border-radius: 999px; background: var(--brand-tint); font-size: 13px; font-weight: 600; align-self: flex-start; }
.signal { margin-left: 16px; background: var(--surface); border-radius: 16px; min-height: 56px; padding: 8px 4px 8px 12px; display: flex; align-items: center; gap: 10px; }
.allcaptured { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 16px 120px; text-align: center; }

/* ---------- Sheets ---------- */
.layer { position: absolute; inset: 0; z-index: 70; pointer-events: none; }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .3s; pointer-events: auto; }
.scrim.show { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: auto;
  background: var(--surface-raised); border-radius: 38px 38px 0 0;
  transform: translateY(100%); transition: transform .42s cubic-bezier(.2,.9,.25,1);
  display: flex; flex-direction: column; box-shadow: 0 -2px 20px rgba(0,0,0,.08);
}
.sheet.bg-background { background: var(--background); }
.sheet.show { transform: translateY(0); }
.sheet.dragging { transition: none; }
.sheet .grab { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 36px; height: 5px; border-radius: 3px; background: var(--subtle); opacity: .5; z-index: 2; }
.sheet .grabzone { position: absolute; top: 0; left: 0; right: 0; height: 20px; z-index: 2; cursor: grab; touch-action: none; }
.sheet .sbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sheethead { min-height: 44px; position: relative; display: flex; align-items: center; margin-top: 8px; }
.sheethead .ttl { position: absolute; left: 52px; right: 52px; text-align: center; font-size: 17px; font-weight: 600; line-height: 22px; }
.sheethead .lead { position: relative; z-index: 1; min-height: 44px; display: flex; align-items: center; }
.sheethead .close { margin-left: auto; position: relative; z-index: 1; }
.search { height: 44px; border-radius: 999px; background: var(--field-fill); box-shadow: inset 0 0 0 1px var(--separator); display: flex; align-items: center; gap: 8px; padding: 0 16px; color: var(--subtle); flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; letter-spacing: -0.02em; color: var(--foreground); min-width: 0; }
.search input::placeholder { color: var(--placeholder); }
.choice { width: 100%; min-height: 56px; border-radius: 16px; background: var(--surface-card); padding: 12px 16px; display: flex; gap: 12px; align-items: flex-start; text-align: left; }
.choice .l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.choice .r { text-align: right; font-size: 13px; line-height: 18px; color: var(--subtle); display: flex; flex-direction: column; gap: 2px; max-width: 45%; }
.grouptitle { font-size: 13px; font-weight: 600; color: var(--subtle); padding: 0 4px; }
.draftcard { background: var(--surface-card); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.fieldsurf { background: var(--field-fill); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--separator); }
.grow-row { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; }
.dots { display: flex; gap: 6px; justify-content: center; align-items: center; height: 12px; }
.dots i { display: block; }
.wheel { display: flex; gap: 0; height: 180px; position: relative; }
.wheel select { flex: 1; font: inherit; font-size: 21px; text-align: center; background: transparent; color: var(--foreground); border: 0; }
.detail-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; min-height: 44px; }
.detail-block { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.toggle { width: 51px; height: 31px; border-radius: 16px; background: var(--switch-off); position: relative; transition: background .2s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: left .2s; }
.toggle.on { background: var(--brand); }
.phone.dark .toggle.on::after { background: #121212; }
.toggle.on::after { left: 22px; }
.setcard { background: var(--surface); border-radius: 16px; padding: 0 16px; }
.setrow { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.setrow + .setrow { box-shadow: 0 -0.5px 0 var(--separator); }
.miniseg { display: flex; padding: 2px; height: 36px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 0.5px var(--separator); }
.phone:not(.dark) .setcard .miniseg { background: #ebebeb; }
.miniseg button { padding: 0 10px; border-radius: 999px; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.012em; }
.miniseg button.on { background: var(--segment-thumb); font-weight: 600; }

/* Popover und Alert */
.popover { position: absolute; z-index: 80; width: 240px; background: var(--surface-raised); border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.2), 0 0 0 0.5px var(--glass-edge); overflow: hidden; animation: pop .22s cubic-bezier(.2,.9,.3,1.2); transform-origin: top right; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.popover .row { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; width: 100%; font-size: 17px; }
.popover .sep { height: .5px; background: var(--separator); }
.alertbox { position: absolute; z-index: 85; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 270px; border-radius: 14px; background: var(--alert-bg); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); text-align: center; overflow: hidden; animation: pop .2s; }
.alertbox .b { padding: 19px 16px; display: flex; flex-direction: column; gap: 4px; }
.alertbox .btns { display: flex; box-shadow: 0 -0.5px 0 var(--separator); }
.alertbox .btns button { flex: 1; min-height: 44px; font-size: 17px; text-align: center; color: #0a84ff; }
.alertbox .btns button + button { box-shadow: -0.5px 0 0 var(--separator); }
.alertbox .btns .destr { color: #ff3b30; }

/* Umsatz */
.chart { width: 100%; height: 230px; touch-action: pan-y; }
.chart text { font-size: 11px; fill: var(--subtle); font-family: inherit; letter-spacing: 0; }
.ppick { display: flex; }
.ppick button { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.ppick span { padding: 0 14px; min-height: 32px; display: flex; align-items: center; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--subtle); }
.ppick .on span { background: var(--brand-tint); color: var(--foreground); }
.pos { background: var(--surface); border-radius: 16px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Ladekreis */
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; display: inline-block; animation: rot .8s linear infinite; opacity: .8; }
.spin.dark { color: var(--subtle); }
@keyframes rot { to { transform: rotate(360deg); } }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
[hidden] { display: none !important; }
.sheet .sbody { padding-top: 6px; }

/* Schalter Aktuell / Update */
.segstack { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.seg.variant button[data-variant="update"][aria-pressed="true"] { background: #6b3dbf; color: #fff; }
.seg.variant .count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px; background: var(--page-line); font-size: 11px; line-height: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.seg.variant button[aria-pressed="true"] .count { background: rgba(255,255,255,.25); }
.device.is-revision { box-shadow: 0 30px 60px rgba(0,0,0,.25), 0 0 0 3px #0e7c66; }
.device.is-update { box-shadow: 0 30px 60px rgba(0,0,0,.25), 0 0 0 3px #6b3dbf; }

/* Update U01 KPIs, U03 Wochenkopf, U05 Karten, U06 Umschalter */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 4px; }
.kpis .kl { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--subtle); }
.kpis .kv { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; }
.phead.wk { height: auto; min-height: 44px; gap: 8px; padding: 2px 0; }
.t-title.wk { font-size: 19px; line-height: 24px; }
.kw { font-size: 13px; font-weight: 400; color: var(--subtle); white-space: nowrap; }
.entry .expand { margin: 12px -16px -14px; border-top: 0.5px solid var(--separator); animation: fadein .25s; }
.entry.open { box-shadow: inset 0 0 0 1px var(--brand-tint); }
.why summary { cursor: pointer; padding-top: 8px; list-style: none; color: var(--foreground); }
.why summary::-webkit-details-marker { display: none; }
.why summary::after { content: " ▾"; color: var(--subtle); }
.viewtoggle { display: flex; gap: 4px; }
.viewtoggle button { min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--subtle); }
.viewtoggle button.on { background: var(--brand-tint); color: var(--foreground); }
.daygroup { display: flex; flex-direction: column; gap: 8px; }
.dayhead { display: flex; justify-content: space-between; padding: 4px 4px 0; }

/* U07 Einseiten-Formular */
.f2 { flex: 1; min-height: 0; padding: 8px 16px 8px; display: flex; flex-direction: column; gap: 14px; }
.f2head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.f2field { display: flex; flex-direction: column; gap: 6px; }
.f2l { font-size: 13px; line-height: 16px; font-weight: 500; color: var(--subtle); padding: 0 4px; letter-spacing: 0; }
.f2in { min-height: 50px; border-radius: 14px; background: var(--surface); display: flex; align-items: center; gap: 8px; padding: 0 6px 0 16px; width: 100%; text-align: left; transition: box-shadow .15s; }
.f2in:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand); }
.f2in.bad { box-shadow: inset 0 0 0 1.5px var(--danger); }
.f2in .v { flex: 1; min-width: 0; font-size: 16px; }
.f2in .v.ph { color: var(--placeholder); }
.f2in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; letter-spacing: -0.02em; color: var(--foreground); min-height: 50px; }
.f2in input::placeholder, .f2desc textarea::placeholder { color: var(--placeholder); }
.f2in #f2-date { padding-right: 10px; }
button.f2in { padding-right: 14px; }
.f2in .chev { width: 44px; height: 50px; display: flex; align-items: center; justify-content: center; flex: none; }
.f2err { font-size: 13px; line-height: 18px; color: var(--danger); font-weight: 600; padding: 0 4px; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--surface-raised); border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.18), 0 0 0 .5px var(--glass-edge); overflow: hidden; max-height: 260px; overflow-y: auto; }
.sugg button { width: 100%; display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; text-align: left; min-height: 52px; justify-content: center; }
.sugg button + button { box-shadow: 0 -.5px 0 var(--separator); }
.sugg button:hover { background: var(--brand-tint); }
.f2desc { position: relative; border-radius: 14px; background: var(--surface); }
.f2desc:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand); }
.f2desc textarea { display: block; width: 100%; border: 0; outline: 0; resize: none; background: transparent; color: var(--foreground); font: inherit; font-size: 16px; line-height: 22px; letter-spacing: -0.02em; padding: 14px 16px 48px; min-height: 112px; }
.f2mic { position: absolute; right: 4px; bottom: 2px; left: 4px; display: flex; justify-content: flex-end; }
.recbar { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: flex-end; background: var(--field-fill); border-radius: 999px; padding: 0 2px 0 14px; }
.recbar .bars { flex: 1; display: flex; align-items: center; gap: 3px; justify-content: center; height: 36px; }
.recbar .bars i { width: 3px; height: 4px; border-radius: 2px; background: var(--foreground); transition: height .1s; }
.f2details { display: flex; flex-direction: column; }
.detbtn { display: flex; align-items: center; min-height: 48px; padding: 0 6px 0 4px; }
.detchev { transition: transform .3s; display: flex; width: 44px; justify-content: center; }
.detbtn.open .detchev { transform: rotate(180deg); }
.dbody { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.3,1,.4,1); }
.dbody.open { grid-template-rows: 1fr; }
.dbody > div { overflow: hidden; min-height: 0; }
.dbody:not(.open) .dinner { visibility: hidden; }
.dinner { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 8px; }
.f2seg { height: 44px; background: var(--surface); box-shadow: none; }
.f2seg button { flex: 1; font-size: 15px; }
.f2bar { padding: 4px 16px 0; }
.durgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; flex: 1; min-height: 0; align-content: start; padding-bottom: 8px; position: relative; }
.durgrid button { min-height: 44px; border-radius: 12px; background: var(--surface-card); font-size: 15px; }
.durgrid button.on { background: var(--brand); color: var(--on-brand); font-weight: 600; }

/* ============ U08: Shell, Dashboard, Menü, Neuer Eintrag ============ */
.phone { --a-core: #ffffff; }
.phone.dark { --a-core: #1b1b1f; }
.page.p2 { display: none; position: absolute; inset: 0; width: auto; height: auto; flex: none; padding-top: 111px; flex-direction: column; }
.page.p2.on { display: flex; }
.topbar2 { position: absolute; z-index: 20; left: 0; right: 0; top: 59px; height: 52px; padding: 0 16px; display: flex; align-items: center; gap: 4px; background: var(--background); }
.topbar2 .tbcenter { flex: 1; display: flex; justify-content: center; min-width: 0; }
.datepill { display: flex; align-items: center; background: var(--surface); border-radius: 999px; padding: 3px; }
.datepill button { height: 36px; min-width: 36px; display: flex; align-items: center; justify-content: center; border-radius: 999px; }
.datepill button:disabled { opacity: .3; }
.datepill .dp { padding: 0 14px; background: var(--segment-thumb); font-size: 13px; font-weight: 700; letter-spacing: .12em; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.cap { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .1em; color: var(--foreground); text-transform: uppercase; }
.pinner.home { gap: 14px; }
.rings { display: flex; justify-content: space-between; padding: 4px 0 0; }
.ringb { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 112px; }
.rsvg { position: relative; display: block; width: 96px; height: 96px; }
.rc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rv { font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -0.02em; }
.rs { font-size: 11px; line-height: 14px; color: var(--subtle); }
.rl { font-size: 12px; font-weight: 700; letter-spacing: .1em; display: flex; align-items: center; gap: 2px; }
.insight { padding: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; text-align: left; min-height: 112px; }
.mini .mv, .mrow2 .mv { font-size: 26px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; }
.sechead { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.daycard { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.drow { display: flex; gap: 10px; align-items: center; min-height: 40px; text-align: left; box-shadow: 0 -.5px 0 var(--separator); }
.btns2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.btns2 button { min-height: 48px; border-radius: 12px; background: var(--surface-card); box-shadow: inset 0 0 0 .5px var(--separator); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.phone:not(.dark) .btns2 button { background: var(--background); }
.scalebar { height: 8px; border-radius: 4px; background: var(--brand-tint); overflow: hidden; }
.scalebar i { display: block; height: 100%; border-radius: 4px; background: var(--chart-1); }
.mrow2 { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border-radius: 16px; width: 100%; text-align: left; }
.mrow2 .mt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

/* Tabs wie WHOOP + A-Button */
.tabrow { display: flex; align-items: center; gap: 12px; width: 361px; }
.tabbar2 { flex: 1; height: 62px; border-radius: 999px; padding: 4px; display: flex; }
.tabbar2 .item { flex: 1; border-radius: 27px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--subtle); }
.tabbar2 .item.on { color: var(--foreground); background: var(--brand-tint); }
.tabbar2 .item .lbl { font-size: 10px; line-height: 12px; font-weight: 600; letter-spacing: 0; }
.tabbar2 .ico { position: relative; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.abtn { width: 64px; height: 64px; border-radius: 50%; position: relative; flex: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 22px rgba(107,61,191,.4), 0 6px 18px rgba(0,0,0,.18); transition: transform .15s; }
.abtn:active { transform: scale(.94); }
.abtn .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #6b3dbf, #3da5ff, #fa75f8, #6b3dbf); animation: rot 7s linear infinite; }
.abtn .core { position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; }
.phone.entry-open .tabrow, .phone.entry-open .timerbar { display: none; }
.phone.entry-open .bottom-stack { bottom: 110px; }

/* Seitenmenü */
.drawer { position: absolute; inset: 0; z-index: 66; pointer-events: none; }
.drawer .dscrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .3s; }
.drawer .dpanel { position: absolute; top: 0; bottom: 0; left: 0; width: 318px; background: var(--background); transform: translateX(-102%); transition: transform .38s cubic-bezier(.2,.9,.25,1); display: flex; flex-direction: column; padding: 59px 16px 28px; border-radius: 0 28px 28px 0; box-shadow: 8px 0 40px rgba(0,0,0,.18); }
.drawer.open { pointer-events: auto; }
.drawer.open .dscrim { opacity: 1; }
.drawer.open .dpanel { transform: none; }
.dhead { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.dscroll { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2px; }
.ditems { display: flex; flex-direction: column; margin-top: 4px; }
.ditems button, .dline { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 10px; border-radius: 14px; font-size: 17px; text-align: left; width: 100%; }
.ditems button.on { background: var(--brand-tint); font-weight: 600; }
.dline.plain { padding-left: 10px; font-size: 16px; color: var(--foreground); }
.dsec { font-size: 17px; font-weight: 700; padding: 20px 10px 6px; }
.dbadge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-size: 12px; line-height: 20px; text-align: center; font-weight: 600; }
.dfoot { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.prof { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--chart-1); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.newpill { height: 52px; padding: 0 22px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* Seite Neuer Eintrag */
.entrypage { position: absolute; inset: 0; z-index: 25; background: var(--background); transform: translateY(100%); visibility: hidden; transition: transform .45s cubic-bezier(.2,.9,.25,1), visibility 0s .45s; }
.entrypage.open { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2,.9,.25,1), visibility 0s 0s; }
.entrypage .page { background: var(--background); }
.ep-top { height: 52px; margin: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.entrypage .modepick button { min-width: 110px; }
.modepick .thumb { transition: left .35s cubic-bezier(.3,1.2,.4,1), width .35s, opacity .2s; }
.pillgrey { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--subtle); }
.voice { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0 24px; touch-action: none; }
.v-top { margin-top: 36px; text-align: center; min-height: 28px; }
.v-mid { flex: 1; display: flex; align-items: center; justify-content: center; }
.micbig { position: relative; width: 148px; height: 148px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.micbig .core { position: relative; z-index: 2; width: 148px; height: 148px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--brand-tint), 0 0 40px rgba(107,61,191,.35); transition: transform .2s; }
.micbig:active .core { transform: scale(.96); }
.micbig .halo { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(107,61,191,.35), rgba(61,165,255,.1) 70%, transparent 72%); opacity: .0; }
.micbig.rec .halo { animation: pulse 1.6s ease-out infinite; }
.micbig.rec .halo.h2 { animation-delay: .8s; }
.micbig.busy .core { background: var(--a-core); color: var(--foreground); box-shadow: 0 0 0 4px transparent, 0 0 44px rgba(107,61,191,.55); animation: glow 1s ease-in-out infinite alternate; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2); opacity: 0; } }
@keyframes glow { from { transform: scale(.98); } to { transform: scale(1.03); } }
.v-tr { min-height: 66px; text-align: center; max-width: 320px; }
.v-bars { display: flex; align-items: center; justify-content: center; gap: 3px; height: 36px; opacity: 0; transition: opacity .2s; }
.v-bars i { width: 3px; height: 4px; border-radius: 2px; background: var(--chart-1); transition: height .1s; }
.micbig.rec ~ .v-bars, .voice:has(.micbig.rec) .v-bars { opacity: 1; }
.v-hint { text-align: center; max-width: 300px; padding: 12px 0 8px; min-height: 52px; }

/* Formular im Stil des ChatGPT-Entwurfs */
.f2.f3 { padding-top: 4px; }
.f3 .f2l { font-size: 15px; color: var(--foreground); font-weight: 500; }
.f3 .f2in, .f3 .f2desc, .f3 .f2seg { background: var(--background); box-shadow: inset 0 0 0 1px var(--field-stroke); border-radius: 12px; }
.f3 .f2in:focus-within, .f3 .f2desc:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand); }
.f3 .f2in.bad { box-shadow: inset 0 0 0 1.5px var(--danger); }
.f3 .f2seg button.on { background: var(--brand); color: var(--on-brand); }
.f3 .detbtn { box-shadow: 0 .5px 0 var(--separator), 0 -.5px 0 var(--separator); }
.f2bar.two { display: flex; gap: 12px; }
.f2bar.two .ghost { flex: 0 0 120px; min-height: 56px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--field-stroke); font-size: 17px; font-weight: 600; }
.f2bar.two .primary { flex: 1; }

/* U10 Einträge-Tabelle */
.e2title { display: flex; align-items: center; justify-content: space-between; }
.e2title .iconbtn > span { width: 40px; height: 40px; background: none; }
.e2range { display: flex; align-items: center; gap: 12px; }
.zbtn { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--subtle); min-height: 44px; }
.kpitiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.kpitiles > div { background: var(--surface); border-radius: 16px; padding: 14px 14px 12px; }
.kpitiles .kl { font-size: 13px; line-height: 16px; color: var(--subtle); }
.kpitiles .kv { font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }
.chips2 { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips2::-webkit-scrollbar { display: none; }
.chips2 button { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 17px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--separator); white-space: nowrap; }
.chips2 button.on { background: var(--brand); color: var(--on-brand); font-weight: 600; box-shadow: none; }
.daygrp { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; margin-bottom: 8px; }
.daygrp + .daygrp { padding-top: 20px; box-shadow: 0 -.5px 0 var(--separator); }
.dayhead2 { display: flex; justify-content: space-between; align-items: flex-start; }
.dayhead2 .dh { font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -0.02em; }
.dayhead2 .dh2 { font-size: 26px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; }
.phone:not(.dark) .e2 .entry { background: #fcfcfc; box-shadow: inset 0 0 0 1px var(--separator); }
.newpill { white-space: nowrap; flex: none; }
.f2bar.two .ghost { padding: 0 12px; white-space: nowrap; }

/* AVA-Chat (A-Button), Panel wie bei WHOOP */
.askhost { position: absolute; inset: 0; z-index: 27; pointer-events: none; }
.askhost.open { pointer-events: auto; }
.ask-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .3s; }
.askhost.open .ask-scrim { opacity: 1; }
.ask-panel { position: absolute; left: 6px; right: 6px; bottom: 6px; top: 96px; border-radius: 34px 34px 44px 44px; background: var(--background); background-image: linear-gradient(180deg, rgba(107,61,191,.16), transparent 38%); box-shadow: 0 -8px 40px rgba(0,0,0,.25), inset 0 0 0 .5px var(--glass-edge); display: flex; flex-direction: column; transform: translateY(104%); transition: transform .45s cubic-bezier(.2,.9,.25,1); }
.askhost.open .ask-panel { transform: none; }
.ask-grab { height: 22px; display: flex; justify-content: center; align-items: center; cursor: grab; touch-action: none; flex: none; }
.ask-grab i { width: 44px; height: 5px; border-radius: 3px; background: var(--subtle); opacity: .5; }
.ask-head { display: flex; align-items: center; gap: 10px; padding: 0 12px 6px 16px; flex: none; }
.ask-badge { width: 38px; height: 38px; display: flex; flex: none; }
.ask-bodywrap { flex: 1; min-height: 0; padding: 8px 16px; display: flex; flex-direction: column; }
.ask-empty { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.ask-sug { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 8px; }
.ask-sug button { padding: 10px 14px; border-radius: 18px; background: var(--surface); font-size: 14px; line-height: 19px; text-align: left; }
.ask-msgs { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.analyzing { align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--surface); color: var(--subtle); font-size: 15px; box-shadow: 0 0 22px rgba(107,61,191,.3); animation: glow 1s ease-in-out infinite alternate; }
.analyzing .mark { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(#6b3dbf, #3da5ff, #fa75f8, #6b3dbf); animation: rot 1.4s linear infinite; }
.ask-input { margin: 8px 12px 20px; min-height: 52px; border-radius: 26px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--separator); flex: none; }
.ask-input:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand); }
.ask-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--foreground); min-height: 48px; }
.ask-input input::placeholder { color: var(--placeholder); }
.ask-send { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; }
.phone.ask-open .tabrow, .phone.ask-open .timerbar { display: none; }
.phone.ask-open .bottom-stack { bottom: 110px; }
.topbar2 .tbcenter { position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); flex: none; align-items: center; pointer-events: none; }
.topbar2 .tbcenter > * { pointer-events: auto; }
.topbar2 #tb-timer { margin-left: auto; }

.homebrand { display: flex; justify-content: center; color: var(--foreground); padding: 14px 0 12px; }
/* Neuer Eintrag: sofortiger Wechsel, kein Einblenden von unten */
.entrypage, .entrypage.open { transform: none; transition: none; }

/* Timer läuft: Akzentrand dreht sich im Uhrzeigersinn um den Button */
.iconbtn.running > span { position: relative; overflow: visible; }
.iconbtn.running > span::before, .iconbtn.running > span::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-sizing: border-box; pointer-events: none; }
.iconbtn.running > span::before { border: 2px solid color-mix(in srgb, var(--chart-1) 20%, transparent); }
.iconbtn.running > span::after { border: 2px solid transparent; border-top-color: var(--chart-1); border-right-color: color-mix(in srgb, var(--chart-1) 55%, transparent); animation: rot 1.1s linear infinite; will-change: transform; transform: translateZ(0); }

/* Aufgeklappte Karte nach ChatGPT-Entwurf */
.entry .expand { background: var(--surface-card); margin: 12px -16px -14px; border-radius: 0 0 16px 16px; border-top: 0.5px solid var(--separator); }
.xgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 16px; }
.xc { min-width: 0; }
.xk { font-size: 15px; line-height: 20px; color: var(--subtle); }
.xv { font-size: 17px; line-height: 22px; color: var(--foreground); overflow-wrap: anywhere; }
.entry .outline { width: 100%; min-height: 48px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--field-stroke); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-weight: 600; background: var(--background); }

/* U10: feinere Typografie nach ChatGPT-Entwurf (Größen und Gewichte) */
.e2 { gap: 12px; }
.e2 .e2h { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.02em; }
.e2title .iconbtn > span { width: 36px; height: 36px; }
.e2range .t-sec { font-size: 15px; font-weight: 400; }
.zbtn { font-size: 14px; font-weight: 400; }
.kpitiles { gap: 10px; }
.kpitiles > div { border-radius: 14px; padding: 12px 14px 10px; }
.kpitiles .kl { font-size: 13px; line-height: 17px; font-weight: 400; }
.kpitiles .kv { font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -0.015em; margin-top: 4px; }
.chips2 { gap: 8px; }
.chips2 button { min-height: 34px; padding: 0 14px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; margin: 5px 0; }
.chips2 button.on { font-weight: 500; }
.daygrp { gap: 10px; }
.dayhead2 .dh { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.015em; }
.dayhead2 .dh2 { font-size: 20px; line-height: 24px; font-weight: 600; }
.dayhead2 .t-sec { font-size: 13px; line-height: 17px; }
.e2 .entry { border-radius: 14px; padding: 12px 16px 12px; }
.e2 .entry .t-head { font-size: 16px; line-height: 21px; font-weight: 500; letter-spacing: -0.01em; }
.e2 .entry .t-status { font-size: 13px; font-weight: 400; }
.e2 .entry .r .t-body { font-size: 16px; line-height: 21px; font-weight: 600; }
.e2 .entry .t-sec { font-size: 14px; line-height: 19px; letter-spacing: -0.005em; }
.e2 .entry .t-hint, .e2 .entry .t-hint-s { font-size: 13px; line-height: 17px; }
.e2 .entry .status.t-hint-s { font-weight: 400; color: var(--subtle); }
.e2 .entry .status.t-hint-s span { color: var(--subtle) !important; }
.e2 .entry .foot { margin-top: 8px; }
.e2 .entry .xk { font-size: 13px; line-height: 17px; }
.e2 .entry .xv { font-size: 15px; line-height: 20px; font-weight: 400; }
.e2 .entry .xgrid { gap: 12px 16px; padding: 14px 16px; }
.e2 .entry .outline { min-height: 42px; font-size: 15px; font-weight: 500; }
.e2 .entry .expand .detail-block .t-sec, .e2 .entry .expand .detail-block .t-body { font-size: 15px; }

/* Eintrag bearbeiten nach ChatGPT-Entwurf */
.ee { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: 6px; }
.ee-head { display: flex; align-items: center; gap: 4px; padding: 0 16px 10px 8px; box-shadow: 0 .5px 0 var(--separator); }
.ee-title { flex: 1; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.02em; }
.statuspill { font-size: 13px; font-weight: 500; padding: 3px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--subtle); }
.statuspill.ok { background: var(--success-bg); color: var(--success); }
.ee-body { flex: 1; min-height: 0; padding: 14px 16px 4px; display: flex; flex-direction: column; gap: 14px; }
.eef { display: flex; flex-direction: column; gap: 6px; }
.eel { font-size: 15px; line-height: 20px; color: var(--subtle); font-weight: 400; letter-spacing: -0.01em; }
.eein { min-height: 46px; width: 100%; border-radius: 12px; background: var(--background); box-shadow: inset 0 0 0 1px var(--separator); display: flex; align-items: center; gap: 10px; padding: 0 14px; text-align: left; }
.eein:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand); }
.eein.bad { box-shadow: inset 0 0 0 1.5px var(--danger); }
.eein .v { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; }
.eein input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: var(--foreground); min-height: 44px; }
.eeta { width: 100%; resize: none; border: 0; outline: 0; border-radius: 12px; background: var(--background); box-shadow: inset 0 0 0 1px var(--separator); padding: 12px 14px; font: inherit; font-size: 15px; line-height: 23px; color: var(--foreground); min-height: 92px; }
.eeta:focus { box-shadow: inset 0 0 0 1.5px var(--brand); }
.eeh { font-size: 13px; line-height: 17px; color: var(--subtle); }
.eediv { height: 1px; background: var(--separator); margin: 4px -16px 0; opacity: .7; }
.eemore { display: flex; align-items: center; min-height: 48px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.eemore .flip { transform: rotate(180deg); }
.ee-seg { height: 40px; background: var(--surface); }
.ee-foot { display: flex; gap: 12px; padding: 12px 16px 30px; }
.eeghost { flex: 0 0 auto; min-height: 44px; padding: 0 22px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--separator); font-size: 15px; font-weight: 500; background: var(--background); }
.eesave { flex: 1; min-height: 44px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.eesave:disabled { background: var(--brand-tint); color: var(--subtle); }

/* Eingabemaske nach Vorlage */
.comp-host { margin: 0 16px; }
.ask-comp { margin: 8px 12px 20px; flex: none; }
.comp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 52px; padding: 7px; border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--separator); }
.comp:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand); }
.comp.expanded { border-radius: 24px; padding: 6px 7px 7px; }
.comp textarea { flex: 1 1 0; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--foreground); font: inherit; font-size: 16px; line-height: 22px; letter-spacing: -0.015em; padding: 7px 6px; max-height: 144px; overflow-y: auto; scrollbar-width: none; }
.comp textarea::placeholder { color: var(--placeholder); }
.comp.expanded textarea { order: -1; flex: 1 1 100%; padding: 8px 10px 4px; }
.comp button, .comp .cspin { flex: none; }
.cplus { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-tint); color: var(--foreground); display: flex; align-items: center; justify-content: center; }
.cright { display: flex; align-items: center; gap: 4px; }
.comp.expanded .cright { margin-left: auto; }
.cmic { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--foreground); }
.cmic.solid { background: var(--brand); color: var(--on-brand); }
.csend { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; }
.cx, .cok { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--subtle); }
.cok { color: var(--foreground); }
.cwave { flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; justify-content: space-between; margin: 0 8px; overflow: hidden; }
.cwave i { display: block; width: 2px; border-radius: 1px; height: 3px; background: var(--subtle); flex: none; }
.ctime { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--subtle); margin-right: 2px; }
.cspin { width: 22px; height: 22px; margin: 0 8px 0 0; }

.statuspill.open { background: var(--nonbillable-bg); color: var(--nonbillable-text); }
.eein.locked { background: var(--surface); }
.runtag { font-size: 12px; font-weight: 600; color: var(--chart-1); letter-spacing: .04em; text-transform: uppercase; }

.f2h { font-size: 13px; line-height: 17px; color: var(--subtle); }
.aihint { margin-top: 0; }

.bellspan { position: relative; overflow: visible; }
.bellbadge { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brand); color: var(--on-brand); font-size: 11px; line-height: 17px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--background); }

/* Erfassen als Panel (wie der A-Chat) */
.entrypage { background: none; pointer-events: none; transform: none; visibility: hidden; transition: visibility 0s .45s; }
.entrypage.open { pointer-events: auto; visibility: visible; transition: none; }
.entrypage.open .ask-scrim { opacity: 1; }
.entrypage.open .ask-panel { transform: none; }
.ep-head { display: flex; align-items: center; gap: 2px; padding: 0 12px 2px 6px; flex: none; }
.ep-head .modepick { margin: 0 auto; align-self: center; padding: 4px; }
.ep-head .modepick button { min-width: 96px; }
.ep-panel .cap-body { flex: 1; min-height: 0; position: relative; margin: 8px 0 14px; }
.newbtn { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

/* Seitenpanel rechts: Benachrichtigungen */
.drawer.right .dpanel { left: auto; right: 0; width: 340px; transform: translateX(102%); border-radius: 28px 0 0 28px; box-shadow: -8px 0 40px rgba(0,0,0,.18); padding: 59px 14px 28px; }
.drawer.right.open .dpanel { transform: none; }
.nlist { gap: 0; padding-bottom: 8px; }
.nsec { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); padding: 16px 4px 8px; }
.nitem { display: flex; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); margin-bottom: 8px; cursor: pointer; }
.nic { width: 36px; height: 36px; border-radius: 50%; background: var(--background); box-shadow: inset 0 0 0 .5px var(--separator); display: flex; align-items: center; justify-content: center; flex: none; color: var(--foreground); }
.nbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nrow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ntype { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.ntime { font-size: 12px; color: var(--subtle); white-space: nowrap; }
.ntitle { font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--foreground); }
.nmeta { font-size: 13px; line-height: 17px; color: var(--subtle); }
.ntags { display: flex; gap: 6px; padding-top: 2px; }
.ntag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px 0 6px; border-radius: 999px; background: var(--brand-tint); font-size: 12px; font-weight: 500; }
.ntag b { font-size: 11px; width: 16px; height: 16px; border-radius: 8px; background: var(--background); display: inline-flex; align-items: center; justify-content: center; }
.nacts { display: flex; align-items: center; gap: 4px; padding-top: 8px; }
.nbtn { height: 32px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--field-stroke); font-size: 13px; font-weight: 500; background: var(--background); }
.nbtn.wide { width: 100%; height: 44px; font-size: 15px; background: var(--brand); color: var(--on-brand); box-shadow: none; font-weight: 600; }
.nlink { height: 32px; padding: 0 12px; font-size: 13px; color: var(--subtle); }
.nlistul { margin: 2px 0 0; padding-left: 16px; font-size: 13px; line-height: 18px; color: var(--foreground); }

/* U11 Performance-Seite */
.perfpage { position: absolute; inset: 0; z-index: 24; display: none; background: var(--background); }
.perfpage.open { display: block; }
.perf { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: 59px; }
.phd { flex: none; background: linear-gradient(180deg, rgba(107,61,191,.10), transparent); padding: 0 8px 4px; }
.phtop { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.phero { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.pm { width: 96px; display: flex; flex-direction: column; gap: 3px; }
.pm.r { text-align: right; align-items: flex-end; }
.pm b { font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: -0.02em; }
.pm span { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--subtle); }
.pblob { position: relative; width: 150px; height: 150px; }
.pc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pc b { font-size: 34px; line-height: 38px; font-weight: 700; letter-spacing: -0.03em; }
.pc span { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--subtle); }
.pbody { flex: 1; min-height: 0; padding: 8px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.psec { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.plegend { font-size: 12px; color: var(--subtle); display: flex; align-items: center; gap: 6px; }
.lg1, .lg2 { display: inline-block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; }
.lg1 { border-top: 7px solid var(--foreground); }
.lg2 { border-bottom: 7px solid var(--subtle); margin-left: 8px; }
.pcard { padding: 4px 16px; }
.srow { padding: 8px 0 14px; }
.srow + .srow { box-shadow: 0 -.5px 0 var(--separator); }
.sh { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; text-align: left; }
.sh .flip { transform: rotate(180deg); }
.sbody { display: flex; align-items: flex-start; gap: 12px; }
.strack { flex: 1; min-width: 0; position: relative; padding-top: 30px; }
.segs { display: flex; gap: 3px; }
.segs i { flex: 1; height: 5px; border-radius: 3px; }
.markw { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.mlab { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.mtri { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 10px solid var(--foreground); margin-top: 1px; }
.mtri2 { position: absolute; top: 44px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 8px solid var(--subtle); transform: translateX(-50%); }
.slabs { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; padding-top: 14px; }
.sright { width: 70px; text-align: right; padding-top: 22px; flex: none; }
.sval { font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -0.02em; }
.ssub { font-size: 12px; color: var(--subtle); }
.sexp { color: var(--subtle); padding: 4px 0 0; }
.pvh { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; padding-top: 12px; }
.pvl { font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; }
.pvl small { font-size: 14px; font-weight: 500; color: var(--subtle); }
.pvl em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--chart-1); text-transform: uppercase; margin-left: 4px; }
.pbadge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.pbadge.up { background: var(--success-bg); color: var(--success); }
.pbadge.dn { background: var(--nonbillable-bg); color: var(--nonbillable-text); }
.ppick2 { display: flex; padding: 3px; border-radius: 999px; background: var(--surface-card); margin-left: auto; }
.ppick2 button { padding: 0 14px; min-height: 30px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--subtle); }
.ppick2 button.on { background: var(--segment-thumb); color: var(--foreground); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.plegend2 { display: flex; gap: 14px; font-size: 12px; color: var(--subtle); padding: 4px 0 0 40px; }
.plegend2 span { display: flex; align-items: center; gap: 6px; }
.dl, .dd { display: inline-block; width: 18px; border-top: 2px dashed var(--subtle); }
.dd { border-top-color: var(--chart-1); border-top-style: dotted; }
.perfcard { cursor: pointer; }

/* Rechtes Seitenpanel für den Timer (gleiche Form wie Mitteilungen) */
.sidepanel { position: absolute; top: 0; bottom: 0; right: 0; width: 340px; z-index: 71; background: var(--background); border-radius: 28px 0 0 28px; box-shadow: -8px 0 40px rgba(0,0,0,.18); transform: translateX(102%); transition: transform .38s cubic-bezier(.2,.9,.25,1); display: flex; flex-direction: column; padding: 59px 14px 28px; pointer-events: auto; }
.sidepanel.show { transform: none; }
.sidepanel .spHead { display: flex; align-items: center; gap: 10px; min-height: 52px; flex: none; }
.sidepanel .spHead .iconbtn { margin-left: auto; }
.sidepanel .sbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sidepanel .ee { padding-top: 0; }
.sidepanel .ee-body { padding: 8px 2px 4px; }
.sidepanel .ee-foot { padding: 12px 0 0; }
.sidepanel .eeghost { padding: 0 16px; }
.sidepanel .eesave { font-size: 14px; }

.phone.perf-open .tabrow, .phone.perf-open .timerbar { display: none; }
.sidepanel .sbody, .sidepanel .ee, .sidepanel .ee-body, .sidepanel .eef, .sidepanel .eein, .sidepanel .ee-foot, .sidepanel #ts { min-width: 0; max-width: 100%; }
.sidepanel .eein .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidepanel .ee-foot { gap: 8px; }
.sidepanel .eesave { min-width: 0; padding: 0 8px; white-space: nowrap; }

/* Erfassen: Vollbild ohne Farbverlauf, Toggle bleibt im Kopf */
.entrypage { background: var(--background); transition: none; }
.entrypage.open { transition: none; }
.epfull { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 59px 0 34px; background: var(--background); }
.ep-head.full { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 0 8px; height: 52px; flex: none; }
.ep-head.full .modepick { margin: 0 auto; align-self: center; }
.ep-head.full .modepick button { min-width: 100px; }
.epfull .cap-body { flex: 1; min-height: 0; position: relative; margin: 8px 0 0; }
#tb-bell { margin-left: auto; }
/* A-Chat: nur bis zur Hälfte des Bildschirms */
.askhost .ask-panel { top: 50%; }
.ask-empty .t-sec { display: none; }
.ask-empty { gap: 6px; }

/* Plus bei Einträgen: weißes Plus auf Schwarz */
.e2title .iconbtn > .e2plus { background: var(--brand); color: var(--on-brand); width: 36px; height: 36px; }
/* Griff zum Einschieben der Seitenpanels */
.ptab { position: absolute; top: 50%; transform: translateY(-50%); width: 24px; height: 64px; background: var(--background); color: var(--subtle); display: flex; align-items: center; justify-content: center; z-index: 2; }
.ptab.l { left: 100%; border-radius: 0 14px 14px 0; box-shadow: 6px 0 14px rgba(0,0,0,.12); }
.ptab.r { right: 100%; border-radius: 14px 0 0 14px; box-shadow: -6px 0 14px rgba(0,0,0,.12); }
.dpanel, .sidepanel { touch-action: pan-y; }
/* Monatskalender */
.calcard { background: var(--surface); border-radius: 16px; padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.calhead { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; }
.calhead button { min-width: 44px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.calhead button:disabled { opacity: .3; }
.caltitle { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; gap: 6px; flex: 1; }
.cweek { display: grid; grid-template-columns: 30px repeat(7, 1fr); align-items: center; }
.cwd { font-size: 12px; font-weight: 600; color: var(--subtle); text-align: center; padding-bottom: 2px; }
.ckw { font-size: 11px; font-weight: 500; color: var(--subtle); height: 40px; display: flex; align-items: center; justify-content: center; }
button.ckw:hover { color: var(--foreground); }
.cd { height: 42px; position: relative; display: flex; align-items: center; justify-content: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.cd span { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.cd.other { color: var(--subtle); opacity: .55; }
.cd:disabled { opacity: .28; }
.cd.today span { box-shadow: inset 0 0 0 1.5px var(--foreground); }
.cd.in { background: var(--brand-tint); }
.cd.in.st { border-radius: 999px 0 0 999px; }
.cd.in.en { border-radius: 0 999px 999px 0; }
.cd.in.st.en { border-radius: 999px; background: none; }
.cd.st span, .cd.en span { background: var(--brand); color: var(--on-brand); font-weight: 600; box-shadow: none; }
.cd.pend span { outline: 2px solid var(--chart-1); outline-offset: 1px; }
.cdot { position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 2px; background: var(--chart-1); z-index: 1; }
.cd.st .cdot, .cd.en .cdot { background: var(--on-brand); bottom: 5px; }
.calmonths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 4px; }
.calmonths button { height: 52px; border-radius: 14px; font-size: 16px; font-weight: 500; background: var(--background); }
.calmonths button.on { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.calmonths button:disabled { opacity: .3; }
.calquick { display: flex; gap: 8px; padding: 6px 4px 0; overflow-x: auto; scrollbar-width: none; }
.calquick button { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--background); box-shadow: inset 0 0 0 1px var(--separator); }
.calhint { font-size: 12px; line-height: 16px; color: var(--subtle); padding: 4px 6px 0; }
.zbtn .flip { transform: rotate(180deg); }

/* ---------------------------------------------------------------- Claude Revision: Startseite (R04–R06) */
.pinner.home.rv { gap: 14px; padding-top: 8px; }
.rv-hello { display: flex; flex-direction: column; gap: 2px; padding: 0 2px 4px; }
.rv-brand { color: var(--foreground); padding-bottom: 10px; display: flex; }
.rv-claim { font-size: 26px; line-height: 31px; font-weight: 700; letter-spacing: -0.025em; color: var(--foreground); }
.rv-hero { display: flex; align-items: center; gap: 16px; padding: 16px; width: 100%; text-align: left; }
.rv-hero.off { min-height: 96px; justify-content: center; text-align: center; }
.rv-ring { position: relative; width: 128px; height: 128px; flex: none; }
.rv-arc { transition: stroke-dasharray 1.1s cubic-bezier(.2,.8,.2,1); }
.rv-rc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.rv-rc b { font-size: 34px; line-height: 38px; font-weight: 700; letter-spacing: -0.03em; }
.rv-rc b small { font-size: 17px; font-weight: 600; color: var(--subtle); }
.rv-done { width: 48px; height: 48px; border-radius: 24px; background: var(--success); color: var(--background); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; animation: rvpop .5s cubic-bezier(.2,1.6,.4,1) both .6s; }
.rv-rc .t-hint-s { color: var(--success); }
@keyframes rvpop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rv-parts { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rv-part { display: flex; align-items: flex-start; gap: 8px; }
.rv-pi { width: 18px; height: 18px; border-radius: 9px; flex: none; margin-top: 1px; box-shadow: inset 0 0 0 1.5px var(--separator); display: flex; align-items: center; justify-content: center; color: var(--background); }
.rv-part.ok .rv-pi { background: var(--success); box-shadow: none; }
.rv-pl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rv-pl .t-sec { font-size: 15px; line-height: 19px; }
.rv-pl .t-hint { font-size: 12px; line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-pv { white-space: nowrap; font-weight: 600; }
.rv-pv small { font-weight: 400; color: var(--subtle); font-size: 13px; }
.rv-days { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.rv-dh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rv-dots { display: flex; flex-direction: column; gap: 6px; }
.rv-wk { display: flex; align-items: center; gap: 6px; }
.rv-kw { width: 44px; font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.rv-dot { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 0; border-radius: 10px; }
.rv-dot.sel { background: var(--brand-tint); }
.rv-dl { font-size: 11px; line-height: 13px; color: var(--subtle); }
.rv-dc { width: 26px; height: 26px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--separator); color: var(--subtle); }
.rv-dot.c .rv-dc { background: var(--success); color: var(--background); box-shadow: none; }
.rv-dot.p .rv-dc, .rv-dot.r .rv-dc { box-shadow: inset 0 0 0 2px var(--chart-2); color: var(--foreground); }
.rv-dot.r .rv-dc { box-shadow: inset 0 0 0 2px var(--chart-1); }
.rv-dot.o .rv-dc { background: var(--surface-stack); box-shadow: none; font-weight: 600; }
.rv-dot.m .rv-dc { box-shadow: inset 0 0 0 1.5px var(--score-amber); }
.rv-dot.f { opacity: .45; }
.rv-actions { display: flex; gap: 8px; }
.rv-actions .newbtn { flex: 1; justify-content: center; height: 44px; }
.rv-sec { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); color: var(--foreground); font-size: 15px; font-weight: 600; }
.rv-sec.running { color: var(--chart-1); }
.rv-today { padding: 14px 16px 8px; display: flex; flex-direction: column; }
.rv-th { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 6px; }
.rv-row { display: flex; align-items: center; gap: 10px; min-height: 40px; border-top: 1px solid var(--separator); text-align: left; width: 100%; }
.rv-row .t-hint { width: 38px; }
.rv-nb { font-size: 11px; font-weight: 700; color: var(--nonbillable-text); background: var(--nonbillable-bg); border-radius: 6px; padding: 1px 5px; }
.rv-more { min-height: 36px; text-align: left; border-top: 1px solid var(--separator); }
.rv-open { display: flex; align-items: center; gap: 10px; min-height: 44px; border-top: 1px solid var(--separator); width: 100%; color: var(--foreground); }
.rv-month { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; }
.rv-mh { display: flex; justify-content: space-between; align-items: center; }
.rv-mb { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.rv-mv { display: flex; flex-direction: column; gap: 2px; }
.rv-mv b { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -0.03em; }
.rv-mv b small { font-size: 20px; font-weight: 600; }
.rv-mf { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--separator); padding-top: 8px; }
.rv .mini { min-height: 0; gap: 4px; }
.rv .mini .t-hint { font-size: 12px; line-height: 16px; }
.rv-review { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.rv-rg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.rv-rg > div { display: flex; flex-direction: column; gap: 1px; }
.rv-rg b { font-size: 22px; line-height: 26px; font-weight: 700; letter-spacing: -0.02em; }
.rv-rg b small { font-size: 14px; font-weight: 600; color: var(--subtle); }

/* R07: sachlicher Kopf, Status über Farbe */
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 2px; color: var(--foreground); }
.rv-mv b { display: flex; align-items: baseline; gap: 2px; }
.rv-sd { width: 10px; height: 10px; border-radius: 5px; align-self: center; margin-right: 8px; background: var(--subtle); flex: none; }
.rv-mv b.tone-g .rv-sd { background: var(--success); }
.rv-mv b.tone-a .rv-sd { background: var(--score-amber); }
.rv-mv b.tone-g { color: var(--success); }

/* ---------------------------------------------------------------- Claude Revision R08: Performance im Depot-Stil */
.rvp .phtop { padding: 0 8px; }
.rvp .pbody { gap: 12px; padding-top: 4px; }
.rvp-seg { display: flex; padding: 3px; border-radius: 999px; background: var(--surface-card); }
.rvp-seg button { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 32px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--subtle); }
.rvp-seg button.on { background: var(--segment-thumb); color: var(--foreground); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.rvp-hero { display: flex; flex-direction: column; gap: 2px; padding: 4px 2px 0; }
.rvp-hero b { display: flex; align-items: baseline; font-size: 52px; line-height: 58px; font-weight: 700; letter-spacing: -0.035em; }
.rvp-hero b small { font-size: 24px; font-weight: 600; margin-left: 2px; }
.rvp-hero b.tone-g { color: var(--success); }
.rvp-hero b.tone-g .rv-sd { background: var(--success); }
.rvp-hero b.tone-a .rv-sd { background: var(--score-amber); }
.rvp-d { font-size: 13px; line-height: 17px; color: var(--subtle); }
.rvp-chartcard { padding: 12px 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.rvp-sel { display: flex; justify-content: space-between; gap: 8px; padding: 0 8px; font-size: 13px; }
.rvp-sel b { font-size: 15px; }
.rvp-chart text { font-size: 11px; fill: var(--subtle); }
.rvp-lg { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 8px; font-size: 12px; }
.rvp-lg span { display: inline-flex; align-items: center; gap: 5px; }
.rvp-lg i { width: 14px; height: 0; border-top: 2.5px solid var(--chart-1); display: inline-block; }
.rvp-lg i.l2 { border-top-style: dotted; }
.rvp-lg i.l3 { border-top: 1.5px dashed var(--subtle); }
.rvp-lg i.h-c, .rvp-lg i.h-p2, .rvp-lg i.h-p1, .rvp-lg i.h-o { width: 10px; height: 10px; border: 0; border-radius: 3px; }
.rvp-foot { display: flex; justify-content: space-between; padding: 6px 8px 0; border-top: 1px solid var(--separator); margin: 0 8px; padding-left: 0; padding-right: 0; }
.rvp-foot b { color: var(--foreground); }
.rvp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rvp-k { background: var(--surface); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.rvp-k b { font-size: 24px; line-height: 29px; font-weight: 700; letter-spacing: -0.02em; }
.rvp-k b small { font-size: 14px; font-weight: 600; color: var(--subtle); }
.rvp .psec { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; }
.rvp-heat { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.rvp-hm { position: relative; height: 14px; font-size: 11px; color: var(--subtle); }
.rvp-hm span { position: absolute; top: 0; }
.rvp-hg { display: flex; gap: 3px; }
.rvp-hc { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.rvp-hc i, .rvp-lg i.h-c, .rvp-lg i.h-p2, .rvp-lg i.h-p1, .rvp-lg i.h-o { aspect-ratio: 1; border-radius: 3px; background: var(--surface-stack); display: block; }
.rvp-hc i.c, .rvp-lg i.h-c { background: var(--success); }
.rvp-hc i.p2, .rvp-lg i.h-p2 { background: color-mix(in srgb, var(--success) 45%, var(--surface-stack)); }
.rvp-hc i.p1, .rvp-lg i.h-p1 { background: color-mix(in srgb, var(--success) 18%, var(--surface-stack)); }
.rvp-hc i.m { background: transparent; box-shadow: inset 0 0 0 1.5px var(--score-amber); }
.rvp-hc i.o, .rvp-lg i.h-o { background: var(--brand-tint); }
.rvp-hc i.f { opacity: .35; }
.rvp-best { padding: 4px 16px; display: flex; flex-direction: column; }
.rvp-best > div { display: flex; justify-content: space-between; align-items: baseline; min-height: 44px; padding: 10px 0; border-top: 1px solid var(--separator); }
.rvp-best > div:first-child { border-top: 0; }
.rvp-best b { font-size: 16px; font-weight: 600; }
.rvp-best b small { font-size: 13px; font-weight: 400; color: var(--subtle); margin-left: 4px; }
.rvp-wd { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.rvp-bars { position: relative; display: flex; gap: 10px; height: 140px; align-items: flex-end; padding-top: 18px; }
.rvp-bars span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; position: relative; }
.rvp-bars span i { width: 100%; max-width: 40px; border-radius: 6px 6px 3px 3px; background: var(--chart-2); display: block; }
.rvp-bars span i.ok { background: var(--chart-1); }
.rvp-bars span b { font-size: 11px; font-weight: 600; color: var(--subtle); }
.rvp-bars span em { font-style: normal; font-size: 12px; color: var(--subtle); position: absolute; bottom: -18px; }
.rvp-bars { margin-bottom: 18px; }
.rvp-goal { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--subtle); z-index: 1; }
.rvp-mat { padding: 6px 16px 10px; display: flex; flex-direction: column; }
.rvp-mr { display: grid; grid-template-columns: 1fr 40px; gap: 4px 8px; padding: 8px 0; border-top: 1px solid var(--separator); align-items: center; }
.rvp-mr:first-child { border-top: 0; }
.rvp-ml { display: flex; justify-content: space-between; gap: 8px; grid-column: 1 / 3; }
.rvp-mb { height: 6px; border-radius: 3px; background: var(--brand-tint); overflow: hidden; }
.rvp-mb i { display: block; height: 100%; background: var(--chart-1); border-radius: 3px; }
.rvp-mr .t-hint { text-align: right; }

/* ---------------------------------------------------------------- Claude Revision R09: Leistungswert */
.rvv-hero { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.rvv-hero > b { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -0.03em; }
.rvv-cc { padding: 12px 8px; display: flex; flex-direction: column; gap: 6px; }
.rvv-chart text { font-size: 11px; fill: var(--subtle); }
.rvp-lg i.v1 { width: 10px; height: 10px; border: 0; border-radius: 3px; background: var(--chart-1); }
.rvp-lg i.v2 { width: 10px; height: 10px; border: 1.5px dashed var(--chart-1); border-radius: 3px; }
.psec2 { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: -6px; padding: 0 2px; }
.rvp-ml > span:first-child { min-width: 0; flex: 1; }
.rvp-ml > span:last-child, .rvp-mr > .t-hint { white-space: nowrap; }
.rvp-mr { grid-template-columns: 1fr 52px; }

/* ---------------------------------------------------------------- Claude Revision R10–R13 */
.is-revision .entry.nbbg { background-image: none; box-shadow: inset 3px 0 0 var(--nonbillable-text); }
.rv-arr span { background: none !important; width: 32px !important; height: 32px !important; }
.rv-arr:disabled { opacity: .3; }
.op-dh { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 2px 2px; }
.op-dh:first-child { padding-top: 0; }
.rv-cb { background: var(--surface); border-radius: 16px; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.rv-cbs { width: 100%; height: auto; }
.rv-cbs text { font-size: 10px; fill: var(--subtle); }
.rv-cbs text.v { font-size: 10px; fill: var(--foreground); font-weight: 600; }

/* ---------------------------------------------------------------- Claude Revision R14–R15: Kanzlei */
.tm-note { display: flex; gap: 6px; align-items: flex-start; margin-top: -8px; }
.tm-note svg { flex: none; margin-top: 2px; }
.tm .rvp-hero b.tone-a { color: var(--foreground); }
.tm-cal { padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.tm-cw { display: flex; align-items: center; gap: 5px; }
.tm-cd { flex: 1; height: 44px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface-stack); font-size: 12px; color: var(--subtle); }
.tm-cd b { font-size: 14px; line-height: 16px; color: var(--foreground); }
.tm-cd em { font-style: normal; font-size: 10px; line-height: 12px; color: var(--subtle); }
.tm-cd.f { opacity: .35; }
.tm-cd.b-g { background: color-mix(in srgb, var(--success) 22%, var(--surface)); }
.tm-cd.b-a { background: color-mix(in srgb, var(--score-amber) 22%, var(--surface)); }
.tm-cd.b-r { background: color-mix(in srgb, var(--danger) 20%, var(--surface)); }
.rvp-lg i.b-a { width: 10px; height: 10px; border: 0; border-radius: 3px; background: var(--score-amber); }
.rvp-lg i.b-r { width: 10px; height: 10px; border: 0; border-radius: 3px; background: var(--danger); }
.tm-list { padding: 2px 14px; display: flex; flex-direction: column; }
.tm-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--separator); width: 100%; text-align: left; }
.tm-row:first-child { border-top: 0; }
.tm-row .avatar { width: 34px; height: 34px; font-size: 12px; flex: none; background: var(--brand-tint); color: var(--foreground); }
.tm-rl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tm-rv { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.tm-rv b { font-size: 17px; font-weight: 700; }
.tm-bar { position: relative; height: 6px; border-radius: 3px; background: var(--brand-tint); margin-top: 3px; }
.tm-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.tm-bar s { position: absolute; top: -2px; bottom: -2px; width: 1.5px; background: var(--subtle); }
.b-g { background: var(--success); } .b-a { background: var(--score-amber); } .b-r { background: var(--danger); } .b-n { background: var(--subtle); }
.tm-bar i.b-g, .tm-bar i.b-a, .tm-bar i.b-r { display: block; }
.tc-g { color: var(--success); } .tc-a { color: var(--score-amber); } .tc-r { color: var(--danger); }
.tm-av { display: flex; }
.tm-av .avatar.s { width: 26px; height: 26px; font-size: 10px; margin-left: -4px; box-shadow: 0 0 0 2px var(--surface); background: var(--surface-stack); color: var(--foreground); }
.tm-wk { display: flex; gap: 8px; height: 90px; align-items: flex-end; padding-bottom: 16px; position: relative; }
.tm-wk span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.tm-wk span i { width: 100%; border-radius: 5px 5px 2px 2px; display: block; }
.tm-wk span em { position: absolute; bottom: -16px; font-style: normal; font-size: 11px; color: var(--subtle); }

/* ---------------------------------------------------------------- Claude Revision R16/R17: Header und gemeinsame Zeitauswahl */
.is-revision .topbar2 #tb-timer { margin-left: 0; }
.rvhd { display: flex; flex-direction: column; gap: 10px; }
.rvhd .e2h { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.02em; }
.rsel { display: flex; flex-direction: column; gap: 4px; }
.rsel-row { display: flex; align-items: center; gap: 8px; }
.rsel-row .rvp-seg { flex: 1; }
.rcal { height: 38px; min-width: 44px; padding: 0 12px; border-radius: 999px; background: var(--surface-card); color: var(--foreground); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; flex: none; }
.rcal.on { background: var(--brand); color: var(--on-brand); }
.rlab { display: flex; align-items: center; gap: 0; margin-left: -10px; min-height: 36px; }
.rlab .rlt { font-weight: 500; min-width: 0; }
.rlab .rv-arr span { width: 30px !important; height: 30px !important; }
.rv-tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-tiles button { width: 36px; height: 36px; border-radius: 9px; background: var(--surface-stack); font-size: 12px; font-weight: 600; color: var(--subtle); display: flex; align-items: center; justify-content: center; }
.rv-tiles button.c { background: var(--success); color: var(--background); }
.rv-tiles button.p2 { background: color-mix(in srgb, var(--success) 45%, var(--surface-stack)); color: var(--foreground); }
.rv-tiles button.p1 { background: color-mix(in srgb, var(--success) 18%, var(--surface-stack)); color: var(--foreground); }
.rv-tiles button.m { background: transparent; box-shadow: inset 0 0 0 1.5px var(--score-amber); color: var(--foreground); }
.rv-tiles button.o { background: var(--brand-tint); }
button.rvp-k { text-align: left; width: 100%; }
.tm-note { margin-top: -4px; }
.rvhd .e2title { min-height: 44px; }

/* ---------------------------------------------------------------- Claude Revision R20/R21: Barrierefreiheit und Konsistenz */
/* Textgröße: nichts unter 12 pt (Tab-Leiste folgt dem iOS-Standard) */
.rv-dl, .rv-nb, .rvp-hm, .tm-wk em, .tm-wk span em, .rvp-bars span b, .rv-pl .t-hint { font-size: 12px; }
.tm-cd em { font-size: 12px; line-height: 14px; }
.tm-cd { height: 50px; }
.rvp-chart text, .rvv-chart text, .rv-cbs text, .rv-cbs text.v { font-size: 12px; }
/* Keine Großbuchstaben-Labels, einheitlicher Satzbau */
.is-revision .nsec, .is-revision .ntype, .is-revision .runtag { text-transform: none; letter-spacing: 0; }
.is-revision .nsec, .is-revision .ntype { font-weight: 600; }
/* Kontrast: grauer Text nicht auf grauer Fläche */
.rv-dot.o .rv-dc, .tm-cd, .rv-tiles button { color: var(--foreground); }
/* Status auch über Form: leer = unter Soll, halb = knapp unter Soll, voll = im Soll */
.rv-sd { box-sizing: border-box; width: 12px; height: 12px; border-radius: 6px; border: 2px solid var(--subtle); background: transparent; }
.rv-mv b.tone-g .rv-sd, .rvp-hero b.tone-g .rv-sd, .wp-pc.tone-g .rv-sd { background: var(--success) !important; border-color: var(--success); }
.rv-mv b.tone-a .rv-sd, .rvp-hero b.tone-a .rv-sd, .wp-pc.tone-a .rv-sd { background: linear-gradient(90deg, var(--score-amber) 50%, transparent 50%) !important; border-color: var(--score-amber); }
/* Trefferflächen mindestens 44 pt */
.rsel .rvp-seg button { min-height: 40px; }
.rcal { height: 46px; }
.rv-tiles { gap: 8px; }
.rv-tiles button { position: relative; }
.rv-tiles button::after { content: ""; position: absolute; inset: -4px; }
/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  .rv-done { animation: none; }
  .rv-arc { transition: none; }
  .iconbtn.running > span::after { animation: none; }
}

/* ---------------------------------------------------------------- R19: Vorschau Widgets und Live Activity */
.wp-lock { --chart-1: #c9a6ff; --chart-2: #e6a8f5; --chart-3: #a9b8ff; --brand-tint: rgba(255,255,255,.2); --success: #5be3a0; --score-amber: #f2c45c; --subtle: rgba(255,255,255,.72); --foreground: #fff; color: #fff; border-radius: 28px; padding: 22px 14px 16px; background: linear-gradient(160deg, #1b1b2f 0%, #3b2563 55%, #5a2f6b 100%); display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.wp-time { text-align: center; font-size: 64px; line-height: 68px; font-weight: 600; letter-spacing: -0.03em; }
.wp-date { text-align: center; font-size: 15px; font-weight: 500; opacity: .85; margin-bottom: 8px; }
.wp-row { display: flex; gap: 10px; }
.wp-w { background: rgba(255,255,255,.16); border-radius: 22px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; backdrop-filter: blur(14px); }
.wp-w.s { flex: 1; min-height: 158px; align-items: flex-start; }
.wp-wt { font-size: 13px; font-weight: 600; opacity: .9; }
.wp-wf { font-size: 12px; opacity: .85; margin-top: auto; }
.wp-ring { position: relative; width: 78px; height: 78px; display: block; margin: 2px 0; }
.wp-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.wp-pc { display: flex; align-items: baseline; font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -0.03em; }
.wp-pc small { font-size: 16px; font-weight: 600; margin-left: 2px; }
.wp-pc .rv-sd { align-self: center; margin-right: 6px; border-color: rgba(255,255,255,.7); }
.wp-w.m { gap: 6px; }
.wp-li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.wp-li span { min-width: 0; flex: 1; }
.wp-la { background: rgba(20,20,28,.72); border-radius: 24px; padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.wp-lah { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; opacity: .9; }
.wp-lac { display: flex; align-items: center; justify-content: space-between; }
.wp-lat { font-size: 38px; line-height: 44px; font-weight: 300; letter-spacing: -0.01em; }
.wp-stop { width: 40px; height: 40px; border-radius: 20px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.wp-lam { font-size: 14px; opacity: .9; }
.wp-isl { align-self: center; margin-top: 6px; background: #000; border-radius: 999px; padding: 6px 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }

/* ---------------------------------------------------------------- Claude Revision R22 */
.iconbtn.solid > span { background: var(--brand); color: var(--on-brand); }
#e2-filter > span { position: relative; }
.fdot { position: absolute; top: 6px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--chart-1); box-shadow: 0 0 0 2px var(--background); }
.filtermenu .row { justify-content: space-between; gap: 8px; }
.filtermenu .row[aria-checked="true"] { font-weight: 600; }

/* ---------------------------------------------------------------- Claude Revision R23: Funde der Gegenprüfung (nur Revision) */
.is-revision .ntype, .is-revision .ntag b, .is-revision .tab-badge, .is-revision .bellbadge { font-size: 12px; }
.is-revision .bellbadge { min-width: 18px; height: 18px; line-height: 18px; }
/* Trefferflächen: sichtbare Größe bleibt, die tippbare Fläche wächst auf mindestens 44 pt */
.is-revision .rvp-seg button { min-height: 40px; position: relative; }
.is-revision .rvp-seg button::after { content: ""; position: absolute; inset: -2px 0; }
.is-revision .cplus, .is-revision .cmic { position: relative; }
.is-revision .cplus::after, .is-revision .cmic::after { content: ""; position: absolute; inset: -3px; }
.is-revision button[id$="-spark"] { position: relative; }
.is-revision button[id$="-spark"]::after { content: ""; position: absolute; inset: -13px 0 -13px -26px; }
.is-revision .chips2 button { position: relative; }
.is-revision .chips2 button::after { content: ""; position: absolute; inset: -5px -3px; }
.is-revision .ptab::after { content: ""; position: absolute; inset: -6px -10px; }

/* R24: Quellenliste im Formular „Vorschlag prüfen“ */
.srcbox { background: var(--background); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--separator); padding: 2px 4px 2px 12px; display: flex; flex-direction: column; }
.srcrow { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--separator); }
.srcrow:first-child { border-top: 0; }
.srct { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.is-revision .nbtn:not(.wide), .is-revision .nlink, .is-revision .miniseg button, .is-revision .ask-sug button { position: relative; }
.is-revision .nbtn:not(.wide)::after, .is-revision .nlink::after, .is-revision .miniseg button::after { content: ""; position: absolute; inset: -6px -2px; }
.is-revision .ask-sug button::after { content: ""; position: absolute; inset: -3px 0; }
.is-revision .modepick button::after { content: ""; position: absolute; inset: -4px 0; }
/* Formular: lange Mandatsnamen dürfen das Blatt nicht verbreitern (das Blatt ist schrumpfend breit, wegen align-items: flex-start) */
.is-revision .ee { width: 100%; min-width: 0; }

/* ---------------------------------------------------------------- Claude Revision R25: Funde des unabhängigen Prüfers */
.is-revision .drawer:not(.open) .ptab { visibility: hidden; }
.b-n { background: var(--subtle); }
.tc-n { color: var(--subtle); }
.tm-cd.b-n { background: var(--surface-stack); }
.tm-cd.b-a { background: color-mix(in srgb, var(--score-amber) 22%, var(--surface)); }
.tm-bar i.b-n { background: var(--subtle); opacity: .55; }
.rvp-lg i.b-n { width: 10px; height: 10px; border: 0; border-radius: 3px; background: var(--surface-stack); box-shadow: inset 0 0 0 1px var(--subtle); }
.tm-wk span b { font-size: 12px; font-weight: 600; color: var(--subtle); margin-bottom: 2px; }
.tm-wk { height: 110px; }
/* Abdeckung: „abwesend“ und „0–1“ auch ohne Farbe unterscheidbar, Legende vollständig */
.rvp-hc i.o, .rvp-lg i.h-o { background: transparent; box-shadow: inset 0 0 0 1.5px var(--subtle); }
.rvp-lg i.h-m { width: 10px; height: 10px; border: 0; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--score-amber); }
.rv-nb { white-space: nowrap; }

/* R27: Dauer-Dropdown am Feld */
.durmenu { overflow-y: auto; overscroll-behavior: contain; padding: 4px 0; }
.durmenu .durrow { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 17px; }
.durmenu .durrow.on { font-weight: 600; background: var(--brand-tint); }

/* ---------------------------------------------------------------- R28: Quelle als Akzent-Karte (wie das AVA-Chatfenster) */
.srcbanner { border-radius: 14px; padding: 6px 4px 4px 14px; background-color: var(--background); background-image: linear-gradient(180deg, color-mix(in srgb, var(--chart-1) 18%, transparent), color-mix(in srgb, var(--chart-1) 4%, transparent)); box-shadow: inset 3px 0 0 var(--chart-1), inset 0 0 0 .5px color-mix(in srgb, var(--chart-1) 35%, var(--separator)); display: flex; flex-direction: column; }
.srcbanner .srch { display: flex; align-items: center; gap: 6px; color: var(--chart-1); padding: 6px 0 0; }
.srcbanner .srcrow { border-top: 0; }
.srcbanner .srcrow + .srcrow { border-top: 1px solid color-mix(in srgb, var(--chart-1) 20%, var(--separator)); }

/* ---------------------------------------------------------------- R30: Werkzeugleiste und Timer-Panel */
.ptools { padding: 0 12px 4px; display: flex; flex-direction: column; gap: 6px; }
.ptrow { display: flex; align-items: center; gap: 0; }
.ptrow .iconbtn > span { background: var(--brand-tint); }
.ptchips { display: flex; gap: 6px; margin-left: 6px; flex-wrap: wrap; }
.ptchip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 600; position: relative; }
.ptchip::after { content: ""; position: absolute; inset: -7px -2px; }
.tplist { padding: 0 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.tptile { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; padding: 14px 16px; width: 100%; text-align: left; min-height: 64px; }
.tptile.run { box-shadow: inset 0 0 0 1.5px var(--chart-1); }
.tpclock { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.tpm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tpitem { display: flex; align-items: center; gap: 10px; min-height: 52px; width: 100%; text-align: left; padding: 6px 4px; border-top: 1px solid var(--separator); }
.tplist .nsec { padding-top: 8px; }
.sidepanel .sbody > .ee { flex: 1; }
.tplist { min-width: 0; width: 100%; box-sizing: border-box; overflow-x: hidden; overflow-y: auto; }
.tplist > * { flex-shrink: 0; min-width: 0; box-sizing: border-box; }
.tplist .choice { width: 100%; }
.tpitem { box-sizing: border-box; }
.tpitem .num { flex-shrink: 0; }
#tp { width: 100%; min-width: 0; }
.ptools { box-sizing: border-box; width: 100%; }

/* R31: „Alle Tage“ fest, Einzeltage wischbar */
.chips2.fixed { overflow: visible; align-items: center; }
.chips2.sc { flex: 1; min-width: 0; overflow-x: auto; padding: 2px 0; mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 20px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 20px), transparent); }

/* R33: Umschalter Kennzahlen | Verlauf, Vorjahreslinie */
.rvp-view { margin-bottom: -4px; }
.rvp-lg i.l4 { border-top: 1.5px solid color-mix(in srgb, var(--foreground) 50%, transparent); }
.rvp-foot { display: flex; }

/* R34: Verläufe im Menü */
.dline.two { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 6px 10px; }
.dline.two small { font-size: 12px; }
.dline.two { min-width: 0; align-items: stretch; }
.dline.two > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* R35–R39: Kanzlei */
.dnc { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px; }
.dn { position: relative; width: 176px; height: 176px; }
.dn-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 34px; }
.dn-c b { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.dn-lg { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.dn-lg > div { display: flex; align-items: center; gap: 8px; }
.dn-lg i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dn-lg span { flex: 1; min-width: 0; }
.tmval { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.tmv-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tmv-b { display: flex; align-items: center; gap: 8px; text-align: left; width: 100%; min-height: 44px; }
.tmv-b > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tmv-b b { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.rvp-seg.sm { width: auto; padding: 2px; }
.rvp-seg.sm button { min-height: 32px; padding: 0 10px; font-size: 13px; }
.sb { display: flex; height: 8px; border-radius: 4px; background: var(--brand-tint); overflow: hidden; margin-top: 4px; gap: 1px; }
.sb i, .rvp-lg i.sb-b, .rvp-lg i.sb-n { display: block; }
.sb-b { background: var(--success); }
.sb-n { background: var(--nonbillable-text); }
.rvp-lg i.sb-b, .rvp-lg i.sb-n { width: 10px; height: 10px; border: 0; border-radius: 3px; }
.vchart text { fill: var(--subtle); font-size: 10px; }
.kzs > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
.kzs .card { overflow: hidden; }
.kzs .psec2 { gap: 8px; }
.kzs > * { flex-shrink: 0; }
.rvp-seg.sm button { position: relative; }
.rvp-seg.sm button::after { content: ""; position: absolute; inset: -6px -2px; }

/* ---------------------------------------------------------------- R41/R42: Farbsystem-Auswahl (nur Claude Revision)
   Schalter in der Vergleichsleiste setzt data-palette am #device: ava = ursprünglich Schwarz/Weiß mit Violett (Basis-Tokens),
   slate = Beige mit Schiefer-Blau (Standard, kein Violett, kein Braun), beige = Landingpage-Palette prelaunch-v2.
   Aktuell und Update bleiben unverändert (alles unter .is-revision). Werte: FARBSYSTEM-VERGLEICH.md */
.is-revision[data-palette="slate"] .phone {
  --background: #f7f6f2; --surface: #efeee8; --surface-raised: #ffffff;
  --surface-card: #efeee8; --field-fill: #ffffff; --surface-stack: #e5e3da;
  --foreground: #242424; --subtle: #64625d; --brand: #242424;
  --on-brand: #ffffff; --brand-tint: #e3e1d8; --separator: #dedcd6;
  --field-stroke: #807d74; --focus: #4f6572; --chart-1: #4f6572;
  --chart-2: #66808f; --chart-3: #34454f; --success: #536754;
  --success-bg: #e5ece1; --score-green: #536754; --score-amber: #7a5c00;
  --score-red: #b3261e; --nonbillable-text: #4a606d; --nonbillable-bg: #e3e9ec;
  --danger: #b3261e; --danger-bg: #f6e4e2; --segment-thumb: #ffffff;
  --placeholder: #64625d; --skeleton: rgba(36, 36, 36, 0.07); --glass: rgba(247, 246, 242, 0.72);
  --glass-edge: rgba(36, 36, 36, 0.12); --glass-hi: rgba(255, 255, 255, 0.8); --alert-bg: rgba(239, 238, 232, 0.94);
}
.is-revision[data-palette="slate"] .phone.dark {
  --background: #1b1c1b; --surface: #242623; --surface-raised: #2c2e29;
  --surface-card: #242623; --field-fill: #20221f; --surface-stack: #30322e;
  --foreground: #edece6; --subtle: #b5b3aa; --brand: #edece6;
  --on-brand: #1b1c1b; --brand-tint: #383b34; --separator: #41423e;
  --field-stroke: #898b82; --focus: #bdcdda; --chart-1: #bdcdda;
  --chart-2: #8da3b2; --chart-3: #74899a; --success: #a9bdaa;
  --success-bg: #29362b; --score-green: #a9bdaa; --score-amber: #e3b341;
  --score-red: #f1a89a; --nonbillable-text: #bdcdda; --nonbillable-bg: #2b3338;
  --danger: #f1a89a; --danger-bg: #3a2a29; --segment-thumb: #3a3c37;
  --placeholder: #b5b3aa; --skeleton: rgba(255, 255, 255, 0.07); --glass: rgba(36, 38, 35, 0.7);
  --glass-edge: rgba(237, 236, 230, 0.12); --glass-hi: rgba(237, 236, 230, 0.12); --alert-bg: rgba(36, 38, 35, 0.94);
}
.is-revision[data-palette="beige"] .phone {
  --background: #f7f6f2; --surface: #efeee8; --surface-raised: #ffffff;
  --surface-card: #efeee8; --field-fill: #fffefa; --surface-stack: #e9e7e1;
  --foreground: #242424; --subtle: #66645e; --brand: #242424;
  --on-brand: #ffffff; --brand-tint: #eeede7; --separator: #dedcd6;
  --field-stroke: #827e74; --focus: #4b626f; --chart-1: #6b3dbf;
  --chart-2: #9468dc; --chart-3: #9a65ac; --success: #0e700e;
  --success-bg: #f1faf1; --score-green: #0e700e; --score-amber: #7a6000;
  --score-red: #b10e1c; --nonbillable-text: #8f5a12; --nonbillable-bg: rgba(232, 145, 45, 0.08);
  --danger: #b10e1c; --danger-bg: #faf0ed; --segment-thumb: #ffffff;
  --placeholder: #66645e; --skeleton: rgba(36, 36, 36, 0.07); --glass: rgba(247, 246, 242, 0.72);
  --glass-edge: rgba(36, 36, 36, 0.12); --glass-hi: rgba(255, 255, 255, 0.8); --alert-bg: rgba(239, 238, 232, 0.94);
}
.is-revision[data-palette="beige"] .phone.dark {
  --background: #1b1c1b; --surface: #242623; --surface-raised: #2c2e29;
  --surface-card: #242623; --field-fill: #20221f; --surface-stack: #30322e;
  --foreground: #edece6; --subtle: #b5b3aa; --brand: #edece6;
  --on-brand: #1b1c1b; --brand-tint: #30322e; --separator: #41423e;
  --field-stroke: #898b82; --focus: #bdcdda; --chart-1: #fa75f8;
  --chart-2: #c070ef; --chart-3: #a878b8; --success: #a9bdaa;
  --success-bg: #29362b; --score-green: #a9bdaa; --score-amber: #e3b341;
  --score-red: #f1a89a; --nonbillable-text: #e8a85a; --nonbillable-bg: rgba(232, 145, 45, 0.14);
  --danger: #f1a89a; --danger-bg: #382924; --segment-thumb: #3a3c37;
  --placeholder: #b5b3aa; --skeleton: rgba(255, 255, 255, 0.07); --glass: rgba(36, 38, 35, 0.7);
  --glass-edge: rgba(237, 236, 230, 0.12); --glass-hi: rgba(237, 236, 230, 0.12); --alert-bg: rgba(36, 38, 35, 0.94);
}
.is-revision[data-palette="ava"] .phone { --focus: #0a84ff; }
.is-revision:not([data-palette="ava"]) .phone :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.is-revision:not([data-palette="ava"]) .abtn { box-shadow: 0 0 22px color-mix(in srgb, var(--chart-1) 40%, transparent), 0 6px 18px rgba(0,0,0,.18); }
.is-revision:not([data-palette="ava"]) .abtn .ring { background: conic-gradient(from 0deg, var(--chart-1), var(--chart-2), var(--chart-3), var(--chart-1)); }
.is-revision:not([data-palette="ava"]) .micbig .core { box-shadow: 0 0 0 6px var(--brand-tint), 0 0 40px color-mix(in srgb, var(--chart-1) 35%, transparent); }
.is-revision:not([data-palette="ava"]) .micbig .halo { background: radial-gradient(circle, color-mix(in srgb, var(--chart-1) 35%, transparent), color-mix(in srgb, var(--chart-2) 10%, transparent) 70%, transparent 72%); }
.is-revision:not([data-palette="ava"]) .micbig.busy .core { box-shadow: 0 0 0 4px transparent, 0 0 44px color-mix(in srgb, var(--chart-1) 55%, transparent); }
.is-revision:not([data-palette="ava"]) .ask-panel { background-image: linear-gradient(180deg, color-mix(in srgb, var(--chart-1) 16%, transparent), transparent 38%); }
.is-revision:not([data-palette="ava"]) .analyzing { box-shadow: 0 0 22px color-mix(in srgb, var(--chart-1) 30%, transparent); }
.is-revision:not([data-palette="ava"]) .analyzing .mark { background: conic-gradient(var(--chart-1), var(--chart-2), var(--chart-3), var(--chart-1)); }
.is-revision:not([data-palette="ava"]) .phd { background: linear-gradient(180deg, color-mix(in srgb, var(--chart-1) 10%, transparent), transparent); }

/* ================================================================ Claude Revision v2 (R43–R51): Gestaltung nach Whoop in AVA-Farben
   Tiefe über Verläufe der Akzentfarbe, Ringe mit weichem Schein, Skalen mit Markern, Trend-Pills. Keine Großbuchstaben-Labels. */
.is-v2 .v2 .card, .is-v2 .v2p .card { background: linear-gradient(180deg, color-mix(in srgb, var(--chart-1) 7%, var(--surface)) 0%, var(--surface) 70%); }
.is-v2 .phone.dark .v2 .card, .is-v2 .phone.dark .v2p .card { background: linear-gradient(180deg, color-mix(in srgb, var(--chart-1) 14%, var(--surface)) 0%, var(--surface) 75%); box-shadow: inset 0 .5px 0 rgba(255,255,255,.06); }
.v2-info span { background: none !important; color: var(--subtle) !important; }
.v2 .rvhd .e2title { justify-content: space-between; }
.v2-stand { margin-top: -2px; padding: 0 2px; }
.v2-kh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.v2-kh .t-hint { text-align: right; }
.v2-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.v2-empty { padding: 8px 0; }
/* Ringe */
.v2-ring { position: relative; display: inline-flex; flex: none; }
.v2-ring .v2-rc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.05; }
.v2-ring .v2-rc b { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.v2-ring .v2-rc b small { font-size: 13px; font-weight: 600; color: var(--subtle); margin-left: 1px; }
.v2-ring .v2-rc small { font-size: 12px; color: var(--subtle); margin-top: 2px; }
.v2-ring.off { border-radius: 50%; border: 9px solid var(--brand-tint); box-sizing: border-box; }
.v2-glow { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--chart-1) 55%, transparent)); }
.phone.dark .v2-glow { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--chart-1) 75%, transparent)); }
.v2-done { color: var(--success); display: flex; }
.v2-rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 16px 6px 14px; }
.v2-rcol { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; text-align: center; }
.v2-rcol .t-sec { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; }
.v2-rcol .t-sec svg { color: var(--subtle); }
.v2-serie { align-self: flex-start; min-height: 44px; margin: -8px 0 -10px; padding: 0 2px; color: var(--subtle); text-align: left; }
/* Trend-Pill (grün hoch, grau seitlich, rot runter; nur für Performance und Leistungswert) */
.v2-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; background: var(--brand-tint); color: var(--subtle); }
.v2-pill i { font-style: normal; font-size: 12px; line-height: 12px; }
.v2-pill.tu { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.v2-pill.td { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
/* Hinweise */
.v2-hints { padding: 4px 14px; display: flex; flex-direction: column; }
.v2-hints.v2-calm { padding: 14px; }
.v2-hint { display: flex; align-items: center; gap: 10px; min-height: 48px; width: 100%; text-align: left; border-top: 1px solid var(--separator); }
.v2-hint:first-child { border-top: 0; }
.v2-hi { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--foreground); flex: none; }
.v2-hi.warn { background: color-mix(in srgb, var(--score-amber) 22%, transparent); }
/* Jahresziel */
.v2-year { padding: 14px; display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; }
.v2-yv { display: flex; align-items: baseline; gap: 8px; }
.v2-yv b { font-size: 30px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; }
.v2-bar { position: relative; height: 8px; border-radius: 4px; background: var(--brand-tint); }
.v2-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, var(--chart-1), var(--chart-2)); }
.v2-bar b { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--foreground); border-radius: 1px; transform: translateX(-1px); }
.v2-yf { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.v2-yf b { color: var(--foreground); font-weight: 600; }
/* Depot (A2, Detail, Wert) */
.v2-depot { padding: 14px; display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; }
.v2-dv, .v2-ev { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2-dv b, .v2-ev b { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -0.03em; }
.v2-dv b small { font-size: 20px; font-weight: 600; color: var(--subtle); }
.v2-dv b.tone-g { color: var(--success); }
.v2-chart { width: 100%; height: auto; display: block; margin-top: 6px; overflow: visible; }
.v2-chart text { font-size: 12px; fill: var(--subtle); }
.v2-chart .v2-base { stroke: var(--separator); }
.v2-chart polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.v2-chart .v2-area { fill: color-mix(in srgb, var(--chart-1) 14%, transparent); stroke: none; }
.v2-chart .v2-l1 { stroke: var(--chart-1); stroke-width: 2.6; }
.v2-chart .v2-lz { stroke: var(--foreground); stroke-opacity: .45; stroke-width: 1.4; stroke-dasharray: 1 4; }
.v2-chart .v2-lp { stroke: var(--chart-1); stroke-width: 2; stroke-dasharray: 3 5; }
.v2-chart .v2-lv { stroke: var(--foreground); stroke-opacity: .28; stroke-width: 1.4; }
.v2-chart .v2-dot { fill: var(--chart-1); stroke: var(--surface); stroke-width: 2; }
.v2-lg { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.v2-lg span { display: inline-flex; align-items: center; gap: 5px; }
.v2-lg i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.v2-lg i.l1 { background: var(--chart-1); }
.v2-lg i.lz { background: repeating-linear-gradient(90deg, var(--subtle) 0 2px, transparent 2px 5px); }
.v2-lg i.lp { background: repeating-linear-gradient(90deg, var(--chart-1) 0 4px, transparent 4px 7px); }
.v2-lg i.lv { background: color-mix(in srgb, var(--foreground) 30%, transparent); }
.v2-lg i.b { width: 9px; height: 9px; border-radius: 2px; background: var(--chart-1); }
.v2-lg i.nb { width: 9px; height: 9px; border-radius: 2px; background: color-mix(in srgb, var(--chart-1) 32%, var(--brand-tint)); }
/* A2 und A3 */
.v2-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v2-mini { padding: 12px; display: flex; align-items: center; gap: 10px; text-align: left; min-height: 44px; }
.v2-mini .v2-ring .v2-rc b { font-size: 17px; }
.v2-mini .v2-ring .v2-rc small { font-size: 12px; }
.v2-mt { display: flex; flex-direction: column; min-width: 0; }
.v2-today { padding: 14px; display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }
.v2-tw { display: flex; align-items: center; gap: 14px; }
.v2-tw .v2-ring .v2-rc b { font-size: 26px; }
.v2-trows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.v2-hr { display: flex; align-items: center; gap: 8px; }
.v2-hc { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--subtle); display: flex; align-items: center; justify-content: center; flex: none; color: var(--on-brand); }
.v2-hr.ok .v2-hc { background: var(--success); border-color: var(--success); color: #fff; }
.v2-hr .t-sec { font-size: 14px; }
.v2-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v2-sc { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; min-height: 44px; }
.v2-sc b { font-size: 22px; line-height: 27px; font-weight: 700; letter-spacing: -0.02em; }
.v2-sc b small { font-size: 13px; color: var(--subtle); }
/* Kacheln mit Skala */
.v2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v2-k { background: var(--surface); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.is-v2 .phone.dark .v2-k { background: linear-gradient(180deg, color-mix(in srgb, var(--chart-1) 10%, var(--surface)) 0%, var(--surface) 80%); }
.v2-k .v2-kh { flex-direction: column; align-items: flex-start; gap: 2px; }
.v2-k .t-sec.w6 { font-size: 14px; line-height: 18px; }
.v2-k b { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.v2-k b small { font-size: 13px; font-weight: 600; color: var(--subtle); }
.v2-k .t-hint { font-size: 12px; line-height: 16px; }
.v2-st { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; line-height: 16px; color: var(--subtle); }
.v2-st.ok { color: var(--success); }
.v2-st svg { background: var(--success); color: #fff; border-radius: 50%; padding: 1px; }
.v2-scale { position: relative; padding-top: 24px; margin-top: 6px; }
.v2-segs { display: flex; gap: 2px; }
.v2-segs i { flex: 1; height: 5px; border-radius: 2px; background: color-mix(in srgb, var(--foreground) 16%, transparent); }
.v2-segs i.ok { background: color-mix(in srgb, var(--success) 70%, transparent); }
.v2-segs i.n { background: linear-gradient(90deg, color-mix(in srgb, var(--chart-1) 40%, transparent), color-mix(in srgb, var(--chart-2) 60%, transparent)); }
.v2-mk { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.v2-mk span { font-size: 12px; font-weight: 600; line-height: 14px; white-space: nowrap; }
.v2-mk i { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--foreground); margin-top: 2px; }
.v2-mk2 { position: absolute; top: 32px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 6px solid var(--subtle); transform: translateX(-50%); }
.v2-sl { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; }
/* Allokation, Wochentage */
.v2-alloc { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.v2-alloc .dn-lg { align-self: stretch; }
.v2-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; }
.v2-wdc { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.v2-wdc .t-hint { font-size: 12px; line-height: 14px; }
.v2-wdb { width: 100%; max-width: 30px; height: 96px; display: flex; flex-direction: column-reverse; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--foreground) 6%, transparent); }
.v2-wdb i.b { background: linear-gradient(0deg, var(--chart-1), var(--chart-2)); }
.v2-wdb i.nb { background: color-mix(in srgb, var(--chart-1) 32%, var(--brand-tint)); }
/* Partner: Wert-Block auf Start */
.v2-eco { padding: 14px; display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; position: relative; }
.v2-eco .v2-ev b { font-size: 32px; line-height: 38px; }
.v2-go { align-self: flex-end; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: -6px -4px -12px 0; padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--foreground); }
/* Listen: Personen, Mandate */
.v2-list { padding: 2px 14px; display: flex; flex-direction: column; }
.v2-pr, .v2-mr { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--separator); width: 100%; text-align: left; min-height: 56px; }
.v2-pr:first-child, .v2-mr:first-child { border-top: 0; }
.v2-pr .avatar { width: 34px; height: 34px; font-size: 12px; flex: none; background: var(--brand-tint); color: var(--foreground); }
.v2-prl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v2-prv { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; }
.v2-kb, .v2-cb { position: relative; height: 5px; border-radius: 3px; background: var(--brand-tint); margin-top: 3px; }
.v2-kb i, .v2-cb i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, var(--chart-1), var(--chart-2)); }
.v2-kb b { position: absolute; top: -3px; width: 2px; height: 11px; background: var(--subtle); }
.v2-cb.warn i { background: var(--score-amber); }
.v2-cb.crit i { background: var(--danger); }
.v2-cs { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; line-height: 16px; color: var(--subtle); }
.v2-cs.warn { color: color-mix(in srgb, var(--score-amber) 70%, var(--foreground)); }
.v2-cs.crit { color: var(--danger); }
.v2-split { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--chart-2) 55%, var(--brand-tint)); overflow: hidden; }
.v2-split i { display: block; height: 100%; background: var(--chart-1); }
.v2-dotc { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.v2-dotc.a { background: var(--chart-1); } .v2-dotc.b { background: color-mix(in srgb, var(--chart-2) 55%, var(--brand-tint)); }
.v2-two2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v2-two2 > div { display: flex; flex-direction: column; }
.v2-two2 b { font-size: 26px; line-height: 32px; font-weight: 700; }
.v2-two2 b small { font-size: 14px; color: var(--subtle); }
.v2-scope { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 48px; width: 100%; text-align: left; }
.v2-foot { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; align-self: flex-start; text-align: left; }
.v2-src { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.v2-tag { font-size: 12px; line-height: 16px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--score-amber) 22%, transparent); white-space: nowrap; }
.v2-tag.ok { background: color-mix(in srgb, var(--success) 18%, transparent); }
.v2-tag.new { background: color-mix(in srgb, var(--danger) 14%, transparent); }
.v2-kv { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--separator); }
.v2-kv:first-child { border-top: 0; }
.v2p .v2-ph { font-size: 20px; }

/* Website: exakt die Werte aus dem Website-Code; nicht definierte Tokens als Platzhalter aus Beige (in der Anzeige "offen") */
.is-revision[data-palette="website"] .phone {
  --background: #f7f6f2; --surface: #efeee8; --surface-raised: #ffffff;
  --surface-card: #efeee8; --field-fill: #ffffff; --surface-stack: #e9e7e1;
  --foreground: #242424; --subtle: #6b6963; --brand: #242424;
  --on-brand: #ffffff; --brand-tint: #eeede7; --separator: #dedcd6;
  --field-stroke: #827e74; --focus: #4b626f; --chart-1: #6b3dbf;
  --chart-2: #9e6ee5; --chart-3: #a878b8; --success: #748478;
  --success-bg: #f1faf1; --score-green: #748478; --score-amber: #7a6000;
  --score-red: #b10e1c; --nonbillable-text: #8f5a12; --nonbillable-bg: rgba(232, 145, 45, 0.08);
  --danger: #b10e1c; --danger-bg: #faf0ed; --segment-thumb: #ffffff;
  --placeholder: #66645e; --skeleton: rgba(36, 36, 36, 0.07); --glass: rgba(247, 246, 242, 0.72);
  --glass-edge: rgba(36, 36, 36, 0.12); --glass-hi: rgba(255, 255, 255, 0.8); --alert-bg: rgba(239, 238, 232, 0.94);
}
.is-revision[data-palette="website"] .phone.dark {
  --background: #1b1c1b; --surface: #242623; --surface-raised: #20221f;
  --surface-card: #242623; --field-fill: #20221f; --surface-stack: #30322e;
  --foreground: #edece6; --subtle: #b5b3aa; --brand: #edece6;
  --on-brand: #1b1c1b; --brand-tint: #2c2e29; --separator: #41423e;
  --field-stroke: #898b82; --focus: #bdcdda; --chart-1: #fa75f8;
  --chart-2: #c070ef; --chart-3: #a878b8; --success: #a9bdaa;
  --success-bg: #29362b; --score-green: #a9bdaa; --score-amber: #e3b341;
  --score-red: #f1a89a; --nonbillable-text: #e8a85a; --nonbillable-bg: rgba(232, 145, 45, 0.14);
  --danger: #f1a89a; --danger-bg: #382924; --segment-thumb: #3a3c37;
  --placeholder: #b5b3aa; --skeleton: rgba(255, 255, 255, 0.07); --glass: rgba(36, 38, 35, 0.7);
  --glass-edge: rgba(237, 236, 230, 0.12); --glass-hi: rgba(237, 236, 230, 0.12); --alert-bg: rgba(36, 38, 35, 0.94);
}

/* Farbwerte-Anzeige (Vergleichsleiste, außerhalb des Telefons) */
.palinfo { margin: 8px 16px 0; border-radius: 12px; background: var(--page-chip); box-shadow: 0 0 0 1px var(--page-line); color: var(--page-fg); font-size: 13px; }
.palinfo[hidden] { display: none; }
.palinfo > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.palinfo > summary::-webkit-details-marker { display: none; }
.palinfo > summary::after { content: "anzeigen"; font-weight: 400; color: var(--page-subtle); }
.palinfo[open] > summary::after { content: "ausblenden"; }
.palinfo .pi-body { padding: 0 14px 12px; display: grid; gap: 10px; }
.palinfo .pi-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.palinfo h4 { margin: 0 0 4px; font-size: 12px; text-transform: none; color: var(--page-subtle); font-weight: 600; }
.palinfo .pi-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; min-width: 0; }
.palinfo .pi-sw { width: 18px; height: 18px; border-radius: 5px; flex: none; box-shadow: inset 0 0 0 1px var(--page-line); }
.palinfo .pi-sw.off { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--page-line) 3px 4px); }
.palinfo .pi-l { flex: 1; min-width: 0; }
.palinfo .pi-v { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--page-subtle); white-space: nowrap; }
.palinfo .pi-n { color: var(--page-subtle); font-size: 12px; }
.palinfo .pi-note { padding: 8px 10px; border-radius: 8px; background: var(--page-bg); line-height: 1.45; }
@media (max-width: 520px) { .palinfo .pi-cols { grid-template-columns: 1fr; } }

/* ================================================================ Claude Revision v3 (R53–R68): Abwesenheitsmanagement */
.v3s { padding: 0 16px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; overflow-x: hidden; width: 100%; box-sizing: border-box; }
.v3-band { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 18px; color: var(--foreground); background: color-mix(in srgb, var(--score-amber) 16%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--score-amber) 40%, transparent); }
.v3-st { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 12px; line-height: 16px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; color: var(--foreground); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--separator); }
.v3-st i { font-style: normal; font-weight: 700; min-width: 10px; text-align: center; }
.v3-effective, .v3-accepted, .v3-a-ok { background: color-mix(in srgb, var(--success) 16%, var(--surface)); }
.v3-pending, .v3-requested, .v3-changePending, .v3-cancelPending, .v3-a-part { background: color-mix(in srgb, var(--score-amber) 18%, var(--surface)); }
.v3-rejected, .v3-conflict, .v3-review { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.v3-cancelled, .v3-withdrawn, .v3-closed, .v3-a-nocap { background: var(--surface); }
.v3-sick, .v3-unknownEnd, .v3-undet, .v3-a-none, .v3-a-undet { background: color-mix(in srgb, var(--chart-2) 14%, var(--surface)); }
.v3-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.v3-btn { min-height: 44px; padding: 0 16px; border-radius: 22px; font-size: 15px; font-weight: 600; color: var(--foreground); box-shadow: inset 0 0 0 1px var(--field-stroke); flex: 1 1 auto; }
.v3-btn.pri { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.v3-btn:disabled { opacity: 1; color: var(--subtle); box-shadow: inset 0 0 0 1px var(--separator); background: none; }
.v3-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v3-hero > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: var(--surface); }
.v3-hero b { font-size: 30px; line-height: 34px; font-weight: 700; }
.v3-card, .v3-list { padding: 4px 14px; display: flex; flex-direction: column; }
.v3-pend { display: flex; align-items: center; gap: 8px; min-height: 44px; flex-wrap: wrap; }
.v3-pot { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.v3-potg { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--subtle); }
.v3-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--separator); }
.v3-list > .v3-item:first-child, .v3-list > .v3-lh + .v3-item { border-top: 0; }
.v3-lh { min-height: 44px; }
.v3-item .avatar { width: 34px; height: 34px; font-size: 12px; flex: none; background: var(--brand-tint); color: var(--foreground); }
.v3-il { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v3-hist { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--separator); }
.v3-hist:first-child { border-top: 0; }
.v3-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v3-sim { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; border: 1px dashed var(--field-stroke); }
.v3-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v3-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v3-in { min-height: 44px; width: 100%; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--field-stroke); background: var(--surface); color: var(--foreground); padding: 0 10px; font: inherit; font-size: 16px; color-scheme: inherit; }
.phone.dark .v3-in { color-scheme: dark; }
.v3-seg { align-self: flex-start; height: 44px; flex-wrap: wrap; }
.v3-seg button { min-height: 40px; }
.v3-err { padding: 10px 12px; border-radius: 12px; font-size: 14px; background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--foreground); }
.v3-conf { display: flex; align-items: center; gap: 8px; padding: 4px 0; flex-wrap: wrap; }
.v3-cbtn { width: 100%; min-height: 44px; text-align: left; flex-wrap: nowrap; }
.v3-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px; text-align: left; width: 100%; }
.v3-cal { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.v3-cr { display: grid; grid-template-columns: 68px repeat(5, minmax(0, 1fr)); gap: 4px; align-items: center; }
.v3-ch span { text-align: center; font-size: 12px; }
.v3-cs span:not(:first-child) { text-align: center; }
.v3-c { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; font-size: 13px; line-height: 15px; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--separator); }
.v3-c b { font-size: 12px; }
.v3-c small { font-size: 12px; color: var(--foreground); }
.v3-c em { position: absolute; top: 2px; right: 4px; font-style: normal; font-weight: 700; font-size: 12px; }
.v3-c.cf { box-shadow: inset 0 0 0 2px var(--danger); }
.v3-lg { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.v3-plan { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.v3-plan span { display: flex; flex-direction: column; font-size: 13px; }
.v3-plan small { font-size: 12px; }
.v3-cc { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--separator); margin: 4px 0; align-items: flex-start; }
.v3-cc .v3-btn { flex: none; }
.v3-tasks { display: flex; flex-direction: column; gap: 10px; }
.v3-push { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.v3-pushc { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--separator); font-size: 14px; }
.v3-pushc small { font-size: 13px; color: var(--subtle); }
.v3-note .nbtn { display: inline-flex; align-items: center; }
#grant-seg button { white-space: nowrap; }
.w4 { font-weight: 400; }

/* ---- v3 Feinschliff (R69–R71) */
.v2-gauge { position: relative; display: inline-flex; flex-direction: column; align-items: center; flex: none; max-width: 100%; }
.v2-gauge svg { display: block; overflow: visible; }
.v2-gauge text { fill: var(--subtle); font-size: 12px; font-weight: 600; font-family: inherit; }
.v2-gr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px; align-items: end; width: 100%; margin-top: -2px; }
.v2-gr > .v2-gv { justify-self: center; }
.v2-gs { font-size: 12px; line-height: 16px; color: var(--subtle); font-variant-numeric: tabular-nums; text-align: center; }
.v2-gr > i { font-style: normal; font-size: 12px; line-height: 16px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.v2-gr > i:last-child { text-align: right; }
.v2-gv { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.05; min-width: 0; }
.v2-gv b { font-size: 22px; line-height: 26px; font-weight: 700; letter-spacing: -0.02em; }
.v2-gv b small { font-size: 13px; font-weight: 600; color: var(--subtle); margin-left: 1px; }
.v2-gv small { font-size: 12px; line-height: 16px; color: var(--subtle); }
.v2-gv .v2-done { display: inline-flex; color: var(--success); }
.v2-tw .v2-gauge { margin-right: 4px; }
.is-v3 .v2-mini { flex-direction: column; text-align: center; gap: 6px; }
.is-v3 .v2-mini .v2-mt { align-items: center; text-align: center; }
.v3-jh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.v3-jh b { font-size: 17px; line-height: 22px; }
/* Menü: kompaktere Zeilen, Ausblendung am unteren Rand, letzte Zeile bleibt erreichbar */
.is-v3 .drawer .ditems button, .is-v3 .drawer .dline { min-height: 44px; }
.is-v3 .drawer .dline.two { min-height: 52px; padding: 7px 10px; }
.is-v3 .drawer .dline.two > span { flex: none; line-height: 21px; }
.is-v3 .drawer .dline.two > small { flex: none; line-height: 16px; }
.is-v3 .drawer .dsec { padding: 14px 10px 4px; }
.is-v3 .drawer .dscroll { padding-bottom: 32px; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }

/* ---- v3 Feinschliff 2 (R70, R72–R74): Tacho nach Vorlage, Leistungswert im Trend-Stil, Kanzlei */
.v2-gauge text { font-size: 13px; }
.v2-gv b { font-size: 24px; line-height: 28px; }
.v2-gr { margin-top: 4px; }
.v2-gs { margin-top: 1px; }
.v3-hc { gap: 6px; }
.v3-hb { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; width: 100%; text-align: center; }
.v3-hb .t-sec { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; }
.v3-act { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.v3-act::after { content: ""; position: absolute; inset: -9px -4px; }
.v3-wd .v2-wdc { gap: 4px; }
.v3-wn { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 15px; }
.v3-wn b { font-weight: 600; }
.v3-wn i { display: block; width: 18px; height: 1px; background: var(--separator); }
.v3-wn span { color: var(--subtle); }
.v3-eco { gap: 0; }
.v3-lw { padding: 16px; display: flex; flex-direction: column; gap: 0; }
.v3-m { display: flex; flex-direction: column; gap: 3px; }
.v3-m2 { margin-top: 18px; }
.v3-mv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v3-mv b { font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -0.03em; }
.v3-mv b small { font-size: 16px; font-weight: 600; color: var(--subtle); letter-spacing: 0; }
.v3-m2 .v3-mv b { font-size: 26px; line-height: 32px; }
.v3-m2 .v3-mv b small { font-size: 14px; }
.v3-ml { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--subtle); }
.v3-tc { display: block; width: 100%; height: auto; margin-top: 16px; overflow: visible; }
.v3-tc text { fill: var(--subtle); font-size: 13px; font-family: inherit; }
.v3-tc .g { stroke: var(--separator); stroke-width: 1; }
.v3-tc text.v3-tl { fill: var(--chart-1); font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.v3-eco .v2-go { align-self: flex-end; margin-top: 8px; }
.v3-pkc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 6px; }
.v3-pkg { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.v3-lc { display: flex; gap: 8px; align-items: center; }
.v3-lc .v3-s { flex: 1; min-width: 0; }
.v3-dd { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; background: var(--field-fill); box-shadow: inset 0 0 0 1px var(--separator); flex: none; }
.v3-dd svg { color: var(--subtle); }
.v3-pg { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 2px 0; border-top: 1px solid var(--separator); }
.v3-pgb { display: inline-flex; gap: 4px; }
.v3-s input { align-self: stretch; min-height: 44px; }

/* R77/R80: Farbspektrum und Tacho (v3) */
.is-v3 .phone { --sp-red: #d1453b; --sp-orange: #e8912d; --sp-green: #3fa05a; --sp-lime: #8ed46d; --sp-teal: #38b7a6; --sp-blue: #3c86d6; }
.is-v3 .phone.dark { --sp-red: #ff7a6b; --sp-orange: #f2a24d; --sp-green: #4cc774; --sp-lime: #9be88a; --sp-teal: #4fd6c4; --sp-blue: #62aefc; }
.v3-gw { position: relative; display: block; margin: 0 auto; }
.v3-ring { position: absolute; left: 0; top: 0; display: block; border-radius: 50%; }
.v3-mk { position: absolute; left: 50%; top: -5px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--foreground); box-shadow: 0 0 0 1.5px var(--surface); }
.v3-gc { position: absolute; left: 0; right: 0; transform: translateY(-50%); text-align: center; line-height: 1; }
.v3-gc b { font-size: 1em; font-weight: 700; letter-spacing: -0.02em; }
.v3-gc b small { font-size: max(12px, .55em); font-weight: 600; color: var(--subtle); margin-left: 1px; }
.v3-gw + .v2-gs { margin-top: -2px; }
.v3-sm { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.v2-sl { position: relative; }
.v2-segs i { transition: opacity .2s; }
.v2-yv b small { font-size: 16px; font-weight: 600; color: var(--foreground); letter-spacing: 0; }
.v3-mb .v3-ml { color: var(--foreground); font-weight: 700; }
.v3-mb .v3-mv b small { color: var(--foreground); }
.v3-mb.v3-m2 { margin-top: 20px; }
.v3-mb .v3-mv { margin-top: 2px; }
.v2-cb b { position: absolute; top: -3px; width: 2px; height: 11px; background: var(--subtle); }
.v2-cb.warn i, .v2-cb.crit i { background-color: transparent; }
/* R81/R83: Kanzlei-Kopf und Listenköpfe */
.rlab .v3-ddr { margin-left: auto; margin-right: 0; min-height: 44px; padding: 0 12px; font-size: 14px; }
.v3-hr { display: flex; align-items: center; gap: 2px; min-height: 44px; }
.v3-hr .v3-ht { flex: none; margin-right: 4px; }
.v3-hr .v3-sw { flex: 1; min-width: 0; display: flex; justify-content: flex-end; overflow: hidden; }
.v3-hr .v3-sw .v3-s { width: 0; padding: 0; opacity: 0; box-shadow: none; height: 36px; visibility: hidden; transition: width .24s ease, opacity .18s ease, padding .24s ease, visibility 0s .24s; }
.v3-hr .v3-sw.on .v3-s { width: 100%; padding: 0 12px; opacity: 1; box-shadow: inset 0 0 0 1px var(--separator); visibility: visible; transition: width .24s ease, opacity .18s ease, padding .24s ease; }
.v3-hr .v3-sw .v3-s input { font-size: 15px; min-height: 36px; }
.v3-hr .v3-ib { margin-left: auto; flex: none; }
.v3-hr .v3-sw + .v3-ib { margin-left: 0; }
.v3-hr .v3-sw.on + .v3-ib { margin-left: 4px; }
.v3-hr .v3-ib + .v3-ib { margin-left: 0; }
/* R84: Titel mit Chevron und Tabs auf der Erfassen-Seite */
.f3title { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-align: left; }
.f3title svg { color: var(--subtle); }
.f3tabs { align-self: stretch !important; width: 100%; flex: none; }
.f3tabs button { flex: 1; padding: 0 6px; }
.f3p { gap: 12px; padding-bottom: 24px; }
.f3p .f3c { padding: 0; }
/* R82: Menü-Suche wächst vom Knopf nach links */
.dhead .dsw { flex: 1; min-width: 0; display: flex; justify-content: flex-end; overflow: hidden; margin-left: 8px; }
.dhead .dsw .search { width: 0; padding: 0; opacity: 0; box-shadow: none; height: 40px; visibility: hidden; transition: width .26s ease, opacity .18s ease, padding .26s ease, visibility 0s .26s; }
.dhead .dsw.on .search { width: 100%; padding: 0 14px; opacity: 1; box-shadow: inset 0 0 0 1px var(--separator); visibility: visible; transition: width .26s ease, opacity .18s ease, padding .26s ease; }
.dhead .dsw .search input { font-size: 16px; min-height: 40px; }
.dhead.srch .t-title { flex: none; }
.dhead .dsw .search input, .v3-hr .v3-sw .v3-s input { outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; }
/* Runde 4 (R85–R93) */
.v3-gw svg { display: block; overflow: visible; }
.v3-hr2 { margin-top: 2px; }
.v3-aim { align-self: flex-start; height: 36px; margin: 2px 0 6px; }
.v3-aim button { min-height: 32px; padding: 0 16px; }
.is-v3 .ghost, .is-v3 .eeghost { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.is-v3 .primary, .is-v3 .textbtn { text-align: center; }
.is-v3 .ask-head { gap: 10px; }

/* R94: Karten und Schrift in v3 an den Tab „Einträge“ angleichen (flach, kein Farbverlauf, gleiche Ecken, gleiche Größen) */
.is-v3 .card, .is-v3 .v2-k, .is-v3 .mrow2, .is-v3 .kpitiles > div, .is-v3 .calcard, .is-v3 .v3-hero > div, .is-v3 .nitem, .is-v3 .tptile, .is-v3 .v2 .card, .is-v3 .v2p .card { background: var(--surface); border-radius: 14px; box-shadow: none; }
.is-v3 .phone:not(.dark) .card, .is-v3 .phone:not(.dark) .v2-k, .is-v3 .phone:not(.dark) .mrow2, .is-v3 .phone:not(.dark) .calcard, .is-v3 .phone:not(.dark) .v3-hero > div, .is-v3 .phone:not(.dark) .nitem, .is-v3 .phone:not(.dark) .tptile { background: #fcfcfc; box-shadow: inset 0 0 0 1px var(--separator); }
.is-v3 .phone.dark .v2 .card, .is-v3 .phone.dark .v2p .card, .is-v3 .phone.dark .v2-k { background: var(--surface); box-shadow: none; }
.is-v3 .card.v2-list, .is-v3 .card.v3-list { overflow: hidden; }
/* Schrift wie bei den Einträgen */
.is-v3 .card .t-head, .is-v3 .card .t-body { font-size: 16px; line-height: 21px; }
.is-v3 .card .t-sec { font-size: 14px; line-height: 19px; letter-spacing: -0.005em; }
.is-v3 .card .t-hint, .is-v3 .card .t-hint-s, .is-v3 .v2-k .t-hint { font-size: 13px; line-height: 17px; }
.is-v3 .psec2 .t-sec.w6 { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.015em; }
.is-v3 .v3-mv b { font-size: 28px; line-height: 34px; font-weight: 600; }
.is-v3 .v3-m2 .v3-mv b, .is-v3 .v2-yv b { font-size: 24px; line-height: 30px; font-weight: 600; }
.is-v3 .v2-k b, .is-v3 .v2-dv b { font-size: 20px; line-height: 26px; font-weight: 600; }
.is-v3 .v3-gc b { font-weight: 600; }
.is-v3 .v3-mv b small, .is-v3 .v2-yv b small, .is-v3 .v2-k b small { font-weight: 500; }

/* Website v2: Werte aus ProductPreview.css (prelaunch-v2); einfarbig, Akzent und Diagramme in Text- und Grautönen */
.is-revision[data-palette="website2"] .phone {
  --background: #f6f6f2; --surface: #ffffff; --surface-raised: #ffffff;
  --surface-card: #fafaf7; --field-fill: #ffffff; --surface-stack: #efeee8;
  --foreground: #292a25; --subtle: #6b6963; --brand: #363532;
  --on-brand: #ffffff; --brand-tint: #efeee8; --separator: #e2e1de;
  --field-stroke: #8a8984; --focus: #787774; --chart-1: #4b4a47;
  --chart-2: #797875; --chart-3: #a8a7a3; --success: #0e700e;
  --success-bg: #f1faf1; --score-green: #0e700e; --score-amber: #7a6000;
  --score-red: #b10e1c; --nonbillable-text: #6b6963; --nonbillable-bg: rgba(41, 42, 37, 0.06);
  --danger: #b10e1c; --danger-bg: #faf0ed; --segment-thumb: #ffffff;
  --placeholder: #6b6963; --skeleton: rgba(41, 42, 37, 0.07); --glass: rgba(246, 246, 242, 0.72);
  --glass-edge: rgba(41, 42, 37, 0.12); --glass-hi: rgba(255, 255, 255, 0.8); --alert-bg: rgba(239, 238, 232, 0.94);
}
.is-revision[data-palette="website2"] .phone.dark {
  --background: #1b1c1b; --surface: #20221f; --surface-raised: #2a2c28;
  --surface-card: #242623; --field-fill: #20221f; --surface-stack: #30322e;
  --foreground: #edece6; --subtle: #b5b3aa; --brand: #edece6;
  --on-brand: #1b1c1b; --brand-tint: #2a2c28; --separator: #41423e;
  --field-stroke: #898b82; --focus: #bdcdda; --chart-1: #d5d5ce;
  --chart-2: #b5b3aa; --chart-3: #8a8984; --success: #a9bdaa;
  --success-bg: #29362b; --score-green: #a9bdaa; --score-amber: #e3b341;
  --score-red: #f1a89a; --nonbillable-text: #b5b3aa; --nonbillable-bg: rgba(237, 236, 230, 0.08);
  --danger: #f1a89a; --danger-bg: #382924; --segment-thumb: #3a3c37;
  --placeholder: #b5b3aa; --skeleton: rgba(255, 255, 255, 0.07); --glass: rgba(36, 38, 35, 0.7);
  --glass-edge: rgba(237, 236, 230, 0.12); --glass-hi: rgba(237, 236, 230, 0.12); --alert-bg: rgba(36, 38, 35, 0.94);
}

/* R95: Timer-Seitenpanel */
.t3 { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 10px; min-width: 0; }
.t3-sum { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 0; }
.t3-sl { display: flex; flex-direction: column; }
.t3-sl b { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.02em; }
.t3-add { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 14px; font-weight: 600; white-space: nowrap; }
.t3-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; }
.t3-card { background: var(--surface); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: inset 0 0 0 1px var(--separator); }
.t3-card.run { box-shadow: inset 0 0 0 1.5px var(--chart-1); }
.t3-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.t3-m { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.t3-c { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.t3-act { display: flex; align-items: center; gap: 4px; }
.t3-main { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 14px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; text-align: center; }
.t3-main.stop { background: var(--danger); color: #fff; }
.t3-main.off, .t3-main:disabled { background: var(--brand-tint); color: var(--subtle); }
.t3-ok > span { background: var(--brand-tint); }
.t3-bar { display: flex; align-items: center; gap: 2px; margin-left: -8px; }
.t3-seg { align-self: stretch !important; width: 100%; flex: none; }
.t3-seg button { flex: 1; padding: 0 6px; font-size: 14px; }
.t3-empty { padding: 28px 8px; display: flex; flex-direction: column; gap: 6px; }
.t3-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.t3-foot .eeghost { min-height: 48px; width: 100%; }
.sidepanel .t3 .eein { width: 100%; }

/* R96: Timer-Panel ohne Überlauf, Symbolknöpfe, Suche */
.t3, .t3 * { min-width: 0; box-sizing: border-box; }
.t3 { width: 100%; max-width: 100%; overflow-x: hidden; padding: 0 12px; }
.t3-sum { flex-wrap: wrap; }
.t3-add { padding: 0 12px; font-size: 14px; }
.t3-c { flex: none; }
.t3-card { max-width: 100%; }
.t3-act { justify-content: space-between; gap: 6px; }
.t3-act .iconbtn > span { width: 44px; height: 44px; }
.t3-main { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; position: relative; background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; }
.t3-main.stop { background: var(--brand); }
.t3-main.run::before, .t3-main.run::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; }
.t3-main.run::before { border: 2px solid color-mix(in srgb, var(--chart-1) 22%, transparent); }
.t3-main.run::after { border: 2px solid transparent; border-top-color: var(--chart-1); border-right-color: color-mix(in srgb, var(--chart-1) 55%, transparent); animation: rot 1.1s linear infinite; will-change: transform; transform: translateZ(0); }
.t3-main.off, .t3-main:disabled { background: var(--brand-tint); color: var(--subtle); }
.t3-s { height: 44px; padding: 0 12px; flex: none; }
.t3-s input { font-size: 15px; }
.t3-x { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--subtle); flex: none; }
.t3-x[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .t3-main.run::after { animation: none; } }
.t3-m .t-sec { overflow-wrap: anywhere; }
.t3-s input { outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; }
.t3-s input::-webkit-search-cancel-button, .t3-s input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.t3-add { width: 44px; height: 44px; padding: 0; border-radius: 50%; justify-content: center; flex: none; }
.t3-s input { min-height: 44px; align-self: stretch; }
.t3-seg button, .f3tabs button { text-align: center; }

/* R97/R102 */
.ask-badge.plain { width: auto; height: auto; align-items: center; color: var(--foreground); }
.is-v3 .drawer.right .ptools { padding: 0 0 4px; }
.is-v3 .drawer.right .ptrow > .iconbtn:first-child { margin-left: -4px; }
.pt2 .ptrow { display: flex; align-items: center; gap: 0; }
.pt-sw { flex: 0 0 0; width: 0; min-width: 0; overflow: hidden; display: flex; transition: flex-grow .26s ease, flex-basis .26s ease; }
.pt-sw.on { flex: 1 1 0; }
.pt-sw .search { width: 100%; height: 36px; padding: 0 12px; margin: 0 6px; }
.pt-sw:not(.on) .search { visibility: hidden; }
.pt-sw .search input { font-size: 15px; min-height: 36px; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; }

/* R99–R101: Vollseiten */
.subpage { position: absolute; inset: 0; z-index: 24; display: none; flex-direction: column; background: var(--background); padding-top: 59px; padding-bottom: 20px; box-sizing: border-box; }
.subpage.open { display: flex; }
.phone.sub-open .tabrow, .phone.sub-open .timerbar { display: none; }
.sp3-head { display: flex; align-items: center; justify-content: space-between; height: 52px; flex: none; padding: 0 12px 0 8px; position: relative; }
.sp3-t { position: absolute; left: 60px; right: 60px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp3-body { flex: 1; min-height: 0; }
.sp3-in { display: flex; flex-direction: column; gap: 12px; padding: 8px 16px 24px; }
.v3-yr { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.v3-ys { display: flex; align-items: center; gap: 0; margin-right: -6px; }
.v3-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v3-kc { padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v3-kc b { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; }
.v3-fold { padding: 0; overflow: hidden; }
.v3-fold > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 14px; cursor: pointer; }
.v3-fold > summary::-webkit-details-marker { display: none; }
.v3-fold[open] .fchev { transform: rotate(180deg); }
.v3-fl { display: flex; flex-direction: column; border-top: 0.5px solid var(--separator); }
.mp-s { flex: none; }
.mp-row { display: flex; align-items: center; gap: 4px; padding: 0 4px 0 14px; min-height: 52px; border-top: 0.5px solid var(--separator); }
.mp-row:first-child { border-top: 0; }
.mp-row.on { background: var(--brand-tint); }
.mp-pick { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; min-height: 44px; justify-content: center; }
.mp-cal { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mp-h { display: flex; align-items: center; justify-content: space-between; }
.mp-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mp-w span { text-align: center; }
.mp-d { position: relative; aspect-ratio: 1 / 1; min-height: 40px; border-radius: 10px; background: var(--brand-tint); text-align: left; padding: 4px 5px; box-shadow: inset 0 0 0 1px var(--separator); }
.mp-d.we { opacity: .5; }
.mp-d.lv1 { background: color-mix(in srgb, var(--chart-1) 14%, var(--surface)); }
.mp-d.lv2 { background: color-mix(in srgb, var(--chart-1) 30%, var(--surface)); }
.mp-d.lv3 { background: color-mix(in srgb, var(--chart-1) 48%, var(--surface)); }
.mp-d.td .mp-n { font-weight: 700; text-decoration: underline; }
.mp-d.sel { box-shadow: inset 0 0 0 2px var(--foreground); }
.mp-n { font-size: 13px; line-height: 16px; }
.mp-c { position: absolute; right: 5px; top: 4px; font-size: 11px; font-weight: 700; }
.mp-f { position: absolute; right: 5px; bottom: 3px; font-size: 12px; line-height: 14px; }
/* Suchfelder: kein eckiger Fokusrahmen im Eingabefeld, Fokus zeigt die runde Hülle */
.pt-sw .search input, .pt-sw .search input:focus-visible, .dhead .dsw .search input, .dhead .dsw .search input:focus-visible, .v3-hr .v3-sw .v3-s input, .v3-hr .v3-sw .v3-s input:focus-visible, .t3-s input, .t3-s input:focus-visible, .mp-s input, .mp-s input:focus-visible { outline: none !important; box-shadow: none !important; }
.pt-sw .search:focus-within, .dhead .dsw .search:focus-within, .v3-s:focus-within, .t3-s:focus-within, .mp-s:focus-within { box-shadow: inset 0 0 0 1.5px var(--subtle) !important; }

/* R104–R106: Timer-Seite */
.t3 { padding: 0; overflow: visible; gap: 12px; }
.t3-tools { display: flex; align-items: center; gap: 0; }
.t3-tools .iconbtn > span { background: var(--brand-tint); }
.t3-tools #t3-add { margin-left: auto; }
.t3-tools .pt-sw.on ~ #t3-add { margin-left: 0; }
.t3-sums { display: flex; align-items: flex-end; gap: 22px; padding: 4px 2px 2px; }
.t3-lb { display: block; font-size: 11px; line-height: 14px; letter-spacing: .08em; color: var(--subtle); text-transform: none; }
.t3-s0 .t3-lb { text-transform: uppercase; }
.t3-s0 b { font-size: 30px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; }
.t3-s1 b { font-size: 17px; line-height: 22px; font-weight: 600; }
.t3-s1 .t3-lb { letter-spacing: 0; font-size: 12px; }
.t3-list { padding: 0; }
.t3-sw { position: relative; }
.t3-acts { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 2px; padding-right: 2px; }
.t3-sw .t3-card { position: relative; touch-action: pan-y; background: var(--surface); }
.t3-card { padding: 10px 12px; gap: 6px; }
.t3-act { justify-content: flex-start; gap: 10px; }
.t3-main.run::before { animation: t3pulse 1.8s ease-out infinite; border-width: 2px; border-color: color-mix(in srgb, var(--chart-1) 55%, transparent); }
.t3-main.run::after { animation: rot 1.1s linear infinite; }
@keyframes t3pulse { 0% { transform: scale(.92); opacity: .9; } 70% { transform: scale(1.22); opacity: 0; } 100% { transform: scale(1.22); opacity: 0; } }
.iconbtn.running > span::before { animation: t3pulse 1.8s ease-out infinite; border-color: color-mix(in srgb, var(--chart-1) 55%, transparent); }
@media (prefers-reduced-motion: reduce) { .t3-main.run::before, .iconbtn.running > span::before { animation: none; } }
.phone.timer-open .tabrow, .phone.timer-open .timerbar { display: none; }
.mp-c { font-size: 12px; }
.mp-s input { min-height: 44px; align-self: stretch; }
.t3-lb { font-size: 12px; }

/* R107/R108 */
.rv-sw { position: relative; }
.rv-acts { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 2px; padding-right: 4px; }
.rv-sw > .entry { position: relative; touch-action: pan-y; }
.pt-sw .search { width: auto; flex: 1; min-width: 0; margin: 0 6px; }
.pt-sw .search input { text-overflow: ellipsis; min-width: 0; }

/* R112 */
.v3-stop { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; }
.v3-stop svg { flex: none; margin-top: 2px; color: var(--subtle); }

/* ================================================================ v4 Slim (nur .is-slim): flach, wenige Rahmen, Haarlinien statt Karten */
.is-slim .topbar2 { padding: 0 20px; }
.is-slim .topbar2 .sl-brand { display: inline-flex; align-items: center; color: var(--foreground); }
.is-slim .tabbar2 .item .lbl { font-size: 12px; line-height: 14px; }
.is-slim .tabbar2 .item { min-width: 0; }
.is-slim .tabbar2 .tab-badge { left: auto; right: -8px; }
.is-slim .pinner.sl { padding: 8px 20px 24px; gap: 0; }
.sl-h { margin: 4px 0 0; font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.03em; }
.sl-sub { margin: 4px 0 24px; font-size: 15px; line-height: 20px; color: var(--subtle); }
.sl-h2 { margin: 24px 0 4px; font-size: 17px; line-height: 22px; font-weight: 600; }
.sl-lbl { display: block; font-size: 13px; line-height: 18px; color: var(--subtle); }
.sl-big { display: block; font-size: 32px; line-height: 38px; font-weight: 500; letter-spacing: -0.02em; }
.sl-stats { display: flex; gap: 40px; margin-bottom: 20px; }
.sl-bar { height: 8px; border-radius: 4px; background: var(--brand-tint); overflow: hidden; }
.sl-bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.sl-bar.thin { height: 6px; margin-top: 6px; }
.sl-note { margin: 8px 0 28px; font-size: 15px; line-height: 20px; color: var(--subtle); }
.sl-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 0; border-top: 1px solid var(--separator); border-bottom: 1px solid var(--separator); margin-bottom: 24px; }
.sl-rb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sl-rt { font-size: 17px; line-height: 22px; font-weight: 600; }
.sl-rs { font-size: 13px; line-height: 18px; color: var(--subtle); }
.sl-cta { margin-top: 4px; }
.sl-list { display: flex; flex-direction: column; }
.sl-erow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 14px 0; border-top: 1px solid var(--separator); text-align: left; }
.sl-list > .sl-erow:last-child { border-bottom: 1px solid var(--separator); }
.sl-eb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sl-et { font-size: 17px; line-height: 22px; font-weight: 600; }
.sl-ed { font-size: 15px; line-height: 20px; color: var(--subtle); }
.sl-es { font-size: 13px; line-height: 18px; color: var(--subtle); font-weight: 600; }
.sl-es.hint { color: var(--score-amber); }
.sl-es.ok { color: var(--subtle); }
.sl-er { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.sl-er b { font-size: 17px; line-height: 22px; font-weight: 600; }
.sl-eday { font-size: 13px; line-height: 18px; color: var(--subtle); }
.sl-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 0; border-top: 1px solid var(--separator); }
.sl-list > .sl-item:last-child { border-bottom: 1px solid var(--separator); }
.sl-it { font-size: 17px; line-height: 22px; font-weight: 600; }
.sl-act { margin-top: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--field-stroke); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; }
.sl-empty { margin: 24px 0; font-size: 17px; line-height: 22px; color: var(--subtle); }
.sl-kpi { padding: 14px 0; border-top: 1px solid var(--separator); }
.sl-kpi .sl-rs { display: block; margin-top: 2px; }
.sl-chart { padding: 16px 0 8px; border-top: 1px solid var(--separator); margin-bottom: 8px; }
.sl-chart svg { overflow: visible; display: block; margin-top: 8px; height: auto; }
.sl-xl { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--subtle); }
.sl-foot { margin: 8px 0 0; font-size: 13px; line-height: 18px; color: var(--subtle); }
.sl-sheet { width: 100%; box-sizing: border-box; padding: 0 20px 28px; display: flex; flex-direction: column; }
.sl-sh { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.sl-ss { font-size: 15px; line-height: 20px; color: var(--subtle); margin-bottom: 12px; }
.sl-kv { display: flex; justify-content: space-between; gap: 16px; min-height: 44px; align-items: center; border-top: 1px solid var(--separator); font-size: 15px; line-height: 20px; }
.sl-kv span:first-child { color: var(--subtle); }
.sl-kv b { font-weight: 600; text-align: right; }
.sl-blk { padding: 12px 0; border-top: 1px solid var(--separator); }
.sl-blk p, .sl-p { margin: 2px 0 0; font-size: 15px; line-height: 21px; }
.sl-p { margin: 8px 0 20px; color: var(--subtle); }
.sl-sheet .primary { margin-top: 16px; }
/* Erfassen */
.sl-cap .cap-body { margin-top: 8px; }
.sl-welcome { flex: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 12px; padding: 0 20px 8px; color: var(--foreground); }
.sl-welcome > svg { align-self: center; }
.sl-welcome p { text-align: center; margin: 12px 0 16px; font-size: 15px; line-height: 20px; color: var(--subtle); }
.sl-opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid var(--separator); border-radius: 12px; font-size: 15px; font-weight: 500; }
.sl-listen { animation: sl-pulse 1.2s ease-in-out infinite; }
@keyframes sl-pulse { 50% { opacity: .35; } }
.sl-chat { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 20px; display: flex; flex-direction: column; gap: 12px; }
.sl-bubble { align-self: flex-end; max-width: 82%; margin: 0; padding: 12px 16px; border-radius: 18px; background: var(--brand-tint); font-size: 15px; line-height: 20px; }
.sl-help { margin: 4px 0 0; font-size: 15px; line-height: 20px; color: var(--subtle); }
.sl-draft { padding: 16px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.sl-draft h3 { margin: 4px 0 0; font-size: 20px; line-height: 25px; font-weight: 600; }
.sl-da { margin: 0; font-size: 15px; line-height: 20px; }
.sl-draft .sl-big { margin: 8px 0 4px; }
.sl-dt { margin: 0; font-size: 15px; line-height: 20px; color: var(--subtle); }
.sl-dh { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--subtle); }
.sl-draft .primary { margin-top: 16px; min-height: 52px; }
.sl-comp { margin: 8px 20px 0; min-height: 56px; padding: 0 12px 0 16px; border: 1px solid var(--separator); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; color: var(--subtle); font-size: 15px; flex: none; }
.sl-comp .plus { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--foreground); }
.sl-form { flex: 1; padding: 0 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.sl-form .sl-h2 { margin: 8px 0 0; }
.sl-fl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 18px; color: var(--subtle); }
.sl-fl select, .sl-fl textarea { width: 100%; box-sizing: border-box; min-height: 52px; padding: 12px 14px; border: 1px solid var(--field-stroke); border-radius: 12px; background: var(--field-fill); color: var(--foreground); font: inherit; font-size: 17px; line-height: 22px; }
.sl-fl textarea { resize: none; }
.sl-form .primary { margin-top: 4px; }

/* ================================================================ iOS Clean (nur .is-clean): Chat als Startbildschirm */
.is-clean .epfull.cl-home { padding: 0; }
.cl-home .cap-body { position: absolute; inset: 0; margin: 0; }
.cl-home .mode-layer { padding-bottom: 0; gap: 0; }
/* Kopfzeile und Eingabe liegen über dem Chat; der Verlauf scheint geblurrt durch (Vorbild ChatGPT) */
.cl-head { position: absolute; z-index: 6; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 111px; padding: 59px 12px 0 8px; box-sizing: border-box; pointer-events: none; }
.cl-head > * { pointer-events: auto; }
.cl-head::before { content: ""; position: absolute; inset: 0 0 -14px; z-index: -1; pointer-events: none; background: linear-gradient(var(--background) 0%, color-mix(in srgb, var(--background) 70%, transparent) 62%, transparent 100%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.cl-head .modepick { margin: 0; align-self: center; }
.cl-head .modepick button { min-width: 92px; }
.cl-right { justify-self: end; display: flex; }
.cl-msgs { position: absolute; inset: 0; padding: 124px 16px 118px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; box-sizing: border-box; }
.cl-msgs .first { display: none; }
.cl-msgs.empty { justify-content: center; padding-bottom: 150px; }
#layer-form { padding-top: 118px; box-sizing: border-box; }
.cl-bar { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; padding: 10px 12px 34px; box-sizing: border-box; pointer-events: none; }
.cl-bar > * { pointer-events: auto; }
.cl-bar::before { content: ""; position: absolute; inset: -22px 0 0; z-index: -1; pointer-events: none; background: linear-gradient(transparent, color-mix(in srgb, var(--background) 78%, transparent) 55%, var(--background)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%); }
.cl-pill { display: flex; align-items: flex-end; gap: 2px; min-height: 52px; padding: 4px 6px; border-radius: 26px; background: color-mix(in srgb, var(--surface-raised) 88%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 0 0 1px var(--separator), 0 6px 22px rgba(0, 0, 0, .08); box-sizing: border-box; }
.cl-pill textarea { flex: 1; min-width: 0; align-self: center; resize: none; border: 0; outline: 0; background: transparent; color: var(--foreground); font: inherit; font-size: 17px; line-height: 22px; padding: 11px 4px; min-height: 44px; max-height: 132px; box-sizing: border-box; }
.cl-wave[hidden], .cl-b[hidden], .cl-att[hidden], .cl-down[hidden], .cl-pill textarea[hidden] { display: none !important; }
.is-clean .phone .cl-pill textarea:focus-visible { outline: none; box-shadow: none; }
.cl-pill textarea::placeholder { color: var(--placeholder); }
.cl-pill:focus-within { box-shadow: 0 0 0 1.5px var(--focus, #0a84ff), 0 6px 22px rgba(0, 0, 0, .08); }
.cl-b { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--foreground); }
.cl-b:disabled { opacity: .4; }
.cl-stop span { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-tint); display: flex; align-items: center; justify-content: center; }
.cl-send span { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; }
.cl-pill.rec .cl-plus { color: var(--foreground); }
.cl-wave { flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 3px; overflow: hidden; padding: 0 6px; }
.cl-wave i { display: block; flex: none; width: 3px; height: 3px; border-radius: 2px; background: var(--foreground); }
.cl-down { position: absolute; left: 50%; top: -44px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--surface-raised); box-shadow: 0 0 0 1px var(--separator), 0 4px 14px rgba(0, 0, 0, .1); display: flex; align-items: center; justify-content: center; color: var(--foreground); }
.cl-att { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cl-ach { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 12px; border-radius: 14px; background: var(--surface-raised); box-shadow: 0 0 0 1px var(--separator); font-size: 14px; max-width: 70%; }
.cl-ach button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin: 0; color: var(--subtle); }
.cl-ach.sent { min-height: 0; padding: 4px 10px; margin: 0 6px 6px 0; background: var(--background); }
.cl-welcome { display: flex; flex-direction: column; align-items: center; gap: 18px; color: var(--foreground); }
.cl-welcome h1 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; text-align: center; }
.cl-dots { display: flex; gap: 5px; align-items: center; height: 24px; padding: 0 2px; }
.cl-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--chart-1); animation: cl-bounce 1s ease-in-out infinite; }
.cl-dots i:nth-child(2) { animation-delay: .15s; }
.cl-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cl-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-6px); opacity: 1; } }
.cl-rsn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -10px 0; font-size: 15px; line-height: 20px; color: var(--subtle); text-align: left; }
.cl-rsn svg { flex: none; transition: transform .2s; }
.cl-rsn[aria-expanded="true"] svg { transform: rotate(90deg); }
.cl-rsn.live span { animation: cl-shim 1.4s ease-in-out infinite; }
@keyframes cl-shim { 50% { opacity: .45; } }
.cl-steps { margin: -6px 0 0 4px; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--separator); display: flex; flex-direction: column; gap: 6px; color: var(--subtle); font-size: 14px; line-height: 19px; }
/* Karte im Stil der Vorschlagskarten: dünner Rand, Kategorie grau in Großbuchstaben, Wert darunter */
.cl-card { background: var(--surface-raised); border-radius: 16px; padding: 0 16px; box-shadow: 0 0 0 1px var(--separator), 0 1px 2px rgba(0, 0, 0, .04); }
.cl-card header { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.cl-ic { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: var(--chart-1); background: color-mix(in srgb, var(--chart-1) 14%, transparent); }
.cl-hd { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-hd small { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--chart-1); }
.cl-hd b { font-size: 17px; line-height: 22px; font-weight: 600; }
.cl-chip { padding: 4px 12px; border-radius: 999px; background: var(--nonbillable-bg); color: var(--nonbillable-text); font-size: 13px; line-height: 18px; font-weight: 500; flex: none; }
.cl-chip.ok { background: var(--brand-tint); color: var(--foreground); }
.cl-chip.edit { background: color-mix(in srgb, var(--chart-1) 16%, var(--surface-raised)); color: var(--foreground); }
.cl-row { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--separator); }
.cl-rl { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.cl-rv { font-size: 15px; line-height: 21px; color: var(--foreground); overflow-wrap: anywhere; }
.cl-rv.miss { color: var(--subtle); }
.cl-btns { display: flex; justify-content: center; gap: 10px; padding: 14px 0 16px; border-top: 1px solid var(--separator); }
.cl-btns button { min-height: 44px; padding: 0 22px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--field-stroke); font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.cl-btns button.main { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.cl-btns button:disabled { background: var(--brand-tint); color: var(--subtle); box-shadow: none; }
.cl-form { border-top: 1px solid var(--separator); padding-bottom: 14px; }
.cl-fld { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 14px; line-height: 19px; color: var(--subtle); }
.cl-fld input, .cl-fld textarea { width: 100%; box-sizing: border-box; min-height: 46px; padding: 11px 14px; border: 0; border-radius: 12px; background: var(--background); box-shadow: inset 0 0 0 1px var(--separator); color: var(--foreground); font: inherit; font-size: 15px; font-weight: 500; line-height: 22px; outline: 0; }
.cl-fld textarea { resize: none; }
.cl-fld input:focus, .cl-fld textarea:focus { box-shadow: inset 0 0 0 1.5px var(--brand); }
.cl-fld input[aria-invalid="true"], .cl-fld textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--danger); }
.cl-fld .err { color: var(--danger); font-size: 13px; line-height: 18px; }
.cl-add { width: 100%; box-sizing: border-box; padding: 0 20px 28px; }
.cl-add .sheethead .lead { margin-left: -4px; }
.cl-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.cl-tiles button { min-height: 104px; border-radius: 20px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 17px; }
/* Formular wie „Vorschlag prüfen“: schlichte Felder mit feinem Rand, Datum mit Symbol, Fußleiste mit Linie */
.is-clean #layer-form .f2 { gap: 14px; }
.is-clean #layer-form .f3 .f2l { color: var(--subtle); font-weight: 400; letter-spacing: -0.01em; padding: 0; }
.is-clean #layer-form .f3 .f2in, .is-clean #layer-form .f3 .f2desc { box-shadow: inset 0 0 0 1px var(--separator); min-height: 46px; }
.is-clean #layer-form .f2in { padding-left: 14px; }
.is-clean #layer-form .f2in input, .is-clean #layer-form .f2in .v { font-size: 15px; font-weight: 500; }
.is-clean #layer-form .f2desc textarea { font-size: 15px; line-height: 23px; font-weight: 500; }
.is-clean #layer-form #f2-date { gap: 10px; padding: 0 14px; }
.is-clean #layer-form #f2-date > .subtle { order: -1; }
.is-clean #layer-form #f2-date .v { flex: 1; text-align: left; }
.is-clean #layer-form #f2-date::after { content: ""; width: 17px; height: 17px; flex: none; background: var(--subtle); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.is-clean #layer-form .f3 .detbtn { box-shadow: 0 .5px 0 var(--separator), 0 -.5px 0 var(--separator); min-height: 48px; }
.is-clean #layer-form .f2bar { padding: 12px 16px 30px; box-shadow: 0 -.5px 0 var(--separator); }
.is-clean #layer-form .f2bar.two .ghost { flex: 0 0 auto; min-height: 44px; padding: 0 22px; font-size: 15px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--separator); }
.is-clean #layer-form .f2bar .primary { min-height: 44px; font-size: 15px; }
/* Seitenpanel liegt unten, der Hauptbildschirm ist eine Karte darüber, die zur Seite rutscht (Vorbild ChatGPT) */
.is-clean { --cl-push: 294px; --cl-radius: 48px; }
.is-clean .drawer { z-index: 2; }
.is-clean #app { z-index: 3; }
.is-clean .drawer .dscrim { display: none; }
.is-clean .phone { --cl-panel: color-mix(in srgb, var(--background) 95%, var(--foreground)); }
/* Der Hintergrund des Seitenpanels füllt das ganze Telefon, damit hinter den Rundungen der Karte dieselbe Farbe steht (keine abgeschnittene Kante) */
.is-clean .drawer { background: transparent; transition: background-color 0s .38s; }
.is-clean .drawer.open { background: var(--cl-panel); transition: none; }
.is-clean .drawer .dpanel { width: var(--cl-push); transform: none; opacity: 0; visibility: hidden; border-radius: 0; box-shadow: none; background: transparent; transition: opacity .25s, visibility 0s .38s; padding: 59px 14px 20px 16px; box-sizing: border-box; }
.is-clean .drawer.open .dpanel { opacity: 1; visibility: visible; transition: opacity .25s; }
.is-clean .drawer .ptab { display: none; }
.is-clean .drawer .dhead .t-title { font-size: 26px; line-height: 32px; letter-spacing: -0.02em; }
.is-clean .drawer .ditems button.on { background: none; font-weight: 600; }
.is-clean .drawer .dsec { font-size: 15px; font-weight: 500; color: var(--subtle); padding: 18px 10px 4px; }
.is-clean .drawer .newpill { height: 48px; padding: 0 20px; }
.is-clean #app, .is-clean #entrypage { transition: transform .38s cubic-bezier(.2, .9, .25, 1), border-radius .38s, box-shadow .38s; }
.is-clean #app { background: var(--background); }
.is-clean .phone.cl-pushed #app, .is-clean .phone.cl-pushed #entrypage { transform: translateX(var(--cl-push)); border-radius: var(--cl-radius) 0 0 var(--cl-radius); box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 9%, transparent); overflow: hidden; clip-path: inset(0 round var(--cl-radius) 0 0 var(--cl-radius)); cursor: pointer; }
.is-clean .phone.cl-pushed #app *, .is-clean .phone.cl-pushed #entrypage * { pointer-events: none; }
/* Seiten, die das Seitenpanel öffnet, liegen über dem Chat (Timer, Urlaub, Mandate, Performance) */
.is-clean .subpage, .is-clean .perfpage { z-index: 30; }
@media (prefers-reduced-motion: reduce) { .cl-dots i, .cl-rsn.live span { animation: none; } .is-clean #app, .is-clean #entrypage { transition: none; } }
/* iOS Clean: Vorführung (Tippanzeige, Sprachblase, Auswahl, Infokarten) */
.cl-tap { position: absolute; z-index: 20; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: color-mix(in srgb, var(--foreground) 14%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--foreground) 28%, transparent); pointer-events: none; animation: cl-tap .62s ease-out forwards; }
@keyframes cl-tap { 0% { transform: scale(.4); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.cl-vc { display: inline-flex; vertical-align: -2px; margin-right: 6px; color: var(--subtle); }
.cl-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-choices button { min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface-raised); box-shadow: inset 0 0 0 1.5px var(--chart-1); font-size: 15px; font-weight: 600; }
.cl-choices button.skip { box-shadow: none; background: none; padding: 0 6px; font-weight: 500; color: var(--danger); text-decoration: underline; text-underline-offset: 3px; }
.cl-card.info { padding-bottom: 0; }
.cl-ihead { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; text-align: left; }
.cl-sub { font-size: 13px; line-height: 18px; color: var(--subtle); }
.cl-chv { flex: none; color: var(--subtle); display: flex; transition: transform .2s; }
.cl-chv.up { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .cl-tap { display: none; } }

/* iOS Clean: Chat baut sich auf (Vorbild Slim v2), dunkle Hervorhebung von Eingabe und Nutzerblasen, Scrollbar, Kennzahlen-Grafik */
.cl-msgs.scroll { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--foreground) 24%, transparent) transparent; }
.cl-msgs::-webkit-scrollbar { width: 4px; }
.cl-msgs::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--foreground) 24%, transparent); border-radius: 2px; }
.cl-ai { display: flex; flex-direction: column; gap: 12px; position: relative; padding-left: 38px; }
.cl-date { align-self: center; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.cl-pro { display: inline; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--chart-1); }
.cl-msgs .bubble-user { background: var(--brand); color: var(--on-brand); border-radius: 20px 20px 6px 20px; }
.cl-ub .cl-ach.sent { background: color-mix(in srgb, var(--on-brand) 16%, transparent); box-shadow: none; color: inherit; }
.cl-ub.vmsg { display: flex; flex-direction: column; gap: 8px; width: 78%; box-sizing: border-box; }
.cl-voice { display: flex; align-items: center; gap: 10px; }
.cl-play { width: 28px; height: 28px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--on-brand) 18%, transparent); display: flex; align-items: center; justify-content: center; }
.cl-vbars { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; height: 24px; }
.cl-vbars i { width: 3px; border-radius: 2px; background: currentColor; }
.cl-vdur { font-size: 13px; line-height: 18px; }
.cl-vtx { font-style: italic; }
.cl-in { animation: cl-up .42s cubic-bezier(.2, .9, .25, 1) both; }
.cl-in .cl-card, .cl-in .cl-row, .cl-in .cl-btns, .cl-in .cl-fld, .cl-in .cl-vsec, .cl-in .cl-choices button { animation: cl-up .36s cubic-bezier(.2, .9, .25, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 140ms); }
@keyframes cl-up { from { opacity: 0; transform: translateY(12px); } }
/* Aufnahme: dunkle Leiste mit hellen Balken (Vorbild Slim v2) */
.cl-pill.rec { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.cl-pill.rec .cl-b { color: var(--on-brand); }
.cl-pill.rec .cl-wave i { background: var(--on-brand); }
.cl-pill.rec .cl-stop span { background: color-mix(in srgb, var(--on-brand) 22%, transparent); }
.cl-pill.rec .cl-send span { background: var(--on-brand); color: var(--brand); }
.cl-rt { align-self: center; flex: none; min-width: 34px; padding: 0 2px; font-size: 13px; line-height: 18px; font-weight: 600; text-align: right; }
.cl-rt[hidden] { display: none !important; }
/* Kennzahlen-Grafik */
.cl-viz header { min-height: 64px; }
.cl-vsec { display: flex; flex-direction: column; gap: 6px; padding: 12px 0 14px; border-top: 1px solid var(--separator); }
.cl-vbig { display: flex; align-items: baseline; gap: 4px; }
.cl-vbig b { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; }
.cl-vbig small { font-size: 15px; font-weight: 500; color: var(--subtle); }
.cl-vgoal { margin-left: auto; font-size: 13px; line-height: 18px; color: var(--subtle); }
.cl-vsub { font-size: 13px; line-height: 18px; color: var(--subtle); }
.cl-vbar { position: relative; height: 10px; border-radius: 5px; background: var(--brand-tint); margin: 4px 0 2px; }
.cl-vbar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 5px; background: var(--chart-1); transform-origin: left; }
.cl-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--foreground); }
.cl-plot { position: relative; height: 72px; display: flex; align-items: flex-end; gap: 12px; margin-top: 6px; }
.cl-col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.cl-col i { width: 100%; max-width: 32px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: var(--chart-1); transform-origin: bottom; }
.cl-goal { position: absolute; left: 0; right: 0; z-index: 1; border-top: 1.5px dashed var(--subtle); pointer-events: none; }
.cl-lbl { display: flex; gap: 12px; }
.cl-lbl span { flex: 1; text-align: center; font-size: 12px; line-height: 16px; color: var(--subtle); }
.cl-in .cl-vbar i { animation: cl-grow .9s cubic-bezier(.2, .9, .25, 1) both; animation-delay: .45s; }
.cl-in .cl-col i { animation: cl-growy .8s cubic-bezier(.2, .9, .25, 1) both; animation-delay: .5s; }
@keyframes cl-grow { from { transform: scaleX(0); } }
@keyframes cl-growy { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .cl-in, .cl-in *, .cl-in .cl-vbar i, .cl-in .cl-col i { animation: none !important; } }

/* Einbettung (index.html?embed=1): nur das iPhone, füllt das Fenster; Parameter siehe index.html */
html.embed, html.embed body { height: 100%; margin: 0; overflow: hidden; background: transparent; }
html.embed .shell { display: block; padding: 0; min-height: 0; height: 100%; }
html.embed .shellbar, html.embed .shell > .foot, html.embed .palinfo, html.embed #codex-tab { display: none !important; }
html.embed .stage { height: 100%; align-items: center; }
html.embed.noframe .device { width: 393px; height: 852px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
html.embed.noframe .phone { border-radius: 0; }

/* iOS Clean: Kennzahlen als Balken (Auslastung, Performance, Jahr), Strich = Ziel; Wochenbalken Montag bis Sonntag */
.cl-vfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; line-height: 18px; color: var(--subtle); }
.cl-key { display: inline-flex; align-items: center; gap: 6px; }
.cl-key i.tk { width: 2px; height: 12px; border-radius: 1px; background: var(--foreground); }
.cl-key i.dash { width: 16px; height: 0; border-top: 1.5px dashed var(--subtle); }
.cl-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--foreground); }
.cl-trend svg { flex: none; }
.cl-vtr { margin-top: 2px; }
.cl-kcard { padding: 0 16px; }
.cl-kcard > .cl-vsec:first-child { border-top: 0; }
button.cl-vsec { display: flex; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; color: inherit; font: inherit; cursor: pointer; min-height: 44px; }
button.cl-vsec .cl-vbar { align-self: stretch; }
.cl-vsec .cl-vbar { align-self: stretch; }
.cl-vsec .cl-rl { text-transform: uppercase; }
/* Aktive Erfassung: fehlende Tätigkeitsbeschreibung dezent hervorgehoben */
.cl-row.todo { background: color-mix(in srgb, var(--chart-1) 9%, transparent); border-radius: 10px; padding: 12px 10px; margin: 2px -10px; border-top-color: transparent; box-shadow: inset 3px 0 0 var(--chart-1); }
.cl-row.todo .cl-rv { color: var(--foreground); font-style: italic; }
.cl-fld.todo > span { color: var(--foreground); }
.cl-fld.todo textarea, .cl-fld.todo input { background: color-mix(in srgb, var(--chart-1) 9%, var(--background)); box-shadow: inset 0 0 0 1.5px var(--chart-1); }
.cl-choices button.cta { background: var(--brand); color: var(--on-brand); box-shadow: none; font-weight: 600; }
/* Seitenpanel offen: Vorführung und alle Animationen im Chat stehen */
#phone.cl-pushed .cl-home *, #phone.cl-pushed .cl-home *::before, #phone.cl-pushed .cl-home *::after { animation-play-state: paused !important; }

/* iOS Clean: Einträge-Karte – Beschreibung mit Label wie im aufgeklappten Teil, Scoring grau, Zahl im Label */
.is-clean .entry .cl-ed { padding-top: 10px; }
.is-clean .entry .top .r { position: relative; }
.is-clean .entry .top .r > .subtle { position: absolute; right: 0; top: 100%; }
.is-clean .entry .cl-ed .xk { font-size: 13px; line-height: 17px; }
.is-clean .entry .cl-ed .xv { font-size: 15px; line-height: 20px; font-weight: 400; }
.is-clean .entry .cl-scr { display: inline-flex; align-items: center; gap: 6px; }
.is-clean .entry .cl-scl { padding: 1px 8px; border-radius: 999px; background: var(--nonbillable-bg); color: var(--nonbillable-text); font-weight: 600; font-size: 13px; line-height: 18px; }

/* iOS Clean: runde AVA-Marke, Uhrzeit und Sendestatus wie in Slim v2 */
.cl-av { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; }
.cl-av svg { stroke-width: 20; }
.cl-meta { display: flex; align-items: center; gap: 8px; min-height: 28px; margin-bottom: -8px; }
.cl-time { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--subtle); }
.cl-ad .cl-dots { height: 20px; }
.cl-ust { align-self: flex-end; margin: -8px 4px 0 0; display: flex; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--subtle); }
.cl-sending { color: var(--chart-1); font-weight: 600; }

.cl-dd { min-height: 28px; }
.cl-dd .cl-dots { height: 28px; }

/* iOS Clean: Jahreshochrechnung in der Finanzlage – Zahl grau und kleiner als der Leistungswert */
.is-clean .cl-fc { margin-top: 12px; }
.is-clean .cl-fc .v3-mv b { font-size: 22px; line-height: 28px; font-weight: 600; color: var(--subtle); }
.is-clean .cl-fc .v3-mv b small { font-size: 14px; font-weight: 500; }

/* iOS Clean: kein farbiger Rand um das Gerät (der grüne Rand markiert nur die Revisions-Stände) */
#device.is-clean { box-shadow: 0 30px 60px rgba(0,0,0,.25), inset 0 0 0 2px rgba(255,255,255,.06); }
