/* TwinRalo — design system and screens.
   Mobile first. One column, max 480. Safe areas respected. */


:root {
  --bg: #f7f3ed;
  --surface: #ffffff;
  --surface-2: #efe9e0;
  --ink: #1b2321;
  --ink-2: #6a736f;
  --ink-3: #98a19d;
  --hair: #e7dfd3;
  --accent: #0f6b66;
  --accent-ink: #0b4e4a;
  --accent-soft: #e1efec;
  --on-accent: #ffffff;
  --amber: #9a6b22;
  --amber-soft: #f7ecd9;
  --danger: #a33527;
  --shadow: 0 1px 2px rgba(27, 35, 33, .06), 0 8px 24px rgba(27, 35, 33, .05);
  --r-lg: 20px;
  --r-md: 14px;
  --tab-h: 62px;
  --font: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1413;
    --surface: #172120;
    --surface-2: #1f2b29;
    --ink: #eceae5;
    --ink-2: #8e9b97;
    --ink-3: #66736f;
    --hair: #253230;
    --accent: #4fc3b2;
    --accent-ink: #9ee3d7;
    --accent-soft: #12302c;
    --on-accent: #06211e;
    --amber: #e0b267;
    --amber-soft: #2c2517;
    --danger: #e08375;
    --shadow: none;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: #e9e4dc;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
@media (prefers-color-scheme: dark) { body { background: #050807; } }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); }
[hidden] { display: none !important; }
[dir="rtl"] #back svg { transform: scaleX(-1); }

#app { height: 100%; }
.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
}
@media (min-width: 520px) {
  .app { box-shadow: 0 0 0 1px var(--hair), 0 24px 60px rgba(0, 0, 0, .08); }
}

/* ---------------- body ---------------- */
.body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 calc(16px + env(safe-area-inset-bottom));
}
.has-tabs .body { padding-bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom)); }

