/* MSSIngleCore.css — Gold Standard (cleaned)
   Build: 2026-03-30

   Rules:
   - Owns ALL Ingle page layout + feed row cosmetics
   - Load AFTER MSSWidgetCore.css so it wins
   - No inline <style> blocks in HTML
*/

/* =========================================================
   Tokens
   ========================================================= */
:root{
  --border:#e5e7eb;
  --text:#111827;
  --sub:#6b7280;
  --bg:#f8fafc;
  --card:#ffffff;
  --chip:#f3f4f6;

  --shadow: 0 1px 8px rgba(17,24,39,.08);
  --danger:#ef4444;
  --ok:#22c55e;

  --radius:16px;
  --pad:16px;
  --hairline: rgba(0,0,0,.08);
}

/* =========================================================
   Global reset / helpers
   ========================================================= */
html, body{ margin:0; padding:0; }

body{
  background:var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
}

.hidden{ display:none !important; }

.btnLink{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
}

.ws-modal[hidden],
[hidden]{
  display:none !important;
}

/* =========================================================
   Outer page shell
   ========================================================= */
#mss-widget-root.ingle{
  max-width: 980px;
  margin: 14px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow:hidden;
  box-sizing: border-box;
}

.ingle-shell{
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 14px 26px;
  box-sizing: border-box;
}

.ingle-main{
  padding:0;
  margin:0;
}

.ingle-divider{
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  margin: 12px 0;
}

/* =========================================================
   Header
   ========================================================= */
.ingle-header{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
  padding: 14px var(--pad);
  border-bottom:1px solid var(--border);
  background:#fff;
}

.ingle-header-left{
  display:flex;
  flex-direction:column;
  min-width: 0;
}

.ingle-logo{
  font-weight: 900;
  font-size: 18px;
  letter-spacing:.2px;
}

.ingle-tagline{
  font-size: 12px;
  color: var(--sub);
  margin-top:2px;
}

.ingle-header-right{
  display:flex;
  align-items:center;
  gap: 14px;
  justify-content:flex-end;
  flex-wrap: wrap;
}

.ingle-date{
  font-size: 12px;
  color: var(--sub);
}

.teacherLink{
  font-size: 12px;
  color: rgba(0,0,0,0.40);
  text-decoration: none;
  white-space: nowrap;
}

.teacherLink:hover{
  color: rgba(0,0,0,0.65);
  text-decoration: underline;
}

/* =========================================================
   Identity strip
   ========================================================= */
.identityCard{
  padding: 12px var(--pad);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(6px);
}

.identityRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.identityLeft{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-width:0;
}

.identityLabel{
  font-size: 12px;
  color: rgba(0,0,0,0.45);
}

.identityWho{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.pillBadge{
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.50);
  background: rgba(255,255,255,0.55);
  white-space: nowrap;
  text-transform: none !important;
}

.identityActions{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}

/* Jony-ish pills */
.btnPill{
  appearance:none;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.65);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: rgba(0,0,0,0.75);
  cursor:pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btnPill:hover{
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.18);
}

.btnPill:active{
  transform: translateY(1px);
}

.btnPillPrimary{
  background: rgba(0,0,0,0.84);
  border-color: rgba(0,0,0,0.84);
  color: rgba(255,255,255,0.92);
}

.btnPillPrimary:hover{
  background: rgba(0,0,0,0.94);
}

/* =========================================================
   Hero / topic / question
   ========================================================= */
.ingle-hero{
  padding: 14px var(--pad) 12px;
}

.ingle-hero-top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap:12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ingle-hero-top-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap: wrap;
  min-width: 0;
}

.ingle-hero-top-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap: wrap;
}

.ingle-badge{
  font-size:12px;
  padding:4px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--chip);
  font-weight:700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.topic-rating{
  margin-left: 4px;
  opacity: .85;
  font-weight: 600;
}

.ingle-rule{
  font-size:12px;
  color:var(--sub);
}

.ingle-dev-nav{
  display:flex;
  align-items:center;
  gap:8px;
}

.ingle-dev-btn{
  height:28px;
  min-width:34px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-weight:900;
}

.ingle-dev-date{
  font-size:12px;
  color:var(--sub);
  font-weight:800;
}

.ingle-qrow{
  display:flex;
  align-items:center;
  gap:10px;
}

.ingle-qcard{
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px;
  border:1px solid var(--border);
  border-radius: 14px;
  background:#fbfdff;
}

.ingle-qinline{
  display:flex;
  align-items:center;
  gap:12px;
}

.ingle-question{
  flex: 1 1 auto;
  margin: 0;
  line-height: 1.35;
  font-size: 16px;
  font-weight: 750;
}

.ingle-qactions{
  display:flex;
  align-items:center;
  gap:8px;
  flex: 0 0 auto;
}

