/* ============================================================
   Rittal DSA — Digital Sales Assistant · Premium Mobile UI
   Echtes Rittal Corporate Design · Markenrot #E50043
   Status-Ampel: 🟡 Offen · 🟢 Angegangen · 🔴 Abgelehnt
   ============================================================ */

:root {
  /* Marke */
  --red: #E50043;
  --red-deep: #C2003A;
  --red-soft: #FDE7EE;
  /* Rittal Logo-Akzente */
  --logo-green: #009454;
  --logo-blue: #028CCB;

  /* Neutrale */
  --ink: #15161A;
  --text: #1C1D22;
  --muted: #6C6D77;
  --faint: #9A9BA6;
  --line: #EBEBF0;
  --line-2: #F2F2F6;
  --bg: #F1F1F4;
  --card: #FFFFFF;

  /* Status */
  --st-offen: #E8920C;       --st-offen-soft: #FDEFCF;  --st-offen-ink:#79500A;
  --st-ango:  #15A45C;       --st-ango-soft:  #E2F4EA;  --st-ango-ink:#0A6E3C;
  --st-abge:  #B83227;       --st-abge-soft:  #F4E3E0;  --st-abge-ink:#812219;

  --radius: 16px;
  --radius-sm: 11px;
  --shadow-1: 0 1px 2px rgba(20,21,26,.05), 0 2px 6px rgba(20,21,26,.05);
  --shadow-2: 0 8px 26px rgba(20,21,26,.12);
  --shadow-3: 0 24px 60px rgba(20,21,26,.28);
  --font: 'Helvetica Neue', Helvetica, Arial, 'Inter', 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); color: var(--text);
  background: #c9c9cf;
  background-image: radial-gradient(120% 80% at 50% -10%, #ececed 0%, #d2d2d8 55%, #bfbfc6 100%);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  display: flex; justify-content: center; align-items: flex-start; min-height: 100vh;
}

/* ---------- Device: Vollbild auf dem Handy, Frame auf Desktop ---------- */
.device {
  width: 100%; height: 100vh; height: 100dvh; margin: 0 auto;
  background: var(--bg); position: relative; overflow: hidden; display: flex; flex-direction: column;
}
@media (min-width: 480px) {
  body { padding: 18px 0; align-items: center; }
  .device {
    max-width: 360px; height: min(760px, calc(100dvh - 36px)); max-height: calc(100dvh - 36px);
    border-radius: 38px; border: 10px solid #0e0e12; box-shadow: var(--shadow-3);
  }
  .device::before { content:''; position:absolute; top:0; left:50%; transform:translateX(-50%);
    width: 128px; height: 25px; background:#0e0e12; border-radius: 0 0 16px 16px; z-index: 60; }
}
.app { display: flex; flex-direction: column; height: 100%; min-height: 0; }

/* ---------- Header ---------- */
.hdr { background: var(--card); padding: calc(env(safe-area-inset-top, 0px) + 15px) 20px 0; position: relative; z-index: 20; box-shadow: 0 1px 0 var(--line); }
@media (min-width: 480px) { .hdr { padding-top: 30px; } }
.hdr__bar { display: flex; align-items: center; justify-content: space-between; }
.hdr__brand { display: flex; align-items: center; gap: 11px; }
.hdr__logo { height: 38px; width: auto; display: block; }
.hdr__brandtxt { line-height: 1.05; }
.hdr__brandtxt b { font-size: 13px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); display: block; }
.hdr__brandtxt span { font-size: 10.5px; color: var(--faint); font-weight: 600; letter-spacing: .02em; }

.iconbtn { border: none; background: transparent; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer; color: var(--ink); position: relative; transition: background .15s; }
.iconbtn:hover { background: var(--line-2); }
.iconbtn svg { width: 22px; height: 22px; }
.badge { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800; border-radius: 9px;
  display: grid; place-items: center; border: 2px solid var(--card); }

.hdr__hero { margin: 15px 0 13px; }
.hdr__title { font-size: 27px; font-weight: 800; letter-spacing: -.03em; margin: 0; color: var(--ink); }
.hdr__stats { display: flex; gap: 14px; margin-top: 5px; font-size: 12.5px; }
.hdr__stat b { color: var(--ink); font-weight: 800; }
.hdr__stat span { color: var(--muted); }

