/* Iz Chat — web app styles. Light and dark themes via CSS variables. */
@font-face { font-family: "Figtree"; src: url("/static/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/static/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
:root {
  --bg: #f1effa; --surface: #ffffff; --surface-2: #f7f6fd; --ink: #161a33; --muted: #6b7090;
  --line: #e3e1f2; --brand: #3a3fd1; --brand-ink: #ffffff; --brand-soft: #e8e9fb;
  --pop: #ffd84d; --pop-ink: #161a33; --ok: #12a38a; --danger: #e5484d; --shadow: 0 10px 30px rgba(34, 36, 90, .12);
  --bubble-in: #ffffff; --bubble-in-ink: #161a33; --radius: 16px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e1022; --surface: #171a35; --surface-2: #1d2142; --ink: #edeeff; --muted: #9a9fc7;
  --line: #292d52; --brand: #6c70f5; --brand-soft: #25295a; --bubble-in: #232749; --bubble-in-ink: #edeeff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1022; --surface: #171a35; --surface-2: #1d2142; --ink: #edeeff; --muted: #9a9fc7;
    --line: #292d52; --brand: #6c70f5; --brand-soft: #25295a; --bubble-in: #232749; --bubble-in-ink: #edeeff;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow-x: hidden; }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 35%, transparent) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 30%, transparent); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--muted) 55%, transparent); }
*::-webkit-scrollbar-corner { background: transparent; }
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; overscroll-behavior: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.hidden { display: none !important; }
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.02em; }

/* ───── buttons & inputs ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); transition: transform .12s, background .12s; }
.btn:hover { background: var(--brand-soft); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--pop); color: var(--pop-ink); border-color: transparent; font-size: 16px; padding: 14px 22px; box-shadow: 0 4px 0 rgba(0, 0, 0, .14); }
.btn.primary:hover { background: #ffe06e; }
.btn.brand { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.btn.brand:hover { filter: brightness(1.1); }
.btn.danger { color: var(--danger); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); transition: background .12s, color .12s; }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); }
.icon-btn.active { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label { font-weight: 600; font-size: 13px; color: var(--muted); }
.input { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); outline: none; }
.input:focus { border-color: var(--brand); }
textarea.input { resize: vertical; min-height: 64px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.chip[aria-pressed="true"], .chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; position: relative; color: #fff; }
.avatar.sm { width: 34px; height: 34px; font-size: 18px; border-radius: 11px; }
.avatar.lg { width: 88px; height: 88px; font-size: 46px; border-radius: 28px; }
.dot { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 3px solid var(--surface); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.muted { color: var(--muted); }

/* ───── login ───── */
#login { min-height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; }
.hero { background: var(--brand); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: .95; max-width: 9ch; }
.hero p { font-size: 18px; max-width: 34ch; opacity: .92; }
.hero .demo { display: grid; gap: 10px; max-width: 360px; }
.hero .demo span { padding: 11px 16px; border-radius: 18px; font-size: 15px; width: fit-content; max-width: 100%; animation: pop .5s both; }
.hero .demo .in { background: #fff; color: #161a33; border-bottom-left-radius: 5px; }
.hero .demo .out { background: var(--pop); color: #161a33; border-bottom-right-radius: 5px; margin-left: auto; }
.hero .demo span:nth-child(2) { animation-delay: .6s; } .hero .demo span:nth-child(3) { animation-delay: 1.2s; } .hero .demo span:nth-child(4) { animation-delay: 1.8s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.login-card { align-self: center; justify-self: center; width: min(420px, 90%); padding: 30px 0; }
.login-card h2 { font-size: 30px; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); margin: 0 0 22px; }
.otp { letter-spacing: .6em; text-align: center; font-size: 26px; font-weight: 700; }
.form-error { color: var(--danger); font-weight: 600; min-height: 22px; margin: 6px 0; }
.login-foot { margin-top: 18px; font-size: 13px; color: var(--muted); }
.login-foot a { color: var(--brand); font-weight: 600; }

/* ───── app shell ───── */
#app { height: 100%; display: grid; grid-template-columns: 76px minmax(300px, 360px) minmax(0, 1fr); overflow: hidden; background: var(--bg); }
.rail { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 6px; }
.rail .logo { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--brand); width: 44px; height: 44px; display: grid; place-items: center; background: var(--pop); border-radius: 14px; color: var(--pop-ink); margin-bottom: 14px; }
.rail .tab { width: 52px; padding: 9px 0 7px; border-radius: 14px; display: grid; place-items: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
.rail .tab[aria-selected="true"] { background: var(--brand-soft); color: var(--brand); }
.rail .tab .badge { position: absolute; top: 2px; right: 3px; }
.rail .spacer { flex: 1; }
.panel { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }
.panel-head { padding: 18px 18px 10px; display: flex; align-items: center; justify-content: space-between; }
.panel-head h2 { font-size: 24px; }
.panel-body { overflow-y: auto; overflow-x: hidden; padding: 4px 14px 20px; flex: 1; min-width: 0; }
.section-title { font-weight: 700; font-size: 13px; color: var(--muted); margin: 18px 4px 8px; }
.card { min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.start-card { display: grid; gap: 14px; }
.start-card h3 { font-size: 22px; overflow-wrap: anywhere; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; width: 100%; max-width: 100%; text-align: left; min-width: 0; position: relative; }
.row:hover, .row.sel { background: var(--brand-soft); }
.row .grow { flex: 1; min-width: 0; overflow: hidden; display: block; }
.row .name { font-weight: 700; display: flex; align-items: center; gap: 6px; min-width: 0; }
.row .name > span:first-child, .row .name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .last { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.row .time { font-size: 12px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 26px 14px; font-size: 14px; }
.req { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: var(--surface-2); }
.req .actions { display: flex; gap: 8px; }

/* ───── main pane ───── */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; background: var(--bg); overflow: hidden; }
.placeholder { margin: auto; text-align: center; max-width: 340px; padding: 24px; color: var(--muted); }
.placeholder h3 { color: var(--ink); font-size: 26px; margin-bottom: 8px; }
.radar { width: 190px; height: 190px; margin: 0 auto 26px; position: relative; display: grid; place-items: center; font-size: 54px; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: ping 2.4s infinite; }
.radar i:nth-child(2) { animation-delay: .8s; } .radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ping { 0% { transform: scale(.3); opacity: .8; } 100% { transform: scale(1); opacity: 0; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.chat-head .who { flex: 1; min-width: 0; }
.chat-head .title { min-width: 0; }
.chat-head .title { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.chat-head .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .sub.typing { color: var(--ok); font-weight: 600; }
.pill { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--pop); color: var(--pop-ink); }
.back { display: none; }
.messages { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 3px; scroll-behavior: smooth; }
.day { align-self: center; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 3px 12px; border-radius: 999px; margin: 12px 0 6px; }
.sys { align-self: center; font-size: 13px; color: var(--muted); padding: 4px 12px; margin: 6px 0; text-align: center; }
.msg { max-width: min(560px, 82%); position: relative; display: flex; flex-direction: column; align-items: flex-start; margin-top: 6px; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.cont { margin-top: 1px; }
.bubble { overflow-wrap: anywhere; padding: 9px 13px; border-radius: 18px; background: var(--bubble-in); color: var(--bubble-in-ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; word-break: break-word; white-space: pre-wrap; box-shadow: 0 1px 0 rgba(0, 0, 0, .03); }
.msg.mine .bubble { background: var(--brand); color: var(--brand-ink); border-color: transparent; border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.bubble.media { padding: 4px; background: var(--bubble-in); }
.msg.mine .bubble.media { background: var(--brand); }
.bubble.media .cap { padding: 6px 9px 4px; }
.bubble img, .bubble video { display: block; max-width: min(320px, 100%); max-height: 340px; border-radius: 14px; cursor: zoom-in; }
.bubble audio { width: 250px; max-width: 100%; height: 40px; }
.bubble.deleted { font-style: italic; opacity: .6; background: transparent !important; color: var(--muted) !important; border: 1px dashed var(--line); }
.doc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: inherit; text-decoration: none; }
.quote { font-size: 13px; padding: 5px 9px; margin-bottom: 4px; border-left: 3px solid var(--pop); background: rgba(0, 0, 0, .07); border-radius: 6px; opacity: .92; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { font-size: 11px; color: var(--muted); margin: 2px 6px 0; display: flex; gap: 4px; align-items: center; }
.meta .seen { color: var(--ok); }
.reacts { display: flex; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.react { font-size: 13px; padding: 1px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.react.mine { border-color: var(--brand); background: var(--brand-soft); }
.tools { position: absolute; top: -18px; display: none; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; box-shadow: var(--shadow); z-index: 4; }
.msg:not(.mine) .tools { left: 8px; } .msg.mine .tools { right: 8px; }
.msg:hover .tools, .msg.show-tools .tools { display: flex; }
.tools button { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; color: var(--muted); }
.tools button:hover { background: var(--brand-soft); }
.banner { margin: 8px 14px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 14px; }
.banner .grow { flex: 1; }
.composer { background: var(--surface); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.replybar { display: flex; align-items: center; gap: 10px; padding: 6px 10px; margin-bottom: 8px; border-left: 3px solid var(--pop); background: var(--surface-2); border-radius: 8px; font-size: 13px; }
.replybar .grow { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compose-row { display: flex; align-items: flex-end; gap: 6px; }
.compose-row textarea { flex: 1; resize: none; max-height: 130px; min-height: 44px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); padding: 11px 14px; outline: none; }
.compose-row textarea:focus { border-color: var(--brand); }
.send { width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.send[disabled] { opacity: .4; }
.recording { display: flex; align-items: center; gap: 12px; flex: 1; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); font-weight: 700; }
.recording::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.popover { position: absolute; bottom: 70px; left: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 10px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; z-index: 6; max-width: calc(100% - 24px); }
.popover button { font-size: 22px; width: 36px; height: 36px; border-radius: 10px; }
.popover button:hover { background: var(--brand-soft); }
.menu { position: absolute; top: 56px; right: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; z-index: 8; min-width: 190px; }
.menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; text-align: left; font-weight: 600; }
.menu button:hover { background: var(--brand-soft); }
.menu .danger { color: var(--danger); }

/* ───── profile ───── */
.profile-top { display: grid; place-items: center; gap: 10px; padding: 8px 0 18px; text-align: center; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 3px solid transparent; }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.emoji-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.emoji-pick button { font-size: 22px; height: 38px; border-radius: 10px; border: 1.5px solid transparent; }
.emoji-pick button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }
.switch small { display: block; color: var(--muted); }
.switch input { width: 44px; height: 24px; appearance: none; background: var(--line); border-radius: 12px; position: relative; cursor: pointer; transition: .15s; flex: none; }
.switch input::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked { background: var(--ok); } .switch input:checked::after { left: 23px; }

/* ───── modal / toast / lightbox ───── */
.overlay { position: fixed; inset: 0; background: rgba(10, 12, 30, .55); display: grid; place-items: center; z-index: 50; padding: 16px; backdrop-filter: blur(3px); }
.modal { background: var(--surface); overflow-x: hidden; border-radius: 22px; padding: 26px; width: min(440px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow); }
.modal h2 { font-size: 26px; margin-bottom: 4px; } .modal .sub { color: var(--muted); margin: 0 0 18px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
#toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 90; width: min(420px, 92vw); pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 600; animation: pop .25s both; pointer-events: auto; display: flex; gap: 12px; align-items: center; }
.toast.err { background: var(--danger); color: #fff; }
.toast .btn { background: rgba(255, 255, 255, .18); border: 0; color: inherit; }
#lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); z-index: 80; display: grid; place-items: center; cursor: zoom-out; }
#lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }

/* ───── calls ───── */
#call { position: fixed; inset: 0; background: #0b0d1c; z-index: 70; display: flex; flex-direction: column; color: #fff; }
#call .stage { flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; }
#call video#remoteVideo { width: 100%; height: 100%; object-fit: cover; background: #0b0d1c; }
#call video#localVideo { position: absolute; right: 16px; top: calc(16px + env(safe-area-inset-top)); width: 120px; aspect-ratio: 3/4; object-fit: cover; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .5); background: #222; transform: scaleX(-1); }
#call .caller { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 12px; justify-items: center; pointer-events: none; }
#call .caller h2 { font-size: 30px; }
#call .controls { display: flex; justify-content: center; gap: 18px; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, .6)); position: absolute; bottom: 0; left: 0; right: 0; }
#call .ctl { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; }
#call .ctl.off { background: #fff; color: #111; }
#call .ctl.end { background: var(--danger); }
#call .timer { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 18px; background: rgba(0, 0, 0, .45); padding: 4px 12px; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ───── responsive ───── */
@media (max-width: 900px) {
  #login { grid-template-columns: 1fr; }
  .hero { padding: 28px; min-height: 260px; gap: 20px; } .hero .demo { display: none; }
  #app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .rail { order: 2; flex-direction: row; justify-content: space-around; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); }
  .rail .logo, .rail .spacer { display: none; }
  .panel { border-right: 0; } .main { position: fixed; inset: 0; z-index: 20; transform: translateX(100%); transition: transform .22s; }
  .main.open { transform: none; } .back { display: grid; }
  .msg { max-width: 88%; } #call video#localVideo { width: 96px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ───── v2 additions ───── */
.rw { position: relative; min-width: 0; }
.rw .row-del { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 10px; display: none; place-items: center; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.rw:hover .row-del, .rw:focus-within .row-del { display: grid; }
.rw:hover .time { visibility: hidden; }
.rw .row-del:hover { color: var(--danger); }
@media (hover: none) { .rw .row-del { display: grid; opacity: .8; } .rw .time { margin-right: 38px; visibility: visible !important; } }
.strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip button { display: grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 600; width: 58px; flex: none; color: var(--muted); }
.strip button span.nm { max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-in { position: relative; margin: 12px 0 4px; }
.search-in .input { padding-left: 14px; }
.ideas { display: flex; gap: 8px; padding: 8px 12px 0; overflow-x: auto; background: var(--surface); }
.ideas::-webkit-scrollbar { display: none; }
.idea { flex: none; max-width: 280px; text-align: left; padding: 8px 12px; border-radius: 14px; background: var(--brand-soft); color: var(--ink); font-size: 13px; font-weight: 600; border: 1px solid transparent; }
.idea:hover { border-color: var(--brand); }
.xlate { font-size: 13px; opacity: .9; margin-top: 4px; padding-top: 4px; border-top: 1px dashed currentColor; font-style: italic; }
.danger-zone { margin-top: 22px; padding: 14px; border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--line)); border-radius: 14px; display: grid; gap: 10px; }
.danger-zone h4 { margin: 0; color: var(--danger); font-family: var(--font-display); font-size: 16px; }
.danger-zone p { margin: 0; font-size: 13px; color: var(--muted); }
.welcome { display: grid; gap: 18px; justify-items: center; }
.welcome .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(480px, 100%); margin-top: 6px; }
.welcome .tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; font-size: 13px; color: var(--muted); }
.welcome .tile b { display: block; font-size: 22px; color: var(--ink); font-family: var(--font-display); }
.btn.danger-fill { background: var(--danger); color: #fff; border-color: transparent; }