.ingle-badge-btn{
  appearance: none;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  color: #1d1d1f;
  border-radius: 999px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  transition: transform 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.ingle-badge-btn:hover{
  color: #000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.ingle-badge-btn:active{
  transform: scale(0.98);
}

.ingle-icon{
  width: 16px;
  height: 16px;
  display: inline-block;
  fill: currentColor;
}

.ingle-badge-btn .ingle-icon{
  width: 14px;
  height: 14px;
}

.ingle-preview{
  margin-top:10px;
  font-size: 13px;
  color: var(--sub);
}

/* =========================================================
   Controls
   ========================================================= */
.ingle-controls{
  padding: 0 var(--pad) 14px;
}

.ingle-record-row,
.ingle-record-row-3{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.ingle-record-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.ingle-submit-actions,
.ingle-record-right{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
}

.ingle-btn{
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-weight:700;
  transition: transform .06s ease, box-shadow .12s ease, opacity .12s ease;
}

.ingle-btn.primary{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.ingle-btn:active{
  transform: translateY(1px);
}

.ingle-btn:hover{
  box-shadow: var(--shadow);
}

.ingle-btn:disabled{
  opacity:.5;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}

.ingle-btn.icon{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items:center;
  justify-content:center;
}

.ingle-btn-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ingle-btn-svg{
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.submit-label-short{
  display:none;
}

.submit-label-long{
  display:inline;
}

.recProgWrap{
  flex: 1 1 auto;
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 160px;
  margin: 0 14px;
}

.recProgTrack{
  position: relative;
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
}

.recProgFill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  transition: width 80ms linear;
}

.recProgSec{
  width: 42px;
  text-align: right;
  font-size: 12px;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.ingle-timer-row{
  display:flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--sub);
}

.ingle-rec-dot{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--danger);
  opacity:.2;
  margin-right:6px;
}

.ingle-player{
  margin-top: 10px;
  padding: 10px;
  border:1px solid var(--border);
  border-radius: 12px;
  background:#fbfdff;
}

.ingle-player audio{
  width:100%;
}

.ingle-hint{
  font-size: 12px;
  color: var(--sub);
  margin-top: 6px;
}

.ingle-status{
  margin-top: 10px;
  font-size: 13px;
  color: var(--sub);
}

.ingle-status.is-idle-mobile-hide{
  display:block;
}

/* =========================================================
   Feed container
   ========================================================= */
.ingle-feed{
  margin: 14px var(--pad) 16px;
  border:1px solid var(--border);
  border-radius: 14px;
  overflow:hidden;
  background:#fff;
}

.ingle-feed-header{
  padding: 12px;
  border-bottom:1px solid var(--border);
}

.ingle-feed-title{
  font-weight: 900;
}

.ingle-feed-sub{
  font-size: 12px;
  color: var(--sub);
  margin-top:3px;
}

.ingle-feed-list{
  display:flex;
  flex-direction: column;
}

.ingle-feed-head{
  display:flex;
  align-items:center;
  margin: 6px 0 2px;
  font-size: 10px;
  opacity: 0.55;
}

.ingle-feed-head-spacer{
  flex: 1;
}

.ingle-feed-head-meta{
  display:flex;
  gap: 16px;
  align-items:center;
  width: fit-content;
  padding-right: 2px;
}

/* =========================================================
   CEFR Filter
   ========================================================= */
.cefrFilter{
  margin-top: 10px;
}

.cefrTrackWrap{
  position: relative;
  height: 18px;
  margin-top: 8px;
  margin-bottom: 6px;
}

.cefrBar{
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    #d94b4b 0%,
    #f39c12 20%,
    #f1c40f 40%,
    #2ecc71 60%,
    #3498db 80%,
    #9b59b6 100%
  );
  border: 1px solid rgba(0,0,0,0.06);
}

.cefrCenter{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18px;
  width: 100%;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
}

.cefrCenter::-webkit-slider-runnable-track{
  height: 10px;
  background: transparent;
  border-radius: 8px;
}

.cefrCenter::-moz-range-track{
  height: 10px;
  background: transparent;
  border-radius: 8px;
}

.cefrCenter::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #0b5fff;
  border: 2px solid #ffffff;
  margin-top: -3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.cefrCenter::-moz-range-thumb{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #0b5fff;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.cefrLabel{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}

/* =========================================================
   Feed rows
   ========================================================= */
.ingle-row{
  display:grid;
  grid-template-columns: 140px 44px minmax(260px,1fr) 140px;
  gap: 10px;
  align-items:center;
  padding: 10px 12px;
  border-top:1px solid #f1f5f9;
  font-size: 14px;
  overflow: visible;
}

.ingle-user{
  font-weight: 900;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ingle-row .pillBadge{
  padding: 3px 10px;
  font-size: 13px;
  line-height: 18px;
}

.ingle-playcell{
  display:flex;
  justify-content:center;
  gap:8px;
}

.ingle-play,
.ingle-stop{
  height: 34px;
  width: 34px;
  border-radius: 12px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-weight:900;
  line-height: 1;
  transition: box-shadow .12s ease, transform .06s ease, opacity .12s ease;
}

.ingle-play:hover,
.ingle-stop:hover{
  box-shadow: var(--shadow);
}

.ingle-play:active,
.ingle-stop:active{
  transform: translateY(1px);
}

.ingle-play:disabled,
.ingle-stop:disabled{
  opacity:.35;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}

.ingle-bar-wrap{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
  min-width: 260px;
  overflow: visible;
}

.ingle-bar{
  position: relative;
  height: 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: linear-gradient(
    90deg,
    #e74c3c 0%,
    #f39c12 30%,
    #f1c40f 45%,
    #2ecc71 65%,
    #27ae60 80%,
    #145a32 100%
  );
}

.ingle-marker{
  position:absolute;
  top:-5px;
  width: 2px;
  height: 20px;
  background:#111;
  border-radius: 1px;
  box-shadow: 0 0 0 2px #fff;
}

.ingle-cefr-pill{
  position:absolute;
  top:0;
  transform: translateX(-50%);
  background:#111;
  color:#fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events:none;
}

.ingle-meta{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  align-items:center;
  font-size: 12px;
  color: var(--sub);
  white-space: nowrap;
  overflow: visible;
  position: relative;
}

.ingle-meta strong{
  color: var(--text);
}

.ingle-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}

.ingle-act{
  height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-weight:900;
  transition: box-shadow .12s ease, transform .06s ease, opacity .12s ease, color .12s ease, border-color .12s ease;
}

.ingle-act:hover{
  box-shadow: var(--shadow);
}

.ingle-act:active{
  transform: translateY(1px);
}

.ingle-act.liked{
  color: var(--danger);
  border-color: rgba(239,68,68,.35);
  box-shadow: 0 1px 10px rgba(239,68,68,.12);
}

.ingle-act.following{
  color: var(--ok);
  border-color: rgba(34,197,94,.35);
  box-shadow: 0 1px 10px rgba(34,197,94,.12);
}

/* question / scores while playing */
.ingle-row-question{
  font-size: 11px;
  opacity: 0.75;
  line-height: 1.2;
  transition: opacity 160ms ease;
}

.ingle-row-question-text{
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ingle-row-scores{
  margin-top: 4px;
  font-size: 10px;
  opacity: 0.85;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   Tooltips
   ========================================================= */
.hasTip{
  position: relative;
  overflow: visible;
}

.hasTip::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 9999;
  max-width: min(520px, calc(100vw - 24px));
  overflow: hidden;
  text-overflow: ellipsis;
}

.hasTip:hover::after,
.hasTip:focus::after,
.hasTip:focus-within::after{
  opacity: 1;
}

.hasTip.tipRight::after{
  left: auto;
  right: 0;
  transform: none;
}

.ingle-stat{
  display:flex;
  align-items:center;
  gap:6px;
  cursor: default;
  overflow: visible;
}

.ingle-value{
  font-weight:600;
  letter-spacing:0.2px;
}

/* =========================================================
   Shared audio dock
   ========================================================= */
.ws-audio-dock{
  position: sticky;
  bottom: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

.ws-audio-dock.hidden{
  display:none;
}

.ws-audio-dock__meta{
  min-width: 0;
  flex: 1 1 auto;
}

.ws-audio-dock__label{
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.ws-audio-dock__sub{
  margin-top: 2px;
  font-size: 12px;
  color: #667085;
}

.ws-audio-dock__player{
  flex: 0 0 380px;
  max-width: 100%;
}

.ws-audio-dock__player audio{
  width:100%;
}

.ws-audio-dock-float{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(560px, calc(100vw - 32px));
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   Generic modal
   ========================================================= */
.ws-modal{
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.ws-modal:not(.hidden){
  display:flex;
}

.ws-modal-scrim{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.ws-modal-card,
.ws-modal-panel{
  position: relative;
  z-index: 1;
  width: min(640px, 92vw);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.ws-modal-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

/* =========================================================
   Email verification modal
   ========================================================= */
.msr-panel{
  width: min(520px, calc(100vw - 28px));
  max-width: 420px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.18),
    0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px 18px 14px;
}

.msr-header{
  padding: 0 0 10px 0;
}

.msr-title{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.msr-subtitle{
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(0,0,0,0.68);
}

.msr-subtle{
  display: inline;
  color: rgba(0,0,0,0.50);
  margin-left: 6px;
  white-space: nowrap;
}

.msr-form{
  padding: 6px 0 0 0;
}

.msr-label{
  font-size: 12px;
  color: rgba(0,0,0,0.62);
  margin-top: 6px;
}

.msr-input{
  margin-top: 6px;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.9);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.msr-input:focus{
  outline: none;
  border-color: rgba(0,0,0,0.22);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}

.msr-detail{
  margin: 8px 0 10px;
  min-height: 18px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(0,0,0,0.68);
}

.msr-detail.isError{
  color: rgba(180,0,0,0.92);
}

.msr-detail.isOk{
  color: rgba(0,110,60,0.95);
}

.msr-actions{
  padding: 14px 0 14px 0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.msr-cancel{
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.85);
  opacity: 0.85;
}

.msr-submit{
  flex: 1;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow:
    0 10px 22px rgba(0,0,0,0.12),
    0 2px 6px rgba(0,0,0,0.10);
  transform: translateY(0);
  transition: transform 80ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.msr-submit:active{
  transform: translateY(1px);
  box-shadow:
    0 6px 16px rgba(0,0,0,0.12),
    0 1px 4px rgba(0,0,0,0.10);
}

.msr-submit[disabled],
.msr-cancel[disabled]{
  opacity: 0.55;
  pointer-events: none;
}

.msr-footnote{
  padding: 0 0 2px 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(0,0,0,0.46);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  margin-top:60px;
  text-align:center;
  font-size:13px;
  color:#6e6e73;
}

.site-footer a{
  color:#6e6e73;
  text-decoration:none;
}

.site-footer a:hover{
  text-decoration:underline;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  #mss-widget-root.ingle{
    margin: 10px;
  }
}

@media (max-width: 768px){
  .ingle-hero-top{
    align-items: flex-start;
    gap: 8px;
  }

  .ingle-hero-top-left{
    min-width: 0;
  }

  .ingle-rule{
    display: inline-block;
    margin-top: 0;
  }

  .ingle-record-row,
  .ingle-record-row-3{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    grid-template-areas:
      "record stop"
      "submit cancel"
      "progress progress";
    gap: 10px;
    align-items: stretch;
  }

  .ingle-record-left,
  .ingle-record-right,
  .ingle-submit-actions{
    display: contents;
  }

  #recBtn{
    grid-area: record;
    min-width: 0;
    width: 100%;
  }

  #stopBtn{
    grid-area: stop;
    width: 84px;
  }

  #submitBtn{
    grid-area: submit;
    min-width: 0;
    width: 100%;
  }

  #cancelBtn{
    grid-area: cancel;
    width: 84px;
    min-width: 56px;
    padding-left: 0;
    padding-right: 0;
  }

  #recProgWrap{
    grid-area: progress;
    margin: 0;
    min-width: 0;
  }

  .submit-label-long{
    display:none;
  }

  .submit-label-short{
    display:inline;
  }

  .ingle-timer-row{
    margin-top: 8px;
  }

  .ingle-status.is-idle-mobile-hide{
    display:none;
  }
}

@media (max-width: 640px){
  .ws-audio-dock-float{
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 12px;
  }

  .ws-audio-dock__label{
    font-size: 16px;
  }
}

@media (max-width: 520px){
  .ingle-tagline{
    display:none;
  }

  .identityCard{
    padding: 10px var(--pad);
    background: transparent;
    backdrop-filter: none;
  }

  .ingle-hero{
    padding: 14px var(--pad) 10px;
  }

  .ingle-qcard{
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 14px;
    background: rgba(255,255,255,.70);
  }

  .ingle-question{
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: .1px;
  }

  .ingle-controls{
    padding: 0 var(--pad) calc(16px + env(safe-area-inset-bottom));
  }

  .ingle-row{
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .ingle-playcell,
  .ingle-meta,
  .ingle-actions{
    justify-content:flex-start;
  }
}

@media (max-width: 480px){
  .ingle-header{
    gap: 8px;
  }

  .ingle-header-right{
    gap: 8px;
  }

  .ingle-logo{
    line-height: 1.05;
  }

  .identityRow{
    gap: 10px;
  }

  .identityActions{
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .ingle-qinline{
    gap: 8px;
  }

  .ingle-qactions{
    gap: 6px;
  }

  .ingle-badge-btn{
    padding: 6px 8px;
  }

  .ingle-badge-btn span{
    display:none;
  }

  #cancelBtn{
    width: 52px;
    min-width: 52px;
  }
}

/* =========================================================
   Feed row badges / stats / progress
   ========================================================= */
.ingle-user{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  overflow:visible;
  white-space:nowrap;
}

.ingle-user .pillBadge{
  flex: 0 1 auto;
  max-width: 100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ingle-row-badges{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex: 0 0 auto;
  flex-wrap:nowrap;
  white-space:nowrap;
}

.ingle-award{
  display:inline-flex;
  align-items:center;
  gap:3px;
  font-size:12px;
  line-height:1;
  opacity:0.95;
}

.ingle-award-count{
  font-weight:700;
  font-size:11px;
}

.ingle-row.is-hall-of-fame{
  background: rgba(255, 215, 0, 0.08);
  border-left: 3px solid rgba(212, 175, 55, 0.95);
}

.ingle-stat{
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:default;
  overflow:visible;
}

.ingle-stat-emoji{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
  flex:0 0 auto;
}

.ingle-value{
  font-size:13px;
  font-weight:600;
  letter-spacing:0.2px;
}

.ingle-progress{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fbfdff;
}

.ingle-progress-spinner{
  width:18px;
  height:18px;
  border:2px solid rgba(0,0,0,0.12);
  border-top-color:#111827;
  border-radius:999px;
  animation: ingleSpin 0.8s linear infinite;
  flex:0 0 auto;
}

.ingle-progress-text{
  font-size:13px;
  color:var(--sub);
}

@keyframes ingleSpin{
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ingle-stat{
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:default;
  overflow:visible;
}

.ingle-stat-emoji{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
  flex:0 0 auto;
}

.ingle-value{
  font-size:13px;
  font-weight:600;
  letter-spacing:0.2px;
}

.ingle-progress{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fbfdff;
}

.ingle-progress-spinner{
  width:18px;
  height:18px;
  border:2px solid rgba(0,0,0,0.12);
  border-top-color:#111827;
  border-radius:999px;
  animation: ingleSpin 0.8s linear infinite;
  flex:0 0 auto;
}

.ingle-progress-text{
  font-size:13px;
  color:var(--sub);
}

@keyframes ingleSpin{
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* =========================
   COMPETE STRIP
========================= */

.ingle-compete{
  margin: 14px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* MEDALS ROW */
.ingle-compete-medals{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ingle-medal-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--hairline);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.ingle-medal-icon{
  font-size: 14px;
  line-height: 1;
}

.ingle-medal-label{
  opacity: 0.8;
}

.ingle-medal-handle{
  font-weight: 700;
}

.ingle-medal-score{
  opacity: 0.78;
  font-size: 11px;
}

/* medal colors */
.ingle-medal-chip.gold{
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(212, 175, 55, 0.40);
}

.ingle-medal-chip.silver{
  background: rgba(192, 192, 192, 0.12);
  border-color: rgba(160, 160, 160, 0.40);
}

.ingle-medal-chip.bronze{
  background: rgba(205, 127, 50, 0.12);
  border-color: rgba(160, 90, 40, 0.40);
}

/* =========================
   HALL OF FAME
========================= */

.ingle-hall-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 10px;
  border:1px solid var(--hairline);
  border-radius:14px;
  background:rgba(255,255,255,0.82);
}

.ingle-hall-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:128px;
  font-size:12px;
  font-weight:700;
  color:#3f3f46;
  white-space:nowrap;
}

.ingle-hall-icon{
  font-size:15px;
  line-height:1;
}

.ingle-hall-ticker{
  position:relative;
  overflow:hidden;
  flex:1 1 auto;
  min-width:0;
}

.ingle-hall-ticker__content{
  display:inline-block;
  white-space:nowrap;
  padding-left:100%;
  font-size:12px;
  line-height:1.25;
  color:#3f3f46;
  opacity:0.9;
  animation: ingleHallTicker 18s linear infinite;
}

.ingle-hall-ticker:hover .ingle-hall-ticker__content{
  animation-play-state: paused;
}

@keyframes ingleHallTicker{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce){
  .ingle-hall-ticker__content{
    animation:none;
    padding-left:0;
  }
}

/* =========================
   FEED SORT BAR
========================= */

.ingle-feed-sortbar{
  display:grid;
  grid-template-columns: 140px 44px minmax(260px,1fr) 140px;
  gap:10px;
  align-items:center;
  margin-top:10px;
}

.ingle-sort-spacer{
  width:100%;
  height:1px;
}

.ingle-sortcell{
  display:flex;
  align-items:center;
}

.ingle-sortcell.handle{
  justify-content:flex-start;
}

.ingle-sortcell.score{
  justify-content:flex-start;
}

.ingle-sortcell.meta{
  justify-content:flex-end;
  gap:10px;
}

.ingle-sortbtn{
  appearance:none;
  display:inline-flex;
  align-items:center;
  gap:4px;
  white-space:nowrap;
  border:none;
  background:transparent;
  padding:0;
  border-radius:0;
  font-size:12px;
  font-weight:700;
  color:rgba(0,0,0,0.62);
  cursor:pointer;
  box-shadow:none;
  transition: color .12s ease, transform .06s ease;
}

.ingle-sortbtn:hover{
  color:#111827;
}

.ingle-sortbtn:active{
  transform: translateY(1px);
}

.ingle-sortbtn.is-active{
  color:#111827;
}

.ingle-sort-label{
  display:inline-flex;
  align-items:center;
  gap:4px;
  flex:0 0 auto;
}

.ingle-sort-arrow{
  display:inline-block;
  min-width:10px;
  margin-left:2px;
  flex:0 0 auto;
}

/* =========================
   MOBILE ROW LAYOUT
========================= */

@media (max-width: 520px){
  .ingle-row{
    display:grid;
    grid-template-columns: auto 34px 34px minmax(0,1fr);
    grid-template-areas:
      "user play stop bar"
      ".    meta meta question";
    gap:8px 8px;
    align-items:center;
    padding:10px 12px;
  }

  .ingle-user{
    grid-area:user;
    max-width:10ch;
    min-width:10ch;
    min-width:0;
  }

  .ingle-user-handlewrap{
    display:inline-block;
    max-width:10ch;
    min-width:10ch;
    overflow:hidden;
  }

  .ingle-row .pillBadge{
    display:inline-block;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    vertical-align:top;
  }

  .ingle-playcell{
    display:contents;
  }

  .ingle-play{
    grid-area:play;
    width:34px;
    min-width:34px;
    height:34px;
  }

  .ingle-stop{
    grid-area:stop;
    width:34px;
    min-width:34px;
    height:34px;
  }

  .ingle-bar-wrap{
    grid-area:bar;
    min-width:0;
    padding-top:20px;
  }

  .ingle-meta{
    grid-area:meta;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    flex-wrap:nowrap;
    white-space:nowrap;
    min-width:0;
    font-size:11px;
  }

  .ingle-awards-inline{
    display:inline-flex;
    align-items:center;
    gap:6px;
    flex:0 0 auto;
    white-space:nowrap;
  }

  .ingle-stat{
    display:inline-flex;
    align-items:center;
    gap:4px;
    flex:0 0 auto;
    white-space:nowrap;
    margin:0;
  }

  .ingle-award{
    font-size:11px;
    line-height:1;
  }

  .ingle-award-count{
    font-size:10px;
  }

  .ingle-value{
    font-size:12px;
  }

  .ingle-row-question{
    grid-area:question;
    margin-top:0;
    font-size:12px;
    line-height:1.3;
    opacity:0.8;
    min-width:0;
  }

  .ingle-row-question-text{
    display:block;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }
    /* =========================
     MOBILE CONTROLS: ONE ROW
  ========================= */

  .ingle-record-row,
  .ingle-record-row-3{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:6px;
    flex-wrap:nowrap;
  }

  .ingle-record-left,
  .ingle-record-right,
  .ingle-submit-actions{
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:nowrap;
    margin:0;
  }

  #recBtn{
    flex:0 0 96px;
    width:96px;
    min-width:96px;
  }

  #stopBtn{
    flex:0 0 56px;
    width:56px;
    min-width:56px;
  }

  #submitBtn{
    flex:0 0 96px;
    width:96px;
    min-width:96px;
  }

  #cancelBtn{
    flex:0 0 40px;
    width:40px;
    min-width:40px;
    padding-left:0;
    padding-right:0;
  }

  #recBtn span,
  #submitBtn span{
    font-size:13px;
  }

  .submit-label-long{
    display:none;
  }

  .submit-label-short{
    display:inline;
  }

  #recProgWrap{
    margin-top:10px;
    min-width:0;
  }
}

@media (max-width: 420px){
  .ingle-row{
    display:grid;
    grid-template-columns: auto 30px 30px minmax(0,1fr);
    grid-template-areas:
      "user play stop bar"
      ".    meta meta question";
    gap:6px 6px;
    align-items:center;
    padding:8px 10px;
  }

  .ingle-user{
    grid-area:user;
    max-width:9ch;
    min-width:9ch;
    min-width:0;
  }

  .ingle-user-handlewrap{
    max-width:9ch;
    min-width:9ch;
    overflow:hidden;
  }

  .ingle-play,
  .ingle-stop{
    width:30px;
    min-width:30px;
    height:30px;
    font-size:12px;
  }

  .ingle-bar-wrap{
    grid-area:bar;
    min-width:0;
    padding-top:16px;
  }

  .ingle-meta{
    grid-area:meta;
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:nowrap;
    white-space:nowrap;
    font-size:10px;
  }

  .ingle-awards-inline{
    display:inline-flex;
    gap:4px;
  }

  .ingle-award{
    font-size:10px;
  }

  .ingle-award-count{
    font-size:9px;
  }

  .ingle-stat{
    gap:3px;
  }

  .ingle-value{
    font-size:11px;
  }

  .ingle-row-question{
    grid-area:question;
    font-size:11px;
    line-height:1.25;
    min-width:0;
  }

  .ingle-row-question-text{
    white-space:normal;
    display:block;
  }
  
  /* =========================
     MOBILE CONTROLS: 420px
  ========================= */

  .ingle-record-row,
  .ingle-record-row-3{
    gap:5px;
  }

  .ingle-record-left,
  .ingle-record-right,
  .ingle-submit-actions{
    gap:5px;
  }

  #recBtn{
    flex:0 0 84px;
    width:84px;
    min-width:84px;
  }

  #stopBtn{
    flex:0 0 50px;
    width:50px;
    min-width:50px;
  }

  #submitBtn{
    flex:0 0 84px;
    width:84px;
    min-width:84px;
  }

  #cancelBtn{
    flex:0 0 36px;
    width:36px;
    min-width:36px;
  }

  #recBtn span,
  #submitBtn span{
    font-size:12px;
  }
}
/* ============================================================
   Personalize attention state
   Red <-> black flashing border
   Works for both anon and registered personalize buttons
   ============================================================ */