.search { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1.5px solid transparent;
  border-radius: 13px; padding: 0 13px; height: 46px; transition: border-color .15s, background .15s; }
.search:focus-within { border-color: var(--ink); background: #fff; }
.search svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.search input { border: none; background: transparent; outline: none; font: inherit; font-size: 15px; width: 100%; color: var(--text); }

.chips { display: flex; gap: 8px; padding: 13px 2px 14px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: all .15s; }
.chip:hover { border-color: var(--faint); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip__n { font-size: 11px; opacity: .65; font-weight: 800; }
.dot--offen { background: var(--st-offen); } .dot--ango { background: var(--st-ango); } .dot--abge { background: var(--st-abge); }

/* ---------- Body / list ---------- */
.body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px 96px; }
.body::-webkit-scrollbar { width: 0; }
.list-meta { font-size: 11.5px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 6px 4px 12px; }

/* Status-Gruppen-Header */
.group { display: flex; align-items: center; gap: 9px; padding: 16px 4px 9px; }
.group:first-child { padding-top: 8px; }
.group__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.group__label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.group__n { font-size: 11px; font-weight: 800; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; }

/* Worklist-Meta auf der Card */
.lead__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 11px; }
.due { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; padding: 4px 9px 4px 7px; border-radius: 8px; white-space: nowrap; }
.due svg { width: 13px; height: 13px; flex: none; }
.due--over { background: var(--st-abge-soft); color: var(--st-abge-ink); }
.due--soon { background: var(--st-offen-soft); color: var(--st-offen-ink); }
.due--far  { background: var(--bg); color: var(--muted); }
.due--lost { background: var(--st-abge-soft); color: var(--st-abge-ink); }
.lead__lc { font-size: 11.5px; color: var(--faint); font-weight: 600; }

/* Lead card */
.lead { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; margin-bottom: 12px; cursor: pointer; position: relative; box-shadow: var(--shadow-1);
  transition: transform .12s, box-shadow .15s; overflow: hidden; }
