:root {
  --blue-50: #eef3ff; --blue-100: #dbe5ff; --blue-200: #bccdff; --blue-500: #3a66f0; --blue-600: #2453e6; --blue-700: #1c42c2;
  --ink: #0e1726; --ink-2: #3a4556; --ink-3: #6b7587; --ink-4: #9aa3b2;
  --line: #e7eaf0; --line-2: #f0f2f6; --bg: #f7f8fa; --card: #ffffff;
  --green: #12a150; --green-bg: #e8f7ee; --amber: #c27a00; --amber-bg: #fff5e0; --red: #d93a3a; --red-bg: #fdecec; --violet: #7a4fe0; --violet-bg: #f2edfe;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 23, 38, .04), 0 2px 8px rgba(14, 23, 38, .04);
  --shadow-lg: 0 12px 40px rgba(14, 23, 38, .12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.hidden { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-200); outline-offset: 2px; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--blue-100); border-top-color: var(--blue-600); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fade-in { animation: rise .28s ease backwards; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; white-space: nowrap; text-decoration: none !important; color: var(--ink); }
.btn:hover { background: var(--line-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--blue-600); border-color: var(--blue-600); color: #fff; box-shadow: 0 1px 2px rgba(36, 83, 230, .25); }
.btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: #0e8a44; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--line-2); }
.btn-danger { color: var(--red); }
.btn-lg { padding: 16px 24px; font-size: 17px; border-radius: 14px; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn-icon { padding: 8px; width: 38px; height: 38px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Formulários ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--ink-3); }
.input, textarea.input, select.input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .15s, box-shadow .15s; font-size: 16px; }
.input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-50); }
textarea.input { min-height: 110px; resize: vertical; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spacer { flex: 1; }
.error-msg { background: var(--red-bg); color: var(--red); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 14px; }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 500px at 50% -10%, var(--blue-50), transparent); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow-lg); }
.auth-card .logo { margin-bottom: 22px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card p.muted { margin-bottom: 24px; }

/* ---------- Estrutura ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); text-decoration: none !important; }
.logo img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-3); font-weight: 600; font-size: 14px; text-decoration: none; }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a.active { color: var(--ink); background: var(--line-2); }
.page { max-width: 1120px; margin: 0 auto; padding: 28px 20px 80px; }
.page-narrow { max-width: 760px; }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.back svg { width: 16px; height: 16px; }

/* ---------- Notificações (sino) ---------- */
.bell { position: relative; }
.bell .badge { position: absolute; top: 3px; right: 3px; 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; border: 2px solid #fff; }
.popover { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 40; overflow: hidden; animation: rise .18s ease; }
.popover-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.popover-list { max-height: 420px; overflow: auto; }
.notif { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none !important; }
.notif:hover { background: var(--bg); }
.notif.unread { background: var(--blue-50); }
.notif strong { display: block; font-size: 14px; }
.notif span { font-size: 13px; color: var(--ink-3); }
.menu { position: relative; }
.menu .popover { width: 220px; padding: 6px; }
.menu .popover button, .menu .popover a { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--ink); font-weight: 500; }
.menu .popover button:hover, .menu .popover a:hover { background: var(--line-2); text-decoration: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; }

/* ---------- Status ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.s-aguardando_envio { background: var(--amber-bg); color: var(--amber); }
.s-enviado { background: var(--blue-50); color: var(--blue-600); }
.s-recebido { background: var(--blue-50); color: var(--blue-700); }
.s-em_edicao { background: var(--violet-bg); color: var(--violet); }
.s-em_revisao { background: #fff0e6; color: #d35b00; }
.s-aprovado { background: var(--green-bg); color: var(--green); }
.s-agendado { background: #e6f6fb; color: #0b7fa6; }
.s-publicado { background: #e9f9ef; color: #0b7a3b; }

/* mini progresso (8 pontinhos) */
.steps-mini { display: flex; gap: 4px; }
.steps-mini i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps-mini i.done { background: var(--blue-500); }
.steps-mini i.current { background: var(--blue-600); box-shadow: 0 0 0 2px var(--blue-100); }

/* timeline completa */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); position: relative; }
.timeline li { position: relative; text-align: center; padding: 0 4px; }
.timeline li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline li.done::before, .timeline li.current::before { background: var(--blue-500); }
.timeline .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: var(--ink-4); font-size: 13px; font-weight: 700; transition: all .3s; }
.timeline li.done .dot { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.timeline li.current .dot { background: var(--blue-600); border-color: var(--blue-600); color: #fff; box-shadow: 0 0 0 6px var(--blue-100); animation: pulse 2s ease-in-out infinite; }
.timeline .dot svg { width: 16px; height: 16px; }
.timeline .t-label { font-size: 12.5px; font-weight: 600; color: var(--ink-3); line-height: 1.3; }
.timeline li.current .t-label { color: var(--ink); }
.timeline li.done .t-label { color: var(--ink-2); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px var(--blue-50); } }
.status-explain { margin-top: 22px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--blue-50); color: var(--blue-700); font-weight: 550; }