#btnPersonalizeAnon,
#btnPersonalize {
  position: relative;
  border: 2px solid #111827 !important;
  border-radius: 999px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#btnPersonalizeAnon.ingle-attention,
#btnPersonalize.ingle-attention {
  border-color: #c62828 !important;
  animation: inglePersonalizeFlash 1s steps(1, end) infinite;
}

@keyframes inglePersonalizeFlash {
  0%,
  49% {
    border-color: #c62828;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.18);
  }
  50%,
  100% {
    border-color: #111827;
    box-shadow: none;
  }
}
.ingle-cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(120%);
  width: min(720px, calc(100vw - 24px));
  box-sizing: border-box;
  background: #111827;
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform 0.25s ease;
}

.ingle-cta.show {
  transform: translateX(-50%) translateY(0);
}

.ingle-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ingle-cta-text {
  min-width: 0;
}

.ingle-cta-text .sub {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 2px;
}

.ingle-cta-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ingle-cta-btn,
.ingle-cta-dismiss-btn {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}

.ingle-cta-btn {
  background: #facc15;
  color: #111827;
}

.ingle-cta-dismiss-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* =========================================================
   IngleView stage
   ========================================================= */

.iv-stage {
  margin: 10px 0 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.iv-stage-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* -------------------------
   Drew column
   ------------------------- */
.iv-drew-col {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
}

.iv-drew-wrap {
  position: relative;
  width: 100%;
  max-height: 260px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  border: 1px solid var(--border);
}

.iv-drew-still,
.iv-drew-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  background: #000;
}