.lead::before { content:''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); }
.lead:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.lead:active { transform: scale(.992); }
.lead--offen::before { background: var(--st-offen); }
.lead--ango::before  { background: var(--st-ango); }
.lead--abge::before  { background: var(--st-abge); }
.lead--abge { opacity: .72; background: #FBFBFC; }
.lead--abge:hover { opacity: 1; }

.lead__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lead__co { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 3px; line-height: 1.18; color: var(--ink); }
.lead__sub { font-size: 12.5px; color: var(--muted); }

/* Status pill */
.spill { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 11.5px; font-weight: 800;
  padding: 5px 10px 5px 8px; border-radius: 999px; white-space: nowrap; }
.spill .dot { width: 8px; height: 8px; border-radius: 50%; }
.spill--offen { background: var(--st-offen-soft); color: var(--st-offen-ink); } .spill--offen .dot { background: var(--st-offen); }
.spill--ango  { background: var(--st-ango-soft);  color: var(--st-ango-ink); }  .spill--ango .dot { background: var(--st-ango); }
.spill--abge  { background: var(--st-abge-soft);  color: var(--st-abge-ink); }  .spill--abge .dot { background: var(--st-abge); }

.lead__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: var(--bg); color: #4A4B54; }
.tag--more { background: transparent; border: 1px dashed var(--line); color: var(--faint); }

.lead__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--line-2); }
.lead__owner { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 11px; font-weight: 800; color: #fff; background: var(--ink); letter-spacing: .02em; }
.avatar--stack { border: 2px solid #fff; margin-left: -10px; }
.avatar--stack:first-child { margin-left: 0; }
.lead__owner__name { font-size: 12.5px; font-weight: 700; color: var(--text); min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead__owner__name small { display:block; color: var(--faint); font-weight: 600; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lead__val { flex: none; }
.lead__val { text-align: right; flex: none; }
.lead__val b { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.lead__val span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }

.empty { text-align: center; color: var(--faint); padding: 64px 24px; }
.empty svg { width: 44px; height: 44px; opacity: .35; margin-bottom: 12px; }

/* FAB */
.fab { position: absolute; right: 18px; bottom: 22px; width: 58px; height: 58px; border-radius: 19px;
  background: var(--red); color: #fff; border: none; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(229,0,67,.42); cursor: pointer; z-index: 30; transition: transform .12s, background .15s; }
.fab:hover { background: var(--red-deep); } .fab:active { transform: scale(.93); }
.fab svg { width: 26px; height: 26px; }

/* ---------- Sheet (Detail) ---------- */
.scrim { position: absolute; inset: 0; background: rgba(15,16,20,.5); opacity: 0; visibility: hidden;
  transition: opacity .26s; z-index: 40; backdrop-filter: blur(1.5px); }
.scrim.on { opacity: 1; visibility: visible; }

.sheet { position: absolute; left: 0; right: 0; bottom: 0; top: 26px; background: var(--bg);
  border-radius: 24px 24px 0 0; z-index: 50; transform: translateY(101%);
  transition: transform .34s cubic-bezier(.32,.72,0,1); display: flex; flex-direction: column; box-shadow: var(--shadow-3); }
.sheet.on { transform: translateY(0); }
.sheet__grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.6); margin: 9px auto 0; flex: none; position: relative; z-index: 2; }

.sheet__head { background: var(--card); padding: 12px 20px 16px; border-radius: 24px 24px 0 0;
  position: relative; flex: none; box-shadow: 0 1px 0 var(--line); }
.sheet__close { position: absolute; top: 12px; right: 16px; width: 34px; height: 34px; border-radius: 11px;
  border: none; background: var(--bg); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.sheet__close svg { width: 18px; height: 18px; }
.sheet__co { font-size: 21px; font-weight: 800; letter-spacing: -.03em; margin: 4px 44px 3px 0; line-height: 1.15; color: var(--ink); }
.sheet__meta { font-size: 13px; color: var(--muted); }

/* Pipeline-Ampel im Detail */
.ampel { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 11px 13px; border-radius: 13px; }
.ampel--offen { background: var(--st-offen-soft); } .ampel--ango { background: var(--st-ango-soft); } .ampel--abge { background: var(--st-abge-soft); }
.ampel__lamps { display: flex; gap: 6px; flex: none; }
.ampel__lamp { width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: .45; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.07); }
.ampel__lamp.l-offen { background: var(--st-offen); } .ampel__lamp.l-ango { background: var(--st-ango); } .ampel__lamp.l-abge { background: var(--st-abge); }
.ampel__lamp.lit { opacity: 1; box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.ampel__txt b { font-size: 13.5px; font-weight: 800; display: block; }
.ampel__txt span { font-size: 11.5px; line-height: 1.35; display: block; margin-top: 1px; }
.ampel--offen .ampel__txt b { color: var(--st-offen-ink); } .ampel--offen .ampel__txt span { color: #9A6A12; }
.ampel--ango .ampel__txt b { color: var(--st-ango-ink); }  .ampel--ango .ampel__txt span { color: #18794A; }
.ampel--abge .ampel__txt b { color: var(--st-abge-ink); }  .ampel--abge .ampel__txt span { color: #9B3344; }

/* Interaktiver Status-Umschalter im Detail */
.statusseg { display: flex; gap: 5px; margin-top: 14px; background: var(--bg); padding: 5px; border-radius: 13px; }
.statusseg .seg { flex: 1; border: none; background: transparent; font: inherit; font-size: 12px; font-weight: 800;
  color: var(--muted); padding: 9px 4px; border-radius: 9px; cursor: pointer; transition: all .15s;
  display: flex; align-items: center; justify-content: center; gap: 6px; }
.statusseg .seg::before { content:''; width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.statusseg .seg--offen::before { background: var(--st-offen); } .statusseg .seg--ango::before { background: var(--st-ango); } .statusseg .seg--abge::before { background: var(--st-abge); }
.statusseg .seg:not(.on)::before { opacity: .4; }
.statusseg .seg:not(.on):hover { color: var(--ink); }
.statusseg .seg.on { box-shadow: var(--shadow-1); }
.statusseg .seg--offen.on { background: var(--st-offen-soft); color: var(--st-offen-ink); }
.statusseg .seg--ango.on  { background: var(--st-ango-soft);  color: var(--st-ango-ink); }
.statusseg .seg--abge.on  { background: var(--st-abge-soft);  color: var(--st-abge-ink); }
.status-desc { font-size: 12px; color: var(--muted); margin-top: 8px; padding-left: 3px; }

.sheet__body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px 24px; }
.sheet__body::-webkit-scrollbar { width: 0; }

.sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; margin-top: 13px; }
.sec__t { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; }
.sec__t .add { font-size: 12.5px; font-weight: 800; color: var(--red); text-transform: none; letter-spacing: 0;
  cursor: pointer; display: inline-flex; align-items: center; gap: 3px; border: none; background: none; padding: 0; }
.sec__t .add svg { width: 15px; height: 15px; }

.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.kv:last-child { border-bottom: none; }
.kv__k { color: var(--muted); flex: none; }
.kv__v { color: var(--ink); font-weight: 700; text-align: right; }
.kv__v a { color: var(--ink); text-decoration: none; } .kv__v a:active { color: var(--red); }

.req { font-size: 14px; line-height: 1.55; color: #34353C; }

/* Loss banner */
.loss { background: var(--st-abge-soft); border-radius: 12px; padding: 12px 13px; margin-top: 2px; }
.loss b { font-size: 12px; font-weight: 800; color: var(--st-abge-ink); display: flex; align-items: center; gap: 6px; }
.loss b svg { width: 15px; height: 15px; flex: none; }
.loss p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: #7C2A38; }

/* Pills (Produkte/Services) */
.assign { display: flex; flex-direction: column; gap: 8px; }
.pill { display: flex; align-items: center; gap: 11px; background: var(--bg); border-radius: 11px; padding: 10px 12px; }
.pill__ic { width: 32px; height: 32px; border-radius: 9px; background: #fff; display: grid; place-items: center; flex: none; color: var(--red); box-shadow: var(--shadow-1); }
.pill__ic svg { width: 18px; height: 18px; }
.pill__b { flex: 1; min-width: 0; }
.pill__n { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.pill__c { font-size: 11px; color: var(--faint); font-weight: 600; }
.pill__x { cursor: pointer; color: var(--faint); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pill__x:hover { color: var(--red); background: var(--red-soft); } .pill__x svg { width: 14px; height: 14px; }

/* Personen */
.person { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.person:last-child { border-bottom: none; }
.person .avatar { width: 38px; height: 38px; font-size: 13px; }
.person__n { font-size: 14px; font-weight: 800; color: var(--ink); }
.person__r { font-size: 11.5px; color: var(--muted); }
.person__x { margin-left: auto; cursor: pointer; color: var(--faint); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.person__x:hover { color: var(--red); background: var(--red-soft); }

/* Probability bar */
.prob__track { height: 8px; background: var(--line-2); border-radius: 5px; overflow: hidden; margin-top: 3px; }
.prob__fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--red), #ff4d7d); }
.field-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin: 14px 0 6px; }
select.input { width: 100%; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 12px; outline: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236C6D77' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
select.input:focus { border-color: var(--ink); background-color: #fff; }

/* Todos */
.todo { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.todo:last-child { border-bottom: none; }
.todo__chk { flex: none; width: 23px; height: 23px; border-radius: 7px; border: 2px solid var(--line); background: #fff;
  cursor: pointer; display: grid; place-items: center; margin-top: 1px; transition: all .15s; }
.todo__chk svg { width: 14px; height: 14px; color: #fff; opacity: 0; }
.todo.done .todo__chk { background: var(--st-ango); border-color: var(--st-ango); } .todo.done .todo__chk svg { opacity: 1; }
.todo.over .todo__chk { border-color: var(--st-abge); }
.todo__n { font-size: 13.5px; line-height: 1.4; color: var(--text); }
.todo.done .todo__n { color: var(--faint); text-decoration: line-through; }
.todo__m { font-size: 11.5px; color: var(--faint); margin-top: 3px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.todo__m .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.over-badge { color: var(--st-abge); font-weight: 800; }

/* Aktivitäten */
.act { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.act:last-child { border-bottom: none; }
.act__line { flex: none; display: flex; flex-direction: column; align-items: center; }
.act__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--red); margin-top: 3px; flex: none; box-shadow: 0 0 0 4px var(--red-soft); }
.act__b { flex: 1; min-width: 0; }
.act__meta { font-size: 11.5px; color: var(--faint); font-weight: 700; margin-bottom: 3px; }
.act__meta .who { color: var(--red); }
.act__txt { font-size: 13.5px; line-height: 1.5; color: #34353C; }

.hint-line { font-size: 12.5px; color: var(--faint); line-height: 1.45; }

/* Sticky action bar */
.actionbar { flex: none; background: var(--card); border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 14.5px;
  font-weight: 800; border-radius: 13px; padding: 14px 16px; cursor: pointer; border: 1.5px solid transparent; transition: all .13s; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(229,0,67,.3); }
.btn--primary:hover { background: var(--red-deep); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--faint); }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn svg { width: 19px; height: 19px; }

/* ---------- Report modal (Speech-to-Text) ---------- */
.modal { position: absolute; inset: 0; z-index: 80; display: none; }
.modal.on { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(15,16,20,.55); }
.modal__panel { position: absolute; left: 0; right: 0; bottom: 0; top: 0; background: var(--bg);
  display: flex; flex-direction: column; animation: slideup .3s cubic-bezier(.32,.72,0,1); }
@keyframes slideup { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal__head { background: var(--card); padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 1px 0 var(--line); flex: none; }
@media (min-width:480px){ .modal__head { padding-top: 30px; } }
.modal__head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); flex: 1; }
.modal__head .sub { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.modal__body { flex: 1; overflow-y: auto; padding: 24px 20px; display: flex; flex-direction: column; align-items: center; }

.rec-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 0 4px; }
.mic { position: relative; width: 96px; height: 96px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(229,0,67,.4); transition: transform .12s, background .15s; }
.mic:active { transform: scale(.95); }
.mic svg { width: 40px; height: 40px; position: relative; z-index: 2; }
.mic.is-recording { background: var(--red-deep); animation: micpulse 1.5s infinite; }
.mic.is-recording::after { content:''; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid rgba(229,0,67,.4); animation: ring 1.5s infinite; }
@keyframes micpulse { 0%,100%{ box-shadow: 0 12px 30px rgba(229,0,67,.4);} 50%{ box-shadow: 0 12px 42px rgba(229,0,67,.7);} }
@keyframes ring { 0%{ transform: scale(.85); opacity:.8;} 100%{ transform: scale(1.5); opacity: 0;} }
.mic-label { font-size: 13px; font-weight: 700; color: var(--muted); min-height: 18px; text-align: center; }
.mic-label[data-state="recording"] { color: var(--red); }
.mic-label[data-state="error"] { color: var(--st-abge); }

.rec-text { width: 100%; margin-top: 20px; font: inherit; font-size: 15px; line-height: 1.55; color: var(--text);
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 15px; min-height: 130px; resize: none; outline: none; }
.rec-text:focus { border-color: var(--ink); }
.rec-hint { font-size: 12px; color: var(--faint); margin-top: 10px; text-align: center; line-height: 1.45; }
.modal__foot { flex: none; background: var(--card); border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }

/* ---------- Picker ---------- */
.picker { position: absolute; inset: 0; z-index: 70; display: none; }
.picker.on { display: block; }
.picker__scrim { position: absolute; inset: 0; background: rgba(15,16,20,.5); }
.picker__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82%; background: #fff;
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column; box-shadow: var(--shadow-3); animation: slideup .26s cubic-bezier(.32,.72,0,1); }
.picker__head { padding: 17px 18px 13px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.picker__head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.picker__list { overflow-y: auto; padding: 8px 12px 20px; }
.picker__g { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); padding: 13px 6px 6px; }
.pi { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 11px; cursor: pointer; transition: background .12s; }
.pi:hover { background: var(--bg); }
.pi.sel { background: var(--red-soft); }
.pi__chk { width: 21px; height: 21px; border-radius: 7px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; background:#fff; }
.pi.sel .pi__chk { background: var(--red); border-color: var(--red); }
.pi__chk svg { width: 13px; height: 13px; color: #fff; opacity: 0; } .pi.sel .pi__chk svg { opacity: 1; }
.pi__n { font-size: 14px; font-weight: 700; color: var(--ink); }
.pi__note { font-size: 11.5px; color: var(--muted); }
.picker__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }

/* ---------- Toast ---------- */
.toast { position: absolute; left: 50%; bottom: 32px; transform: translate(-50%, 24px); background: var(--ink); color: #fff;
  font-size: 13.5px; font-weight: 700; padding: 12px 18px; border-radius: 13px; box-shadow: var(--shadow-2); z-index: 95;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.32,.72,0,1); display: flex; align-items: center; gap: 10px; max-width: 84%; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 19px; height: 19px; color: #4ade80; flex: none; }
