/* 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);
}

/* ======================================================
   INGLE BRAND
====================================================== */

.ingle-logo {
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ingle-word {
  color: #0b6b3a;
}

.ingle-dot {
  color: #d71920;
}

.ingle-tagline {
  display: block;
  margin-top: 3px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #0b1f3a;
  visibility: visible;
  opacity: 1;
}

.tagline-english,
.tagline-practice,
.tagline-app {
  color: #0b1f3a;
}

.tagline-practice {
  font-weight: 700;
}

@media (max-width: 640px) {
  .ingle-header-left {
    display: block;
    min-width: 0;
  }

  .ingle-tagline {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
  }
}

/* =========================================================
   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 92px;
  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-header {
    gap: 8px;
    align-items: flex-start;
  }

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

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

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

  .ingle-tagline {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 0.25em;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 3px;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
    color: #0b1f3a;
  }

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

  .identityRow {
    gap: 10px;
  }

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

  .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, 0.70);
  }

  .ingle-qinline {
    gap: 8px;
  }

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

  .ingle-qactions {
    gap: 6px;
  }

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

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

  .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;
  }

  #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;
}

@media (max-width: 640px) {
  .ingle-cta-content {
    flex-direction: column;
    align-items: stretch;
  }

  .ingle-cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .ingle-cta-btn,
  .ingle-cta-dismiss-btn {
    width: 100%;
  }
}
.ingle-logo {
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ingle-word {
  color: #0b6b3a; /* dark green */
}

.ingle-dot {
  color: #d71920; /* fire engine red */
}

.ingle-tagline {
  margin-top: 3px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tagline-english {
  color: #0b1f3a; /* navy */
}

.tagline-practice {
  color: #0b1f3a; /* navy */
  font-weight: 700;
}

.tagline-app {
  color: #0b1f3a; /* navy */
}
.ingle-show-more-wrap {
  padding: 14px 12px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border);
  background: #fff;
}

.ingle-show-more-btn {
  min-width: 180px;
}
@media (max-width:520px){

  .ingle-header-left{
    margin-bottom:10px;
  }

  .identityCard{
    margin-top:8px;
  }
}
@media (max-width: 520px){

  .ingle-header{
    align-items:flex-start;
  }

  .identityCard{
    margin-top:12px;
  }

  .identityRow{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .identityActions{
    width:100%;
    justify-content:space-between;
  }
}
@media (max-width: 520px) {
  .identityLabel {
    display: none;
  }

  .identityLeft {
    min-width: 0;
  }

  .identityWho {
    min-width: 0;
  }
}