.iv-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 227, 240, 0.95);
  color: #111827;
  font-weight: 600;
  line-height: 1.3;
  backdrop-filter: blur(6px);
}

/* -------------------------
   Question column
   ------------------------- */
.iv-question-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.iv-topic-row {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  gap: 14px;
  align-items: start;
}

.iv-answer-setting {
  justify-self: end;
  min-width: 0;
  text-align: right;
}



.iv-answer-setting-slider-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.iv-answer-setting-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  min-width: 36px;
  text-align: right;
}

.iv-answer-setting-hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--sub);
  opacity: 0.9;
  line-height: 1.2;
}

.iv-question-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfdff;
}

.iv-question-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.iv-question {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 750;
  color: var(--text);
}

.iv-question-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* -------------------------
   Main action row
   ------------------------- */
.iv-controls-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.iv-main-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.iv-main-actions .ingle-btn,
.iv-main-actions .ingle-badge-btn,
.iv-main-actions .mic-status {
  min-height: 44px;
}

.iv-status-line {
  color: var(--sub);
  font-size: 14px;
  line-height: 1.4;
  min-height: 20px;
}

/* -------------------------
   Shared timer helpers
   ------------------------- */
.timer-label-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sub);
}

.timer-slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.timer-slider {
  width: 100%;
  accent-color: #2563eb;
}