.head { display: flex; align-items: center; gap: 6px; padding: 8px 16px 4px; min-height: 44px; }
.head h1 { font-size: 26px; font-weight: 700; letter-spacing: -.3px; }
.greet { padding: 10px 20px 6px; }
.greet h1 { font-size: 24px; font-weight: 700; letter-spacing: -.2px; }
.greet p { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.sub { font-size: 13px; color: var(--ink-2); padding: 0 20px 10px; }

.section {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .3px; color: var(--ink-2); text-transform: uppercase;
}
.link { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------------- twin card ---------------- */
.twin-card {
  margin: 8px 16px 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--hair);
}
.twin-id { display: flex; align-items: center; gap: 11px; }
.twin-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.twin-name { font-size: 16px; font-weight: 600; }
.twin-state { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.twin-state .live { width: 7px; height: 7px; border-radius: 50%; background: #37b36b; display: inline-block; }
.twin-stats { display: flex; gap: 26px; margin: 14px 0 12px; }
.twin-stats div { display: flex; align-items: baseline; gap: 6px; }
.twin-stats b { font-size: 22px; font-weight: 700; }
.twin-stats span { font-size: 12px; color: var(--ink-2); }

/* ---------------- list rows ---------------- */
.list { background: var(--surface); border-radius: var(--r-lg); margin: 0 16px; overflow: hidden; box-shadow: var(--shadow); }
.row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: start;
  padding: 11px 14px;
}
.row + .row { border-top: 1px solid var(--hair); }
.row-main { flex: 1; min-width: 0; }
.row-name { font-size: 15px; font-weight: 600; }
.row-sub { font-size: 13px; color: var(--ink-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub.clamp { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: 11.5px; color: var(--ink-3); }
.pill-count { background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; border-radius: 9px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; }
.date-chip { width: 42px; text-align: center; flex: 0 0 auto; }
.date-chip b { display: block; font-size: 17px; font-weight: 700; line-height: 1.1; }
.date-chip span { font-size: 10px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; }

/* ---------------- avatar ---------------- */
.avatar { border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; flex: 0 0 auto; }
.g1 { background: linear-gradient(145deg, #2e8e86, #0f5b57); }
.g2 { background: linear-gradient(145deg, #b9855a, #8a5a33); }
.g3 { background: linear-gradient(145deg, #6e86a8, #3e5677); }
.g4 { background: linear-gradient(145deg, #9c7ba8, #6a4b77); }
.g5 { background: linear-gradient(145deg, #7c9a6a, #4e6b40); }

/* ---------------- waiting / cards ---------------- */
.ask { padding: 12px 14px; }
.ask + .ask { border-top: 1px solid var(--hair); }
.ask-top { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.ask p { font-size: 14px; line-height: 1.55; margin: 8px 0 10px; }
.ask-actions { display: flex; gap: 8px; }
.card { background: var(--surface); border-radius: var(--r-lg); margin: 0 16px; padding: 14px; box-shadow: var(--shadow); border: 1px solid var(--hair); }
.today-card { display: flex; align-items: center; gap: 12px; }
.today-txt { flex: 1; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.today-txt:not(:empty) { color: var(--ink); }

/* ---------------- buttons ---------------- */
.btn {
  height: 44px; border-radius: 13px; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 18px; transition: opacity .15s, transform .05s;
}
.btn:active { transform: scale(.985); }
.btn.pri { background: var(--accent); color: var(--on-accent); }
.btn.sec { background: var(--surface-2); color: var(--ink); }
.btn.ghost { border: 1px solid var(--hair); color: var(--ink); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { height: 36px; font-size: 13.5px; border-radius: 11px; padding: 0 14px; }
.btn.wide { width: 100%; }
.btn.google { background: var(--surface); border: 1px solid var(--hair); color: var(--ink); width: 100%; }
.btn:disabled { opacity: .55; }

/* ---------------- search ---------------- */
.search {
  margin: 4px 16px 12px; height: 42px; border-radius: 13px;
  background: var(--surface-2); display: flex; align-items: center; gap: 8px; padding: 0 12px;
  color: var(--ink-3);
}
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }

/* ---------------- chat ---------------- */
.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-head {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 8px; border-bottom: 1px solid var(--hair); background: var(--bg);
}
.chat-who { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.chat-name { font-size: 15.5px; font-weight: 600; }
.chat-sub { font-size: 11.5px; color: var(--ink-2); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); flex: 0 0 auto; }
.icon-btn:active { background: var(--surface-2); }

.thread { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 6px; }
.day { align-self: center; font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); padding: 4px 12px; border-radius: 999px; margin: 8px 0; }
.msg { display: flex; flex-direction: column; max-width: 100%; }
.msg.in { align-self: flex-start; align-items: flex-start; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.cap { font-size: 9.5px; font-weight: 700; color: var(--ink-3); padding: 0 8px 3px; letter-spacing: .2px; }
.bubble {
  max-width: 300px; padding: 8px 12px 6px; border-radius: 18px;
  font-size: 14.5px; line-height: 1.6;
}
.in .bubble { background: var(--surface); border: 1px solid var(--hair); border-start-start-radius: 6px; }
.out .bubble { background: var(--accent); color: var(--on-accent); border-start-end-radius: 6px; }
.msg.twin .bubble { background: var(--surface); color: var(--ink); border: 1px solid var(--hair); }
.bubble .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble img { max-width: 100%; border-radius: 12px; display: block; margin-bottom: 4px; }
.bubble audio { width: 210px; height: 34px; margin-bottom: 2px; }
.meta { display: flex; align-items: center; gap: 4px; justify-content: flex-start; font-size: 10px; opacity: .6; margin-top: 3px; }
.typing { display: flex; align-items: center; gap: 4px; padding: 13px 15px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); display: block; }
.typing i:nth-child(2) { opacity: .6; }
.typing i:nth-child(3) { opacity: .35; }

.composer {
  display: flex; align-items: flex-end; gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair); background: var(--bg);
}
.composer textarea {
  flex: 1; min-width: 0; border: 1px solid var(--hair); background: var(--surface);
  border-radius: 21px; padding: 11px 14px; font-size: 15px; line-height: 1.4;
  resize: none; outline: none; max-height: 120px;
}
.send {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; opacity: .45; transition: opacity .15s;
}
.send.ready { opacity: 1; }
.composer #mic, .composer #attach { color: var(--ink-2); }

/* ---------------- tabs ---------------- */
.tabs {
  position: absolute; inset-inline: 0; bottom: 0;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: var(--surface);
  border-top: 1px solid var(--hair);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; color: var(--ink-3);
}
.tab.on { color: var(--accent); }

/* ---------------- auth ---------------- */
.auth { min-height: 100%; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; padding: 0 24px env(safe-area-inset-bottom); }
.auth-top { padding: 16vh 0 22px; text-align: center; }
.auth-logo { color: var(--accent); display: flex; justify-content: center; margin-bottom: 14px; }
.auth-top h1 { font-size: 28px; font-weight: 700; letter-spacing: -.4px; }
.auth-top p { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12px; }
.auth-or:before, .auth-or:after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.auth-switch { text-align: center; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .type-wrap textarea, .edit-area, #ansText {
  height: 48px; border-radius: 13px; border: 1px solid var(--hair);
  background: var(--surface); padding: 0 14px; font-size: 15px; outline: none; width: 100%;
}
.field input:focus, .field textarea:focus, #ansText:focus { border-color: var(--accent); }
textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: none; }

/* ---------------- onboarding ---------------- */
.onboard { min-height: 100%; display: flex; flex-direction: column; padding: 0 22px env(safe-area-inset-bottom); }
.ob-head { padding: 12vh 0 20px; }
.ob-head h1 { font-size: 26px; font-weight: 700; }
.ob-head p { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.ob-body { display: flex; flex-direction: column; gap: 14px; }
.segment { display: flex; gap: 3px; background: var(--surface-2); border-radius: 12px; padding: 3px; }
.segment.compact { width: 190px; }
.seg { flex: 1; height: 34px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 1px; }

/* ---------------- inbox ---------------- */
.qcard { margin-bottom: 10px; }
.qhead { display: flex; align-items: center; gap: 10px; }
.qname { font-size: 14px; font-weight: 600; }
.qtime { font-size: 11px; color: var(--ink-3); }
.qcard p { font-size: 14.5px; line-height: 1.55; margin: 10px 0 12px; }
.qrow { display: flex; gap: 8px; }

/* ---------------- journal ---------------- */
.rec { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0 20px; }
.rec-btn {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 10%, transparent);
  transition: box-shadow .2s, transform .1s;
}
.rec-btn.on { box-shadow: 0 0 0 14px color-mix(in srgb, var(--accent) 18%, transparent); }
.rec-state { font-size: 13px; color: var(--ink-2); }
.type-wrap { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 12px; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: .4px; color: var(--ink-2); text-transform: uppercase; margin-bottom: 8px; }
.preview-txt { font-size: 14.5px; line-height: 1.6; }
.row-btns { display: flex; gap: 8px; margin-top: 12px; }
.rec-live { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }

/* ---------------- settings ---------------- */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; min-height: 56px; width: 100%; text-align: start; }
.set-row + .set-row { border-top: 1px solid var(--hair); }
.set-label { font-size: 15px; }
.set-value { font-size: 13px; color: var(--ink-2); }
.set-row.tap .set-label { font-weight: 500; }
.set-row.danger .set-label { color: var(--danger); }
.set-row.tap svg { color: var(--ink-3); }
.version { text-align: center; font-size: 11.5px; color: var(--ink-3); padding: 18px 0; }

/* ---------------- toast / sheet ---------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: #1b2321; color: #fff; font-size: 13px; font-weight: 500;
  padding: 10px 16px; border-radius: 12px; z-index: 60;
  max-width: min(420px, calc(100vw - 40px)); text-align: center;
  transition: opacity .3s, transform .3s;
}
.toast.out { opacity: 0; transform: translateX(-50%) translateY(6px); }

.sheet-wrap { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet-back { position: absolute; inset: 0; background: rgba(10, 15, 14, .38); opacity: 0; transition: opacity .2s; }
.sheet {
  position: relative; width: 100%; max-width: 480px;
  background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .24s cubic-bezier(.2, .8, .3, 1);
}
.sheet-wrap.in .sheet-back { opacity: 1; }
.sheet-wrap.in .sheet { transform: translateY(0); }
.sheet-wrap.closing .sheet { transform: translateY(100%); }
.sheet-grab { width: 38px; height: 4px; border-radius: 2px; background: var(--hair); margin: 4px auto 12px; }
.sheet h2 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.sheet-body { font-size: 14px; }
.sheet-body textarea { margin-top: 4px; }
.sheet-q { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.sheet-note { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.sheet-actions { display: flex; gap: 8px; margin-top: 16px; }
.sheet-actions .btn { flex: 1; }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sheet-row .segment { width: 190px; }

/* ---------------- misc ---------------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px 20px; color: var(--ink-3); font-size: 13.5px; text-align: center; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--hair); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }


/* ================= v4 components ================= */
.hint { font-size: 12px; color: var(--ink-2); margin: 4px 0; line-height: 1.5; }
.sub { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.mini-select { height: 40px; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; padding: 0 10px; width: 100%; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; }
.chip { flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hair); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fcard { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.fthumb { height: 96px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fthumb img { width: 100%; height: 100%; object-fit: cover; }
.fthumb .ph { color: var(--ink-3); }
.fmeta { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--ink-2); }
.fmeta b { font-size: 13px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts { display: flex; align-items: center; gap: 6px; padding: 0 8px 8px; }
.facts button { border: 0; background: none; color: var(--ink-2); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; }
.sharetog { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-2); margin-inline-start: auto; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 26px; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--ink-2); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: 8px; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.bar i { display: block; width: 100%; max-width: 26px; background: var(--accent); border-radius: 6px 6px 0 0; min-height: 3px; }
.bar span { font-size: 10.5px; color: var(--ink-3); }
.langbar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 6px 0; }
.langbar i { display: block; height: 100%; background: var(--accent); width: 0; }
.kn { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.kn-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tagline { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tagline.sealed { background: var(--amber-soft); color: var(--amber); }
.kn-text { font-size: 14px; line-height: 1.6; margin: 0; }
.msg { display: flex; flex-direction: column; align-items: flex-start; }
.msg.out { align-items: flex-end; }
.msg-acts { display: flex; gap: 6px; margin-top: 4px; }
.msg-acts button { border: 1px solid var(--hair); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.msg-gone { font-size: 12px; color: var(--ink-3); text-align: center; margin: 6px 0; font-style: italic; }
.mini { border: 0; background: none; color: var(--ink-3); padding: 2px; }
.err-row { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; font-size: 13px; color: var(--ink-2); margin: 6px 0; }
.row-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.fab { position: fixed; inset-inline-end: 18px; bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom)); width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(15,107,102,.35); z-index: 20; }
.rec-btn.on { background: var(--danger); color: #fff; }
.rec-live { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 18px; }
.row audio { height: 34px; max-width: 46%; }
.stats { margin-inline: 16px; margin-top: 4px; }
.body > .card + .card { margin-top: 12px; }

.ad-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 14px auto 18px; min-height: 0; }
.ad-slot { max-width: 100%; overflow: hidden; }
.ad-slot iframe { border: 0; display: block; max-width: 100%; }
.ad-wrap, .ad-slot { flex-shrink: 0; }

.self-note { margin: 10px 16px 4px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; line-height: 1.55; }
.self-note b { display: block; margin-bottom: 2px; font-size: 14px; }