/* ---------- Cliente: dashboard ---------- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px; background: linear-gradient(135deg, #fff 0%, var(--blue-50) 100%); border: 1px solid var(--line); border-radius: 20px; }
.hero h1 { margin-bottom: 6px; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ep-card { display: block; padding: 18px; color: var(--ink); text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ep-card:hover { border-color: var(--blue-200); box-shadow: 0 6px 20px rgba(36, 83, 230, .08); transform: translateY(-1px); }
.ep-card .code { font-size: 12px; font-weight: 700; color: var(--ink-4); letter-spacing: .04em; }
.ep-card h3 { font-size: 16px; margin: 4px 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.ep-card .meta svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.attention { border-color: #ffd5b8; background: linear-gradient(0deg, #fff, #fff8f2); }
.attention-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; flex-wrap: wrap; }
.attention-row + .attention-row { border-top: 1px solid #ffe6d4; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--ink); text-decoration: none !important; border-top: 1px solid var(--line-2); }
.list-row:first-child { border-top: 0; }
.list-row:hover { background: var(--bg); }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty svg { width: 44px; height: 44px; color: var(--blue-200); margin-bottom: 10px; }

/* ---------- Assistente de envio ---------- */
.wizard-steps { display: flex; gap: 8px; margin: 6px 0 26px; }
.wizard-steps div { flex: 1; }
.wizard-steps .bar { height: 4px; border-radius: 2px; background: var(--line); margin-bottom: 8px; transition: background .3s; }
.wizard-steps .on .bar { background: var(--blue-600); }
.wizard-steps span { font-size: 12.5px; font-weight: 600; color: var(--ink-4); }
.wizard-steps .on span { color: var(--ink); }
.wizard-foot { display: flex; gap: 12px; justify-content: space-between; margin-top: 26px; }
.dropzone { border: 2px dashed var(--blue-200); background: var(--blue-50); border-radius: var(--radius); padding: 28px 20px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; display: block; }
.dropzone:hover, .dropzone.drag { background: var(--blue-100); border-color: var(--blue-500); }
.dropzone svg { width: 36px; height: 36px; color: var(--blue-600); margin-bottom: 8px; }
.dropzone strong { display: block; font-size: 16px; color: var(--ink); }
.dropzone input { display: none; }
.file-block { margin-bottom: 26px; }
.file-block h3 { margin-bottom: 4px; }
.file-block > p { margin-bottom: 12px; }
.file-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; background: #fff; }
.file-row .top { display: flex; align-items: center; gap: 12px; }
.file-row .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.file-row .ic svg { width: 20px; height: 20px; }
.file-row .name { font-weight: 600; word-break: break-all; font-size: 14px; }
.file-row .sub { font-size: 13px; color: var(--ink-3); }
.progress { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; margin-top: 12px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--blue-500), var(--blue-600)); border-radius: 4px; transition: width .25s linear; }
.file-row.done .ic { background: var(--green-bg); color: var(--green); }
.file-row.done .progress > div { background: var(--green); }
.file-row.error { border-color: #f6c5c5; background: #fffafa; }
.file-row.error .ic { background: var(--red-bg); color: var(--red); }
.file-row .stats { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-top: 6px; gap: 8px; flex-wrap: wrap; }
.file-row .stats b { color: var(--ink); }
.tip { display: flex; gap: 10px; background: var(--amber-bg); color: #7a4d00; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 18px; }
.tip svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.review-list { display: grid; gap: 2px; }
.review-item { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.review-item dt { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.review-item dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.success { text-align: center; padding: 40px 20px; }
.success .check { width: 76px; height: 76px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; animation: pop .4s cubic-bezier(.2, 1.4, .4, 1) both; }
.success .check svg { width: 38px; height: 38px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* ---------- Detalhe do episódio ---------- */
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.detail-head .code { font-size: 13px; font-weight: 700; color: var(--ink-4); letter-spacing: .04em; margin-bottom: 4px; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.kv { display: grid; gap: 14px; }
.kv dt { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.kv dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.approve-box { border: 1px solid #ffd5b8; background: #fff8f2; border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.approve-box h2 { margin-bottom: 6px; }
.thread { display: grid; gap: 12px; margin-bottom: 14px; }
.msg { padding: 12px 14px; border-radius: 12px; background: var(--bg); max-width: 92%; }
.msg.mine { background: var(--blue-50); margin-left: auto; }
.msg .who { font-size: 12.5px; font-weight: 650; color: var(--ink-3); margin-bottom: 2px; }
.msg p { white-space: pre-wrap; word-break: break-word; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.history li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; font-size: 14px; }
.history li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-200); margin-top: 7px; }
.history time { display: block; color: var(--ink-4); font-size: 12.5px; }

/* ---------- Admin ---------- */
.banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius); background: var(--amber-bg); color: #7a4d00; margin-bottom: 20px; font-weight: 550; flex-wrap: wrap; }
.banner.red { background: var(--red-bg); color: #9b1c1c; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.chip b { color: var(--ink-4); font-weight: 600; margin-left: 4px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on b { color: rgba(255, 255, 255, .6); }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-4); font-weight: 650; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; transition: background .1s; }
.tbl tbody tr:hover { background: var(--bg); }
.tbl tbody tr.sel { background: var(--blue-50); }
.tbl .t-title { font-weight: 600; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--blue-600); cursor: pointer; }
.status-select { border: 0; border-radius: 999px; padding: 5px 26px 5px 10px; font-size: 12.5px; font-weight: 650; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7587' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.bulkbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 12px 10px 18px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); z-index: 30; animation: rise .2s ease; flex-wrap: wrap; max-width: calc(100vw - 24px); }
.bulkbar select { background: #263042; color: #fff; border: 0; border-radius: 8px; padding: 8px 10px; }
.drawer-bg { position: fixed; inset: 0; background: rgba(14, 23, 38, .3); z-index: 50; animation: fadebg .2s; }
@keyframes fadebg { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: #fff; z-index: 51; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slide .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 22px; display: flex; align-items: center; gap: 12px; z-index: 2; }
.drawer-body { padding: 22px; display: grid; gap: 22px; }
.drawer-section h3 { margin-bottom: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-4); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.file-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.file-line:last-child { border-bottom: 0; }
.file-line .grow { flex: 1; min-width: 0; word-break: break-all; }
.settings-grid { display: grid; gap: 18px; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; animation: rise .25s ease; pointer-events: auto; }
.toast strong { display: block; }
.toast.err { background: var(--red); }
.toast.ok { background: #0f7a3d; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.mobile { display: flex; margin: 0; padding: 8px 12px; border-top: 1px solid var(--line); overflow-x: auto; }
}
@media (min-width: 861px) { .nav.mobile { display: none; } }
@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .page { padding: 20px 14px 90px; }
  .hero { padding: 22px; }
  .hero .btn-lg { width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  .review-item { grid-template-columns: 1fr; gap: 2px; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: center; text-align: left; padding: 0 0 18px; }
  .timeline li::before { top: -18px; left: 15px; width: 3px; height: 100%; }
  .timeline .dot { margin: 0; }
  .wizard-steps span { display: none; }
  .card-pad { padding: 18px; }
  .wizard-foot .btn { flex: 1; }
  .tbl .hide-sm { display: none; }
}

/* ícones sem tamanho específico */
svg { width: 18px; height: 18px; flex: none; }
.kv svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--ink-3); margin-right: 2px; }
#toasts .toast:nth-last-child(n+4) { display: none; }