.timer-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--sub);
  text-align: left;
  opacity: 0.9;
}

/* -------------------------
   Mic status
   ------------------------- */
.mic-status {
  min-width: 72px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #6b7280;
  border: 1px solid #d1d5db;
  user-select: none;
  pointer-events: none;
  font-size: 24px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.mic-status.live {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

/* -------------------------
   Feed row Report button
   ------------------------- */
.ingle-user {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  overflow: visible;
  white-space: normal;
}

.ingle-row-report {
  border: 1px solid #16a34a;
  background: #16a34a;
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  transition: all 0.15s ease;
}

.ingle-row-report:hover {
  background: #15803d;
  border-color: #15803d;
}

.ingle-row-report:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* =========================================================
   IngleView responsive
   ========================================================= */

@media (max-width: 860px) {
  .iv-stage-grid {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
  }

  .iv-question {
    font-size: 17px;
  }
}

@media (max-width: 760px) {
  .iv-topic-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .iv-answer-setting {
    justify-self: stretch;
    min-width: 0;
    text-align: left;
  }

  .iv-answer-setting-slider-row {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 680px) {
  .iv-stage {
    padding: 12px;
  }

  .iv-stage-grid {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .iv-drew-wrap {
    width: 100px;
    height: 212px;
    max-height: 212px;
    aspect-ratio: auto;
    border-radius: 16px;
  }

  .iv-question-col {
    gap: 10px;
  }

  .iv-answer-setting {
    text-align: left;
  }

  .iv-answer-setting-value {
    font-size: 12px;
    color: var(--sub);
    min-width: 32px;
  }

  .iv-answer-setting-hint {
    margin-top: 2px;
    font-size: 12px;
    color: var(--sub);
    line-height: 1.2;
  }

  .iv-question-card {
    padding: 14px 14px 12px;
  }

  .iv-question {
    font-size: 16px;
    line-height: 1.28;
    margin-bottom: 10px;
  }

  .iv-question-actions,
  .iv-main-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .iv-question-actions .ingle-badge-btn,
  .iv-main-actions .ingle-btn,
  .iv-main-actions .mic-status {
    min-height: 40px;
  }

  .iv-question-actions .ingle-badge-btn,
  .iv-main-actions .ingle-btn {
    padding: 0 12px;
    font-size: 13px;
  }

  .iv-controls-row {
    margin-top: 2px;
  }

  .ingle-row-report {
    font-size: 10px;
    padding: 3px 10px;
  }
}

@media (max-width: 520px) {
  .iv-stage-grid {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
  }

  .iv-drew-wrap {
    width: 96px;
    height: 205px;
    max-height: 205px;
  }

  .iv-question {
    font-size: 15px;
  }

  .iv-question-actions .ingle-badge-btn,
  .iv-main-actions .ingle-btn {
    padding: 0 10px;
    font-size: 12px;
  }

  .mic-status {
    min-width: 60px;
    min-height: 40px;
    font-size: 22px;
    padding: 0 12px;
  }
}
#ivOverlay {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);

  min-width: 130px;
  max-width: 90%;              /* was too tight before */
  width: max-content;          /* 🔑 lets text define width */

  padding: 8px 14px;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;

  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);

  opacity: 0;
  transition: opacity 0.18s ease;

  pointer-events: none;
}

#ivOverlay.countdown {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.iv-recording-progress.hidden {
  display: none;
}

.iv-recording-progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.iv-recording-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.12);
  overflow: hidden;
}

