:root {
  --bg: #e8eef6;
  --card: #ffffff;
  --card-2: #f1f5fb;
  --line: #e3e9f2;
  --text: #0e1b2c;
  --muted: #687891;
  --primary: #1d6cf2;
  --primary-2: #0a4fd6;
  --primary-soft: #e3edff;
  --navy: #0f2747;
  --green: #138a43;
  --green-soft: #dcf5e6;
  --red: #d93f45;
  --red-soft: #fde4e5;
  --amber: #b26b00;
  --amber-soft: #fff1d6;
  --shadow: 0 1px 2px rgba(16, 38, 74, .04), 0 8px 24px rgba(16, 38, 74, .05);
  --radius: 28px;
  --radius-sm: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a111e; --card: #121b2c; --card-2: #182337; --line: #223049; --text: #e8eef8; --muted: #8b9ab3;
    --primary-soft: #16294a; --navy: #3d7bff; --green: #4ad587; --green-soft: #12301f; --red: #ff7a7f; --red-soft: #3a1a1d;
    --amber: #f3b54a; --amber-soft: #352812; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a111e; --card: #121b2c; --card-2: #182337; --line: #223049; --text: #e8eef8; --muted: #8b9ab3;
  --primary-soft: #16294a; --navy: #3d7bff; --green: #4ad587; --green-soft: #12301f; --red: #ff7a7f; --red-soft: #3a1a1d;
  --amber: #f3b54a; --amber-soft: #352812; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- shell ---------- */
.shell { max-width: 1480px; margin: 0 auto; padding: 24px 28px 60px; }
.topbar { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.brand { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 22px; padding: 12px 20px 12px 14px; box-shadow: var(--shadow); font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.brand .mark { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(140deg, #3b86ff, var(--primary-2)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-top: -3px; }
.nav { display: flex; gap: 4px; background: var(--card); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.nav button { border: 0; background: none; padding: 10px 20px; border-radius: 999px; cursor: pointer; font-weight: 600; white-space: nowrap; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.nav button svg.i { width: 18px; height: 18px; }
.nav button:hover { background: var(--card-2); }
.nav button.on { background: var(--primary); color: #fff; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.pill-box { display: flex; align-items: center; gap: 6px; background: var(--card); border-radius: 22px; padding: 8px; box-shadow: var(--shadow); }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 14px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.icon-btn:hover { background: var(--card-2); }
.badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.user { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 22px; padding: 8px 14px 8px 8px; box-shadow: var(--shadow); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user b { display: block; font-size: 14px; }
.user span { font-size: 12px; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--green); margin-right: 5px; vertical-align: 1px; }
.status-dot.off { background: var(--red); }

.main { min-width: 0; }

/* ---------- headings ---------- */
.hello h1 { font-size: 46px; letter-spacing: -.035em; line-height: 1.05; margin: 2px 0 10px; font-weight: 800; }
.hello p { margin: 0 0 30px; color: var(--muted); font-size: 16px; max-width: 900px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 36px; letter-spacing: -.03em; margin: 0; font-weight: 800; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid + .grid { margin-top: 22px; }
.grid.top { grid-template-columns: minmax(280px, 1fr) minmax(400px, 1.25fr) minmax(300px, 1fr); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.area-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.area-tag.blue { background: var(--primary-soft); color: var(--primary); }
.area-tag svg.i { width: 16px; height: 16px; }
.money { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.money > div { background: var(--card-2); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.money span { display: block; font-size: 12px; color: var(--muted); }
.money b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-title { margin: 22px 0 4px; font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.seg.full { display: flex; width: 100%; }
.seg.full label { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.seg.full label.on { background: var(--card); box-shadow: var(--shadow); color: var(--primary); }
.seg.full input { display: none; }
.wa-box { display: flex; align-items: center; gap: 14px; background: var(--card-2); border-radius: 18px; padding: 14px; }
.big-av { width: 52px; height: 52px; }
.qr-box { width: 280px; height: 280px; max-width: 100%; margin: 0 auto 16px; border-radius: 18px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.qr-box img { width: 100%; height: 100%; }
.ok-big { color: var(--green); font-weight: 800; font-size: 22px; display: flex; align-items: center; gap: 8px; }
.steps { color: var(--muted); font-size: 14px; padding-left: 20px; margin: 0; }
details.adv summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 12px; }
details.adv summary::-webkit-details-marker { display: none; }
details.adv summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
details.adv[open] summary::after { content: "▴"; }
.item.off { opacity: .55; }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); min-width: 0; }
.card.pad-sm { padding: 14px; }
.card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.card .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--card-2); color: var(--text); white-space: nowrap; }
.chip.blue { background: var(--primary-soft); color: var(--primary); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.mid { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 22px 0 10px; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 700; cursor: pointer; background: var(--card-2); color: var(--text); transition: transform .08s, filter .15s; white-space: nowrap; }
.btn:hover { filter: brightness(.97); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn .count { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; min-width: 20px; height: 20px; display: grid; place-items: center; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }

.progress { height: 10px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3b86ff, var(--primary-2)); transition: width .6s; }
.progress.green > i { background: linear-gradient(90deg, #2fc46f, #138a43); }

.inset { background: var(--card-2); border-radius: 22px; padding: 16px; }
.inset-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 12px; font-size: 14px; }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.mini { background: var(--card); border-radius: 16px; padding: 12px 14px; }
.mini .t { font-size: 12px; font-weight: 700; border-left: 2px solid var(--primary); padding-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .v { font-size: 18px; font-weight: 800; margin-top: 8px; font-variant-numeric: tabular-nums; }
.mini .s { font-size: 12px; color: var(--muted); }
.mini .p { font-size: 12px; font-weight: 700; color: var(--green); margin-top: 6px; }

.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; }
.tile { background: var(--card-2); border-radius: 22px; padding: 20px; min-height: 186px; position: relative; display: flex; flex-direction: column; }
.tile .tile-head { display: flex; justify-content: space-between; align-items: flex-start; font-weight: 700; font-size: 14px; }
.tile .round { width: 36px; height: 36px; border-radius: 50%; background: var(--card); display: grid; place-items: center; }
.tile .round svg { width: 17px; height: 17px; }
.tile .foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tile.hero { background: linear-gradient(150deg, #2f86ff 0%, #1460ea 55%, #0a4bd0 100%); color: #fff; overflow: hidden; }
.tile.hero .round { background: rgba(255,255,255,.18); color: #fff; }
.tile.hero .foot { color: rgba(255,255,255,.85); }
.tile.hero .chip { background: rgba(255,255,255,.2); color: #fff; }
.tile.hero::after { content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,.35) 50%); border-top-left-radius: 6px; }

/* chart */
.chart-box { background: var(--card-2); border-radius: 22px; padding: 16px 18px 12px; margin-top: 4px; }
.chart-legend { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.legend { display: flex; gap: 12px; font-weight: 500; color: var(--muted); font-size: 12px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.bars { display: grid; grid-template-columns: 34px 1fr; height: 210px; }
.bars .yaxis { display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; color: var(--muted); padding-bottom: 22px; }
.bars .plot { position: relative; display: flex; align-items: flex-end; gap: 6px; padding-bottom: 22px; border-bottom: 0; }
.bars .goal-line { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--primary); opacity: .7; }
.bars .goal-line span { position: absolute; right: 0; top: -18px; font-size: 10px; font-weight: 700; color: var(--primary); background: var(--card-2); padding: 0 4px; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 30px; border-radius: 8px; background: var(--navy); min-height: 3px; transition: height .5s; }
.bar.hit i { background: var(--primary); }
.bar.today i { background: repeating-linear-gradient(135deg, #3b9bff 0 5px, #6cc1ff 5px 9px); }
.bar span { position: absolute; bottom: -20px; font-size: 10px; color: var(--muted); }
.bar:hover::before { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); background: var(--text); color: var(--card); font-size: 11px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; z-index: 2; }

/* lists */
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.item .ic.red { background: var(--red-soft); color: var(--red); }
.item .ic.green { background: var(--green-soft); color: var(--green); }
.item .ic.amber { background: var(--amber-soft); color: var(--amber); }
.item .tx { min-width: 0; flex: 1; }
.item .tx b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .tx span { font-size: 12px; color: var(--muted); }
.item .val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { color: var(--muted); font-size: 14px; padding: 18px 0; text-align: center; }

/* chat */
.chat { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 4px 2px; }
.chat.tall { height: calc(100vh - 330px); min-height: 380px; }
.chat.short { max-height: 330px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 18px; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.msg.assistant { align-self: flex-start; background: var(--card-2); border-bottom-left-radius: 6px; }
.msg .meta { display: block; font-size: 10.5px; opacity: .7; margin-top: 4px; }
.msg audio { display: block; width: 240px; max-width: 100%; height: 34px; margin-bottom: 6px; }
.msg img { display: block; max-width: 240px; border-radius: 12px; margin-bottom: 6px; }
.msg .kind { font-size: 11px; font-weight: 700; opacity: .8; display: block; margin-bottom: 2px; }
.composer { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; flex-wrap: wrap; }
.composer textarea { flex: 1; min-width: 220px; resize: none; border: 1px solid var(--line); background: var(--card-2); border-radius: 18px; padding: 12px 16px; min-height: 48px; max-height: 160px; outline: none; }
.composer textarea:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.seg { display: inline-flex; background: var(--card-2); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--card); box-shadow: var(--shadow); color: var(--primary); }

/* timeline */
.timeline .item .when { font-size: 12px; font-weight: 700; color: var(--primary); min-width: 64px; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
thead th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 12px 14px; background: var(--card-2); }
thead th:first-child { border-radius: 14px 0 0 14px; }
thead th:last-child { border-radius: 0 14px 14px 0; text-align: right; }
tbody td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody td:last-child { text-align: right; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-weight: 700; font-variant-numeric: tabular-nums; }

/* forms */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { border: 1px solid var(--line); background: var(--card-2); border-radius: 14px; padding: 11px 14px; outline: none; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field.wide { grid-column: 1 / -1; }
.field .hint { font-size: 12px; color: var(--muted); }
.switch { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--line); border: 0; cursor: pointer; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(20px); }

/* routines */
.routines { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.routine { display: flex; flex-direction: column; gap: 12px; }
.routine.off { opacity: .6; }
.routine .time { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.routine p { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.days { display: flex; gap: 4px; }
.days span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--card-2); color: var(--muted); }
.days span.on { background: var(--primary-soft); color: var(--primary); }

/* status */
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--card-2); border-radius: 12px; padding: 12px 14px; word-break: break-all; white-space: pre-wrap; }
.copy-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row .code { flex: 1; }

/* modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 18, 36, .45); display: grid; place-items: center; z-index: 50; padding: 16px; backdrop-filter: blur(3px); }
.modal { background: var(--card); border-radius: 26px; padding: 26px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal h2 { margin: 0 0 18px; font-size: 20px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--text); color: var(--card); padding: 12px 20px; border-radius: 14px; font-weight: 600; font-size: 14px; transition: transform .25s; z-index: 60; max-width: calc(100% - 32px); }
#toast.show { transform: translateX(-50%) translateY(0); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: min(420px, 100%); padding: 36px; text-align: center; }
.login .mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; background: linear-gradient(140deg, #3b86ff, var(--primary-2)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 30px; }
.login h1 { margin: 0 0 4px; font-size: 28px; letter-spacing: -.02em; }
.login p { margin: 0 0 24px; color: var(--muted); }
.login input { width: 100%; border: 1px solid var(--line); background: var(--card-2); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; outline: none; text-align: center; }
.login .btn { width: 100%; }

.alert { display: flex; gap: 12px; align-items: center; background: var(--amber-soft); color: var(--amber); border-radius: 18px; padding: 14px 18px; margin-bottom: 22px; font-weight: 600; font-size: 14px; }
.alert .btn { margin-left: auto; }

@media (max-width: 1280px) {
  .grid.top { grid-template-columns: 1fr 1fr; }
  .grid.top > :last-child { grid-column: 1 / -1; }
  .grid.three { grid-template-columns: 1fr 1fr; }
  .grid.three > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav button span { display: none; }
  .nav { justify-content: space-around; }
}
@media (max-width: 900px) {
  .shell { padding: 16px 16px 40px; }
  .topbar { flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
  .nav { order: 3; width: 100%; margin: 0; }
  .top-actions { margin-left: auto; }
  .user .who { display: none; }
  .grid.top, .grid.three, .grid.two { grid-template-columns: 1fr; }
  .nav button { padding: 9px 14px; }
  .money { grid-template-columns: 1fr 1fr; }
  .hello h1 { font-size: 34px; }
  .big { font-size: 32px; }
  .card { padding: 20px; border-radius: 24px; }
  .quad { grid-template-columns: 1fr 1fr; padding: 10px; gap: 10px; }
  .tile { min-height: 150px; padding: 16px; }
  .mid { font-size: 26px; margin: 14px 0 8px; }
  .msg { max-width: 90%; }
}
@media (max-width: 480px) {
  .quad { grid-template-columns: 1fr; }
  .btns { grid-template-columns: 1fr; }
  .routines { grid-template-columns: 1fr; }
}

.mark.photo { padding: 0; overflow: hidden; background: #111; }
.mark.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.login .mark.photo { width: 88px; height: 88px; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.brand .mark.photo { border-radius: 50%; }

a.icon-btn { text-decoration: none; }
.icon-btn.live { background: var(--green); color: #fff; }
.icon-btn.live:hover { background: var(--green); filter: brightness(1.08); }

.voice-current { display: flex; align-items: center; gap: 12px; background: var(--card-2); border-radius: 16px; padding: 10px 12px; }
.voice-current .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.voice-current .tx { flex: 1; min-width: 0; }
.voice-current .tx b { display: block; }
.voice-current .tx span { font-size: 12px; color: var(--muted); }
.voice-search { width: 100%; border: 1px solid var(--line); background: var(--card-2); border-radius: 14px; padding: 11px 14px; margin: 12px 0 4px; outline: none; }
.voice-list { max-height: 55vh; overflow-y: auto; padding-right: 4px; }
.voice-row.sel { background: var(--primary-soft); border-radius: 14px; padding-left: 8px; padding-right: 8px; }
.modal { width: min(640px, 100%); }