.iv-recording-progress-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: #111827;
  transition: width 0.2s linear;
}

.iv-recording-remaining {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  min-width: 34px;
  text-align: right;
}
/* =========================================
   B1 Modal
========================================= */

#ingleB1Modal .b1-modal-panel {
  max-width: 430px;
  width: calc(100% - 24px);
  padding: 12px 12px 16px;
  border-radius: 18px;
}

#ingleB1Modal .b1-modal-head {
  position: relative;
  margin-bottom: 12px;
}

#ingleB1Modal .b1-modal-title {
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  padding: 10px 44px 10px 12px;
  border: 1px solid rgba(60, 90, 130, 0.14);
  border-radius: 16px;
  background: #fff;
}

#ingleB1Modal .b1-close-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  padding: 6px 10px;
}

/* -----------------------------------------
   Drew block
----------------------------------------- */

#ingleB1Modal .b1-drew-wrap {
  width: 240px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
}

#ingleB1Modal .b1-drew-media {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0;
}

/* -----------------------------------------
   Controls
----------------------------------------- */
#ingleB1Modal .iv-controls-row {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

#ingleB1Modal .iv-main-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

#ingleB1Modal #b1MicStatus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 108px;
  height: 44px;
}

#ingleB1Modal #b1BtnGo,
#ingleB1Modal #b1BtnStartOver,
#ingleB1Modal #b1MicStatus {
  width: 108px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#ingleB1Modal #b1MicStatus {
  border-radius: 14px;
  background: #e5e7eb;
  color: #444;
  opacity: 0.95;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  text-align: center;
}

#ingleB1Modal #b1MicStatus.live {
  background: #22c55e;
  color: #fff;
  opacity: 1;
}

#ingleB1Modal .b1-intro-text {
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  color: #6b7280;
  opacity: 0.9;
  margin-top: 2px;
}

/* -----------------------------------------
   Timer
----------------------------------------- */

#ingleB1Modal .question-timer-wrap {
  text-align: center;
  margin-top: 4px;
}

#ingleB1Modal .timer-label-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
}

#ingleB1Modal .timer-track {
  max-width: 220px;
  margin: 8px auto 0;
  height: 6px;
  border-radius: 999px;
}

#ingleB1Modal .timer-fill {
  border-radius: 999px;
}

#ingleB1Modal .timer-hint {
  text-align: center;
  font-size: 12px;
  margin-top: 8px;
  opacity: 0.75;
}

/* -----------------------------------------
   Result panel
----------------------------------------- */

#ingleB1Modal .b1-result-wrap {
  margin-top: 2px;
}

#ingleB1Modal .b1-result-title {
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
}

#ingleB1Modal .b1-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#ingleB1Modal .b1-score-card {
  border: 1px solid rgba(60, 90, 130, 0.12);
  border-radius: 14px;
  padding: 10px 10px 12px;
  background: #f9fafc;
  text-align: center;
}

#ingleB1Modal .b1-score-card-wide {
  grid-column: 1 / -1;
}

#ingleB1Modal .b1-score-label {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.72;
  margin-bottom: 4px;
}

#ingleB1Modal .b1-score-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

/* -----------------------------------------
   Idle state
----------------------------------------- */

#ingleB1Modal.is-idle #b1BtnStartOver,
#ingleB1Modal.is-idle #b1TimerWrap,
#ingleB1Modal.is-idle #b1ResultWrap {
  display: none !important;
}
/* -----------------------------------------
   Prompt state
----------------------------------------- */

#ingleB1Modal.is-prompt #b1TimerWrap {
  display: block;
}

#ingleB1Modal.is-prompt #b1ResultWrap {
  display: none !important;
}
#ingleB1Modal #b1MicStatus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 108px;
  height: 44px;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center;
  vertical-align: middle;
}

#ingleB1Modal #b1MicStatus.live {
  display: inline-flex !important;
}

/* -----------------------------------------
   Recording state
----------------------------------------- */

#ingleB1Modal.is-recording #b1TimerWrap {
  display: block;
}

#ingleB1Modal.is-recording #b1BtnStartOver {
  display: inline-flex !important;
}

#ingleB1Modal.is-recording #b1ResultWrap {
  display: none !important;
}

/* -----------------------------------------
   Result state
----------------------------------------- */

#ingleB1Modal.is-result #b1TimerWrap,
#ingleB1Modal.is-result #b1MicStatus,
#ingleB1Modal.is-result #b1BtnStartOver {
  display: none !important;
}

#ingleB1Modal.is-result #b1ResultWrap {
  display: block;
}

/* -----------------------------------------
   Mobile
----------------------------------------- */

@media (max-width: 480px) {
  #ingleB1Modal .b1-modal-panel {
    width: calc(100% - 16px);
    padding: 8px 8px 12px;
  }

  #ingleB1Modal .b1-modal-title {
    font-size: 16px;
    padding: 9px 42px 9px 10px;
  }

  #ingleB1Modal .b1-drew-wrap {
    width: 180px;
  }

  #ingleB1Modal .b1-score-value {
    font-size: 22px;
  }
}
/* Scoreboard adjustment */
#ingleB1Modal.is-result .b1-modal-panel {
  max-width: 460px;
  padding-bottom: 22px;
}

#ingleB1Modal.is-result .b1-drew-wrap {
  width: 200px;
  margin-bottom: 10px;
}

#ingleB1Modal.is-result .b1-result-wrap {
  margin-top: 10px;
}

#ingleB1Modal.is-result .b1-score-grid {
  margin-top: 6px;
  gap: 8px;
}

#ingleB1Modal.is-result .b1-score-card {
  padding: 8px 8px 10px;
}

#ingleB1Modal.is-result .b1-score-value {
  font-size: 22px;
}
/* Recording progress colors */

#ivRecordingProgressFill {
  background: #22c55e; /* default green */
  transition: width 0.25s linear, background 0.2s ease;
}

#ivRecordingProgressFill.is-warning {
  background: #22c55e; /* green */
}

#ivRecordingProgressFill.is-danger {
  background: #ef4444; /* red */
}
/* =========================================
   Shell Modal (Notifications / Awards / etc)
========================================= */

#ingleShellModal .shell-modal-panel {
  max-width: 520px;
  width: calc(100% - 24px);
  padding: 14px 14px 16px;
  border-radius: 20px;
  background: #fff;
}

/* -----------------------------------------
   Header
----------------------------------------- */

#ingleShellModal .shell-modal-head {
  position: relative;
  margin-bottom: 12px;
}

#ingleShellModal .shell-modal-title {
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  padding: 10px 44px 10px 12px;
  border: 1px solid rgba(60, 90, 130, 0.14);
  border-radius: 16px;
}

#ingleShellModal .shell-close-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 6px 10px;
}

/* -----------------------------------------
   Layout
----------------------------------------- */

#ingleShellModal .shell-modal-layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
}

/* -----------------------------------------
   Media (avatar / video)
----------------------------------------- */

#ingleShellModal .shell-modal-media {
  width: 140px;
  margin: 0 auto;
}

#ingleShellModal .shell-modal-image,
#ingleShellModal .shell-modal-video {
  width: 100%;
  border-radius: 14px;
  display: block;
}

/* -----------------------------------------
   Content
----------------------------------------- */

#ingleShellModal .shell-modal-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#ingleShellModal .shell-modal-message {
  font-size: 15px;
  line-height: 1.5;
  color: #374151;
}

#ingleShellModal .shell-modal-work {
  font-size: 14px;
}

/* -----------------------------------------
   Actions
----------------------------------------- */

#ingleShellModal .shell-modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

#ingleShellModal .shell-modal-actions .ingle-btn {
  min-width: 110px;
}

/* -----------------------------------------
   Mobile
----------------------------------------- */

@media (max-width: 480px) {
  #ingleShellModal .shell-modal-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  #ingleShellModal .shell-modal-media {
    width: 120px;
  }

  #ingleShellModal .shell-modal-title {
    font-size: 16px;
  }
}
/* =========================================
   Shell Modal (Notifications / Awards / Help)
========================================= */

#ingleShellModal {
  position: fixed;
  inset: 0;
  z-index: 100000;
}

#ingleShellModal.hidden,
#ingleShellModal[hidden] {
  display: none !important;
}

#ingleShellModal .ws-modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  pointer-events: auto;
}

#ingleShellModal .shell-modal-panel {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: calc(100% - 24px);
  margin: 48px auto;
  padding: 14px 14px 16px;
  border-radius: 20px;
  background: #fff;
  box-sizing: border-box;
  pointer-events: auto;
}

/* -----------------------------------------
   Header
----------------------------------------- */

#ingleShellModal .shell-modal-head {
  position: relative;
  margin-bottom: 14px;
}

#ingleShellModal .shell-modal-title {
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  padding: 12px 50px 12px 14px;
  border: 1px solid rgba(60, 90, 130, 0.14);
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

#ingleShellModal .shell-close-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 6px 10px;
  line-height: 1;
}

/* -----------------------------------------
   Layout
----------------------------------------- */

#ingleShellModal .shell-modal-layout {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* -----------------------------------------
   Media
----------------------------------------- */

#ingleShellModal .shell-modal-media {
  width: 140px;
  min-width: 140px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  align-self: start;
}

#ingleShellModal .shell-modal-image,
#ingleShellModal .shell-modal-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* -----------------------------------------
   Main content
----------------------------------------- */

#ingleShellModal .shell-modal-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

#ingleShellModal .shell-modal-message {
  font-size: 15px;
  line-height: 1.5;
  color: #374151;
}

#ingleShellModal .shell-modal-work {
  font-size: 14px;
  line-height: 1.45;
  color: #1f2937;
}

/* -----------------------------------------
   Actions
----------------------------------------- */

#ingleShellModal .shell-modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#ingleShellModal .shell-modal-actions .ws-btn {
  min-width: 110px;
}

/* -----------------------------------------
   Empty media mode
----------------------------------------- */

#ingleShellModal .shell-modal-media.is-empty {
  display: none;
}

#ingleShellModal .shell-modal-layout.is-no-media {
  grid-template-columns: 1fr;
}

/* -----------------------------------------
   Mobile
----------------------------------------- */

@media (max-width: 560px) {
  #ingleShellModal .shell-modal-panel {
    width: calc(100% - 16px);
    margin: 28px auto;
    padding: 10px 10px 14px;
  }

  #ingleShellModal .shell-modal-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  #ingleShellModal .shell-modal-media {
    width: 160px;
    min-width: 160px;
  }

  #ingleShellModal .shell-modal-title {
    font-size: 16px;
    padding: 10px 46px 10px 12px;
  }

  #ingleShellModal .shell-modal-actions {
    margin-top: 14px;
  }
}
.iv-submit-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(107, 114, 128, 0.22);
  border-top-color: #2563eb;
  border-radius: 999px;
  display: inline-block;
  animation: iv-spin 0.8s linear infinite;
  flex: 0 0 auto;
}

.iv-submit-spinner.hidden {
  display: none !important;
}

@keyframes iv-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.iv-submit-spinner {
  align-self: center;
}
.ingle-row-question {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.25;
  color: #374151;
}

.ingle-row-question-text {
  display: inline;
}
.ingle-row-question {
  display: block !important;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.25;
  color: #374151;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ingle-row-question-text {
  display: inline !important;
}
.iv-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.iv-main-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
#ivBtnPracticeStudio {
  background: #22c55e;
  color: white;
  border: 1px solid #16a34a;
  font-weight: 700;
}

#ivBtnPracticeStudio:hover {
  background: #16a34a;
}
/* Inline topic selector */

/* --------------------------------------------------
   Topic badge / inline selector + timer
-------------------------------------------------- */

.iv-question-top-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.iv-topic-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 0;
  min-width: 0;
}

#topicBadge.ingle-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: max-content;
  cursor: default;
  user-select: none;
  flex: 0 0 auto;
}

#topicBadge.ingle-badge.is-open {
  display: inline-flex;
  width: auto;
  max-width: max-content;
  padding: inherit;
  background: inherit;
  border: inherit;
  border-radius: inherit;
  box-shadow: none;
}

.topic-selector-toggle {
  width: 26px;
  height: 26px;
  border: 1px solid #b7e4c7;
  border-radius: 999px;
  background: #ecfdf3;
  color: #2f9e44;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.topic-selector-toggle:hover {
  background: #dcfce7;
  border-color: #86d79a;
}

.topic-rating {
  color: #4b5563;
  font-weight: 700;
}

#topicSelectorPanel {
  position: absolute;
  z-index: 999;
  width: min(390px, calc(100vw - 32px));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .14);
  padding: 12px;
}

.topic-selector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 800;
}

#topicSelectorDoneBtn {
  flex: 0 0 auto;
  border: 1px solid #d0d7e2;
  border-radius: 999px;
  padding: 4px 12px;
  background: #ffffff;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#topicSelectorDoneBtn:hover {
  background: #eef6ff;
}

.topic-selector-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 6px 12px;
}

.topic-selector-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 5px 6px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
}

.topic-selector-option:hover {
  background: #f3f6fb;
}

.topic-selector-option input {
  margin-top: 1px;
  accent-color: #2f9e44;
}

.iv-answer-setting {
  min-width: 0;
}

.iv-question-top-row .iv-answer-setting {
  min-width: 280px;
}

.iv-answer-setting-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.timer-slider {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.iv-answer-setting-value {
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .iv-question-top-row {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .iv-question-top-row .iv-answer-setting {
    min-width: 0;
    width: 100%;
  }

  .iv-topic-row {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  #topicBadge.ingle-badge {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
    box-sizing: border-box;
  }

  #topicBadge .topic-rating {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #topicSelectorPanel {
    position: fixed;
    top: 112px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 144px);
    overflow-y: auto;
  }

  .topic-selector-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 452px) {
  .iv-answer-setting-slider-row {
    gap: 6px;
  }

  .iv-answer-setting-value {
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    font-size: 14px;
  }

  .iv-answer-setting-hint {
    font-size: 12px;
    line-height: 1.25;
  }
}

/* ----------------------------------------------------------
   Ingle Account Panel
---------------------------------------------------------- */

.accountPanelAnchor {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.accountPanelDrop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(340px, calc(100vw - 32px));
  max-height: 75vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .14);
  padding: 12px;
  z-index: 999;
}

.accountPanelDrop.hidden {
  display: none;
}

.accountPanelDrop::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-left: 1px solid rgba(15, 23, 42, .10);
  border-top: 1px solid rgba(15, 23, 42, .10);
  transform: rotate(45deg);
}

.accountPanelInner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accountPanelHeader {
  display: none;
}

.accountPanelTitle {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
}

.brandDot {
  color: #d72638;
}

.accountPanelSub {
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.35;
}

.accountPanelCard {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 14px;
  padding: 13px 14px;
}

.accountPanelQuiet {
  background: #f8fafc;
}

.accountPanelCard h3 {
  margin: 0 0 7px 0;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.accountPanelCard p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.4;
}

.accountPanelCard .btnPill {
  margin-top: 12px;
}

.accountLabel {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.accountInput {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 12px;
  background: #ffffff;
}

.accountInput:focus {
  outline: none;
  border-color: #d72638;
  box-shadow: 0 0 0 3px rgba(215, 38, 56, .12);
}

.accountStat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
}

.accountStat:last-of-type {
  border-bottom: none;
}

.accountStat span {
  color: #64748b;
  font-size: 14px;
}

.accountStat strong {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.btnText {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 9px 0;
  font-size: 14px;
  color: #2563eb;
  cursor: pointer;
}

.btnText:hover {
  text-decoration: underline;
}

#accountBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

#accountBadge .topic-selector-toggle {
  margin-right: 2px;
}

#accountBadge:hover {
  background: #f8fafc;
}

@media (max-width: 640px) {
  .accountPanelDrop {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    width: auto;
    max-height: calc(100vh - 96px);
    transform: none;
  }

  .accountPanelDrop::before {
    display: none;
  }
}
.topic-selector-panel-inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  min-width: 0;
}

.topic-selector-head {
  flex: 0 0 auto;
}

.topic-selector-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

@media (max-width: 760px) {
  #topicSelectorPanel {
    position: fixed;
    top: 112px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 144px);
    overflow: hidden;
  }

  .topic-selector-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  #topicSelectorPanel {
    position: fixed;
    top: 190px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 220px);
    overflow: hidden;
  }
}