
    :root{
      color-scheme:dark;
      --bg:#102017;
      --bg2:#102017;
      --surface:#16281e;
      --surface2:#1b1536;
      --card:#fbf8ff;
      --card2:#efe8ff;
      --text:#f9f6ff;
      --muted:#bfb7d4;
      --ink:#1d1532;
      --ink2:#70647f;
      --line:rgba(184,64,64,.22);
      --line-light:rgba(91,33,182,.16);
      --royal:#1f7a5a;
      --royal2:#5b21b6;
      --lavender:#d86a5f;
      --amethyst:#b84040;
      --rose:#db2777;
      --cyan:#22d3ee;
      --emerald:#14b8a6;
      --danger:#f43f5e;
      --shadow:0 28px 80px rgba(0,0,0,.42);
      --soft:0 14px 34px rgba(42,33,66,.12);
      --serif:Georgia,"Times New Roman",serif;
      --font:"Segoe UI",Arial,sans-serif;
    }
    *{box-sizing:border-box;margin:0;padding:0}
    *{
      scrollbar-width:thin;
      scrollbar-color:var(--royal) rgba(255,255,255,.08);
    }
    *::-webkit-scrollbar{width:10px;height:10px}
    *::-webkit-scrollbar-track{
      background:rgba(255,255,255,.06);
      border-radius:999px;
    }
    *::-webkit-scrollbar-thumb{
      background:linear-gradient(180deg,var(--lavender),var(--royal),var(--royal2));
      border:2px solid rgba(9,5,29,.88);
      border-radius:999px;
    }
    *::-webkit-scrollbar-thumb:hover{
      background:linear-gradient(180deg,var(--cyan),var(--royal),var(--royal2));
    }
    body{
      min-height:100vh;
      font-family:var(--font);
      color:var(--text);
      background:
        radial-gradient(circle at 12% 4%,rgba(31,122,90,.20),transparent 26%),
        radial-gradient(circle at 88% 0%,rgba(219,39,119,.10),transparent 26%),
        radial-gradient(circle at 48% 100%,rgba(34,211,238,.08),transparent 30%),
        linear-gradient(135deg,var(--bg),var(--bg2));
      overflow:hidden;
    }
    body::before{
      content:"";
      position:fixed;
      inset:-30% -20%;
      z-index:-1;
      background:
        radial-gradient(circle at 18% 22%,rgba(184,64,64,.14),transparent 24%),
        radial-gradient(circle at 82% 16%,rgba(34,211,238,.08),transparent 22%),
        radial-gradient(circle at 50% 86%,rgba(219,39,119,.08),transparent 26%);
      animation:ambient-drift 18s ease-in-out infinite alternate;
      pointer-events:none;
    }
    button,input,select,textarea{font:inherit}
    a{text-decoration:none;color:inherit}
    :focus-visible{outline:3px solid rgba(34,211,238,.45);outline-offset:3px}
    .app{height:100vh;display:grid;grid-template-rows:76px 1fr 92px}
    .topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 22px;background:rgba(9,5,29,.86);border-bottom:1px solid var(--line);backdrop-filter:blur(18px);box-shadow:0 12px 35px rgba(0,0,0,.18)}
    .brand{display:flex;align-items:center;gap:12px;min-width:270px}.mark{width:48px;height:48px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,var(--lavender),var(--royal),var(--royal2));color:#fff;font-family:var(--serif);font-size:24px;box-shadow:0 0 34px rgba(31,122,90,.28)}.brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:.14em;text-transform:uppercase;margin-bottom:3px}.brand b{font-family:var(--serif);font-weight:500;font-size:20px;color:var(--lavender)}
    .search{flex:1;max-width:620px;position:relative}.search input{width:100%;height:46px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.07);color:var(--text);padding:0 46px 0 44px;outline:none;box-shadow:0 8px 22px rgba(0,0,0,.12);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.search input:focus{border-color:rgba(184,64,64,.58);background:rgba(255,255,255,.10);box-shadow:0 0 0 4px rgba(31,122,90,.13),0 10px 26px rgba(0,0,0,.16)}.search input::placeholder{color:rgba(249,246,255,.58)}.search span{position:absolute;left:16px;top:12px;color:var(--lavender)}.search .kbd{position:absolute;right:12px;top:10px;color:var(--muted);border:1px solid var(--line);border-radius:10px;padding:4px 8px;font-size:11px;background:rgba(255,255,255,.06)}
    .top-actions{display:flex;align-items:center;gap:10px}.auth-note{font-size:11px;color:var(--muted);background:rgba(255,255,255,.06);border:1px solid var(--line);border-radius:999px;padding:7px 10px;white-space:nowrap}.support-btn{background:linear-gradient(135deg,var(--cyan),var(--royal));border:0;color:#06121a;box-shadow:0 10px 24px rgba(34,211,238,.16)}.btn{min-height:40px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.06);color:var(--text);display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;font-weight:800;cursor:pointer}.btn-gold{background:linear-gradient(135deg,var(--lavender),var(--royal),var(--royal2));border:0;color:#fff}.btn-green{background:linear-gradient(135deg,#99f6e4,var(--emerald),var(--royal));border:0;color:#041714}.btn-ghost{background:transparent}.btn-icon{width:40px;padding:0}.btn-sm{min-height:32px;padding:0 10px;font-size:12px}
    .main{min-height:0;overflow:hidden;display:grid;grid-template-columns:280px 1fr 340px;gap:18px;padding:18px 18px 0}.panel{min-height:0;background:linear-gradient(180deg,rgba(17,16,41,.94),rgba(13,8,34,.94));border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);overflow:hidden;backdrop-filter:blur(18px)}
    .sidebar{display:grid;grid-template-rows:auto 1fr auto}.side-head{padding:18px;border-bottom:1px solid var(--line)}.side-head h2{font-family:var(--serif);font-weight:500;color:var(--lavender);font-size:25px;margin-bottom:5px}.side-head p{color:var(--muted);font-size:13px;line-height:1.45}.nav{padding:14px;overflow:auto;display:grid;gap:8px}.nav-title{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.14em;margin:10px 6px 4px}.nav-item{position:relative;min-height:46px;border-radius:16px;display:flex;align-items:center;gap:10px;padding:0 12px;color:var(--muted);border:1px solid transparent;font-weight:750;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}.nav-item.active,.nav-item:hover{background:rgba(31,122,90,.14);border-color:rgba(184,64,64,.30);color:#fff}.nav-item:hover{transform:translateX(2px)}.nav-item.active::before{content:"";position:absolute;left:-1px;top:12px;bottom:12px;width:3px;border-radius:999px;background:linear-gradient(180deg,var(--cyan),var(--lavender),var(--royal))}.nav-item span:first-child{width:24px;text-align:center}.profile-mini{border-top:1px solid var(--line);padding:14px;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.035)}.avatar{width:42px;height:42px;border-radius:16px;background:linear-gradient(135deg,var(--cyan),var(--royal));display:grid;place-items:center;color:#fff;font-weight:900}.profile-mini b{display:block;font-size:13px}.profile-mini span{display:block;color:var(--muted);font-size:12px;margin-top:2px}
    .content{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:4px;display:grid;gap:18px;align-content:start}.hero{border:1px solid var(--line);border-radius:30px;padding:22px;background:linear-gradient(135deg,rgba(31,122,90,.22),rgba(219,39,119,.06),rgba(255,255,255,.045));box-shadow:var(--shadow);display:grid;grid-template-columns:1.2fr .8fr;gap:20px;color:var(--text)}.hero small{display:block;color:var(--lavender);font-size:11px;text-transform:uppercase;letter-spacing:.16em;font-weight:900;margin-bottom:9px}.hero h1{font-family:var(--serif);font-weight:500;font-size:42px;line-height:1.06;margin-bottom:12px}.hero p{color:var(--muted);font-size:15px;line-height:1.65;max-width:650px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.hero-card{background:var(--card);color:var(--ink);border-radius:26px;padding:18px;box-shadow:var(--soft)}.hero-card h3{font-family:var(--serif);font-weight:500;font-size:25px;margin-bottom:10px}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat{background:#fff;border:1px solid var(--line-light);border-radius:18px;padding:13px}.stat b{display:block;font-family:var(--serif);font-size:25px;color:var(--royal2)}.stat span{display:block;color:var(--ink2);font-size:12px;margin-top:3px}
    .section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}.section-head h2{font-family:var(--serif);font-weight:500;font-size:29px;color:var(--lavender)}.section-head p{color:var(--muted);font-size:13px;margin-top:4px}.filters{display:flex;gap:8px;overflow:auto}.archive-count,.chip{min-height:34px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--lavender);padding:0 12px;font-weight:800;white-space:nowrap;display:inline-flex;align-items:center}.archive-count{color:var(--muted);font-size:12px}.chip.active{background:var(--royal);color:#fff;border-color:var(--royal)}
    .audio-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.audio-card{background:var(--card);color:var(--ink);border-radius:24px;padding:16px;box-shadow:var(--soft);border:1px solid rgba(255,255,255,.45);display:grid;gap:12px;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.audio-card:hover{transform:translateY(-3px);border-color:rgba(31,122,90,.28);box-shadow:0 20px 46px rgba(42,33,66,.18)}.audio-top{display:flex;justify-content:space-between;gap:12px}.audio-card h3{font-size:17px;line-height:1.25;margin-bottom:5px}.audio-card p{color:var(--ink2);font-size:13px;line-height:1.45}.badge{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:0 9px;font-size:11px;font-weight:900;white-space:nowrap}.badge.gold{background:#f8dfd9;color:var(--royal2)}.badge.green{background:#ccfbf1;color:#0f766e}.badge.blue{background:#cffafe;color:#0e7490}.audio-meta{display:flex;gap:8px;flex-wrap:wrap}.engagement-row{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.engage{border:1px solid var(--line-light);background:#fff;border-radius:14px;padding:8px;text-align:center}.engage b{display:block;color:var(--royal);font-size:14px}.engage span{display:block;color:var(--ink2);font-size:10px;margin-top:2px}.comment-box{border:1px solid var(--line-light);background:#fff;border-radius:18px;padding:10px;display:grid;gap:8px}.comment-box p{font-size:12px;color:var(--ink2);line-height:1.4}.comment-actions{display:flex;gap:7px;flex-wrap:wrap}.locked-action{opacity:.78;position:relative}.waez-details{border:1px solid var(--line-light);border-radius:18px;background:#fff1ed;padding:11px;display:grid;gap:8px}.detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.detail{border-radius:13px;background:#fff;border:1px solid var(--line-light);padding:8px}.detail span{display:block;color:var(--ink2);font-size:10px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:3px}.detail b{display:block;color:var(--ink);font-size:12px}.topic-row{display:flex;gap:6px;flex-wrap:wrap}.topic{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;background:#f8dfd9;color:var(--royal);padding:0 8px;font-size:11px;font-weight:900}.desc{color:var(--ink2);font-size:12px;line-height:1.45}.progress{height:8px;border-radius:999px;background:#f2d7d2;overflow:hidden}.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--royal),var(--cyan));border-radius:999px}.audio-actions{display:flex;gap:8px;flex-wrap:wrap}.mini-btn{min-height:34px;border:1px solid var(--line-light);border-radius:999px;background:#fff;color:var(--ink);padding:0 10px;font-weight:850;transition:transform .16s ease,box-shadow .16s ease}.mini-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(42,33,66,.12)}.mini-btn.play{background:linear-gradient(135deg,var(--royal),var(--royal2));color:#fff;border:0}
    .books-row{display:flex;gap:13px;overflow:auto}.book-card{min-width:185px;background:linear-gradient(135deg,#fbf8ff,#efe8ff);border:1px solid var(--line-light);border-radius:24px;padding:15px;color:var(--ink);box-shadow:var(--soft)}.book-cover{height:110px;border-radius:18px;background:linear-gradient(135deg,var(--royal),var(--royal2));display:grid;place-items:center;color:#fff;font-family:var(--serif);font-size:30px;margin-bottom:12px}.book-card b{display:block;font-size:14px;margin-bottom:4px}.book-card span{display:block;color:var(--ink2);font-size:12px;line-height:1.35}
    .right{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;display:grid;grid-template-rows:auto auto auto auto;align-content:start;gap:14px;background:transparent;border:0;box-shadow:none}.widget{background:linear-gradient(180deg,rgba(17,16,41,.94),rgba(13,8,34,.94));border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);overflow:hidden}.widget-head{padding:16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.widget-head h3{font-family:var(--serif);font-weight:500;font-size:23px;color:var(--lavender)}.widget-body{padding:14px;display:grid;gap:12px}.note-card{background:var(--card);color:var(--ink);border-radius:20px;padding:14px;box-shadow:var(--soft)}.note-card b{display:block;font-size:14px;margin-bottom:5px}.note-card p{color:var(--ink2);font-size:12px;line-height:1.5}.contributor{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:18px;padding:10px}.contributor .avatar{width:38px;height:38px}.contributor b{display:block;font-size:13px}.contributor span{display:block;color:var(--muted);font-size:12px;margin-top:2px}.ai-card{background:linear-gradient(135deg,rgba(31,122,90,.18),rgba(34,211,238,.08));border:1px solid rgba(184,64,64,.24);border-radius:24px;padding:15px}.ai-card h4{font-family:var(--serif);font-size:22px;font-weight:500;color:var(--lavender);margin-bottom:8px}.ai-card p{color:var(--muted);font-size:13px;line-height:1.5}.ai-card input{width:100%;min-height:42px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.08);color:var(--text);padding:0 13px;margin-top:12px;outline:none}.ai-card input::placeholder{color:rgba(249,246,255,.56)}
    .player{position:relative;margin:0;background:linear-gradient(135deg,#102017,#16281e);border-top:1px solid var(--line);display:grid;grid-template-columns:320px 1fr 260px;gap:18px;align-items:center;padding:12px 22px;color:#fff;box-shadow:0 -20px 45px rgba(0,0,0,.20);transition:border-color .2s ease,box-shadow .2s ease}.player.is-listening{border-color:rgba(184,64,64,.42);box-shadow:0 -22px 48px rgba(31,122,90,.18)}.now{display:flex;align-items:center;gap:12px}.cover{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,var(--lavender),var(--royal));display:grid;place-items:center;color:#fff;font-family:var(--serif);font-size:25px}.player.is-listening .cover{animation:listening-pulse 1.8s ease-in-out infinite}.now b{display:block;font-size:14px}.now span{display:block;color:var(--muted);font-size:12px;margin-top:3px}.controls{display:grid;gap:9px}.control-buttons{display:flex;align-items:center;justify-content:center;gap:10px}.circle{width:40px;height:40px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--text)}.circle.play{width:48px;height:48px;background:var(--lavender);color:#120820;border:0}.timebar{display:grid;grid-template-columns:40px 1fr 40px;gap:8px;align-items:center;color:var(--muted);font-size:12px}.bar{height:7px;background:rgba(255,255,255,.10);border-radius:999px;overflow:hidden}.bar span{display:block;height:100%;width:38%;background:linear-gradient(90deg,var(--royal),var(--cyan))}.player.is-listening .bar span{background:linear-gradient(90deg,var(--cyan),var(--lavender),var(--royal))}.player-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
    @media(max-width:1180px){body{overflow:auto}.app{height:auto;min-height:100vh;grid-template-rows:auto 1fr auto}.main{grid-template-columns:240px 1fr}.right{grid-column:1/-1;grid-template-columns:repeat(3,1fr)}.player{grid-template-columns:1fr}.player-actions{justify-content:center}.hero{grid-template-columns:1fr}.audio-grid{grid-template-columns:1fr}}
    @media(max-width:760px){.topbar{align-items:flex-start;flex-direction:column;height:auto;padding:14px}.brand{min-width:0}.search{width:100%;max-width:none}.top-actions{flex-wrap:wrap}.main{grid-template-columns:1fr;padding:12px}.sidebar{display:none}.hero h1{font-size:32px}.right{grid-template-columns:1fr}.section-head{align-items:flex-start;flex-direction:column}.player{padding:12px}.books-row{padding-bottom:2px}.detail-grid{grid-template-columns:repeat(2,1fr)}.engagement-row{grid-template-columns:repeat(2,1fr)}}
  

html,body{height:100%;}
body{overflow:hidden;}
.app{height:100vh;min-height:0;}
.page-wrap{height:auto;min-height:0;}
.table-card{background:var(--card);color:var(--ink);border-radius:24px;padding:18px;box-shadow:var(--soft);overflow:auto;}
.admin-table{width:100%;border-collapse:collapse;font-size:13px;}
.admin-table th,.admin-table td{padding:12px;border-bottom:1px solid var(--line-light);text-align:left;}
.form-card{background:var(--card);color:var(--ink);border-radius:24px;padding:20px;box-shadow:var(--soft);max-width:560px;}
.form-card label{display:block;font-size:13px;font-weight:800;margin:12px 0 6px;}
.form-card input,.form-card textarea,.form-card select{width:100%;min-height:42px;border-radius:14px;border:1px solid var(--line-light);padding:0 12px;background:#fff;color:var(--ink);}
.form-card textarea{min-height:110px;padding:12px;}
.alert{border-radius:18px;padding:12px 14px;margin-bottom:14px;font-size:13px;}
.alert-info{background:#f8dfd9;color:var(--royal2);}
.alert-error{background:#ffe4e6;color:#be123c;}
.mobile-bottom-nav{display:none;}
.sidebar{grid-template-rows:auto 1fr auto auto}
.side-credit{border-top:1px solid var(--line);padding:10px 14px 13px;text-align:center;color:var(--muted);font-size:11px;letter-spacing:.08em;text-transform:uppercase;background:rgba(255,255,255,.025)}
.side-credit a{color:var(--lavender);font-weight:900}
.mobile-credit{display:none}
.mobile-side-actions{display:none}
html[data-theme="light"] .side-credit a{color:var(--royal2)}
html[data-theme="light"] .mobile-credit a{color:var(--royal2)}
@media(max-width:760px){.mobile-credit{display:block;padding:7px 10px;text-align:center;background:rgba(9,5,29,.96);border-top:1px solid var(--line);color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.mobile-credit a{color:var(--lavender);font-weight:900}.mobile-bottom-nav{position:sticky;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);background:rgba(9,5,29,.96);border-top:1px solid var(--line);z-index:20}.mobile-bottom-nav a{padding:10px 4px;text-align:center;color:var(--muted);font-size:11px}.mobile-bottom-nav b{display:block;font-size:16px;color:var(--lavender);margin-bottom:3px}.app{grid-template-rows:auto 1fr auto auto auto}.player{position:sticky;bottom:0;z-index:19}}
@media(max-width:1180px){body{overflow:hidden}.app{height:100vh;min-height:0}.main{overflow:auto;overscroll-behavior:contain}.content,.right{height:auto;overflow:visible;overscroll-behavior:auto}.player{margin:0}}


/* Light and dark theme system */
html[data-theme="light"]{
  color-scheme:light;
  --bg:#f7f2ff;
  --bg2:#fffaf2;
  --surface:#ffffff;
  --surface2:#f0e9ff;
  --card:#ffffff;
  --card2:#f7f2ff;
  --text:#1d1532;
  --muted:#6e617f;
  --ink:#1d1532;
  --ink2:#70647f;
  --line:rgba(91,33,182,.16);
  --line-light:rgba(91,33,182,.14);
  --shadow:0 24px 60px rgba(91,33,182,.12);
  --soft:0 14px 34px rgba(42,33,66,.10);
}
html[data-theme="light"] *{
  scrollbar-color:var(--royal) rgba(91,33,182,.10);
}
html[data-theme="light"] *::-webkit-scrollbar-track{
  background:rgba(91,33,182,.08);
}
html[data-theme="light"] *::-webkit-scrollbar-thumb{
  border-color:rgba(255,255,255,.88);
}
html[data-theme="light"] body{
  color:var(--text);
  background:
    radial-gradient(circle at 12% 4%,rgba(31,122,90,.14),transparent 28%),
    radial-gradient(circle at 88% 0%,rgba(219,39,119,.08),transparent 25%),
    radial-gradient(circle at 48% 100%,rgba(34,211,238,.10),transparent 30%),
    linear-gradient(135deg,var(--bg),var(--bg2));
}
html[data-theme="light"] .topbar,
html[data-theme="light"] .player,
html[data-theme="light"] .mobile-bottom-nav{
  background:rgba(255,255,255,.88);
  color:var(--text);
}
html[data-theme="light"] .panel,
html[data-theme="light"] .widget{
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(247,242,255,.94));
  color:var(--text);
}
html[data-theme="light"] .hero{
  background:linear-gradient(135deg,rgba(31,122,90,.12),rgba(219,39,119,.04),rgba(255,255,255,.86));
  color:var(--text);
}
html[data-theme="light"] .search input,
html[data-theme="light"] .btn,
html[data-theme="light"] .chip,
html[data-theme="light"] .ai-card input{
  background:rgba(255,255,255,.78);
  color:var(--text);
}
html[data-theme="light"] .nav-item.active,
html[data-theme="light"] .nav-item:hover{color:var(--royal2);background:rgba(31,122,90,.10)}
html[data-theme="light"] .widget-head h3,
html[data-theme="light"] .section-head h2,
html[data-theme="light"] .side-head h2,
html[data-theme="light"] .hero small,
html[data-theme="light"] .ai-card h4{color:var(--royal2)}
html[data-theme="light"] .contributor{background:rgba(31,122,90,.07)}
html[data-theme="light"] .circle{color:var(--text);background:#fff}
html[data-theme="light"] .circle.play{background:var(--royal);color:#fff}
.form-help{font-size:12px;color:var(--ink2);margin-top:12px;line-height:1.45}.alert-success,.alert-info{background:#f8dfd9;color:var(--royal2)}.alert-error{background:#ffe4e6;color:#be123c}.inline-form{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.table-card h3{font-family:var(--serif);font-size:24px;font-weight:500;margin-bottom:12px;color:var(--royal2)}

/* Database audio library, detail player, upload and personal collections */
.content-wide{min-width:0;}
.filter-card{background:rgba(255,255,255,.06);border:1px solid var(--line);border-radius:24px;padding:14px;display:grid;grid-template-columns:2fr repeat(3,1fr) 160px auto;gap:10px;align-items:center;box-shadow:var(--shadow)}
.filter-card input,.filter-card select{min-height:42px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.08);color:var(--text);padding:0 12px;outline:none;min-width:0}
.filter-card select option,
.form-card select option{
  background:#16281e;
  color:var(--text);
}
.filter-card select option:checked,
.form-card select option:checked{
  background:var(--royal);
  color:#fff;
}
html[data-theme="light"] .filter-card{background:rgba(255,255,255,.84)}
html[data-theme="light"] .filter-card input,html[data-theme="light"] .filter-card select{background:#fff;color:var(--ink);border-color:var(--line-light)}
html[data-theme="light"] .filter-card select option,
html[data-theme="light"] .form-card select option{
  background:#fff;
  color:var(--ink);
}
html[data-theme="light"] .filter-card select option:checked,
html[data-theme="light"] .form-card select option:checked{
  background:#f8dfd9;
  color:var(--royal2);
}
.audio-actions form{display:inline-flex}.audio-actions button{cursor:pointer}.audio-detail-shell{display:grid;grid-template-columns:1.35fr .65fr;gap:18px;border:1px solid var(--line);border-radius:30px;padding:20px;background:linear-gradient(135deg,rgba(31,122,90,.22),rgba(219,39,119,.06),rgba(255,255,255,.045));box-shadow:var(--shadow)}
.audio-detail-main h1{font-family:var(--serif);font-size:42px;font-weight:500;line-height:1.08;margin:8px 0 10px}.audio-detail-main p{color:var(--muted);line-height:1.65}.eyebrow{display:block;color:var(--lavender);font-size:11px;text-transform:uppercase;letter-spacing:.16em;font-weight:900}.html-player{width:100%;margin-top:18px;border-radius:18px;background:#102017}.detail-actions{margin-top:12px}.detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px}.timeline-item{width:100%;text-align:left;border:1px solid var(--line-light);background:#fff;color:var(--ink);border-radius:18px;padding:12px;margin:8px 0;cursor:pointer}.timeline-item b{display:block;font-size:14px;margin-bottom:4px;color:var(--royal2)}.timeline-item span{display:block;color:var(--ink2);font-size:12px;line-height:1.45}.inline-note-form{display:grid;gap:10px;margin:12px 0}.inline-note-form input,.inline-note-form textarea{width:100%;border:1px solid var(--line-light);border-radius:16px;padding:12px;background:#fff;color:var(--ink)}.inline-note-form textarea{min-height:90px}.wide-form{max-width:none}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 14px}.form-grid label{margin-top:0}.admin-table .mini-btn{display:inline-flex;align-items:center;justify-content:center}.right .widget:nth-child(n+5){display:none}
html[data-theme="light"] .audio-detail-shell{background:linear-gradient(135deg,rgba(255,255,255,.86),rgba(245,239,255,.92))}
html[data-theme="light"] .audio-detail-main p{color:var(--muted)}
@media(max-width:1180px){.filter-card{grid-template-columns:1fr 1fr}.audio-detail-shell,.detail-layout{grid-template-columns:1fr}}
@media(max-width:760px){.filter-card{grid-template-columns:1fr}.audio-detail-main h1{font-size:32px}.audio-detail-shell{padding:15px}.form-grid{grid-template-columns:1fr}}

.html-player{display:none}
.detail-player{
  width:100%;
  margin-top:18px;
  display:grid;
  grid-template-columns:50px 1fr auto 96px;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid rgba(184,64,64,.28);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(17,16,41,.94),rgba(27,21,54,.92));
  box-shadow:0 16px 38px rgba(0,0,0,.22);
}
.detail-play,.detail-mute{
  min-height:42px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.07);
  color:var(--lavender);
  font-weight:900;
  cursor:pointer;
}
.detail-play{
  font-size:16px;
  background:linear-gradient(135deg,var(--lavender),var(--royal));
  color:#120820;
  border:0;
}
.detail-player-main{display:grid;gap:7px;min-width:0}
.detail-player-meta{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;font-weight:800}
.detail-scrub,.detail-volume{
  width:100%;
  accent-color:var(--royal);
  cursor:pointer;
}
.detail-scrub{
  height:8px;
}
.detail-volume{
  min-width:82px;
}
.detail-player.is-playing{
  border-color:rgba(184,64,64,.46);
  box-shadow:0 18px 42px rgba(31,122,90,.20);
}
html[data-theme="light"] .detail-player{
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(247,242,255,.94));
  box-shadow:0 16px 38px rgba(91,33,182,.12);
}
html[data-theme="light"] .detail-play,
html[data-theme="light"] .detail-mute{
  background:#fff;
  color:var(--royal2);
  border-color:var(--line-light);
}
html[data-theme="light"] .detail-play{
  background:linear-gradient(135deg,var(--lavender),var(--royal));
  color:#fff;
}
@media(max-width:760px){
  .detail-player{
    grid-template-columns:46px 1fr;
  }
  .detail-mute,
  .detail-volume{
    display:none;
  }
}

.books-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.book-card-wide{min-width:0;display:grid;gap:10px}
.book-card-wide .book-cover{height:135px}
.inline-actions{display:flex;gap:7px;flex-wrap:wrap}
.table-card span{color:var(--ink2);font-size:12px}
html[data-theme="light"] .book-card{background:linear-gradient(135deg,#fff,#f7f1ff)}
@media(max-width:1180px){.books-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.books-grid{grid-template-columns:1fr}.inline-actions{display:grid}}

@media(max-width:760px){
  .app{
    height:100vh;
    min-height:0;
    grid-template-rows:auto minmax(0,1fr) auto auto auto;
  }
  .main{
    display:block;
    min-height:0;
    overflow:auto;
    overscroll-behavior:contain;
    padding:12px;
  }
  .content,
  .right{
    height:auto;
    min-height:0;
    overflow:visible;
  }
  .content{
    padding-right:0;
  }
  .right{
    grid-column:auto;
    grid-template-columns:1fr;
    grid-template-rows:none;
    margin-top:14px;
  }
  .widget{
    width:100%;
  }
  .filter-card{
    grid-template-columns:1fr !important;
    align-items:stretch;
    gap:10px;
  }
  .filter-card input,
  .filter-card select,
  .filter-card button{
    width:100%;
  }
  .player,
  .mobile-bottom-nav{
    position:static;
    bottom:auto;
  }
  .player{
    margin:0;
    grid-template-columns:1fr;
    gap:10px;
  }
  .player::before,
  .player::after{
    display:none;
  }
}

@media(max-width:760px){
  .topbar{
    gap:12px;
    padding:16px 14px;
    background:
      linear-gradient(180deg,rgba(17,16,41,.98),rgba(9,5,29,.98));
  }
  .brand{
    width:100%;
    min-width:0;
    gap:10px;
  }
  .mark{
    width:48px;
    height:48px;
    border-radius:16px;
    flex:0 0 auto;
  }
  .brand small{
    font-size:10px;
    letter-spacing:.16em;
    margin-bottom:2px;
  }
  .brand b{
    display:block;
    font-size:20px;
    line-height:1.12;
  }
  .search input{
    height:48px;
    padding-right:16px;
    font-size:14px;
  }
  .search .kbd{
    display:none;
  }
  .top-actions{
    width:100%;
    display:grid;
    grid-template-columns:48px 1fr 1fr;
    gap:9px;
    align-items:stretch;
  }
  .top-actions .btn,
  .top-actions .auth-note{
    min-height:42px;
    padding:0 12px;
    border-radius:18px;
    white-space:normal;
    text-align:center;
  }
  .top-actions .auth-note{
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    line-height:1.25;
    background:rgba(255,255,255,.055);
  }
  .top-actions .btn-icon{
    width:48px;
    padding:0;
    border-radius:18px;
  }
  .top-actions .btn-green{
    grid-column:1 / 2;
  }
  .top-actions .support-btn{
    grid-column:2 / 4;
    color:#06121a;
  }
  .top-actions .btn-ghost[href*="login"]{
    grid-column:3 / 4;
  }
}

/* Final table/header and archive texture pass */
.main::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(31,122,90,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,122,90,.055) 1px, transparent 1px),
    radial-gradient(circle, rgba(184,64,64,.12) 1px, transparent 1.5px);
  background-size:34px 34px,34px 34px,22px 22px;
  background-position:0 0,0 0,11px 11px;
  opacity:.48;
}
html[data-theme="dark"] .main::before{
  background-image:
    linear-gradient(rgba(118,215,173,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118,215,173,.055) 1px, transparent 1px),
    radial-gradient(circle, rgba(224,106,97,.13) 1px, transparent 1.5px);
  opacity:.36;
}
.content,
.right,
.sidebar{
  position:relative;
  z-index:1;
}
.sidebar{
  isolation:isolate;
}
.sidebar::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(31,122,90,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,122,90,.07) 1px, transparent 1px),
    radial-gradient(circle, rgba(184,64,64,.12) 1px, transparent 1.5px);
  background-size:30px 30px,30px 30px,18px 18px;
  opacity:.42;
  mask-image:linear-gradient(180deg,#000 0%,#000 86%,transparent 100%);
}
.sidebar > *{
  position:relative;
  z-index:1;
}
.topics-table thead th,
.waez-table thead th,
.admin-table.column-filter-table thead th{
  background:
    linear-gradient(135deg,rgba(31,122,90,.13),rgba(184,64,64,.07)),
    rgba(255,253,248,.96) !important;
  color:var(--green2) !important;
  border-bottom:1px solid rgba(31,122,90,.20) !important;
  vertical-align:top !important;
}
html[data-theme="dark"] .topics-table thead th,
html[data-theme="dark"] .waez-table thead th,
html[data-theme="dark"] .admin-table.column-filter-table thead th{
  background:
    linear-gradient(135deg,rgba(46,139,103,.18),rgba(224,106,97,.08)),
    rgba(18,24,19,.96) !important;
  color:#d9f5e8 !important;
  border-bottom-color:rgba(118,215,173,.18) !important;
}
.column-filter-table thead tr{
  height:auto;
}
.th-filter{
  display:grid;
  gap:8px;
  align-content:start;
  min-width:0;
}
.th-filter > span{
  display:block;
  color:var(--red);
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  line-height:1;
  text-transform:uppercase;
  white-space:nowrap;
}
html[data-theme="dark"] .th-filter > span{
  color:#f08a7e;
}
.th-filter input,
.th-filter select,
.column-filter-table thead input,
.column-filter-table thead select{
  width:100%;
  min-height:38px;
  border:1px solid rgba(31,122,90,.20) !important;
  border-radius:14px !important;
  background:rgba(255,253,248,.90) !important;
  color:var(--green2) !important;
  padding:0 12px !important;
  font-size:13px !important;
  font-weight:700;
  outline:none;
  box-shadow:0 8px 18px rgba(31,122,90,.05);
}
.th-filter input::placeholder{
  color:rgba(42,33,66,.52);
}
.th-filter input:focus,
.th-filter select:focus{
  border-color:rgba(184,64,64,.44) !important;
  box-shadow:0 0 0 4px rgba(184,64,64,.08);
}
html[data-theme="dark"] .th-filter input,
html[data-theme="dark"] .th-filter select,
html[data-theme="dark"] .column-filter-table thead input,
html[data-theme="dark"] .column-filter-table thead select{
  background:rgba(255,248,236,.07) !important;
  color:#fff8ec !important;
  border-color:rgba(118,215,173,.20) !important;
}
html[data-theme="dark"] .th-filter input::placeholder{
  color:rgba(255,248,236,.54);
}
.column-filter-table .split-filter{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}
.column-filter-table .split-filter.compact{
  grid-template-columns:minmax(118px,1fr) auto;
}
.column-reset{
  min-height:38px;
  background:rgba(184,64,64,.08) !important;
  color:var(--red) !important;
  border-color:rgba(184,64,64,.24) !important;
}
.column-reset:hover,
.column-reset:focus-visible{
  background:var(--red) !important;
  color:#fffdf8 !important;
}
.column-filter-row{
  display:none !important;
}
.topics-table td,
.waez-table td{
  border-bottom-color:rgba(31,122,90,.14) !important;
}
.time-pill{
  color:var(--green2) !important;
  background:rgba(31,122,90,.12) !important;
  border-color:rgba(31,122,90,.18) !important;
}
@media(max-width:760px){
  .th-filter{
    min-width:132px;
  }
  .waez-table th:nth-child(3) .th-filter{
    min-width:260px;
  }
  .topics-table th:nth-child(2) .th-filter{
    min-width:360px;
  }
  .column-filter-table .split-filter{
    min-width:250px;
  }
}

@media(max-width:760px){
  .topbar{
    padding:10px 12px;
    gap:10px;
  }
  .brand-row{
    grid-template-columns:42px 42px minmax(0,1fr);
    align-items:center;
  }
  .brand-row .sidebar-toggle{
    grid-column:1;
    grid-row:1;
    width:42px;
    min-height:42px;
    border-radius:14px;
  }
  .brand-row .brand{
    grid-column:2 / 4;
    gap:8px;
  }
  .brand-row .mark{
    width:42px;
    height:42px;
    border-radius:14px;
    font-size:21px;
  }
  .brand small{
    font-size:9px;
  }
  .brand b{
    font-size:18px;
  }
  .search input{
    height:44px;
  }
  .top-actions{
    position:absolute;
    top:10px;
    right:12px;
    width:auto;
    display:block;
  }
  .top-actions .btn-icon{
    width:42px;
    min-height:42px;
    border-radius:14px;
  }
  .top-actions .auth-note,
  .top-actions a,
  .top-actions .btn:not(.btn-icon){
    display:none;
  }
  .mobile-side-actions{
    display:grid;
    gap:8px;
    padding:12px 14px;
    border-top:1px solid var(--line);
    background:rgba(255,255,255,.035);
  }
  .mobile-side-actions .btn{
    width:100%;
  }
  .player{
    grid-template-columns:1fr auto;
    padding:10px 14px;
    gap:10px;
  }
  .player .now{
    min-width:0;
  }
  .player .cover{
    width:44px;
    height:44px;
    border-radius:14px;
    font-size:20px;
  }
  .player .now b{
    font-size:13px;
  }
  .player .now span{
    font-size:11px;
  }
  .player .controls{
    display:flex;
    justify-content:flex-end;
  }
  .player .control-buttons{
    gap:8px;
  }
  .player .circle{
    width:38px;
    height:38px;
  }
  .player .circle.play{
    width:44px;
    height:44px;
  }
  .player .timebar,
  .player .player-actions,
  .mobile-credit{
    display:none;
  }
  .mobile-bottom-nav a{
    padding:8px 4px;
  }
}

@keyframes ambient-drift{
  0%{transform:translate3d(-1.5%,0,0) scale(1)}
  100%{transform:translate3d(1.5%,-1%,0) scale(1.04)}
}
@keyframes listening-pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(184,64,64,.26)}
  50%{box-shadow:0 0 0 9px rgba(184,64,64,0)}
}
@keyframes soft-in{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}
.reveal-on-scroll{
  opacity:0;
  transform:translateY(10px);
}
.reveal-on-scroll.is-visible{
  animation:soft-in .5s ease forwards;
}
.hero,
.hero-card,
.widget,
.table-card,
.filter-card{
  animation:soft-in .42s ease both;
}
.audio-grid[aria-busy="true"]{
  position:relative;
  opacity:.62;
}
.audio-grid[aria-busy="true"]::after{
  content:"Searching archive...";
  position:absolute;
  left:50%;
  top:18px;
  transform:translateX(-50%);
  z-index:2;
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 13px;
  background:rgba(9,5,29,.88);
  color:var(--lavender);
  font-size:12px;
  font-weight:900;
  box-shadow:0 14px 30px rgba(0,0,0,.22);
}
.stat b{
  transition:color .2s ease,transform .2s ease;
}
.stat:hover b{
  transform:translateY(-1px);
  color:var(--royal);
}
html[data-theme="light"] body::before{
  background:
    radial-gradient(circle at 18% 22%,rgba(31,122,90,.10),transparent 24%),
    radial-gradient(circle at 82% 16%,rgba(34,211,238,.08),transparent 22%),
    radial-gradient(circle at 50% 86%,rgba(219,39,119,.06),transparent 26%);
}
@media(prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    scroll-behavior:auto !important;
    transition-duration:.001ms !important;
  }
  .reveal-on-scroll{
    opacity:1;
    transform:none;
  }
}

.brand-row{
  min-width:330px;
  display:flex;
  align-items:center;
  gap:10px;
}
.sidebar-toggle{
  flex:0 0 auto;
}
.sidebar-toggle.active,
.sidebar-toggle:hover{
  border-color:rgba(184,64,64,.42);
  background:rgba(31,122,90,.16);
  color:#fff;
}
.main{
  transition:grid-template-columns .22s ease,gap .22s ease;
}
.sidebar{
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
}
@media(min-width:761px){
  body.sidebar-collapsed .main{
    grid-template-columns:0 minmax(0,1fr) 340px;
  }
  body.sidebar-collapsed .sidebar{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateX(-20px);
  }
  body.sidebar-collapsed .brand-row{
    min-width:88px;
  }
}

/* Refined audio detail page */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.audio-detail-shell{
  position:relative;
  overflow:hidden;
  align-items:stretch;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:22px;
  padding:24px;
  border-radius:28px;
  background:
    radial-gradient(circle at 10% 0,rgba(31,122,90,.24),transparent 36%),
    radial-gradient(circle at 96% 12%,rgba(34,211,238,.11),transparent 32%),
    linear-gradient(135deg,rgba(30,20,59,.96),rgba(10,5,24,.98));
  border:1px solid rgba(184,64,64,.24);
  box-shadow:0 28px 70px rgba(2,1,12,.36);
}
.audio-detail-shell::before{
  content:"";
  position:absolute;
  left:24px;
  right:24px;
  top:0;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--cyan),var(--lavender),transparent);
  opacity:.72;
}
.audio-detail-main{
  position:relative;
  min-width:0;
}
.audio-detail-main h1{
  max-width:900px;
  font-size:clamp(34px,4vw,58px);
  letter-spacing:0;
}
.audio-detail-main p{
  max-width:780px;
  font-size:16px;
  color:rgba(245,239,255,.76);
}
.audio-detail-main .eyebrow{
  color:#d86a5f;
}
.audio-detail-shell .hero-card{
  align-self:stretch;
  background:linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.045));
  border:1px solid rgba(184,64,64,.22);
  border-radius:24px;
  box-shadow:none;
  backdrop-filter:blur(12px);
}
.audio-detail-shell .hero-card h3{
  color:#f7f2ff;
}
.audio-detail-shell .stat{
  background:rgba(255,255,255,.075);
  border-color:rgba(184,64,64,.22);
  color:#f8f4ff;
}
.audio-detail-shell .stat span{
  color:rgba(245,239,255,.68);
}
.detail-player{
  position:relative;
  grid-template-columns:56px minmax(0,1fr) 52px 120px;
  gap:14px;
  padding:14px 16px;
  margin-top:22px;
  border-radius:24px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.035)),
    rgba(11,8,29,.84);
  border:1px solid rgba(184,64,64,.26);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 18px 46px rgba(0,0,0,.24);
}
.detail-play{
  position:relative;
  width:52px;
  min-height:52px;
  border-radius:18px;
  display:grid;
  place-items:center;
  box-shadow:0 14px 28px rgba(31,122,90,.28);
  transition:transform .18s ease,box-shadow .18s ease;
}
.detail-play::before{
  content:"";
  width:0;
  height:0;
  border-top:9px solid transparent;
  border-bottom:9px solid transparent;
  border-left:14px solid #fff;
  transform:translateX(2px);
}
.detail-play.is-paused-icon::before{
  width:16px;
  height:18px;
  border:0;
  background:linear-gradient(90deg,#fff 0 35%,transparent 35% 65%,#fff 65% 100%);
  transform:none;
}
.detail-play:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 34px rgba(31,122,90,.36);
}
.detail-player-main{
  gap:9px;
}
.detail-player-meta{
  color:#ded4ff;
  font-size:12px;
  letter-spacing:.02em;
}
.detail-scrub-wrap{
  position:relative;
  min-width:0;
  padding-top:11px;
}
.detail-scrub,
.detail-volume{
  appearance:none;
  height:8px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(31,122,90,.78),rgba(34,211,238,.42));
}
.detail-scrub::-webkit-slider-thumb,
.detail-volume::-webkit-slider-thumb{
  appearance:none;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#d86a5f;
  border:3px solid #fff;
  box-shadow:0 4px 14px rgba(31,122,90,.45);
}
.topic-marker-layer{
  position:absolute;
  left:9px;
  right:9px;
  top:0;
  height:18px;
  pointer-events:none;
}
.topic-marker{
  position:absolute;
  top:1px;
  width:10px;
  height:18px;
  padding:0;
  transform:translateX(-50%);
  border:0;
  background:transparent;
  cursor:pointer;
  pointer-events:auto;
}
.topic-marker::before{
  content:"";
  position:absolute;
  left:50%;
  top:2px;
  width:7px;
  height:7px;
  transform:translateX(-50%) rotate(45deg);
  border-radius:2px;
  background:linear-gradient(135deg,var(--cyan),var(--lavender));
  box-shadow:0 0 0 3px rgba(31,122,90,.16),0 6px 14px rgba(34,211,238,.20);
  transition:transform .16s ease,box-shadow .16s ease;
}
.topic-marker::after{
  content:"";
  position:absolute;
  left:50%;
  top:9px;
  width:2px;
  height:10px;
  transform:translateX(-50%);
  border-radius:999px;
  background:rgba(184,64,64,.72);
}
.topic-marker:hover::before,
.topic-marker:focus-visible::before{
  transform:translateX(-50%) rotate(45deg) scale(1.35);
  box-shadow:0 0 0 5px rgba(34,211,238,.18),0 8px 18px rgba(34,211,238,.28);
}
.topic-marker:focus-visible{
  outline:0;
}
.detail-mute{
  min-height:44px;
  border-radius:999px;
  color:#efe9ff;
  background:rgba(255,255,255,.08);
  border-color:rgba(184,64,64,.26);
  font-size:12px;
}
.detail-player.is-playing{
  border-color:rgba(34,211,238,.36);
  box-shadow:0 20px 54px rgba(34,211,238,.10),0 18px 46px rgba(0,0,0,.24);
}
.detail-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.detail-actions form{
  display:flex;
}
.detail-actions .mini-btn{
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:rgba(255,255,255,.95);
  color:#1b1232;
  border:1px solid rgba(184,64,64,.42);
  box-shadow:0 12px 24px rgba(0,0,0,.12);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.detail-actions .mini-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 30px rgba(31,122,90,.22);
}
html[data-theme="light"] .audio-detail-shell{
  background:
    radial-gradient(circle at 10% 0,rgba(31,122,90,.16),transparent 36%),
    radial-gradient(circle at 96% 12%,rgba(34,211,238,.14),transparent 32%),
    linear-gradient(135deg,rgba(255,255,255,.92),rgba(247,242,255,.84));
  border-color:rgba(31,122,90,.22);
}
html[data-theme="light"] .audio-detail-main p{
  color:var(--ink2);
}
html[data-theme="light"] .audio-detail-shell .hero-card,
html[data-theme="light"] .audio-detail-shell .stat{
  background:rgba(255,255,255,.62);
  border-color:rgba(31,122,90,.16);
  color:var(--ink);
}
html[data-theme="light"] .audio-detail-shell .hero-card h3,
html[data-theme="light"] .audio-detail-shell .stat span{
  color:var(--ink2);
}
html[data-theme="light"] .detail-player{
  background:rgba(255,255,255,.72);
  border-color:rgba(31,122,90,.18);
}
html[data-theme="light"] .detail-player-meta{
  color:var(--ink2);
}
html[data-theme="light"] .topic-marker::after{
  background:rgba(91,33,182,.45);
}
html[data-theme="light"] .detail-mute{
  background:#fff;
  color:var(--royal2);
}
@media(max-width:1180px){
  .audio-detail-shell{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .audio-detail-shell{
    padding:18px;
    border-radius:24px;
  }
  .detail-player{
    grid-template-columns:52px minmax(0,1fr);
    gap:12px;
    padding:12px;
  }
  .detail-mute,
  .detail-volume{
    display:none;
  }
  .detail-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .detail-actions .mini-btn{
    width:100%;
  }
}

/* Polished archive sidebar */
.sidebar{
  background:
    radial-gradient(circle at 12% 0,rgba(31,122,90,.18),transparent 34%),
    linear-gradient(180deg,rgba(16,13,39,.98),rgba(9,7,26,.98));
  border-color:rgba(184,64,64,.18);
}
.nav{
  gap:5px;
  padding:18px 14px;
  scrollbar-color:var(--royal) rgba(255,255,255,.05);
}
.nav-title{
  margin:16px 10px 8px;
  color:rgba(231,222,255,.62);
  font-size:10px;
  letter-spacing:.18em;
  font-weight:900;
}
.nav-title:first-child{
  margin-top:4px;
}
.nav-item{
  isolation:isolate;
  min-height:44px;
  border-radius:15px;
  padding:0 10px;
  gap:12px;
  color:rgba(231,222,255,.72);
  border:1px solid transparent;
  background:transparent;
  font-weight:850;
  letter-spacing:0;
  box-shadow:none;
}
.nav-item::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  background:linear-gradient(90deg,rgba(31,122,90,.16),rgba(34,211,238,.05));
  opacity:0;
  transition:opacity .18s ease;
}
.nav-item:hover::after,
.nav-item.active::after{
  opacity:1;
}
.nav-item:hover{
  transform:translateX(3px);
  color:#fff;
  border-color:rgba(184,64,64,.18);
}
.nav-item.active{
  color:#fff;
  border-color:rgba(184,64,64,.28);
  background:rgba(255,255,255,.035);
}
.nav-item.active::before{
  left:0;
  top:9px;
  bottom:9px;
  width:3px;
  background:linear-gradient(180deg,var(--cyan),var(--lavender),var(--royal));
  box-shadow:0 0 18px rgba(31,122,90,.52);
}
.nav-icon,
.nav-item span:first-child{
  width:32px;
  height:32px;
  flex:0 0 32px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#d86a5f;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(184,64,64,.12);
  font-size:14px;
  line-height:1;
  text-align:center;
  transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon,
.nav-item:hover span:first-child,
.nav-item.active span:first-child{
  color:#fff;
  background:linear-gradient(135deg,rgba(34,211,238,.22),rgba(31,122,90,.72));
  border-color:rgba(184,64,64,.32);
  box-shadow:0 10px 24px rgba(31,122,90,.20);
}
.nav-label,
.nav-item span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.profile-mini{
  margin:0 12px 12px;
  border:1px solid rgba(184,64,64,.16);
  border-radius:20px;
  padding:12px;
  background:
    radial-gradient(circle at 12% 15%,rgba(34,211,238,.12),transparent 36%),
    rgba(255,255,255,.045);
}
.profile-mini .avatar,
.avatar{
  border-radius:15px;
  box-shadow:0 12px 26px rgba(31,122,90,.24);
}
.profile-mini b{
  color:#fff;
  font-size:13px;
}
.profile-mini span{
  color:rgba(231,222,255,.68);
}
.side-credit{
  border-top:1px solid rgba(184,64,64,.15);
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.055));
}
html[data-theme="light"] .sidebar{
  background:
    radial-gradient(circle at 12% 0,rgba(31,122,90,.13),transparent 34%),
    linear-gradient(180deg,rgba(255,255,255,.94),rgba(246,242,255,.94));
}
html[data-theme="light"] .nav-title{
  color:rgba(42,33,66,.58);
}
html[data-theme="light"] .nav-item{
  color:rgba(42,33,66,.72);
}
html[data-theme="light"] .nav-item:hover,
html[data-theme="light"] .nav-item.active{
  color:var(--ink);
  background:rgba(31,122,90,.07);
}
html[data-theme="light"] .nav-icon,
html[data-theme="light"] .nav-item span:first-child{
  background:rgba(31,122,90,.06);
  color:var(--royal2);
  border-color:rgba(31,122,90,.12);
}
html[data-theme="light"] .profile-mini{
  background:rgba(255,255,255,.72);
  border-color:rgba(31,122,90,.14);
}
html[data-theme="light"] .profile-mini b{
  color:var(--ink);
}
html[data-theme="light"] .profile-mini span{
  color:var(--ink2);
}

/* Dark-friendly archive content panels */
html[data-theme="dark"] .table-card{
  color:var(--text);
  background:
    radial-gradient(circle at 8% 0,rgba(31,122,90,.15),transparent 30%),
    radial-gradient(circle at 96% 14%,rgba(34,211,238,.08),transparent 28%),
    linear-gradient(145deg,rgba(18,14,42,.94),rgba(9,7,25,.96));
  border:1px solid rgba(184,64,64,.18);
  box-shadow:0 22px 54px rgba(0,0,0,.28);
}
html[data-theme="dark"] .table-card::before{
  background:
    linear-gradient(180deg,rgba(255,255,255,.055),transparent 38%),
    radial-gradient(circle at 0 0,rgba(31,122,90,.13),transparent 26%);
}
html[data-theme="dark"] .table-card h2,
html[data-theme="dark"] .table-card h3{
  color:#efe8ff;
}
html[data-theme="dark"] .table-card p,
html[data-theme="dark"] .table-card .desc,
html[data-theme="dark"] .table-card span{
  color:rgba(231,222,255,.72);
}
html[data-theme="dark"] .timeline-item{
  background:
    linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.035)),
    rgba(15,11,35,.82);
  border-color:rgba(184,64,64,.18);
  color:var(--text);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
html[data-theme="dark"] .timeline-item:hover{
  transform:translateX(3px);
  border-color:rgba(34,211,238,.32);
  background:
    linear-gradient(135deg,rgba(31,122,90,.18),rgba(34,211,238,.07)),
    rgba(18,14,42,.9);
  box-shadow:0 14px 30px rgba(0,0,0,.22);
}
html[data-theme="dark"] .timeline-item b{
  color:#d86a5f;
}
html[data-theme="dark"] .timeline-item span{
  color:rgba(231,222,255,.70);
}
html[data-theme="dark"] .inline-note-form input,
html[data-theme="dark"] .inline-note-form textarea,
html[data-theme="dark"] .form-grid input,
html[data-theme="dark"] .form-grid textarea,
html[data-theme="dark"] .form-grid select{
  background:rgba(255,255,255,.065);
  border-color:rgba(184,64,64,.18);
  color:var(--text);
}
html[data-theme="dark"] .inline-note-form input::placeholder,
html[data-theme="dark"] .inline-note-form textarea::placeholder,
html[data-theme="dark"] .form-grid input::placeholder,
html[data-theme="dark"] .form-grid textarea::placeholder{
  color:rgba(231,222,255,.45);
}
html[data-theme="dark"] .book-card,
html[data-theme="dark"] .note-card{
  background:rgba(255,255,255,.065);
  color:var(--text);
  border-color:rgba(184,64,64,.16);
}
html[data-theme="dark"] .admin-table tbody tr{
  background:rgba(255,255,255,.035);
}
html[data-theme="dark"] .admin-table tbody tr,
html[data-theme="dark"] .admin-table th,
html[data-theme="dark"] .admin-table td{
  border-color:rgba(184,64,64,.14);
}
html[data-theme="dark"] .admin-table td:first-child,
html[data-theme="dark"] .admin-table tbody tr:hover td b{
  color:#d86a5f;
}

/* Contributor directory profile cards */
.contributors-page{
  gap:18px;
}
.contributors-search{
  grid-template-columns:minmax(240px,420px) 180px;
  align-items:center;
}
.contributors-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.contributor-profile-card{
  position:relative;
  overflow:hidden;
  min-height:260px;
  display:grid;
  grid-template-rows:auto 1fr auto auto;
  gap:16px;
  padding:22px;
  border-radius:28px;
  color:var(--text);
  background:
    radial-gradient(circle at 90% 10%,rgba(34,211,238,.14),transparent 28%),
    radial-gradient(circle at 0 0,rgba(31,122,90,.20),transparent 34%),
    linear-gradient(145deg,rgba(18,14,42,.96),rgba(8,7,24,.97));
  border:1px solid rgba(184,64,64,.20);
  box-shadow:0 22px 58px rgba(0,0,0,.28);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.contributor-profile-card::before{
  content:"";
  position:absolute;
  left:22px;
  right:22px;
  top:0;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--cyan),var(--lavender),transparent);
  opacity:.78;
}
.contributor-profile-card::after{
  content:"";
  position:absolute;
  right:-42px;
  top:-48px;
  width:150px;
  height:150px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(184,64,64,.20),transparent 68%);
  pointer-events:none;
}
.contributor-profile-card:hover{
  transform:translateY(-4px);
  border-color:rgba(34,211,238,.28);
  box-shadow:0 28px 68px rgba(0,0,0,.34),0 0 34px rgba(31,122,90,.10);
}
.contributor-card-top{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:14px;
}
.contributor-avatar{
  width:64px;
  height:64px;
  border-radius:22px;
  display:grid;
  place-items:center;
  flex:0 0 64px;
  color:#fff;
  font-size:24px;
  font-weight:950;
  background:
    linear-gradient(135deg,rgba(34,211,238,.92),rgba(31,122,90,.96));
  box-shadow:0 16px 34px rgba(31,122,90,.30);
}
.contributor-identity{
  min-width:0;
}
.contributor-identity span{
  display:block;
  color:rgba(231,222,255,.64);
  font-size:11px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
  margin-bottom:4px;
}
.contributor-identity h3 + span{
  width:max-content;
  margin-top:7px;
  padding:5px 9px;
  border-radius:999px;
  color:#cffafe;
  background:rgba(34,211,238,.12);
  border:1px solid rgba(34,211,238,.20);
  letter-spacing:.08em;
}
.contributor-identity h3{
  color:#f7f2ff;
  font-size:22px;
  line-height:1.15;
}
.contributor-bio{
  position:relative;
  z-index:1;
  color:rgba(231,222,255,.78);
  font-size:14px;
  line-height:1.65;
}
.contributor-card-stats{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.contributor-card-stats div{
  padding:12px;
  border-radius:18px;
  background:rgba(255,255,255,.065);
  border:1px solid rgba(184,64,64,.16);
}
.contributor-card-stats b{
  display:block;
  color:#d86a5f;
  font-family:var(--serif);
  font-size:24px;
  line-height:1;
}
.contributor-card-stats span{
  display:block;
  color:rgba(231,222,255,.66);
  font-size:11px;
  margin-top:6px;
}
.contributor-card-actions{
  position:relative;
  z-index:1;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.contributor-card-actions .mini-btn{
  min-height:40px;
  padding:0 15px;
  border-color:rgba(184,64,64,.22);
}
.contributor-card-actions .mini-btn:not(.play){
  background:rgba(255,255,255,.08);
  color:#f7f2ff;
}
html[data-theme="light"] .contributor-profile-card{
  color:var(--ink);
  background:
    radial-gradient(circle at 90% 10%,rgba(34,211,238,.14),transparent 28%),
    radial-gradient(circle at 0 0,rgba(31,122,90,.14),transparent 34%),
    linear-gradient(145deg,rgba(255,255,255,.94),rgba(247,242,255,.88));
  border-color:rgba(31,122,90,.18);
  box-shadow:0 20px 46px rgba(42,33,66,.12);
}
html[data-theme="light"] .contributor-identity h3{
  color:var(--ink);
}
html[data-theme="light"] .contributor-identity span,
html[data-theme="light"] .contributor-bio,
html[data-theme="light"] .contributor-card-stats span{
  color:var(--ink2);
}
html[data-theme="light"] .contributor-identity h3 + span{
  color:#0e7490;
  background:#ecfeff;
  border-color:#bae6fd;
}
html[data-theme="light"] .contributor-card-stats div{
  background:rgba(255,255,255,.66);
  border-color:rgba(31,122,90,.14);
}
html[data-theme="light"] .contributor-card-actions .mini-btn:not(.play){
  background:#fff;
  color:var(--ink);
}
@media(max-width:1180px){
  .contributors-grid{
    grid-template-columns:1fr;
  }
}

.profile-role-pill{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 11px;
  margin:2px 0 10px;
  border-radius:999px;
  color:#cffafe;
  background:rgba(34,211,238,.12);
  border:1px solid rgba(34,211,238,.22);
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
html[data-theme="light"] .profile-role-pill{
  color:#0e7490;
  background:#ecfeff;
  border-color:#bae6fd;
}
@media(max-width:760px){
  .contributors-search{
    grid-template-columns:1fr;
  }
  .contributor-profile-card{
    min-height:0;
    padding:18px;
    border-radius:24px;
  }
  .contributor-card-stats{
    grid-template-columns:1fr;
  }
  .contributor-card-actions{
    display:grid;
  }
  .contributor-card-actions .mini-btn{
    width:100%;
  }
}

/* Global archive search */
.global-search-page{
  gap:18px;
}
.global-search-form{
  grid-template-columns:minmax(260px,1fr) 180px;
  align-items:center;
}
.global-search-groups{
  display:grid;
  gap:18px;
}
.search-group{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(184,64,64,.18);
  border-radius:26px;
  background:
    radial-gradient(circle at 6% 0,rgba(31,122,90,.16),transparent 28%),
    linear-gradient(145deg,rgba(18,14,42,.94),rgba(9,7,25,.96));
  box-shadow:0 22px 54px rgba(0,0,0,.24);
}
.search-group-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid rgba(184,64,64,.14);
}
.search-group-head h3{
  color:#efe8ff;
  font-family:var(--serif);
  font-weight:500;
  font-size:24px;
}
.search-group-head span{
  min-width:34px;
  min-height:30px;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  color:#0c1020;
  background:linear-gradient(135deg,var(--cyan),var(--lavender));
  font-weight:950;
}
.search-result-list{
  display:grid;
}
.search-result{
  display:grid;
  grid-template-columns:minmax(0,1fr) 38px;
  gap:14px;
  align-items:center;
  padding:15px 18px;
  color:var(--text);
  border-bottom:1px solid rgba(184,64,64,.10);
  transition:background .18s ease,transform .18s ease;
}
.search-result:last-child{
  border-bottom:0;
}
.search-result:hover{
  background:rgba(31,122,90,.10);
  transform:translateX(3px);
}
.search-result span{
  display:block;
  color:#d86a5f;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:5px;
}
.search-result b{
  display:block;
  color:#fff;
  font-size:16px;
  line-height:1.25;
}
.search-result p{
  color:rgba(231,222,255,.70);
  font-size:13px;
  line-height:1.5;
  margin-top:5px;
}
.search-result strong{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#fff;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(184,64,64,.16);
}
.search-empty-card{
  min-height:180px;
  display:grid;
  align-content:center;
  gap:8px;
}
html[data-theme="light"] .search-group{
  background:
    radial-gradient(circle at 6% 0,rgba(31,122,90,.12),transparent 28%),
    linear-gradient(145deg,rgba(255,255,255,.94),rgba(247,242,255,.88));
  border-color:rgba(31,122,90,.16);
  box-shadow:0 20px 46px rgba(42,33,66,.11);
}
html[data-theme="light"] .search-group-head{
  border-color:rgba(31,122,90,.14);
}
html[data-theme="light"] .search-group-head h3,
html[data-theme="light"] .search-result b{
  color:var(--ink);
}
html[data-theme="light"] .search-result{
  color:var(--ink);
  border-color:rgba(31,122,90,.10);
}
html[data-theme="light"] .search-result:hover{
  background:rgba(31,122,90,.07);
}
html[data-theme="light"] .search-result p{
  color:var(--ink2);
}
html[data-theme="light"] .search-result strong{
  color:var(--royal2);
  background:#fff;
  border-color:rgba(31,122,90,.14);
}
@media(max-width:760px){
  .global-search-form{
    grid-template-columns:1fr;
  }
  .search-result{
    grid-template-columns:1fr;
  }
  .search-result strong{
    display:none;
  }
}

/* Searchable waez selector for listener notes */
.waez-picker{
  display:grid !important;
  gap:8px;
}
.waez-picker input[type="search"],
.waez-picker select{
  width:100%;
}
.waez-picker .form-help{
  margin-top:0;
  font-weight:600;
}
.related-waez-link{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  min-height:30px;
  padding:0 11px;
  border-radius:999px;
  background:rgba(34,211,238,.13);
  color:#67e8f9;
  border:1px solid rgba(34,211,238,.20);
  font-size:12px;
  font-weight:900;
  transition:transform .16s ease,background .16s ease;
}
.related-waez-link:hover{
  transform:translateY(-1px);
  background:rgba(31,122,90,.20);
}
html[data-theme="light"] .related-waez-link{
  background:#ecfeff;
  color:#0e7490;
  border-color:#bae6fd;
}

/* Centered member login */
.auth-content{
  min-height:100%;
  align-content:center;
  justify-items:center;
  padding:24px;
}
.auth-shell{
  width:min(100%,560px);
  display:grid;
  gap:18px;
  position:relative;
}
.auth-shell::before{
  content:"";
  position:absolute;
  inset:-52px -38px auto;
  height:220px;
  z-index:-1;
  background:
    radial-gradient(circle at 28% 18%,rgba(31,122,90,.34),transparent 34%),
    radial-gradient(circle at 78% 12%,rgba(34,211,238,.18),transparent 28%);
  filter:blur(10px);
  animation:ambient-drift 8s ease-in-out infinite alternate;
  pointer-events:none;
}
.auth-intro{
  text-align:center;
  display:grid;
  justify-items:center;
  gap:8px;
}
.auth-mark{
  width:68px;
  height:68px;
  border-radius:24px;
  display:grid;
  place-items:center;
  color:#fff;
  font-family:var(--serif);
  font-size:32px;
  background:linear-gradient(135deg,var(--lavender),var(--royal),var(--cyan));
  box-shadow:0 18px 42px rgba(31,122,90,.30);
}
.auth-intro small{
  color:var(--lavender);
  font-size:11px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.auth-intro h1{
  max-width:520px;
  color:#fff;
  font-family:var(--serif);
  font-size:clamp(34px,4vw,48px);
  font-weight:500;
  line-height:1.04;
}
.auth-intro p{
  max-width:520px;
  color:rgba(231,222,255,.76);
  font-size:14px;
  line-height:1.65;
}
.auth-card{
  width:100%;
  max-width:none;
  padding:24px;
  border-radius:28px;
  color:var(--text);
  background:
    linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.045)),
    rgba(15,11,35,.88);
  border:1px solid rgba(184,64,64,.20);
  box-shadow:0 26px 70px rgba(0,0,0,.34);
  backdrop-filter:blur(16px);
}
.auth-card form{
  display:grid;
  gap:14px;
}
.auth-card label{
  color:#efe8ff;
  margin:0;
}
.auth-card input{
  margin-top:7px;
  min-height:52px;
  border-radius:18px;
  background:rgba(255,255,255,.08);
  border-color:rgba(184,64,64,.22);
  color:var(--text);
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.auth-card input:focus{
  outline:none;
  border-color:rgba(34,211,238,.42);
  background:rgba(255,255,255,.11);
  box-shadow:0 0 0 4px rgba(34,211,238,.10);
}
.auth-card input::placeholder{
  color:rgba(231,222,255,.48);
}
.auth-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:6px;
}
.auth-actions .btn{
  min-height:48px;
}
.auth-link{
  justify-self:center;
  color:var(--red);
  font-size:13px;
  font-weight:700;
  margin-top:2px;
}
.auth-link:hover,
.auth-link:focus-visible{
  color:var(--green2);
}
html[data-theme="light"] .auth-intro h1{
  color:var(--ink);
}
html[data-theme="light"] .auth-intro p{
  color:var(--ink2);
}
html[data-theme="light"] .auth-card{
  color:var(--ink);
  background:rgba(255,255,255,.82);
  border-color:rgba(31,122,90,.16);
  box-shadow:0 24px 60px rgba(42,33,66,.14);
}
html[data-theme="light"] .auth-card label{
  color:var(--ink);
}
html[data-theme="light"] .auth-card input{
  background:#fff;
  color:var(--ink);
  border-color:var(--line-light);
}
html[data-theme="light"] .auth-card input::placeholder{
  color:rgba(42,33,66,.48);
}
@media(max-width:760px){
  .auth-content{
    padding:16px;
  }
  .auth-card{
    padding:18px;
    border-radius:24px;
  }
  .auth-actions{
    grid-template-columns:1fr;
  }
}

/* High contrast action buttons */
.hero .btn-green,
.hero-actions .btn-green,
.form-card .btn-green,
.filter-card .btn-green{
  background:linear-gradient(135deg,#6ee7f9 0%,#5eead4 42%,#a78bfa 100%);
  color:#07111f !important;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 14px 30px rgba(34,211,238,.18);
  text-shadow:none;
}
.hero .btn-green:hover,
.hero-actions .btn-green:hover,
.form-card .btn-green:hover,
.filter-card .btn-green:hover{
  background:linear-gradient(135deg,#a5f3fc 0%,#67e8f9 42%,#1f7a5a 100%);
  color:#07111f !important;
  transform:translateY(-1px);
  box-shadow:0 18px 36px rgba(34,211,238,.24);
}
html[data-theme="light"] .hero .btn-green,
html[data-theme="light"] .hero-actions .btn-green,
html[data-theme="light"] .form-card .btn-green,
html[data-theme="light"] .filter-card .btn-green{
  color:#06121a !important;
}

.audio-card{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.audio-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  z-index:-1;
  background:
    radial-gradient(circle at 12% 10%,rgba(31,122,90,.18),transparent 28%),
    radial-gradient(circle at 92% 0%,rgba(34,211,238,.14),transparent 24%);
  opacity:.72;
  transform:scale(.985);
  transition:opacity .22s ease,transform .22s ease;
}
.audio-card::after{
  content:"";
  position:absolute;
  left:0;
  top:30px;
  bottom:30px;
  width:3px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--cyan),var(--lavender),var(--royal));
  opacity:0;
  transform:scaleY(.35);
  transform-origin:center;
  transition:opacity .22s ease,transform .22s ease;
}
.audio-card:hover::before{
  opacity:1;
  transform:scale(1);
}
.audio-card:hover::after,
.audio-card:focus-within::after{
  opacity:1;
  transform:scaleY(1);
}
.audio-card h3,
.audio-card .badge,
.audio-card .detail,
.audio-card .waez-details{
  transition:color .2s ease,transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.audio-card:hover h3{
  color:var(--royal2);
}
.audio-card .badge{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}
.audio-card:hover .badge{
  transform:translateY(-1px);
}
.waez-details{
  position:relative;
  overflow:hidden;
}
.waez-details::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.50),transparent 42%,rgba(31,122,90,.07));
  pointer-events:none;
}
.detail{
  position:relative;
  overflow:hidden;
}
.detail::after{
  content:"";
  position:absolute;
  left:8px;
  right:8px;
  bottom:6px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--cyan),var(--royal));
  opacity:0;
  transform:scaleX(.45);
  transform-origin:left;
  transition:opacity .2s ease,transform .2s ease;
}
.audio-card:hover .detail{
  border-color:rgba(31,122,90,.24);
  box-shadow:0 8px 18px rgba(42,33,66,.08);
}
.detail:hover{
  transform:translateY(-2px);
}
.detail:hover::after{
  opacity:1;
  transform:scaleX(1);
}
.detail b{
  transition:color .2s ease,transform .2s ease;
}
.detail:hover b{
  color:var(--royal2);
  transform:translateY(-1px);
}
.audio-actions .mini-btn{
  position:relative;
  overflow:hidden;
}
.audio-actions .mini-btn.play::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.30),transparent);
  transform:translateX(-120%);
  transition:transform .75s ease;
}
.audio-actions .mini-btn.play:hover::after{
  transform:translateX(120%);
}
html[data-theme="dark"] .audio-card{
  box-shadow:0 18px 42px rgba(0,0,0,.24),0 0 0 1px rgba(184,64,64,.08);
}
html[data-theme="dark"] .audio-card:hover{
  box-shadow:0 22px 54px rgba(0,0,0,.30),0 0 34px rgba(31,122,90,.11);
}

.table-card{
  position:relative;
  isolation:isolate;
}
.table-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  background:
    radial-gradient(circle at 8% 0%,rgba(31,122,90,.12),transparent 26%),
    radial-gradient(circle at 92% 12%,rgba(34,211,238,.10),transparent 24%),
    linear-gradient(135deg,rgba(255,255,255,.26),transparent 48%);
  pointer-events:none;
}
.admin-table{
  border-collapse:separate;
  border-spacing:0;
}
.admin-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:rgba(250,247,255,.92);
  backdrop-filter:blur(12px);
  color:var(--ink);
  font-size:12px;
  letter-spacing:.01em;
}
.admin-table tbody tr{
  position:relative;
  transform:translateY(0);
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
}
.admin-table tbody tr::after{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--cyan),var(--royal));
  opacity:0;
  transform:scaleY(.35);
  transition:opacity .18s ease,transform .18s ease;
}
.admin-table tbody tr:hover{
  background:rgba(31,122,90,.055);
  transform:translateX(3px);
  box-shadow:0 10px 24px rgba(42,33,66,.08);
}
.admin-table tbody tr:hover::after{
  opacity:1;
  transform:scaleY(1);
}
.admin-table td{
  position:relative;
}
.admin-table td:first-child{
  color:var(--royal2);
  font-weight:800;
  white-space:nowrap;
}
.admin-table td b{
  transition:color .18s ease;
}
.admin-table tbody tr:hover td b{
  color:var(--royal2);
}
.admin-table td span{
  line-height:1.5;
}
.admin-table .mini-btn{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}
.admin-table .mini-btn:hover{
  background:linear-gradient(135deg,var(--royal),var(--royal2));
  color:#fff;
  border-color:transparent;
}
html[data-theme="dark"] .admin-table thead th{
  background:rgba(17,16,41,.86);
  color:var(--lavender);
}
html[data-theme="dark"] .admin-table tbody tr:hover{
  background:rgba(184,64,64,.08);
  box-shadow:0 12px 28px rgba(0,0,0,.20);
}

@media(max-width:760px){
  .table-card{
    padding:12px;
  }
  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table tr,
  .admin-table th,
  .admin-table td{
    display:block;
  }
  .admin-table thead{
    display:none;
  }
  .admin-table tbody tr{
    border:1px solid var(--line-light);
    border-radius:18px;
    padding:10px;
    margin-bottom:10px;
    background:rgba(255,255,255,.62);
  }
  .admin-table tbody tr:hover{
    transform:translateY(-2px);
  }
  .admin-table th,
  .admin-table td{
    border-bottom:0;
    padding:7px 8px;
  }
  .admin-table td:first-child{
    color:var(--royal2);
  }
  .admin-table td:last-child{
    padding-top:10px;
  }
  .admin-table td:last-child .mini-btn{
    width:100%;
  }
html[data-theme="dark"] .admin-table tbody tr{
    background:rgba(255,255,255,.06);
  }
}

.btn{
  position:relative;
  overflow:hidden;
  min-height:42px;
  padding:0 16px;
  border-radius:14px;
  border-color:rgba(184,64,64,.26);
  background:rgba(255,255,255,.055);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 8px 20px rgba(0,0,0,.10);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease,color .18s ease;
}
.btn:hover,
.btn:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(184,64,64,.46);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 12px 26px rgba(0,0,0,.16);
}
.btn:focus-visible{
  outline:3px solid rgba(34,211,238,.22);
  outline-offset:2px;
}
.btn-primary,
.btn-secondary,
.btn-quiet{
  border-radius:14px;
}
.btn-primary{
  background:linear-gradient(135deg,var(--cyan),#5eead4 42%,var(--royal));
  color:#06121a;
  border:0;
  box-shadow:0 14px 30px rgba(34,211,238,.18);
}
.btn-secondary{
  background:linear-gradient(135deg,var(--lavender),var(--royal));
  color:#fff;
  border:0;
  box-shadow:0 14px 30px rgba(31,122,90,.20);
}
.btn-quiet{
  background:rgba(255,255,255,.065);
  color:var(--text);
}
.btn-primary::after,
.btn-secondary::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
  transform:translateX(-120%);
  transition:transform .65s ease;
}
.btn-primary:hover::after,
.btn-secondary:hover::after{
  transform:translateX(120%);
}

.home-hero{
  position:relative;
  overflow:hidden;
  align-items:stretch;
  border-color:rgba(184,64,64,.22);
  background:
    radial-gradient(circle at 12% 18%,rgba(31,122,90,.26),transparent 30%),
    radial-gradient(circle at 84% 6%,rgba(34,211,238,.12),transparent 26%),
    linear-gradient(135deg,rgba(13,8,34,.96),rgba(28,15,54,.82));
}
.home-hero::after{
  content:"";
  position:absolute;
  left:22px;
  right:22px;
  bottom:0;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--cyan),var(--lavender),var(--royal));
  opacity:.54;
}
.home-hero-copy{
  align-self:center;
  max-width:720px;
}
.home-actions{
  gap:9px;
}
.home-actions .btn{
  min-height:44px;
}
.home-overview{
  position:relative;
  overflow:hidden;
  display:grid;
  gap:14px;
  background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(246,240,255,.94));
  border:1px solid rgba(184,64,64,.42);
}
.home-overview::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 10%,rgba(34,211,238,.13),transparent 30%),
    radial-gradient(circle at 88% 20%,rgba(31,122,90,.16),transparent 28%);
  pointer-events:none;
}
.overview-head{
  position:relative;
  padding:4px 2px 2px;
}
.overview-head span{
  display:block;
  color:var(--ink2);
  font-size:11px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.overview-head b{
  display:block;
  margin-top:8px;
  color:var(--royal2);
  font-family:var(--serif);
  font-size:44px;
  font-weight:500;
  line-height:1;
}
.overview-head small{
  display:block;
  margin-top:4px;
  color:var(--ink2);
  font-size:12px;
}
.overview-grid{
  position:relative;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.overview-grid .stat{
  border-radius:16px;
  background:rgba(255,255,255,.72);
  box-shadow:0 8px 18px rgba(42,33,66,.06);
}
.overview-grid .stat b{
  font-size:22px;
}

.home-audio-card{
  border-radius:20px;
  padding:14px;
  border-color:rgba(184,64,64,.28);
}
.home-audio-card .waez-details{
  background:linear-gradient(135deg,rgba(246,240,255,.86),rgba(255,255,255,.72));
  border-radius:16px;
}
.home-audio-card .detail-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.home-audio-card .detail{
  border-radius:12px;
  padding:9px 10px;
}
.home-audio-card .audio-actions{
  padding-top:4px;
  gap:8px;
  align-items:center;
}
.home-audio-card .mini-btn{
  min-height:34px;
  border-radius:12px;
  padding:0 13px;
  font-size:13px;
  font-weight:850;
  letter-spacing:0;
  border-color:rgba(184,64,64,.42);
  background:rgba(255,255,255,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.76),0 8px 18px rgba(42,33,66,.07);
}
.mini-btn.play{
  background:linear-gradient(135deg,#176b4d,var(--royal));
  color:#fff;
  box-shadow:0 12px 24px rgba(124,58,237,.18);
}
.home-audio-card .mini-btn.play{
  background:linear-gradient(135deg,var(--royal),#0f4d38);
  border:1px solid rgba(184,64,64,.22);
  box-shadow:0 10px 22px rgba(109,40,217,.18);
}
.home-audio-card .mini-btn:not(.play):hover{
  background:#fff;
  border-color:rgba(31,122,90,.38);
}
.home-audio-card .mini-btn.play:hover{
  box-shadow:0 14px 28px rgba(109,40,217,.24);
}
.home-audio-card .mini-btn.play::before{
  content:"";
  width:0;
  height:0;
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
  border-left:7px solid currentColor;
  margin-right:1px;
}
html[data-theme="light"] .btn-quiet{
  background:rgba(255,255,255,.82);
  color:var(--ink);
}
html[data-theme="light"] .home-hero{
  background:
    radial-gradient(circle at 12% 18%,rgba(31,122,90,.16),transparent 30%),
    radial-gradient(circle at 84% 6%,rgba(34,211,238,.12),transparent 26%),
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(246,240,255,.90));
}

@media(max-width:760px){
  .home-hero{
    padding:16px;
    border-radius:22px;
  }
  .home-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .home-actions .btn{
    width:100%;
  }
  .overview-head b{
    font-size:36px;
  }
  .overview-grid{
    grid-template-columns:1fr 1fr;
  }
}

.notes-contribution-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 18px;
  border:1px solid rgba(184,64,64,.24);
  border-radius:22px;
  background:
    radial-gradient(circle at 8% 0%,rgba(34,211,238,.12),transparent 28%),
    linear-gradient(135deg,rgba(31,122,90,.15),rgba(255,255,255,.045));
  box-shadow:var(--shadow);
}
.notes-contribution-cta.is-needed{
  border-color:rgba(34,211,238,.30);
}
.notes-contribution-cta span{
  display:block;
  color:var(--lavender);
  font-size:11px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:5px;
}
.notes-contribution-cta h2{
  color:var(--text);
  font-family:var(--serif);
  font-weight:500;
  font-size:25px;
  line-height:1.15;
  margin:0 0 6px;
}
.notes-contribution-cta p{
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  margin:0;
}
.notes-invite-widget .btn{
  width:100%;
}
.contribute-notes-btn{
  background:linear-gradient(135deg,rgba(34,211,238,.95),rgba(31,122,90,.92)) !important;
  color:#06121a !important;
  border:0 !important;
}
html[data-theme="light"] .notes-contribution-cta{
  background:
    radial-gradient(circle at 8% 0%,rgba(34,211,238,.12),transparent 28%),
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(246,240,255,.90));
}
html[data-theme="light"] .notes-contribution-cta h2{
  color:var(--ink);
}

@media(max-width:760px){
  .notes-contribution-cta{
    display:grid;
  }
  .notes-contribution-cta .btn{
    width:100%;
  }
}

/* Final audio row polish */
.line-title-row .badge{
  display:none !important;
}
.line-social{
  gap:7px;
}
.line-social span{
  min-height:24px;
  padding:0 8px;
  border:1px solid rgba(31,122,90,.18);
  border-radius:999px;
  background:rgba(31,122,90,.08);
  line-height:1;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease;
}
.line-social span:hover{
  transform:translateY(-1px);
  border-color:rgba(34,211,238,.28);
  background:rgba(34,211,238,.10);
  color:#fff;
}
.ico-share::before{
  content:"" !important;
  position:absolute;
  left:2px;
  top:7px;
  width:11px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  inset:auto;
  font-size:0;
}
.ico-share::after{
  content:"";
  position:absolute;
  right:2px;
  top:4px;
  width:7px;
  height:7px;
  border-top:2px solid currentColor;
  border-right:2px solid currentColor;
  transform:rotate(45deg);
}
.ico-heart::before{
  content:"" !important;
  position:absolute;
  left:4px;
  top:4px;
  width:8px;
  height:8px;
  border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(-45deg);
  border-radius:0 0 0 3px;
  inset:auto;
  font-size:0;
}
.ico-heart::after{
  content:"";
  position:absolute;
  left:3px;
  top:2px;
  width:5px;
  height:5px;
  border:2px solid currentColor;
  border-right:0;
  border-bottom:0;
  border-radius:7px 0 0 0;
}
.line-actions .mini-btn{
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease,color .18s ease;
}
.line-actions .mini-btn:hover,
.line-actions .mini-btn:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(31,122,90,.18);
}
.line-actions .mini-btn.play{
  position:relative;
  background:linear-gradient(135deg,var(--lavender),var(--royal));
}
.line-actions .mini-btn.play::before{
  content:"";
  width:0;
  height:0;
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
  border-left:7px solid currentColor;
  margin-right:1px;
}
.line-actions .mini-btn.play::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
  transform:translateX(-115%);
  transition:transform .65s ease;
}
.line-actions .mini-btn.play:hover::after{
  transform:translateX(115%);
}
.line-actions .mini-btn:not(.play):hover{
  border-color:rgba(31,122,90,.35);
  background:linear-gradient(135deg,#fff,#fff1ed);
}
html[data-theme="dark"] .line-social span{
  border-color:rgba(184,64,64,.16);
  background:rgba(255,255,255,.045);
}

.top-actions{
  padding:4px;
  border:1px solid rgba(184,64,64,.14);
  border-radius:18px;
  background:rgba(255,255,255,.035);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.top-actions .btn{
  min-height:42px;
  border-radius:14px;
  padding:0 16px;
  border-color:rgba(184,64,64,.24);
  background:rgba(255,255,255,.06);
  color:var(--text);
  box-shadow:none;
}
.top-actions .btn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.10);
  border-color:rgba(184,64,64,.42);
}
.top-actions .btn-green{
  background:linear-gradient(135deg,var(--cyan),#5eead4 46%,var(--royal));
  color:#06121a;
  border:0;
  box-shadow:0 10px 22px rgba(34,211,238,.16);
}
.top-actions .btn-green:hover{
  background:linear-gradient(135deg,#7dd3fc,var(--cyan),var(--royal));
  box-shadow:0 14px 28px rgba(34,211,238,.22);
}
.top-actions .support-btn{
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(31,122,90,.18));
  color:#f9f6ff;
  border:1px solid rgba(184,64,64,.32);
}
.top-actions .support-btn:hover{
  background:linear-gradient(135deg,rgba(184,64,64,.18),rgba(31,122,90,.28));
}
.top-actions .btn-ghost[href*="login"],
.top-actions a[href*="login"].btn{
  background:rgba(255,255,255,.04);
}
html[data-theme="light"] .top-actions{
  background:rgba(255,255,255,.72);
  border-color:rgba(31,122,90,.16);
}
html[data-theme="light"] .top-actions .btn:not(.btn-green){
  background:#fff;
  color:var(--ink);
}
html[data-theme="light"] .top-actions .support-btn{
  background:linear-gradient(135deg,#fff,#fff1ed);
  color:var(--royal2);
}

.home-overview{
  color:var(--text);
  background:
    radial-gradient(circle at 16% 8%,rgba(34,211,238,.12),transparent 34%),
    radial-gradient(circle at 92% 14%,rgba(31,122,90,.18),transparent 30%),
    rgba(255,255,255,.075);
  border-color:rgba(184,64,64,.24);
  backdrop-filter:blur(18px);
  box-shadow:0 22px 44px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.08);
}
.home-overview::before{
  opacity:.42;
}
.overview-head span,
.overview-head small{
  color:rgba(249,246,255,.68);
}
.overview-head b,
.overview-grid .stat b{
  color:var(--lavender);
}
.overview-grid .stat{
  color:var(--text);
  background:rgba(255,255,255,.075);
  border-color:rgba(184,64,64,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 20px rgba(0,0,0,.12);
  backdrop-filter:blur(12px);
}
.overview-grid .stat span{
  color:rgba(249,246,255,.66);
}
html[data-theme="light"] .home-overview{
  color:var(--ink);
  background:
    radial-gradient(circle at 16% 8%,rgba(34,211,238,.10),transparent 34%),
    radial-gradient(circle at 92% 14%,rgba(31,122,90,.13),transparent 30%),
    rgba(255,255,255,.64);
  border-color:rgba(31,122,90,.18);
  box-shadow:0 22px 44px rgba(42,33,66,.12),inset 0 1px 0 rgba(255,255,255,.72);
}
html[data-theme="light"] .overview-head span,
html[data-theme="light"] .overview-head small,
html[data-theme="light"] .overview-grid .stat span{
  color:var(--ink2);
}
html[data-theme="light"] .overview-head b,
html[data-theme="light"] .overview-grid .stat b{
  color:var(--royal2);
}
html[data-theme="light"] .overview-grid .stat{
  background:rgba(255,255,255,.58);
  border-color:rgba(31,122,90,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.78),0 10px 22px rgba(42,33,66,.07);
}

/* Fix leaked player-row button shimmer and tighten row actions */
.audio-line{
  grid-template-columns:44px minmax(0,1fr) max-content;
}
.line-actions{
  align-self:center;
  gap:8px;
}
.line-actions .mini-btn{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.line-actions .mini-btn.play::after{
  display:none !important;
}
.line-actions .mini-btn.play{
  min-width:118px;
  justify-content:center;
  box-shadow:0 10px 22px rgba(31,122,90,.20);
}
.line-actions .mini-btn:not(.play){
  min-width:80px;
  justify-content:center;
}
.line-actions .icon-only{
  min-width:42px;
  width:42px;
}
.line-social span{
  transform:none;
}
.line-social span:hover{
  transform:translateY(-1px);
}

@media(max-width:900px){
  .audio-line{
    grid-template-columns:42px minmax(0,1fr);
  }
  .line-actions{
    grid-column:2;
    padding-left:0;
  }
}

@media(max-width:560px){
  .line-actions{
    grid-column:1 / -1;
    padding-left:50px;
  }
}

.topics-head{
  align-items:center;
}
.topics-filter-card{
  grid-template-columns:minmax(220px,1.6fr) minmax(150px,.9fr) minmax(150px,.9fr) minmax(140px,.7fr) minmax(140px,.7fr) auto auto;
  gap:10px;
  padding:14px;
  border-radius:20px;
  background:rgba(255,255,255,.055);
}
.topics-filter-card label{
  display:grid;
  gap:6px;
  min-width:0;
}
.topics-filter-card label span{
  color:var(--muted);
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding-left:3px;
}
.topics-filter-card input,
.topics-filter-card select{
  min-height:40px;
  border-radius:12px;
}
.topics-filter-card .btn{
  align-self:end;
  min-height:40px;
}
.topics-table-card{
  padding:0;
  border-radius:22px;
  background:rgba(255,255,255,.072);
  border:1px solid rgba(184,64,64,.22);
  color:var(--text);
}
.topics-table-wrap{
  overflow:auto;
  max-height:calc(100vh - 310px);
}
.topics-table{
  min-width:880px;
}
.topics-table thead th{
  background:rgba(17,16,41,.94);
  color:var(--lavender);
  border-bottom:1px solid rgba(184,64,64,.20);
  padding:13px 14px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:11px;
}
.topics-table tbody tr{
  background:transparent;
}
.topics-table tbody tr:hover{
  background:rgba(31,122,90,.075);
  transform:none;
  box-shadow:none;
}
.topics-table th,
.topics-table td{
  padding:14px;
  vertical-align:top;
}
.topics-table td{
  border-bottom:1px solid rgba(184,64,64,.16);
}
.topics-table td:first-child{
  width:88px;
}
.topics-table td:nth-child(2){
  width:52%;
}
.topics-table td:nth-child(3){
  width:170px;
}
.topics-table td:nth-child(4){
  width:130px;
}
.topics-table td b{
  color:var(--text);
  font-size:13px;
}
.topics-table td span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.time-pill{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 9px;
  border-radius:999px;
  background:rgba(31,122,90,.16);
  color:var(--lavender) !important;
  font-size:12px !important;
  font-weight:900;
  margin:0 !important;
}
a.time-pill{
  cursor:pointer;
  border:1px solid rgba(184,64,64,.18);
  transition:transform .16s ease,background .16s ease,box-shadow .16s ease;
}
a.time-pill:hover{
  transform:translateY(-1px);
  background:linear-gradient(135deg,var(--royal),var(--royal2));
  color:#fff !important;
  box-shadow:0 10px 22px rgba(31,122,90,.24);
}
.topics-table .mini-btn{
  min-width:70px;
  border-radius:12px;
}
.topics-table-card[aria-busy="true"]{
  opacity:.62;
}
.topics-table-card[aria-busy="true"]::after{
  content:"Searching topics...";
  position:absolute;
  right:16px;
  top:14px;
  z-index:4;
  border-radius:999px;
  padding:7px 12px;
  background:linear-gradient(135deg,var(--cyan),var(--royal));
  color:#06121a;
  font-size:12px;
  font-weight:900;
  box-shadow:0 14px 30px rgba(0,0,0,.22);
}
html[data-theme="light"] .topics-filter-card{
  background:rgba(255,255,255,.74);
}
html[data-theme="light"] .topics-table-card{
  background:rgba(255,255,255,.68);
  color:var(--ink);
}
html[data-theme="light"] .topics-table thead th{
  background:rgba(244,239,255,.96);
  color:var(--royal2);
}
html[data-theme="light"] .topics-table td{
  border-bottom-color:rgba(31,122,90,.14);
}
html[data-theme="light"] .topics-table td b{
  color:var(--ink);
}
html[data-theme="light"] .topics-table td span{
  color:var(--ink2);
}

@media(max-width:1180px){
  .topics-filter-card{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:760px){
  .topics-filter-card{
    grid-template-columns:1fr;
  }
  .topics-filter-card .btn{
    width:100%;
  }
  .topics-table-wrap{
    max-height:none;
    overflow:visible;
  }
  .topics-table{
    min-width:0;
  }
  .topics-table tbody tr{
    display:grid;
    gap:8px;
    border:1px solid rgba(184,64,64,.22);
    border-radius:18px;
    padding:12px;
    margin:10px 0;
    background:rgba(255,255,255,.06);
  }
  .topics-table td{
    display:grid;
    grid-template-columns:92px 1fr;
    gap:10px;
    padding:0;
    border:0;
    width:auto !important;
  }
  .topics-table td::before{
    content:attr(data-label);
    color:var(--muted);
    font-size:10px;
    font-weight:900;
    letter-spacing:.10em;
    text-transform:uppercase;
  }
  .topics-table td:last-child .mini-btn{
    width:auto;
  }
}

.contributor-profile-page{
  gap:16px;
}
.contributor-profile-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,420px);
  gap:18px;
  padding:22px;
  border:1px solid rgba(184,64,64,.22);
  border-radius:28px;
  background:
    radial-gradient(circle at 8% 0%,rgba(31,122,90,.22),transparent 30%),
    radial-gradient(circle at 92% 20%,rgba(34,211,238,.10),transparent 28%),
    linear-gradient(135deg,rgba(16,10,39,.96),rgba(11,7,30,.94));
  box-shadow:var(--shadow);
}
.profile-identity{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
}
.profile-avatar{
  width:92px;
  height:92px;
  flex:0 0 92px;
  border-radius:28px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--cyan),var(--lavender),var(--royal));
  color:#fff;
  font-size:38px;
  font-weight:950;
  box-shadow:0 20px 40px rgba(31,122,90,.24);
}
.profile-identity small,
.profile-summary-card > span,
.profile-insight span{
  display:block;
  color:var(--lavender);
  font-size:11px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:7px;
}
.profile-identity h1{
  color:var(--text);
  font-family:var(--serif);
  font-size:clamp(34px,4vw,52px);
  font-weight:500;
  line-height:1;
  margin:0 0 10px;
}
.profile-identity p{
  max-width:780px;
  color:var(--muted);
  line-height:1.6;
  margin:0;
}
.profile-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:16px;
}
.profile-summary-card{
  align-self:stretch;
  padding:18px;
  border:1px solid rgba(184,64,64,.22);
  border-radius:24px;
  background:rgba(255,255,255,.07);
  backdrop-filter:blur(16px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.profile-stat-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.profile-stat-grid div,
.profile-insight{
  padding:13px;
  border:1px solid rgba(184,64,64,.18);
  border-radius:16px;
  background:rgba(255,255,255,.07);
}
.profile-stat-grid b,
.profile-insight b{
  display:block;
  color:var(--lavender);
  font-family:var(--serif);
  font-size:24px;
  font-weight:500;
  line-height:1.05;
}
.profile-stat-grid small{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:5px;
}
.profile-insight-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.profile-insight span{
  margin-bottom:6px;
}
.contributor-topic-card{
  padding:0;
}
.contributor-topic-table{
  min-width:760px;
}
html[data-theme="light"] .contributor-profile-hero{
  background:
    radial-gradient(circle at 8% 0%,rgba(31,122,90,.13),transparent 30%),
    radial-gradient(circle at 92% 20%,rgba(34,211,238,.10),transparent 28%),
    linear-gradient(135deg,rgba(255,255,255,.92),rgba(246,240,255,.86));
}
html[data-theme="light"] .profile-identity h1{
  color:var(--ink);
}
html[data-theme="light"] .profile-identity p,
html[data-theme="light"] .profile-stat-grid small{
  color:var(--ink2);
}
html[data-theme="light"] .profile-summary-card,
html[data-theme="light"] .profile-stat-grid div,
html[data-theme="light"] .profile-insight{
  background:rgba(255,255,255,.58);
  border-color:rgba(31,122,90,.16);
}
html[data-theme="light"] .profile-stat-grid b,
html[data-theme="light"] .profile-insight b{
  color:var(--royal2);
}

@media(max-width:1180px){
  .contributor-profile-hero{
    grid-template-columns:1fr;
  }
}

@media(max-width:760px){
  .profile-identity{
    align-items:flex-start;
    flex-direction:column;
  }
  .profile-avatar{
    width:76px;
    height:76px;
    flex-basis:76px;
    border-radius:22px;
    font-size:30px;
  }
  .profile-stat-grid,
  .profile-insight-row{
    grid-template-columns:1fr;
  }
  .profile-actions .btn{
    width:100%;
  }
  .contributor-topic-table{
    min-width:0;
  }
}

.bot-progress-note{
  display:flex;
  align-items:center;
  gap:10px;
  max-width:720px;
  margin-top:16px;
  padding:11px 13px;
  border:1px solid rgba(184,64,64,.22);
  border-radius:16px;
  background:rgba(255,255,255,.06);
  color:var(--text);
}
.bot-progress-note::before{
  content:"";
  width:9px;
  height:9px;
  flex:0 0 9px;
  border-radius:999px;
  background:var(--cyan);
  box-shadow:0 0 0 6px rgba(34,211,238,.10);
}
.bot-progress-note b{
  white-space:nowrap;
  color:var(--lavender);
  font-size:12px;
}
.bot-progress-note span{
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}
html[data-theme="light"] .bot-progress-note{
  background:rgba(255,255,255,.64);
  color:var(--ink);
}
html[data-theme="light"] .bot-progress-note span{
  color:var(--ink2);
}

@media(max-width:760px){
  .bot-progress-note{
    align-items:flex-start;
    flex-direction:column;
  }
  .bot-progress-note::before{
    display:none;
  }
}

/* Fixed, calmer action sizing for home/list sections */
.section-head .filters{
  flex:0 0 auto;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.section-head .filters .chip,
.section-head .filters .btn{
  min-width:112px;
  min-height:38px;
  justify-content:center;
  border-radius:14px;
  padding:0 14px;
}
.section-head .filters .chip.active{
  min-width:58px;
}
.audio-line{
  grid-template-columns:48px minmax(0,1fr) 330px;
}
.line-actions{
  width:330px;
  display:grid;
  grid-template-columns:132px 88px 42px;
  justify-content:end;
  gap:8px;
}
.line-actions .mini-btn,
.line-actions form{
  width:100%;
  min-width:0;
}
.line-actions form{
  display:flex;
}
.line-actions .mini-btn{
  min-height:38px;
  padding:0 12px;
}
.line-actions .mini-btn.play{
  min-width:0;
  width:100%;
}
.line-actions .mini-btn:not(.play){
  min-width:0;
}
.line-actions .icon-only{
  width:42px;
  min-width:42px;
}
.line-actions .contribute-notes-btn{
  grid-column:1 / 3;
}

@media(max-width:1180px){
  .audio-line{
    grid-template-columns:48px minmax(0,1fr);
  }
  .line-actions{
    grid-column:2;
    width:min(330px,100%);
    padding-left:0;
    justify-content:start;
  }
}

@media(max-width:760px){
  .section-head .filters{
    width:100%;
    justify-content:flex-start;
  }
  .section-head .filters .chip,
  .section-head .filters .btn{
    min-width:max-content;
  }
  .audio-line{
    grid-template-columns:42px minmax(0,1fr);
  }
  .line-actions{
    grid-template-columns:1fr 1fr 42px;
    width:100%;
  }
}

@media(max-width:520px){
  .line-actions{
    grid-column:1 / -1;
    grid-template-columns:1fr 1fr 42px;
    padding-left:0;
  }
}

.correction-card{
  border-color:rgba(34,211,238,.22);
}
.correction-form{
  margin-top:12px;
}
.correction-form label{
  color:var(--ink);
  font-weight:850;
}
.correction-form input,
.correction-form select,
.correction-form textarea{
  width:100%;
  min-height:42px;
  border:1px solid var(--line-light);
  border-radius:14px;
  padding:0 12px;
  background:#fff;
  color:var(--ink);
}
.correction-form textarea{
  min-height:100px;
  padding:12px;
}
.hp-field{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}
html[data-theme="dark"] .correction-form label{
  color:var(--text);
}

.audio-list{
  grid-template-columns:1fr;
  gap:10px;
}
.audio-line{
  grid-template-columns:46px minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  min-height:104px;
  padding:13px 14px;
  border-radius:18px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,244,255,.90)),
    radial-gradient(circle at 94% 18%,rgba(34,211,238,.12),transparent 26%);
  box-shadow:0 10px 24px rgba(42,33,66,.10);
}
.audio-line::before{
  background:
    radial-gradient(circle at 2% 50%,rgba(31,122,90,.16),transparent 22%),
    radial-gradient(circle at 96% 22%,rgba(34,211,238,.12),transparent 22%);
}
.audio-line::after{
  top:18px;
  bottom:18px;
}
.line-play{
  position:relative;
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--lavender),var(--royal));
  box-shadow:0 12px 24px rgba(31,122,90,.22);
  transition:transform .18s ease,box-shadow .18s ease;
}
.line-play::before{
  content:"";
  width:0;
  height:0;
  margin-left:3px;
  border-top:8px solid transparent;
  border-bottom:8px solid transparent;
  border-left:11px solid #fff;
}
.audio-line:hover .line-play,
.line-play:focus-visible{
  transform:translateY(-2px) scale(1.03);
  box-shadow:0 16px 30px rgba(31,122,90,.28);
}
.line-main{
  min-width:0;
  display:grid;
  gap:7px;
}
.line-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.line-title-row h3{
  margin:0 0 3px;
  font-size:16px;
  line-height:1.25;
}
.line-title-row p,
.line-desc{
  margin:0;
  color:var(--ink2);
  font-size:12px;
  line-height:1.4;
}
.line-desc{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.line-social{
  display:flex;
  align-items:center;
  gap:0;
  min-width:0;
  color:var(--ink2);
}
.line-social span{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:72px;
  padding:0 14px;
  color:var(--ink2);
  font-size:12px;
  font-weight:850;
}
.line-social span:first-child{
  padding-left:0;
}
.line-social span:not(:last-child)::after{
  content:"";
  position:absolute;
  right:0;
  top:50%;
  width:24px;
  height:1px;
  transform:translate(50%,-50%);
  background:linear-gradient(90deg,rgba(31,122,90,.24),rgba(34,211,238,.24));
}
.ico{
  position:relative;
  width:16px;
  height:16px;
  flex:0 0 16px;
  display:inline-block;
  color:var(--royal2);
}
.ico-eye::before{
  content:"";
  position:absolute;
  inset:3px 1px;
  border:2px solid currentColor;
  border-radius:999px 999px 999px 999px / 70% 70% 70% 70%;
  transform:rotate(-8deg);
}
.ico-eye::after{
  content:"";
  position:absolute;
  left:6px;
  top:6px;
  width:4px;
  height:4px;
  border-radius:999px;
  background:currentColor;
}
.ico-share::before{
  content:"↗";
  position:absolute;
  inset:-2px 0 0;
  font-size:16px;
  line-height:16px;
}
.ico-heart::before{
  content:"♡";
  position:absolute;
  inset:-2px 0 0;
  font-size:18px;
  line-height:16px;
}
.ico-comment::before{
  content:"";
  position:absolute;
  left:1px;
  top:2px;
  width:13px;
  height:10px;
  border:2px solid currentColor;
  border-radius:7px;
}
.ico-comment::after{
  content:"";
  position:absolute;
  left:5px;
  bottom:1px;
  width:6px;
  height:6px;
  border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(-35deg);
}
.ico-topic::before{
  content:"#";
  position:absolute;
  inset:-1px 0 0;
  font-size:16px;
  line-height:16px;
  font-weight:900;
}
.ico-note::before{
  content:"";
  position:absolute;
  left:3px;
  top:1px;
  width:10px;
  height:13px;
  border:2px solid currentColor;
  border-radius:3px;
}
.ico-note::after{
  content:"";
  position:absolute;
  left:5px;
  top:5px;
  width:6px;
  height:1px;
  background:currentColor;
  box-shadow:0 4px 0 currentColor;
}
.ico-book::before{
  content:"";
  position:absolute;
  left:2px;
  top:2px;
  width:11px;
  height:12px;
  border:2px solid currentColor;
  border-radius:2px 5px 5px 2px;
}
.line-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
  max-width:310px;
}
.line-actions form{
  display:inline-flex;
}
.line-actions .mini-btn{
  min-height:34px;
  border-radius:12px;
  padding:0 12px;
  font-size:12px;
}
.line-actions .icon-only{
  width:36px;
  padding:0;
  font-size:16px;
}
html[data-theme="dark"] .audio-line{
  background:
    linear-gradient(135deg,rgba(21,15,45,.96),rgba(12,8,32,.94)),
    radial-gradient(circle at 94% 18%,rgba(34,211,238,.10),transparent 26%);
  border-color:rgba(184,64,64,.18);
}
html[data-theme="dark"] .line-title-row p,
html[data-theme="dark"] .line-desc,
html[data-theme="dark"] .line-social span{
  color:var(--muted);
}

@media(max-width:900px){
  .audio-line{
    grid-template-columns:42px minmax(0,1fr);
  }
  .line-actions{
    grid-column:1 / -1;
    justify-content:flex-start;
    max-width:none;
    padding-left:56px;
  }
  .line-social{
    overflow:auto;
    padding-bottom:2px;
  }
  .line-social span{
    min-width:auto;
    padding:0 12px;
  }
}

@media(max-width:520px){
  .audio-line{
    grid-template-columns:38px minmax(0,1fr);
    gap:10px;
    padding:12px;
  }
  .line-play{
    width:38px;
    height:38px;
    border-radius:13px;
  }
  .line-title-row{
    display:grid;
    gap:6px;
  }
  .line-actions{
    padding-left:48px;
  }
  .line-actions .mini-btn{
    flex:1 1 auto;
  }
}

/* Cleaner home + player-row refinement */
.home-hero{
  grid-template-columns:minmax(0,1fr) minmax(320px,430px);
  gap:28px;
  padding:24px;
  overflow:visible;
}
.home-hero h1{
  max-width:780px;
  font-size:clamp(34px,3.1vw,46px);
}
.home-hero p{
  max-width:720px;
}
.home-actions{
  margin-top:20px;
}
.home-actions .btn{
  min-height:42px;
  border-radius:13px;
}
.home-overview{
  align-self:center;
  border-radius:22px;
  padding:16px;
}
.overview-head b{
  font-size:36px;
}
.overview-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.overview-grid .stat{
  min-height:68px;
  padding:10px 12px;
}
.overview-grid .stat b{
  font-size:20px;
}
.overview-grid .stat span{
  font-size:11px;
}

.audio-list{
  gap:9px;
}
.audio-line{
  min-height:88px;
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:13px;
  padding:12px 14px;
  border-radius:16px;
  border-color:rgba(184,64,64,.20);
  box-shadow:0 8px 18px rgba(0,0,0,.16);
}
.audio-line:hover{
  transform:translateY(-1px);
}
.audio-line::after{
  left:0;
  top:16px;
  bottom:16px;
  width:2px;
}
.line-play{
  width:40px;
  height:40px;
  border-radius:13px;
}
.line-title-row{
  align-items:center;
}
.line-title-row h3{
  color:var(--text);
  font-size:15px;
  font-weight:900;
}
.line-title-row p{
  color:rgba(249,246,255,.70);
  font-size:12px;
}
.line-title-row .badge{
  min-height:24px;
  padding:0 10px;
  font-size:10px;
}
.line-desc{
  max-width:760px;
  color:rgba(249,246,255,.72);
  font-size:12px;
  -webkit-line-clamp:1;
}
.line-social{
  gap:10px;
  flex-wrap:wrap;
}
.line-social span{
  min-width:0;
  gap:5px;
  padding:0;
  color:rgba(249,246,255,.72);
  font-size:12px;
}
.line-social span:not(:last-child)::after{
  display:none;
}
.ico{
  width:15px;
  height:15px;
  flex-basis:15px;
  color:var(--royal);
}
.line-actions{
  max-width:none;
  flex-wrap:nowrap;
}
.line-actions .mini-btn{
  min-height:34px;
  border-radius:12px;
  white-space:nowrap;
}
.line-actions .mini-btn:not(.play){
  background:#fff;
}
.line-actions .icon-only{
  width:36px;
  background:#fff;
}
html[data-theme="dark"] .audio-line{
  color:var(--text);
  background:
    linear-gradient(135deg,rgba(20,14,43,.98),rgba(12,9,31,.98)),
    radial-gradient(circle at 96% 12%,rgba(34,211,238,.08),transparent 24%);
}
html[data-theme="dark"] .line-title-row h3{
  color:#f9f6ff;
}
html[data-theme="dark"] .line-actions .mini-btn:not(.play),
html[data-theme="dark"] .line-actions .icon-only{
  background:rgba(255,255,255,.94);
  color:#171026;
}
html[data-theme="light"] .line-title-row h3{
  color:var(--ink);
}
html[data-theme="light"] .line-title-row p,
html[data-theme="light"] .line-desc,
html[data-theme="light"] .line-social span{
  color:var(--ink2);
}

@media(max-width:1180px){
  .home-hero{
    grid-template-columns:1fr;
  }
  .home-overview{
    max-width:none;
  }
}

@media(max-width:760px){
  .home-hero{
    padding:16px;
    gap:18px;
  }
  .home-actions{
    grid-template-columns:1fr 1fr;
  }
  .audio-line{
    grid-template-columns:40px minmax(0,1fr);
    align-items:start;
  }
  .line-actions{
    grid-column:1 / -1;
    padding-left:53px;
    flex-wrap:wrap;
    justify-content:flex-start;
  }
  .line-desc{
    -webkit-line-clamp:2;
  }
}

.knowledge-card{
  position:relative;
  overflow:hidden;
}
.knowledge-card::before{
  content:"";
  position:absolute;
  inset:auto -20% -45% 18%;
  height:120px;
  background:radial-gradient(circle,rgba(31,122,90,.16),transparent 62%);
  animation:ambient-drift 9s ease-in-out infinite alternate;
  pointer-events:none;
}
.knowledge-card h3{
  position:relative;
}
.knowledge-stat{
  position:relative;
  overflow:hidden;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.knowledge-stat::after{
  content:"";
  position:absolute;
  inset:auto 12px 10px 12px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--cyan),var(--lavender),var(--royal));
  opacity:0;
  transform:scaleX(.45);
  transform-origin:left;
  transition:opacity .2s ease,transform .2s ease;
}
.knowledge-stat:hover{
  transform:translateY(-3px);
  border-color:rgba(31,122,90,.28);
  box-shadow:0 14px 30px rgba(91,33,182,.13);
}
.knowledge-stat:hover::after,
.knowledge-stat.is-live::after{
  opacity:1;
  transform:scaleX(1);
}
.knowledge-stat.is-live b{
  display:flex;
  align-items:center;
  gap:8px;
}
.knowledge-stat.is-live b::before{
  content:"";
  width:9px;
  height:9px;
  border-radius:999px;
  background:var(--emerald);
  box-shadow:0 0 0 0 rgba(20,184,166,.35);
  animation:listening-pulse 1.7s ease-in-out infinite;
}
.question-card{
  position:relative;
  overflow:hidden;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.question-card::before{
  content:"";
  position:absolute;
  left:20px;
  right:20px;
  top:0;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--cyan),var(--royal),var(--lavender));
  opacity:.55;
}
.question-card:focus-within{
  transform:translateY(-2px);
  box-shadow:0 20px 46px rgba(91,33,182,.18);
}
.question-card textarea{
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.question-card textarea:focus{
  border-color:rgba(31,122,90,.38);
  box-shadow:0 0 0 4px rgba(31,122,90,.10);
  outline:none;
}
.question-card .btn-green{
  position:relative;
  overflow:hidden;
}
.question-card .btn-green::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
  transform:translateX(-120%);
  transition:transform .45s ease;
}
.question-card .btn-green:hover::after{
  transform:translateX(120%);
}
@media(max-width:760px){
  .brand-row{
    width:100%;
    min-width:0;
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    gap:10px;
  }
  .brand-row .brand{
    width:100%;
    min-width:0;
  }
  .sidebar-toggle{
    width:48px;
    min-height:48px;
    border-radius:16px;
  }
  .sidebar{
    display:grid !important;
    position:fixed;
    top:12px;
    bottom:12px;
    left:12px;
    z-index:60;
    width:min(320px,calc(100vw - 24px));
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateX(-112%);
    box-shadow:0 28px 80px rgba(0,0,0,.48);
  }
  body.sidebar-open .sidebar{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateX(0);
  }
  body.sidebar-open::after{
    content:"";
    position:fixed;
    inset:0;
    z-index:50;
    background:rgba(2,3,13,.62);
    backdrop-filter:blur(6px);
  }
}

@media(min-width:761px){
  .topbar{
    height:76px;
    align-items:center;
    flex-direction:row;
    padding:0 22px;
  }
  .brand-row{
    width:auto;
    min-width:330px;
    display:flex;
    grid-template-columns:none;
  }
  .brand-row .brand{
    width:auto;
    min-width:270px;
  }
  .top-actions{
    position:static;
    width:auto;
    display:flex;
    align-items:center;
    gap:10px;
  }
  .top-actions .btn,
  .top-actions .auth-note,
  .top-actions a,
  .top-actions .btn:not(.btn-icon){
    display:inline-flex;
  }
  .top-actions .btn-icon{
    width:40px;
    min-height:40px;
    border-radius:999px;
  }
  .player{
    grid-template-columns:320px 1fr 260px;
  }
  .player .timebar{
    display:grid;
  }
  .player .player-actions{
    display:flex;
  }
  .mobile-side-actions,
  .mobile-credit,
  .mobile-bottom-nav{
    display:none !important;
  }
}

/* Right rail: keep every archive widget readable and scrollable. */
.right{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:0;
  height:100%;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:0 2px 20px 0;
  scrollbar-gutter:stable;
}
.right .widget{
  flex:0 0 auto;
  width:100%;
  min-height:max-content;
}
.right .widget:nth-child(n+5){
  display:block;
}
.right .widget-body{
  min-height:0;
  align-content:start;
}
.right .note-card,
.right .ai-card,
.right .contributor{
  min-width:0;
}
.right .note-card b,
.right .note-card p,
.right .ai-card h4,
.right .ai-card p,
.right .contributor b,
.right .contributor span{
  overflow-wrap:anywhere;
}
.right .widget .btn{
  max-width:100%;
  white-space:normal;
  text-align:center;
}
.dashboard-listening-card{
  position:relative;
  overflow:hidden;
}
.dashboard-listening-card::before{
  content:"";
  position:absolute;
  inset:auto 18px 0 18px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--cyan),var(--lavender),var(--royal));
  opacity:.58;
}
.dashboard-progress{
  height:8px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(31,122,90,.14);
  border:1px solid rgba(31,122,90,.14);
}
.dashboard-progress span{
  display:block;
  height:100%;
  min-width:8px;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--cyan),var(--lavender),var(--royal));
}

@media(max-width:1180px){
  .right{
    height:auto;
    overflow:visible;
    padding:0 0 132px;
  }
}

@media(max-width:760px){
  .right{
    margin-top:14px;
    padding-bottom:178px;
  }
  .right .widget{
    border-radius:22px;
  }
  .right .widget-head{
    padding:14px 16px;
  }
  .right .widget-head h3{
    font-size:22px;
  }
  .right .widget-body{
    padding:14px;
  }
}

/* Audio detail pages must never collapse around the player/header content. */
.content.content-wide{
  grid-auto-rows:max-content;
  align-content:start;
  padding-bottom:26px;
}
.content.content-wide .audio-detail-shell{
  height:auto !important;
  min-height:300px;
  overflow:visible;
  align-items:start;
}
.content.content-wide .audio-detail-main{
  display:grid;
  align-content:start;
  gap:10px;
  min-height:0;
}
.content.content-wide .audio-detail-main h1,
.content.content-wide .audio-detail-main p{
  margin-top:0;
}
.content.content-wide .audio-detail-shell .hero-card{
  align-self:start;
  min-height:0;
}
.content.content-wide .detail-player{
  width:100%;
  margin-top:6px;
}

.admin-import-page{
  grid-column:2 / -1;
}
.admin-import-page .import-shell{
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);
}
.admin-import-page .import-required-card{
  width:100%;
  max-width:none;
}
.admin-import-page .import-required-card .topic-row{
  max-height:150px;
  overflow:auto;
  align-content:start;
}

@media(max-width:760px){
  .content.content-wide .audio-detail-shell{
    min-height:0;
    padding:18px;
  }
  .admin-import-page{
    grid-column:1 / -1;
  }
  .admin-import-page .import-shell{
    grid-template-columns:1fr;
  }
}

/* VENUSCOUVER credit treatment */
.side-credit,
.mobile-credit{
  letter-spacing:0;
  text-transform:none;
}
.powered-by-brand{
  display:inline-grid;
  justify-items:center;
  gap:5px;
  max-width:190px;
  margin:0 auto;
  color:var(--muted);
  transition:transform .18s ease,filter .18s ease,opacity .18s ease;
}
.powered-by-brand span{
  color:var(--muted);
  font-size:9px;
  font-weight:850;
  letter-spacing:.16em;
  line-height:1;
  text-transform:uppercase;
}
.powered-by-brand img{
  display:block;
  width:154px;
  max-width:100%;
  height:auto;
  border-radius:4px;
  filter:drop-shadow(0 0 10px rgba(31,122,90,.24));
}
.powered-by-brand:hover,
.powered-by-brand:focus-visible{
  transform:translateY(-1px);
  filter:brightness(1.08);
}
.mobile-credit .powered-by-brand{
  max-width:160px;
  gap:3px;
}
.mobile-credit .powered-by-brand img{
  width:136px;
}
html[data-theme="light"] .powered-by-brand img{
  filter:drop-shadow(0 6px 14px rgba(91,33,182,.14));
}

@media(max-width:760px){
  .mobile-credit{
    padding:7px 10px 8px;
  }
}

/* Sidebar SVG navigation refinement */
.nav-item{
  min-height:48px;
  gap:13px;
  font-weight:600;
}
.nav-icon,
.nav-item span:first-child{
  width:36px;
  height:36px;
  flex:0 0 36px;
  border-radius:13px;
}
.nav-icon svg{
  width:21px;
  height:21px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.nav-label,
.nav-item span:last-child{
  font-weight:600;
  letter-spacing:0;
}
.nav-item.active .nav-label,
.nav-item:hover .nav-label{
  font-weight:650;
}
html[data-theme="light"] .nav-label,
html[data-theme="light"] .nav-item span:last-child{
  color:rgba(42,33,66,.78);
}
html[data-theme="light"] .nav-item.active .nav-label,
html[data-theme="light"] .nav-item:hover .nav-label{
  color:var(--ink);
}

/* Professional waez list rows */
.audio-list{
  gap:10px;
}
.audio-list .audio-line{
  position:relative;
  grid-template-columns:52px minmax(0,1fr) auto;
  min-height:112px;
  gap:16px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(184,64,64,.18);
  background:
    linear-gradient(90deg,rgba(28,17,57,.96),rgba(12,20,42,.94)),
    radial-gradient(circle at 96% 12%,rgba(34,211,238,.10),transparent 26%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 12px 28px rgba(0,0,0,.18);
}
.audio-list .audio-line::after{
  left:0;
  top:18px;
  bottom:18px;
  width:3px;
  background:linear-gradient(180deg,var(--cyan),var(--lavender),var(--royal));
  opacity:.9;
}
.audio-list .line-play{
  width:52px;
  height:52px;
  border-radius:16px;
  background:linear-gradient(135deg,#d86a5f,#176b4d);
  box-shadow:0 14px 30px rgba(124,58,237,.24);
}
.audio-list .line-play::before{
  border-top-width:9px;
  border-bottom-width:9px;
  border-left-width:13px;
}
.audio-list .line-main{
  gap:8px;
}
.audio-list .line-title-row h3{
  color:#f9f6ff;
  font-size:17px;
  font-weight:760;
}
.audio-list .line-title-row p{
  color:rgba(249,246,255,.62);
  font-size:12px;
  font-weight:500;
}
.audio-list .line-desc{
  max-width:780px;
  color:rgba(249,246,255,.78);
  font-size:13px;
  line-height:1.45;
}
.audio-list .line-desc b{
  color:rgba(249,246,255,.88);
  font-weight:720;
}
.audio-list .line-social{
  gap:8px;
}
.audio-list .line-social span{
  min-height:26px;
  padding:0 8px;
  border:1px solid rgba(184,64,64,.16);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:rgba(249,246,255,.70);
  font-size:12px;
  font-weight:700;
}
.audio-list .line-social .ico{
  color:#a78bfa;
}
.audio-list .line-actions{
  display:grid;
  grid-template-columns:128px 112px 44px;
  gap:8px;
  width:292px;
  max-width:none;
  align-items:center;
  justify-content:end;
}
.audio-list .line-actions form{
  display:flex;
  width:100%;
}
.audio-list .line-actions .mini-btn{
  width:100%;
  min-height:40px;
  border-radius:13px;
  border:1px solid rgba(184,64,64,.16);
  background:rgba(255,255,255,.08);
  color:#f9f6ff;
  font-size:13px;
  font-weight:760;
  box-shadow:none;
}
.audio-list .line-actions .mini-btn.play{
  gap:7px;
  background:linear-gradient(135deg,#9f7aea,#176b4d);
  color:#fff;
  border:0;
  box-shadow:0 14px 28px rgba(124,58,237,.24);
}
.audio-list .line-actions .mini-btn.play::before{
  position:static;
  flex:0 0 auto;
  border-top-width:6px;
  border-bottom-width:6px;
  border-left-width:9px;
}
.audio-list .line-actions .mini-btn:not(.play):hover,
.audio-list .line-actions .mini-btn:not(.play):focus-visible{
  background:rgba(255,255,255,.13);
  border-color:rgba(184,64,64,.32);
  color:#fff;
}
.audio-list .line-actions .icon-only{
  width:44px;
  min-width:44px;
  padding:0;
  background:rgba(255,255,255,.92);
  color:#171026;
  font-size:17px;
}
.audio-list .line-actions .contribute-notes-btn{
  grid-column:1 / 3;
}
html[data-theme="light"] .audio-list .audio-line{
  background:
    linear-gradient(90deg,rgba(255,255,255,.94),rgba(242,248,255,.88)),
    radial-gradient(circle at 96% 14%,rgba(34,211,238,.13),transparent 28%);
  border-color:rgba(31,122,90,.18);
  box-shadow:0 12px 28px rgba(42,33,66,.10);
}
html[data-theme="light"] .audio-list .line-title-row h3{
  color:var(--ink);
}
html[data-theme="light"] .audio-list .line-title-row p,
html[data-theme="light"] .audio-list .line-desc{
  color:var(--ink2);
}
html[data-theme="light"] .audio-list .line-desc b{
  color:var(--ink);
}
html[data-theme="light"] .audio-list .line-social span{
  color:var(--ink2);
  background:rgba(31,122,90,.055);
  border-color:rgba(31,122,90,.13);
}
html[data-theme="light"] .audio-list .line-actions .mini-btn:not(.play){
  background:#fff;
  color:var(--ink);
  border-color:rgba(31,122,90,.16);
}

@media(max-width:900px){
  .audio-list .audio-line{
    grid-template-columns:48px minmax(0,1fr);
    align-items:start;
  }
  .audio-list .line-play{
    width:48px;
    height:48px;
  }
  .audio-list .line-actions{
    grid-column:2;
    width:min(292px,100%);
    justify-content:start;
  }
}

@media(max-width:560px){
  .audio-list .audio-line{
    grid-template-columns:44px minmax(0,1fr);
    padding:14px;
  }
  .audio-list .line-play{
    width:44px;
    height:44px;
    border-radius:15px;
  }
  .audio-list .line-actions{
    grid-column:1 / -1;
    grid-template-columns:1fr 1fr 42px;
    width:100%;
  }
}

/* YouTube-style archive suggestion rail */
.suggestion-rail .widget{
  border-radius:20px;
}
.suggestion-widget .widget-body{
  gap:8px;
}
.suggestion-list,
.topic-suggestion-list{
  display:grid;
  gap:8px;
}
.suggestion-row{
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  gap:10px;
  min-width:0;
  padding:8px;
  border-radius:15px;
  color:var(--text);
  transition:background .18s ease,transform .18s ease,border-color .18s ease;
}
.suggestion-row:hover,
.suggestion-row:focus-visible{
  background:rgba(255,255,255,.07);
  transform:translateY(-1px);
}
.suggestion-thumb{
  position:relative;
  min-height:52px;
  border-radius:12px;
  overflow:hidden;
  background:
    radial-gradient(circle at 72% 22%,rgba(34,211,238,.24),transparent 34%),
    linear-gradient(135deg,rgba(31,122,90,.90),rgba(15,23,42,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
.suggestion-thumb::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:0;
  height:0;
  transform:translate(-35%,-50%);
  border-top:8px solid transparent;
  border-bottom:8px solid transparent;
  border-left:12px solid rgba(255,255,255,.94);
}
.suggestion-copy{
  min-width:0;
  display:grid;
  align-content:center;
  gap:4px;
}
.suggestion-copy b{
  overflow:hidden;
  color:var(--text);
  font-size:13px;
  font-weight:760;
  line-height:1.25;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.suggestion-copy small{
  overflow:hidden;
  color:var(--muted);
  font-size:11px;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.topic-suggestion{
  display:grid;
  gap:4px;
  padding:10px 11px;
  border:1px solid rgba(184,64,64,.15);
  border-radius:14px;
  background:rgba(255,255,255,.045);
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.topic-suggestion:hover,
.topic-suggestion:focus-visible{
  background:rgba(31,122,90,.12);
  border-color:rgba(184,64,64,.28);
  transform:translateY(-1px);
}
.topic-suggestion span{
  color:var(--cyan);
  font-size:11px;
  font-weight:850;
}
.topic-suggestion b{
  color:var(--text);
  font-size:12px;
  font-weight:720;
  line-height:1.35;
}
.compact-stat-grid{
  grid-template-columns:1fr 1fr;
}
.mini-stat{
  padding:12px;
  border:1px solid rgba(184,64,64,.14);
  border-radius:14px;
  background:rgba(255,255,255,.05);
}
.mini-stat b{
  display:block;
  color:var(--lavender);
  font-family:var(--serif);
  font-size:23px;
  font-weight:500;
  line-height:1;
}
.mini-stat span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
}
html[data-theme="light"] .suggestion-row{
  color:var(--ink);
}
html[data-theme="light"] .suggestion-row:hover,
html[data-theme="light"] .suggestion-row:focus-visible{
  background:rgba(31,122,90,.07);
}
html[data-theme="light"] .suggestion-copy b,
html[data-theme="light"] .topic-suggestion b{
  color:var(--ink);
}
html[data-theme="light"] .suggestion-copy small,
html[data-theme="light"] .mini-stat span{
  color:var(--ink2);
}
html[data-theme="light"] .topic-suggestion,
html[data-theme="light"] .mini-stat{
  background:rgba(255,255,255,.58);
  border-color:rgba(31,122,90,.14);
}

@media(max-width:1180px){
  .suggestion-rail{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
  }
}

@media(max-width:760px){
  .suggestion-rail{
    grid-template-columns:1fr;
  }
}

/* VENUSCOUVER powered credit */
.sidebar{
  grid-template-rows:minmax(0,1fr) auto auto auto;
}
.sidebar-powered{
  width:calc(100% - 28px);
  max-width:none;
  margin:10px 14px 14px;
  padding:10px 12px 12px;
  border-top:1px solid rgba(184,64,64,.18);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(31,122,90,.10),rgba(184,64,64,.06));
}
.sidebar-powered img{
  width:168px;
}
.login-powered-by{
  justify-self:center;
  width:min(260px,100%);
  padding:12px 16px 14px;
  border:1px solid rgba(184,64,64,.18);
  border-radius:22px;
  background:
    radial-gradient(circle at 22% 0,rgba(34,211,238,.12),transparent 32%),
    linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
  box-shadow:0 18px 42px rgba(0,0,0,.18);
}
.login-powered-by img{
  width:190px;
}
.login-powered-by span{
  color:rgba(231,222,255,.62);
}
html[data-theme="light"] .login-powered-by{
  background:rgba(255,255,255,.72);
  border-color:rgba(31,122,90,.14);
  box-shadow:0 18px 42px rgba(42,33,66,.10);
}
html[data-theme="light"] .login-powered-by span{
  color:rgba(42,33,66,.58);
}
@media(max-width:760px){
  .app{
    grid-template-rows:auto minmax(0,1fr) auto auto;
  }
  .sidebar{
    grid-template-rows:minmax(0,1fr) auto auto auto;
  }
  .login-powered-by{
    width:min(230px,100%);
    padding:10px 14px 12px;
  }
  .login-powered-by img{
    width:166px;
  }
}

/* Persistent archive player, clock, transcript and toast polish */
.top-clock{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  border:1px solid rgba(184,64,64,.18);
  border-radius:999px;
  background:rgba(255,255,255,.055);
  color:rgba(231,222,255,.78);
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.top-clock,
.brand-countdown{
  display:none !important;
}

/* Polished live archive overview card. */
.home-overview{
  position:relative !important;
  isolation:isolate;
  overflow:hidden !important;
  display:grid !important;
  gap:18px !important;
  padding:24px !important;
  border-radius:28px !important;
  background:
    radial-gradient(circle at 82% 14%,rgba(255,255,255,.18),transparent 22%),
    radial-gradient(circle at 16% 90%,rgba(184,64,64,.18),transparent 30%),
    linear-gradient(145deg,#0d5f45,#113d32 62%,#0b2f29) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  box-shadow:0 24px 54px rgba(16,48,36,.24) !important;
}
.home-overview::before{
  content:"";
  position:absolute;
  inset:14px;
  z-index:-1;
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  pointer-events:none;
}
.home-overview::after{
  content:"";
  position:absolute;
  right:-50px;
  top:-60px;
  width:170px;
  height:170px;
  z-index:-1;
  border-radius:999px;
  background:radial-gradient(circle,rgba(255,255,255,.20),transparent 62%);
  pointer-events:none;
}
.home-overview .overview-head{
  display:grid !important;
  gap:4px !important;
}
.home-overview .overview-head span{
  color:rgba(255,250,242,.82) !important;
  font-size:10px !important;
  font-weight:850 !important;
  letter-spacing:.18em !important;
  text-transform:uppercase !important;
}
.home-overview .overview-head b{
  color:#fffaf2 !important;
  font-family:var(--serif) !important;
  font-size:clamp(42px,6vw,58px) !important;
  font-weight:500 !important;
  line-height:.92 !important;
}
.home-overview .overview-head small{
  color:rgba(255,250,242,.78) !important;
  font-size:11px !important;
  font-weight:850 !important;
  letter-spacing:.16em !important;
  text-transform:uppercase !important;
}
.overview-rhythm{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  align-items:end;
  gap:7px;
  height:34px;
  padding:0 2px;
}
.overview-rhythm span{
  display:block;
  height:12px;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(255,250,242,.72),rgba(255,250,242,.16));
  opacity:.78;
}
.overview-rhythm span:nth-child(2){height:24px}
.overview-rhythm span:nth-child(3){height:16px}
.overview-rhythm span:nth-child(4){height:30px}
.overview-rhythm span:nth-child(5){height:20px}
.home-overview .overview-grid{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:0 !important;
  padding-top:4px !important;
}
.home-overview .overview-grid .stat{
  display:grid !important;
  grid-template-columns:auto 1fr !important;
  align-items:baseline !important;
  gap:12px !important;
  min-height:0 !important;
  padding:10px 0 !important;
  border:0 !important;
  border-top:1px solid rgba(255,255,255,.16) !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.home-overview .overview-grid .stat b{
  min-width:74px !important;
  color:#fffaf2 !important;
  font-family:var(--serif) !important;
  font-size:24px !important;
  font-weight:700 !important;
  line-height:1 !important;
}
.home-overview .overview-grid .stat span{
  color:rgba(255,250,242,.76) !important;
  font-size:12px !important;
  line-height:1.2 !important;
}
html[data-theme="dark"] .home-overview{
  background:
    radial-gradient(circle at 82% 14%,rgba(118,215,173,.16),transparent 22%),
    radial-gradient(circle at 16% 90%,rgba(224,106,97,.16),transparent 30%),
    linear-gradient(145deg,#173526,#0f241d 62%,#271916) !important;
}
@media(max-width:760px){
  .home-overview{
    padding:22px 20px !important;
  }
  .overview-rhythm{
    height:28px;
  }
  .home-overview .overview-grid .stat:nth-last-child(-n+2){
    display:grid !important;
  }
}

/* Native share button: use a real share icon and device share sheet. */
.line-actions .share-button{
  background:linear-gradient(135deg,var(--green),var(--green2)) !important;
  color:#fff !important;
  border:0 !important;
  box-shadow:0 12px 24px rgba(31,122,90,.20) !important;
}
.line-actions .share-button svg{
  width:18px !important;
  height:18px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2.2 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}
.line-actions .share-button span{
  display:none;
}
.line-actions .mini-btn.share-button{
  background:linear-gradient(135deg,var(--green),var(--green2)) !important;
  color:#fff !important;
  border-color:transparent !important;
}
@media(max-width:760px){
  .line-actions .share-button{
    width:100% !important;
    min-width:0 !important;
  }
  .line-actions .share-button span{
    display:inline !important;
  }
}

/* Final mobile audio cards: no broken empty pills or clipped action buttons. */
@media(max-width:760px){
  .home-filter-actions,
  .filters.home-filter-actions{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    width:100% !important;
    gap:8px !important;
    overflow:visible !important;
  }
  .home-filter{
    min-height:36px !important;
    justify-content:center !important;
    padding:0 10px !important;
    border:1px solid rgba(31,122,90,.16) !important;
    border-radius:999px !important;
    background:rgba(255,253,248,.78) !important;
    color:var(--green2) !important;
    font-size:12px !important;
    font-weight:720 !important;
    white-space:nowrap !important;
  }
  .audio-list .audio-line,
  .audio-card.audio-line{
    display:grid !important;
    grid-template-columns:48px minmax(0,1fr) !important;
    gap:12px !important;
    align-items:start !important;
    padding:14px !important;
    overflow:hidden !important;
  }
  .audio-line .line-play{
    grid-column:1 !important;
    grid-row:1 !important;
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    border-radius:14px !important;
    align-self:start !important;
  }
  .audio-line .line-main{
    grid-column:2 !important;
    min-width:0 !important;
  }
  .audio-line .line-title-row,
  .audio-line .line-title-row > div{
    min-width:0 !important;
  }
  .audio-line .line-title-row h3{
    font-size:18px !important;
    line-height:1.18 !important;
    margin:0 0 5px !important;
  }
  .audio-line .line-title-row p,
  .audio-line .line-desc{
    font-size:12px !important;
    line-height:1.42 !important;
  }
  .line-social.social-counts{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(44px,1fr)) !important;
    gap:7px !important;
    margin-top:10px !important;
    max-width:100% !important;
    overflow:visible !important;
  }
  .line-social.social-counts .social-count{
    display:grid !important;
    justify-items:center !important;
    gap:3px !important;
    min-width:0 !important;
    min-height:46px !important;
    padding:2px 0 !important;
    border-radius:14px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
  }
  .line-social.social-counts .social-count i{
    font-size:15px !important;
    line-height:1 !important;
  }
  .line-social.social-counts .social-count b{
    color:var(--red2) !important;
    font-size:11px !important;
    line-height:1 !important;
  }
  .audio-line .line-actions,
  .audio-list .line-actions{
    grid-column:1 / -1 !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    width:100% !important;
    gap:8px !important;
    padding:0 !important;
    margin-top:2px !important;
  }
  .line-actions form{
    width:100% !important;
  }
  .line-actions .mini-btn,
  .line-actions button.mini-btn{
    display:inline-flex !important;
    width:100% !important;
    min-width:0 !important;
    min-height:42px !important;
    justify-content:center !important;
    border-radius:16px !important;
    font-size:13px !important;
  }
  .line-actions .icon-only:not(.facebook-share){
    display:none !important;
  }
  .line-actions .facebook-share{
    width:100% !important;
    min-width:0 !important;
    font-size:0 !important;
  }
  .line-actions .facebook-share::before{
    content:"Facebook Share";
    color:#fff;
    font-family:var(--font);
    font-size:13px;
    font-weight:800;
    letter-spacing:0;
  }
}

/* Final mobile cleanup: keep the header and mini-player calm and usable. */
@media(max-width:760px){
  .topbar{
    display:grid !important;
    grid-template-columns:42px minmax(0,1fr) 42px !important;
    grid-template-rows:auto auto !important;
    align-items:center !important;
    gap:9px 10px !important;
    padding:10px 12px 12px !important;
    height:auto !important;
    overflow:visible !important;
  }
  .brand-row{
    display:contents !important;
  }
  .brand-row .sidebar-toggle{
    grid-column:1 !important;
    grid-row:1 !important;
    position:static !important;
    width:42px !important;
    min-width:42px !important;
    height:42px !important;
    min-height:42px !important;
    border-radius:14px !important;
  }
  .brand-row .brand{
    grid-column:2 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    gap:9px !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
  }
  .brand-row .mark.mark-photo{
    width:46px !important;
    height:46px !important;
    flex:0 0 46px !important;
  }
  .brand-copy{
    min-width:0 !important;
  }
  .brand b{
    display:block !important;
    overflow:hidden !important;
    color:var(--green2) !important;
    font-size:18px !important;
    line-height:1.08 !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
  .brand small{
    display:block !important;
    color:var(--red) !important;
    font-size:8px !important;
    letter-spacing:.12em !important;
  }
  .top-actions{
    grid-column:3 !important;
    grid-row:1 !important;
    position:static !important;
    display:flex !important;
    justify-content:flex-end !important;
    width:auto !important;
    min-width:0 !important;
    padding:0 !important;
    overflow:visible !important;
  }
  .top-actions .btn-icon{
    display:inline-flex !important;
    width:42px !important;
    min-width:42px !important;
    height:42px !important;
    min-height:42px !important;
    padding:0 !important;
    border-radius:14px !important;
  }
  .top-actions .auth-note,
  .top-actions a,
  .top-actions .btn:not(.btn-icon){
    display:none !important;
  }
  .search{
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    width:100% !important;
    max-width:none !important;
  }
  .search input{
    height:42px !important;
    background:rgba(255,253,248,.92) !important;
    color:var(--green2) !important;
    border-color:rgba(31,122,90,.20) !important;
    box-shadow:0 10px 24px rgba(48,34,18,.08) !important;
  }
  .search input::placeholder{
    color:rgba(96,78,91,.68) !important;
  }
  .search span{
    top:11px !important;
    color:var(--red) !important;
  }
  .search .kbd{
    display:none !important;
  }

  .player{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 52px !important;
    grid-template-rows:auto auto !important;
    align-items:center !important;
    gap:7px 10px !important;
    max-height:none !important;
    overflow:visible !important;
    padding:10px 12px 8px !important;
  }
  .player .now{
    grid-column:1 !important;
    grid-row:1 !important;
    min-width:0 !important;
  }
  .player .cover{
    width:42px !important;
    height:42px !important;
    border-radius:13px !important;
    flex:0 0 42px !important;
  }
  .player .now b,
  .player .now span{
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
  .player .controls{
    display:contents !important;
  }
  .player .control-buttons{
    grid-column:2 !important;
    grid-row:1 !important;
    display:flex !important;
    justify-content:flex-end !important;
    gap:0 !important;
  }
  .player .control-buttons .circle:not(.play){
    display:none !important;
  }
  .player .circle.play{
    width:48px !important;
    height:48px !important;
    border-radius:999px !important;
  }
  .player .timebar{
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    display:grid !important;
    grid-template-columns:42px minmax(0,1fr) 42px !important;
    gap:8px !important;
    align-items:center !important;
    font-size:10px !important;
  }
  .player .global-scrub{
    width:100% !important;
    min-width:0 !important;
  }
  .player-actions{
    display:none !important;
  }
}
.global-scrub{
  width:100%;
  height:8px;
  border-radius:999px;
  accent-color:var(--lavender);
  cursor:pointer;
}
.player-mode{
  width:48px;
  padding:0 8px;
  font-size:11px;
  font-weight:850;
}
.player-mode.is-shuffle{
  color:#07111f;
  background:linear-gradient(135deg,var(--cyan),var(--lavender));
}
.player audio{
  display:none;
}
.player .now b,
.player .now span{
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
}
.player .now b{
  -webkit-line-clamp:1;
}
.player .now span{
  -webkit-line-clamp:1;
}
.toast-stack{
  position:fixed;
  right:22px;
  bottom:112px;
  z-index:2000;
  display:grid;
  gap:10px;
  width:min(360px,calc(100vw - 28px));
  pointer-events:none;
}
.toast{
  transform:translateY(12px);
  opacity:0;
  padding:13px 15px;
  border:1px solid rgba(184,64,64,.22);
  border-radius:18px;
  background:
    radial-gradient(circle at 10% 0,rgba(34,211,238,.14),transparent 34%),
    rgba(18,14,39,.96);
  color:var(--text);
  box-shadow:0 18px 44px rgba(0,0,0,.30);
  font-size:13px;
  line-height:1.45;
  transition:opacity .2s ease,transform .2s ease;
}
.toast.show{
  transform:translateY(0);
  opacity:1;
}
.toast-error{
  border-color:rgba(244,63,94,.32);
  background:linear-gradient(135deg,rgba(76,18,45,.96),rgba(18,14,39,.96));
}
.alert-as-toast-source{
  display:none !important;
}
.transcript-status-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.transcript-status{
  min-height:92px;
  display:grid;
  align-content:center;
  gap:7px;
  padding:16px;
  border:1px solid rgba(184,64,64,.18);
  border-radius:20px;
  background:
    radial-gradient(circle at 82% 14%,rgba(34,211,238,.12),transparent 34%),
    rgba(255,255,255,.055);
}
.transcript-status b{
  color:var(--text);
  font-size:15px;
}
.transcript-status span{
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.book-suggestion-card{
  color:var(--ink);
  text-decoration:none;
}
.book-suggestion-card small{
  display:block;
  margin-top:6px;
  color:var(--royal2);
  font-size:11px;
  font-weight:800;
}
html[data-theme="light"] .top-clock{
  color:var(--ink2);
  background:rgba(255,255,255,.7);
  border-color:rgba(31,122,90,.14);
}
html[data-theme="light"] .toast{
  color:var(--ink);
  background:rgba(255,255,255,.96);
  border-color:rgba(31,122,90,.16);
  box-shadow:0 18px 44px rgba(42,33,66,.16);
}
html[data-theme="light"] .transcript-status{
  background:rgba(255,255,255,.62);
  border-color:rgba(31,122,90,.14);
}
html[data-theme="light"] .transcript-status b{
  color:var(--ink);
}
html[data-theme="light"] .transcript-status span{
  color:var(--ink2);
}
@media(max-width:1180px){
  .toast-stack{
    bottom:140px;
  }
}
@media(max-width:760px){
  .top-clock{
    min-height:32px;
    padding:0 10px;
    font-size:11px;
  }
  .player{
    grid-template-columns:1fr;
  }
  .player .controls{
    display:grid;
  }
  .player .timebar{
    display:grid;
    grid-template-columns:44px 1fr 44px;
  }
  .player .player-actions{
    display:flex;
  }
  .player-mode{
    width:42px;
  }
  .toast-stack{
    left:14px;
    right:14px;
    bottom:138px;
    width:auto;
  }
  .transcript-status-grid{
    grid-template-columns:1fr;
  }
}

/* Inline playback for the all-waez table */
.waez-table .table-play-button{
  position:relative;
  width:38px;
  height:38px;
  border:1px solid rgba(184,64,64,.22);
  border-radius:14px;
  display:inline-grid;
  place-items:center;
  background:
    radial-gradient(circle at 30% 18%,rgba(255,255,255,.34),transparent 28%),
    linear-gradient(135deg,var(--lavender),var(--royal));
  box-shadow:0 12px 26px rgba(31,122,90,.22);
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
.waez-table .table-play-button::before{
  content:"";
  width:0;
  height:0;
  margin-left:3px;
  border-top:8px solid transparent;
  border-bottom:8px solid transparent;
  border-left:12px solid #fff;
}
.waez-table .table-play-button:hover,
.waez-table .table-play-button:focus-visible{
  transform:translateY(-1px) scale(1.04);
  box-shadow:0 16px 34px rgba(31,122,90,.30);
  filter:brightness(1.08);
}
.waez-table .table-play-button:focus-visible{
  outline:3px solid rgba(34,211,238,.28);
  outline-offset:3px;
}
.waez-table th:first-child,
.waez-table td:first-child{
  width:64px;
  text-align:center;
}
.waez-table td:nth-child(2){
  width:96px;
}
.waez-table td:nth-child(3){
  width:46%;
}
html[data-theme="light"] .waez-table .table-play-button{
  border-color:rgba(31,122,90,.18);
  box-shadow:0 10px 24px rgba(91,33,182,.16);
}
@media(max-width:760px){
  .waez-table td:first-child{
    grid-template-columns:92px 1fr;
    text-align:left;
  }
}

/* Refined book-card actions */
.book-action-strip{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:2px;
}
.book-action,
.book-meta-chip{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border-radius:13px;
  padding:0 12px;
  font-size:12px;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
}
.book-action{
  border:1px solid rgba(31,122,90,.18);
  font-weight:760;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease;
}
.book-action.primary{
  color:#fff;
  background:
    radial-gradient(circle at 25% 12%,rgba(255,255,255,.28),transparent 28%),
    linear-gradient(135deg,#176b4d,#1f7a5a);
  box-shadow:0 12px 28px rgba(124,58,237,.22);
}
.book-action.primary span{
  color:rgba(255,255,255,.74);
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.book-action.secondary{
  color:var(--ink);
  background:rgba(255,255,255,.76);
  border-color:rgba(31,122,90,.16);
}
.book-action:hover,
.book-action:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(31,122,90,.30);
  box-shadow:0 14px 30px rgba(42,33,66,.14);
}
.book-action:focus-visible{
  outline:3px solid rgba(34,211,238,.20);
  outline-offset:3px;
}
.book-meta-chip{
  color:#4c1d95;
  background:rgba(237,233,254,.72);
  border:1px solid rgba(31,122,90,.12);
  font-weight:680;
}
.book-meta-chip span{
  color:#176b4d;
  font-size:11px;
}
.book-meta-chip.indexed{
  color:#0f766e;
  background:rgba(204,251,241,.72);
  border-color:rgba(20,184,166,.16);
}
.book-meta-chip.indexed span{
  color:#0f766e;
}
.book-meta-chip.muted{
  color:#6b5f82;
  background:rgba(255,255,255,.55);
}
html[data-theme="dark"] .book-action.secondary{
  color:#efe8ff;
  background:rgba(255,255,255,.075);
  border-color:rgba(184,64,64,.18);
}
html[data-theme="dark"] .book-meta-chip{
  color:#d8ccff;
  background:rgba(31,122,90,.13);
  border-color:rgba(184,64,64,.15);
}
html[data-theme="dark"] .book-meta-chip span{
  color:var(--lavender);
}
html[data-theme="dark"] .book-meta-chip.indexed{
  color:#99f6e4;
  background:rgba(20,184,166,.11);
  border-color:rgba(45,212,191,.16);
}
html[data-theme="dark"] .book-meta-chip.indexed span{
  color:#5eead4;
}
html[data-theme="dark"] .book-meta-chip.muted{
  color:rgba(231,222,255,.66);
  background:rgba(255,255,255,.055);
}
@media(max-width:560px){
  .book-action-strip{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .book-action,
  .book-meta-chip{
    width:100%;
  }
}

/* Final app-wide polish and responsive hardening */
body{
  text-rendering:optimizeLegibility;
}
.btn,
.mini-btn,
.book-action,
.chip,
.archive-count{
  letter-spacing:0;
}
.btn,
.mini-btn{
  border-radius:14px;
  font-weight:760;
  text-shadow:none;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease,color .16s ease;
}
.btn:hover,
.mini-btn:hover,
.btn:focus-visible,
.mini-btn:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(184,64,64,.34);
  box-shadow:0 12px 28px rgba(0,0,0,.18);
}
.btn-primary,
.btn-green,
.mini-btn.play,
.support-btn{
  background:
    radial-gradient(circle at 26% 12%,rgba(255,255,255,.28),transparent 28%),
    linear-gradient(135deg,var(--cyan),#7dd3fc 42%,var(--royal));
  color:#07111f !important;
  border:1px solid rgba(255,255,255,.14);
}
.btn-gold{
  background:
    radial-gradient(circle at 24% 10%,rgba(255,255,255,.24),transparent 30%),
    linear-gradient(135deg,#d86a5f,#1f7a5a,#0f4d38);
}
.btn-quiet,
.btn-ghost,
.mini-btn:not(.play){
  background:rgba(255,255,255,.055);
  color:var(--text);
  border-color:rgba(184,64,64,.18);
}
html[data-theme="light"] .btn-quiet,
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .mini-btn:not(.play){
  background:rgba(255,255,255,.76);
  color:var(--ink);
  border-color:rgba(31,122,90,.14);
}
.content,
.right,
.nav{
  scrollbar-gutter:stable;
}
.content > .section-head:first-child{
  padding-top:2px;
}
.section-head{
  min-width:0;
}
.section-head h2{
  line-height:1.12;
}
.section-head p{
  max-width:760px;
  line-height:1.55;
}
.filter-card{
  grid-template-columns:minmax(220px,2fr) repeat(3,minmax(120px,1fr)) minmax(150px,180px) auto auto;
  align-items:end;
}
.filter-card label{
  min-width:0;
}
.filter-card input,
.filter-card select,
.filter-card textarea,
.form-card input,
.form-card select,
.form-card textarea,
.ai-card input{
  min-width:0;
  border-color:rgba(184,64,64,.20);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
html[data-theme="dark"] .filter-card input,
html[data-theme="dark"] .filter-card select,
html[data-theme="dark"] .filter-card textarea,
html[data-theme="dark"] .form-card input,
html[data-theme="dark"] .form-card select,
html[data-theme="dark"] .form-card textarea{
  background:rgba(255,255,255,.07);
  color:var(--text);
}
.hero,
.table-card,
.form-card,
.audio-card,
.book-card,
.hero-card,
.widget,
.note-card,
.contributor-profile-card{
  border-radius:22px;
}
.table-card,
.form-card,
.audio-card,
.book-card,
.hero-card,
.note-card{
  border:1px solid rgba(184,64,64,.16);
}
html[data-theme="dark"] .audio-card,
html[data-theme="dark"] .book-card,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .note-card,
html[data-theme="dark"] .form-card{
  background:
    radial-gradient(circle at 96% 0,rgba(34,211,238,.08),transparent 28%),
    linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.04));
  color:var(--text);
  box-shadow:0 18px 50px rgba(0,0,0,.20);
}
html[data-theme="dark"] .audio-card p,
html[data-theme="dark"] .book-card span,
html[data-theme="dark"] .book-card .desc,
html[data-theme="dark"] .note-card p,
html[data-theme="dark"] .hero-card span,
html[data-theme="dark"] .form-help{
  color:rgba(231,222,255,.72);
}
.stat,
.engage,
.detail,
.transcript-status,
.mini-stat{
  border-radius:16px;
}
html[data-theme="dark"] .stat,
html[data-theme="dark"] .engage,
html[data-theme="dark"] .detail{
  background:rgba(255,255,255,.065);
  border-color:rgba(184,64,64,.16);
}
html[data-theme="dark"] .stat b,
html[data-theme="dark"] .engage b,
html[data-theme="dark"] .detail b{
  color:#f2d7d2;
}
html[data-theme="dark"] .stat span,
html[data-theme="dark"] .engage span,
html[data-theme="dark"] .detail span{
  color:rgba(231,222,255,.66);
}
.audio-list .audio-line,
.waez-table tbody tr,
.topics-table tbody tr{
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.waez-table tbody tr:hover,
.topics-table tbody tr:hover{
  background:rgba(31,122,90,.095);
}
.waez-table .mini-btn.play,
.topics-table .mini-btn,
.audio-list .line-actions .mini-btn{
  min-height:38px;
  border-radius:14px;
}
.line-social span{
  transform:none !important;
}
.right.suggestion-rail{
  gap:12px;
}
.suggestion-rail .widget{
  box-shadow:0 18px 48px rgba(0,0,0,.18);
}
.suggestion-row{
  border:1px solid transparent;
}
.suggestion-row:hover,
.suggestion-row:focus-visible{
  border-color:rgba(184,64,64,.18);
}
.topic-suggestion{
  min-width:0;
}
.contributor-profile-card{
  min-width:0;
}
.contributor-card-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.player{
  min-width:0;
}
.player .now,
.player .controls,
.player-actions{
  min-width:0;
}
.global-scrub,
.detail-scrub,
.detail-volume{
  touch-action:pan-x;
}
.mobile-bottom-nav{
  backdrop-filter:blur(18px);
}

@media(max-width:1320px){
  .main{
    grid-template-columns:260px minmax(0,1fr) 300px;
    gap:14px;
    padding:14px 14px 0;
  }
  .topbar{
    gap:12px;
  }
  .brand{
    min-width:220px;
  }
}

@media(max-width:1180px){
  body{
    overflow:hidden;
  }
  .app{
    height:100vh;
    grid-template-rows:auto minmax(0,1fr) auto;
  }
  .main{
    grid-template-columns:240px minmax(0,1fr);
    overflow:auto;
    padding-bottom:14px;
  }
  .content{
    overflow:visible;
    padding-right:0;
  }
  .right{
    grid-column:1 / -1;
    height:auto;
    overflow:visible;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .filter-card,
  .topics-filter-card{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .filter-card .btn,
  .topics-filter-card .btn{
    width:100%;
  }
  .player{
    grid-template-columns:minmax(220px,1fr) minmax(300px,1.35fr);
  }
  .player-actions{
    grid-column:1 / -1;
    justify-content:center;
  }
}

@media(max-width:900px){
  .topbar{
    display:grid;
    grid-template-columns:1fr;
    align-items:stretch;
    padding:12px;
  }
  .brand-row,
  .top-actions{
    width:100%;
  }
  .brand-row{
    display:flex;
    justify-content:space-between;
    gap:10px;
  }
  .brand{
    min-width:0;
  }
  .brand b{
    font-size:18px;
  }
  .search{
    max-width:none;
  }
  .top-actions{
    justify-content:flex-start;
    overflow-x:auto;
    padding-bottom:2px;
  }
  .main{
    grid-template-columns:1fr;
  }
  .right{
    grid-template-columns:1fr;
  }
  .hero,
  .audio-detail-shell,
  .detail-layout,
  .contributor-profile-hero{
    grid-template-columns:1fr !important;
  }
  .books-grid,
  .contributors-grid,
  .audio-grid{
    grid-template-columns:1fr !important;
  }
}

@media(max-width:760px){
  html,
  body{
    min-width:0;
    overflow:hidden;
  }
  .app{
    height:100vh;
    grid-template-rows:auto minmax(0,1fr) auto auto;
  }
  .main{
    padding:10px;
    gap:12px;
    overflow:auto;
    padding-bottom:14px;
  }
  .content{
    gap:14px;
  }
  .hero,
  .table-card,
  .form-card,
  .audio-card,
  .book-card,
  .hero-card,
  .widget,
  .note-card{
    border-radius:18px;
  }
  .hero,
  .audio-detail-shell{
    padding:16px;
  }
  .hero h1,
  .audio-detail-main h1{
    font-size:clamp(30px,9vw,42px);
    line-height:1.04;
  }
  .section-head{
    gap:8px;
  }
  .section-head h2{
    font-size:clamp(25px,7vw,32px);
  }
  .filter-card,
  .topics-filter-card,
  .form-grid,
  .correction-form{
    grid-template-columns:1fr !important;
    padding:12px;
  }
  .filter-card .btn,
  .topics-filter-card .btn,
  .form-grid .btn{
    width:100%;
  }
  .topics-table-wrap{
    max-height:none;
    overflow:visible;
  }
  .topics-table,
  .waez-table{
    min-width:0;
  }
  .admin-table thead{
    display:none;
  }
  .admin-table tbody,
  .admin-table tr,
  .admin-table td{
    display:block;
    width:100% !important;
  }
  .admin-table tr{
    margin:10px 0;
    padding:12px;
    border:1px solid rgba(184,64,64,.18);
    border-radius:16px;
    background:rgba(255,255,255,.055);
  }
  .admin-table td{
    border:0;
    padding:7px 0;
  }
  .admin-table td::before{
    content:attr(data-label);
    display:block;
    margin-bottom:4px;
    color:var(--muted);
    font-size:10px;
    font-weight:850;
    letter-spacing:.10em;
    text-transform:uppercase;
  }
  .waez-table td:first-child{
    text-align:left;
  }
  .player{
    padding:10px 12px;
    gap:9px;
    max-height:42vh;
    overflow:auto;
  }
  .player .now{
    align-items:center;
  }
  .player .cover{
    width:44px;
    height:44px;
    border-radius:14px;
  }
  .control-buttons{
    gap:7px;
  }
  .circle{
    width:38px;
    height:38px;
  }
  .circle.play{
    width:44px;
    height:44px;
  }
  .player-actions{
    display:none !important;
  }
  .mobile-bottom-nav{
    position:sticky;
    bottom:0;
    z-index:30;
  }
  .toast-stack{
    bottom:112px;
  }
}

@media(max-width:430px){
  .brand small,
  .auth-note,
  .kbd{
    display:none;
  }
  .top-actions .btn,
  .top-clock{
    min-height:34px;
    padding-inline:10px;
    font-size:11px;
  }
  .search input{
    height:42px;
  }
  .player .timebar{
    grid-template-columns:38px 1fr 38px;
    font-size:11px;
  }
  .book-action-strip,
  .line-actions{
    grid-template-columns:1fr !important;
  }
  .book-action,
  .book-meta-chip,
  .line-actions .mini-btn,
  .line-actions form,
  .line-actions button{
    width:100%;
  }
}

/* Table paging controls */
.table-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.table-pagination span{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  border:1px solid rgba(184,64,64,.16);
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,.045);
  font-size:12px;
  font-weight:760;
}
.table-pagination .disabled{
  opacity:.42;
  pointer-events:none;
}

/* Active player glow and gentle visualization */
.player.is-listening{
  background:
    radial-gradient(circle at 18% 10%,rgba(184,64,64,.30),transparent 32%),
    radial-gradient(circle at 76% 0,rgba(168,85,247,.18),transparent 34%),
    linear-gradient(135deg,#100824,#17103a 52%,#102017);
  border-top-color:rgba(184,64,64,.48);
  box-shadow:
    0 -18px 46px rgba(31,122,90,.24),
    inset 0 1px 0 rgba(255,255,255,.10);
}
.player.is-listening::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,transparent,rgba(184,64,64,.10),transparent),
    repeating-linear-gradient(90deg,rgba(184,64,64,.08) 0 2px,transparent 2px 24px);
  opacity:.26;
  mask-image:linear-gradient(90deg,transparent 0%,#102017 16%,#102017 84%,transparent 100%);
}
.player > *{
  position:relative;
  z-index:1;
}
.player.is-listening .cover{
  background:
    radial-gradient(circle at 30% 20%,rgba(255,255,255,.34),transparent 24%),
    linear-gradient(135deg,#d86a5f,#b84040,#176b4d);
  box-shadow:
    0 0 0 6px rgba(31,122,90,.14),
    0 0 28px rgba(168,85,247,.34);
}
.cover{
  position:relative;
  overflow:hidden;
}
.player.is-listening .control-buttons::before,
.player.is-listening .control-buttons::after{
  content:"";
  width:4px;
  height:22px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--cyan),var(--lavender));
  box-shadow:8px 0 0 rgba(184,64,64,.68),16px 0 0 rgba(31,122,90,.68);
  animation:player-bars 1.05s ease-in-out infinite;
}
.player.is-listening .control-buttons::after{
  animation-delay:.34s;
  transform:scaleY(.7);
}
.player.is-listening .global-scrub{
  filter:drop-shadow(0 0 8px rgba(184,64,64,.35));
}
@keyframes player-bars{
  0%,100%{transform:scaleY(.45);opacity:.55}
  45%{transform:scaleY(1);opacity:1}
}
@media(prefers-reduced-motion:reduce){
  .player.is-listening::before,
  .player.is-listening .control-buttons::before,
  .player.is-listening .control-buttons::after{
    animation:none;
  }
}

/* Performance-safe player state: keep the listening glow without continuous repaint work. */
.player.is-listening::before{
  animation:none !important;
  opacity:.18;
}
.player.is-listening .control-buttons::before,
.player.is-listening .control-buttons::after{
  display:none !important;
  animation:none !important;
}
.player.is-listening .cover{
  animation:none !important;
}
.player.is-listening .global-scrub{
  filter:none !important;
}

/* Proper top bar account actions */
.top-actions{
  flex-shrink:0;
}
.top-actions .top-login,
.top-actions .top-register{
  min-width:88px;
  min-height:42px;
  border-radius:14px;
  padding:0 17px;
  font-weight:760;
}
.top-actions .top-login{
  color:#efe8ff;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(184,64,64,.22);
}
.top-actions .top-login:hover,
.top-actions .top-login:focus-visible{
  color:#fff;
  background:rgba(184,64,64,.12);
  border-color:rgba(184,64,64,.38);
}
.top-actions .top-register{
  color:#07111f !important;
  background:
    radial-gradient(circle at 28% 10%,rgba(255,255,255,.34),transparent 28%),
    linear-gradient(135deg,#5eead4 0%,#67e8f9 44%,#1f7a5a 100%);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 12px 24px rgba(34,211,238,.16);
}
.top-actions .top-register:hover,
.top-actions .top-register:focus-visible{
  box-shadow:0 15px 30px rgba(34,211,238,.22);
  filter:brightness(1.04);
}
html[data-theme="light"] .top-actions .top-login{
  color:var(--ink);
  background:rgba(255,255,255,.78);
  border-color:rgba(31,122,90,.16);
}
html[data-theme="light"] .top-actions .top-login:hover,
html[data-theme="light"] .top-actions .top-login:focus-visible{
  background:#fff;
  border-color:rgba(31,122,90,.28);
}
@media(max-width:900px){
  .top-actions .top-login,
  .top-actions .top-register{
    min-width:84px;
    padding:0 14px;
  }
}
@media(max-width:430px){
  .top-actions .top-login,
  .top-actions .top-register{
    display:inline-flex;
    min-width:auto;
    flex:1 0 auto;
  }
}

/* Warm archive restyle based on the Abu Ali reference preview */
:root{
  --bg:#f6f1e7;
  --bg2:#fbf7ef;
  --surface:#fffdf8;
  --surface2:#f3eadc;
  --card:#fffdf8;
  --card2:#f8f0e3;
  --text:#17120b;
  --muted:#776b5d;
  --ink:#17120b;
  --ink2:#776b5d;
  --line:rgba(74,50,27,.13);
  --line-light:rgba(135,94,45,.18);
  --royal:#1f7a5a;
  --royal2:#10523d;
  --lavender:#b84040;
  --amethyst:#d86a5f;
  --cyan:#d86a5f;
  --emerald:#1f7a5a;
  --gold:#b84040;
  --gold2:#d86a5f;
  --danger:#b84040;
  --shadow:0 22px 60px rgba(48,34,18,.12);
  --soft:0 12px 28px rgba(48,34,18,.08);
}
html[data-theme="dark"]{
  --bg:#0d0b08;
  --bg2:#17130e;
  --surface:#17120c;
  --surface2:#221a11;
  --card:#1a140e;
  --card2:#251c12;
  --text:#fbf3e4;
  --muted:#c9bda9;
  --ink:#fbf3e4;
  --ink2:#c9bda9;
  --line:rgba(245,220,171,.14);
  --line-light:rgba(245,220,171,.18);
  --royal:#2e8b67;
  --royal2:#1f6b4f;
  --lavender:#d86a5f;
  --amethyst:#f08a7e;
  --cyan:#d86a5f;
  --emerald:#2e8b67;
  --gold:#e06a61;
  --gold2:#f08a7e;
  --shadow:0 24px 70px rgba(0,0,0,.38);
  --soft:0 12px 32px rgba(0,0,0,.20);
}
body{
  background:
    radial-gradient(circle at 10% -5%,rgba(184,64,64,.20),transparent 28%),
    radial-gradient(circle at 92% 6%,rgba(31,122,90,.12),transparent 25%),
    linear-gradient(135deg,var(--bg),var(--bg2)) !important;
  color:var(--text);
}
html[data-theme="dark"] body{
  background:
    radial-gradient(circle at 10% -5%,rgba(184,64,64,.12),transparent 28%),
    radial-gradient(circle at 92% 6%,rgba(31,122,90,.16),transparent 25%),
    linear-gradient(135deg,var(--bg),var(--bg2)) !important;
}
*{
  scrollbar-color:var(--gold) rgba(74,50,27,.10);
}
.topbar{
  background:rgba(255,253,248,.84) !important;
  border-bottom:1px solid var(--line) !important;
  box-shadow:0 12px 34px rgba(48,34,18,.08) !important;
}
html[data-theme="dark"] .topbar{
  background:rgba(13,11,8,.88) !important;
  box-shadow:0 12px 38px rgba(0,0,0,.28) !important;
}
.mark,
.cover,
.avatar,
.line-play,
.table-play-button,
.suggestion-play{
  background:linear-gradient(135deg,var(--gold2),var(--gold),var(--royal2)) !important;
  color:#fff !important;
  box-shadow:0 14px 34px rgba(184,64,64,.20) !important;
}
.mark.mark-photo{
  padding:0 !important;
  overflow:hidden;
  border:2px solid transparent !important;
  border-radius:999px !important;
  background:
    linear-gradient(#fffdf8,#fffdf8) padding-box,
    linear-gradient(135deg,var(--green),var(--red),var(--green2)) border-box !important;
  box-shadow:
    0 0 0 3px rgba(31,122,90,.10),
    0 0 18px rgba(191,64,64,.34),
    0 0 26px rgba(31,122,90,.24) !important;
}
.mark.mark-photo img{
  display:block;
  width:100%;
  height:100%;
  border-radius:999px;
  object-fit:cover;
  object-position:center center;
}
.brand small,
.nav-title,
.hero small,
.eyebrow,
.overview-head span,
.topic span,
.search span{
  color:var(--gold) !important;
}
.brand b,
.section-head h2,
.side-head h2,
.widget-head h3,
.hero-card h3,
.form-card h2,
.table-title,
.audio-detail-main h1{
  color:var(--ink) !important;
}
html[data-theme="dark"] .brand b,
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .side-head h2,
html[data-theme="dark"] .widget-head h3,
html[data-theme="dark"] .hero-card h3,
html[data-theme="dark"] .form-card h2,
html[data-theme="dark"] .table-title,
html[data-theme="dark"] .audio-detail-main h1{
  color:var(--text) !important;
}
.search input,
.filter-card input,
.filter-card select,
.form-card input,
.form-card select,
.form-card textarea,
.ai-card input{
  background:var(--surface) !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
  box-shadow:var(--soft) !important;
}
html[data-theme="dark"] .search input,
html[data-theme="dark"] .filter-card input,
html[data-theme="dark"] .filter-card select,
html[data-theme="dark"] .form-card input,
html[data-theme="dark"] .form-card select,
html[data-theme="dark"] .form-card textarea,
html[data-theme="dark"] .ai-card input{
  background:rgba(251,243,228,.06) !important;
  color:var(--text) !important;
  box-shadow:none !important;
}
.search input:focus,
.filter-card input:focus,
.filter-card select:focus,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus{
  border-color:rgba(184,64,64,.42) !important;
  box-shadow:0 0 0 4px rgba(184,64,64,.12),var(--soft) !important;
}
.panel,
.sidebar,
.widget,
.hero,
.hero-card,
.table-card,
.form-card,
.audio-card,
.audio-line,
.book-card,
.note-card,
.contributor-profile-card,
.topics-table-wrap{
  background:rgba(255,253,248,.78) !important;
  border-color:var(--line) !important;
  box-shadow:var(--soft) !important;
  color:var(--ink) !important;
}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .widget,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .table-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .audio-card,
html[data-theme="dark"] .audio-line,
html[data-theme="dark"] .book-card,
html[data-theme="dark"] .note-card,
html[data-theme="dark"] .contributor-profile-card,
html[data-theme="dark"] .topics-table-wrap{
  background:rgba(23,18,12,.82) !important;
  color:var(--text) !important;
}
.hero{
  background:
    radial-gradient(circle at 92% 0,rgba(184,64,64,.14),transparent 28%),
    linear-gradient(135deg,rgba(255,253,248,.92),rgba(239,228,212,.72)) !important;
}
html[data-theme="dark"] .hero{
  background:
    radial-gradient(circle at 92% 0,rgba(184,64,64,.12),transparent 28%),
    linear-gradient(135deg,rgba(23,18,12,.92),rgba(34,26,17,.75)) !important;
}
.home-overview,
.overview-card,
.hero .home-overview{
  background:linear-gradient(135deg,var(--royal2),var(--royal)) !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.16) !important;
  box-shadow:var(--shadow) !important;
}
.home-overview .stat,
.overview-grid .stat{
  background:rgba(255,255,255,.11) !important;
  border-color:rgba(255,255,255,.20) !important;
  color:#fff !important;
}
.home-overview .stat b,
.overview-grid .stat b,
.home-overview .overview-head b{
  color:#fff !important;
}
.home-overview .stat span,
.overview-grid .stat span,
.home-overview .overview-head span,
.home-overview .overview-head small{
  color:rgba(245,255,249,.78) !important;
}
.btn,
.mini-btn,
.chip,
.archive-count,
.book-action,
.book-meta-chip,
.table-pagination span{
  border-radius:999px !important;
  border-color:var(--line) !important;
  background:var(--surface) !important;
  color:var(--ink) !important;
  box-shadow:0 8px 18px rgba(48,34,18,.06);
  font-weight:760 !important;
}
html[data-theme="dark"] .btn,
html[data-theme="dark"] .mini-btn,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .archive-count,
html[data-theme="dark"] .book-action,
html[data-theme="dark"] .book-meta-chip,
html[data-theme="dark"] .table-pagination span{
  background:rgba(251,243,228,.07) !important;
  color:var(--text) !important;
  box-shadow:none;
}
.btn-primary,
.btn-green,
.top-actions .top-register,
.mini-btn.play,
.line-actions .mini-btn.play,
.waez-table .table-play-button,
.circle.play,
.btn.primary{
  background:linear-gradient(135deg,var(--royal),var(--royal2)) !important;
  color:#fff !important;
  border-color:transparent !important;
  box-shadow:0 14px 28px rgba(31,122,90,.20) !important;
}
.btn-gold,
.support-btn,
.top-actions .support-btn,
.btn.gold,
.hero-actions .btn-gold{
  background:linear-gradient(135deg,#f08a7e,var(--gold)) !important;
  color:#2a1b06 !important;
  border-color:transparent !important;
  box-shadow:0 14px 28px rgba(184,64,64,.20) !important;
}
.btn-ghost,
.btn-quiet,
.top-actions .top-login,
.mini-btn:not(.play),
.line-actions .mini-btn:not(.play){
  background:var(--surface) !important;
  color:var(--ink) !important;
  border:1px solid var(--line) !important;
}
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .btn-quiet,
html[data-theme="dark"] .top-actions .top-login,
html[data-theme="dark"] .mini-btn:not(.play),
html[data-theme="dark"] .line-actions .mini-btn:not(.play){
  background:rgba(251,243,228,.07) !important;
  color:var(--text) !important;
}
.btn:hover,
.mini-btn:hover,
.chip:hover,
.book-action:hover,
.top-actions .btn:hover{
  transform:translateY(-1px);
  border-color:rgba(184,64,64,.30) !important;
  box-shadow:0 14px 30px rgba(48,34,18,.12) !important;
}
.nav-item{
  color:var(--muted) !important;
}
.nav-item:hover,
.nav-item.active{
  background:rgba(184,64,64,.12) !important;
  border-color:rgba(184,64,64,.16) !important;
  color:var(--ink) !important;
}
html[data-theme="dark"] .nav-item:hover,
html[data-theme="dark"] .nav-item.active{
  color:var(--text) !important;
}
.nav-icon,
.nav-item span:first-child{
  background:rgba(184,64,64,.11) !important;
  color:var(--gold) !important;
}
.nav-item.active::before,
.audio-line::after,
.audio-card::after{
  background:linear-gradient(180deg,var(--gold2),var(--gold),var(--royal)) !important;
}
.badge.gold,
.badge.green,
.badge.blue,
.topic,
.line-social span,
.social span{
  background:rgba(184,64,64,.08) !important;
  color:var(--muted) !important;
  border-color:var(--line) !important;
}
.audio-line,
.audio-card{
  background:
    linear-gradient(90deg,rgba(255,253,248,.96),rgba(248,240,227,.88)) !important;
}
html[data-theme="dark"] .audio-line,
html[data-theme="dark"] .audio-card{
  background:
    linear-gradient(90deg,rgba(26,20,14,.96),rgba(19,15,11,.94)) !important;
}
.audio-line:hover,
.audio-card:hover{
  border-color:rgba(184,64,64,.24) !important;
  box-shadow:0 18px 42px rgba(48,34,18,.12) !important;
}
.line-title,
.audio-card h3,
.suggestion-row b,
.topic-suggestion b{
  color:var(--ink) !important;
}
html[data-theme="dark"] .line-title,
html[data-theme="dark"] .audio-card h3,
html[data-theme="dark"] .suggestion-row b,
html[data-theme="dark"] .topic-suggestion b{
  color:var(--text) !important;
}
.line-meta,
.line-description,
.desc,
.audio-card p,
.widget-body p,
.form-help,
.suggestion-row small{
  color:var(--muted) !important;
}
.right,
.suggestion-rail{
  background:transparent !important;
}
.suggestion-row,
.topic-suggestion,
.contributor{
  background:transparent !important;
  border-color:transparent !important;
  color:var(--ink) !important;
}
.suggestion-row:hover,
.topic-suggestion:hover,
.contributor:hover{
  background:rgba(184,64,64,.09) !important;
  border-color:rgba(184,64,64,.12) !important;
}
html[data-theme="dark"] .suggestion-row,
html[data-theme="dark"] .topic-suggestion,
html[data-theme="dark"] .contributor{
  color:var(--text) !important;
}
.player{
  background:rgba(255,253,248,.90) !important;
  color:var(--ink) !important;
  border-top:1px solid var(--line) !important;
  box-shadow:0 -18px 46px rgba(48,34,18,.10) !important;
}
html[data-theme="dark"] .player{
  background:rgba(23,18,12,.92) !important;
  color:var(--text) !important;
  box-shadow:0 -18px 46px rgba(0,0,0,.28) !important;
}
.player.is-listening{
  background:
    radial-gradient(circle at 12% 0,rgba(224,106,97,.20),transparent 30%),
    linear-gradient(135deg,rgba(255,253,248,.94),rgba(239,228,212,.86)) !important;
  border-top-color:rgba(184,64,64,.32) !important;
}
html[data-theme="dark"] .player.is-listening{
  background:
    radial-gradient(circle at 12% 0,rgba(224,106,97,.14),transparent 30%),
    linear-gradient(135deg,rgba(30,24,17,.96),rgba(16,12,9,.94)) !important;
}
.circle{
  background:var(--surface) !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
}
html[data-theme="dark"] .circle{
  background:rgba(251,243,228,.07) !important;
  color:var(--text) !important;
}
.global-scrub,
.detail-scrub,
.detail-volume{
  accent-color:var(--royal) !important;
}
.mobile-bottom-nav{
  background:rgba(255,253,248,.92) !important;
  border-top:1px solid var(--line) !important;
}
html[data-theme="dark"] .mobile-bottom-nav{
  background:rgba(13,11,8,.94) !important;
}
.mobile-bottom-nav b{
  color:var(--royal) !important;
}
@media(max-width:760px){
  .topbar{
    background:rgba(255,253,248,.92) !important;
  }
  html[data-theme="dark"] .topbar{
    background:rgba(13,11,8,.94) !important;
  }
  .hero,
  .audio-line,
  .audio-card,
  .widget,
  .form-card,
  .table-card{
    border-radius:22px !important;
  }
}

/* Reference layout corrections after the warm color pass */
.home-hero{
  grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr) !important;
  gap:22px !important;
  align-items:stretch !important;
  overflow:hidden !important;
}
.home-hero-copy{
  max-width:760px !important;
  min-width:0;
}
.home-hero h1{
  max-width:720px !important;
  font-size:clamp(34px,3.2vw,50px) !important;
  line-height:1.02 !important;
  letter-spacing:-.02em;
}
.home-hero p{
  max-width:680px !important;
  color:var(--muted) !important;
}
.top-actions{
  gap:9px !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  overflow:visible !important;
}
.top-actions .btn,
.top-actions .auth-note,
.top-actions .top-login,
.top-actions .top-register,
.top-actions .support-btn{
  flex:0 0 auto;
  white-space:nowrap;
}
.top-actions .support-btn{
  min-width:112px;
  padding-inline:18px !important;
}
.top-clock{
  white-space:nowrap;
  color:var(--muted) !important;
}
.kbd{
  background:rgba(184,64,64,.08) !important;
  border-color:var(--line) !important;
  color:var(--muted) !important;
}
@media(max-width:1280px){
  .home-hero{
    grid-template-columns:minmax(0,1fr) !important;
  }
  .home-hero h1,
  .home-hero p{
    max-width:780px !important;
  }
  .home-overview{
    max-width:560px !important;
  }
}
@media(min-width:1281px) and (max-width:1680px){
  .home-overview{
    min-width:0 !important;
  }
  .overview-grid{
    grid-template-columns:1fr !important;
  }
  .home-overview .stat:nth-last-child(-n+2){
    display:none;
  }
}
@media(max-width:900px){
  .home-hero h1{
    font-size:clamp(32px,8vw,42px) !important;
  }
  .top-actions{
    flex-wrap:wrap !important;
  }
}

/* Green/red-only action polish: remove purple/black-feeling row controls */
:root{
  --green:#176b4d;
  --green2:#0f4d38;
  --red:#b84040;
  --red2:#8f2d2d;
  --cream:#fffdf8;
  --cream2:#f6f1e7;
  --ink:#21170f;
  --text:#21170f;
  --royal:var(--green);
  --royal2:var(--green2);
  --lavender:var(--red);
  --cyan:var(--red);
  --gold:var(--red);
  --gold2:#d86a5f;
}
html[data-theme="dark"]{
  --bg:#102017;
  --bg2:#211512;
  --surface:#16281e;
  --surface2:#2b1b17;
  --card:#17281f;
  --card2:#2a1b17;
  --ink:#fff8ec;
  --text:#fff8ec;
  --muted:#dccfc0;
  --green:#2e8b67;
  --green2:#1e6048;
  --red:#e06a61;
  --red2:#b84040;
  --royal:var(--green);
  --royal2:var(--green2);
  --lavender:var(--red);
  --cyan:var(--red);
  --gold:var(--red);
  --gold2:#f08a7e;
}
html[data-theme="dark"] body{
  background:
    radial-gradient(circle at 8% -4%,rgba(224,106,97,.16),transparent 28%),
    radial-gradient(circle at 92% 4%,rgba(46,139,103,.20),transparent 26%),
    linear-gradient(135deg,#102017,#211512) !important;
}
.topbar,
.player,
.panel,
.sidebar,
.widget,
.audio-line,
.audio-card,
.table-card,
.form-card,
.hero{
  border-color:rgba(184,64,64,.18) !important;
}
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .player,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .widget,
html[data-theme="dark"] .audio-line,
html[data-theme="dark"] .audio-card,
html[data-theme="dark"] .table-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .hero{
  background:
    radial-gradient(circle at 100% 0,rgba(184,64,64,.08),transparent 30%),
    linear-gradient(135deg,rgba(22,40,30,.96),rgba(43,27,23,.92)) !important;
}
.line-play,
.mini-btn.play,
.line-actions .mini-btn.play,
.audio-list .line-actions .mini-btn.play{
  background:linear-gradient(135deg,var(--green),var(--green2)) !important;
  color:#fff !important;
  border:0 !important;
  box-shadow:0 12px 24px rgba(23,107,77,.22) !important;
}
.line-actions,
.audio-list .line-actions{
  display:grid !important;
  grid-template-columns:112px minmax(136px,1fr) 46px !important;
  width:min(330px,100%) !important;
  gap:8px !important;
  align-items:center !important;
}
.line-actions form{
  width:100%;
  display:flex;
}
.line-actions .mini-btn{
  min-height:44px !important;
  border-radius:18px !important;
  font-size:13px !important;
  font-weight:760 !important;
  letter-spacing:0 !important;
}
.line-actions .mini-btn.play{
  gap:8px;
  justify-content:center;
  padding-inline:18px !important;
}
.line-actions .mini-btn.play::before{
  border-left-color:#fff !important;
}
.line-actions .contribute-notes-btn{
  grid-column:auto !important;
  background:linear-gradient(135deg,var(--red),var(--red2)) !important;
  color:#fff !important;
  border:0 !important;
  box-shadow:0 12px 24px rgba(184,64,64,.20) !important;
}
.line-actions .contribute-notes-btn::before{
  content:"+";
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:999px;
  margin-right:7px;
  background:rgba(255,255,255,.18);
  color:#fff;
  font-weight:900;
}
.line-actions .facebook-share{
  width:46px !important;
  min-width:46px !important;
  padding:0 !important;
  background:#1877f2 !important;
  color:#fff !important;
  border:0 !important;
  border-radius:16px !important;
  font-family:Arial, sans-serif;
  font-size:22px !important;
  font-weight:900 !important;
  line-height:1;
  box-shadow:0 12px 24px rgba(24,119,242,.20) !important;
}
.line-actions .facebook-share:hover,
.line-actions .facebook-share:focus-visible{
  background:#0f62d6 !important;
  color:#fff !important;
  transform:translateY(-1px);
}
.line-actions .mini-btn:not(.play):not(.contribute-notes-btn):not(.facebook-share){
  background:var(--cream) !important;
  color:var(--green2) !important;
  border:1px solid rgba(23,107,77,.18) !important;
}
html[data-theme="dark"] .line-actions .mini-btn:not(.play):not(.contribute-notes-btn):not(.facebook-share){
  background:rgba(255,248,236,.08) !important;
  color:#fff8ec !important;
  border-color:rgba(224,106,97,.18) !important;
}
.btn-primary,
.btn-green,
.top-actions .top-register,
.circle.play,
.waez-table .table-play-button{
  background:linear-gradient(135deg,var(--green),var(--green2)) !important;
  color:#fff !important;
}
.btn-gold,
.btn-secondary{
  background:linear-gradient(135deg,var(--red),var(--red2)) !important;
  color:#fff !important;
}
.support-btn,
.top-actions .support-btn{
  background:linear-gradient(135deg,var(--green),var(--green2)) !important;
  color:#fff !important;
}
.support-btn,
.top-actions .support-btn{
  min-height:34px !important;
  min-width:auto !important;
  padding:0 13px !important;
  font-size:13px !important;
  border-radius:999px !important;
  box-shadow:0 10px 22px rgba(31,122,90,.18) !important;
}
.chip.active,
.archive-count.active,
.nav-item.active::before,
.audio-line::after,
.audio-card::after{
  background:linear-gradient(180deg,var(--red),var(--green)) !important;
}
@media(max-width:760px){
  .line-actions,
  .audio-list .line-actions{
    grid-template-columns:1fr 1fr 46px !important;
    width:100% !important;
    padding-left:0 !important;
  }
}
@media(max-width:430px){
  .line-actions,
  .audio-list .line-actions{
    grid-template-columns:1fr 46px !important;
  }
  .line-actions .contribute-notes-btn{
    grid-column:1 / -1 !important;
  }
}

/* No black-looking titles or sidebar labels: green/red archive text only */
.brand b,
.section-head h2,
.hero h1,
.home-hero h1,
.audio-detail-main h1,
.form-card h2,
.table-card h2,
.table-card h3,
.widget-head h3,
.hero-card h3,
.side-head h2,
.line-title,
.line-title-row h3,
.audio-card h3,
.book-card b,
.contributor-profile-card h2,
.contributor-profile-card h3{
  color:var(--green2) !important;
}
.brand small,
.nav-title,
.hero small,
.eyebrow,
.section-head p strong,
.line-meta strong,
.line-desc b,
.audio-card p b,
.table-card th,
.admin-table th{
  color:var(--red) !important;
}
.nav-item,
.nav-label,
.sidebar .profile-mini b,
.mobile-bottom-nav a{
  color:var(--green2) !important;
  font-weight:700 !important;
}
.nav-item:hover,
.nav-item.active{
  color:var(--red) !important;
}
.nav-icon,
.nav-item span:first-child{
  color:var(--red) !important;
  border-color:rgba(184,64,64,.16) !important;
}
.line-desc,
.line-meta,
.audio-card p,
.section-head p,
.side-head p,
.widget-body p,
.profile-mini span{
  color:#6f5548 !important;
}
html[data-theme="dark"] .brand b,
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .home-hero h1,
html[data-theme="dark"] .audio-detail-main h1,
html[data-theme="dark"] .form-card h2,
html[data-theme="dark"] .table-card h2,
html[data-theme="dark"] .table-card h3,
html[data-theme="dark"] .widget-head h3,
html[data-theme="dark"] .hero-card h3,
html[data-theme="dark"] .side-head h2,
html[data-theme="dark"] .line-title,
html[data-theme="dark"] .line-title-row h3,
html[data-theme="dark"] .audio-card h3,
html[data-theme="dark"] .book-card b,
html[data-theme="dark"] .contributor-profile-card h2,
html[data-theme="dark"] .contributor-profile-card h3,
html[data-theme="dark"] .nav-item,
html[data-theme="dark"] .nav-label,
html[data-theme="dark"] .sidebar .profile-mini b,
html[data-theme="dark"] .mobile-bottom-nav a{
  color:#d9f5e8 !important;
}
html[data-theme="dark"] .brand small,
html[data-theme="dark"] .nav-title,
html[data-theme="dark"] .hero small,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .line-desc b,
html[data-theme="dark"] .audio-card p b,
html[data-theme="dark"] .nav-item:hover,
html[data-theme="dark"] .nav-item.active{
  color:#f08a7e !important;
}
html[data-theme="dark"] .line-desc,
html[data-theme="dark"] .line-meta,
html[data-theme="dark"] .audio-card p,
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .side-head p,
html[data-theme="dark"] .widget-body p,
html[data-theme="dark"] .profile-mini span{
  color:#dccfc0 !important;
}

/* Sidebar role colors: green icons, red text */
.sidebar .nav-item,
.sidebar .nav-label{
  color:var(--red) !important;
}
.sidebar .nav-icon,
.sidebar .nav-item span:first-child{
  color:var(--green) !important;
  background:rgba(31,122,90,.10) !important;
  border-color:rgba(31,122,90,.18) !important;
}
.sidebar .nav-icon svg{
  stroke:var(--green) !important;
}
.sidebar .nav-item:hover,
.sidebar .nav-item.active,
.sidebar .nav-item:hover .nav-label,
.sidebar .nav-item.active .nav-label{
  color:var(--red2) !important;
}
.sidebar .nav-item:hover .nav-icon,
.sidebar .nav-item.active .nav-icon,
.sidebar .nav-item:hover span:first-child,
.sidebar .nav-item.active span:first-child{
  color:var(--green2) !important;
  background:rgba(31,122,90,.16) !important;
  border-color:rgba(31,122,90,.28) !important;
}
.sidebar .nav-item:hover .nav-icon svg,
.sidebar .nav-item.active .nav-icon svg{
  stroke:var(--green2) !important;
}
html[data-theme="dark"] .sidebar .nav-item,
html[data-theme="dark"] .sidebar .nav-label{
  color:#f08a7e !important;
}
html[data-theme="dark"] .sidebar .nav-icon,
html[data-theme="dark"] .sidebar .nav-item span:first-child{
  color:#76d7ad !important;
  background:rgba(46,139,103,.16) !important;
  border-color:rgba(46,139,103,.28) !important;
}
html[data-theme="dark"] .sidebar .nav-icon svg{
  stroke:#76d7ad !important;
}

/* Compact correction form typography */
.correction-form{
  gap:12px 16px !important;
  margin-top:10px !important;
}
.correction-form label{
  color:var(--green2) !important;
  font-size:13px !important;
  font-weight:720 !important;
  line-height:1.25 !important;
  letter-spacing:0 !important;
}
.correction-form input,
.correction-form select,
.correction-form textarea{
  min-height:40px !important;
  border-radius:14px !important;
  padding:0 13px !important;
  font-size:14px !important;
  font-weight:500 !important;
  line-height:1.35 !important;
}
.correction-form textarea{
  min-height:86px !important;
  padding:11px 13px !important;
  resize:vertical;
}
.correction-form input::placeholder,
.correction-form textarea::placeholder{
  color:#8a8179 !important;
  font-size:14px !important;
  font-weight:500 !important;
}
.correction-form select{
  font-weight:600 !important;
}
.section-head:has(+ .correction-form) h2{
  font-size:clamp(24px,2.2vw,32px) !important;
  line-height:1.08 !important;
}
.section-head:has(+ .correction-form) p{
  font-size:13px !important;
  line-height:1.45 !important;
}
html[data-theme="dark"] .correction-form label{
  color:#d9f5e8 !important;
}
html[data-theme="dark"] .correction-form input::placeholder,
html[data-theme="dark"] .correction-form textarea::placeholder{
  color:#b9aa9c !important;
}

/* Keep private notes compact when timestamp topics are long */
.topic-notes-layout{
  align-items:start !important;
}
.topic-notes-layout > .table-card{
  align-self:start !important;
}
.timestamp-topics-card{
  min-height:0;
}
.timestamp-topic-list{
  max-height:min(58vh,620px);
  overflow:auto;
  padding-right:6px;
  scrollbar-gutter:stable;
}
.timestamp-topic-list .timeline-item:first-child{
  margin-top:0;
}
.private-notes-card{
  min-height:0 !important;
  height:auto !important;
}
.private-notes-card .desc{
  margin-top:10px;
}
.private-notes-card .timeline-item{
  margin-bottom:0;
}
@media(max-width:1180px){
  .timestamp-topic-list{
    max-height:none;
    overflow:visible;
    padding-right:0;
  }
}

/* Home page recovery: keep the new red/green identity without clipping content */
html[data-theme="light"] body{
  background:
    radial-gradient(circle at 18% 0%, rgba(191,64,64,.10), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(31,122,90,.12), transparent 34%),
    linear-gradient(135deg, #faf6ef 0%, #fffdf9 54%, #f4faf4 100%) !important;
  color:#251a14 !important;
}
html[data-theme="light"] .topbar,
html[data-theme="light"] .player{
  background:rgba(255,253,248,.96) !important;
  border-color:rgba(31,122,90,.16) !important;
  color:#251a14 !important;
}
html[data-theme="light"] .sidebar,
html[data-theme="light"] .panel,
html[data-theme="light"] .widget,
html[data-theme="light"] .table-card,
html[data-theme="light"] .form-card,
html[data-theme="light"] .audio-card,
html[data-theme="light"] .audio-line,
html[data-theme="light"] .hero,
html[data-theme="light"] .hero-card{
  background:rgba(255,253,248,.88) !important;
  border-color:rgba(31,122,90,.14) !important;
  color:#251a14 !important;
}
html[data-theme="light"] .home-hero{
  background:
    radial-gradient(circle at 80% 0%, rgba(31,122,90,.10), transparent 30%),
    linear-gradient(135deg, rgba(255,253,248,.98), rgba(247,240,230,.92)) !important;
}
html[data-theme="light"] .home-overview{
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(145deg, #0f684b, #15523f) !important;
  border-color:rgba(31,122,90,.26) !important;
  color:#fffaf2 !important;
}
html[data-theme="light"] .home-overview .overview-head span,
html[data-theme="light"] .home-overview .overview-head b,
html[data-theme="light"] .home-overview .overview-head small,
html[data-theme="light"] .home-overview .stat b,
html[data-theme="light"] .home-overview .stat span{
  color:#fffaf2 !important;
}
html[data-theme="light"] .home-overview .stat{
  background:rgba(255,255,255,.14) !important;
  border-color:rgba(255,255,255,.22) !important;
  color:#fffaf2 !important;
}
html[data-theme="dark"] body{
  background:
    radial-gradient(circle at 20% 0%, rgba(191,64,64,.18), transparent 34%),
    radial-gradient(circle at 90% 15%, rgba(31,122,90,.18), transparent 36%),
    linear-gradient(135deg, #142216 0%, #271a15 100%) !important;
}
.content.home-content{
  align-content:start !important;
  grid-auto-rows:max-content !important;
  gap:18px !important;
  overflow:auto !important;
}
.home-hero{
  min-height:360px !important;
  height:auto !important;
  overflow:visible !important;
  align-items:center !important;
  padding:24px !important;
}
.home-hero::after{
  display:none !important;
}
.home-hero-copy,
.home-overview{
  align-self:center !important;
}
.home-overview{
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
}
.home-hero h1{
  margin:0 0 12px !important;
  line-height:1.04 !important;
}
.home-hero p{
  margin:0 !important;
}
.home-filter-actions{
  align-items:center !important;
  gap:10px !important;
}
.home-filter-actions .btn{
  min-height:40px !important;
  border-radius:999px !important;
}
@media(min-width:1281px) and (max-width:1680px){
  .home-hero{
    min-height:320px !important;
  }
}
@media(max-width:1180px){
  .home-hero{
    min-height:0 !important;
    padding:18px !important;
  }
  .home-overview{
    width:100% !important;
  }
}

/* Social activity counts: clear icon-first layout instead of tilted mini badges */
.line-social.social-counts{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  margin-top:10px !important;
}
.line-social.social-counts .social-count{
  display:grid !important;
  place-items:center !important;
  min-width:42px !important;
  min-height:46px !important;
  padding:5px 8px !important;
  border:1px solid rgba(31,122,90,.18) !important;
  border-radius:16px !important;
  background:rgba(255,253,248,.78) !important;
  color:var(--green2) !important;
  box-shadow:0 8px 20px rgba(31,122,90,.08) !important;
  transform:none !important;
  line-height:1 !important;
}
.line-social.social-counts .social-count::after,
.line-social.social-counts .social-count:not(:last-child)::after{
  display:none !important;
  content:none !important;
}
.line-social.social-counts .social-count i{
  display:block !important;
  width:auto !important;
  height:auto !important;
  margin:0 0 4px !important;
  color:var(--green) !important;
  font-size:18px !important;
  font-style:normal !important;
  line-height:1 !important;
  transform:none !important;
}
.line-social.social-counts .social-count b{
  display:block !important;
  color:var(--red2) !important;
  font-size:12px !important;
  font-weight:650 !important;
  line-height:1 !important;
}
.line-social.social-counts .social-count:hover{
  border-color:rgba(191,64,64,.24) !important;
  background:rgba(255,247,242,.92) !important;
  box-shadow:0 12px 26px rgba(191,64,64,.10) !important;
  transform:translateY(-1px) !important;
}
html[data-theme="dark"] .line-social.social-counts .social-count{
  background:rgba(255,253,248,.10) !important;
  border-color:rgba(118,215,173,.24) !important;
  color:#d9f5e8 !important;
}
html[data-theme="dark"] .line-social.social-counts .social-count b{
  color:#f08a7e !important;
}
@media(max-width:760px){
  .line-social.social-counts{
    gap:7px !important;
  }
  .line-social.social-counts .social-count{
    min-width:38px !important;
    min-height:42px !important;
    border-radius:14px !important;
  }
}

/* Global searchable and paginated tables */
.global-table-tools{
  display:grid;
  grid-template-columns:minmax(220px,1fr) 120px auto;
  gap:12px;
  align-items:end;
  margin:0 0 14px;
  padding:12px;
  border:1px solid rgba(31,122,90,.14);
  border-radius:20px;
  background:rgba(255,253,248,.72);
}
.global-table-tools label{
  display:grid;
  gap:6px;
  min-width:0;
}
.global-table-tools label span{
  color:var(--red);
  font-size:10px;
  font-weight:750;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.global-table-tools input,
.global-table-tools select{
  width:100%;
  min-height:40px;
  border:1px solid rgba(31,122,90,.18);
  border-radius:14px;
  background:rgba(255,255,255,.86);
  color:var(--green2);
  font-size:14px;
  font-weight:550;
  outline:none;
  padding:0 12px;
}
.global-table-tools input:focus,
.global-table-tools select:focus{
  border-color:rgba(31,122,90,.38);
  box-shadow:0 0 0 4px rgba(31,122,90,.10);
}
.global-table-page{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  white-space:nowrap;
}
.global-table-page button{
  min-height:40px;
  border:1px solid rgba(31,122,90,.18);
  border-radius:999px;
  background:#fffdf8;
  color:var(--green2);
  font-size:13px;
  font-weight:750;
  padding:0 14px;
  cursor:pointer;
}
.global-table-page button:not(:disabled):hover{
  background:var(--green);
  color:#fffaf2;
  border-color:var(--green);
  transform:translateY(-1px);
}
.global-table-page button:disabled{
  cursor:not-allowed;
  opacity:.45;
}
.global-table-page span{
  color:#735248;
  font-size:13px;
  font-weight:650;
  min-width:86px;
  text-align:center;
}
html[data-theme="dark"] .global-table-tools{
  background:rgba(255,253,248,.08);
  border-color:rgba(118,215,173,.22);
}
html[data-theme="dark"] .global-table-tools input,
html[data-theme="dark"] .global-table-tools select,
html[data-theme="dark"] .global-table-page button{
  background:rgba(255,253,248,.10);
  border-color:rgba(118,215,173,.22);
  color:#d9f5e8;
}
html[data-theme="dark"] .global-table-page span{
  color:#dccfc0;
}
@media(max-width:760px){
  .global-table-tools{
    grid-template-columns:1fr;
    gap:10px;
  }
  .global-table-page{
    justify-content:space-between;
  }
  .global-table-page span{
    min-width:auto;
  }
}

/* Smarter suggestion rail */
.widget-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}
.suggestion-copy em{
  overflow:hidden;
  max-width:100%;
  color:var(--red);
  font-size:10px;
  font-style:normal;
  font-weight:720;
  letter-spacing:.02em;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.suggestion-row:first-child .suggestion-copy em{
  color:var(--green2);
}
.suggestion-widget .widget-head .btn{
  min-height:32px;
  padding:0 10px;
}
html[data-theme="dark"] .suggestion-copy em{
  color:#f08a7e;
}
html[data-theme="dark"] .suggestion-row:first-child .suggestion-copy em{
  color:#76d7ad;
}

/* Final interaction polish for the archive shell */
.mobile-search-button{
  display:none !important;
}
.player-mode{
  display:grid !important;
  place-items:center !important;
  min-width:42px !important;
  color:var(--green2) !important;
}
.player-mode .mode-icon{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.player-mode .mode-shuffle{
  display:none;
}
.player-mode.is-shuffle .mode-sequence{
  display:none;
}
.player-mode.is-shuffle .mode-shuffle{
  display:block;
}
.audio-card.is-playing .line-play,
tr.is-playing .table-play-button{
  background:linear-gradient(135deg,var(--red),var(--green)) !important;
  box-shadow:0 16px 34px rgba(31,122,90,.28),0 0 0 5px rgba(191,64,64,.10) !important;
}
.audio-card.is-playing .line-play::before,
tr.is-playing .table-play-button::before{
  width:14px !important;
  height:16px !important;
  margin-left:0 !important;
  border:0 !important;
  background:
    linear-gradient(currentColor,currentColor) left center/5px 100% no-repeat,
    linear-gradient(currentColor,currentColor) right center/5px 100% no-repeat;
  color:#fff;
}
.social-svg-icon svg{
  width:19px;
  height:19px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2.1;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.live-listener-pill{
  display:inline-flex;
  width:max-content;
  align-items:center;
  gap:6px;
  margin-top:5px;
  border:1px solid rgba(31,122,90,.18);
  border-radius:999px;
  padding:5px 9px;
  background:rgba(31,122,90,.08);
  color:var(--green2) !important;
  font-size:11px;
  font-weight:750;
}
.live-listener-pill::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:var(--green);
  box-shadow:0 0 0 4px rgba(31,122,90,.10);
}
html[data-theme="dark"] .live-listener-pill{
  background:rgba(118,215,173,.12);
  border-color:rgba(118,215,173,.22);
  color:#d9f5e8 !important;
}
.private-notes-card{
  align-self:start !important;
  max-height:none !important;
  min-height:0 !important;
}
.private-notes-card .desc{
  color:var(--green2) !important;
}
.transcript-status-card.is-future-feature{
  position:relative;
  opacity:.72;
  filter:saturate(.78);
}
.transcript-status-card.is-future-feature::after{
  content:"Future archive feature";
  position:absolute;
  right:18px;
  top:18px;
  border:1px solid rgba(31,122,90,.24);
  border-radius:999px;
  padding:7px 10px;
  background:rgba(255,253,248,.74);
  color:var(--red);
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
html[data-theme="dark"] .login-powered-by.powered-by-brand img,
html[data-theme="dark"] .sidebar-powered.powered-by-brand img{
  filter:drop-shadow(0 0 10px rgba(118,215,173,.45)) drop-shadow(0 0 18px rgba(240,138,126,.35));
}
.search-load-more{
  justify-self:start;
  margin:12px 0 0;
}
html[data-theme="light"] .audio-card,
html[data-theme="light"] .table-card,
html[data-theme="light"] .hero-card,
html[data-theme="light"] .widget,
html[data-theme="light"] .search-result,
html[data-theme="light"] .timeline-item,
html[data-theme="light"] .stat{
  color:var(--green2);
}
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] .nav-label,
html[data-theme="light"] .line-title-row h3,
html[data-theme="light"] .audio-card h3,
html[data-theme="light"] .search-result b{
  color:var(--green2) !important;
}
html[data-theme="light"] p,
html[data-theme="light"] span,
html[data-theme="light"] label,
html[data-theme="light"] td,
html[data-theme="light"] .desc,
html[data-theme="light"] .line-desc,
html[data-theme="light"] .line-title-row p{
  color:#6d5b55;
}
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea{
  color:var(--green2) !important;
}
@media(max-width:760px){
  .topbar{
    flex-direction:row !important;
    align-items:center !important;
    gap:10px !important;
  }
  .topbar > .search{
    display:none !important;
  }
  .mobile-search-button{
    display:inline-flex !important;
    flex:0 0 auto;
  }
  .brand{
    flex:1 1 auto;
    min-width:0 !important;
  }
  .top-actions{
    flex:0 0 auto;
  }
  .top-actions .btn:not(.mobile-search-button):not([data-theme-toggle]),
  .top-actions .auth-note,
  .top-actions .admin-notifications{
    display:none !important;
  }
}

/* About archive page */
.about-page{
  display:grid;
  gap:18px;
}
.about-hero{
  grid-template-columns:minmax(0,1.4fr) minmax(260px,.6fr);
  align-items:center;
}
.about-portrait-card{
  text-align:center;
  display:grid;
  justify-items:center;
  gap:10px;
}
.about-portrait{
  width:132px;
  height:132px;
  border:3px solid transparent;
  border-radius:999px;
  overflow:hidden;
  background:
    linear-gradient(#fffdf8,#fffdf8) padding-box,
    linear-gradient(135deg,var(--green),var(--red),var(--green2)) border-box;
  box-shadow:
    0 0 0 6px rgba(31,122,90,.08),
    0 0 26px rgba(191,64,64,.25),
    0 0 34px rgba(31,122,90,.20);
}
.about-portrait img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}
.about-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.about-card{
  display:grid;
  align-content:start;
  gap:10px;
}
.about-kicker{
  color:var(--red);
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.about-card h2,
.about-principles h2,
.about-status h2{
  color:var(--green2) !important;
}
.about-card p,
.about-portrait-card p{
  color:#6f5548;
  line-height:1.65;
}
.about-principle-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.about-principle-grid div{
  min-height:118px;
  border:1px solid rgba(31,122,90,.16);
  border-radius:18px;
  padding:14px;
  background:rgba(255,253,248,.72);
}
.about-principle-grid b{
  display:block;
  color:var(--red2);
  margin-bottom:8px;
}
.about-principle-grid span{
  color:#6f5548;
  font-size:13px;
  line-height:1.45;
}
@media(max-width:1180px){
  .about-hero,
  .about-grid,
  .about-principle-grid{
    grid-template-columns:1fr;
  }
}

.brand-copy{
  min-width:0;
  display:grid;
  gap:1px;
}

/* Slightly stronger Abu Ali portrait branding */
.brand-row .mark.mark-photo{
  width:66px !important;
  height:66px !important;
}
.auth-mark.auth-photo{
  width:92px;
  height:92px;
  padding:0;
  border:3px solid transparent;
  border-radius:999px;
  overflow:hidden;
  background:
    linear-gradient(#fffdf8,#fffdf8) padding-box,
    linear-gradient(135deg,var(--green),var(--red),var(--green2)) border-box;
  box-shadow:
    0 0 0 6px rgba(31,122,90,.08),
    0 0 28px rgba(191,64,64,.28),
    0 0 40px rgba(31,122,90,.24);
}
.auth-mark.auth-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}
@media(max-width:760px){
  .brand-row .mark.mark-photo{
    width:58px !important;
    height:58px !important;
  }
  .auth-mark.auth-photo{
    width:82px;
    height:82px;
  }
}

.top-clock,
.brand-countdown{
  display:none !important;
}

.table-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
}
.suggest-edit-btn{
  background:rgba(31,122,90,.08) !important;
  color:var(--green2) !important;
  border:1px solid rgba(31,122,90,.18) !important;
}
.correction-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}
.correction-meta small{
  display:inline-flex;
  gap:4px;
  max-width:100%;
  border:1px solid rgba(31,122,90,.16);
  border-radius:999px;
  padding:5px 8px;
  background:rgba(31,122,90,.07);
  color:var(--green2);
  font-size:11px;
  line-height:1.2;
}
.correction-meta small b{
  color:var(--red);
}
html[data-theme="dark"] .suggest-edit-btn,
html[data-theme="dark"] .correction-meta small{
  background:rgba(118,215,173,.10) !important;
  color:#d9f5e8 !important;
  border-color:rgba(118,215,173,.20) !important;
}
@media(max-width:760px){
  .table-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .table-actions .mini-btn{
    width:100%;
  }
}

/* Final native share button override. */
.line-actions .share-button,
.audio-list .line-actions .share-button{
  background:linear-gradient(135deg,var(--green),var(--green2)) !important;
  color:#fff !important;
  border:0 !important;
  box-shadow:0 12px 24px rgba(31,122,90,.20) !important;
}
.line-actions .share-button svg,
.audio-list .line-actions .share-button svg{
  width:18px !important;
  height:18px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2.2 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}
.line-actions .share-button span{
  display:none;
}
@media(max-width:760px){
  .line-actions .share-button,
  .audio-list .line-actions .share-button{
    width:100% !important;
    min-width:0 !important;
    font-size:13px !important;
  }
  .line-actions .share-button span{
    display:inline !important;
  }
}

/* Admin live notifications */
.admin-notifications{
  position:relative;
  display:inline-flex;
  align-items:center;
}
.admin-notify-btn{
  position:relative;
  color:var(--green2) !important;
  background:rgba(31,122,90,.08) !important;
  border-color:rgba(31,122,90,.22) !important;
  box-shadow:0 10px 22px rgba(31,122,90,.10) !important;
}
.admin-notify-btn svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.admin-notify-badge{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:19px;
  height:19px;
  padding:0 5px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:var(--red);
  color:#fffdf8;
  border:2px solid var(--surface);
  font-size:10px;
  font-weight:800;
  line-height:1;
}
.admin-notifications.has-new .admin-notify-btn{
  animation:adminBellRing .72s ease-in-out 3;
  box-shadow:0 0 0 7px rgba(191,64,64,.10),0 0 32px rgba(31,122,90,.28) !important;
}
@keyframes adminBellRing{
  0%,100%{transform:rotate(0)}
  20%{transform:rotate(-12deg)}
  40%{transform:rotate(10deg)}
  60%{transform:rotate(-7deg)}
  80%{transform:rotate(5deg)}
}
.admin-notify-panel{
  position:absolute;
  top:calc(100% + 12px);
  right:0;
  z-index:90;
  width:min(360px, calc(100vw - 24px));
  overflow:hidden;
  border:1px solid rgba(31,122,90,.18);
  border-radius:22px;
  background:rgba(255,253,248,.96);
  box-shadow:0 24px 70px rgba(31,20,12,.20);
}
.admin-notify-panel[hidden]{
  display:none;
}
.admin-notify-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(31,122,90,.14);
}
.admin-notify-head b{
  color:var(--green2);
  font-family:var(--serif);
  font-size:20px;
  font-weight:650;
}
.admin-notify-head span{
  border:1px solid rgba(191,64,64,.16);
  border-radius:999px;
  padding:5px 9px;
  color:var(--red);
  font-size:11px;
  font-weight:800;
}
.admin-notify-list{
  max-height:390px;
  overflow:auto;
  padding:8px;
}
.admin-notify-item{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:3px 11px;
  padding:12px;
  border-radius:16px;
  color:var(--text);
  text-decoration:none;
}
.admin-notify-item:hover{
  background:rgba(31,122,90,.08);
}
.admin-notify-item span{
  grid-row:1 / span 2;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(135deg,var(--green),var(--red));
  color:#fffdf8;
  font-weight:850;
}
.admin-notify-item b{
  color:var(--green2);
  font-size:14px;
}
.admin-notify-item small,
.admin-notify-empty{
  color:#6f5548;
  font-size:12px;
  line-height:1.35;
}
.admin-notify-empty{
  margin:0;
  padding:14px;
}
html[data-theme="dark"] .admin-notify-btn{
  color:#76d7ad !important;
  background:rgba(118,215,173,.09) !important;
  border-color:rgba(118,215,173,.24) !important;
}
html[data-theme="dark"] .admin-notify-badge{
  border-color:#122016;
}
html[data-theme="dark"] .admin-notify-panel{
  background:rgba(17,28,20,.97);
  border-color:rgba(118,215,173,.20);
  box-shadow:0 24px 70px rgba(0,0,0,.36);
}
html[data-theme="dark"] .admin-notify-head,
html[data-theme="dark"] .admin-notify-list{
  border-color:rgba(118,215,173,.14);
}
html[data-theme="dark"] .admin-notify-head b,
html[data-theme="dark"] .admin-notify-item b{
  color:#d9f5e8;
}
html[data-theme="dark"] .admin-notify-item small,
html[data-theme="dark"] .admin-notify-empty{
  color:#c6b8ad;
}
html[data-theme="dark"] .admin-notify-item:hover{
  background:rgba(118,215,173,.09);
}
@media(max-width:760px){
  .admin-notifications{
    order:8;
  }
  .admin-notify-panel{
    right:-72px;
    width:min(340px, calc(100vw - 22px));
  }
}

/* Responsive data tables: keep columns readable and scroll horizontally. */
.topics-table-card{
  overflow:hidden !important;
}
.topics-table-wrap{
  max-width:100%;
  overflow:auto !important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  scrollbar-color:var(--green) rgba(31,122,90,.10);
}
.topics-table-wrap::after{
  content:"";
  position:sticky;
  right:0;
  display:block;
  width:44px;
  height:1px;
  margin-top:-1px;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,253,248,.88));
}
.topics-table,
.waez-table{
  min-width:980px !important;
  width:100%;
  table-layout:auto;
}
.topics-table th,
.topics-table td,
.waez-table th,
.waez-table td{
  white-space:normal;
}
.waez-table th:nth-child(1),
.waez-table td:nth-child(1){
  min-width:72px;
}
.waez-table th:nth-child(2),
.waez-table td:nth-child(2){
  min-width:86px;
}
.waez-table th:nth-child(3),
.waez-table td:nth-child(3){
  min-width:260px;
}
.waez-table th:nth-child(9),
.waez-table td:nth-child(9){
  min-width:220px;
}
html[data-theme="dark"] .topics-table-wrap::after{
  background:linear-gradient(90deg,transparent,rgba(17,28,20,.9));
}
@media(max-width:760px){
  .table-card{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  .table-card .admin-table{
    display:table !important;
    min-width:860px !important;
    width:100% !important;
    border-collapse:separate !important;
    border-spacing:0 !important;
  }
  .table-card .admin-table thead{
    display:table-header-group !important;
  }
  .table-card .admin-table tbody{
    display:table-row-group !important;
    width:auto !important;
  }
  .table-card .admin-table tr{
    display:table-row !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    transform:none !important;
    box-shadow:none !important;
  }
  .table-card .admin-table tr::after{
    display:none !important;
  }
  .table-card .admin-table th,
  .table-card .admin-table td{
    display:table-cell !important;
    width:auto !important;
    padding:12px 14px !important;
    border-bottom:1px solid rgba(31,122,90,.14) !important;
    vertical-align:middle !important;
  }
  .table-card .admin-table td::before{
    content:none !important;
    display:none !important;
  }
  .table-card .admin-table td:last-child .mini-btn{
    width:auto !important;
    white-space:nowrap;
  }
  .topics-table-wrap{
    max-height:min(70vh, 640px) !important;
    overflow:auto !important;
  }
  .topics-table-wrap .admin-table,
  .topics-table-wrap .topics-table,
  .topics-table-wrap .waez-table{
    display:table !important;
    min-width:980px !important;
    width:100% !important;
    border-collapse:separate !important;
    border-spacing:0 !important;
  }
  .topics-table-wrap .admin-table thead{
    display:table-header-group !important;
  }
  .topics-table-wrap .admin-table tbody{
    display:table-row-group !important;
    width:auto !important;
  }
  .topics-table-wrap .admin-table tr{
    display:table-row !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    transform:none !important;
    box-shadow:none !important;
  }
  .topics-table-wrap .admin-table tr::after{
    display:none !important;
  }
  .topics-table-wrap .admin-table th,
  .topics-table-wrap .admin-table td{
    display:table-cell !important;
    width:auto !important;
    padding:12px 14px !important;
    border-bottom:1px solid rgba(31,122,90,.14) !important;
    vertical-align:middle !important;
  }
  .topics-table-wrap .admin-table td::before{
    content:none !important;
    display:none !important;
  }
  .topics-table-wrap .admin-table td:first-child{
    text-align:left !important;
  }
  .topics-table-wrap .admin-table td:last-child .mini-btn,
  .topics-table-wrap .table-actions .mini-btn{
    width:auto !important;
    white-space:nowrap;
  }
  .topics-table-wrap .table-actions{
    display:flex !important;
    flex-wrap:nowrap !important;
  }
}

/* Scrollable right-rail suggestions. */
.suggestion-widget .suggestion-list,
.suggestion-widget .topic-suggestion-list{
  max-height:430px;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:8px;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:var(--green) rgba(31,122,90,.10);
}
.suggestion-widget .suggestion-list::-webkit-scrollbar,
.suggestion-widget .topic-suggestion-list::-webkit-scrollbar{
  width:8px;
}
.suggestion-widget .suggestion-list::-webkit-scrollbar-track,
.suggestion-widget .topic-suggestion-list::-webkit-scrollbar-track{
  background:rgba(31,122,90,.08);
  border-radius:999px;
}
.suggestion-widget .suggestion-list::-webkit-scrollbar-thumb,
.suggestion-widget .topic-suggestion-list::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,var(--green),var(--red));
  border-radius:999px;
}
.suggestion-widget{
  position:relative;
}
.auto-refresh-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--red);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.auto-refresh-label::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:var(--green);
  box-shadow:0 0 0 5px rgba(31,122,90,.10);
}
.suggestion-row{
  transition:opacity .2s ease, transform .2s ease;
}
.suggestion-row.is-rotating-out{
  opacity:0;
  transform:translateY(-6px);
}
.suggestion-row.is-rotating-in{
  animation:suggestionSoftIn .42s ease both;
}
@keyframes suggestionSoftIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}
.suggestion-widget::after{
  content:"";
  position:absolute;
  left:1px;
  right:1px;
  bottom:1px;
  height:34px;
  border-radius:0 0 20px 20px;
  background:linear-gradient(180deg,transparent,rgba(255,253,248,.94));
  pointer-events:none;
}
html[data-theme="dark"] .suggestion-widget::after{
  background:linear-gradient(180deg,transparent,rgba(23,18,12,.94));
}
@media(max-width:760px){
  .suggestion-widget .suggestion-list,
  .suggestion-widget .topic-suggestion-list{
    max-height:320px;
  }
}

/* Login save/show controls */
.auth-field{
  display:grid;
  gap:7px;
}
.auth-input-wrap{
  position:relative;
  display:block;
}
.auth-card .auth-input-wrap input{
  width:100%;
  margin-top:0;
  padding-right:54px;
}
.auth-input-icon{
  position:absolute;
  right:8px;
  top:50%;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid rgba(31,122,90,.18);
  border-radius:14px;
  background:rgba(31,122,90,.10);
  color:var(--green2);
  cursor:pointer;
  transition:transform .16s ease,background .16s ease,color .16s ease,border-color .16s ease;
  transform:translateY(-50%);
}
.auth-input-icon:hover,
.auth-input-icon:focus-visible,
.auth-input-icon.is-visible{
  background:rgba(184,64,64,.12);
  border-color:rgba(184,64,64,.24);
  color:var(--red);
}
.auth-input-icon svg,
.auth-save-icon svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.auth-save-option{
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  gap:10px;
  margin-top:0 !important;
  padding:10px;
  border:1px solid rgba(31,122,90,.16);
  border-radius:18px;
  background:rgba(31,122,90,.08);
  cursor:pointer;
}
.auth-save-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.auth-save-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:rgba(31,122,90,.12);
  color:var(--green2);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
.auth-save-option b{
  display:block;
  color:var(--text);
  font-size:13px;
  line-height:1.2;
}
.auth-save-option small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
}
.auth-save-option:has(input:checked){
  background:rgba(184,64,64,.10);
  border-color:rgba(184,64,64,.24);
}
.auth-save-option:has(input:checked) .auth-save-icon{
  background:linear-gradient(135deg,var(--green),var(--red));
  color:#fffdf8;
}
html[data-theme="light"] .auth-save-option b{
  color:var(--ink);
}
html[data-theme="light"] .auth-save-option small{
  color:var(--ink2);
}

/* Final management and performance polish */
.load-more-row{
  display:flex;
  justify-content:center;
  padding:18px 0 6px;
}
.load-more-row [hidden]{
  display:none !important;
}
.form-intro{
  display:grid;
  gap:7px;
  margin-bottom:16px;
  padding:16px;
  border:1px solid rgba(31,122,90,.16);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(31,122,90,.08),rgba(184,64,64,.06));
}
.form-intro h3{
  margin:0;
  color:var(--green2);
  font-family:var(--serif);
  font-size:24px;
  font-weight:500;
}
.form-intro p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
}
.detail-live-pill{
  display:inline-flex;
  margin:0 0 10px;
}
.topics-table-wrap,
.table-card{
  scrollbar-width:thin;
  scrollbar-color:var(--green) rgba(31,122,90,.10);
}
.topics-table-wrap{
  width:100%;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.topics-table-wrap .admin-table{
  min-width:940px;
}
.admin-table th,
.admin-table td{
  white-space:normal;
}
.admin-table th{
  position:sticky;
  top:0;
  z-index:2;
}
.transcript-status-card.is-future-feature{
  position:relative;
  overflow:hidden;
  opacity:.72;
}
.transcript-status-card.is-future-feature::before{
  content:"Future archive feature";
  position:absolute;
  right:18px;
  top:18px;
  z-index:2;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(184,64,64,.12);
  color:var(--red);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
html[data-theme="dark"] .form-intro{
  background:linear-gradient(135deg,rgba(34,197,94,.10),rgba(239,68,68,.08));
  border-color:rgba(255,255,255,.12);
}
html[data-theme="dark"] .form-intro h3{
  color:var(--green);
}
html[data-theme="dark"] .transcript-status-card.is-future-feature{
  background:rgba(255,255,255,.06);
}
@media(max-width:760px){
  .form-intro{
    padding:14px;
  }
  .form-intro h3{
    font-size:21px;
  }
  .transcript-status-card.is-future-feature::before{
    position:static;
    display:inline-flex;
    margin-bottom:10px;
  }
}

/* Final sidebar profile and powered-logo cleanup */
.sidebar{
  grid-template-rows:auto minmax(0,1fr) auto auto !important;
  align-content:start;
}
.sidebar .profile-mini{
  position:relative;
  z-index:2;
  margin:12px 14px 8px !important;
  min-height:66px;
  flex-shrink:0;
}
.sidebar .nav{
  min-height:0;
}
.powered-by-brand,
.login-powered-by,
.sidebar-powered{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
.login-powered-by,
.sidebar-powered{
  padding:0 !important;
}
.sidebar-powered{
  width:calc(100% - 28px);
  margin:8px 14px 14px !important;
}
.powered-by-brand img{
  border-radius:0 !important;
}
html[data-theme="dark"] .powered-by-brand img{
  filter:drop-shadow(0 0 14px rgba(111,147,255,.36)) drop-shadow(0 0 18px rgba(255,76,214,.28)) !important;
}
.topbar{
  position:relative;
  z-index:5000 !important;
  overflow:visible !important;
}
.top-actions,
.admin-notifications{
  position:relative;
  z-index:5010 !important;
  overflow:visible !important;
}
.admin-notify-panel{
  z-index:9999 !important;
}
.main,
.content,
.right{
  position:relative;
  z-index:1;
}
.main[aria-busy="true"] .content{
  opacity:.62;
  pointer-events:none;
  transition:opacity .16s ease;
}
.sidebar .nav-item.active{
  scroll-margin-block:90px;
}

/* Table-native column filters */
.column-filter-form{
  display:block;
  margin:0;
}
.column-filter-table thead tr:first-child th{
  top:0;
}
.column-filter-row th{
  top:42px !important;
  padding:10px 12px !important;
  background:rgba(255,253,248,.96) !important;
  border-bottom:1px solid rgba(31,122,90,.16) !important;
}
.column-filter-row input,
.column-filter-row select{
  width:100%;
  min-width:120px;
  min-height:38px;
  border:1px solid rgba(31,122,90,.18);
  border-radius:14px;
  background:#fffdf8;
  color:var(--green2);
  padding:0 11px;
  font-size:13px;
  outline:none;
}
.column-filter-row input::placeholder{
  color:rgba(42,33,66,.52);
}
.column-filter-row input:focus,
.column-filter-row select:focus{
  border-color:rgba(184,64,64,.42);
  box-shadow:0 0 0 4px rgba(184,64,64,.09);
}
.split-filter{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}
.split-filter.compact{
  grid-template-columns:minmax(116px,1fr) auto;
  align-items:center;
}
.column-reset{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 12px;
  border:1px solid rgba(184,64,64,.22);
  border-radius:14px;
  background:rgba(184,64,64,.08);
  color:var(--red);
  font-size:12px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
.column-reset:hover,
.column-reset:focus-visible{
  background:var(--red);
  color:#fffdf8;
}
html[data-theme="dark"] .column-filter-row th{
  background:rgba(28,28,42,.96) !important;
  border-bottom-color:rgba(224,106,97,.16) !important;
}
html[data-theme="dark"] .column-filter-row input,
html[data-theme="dark"] .column-filter-row select{
  background:rgba(255,248,236,.08);
  color:#fff8ec;
  border-color:rgba(224,106,97,.18);
}
html[data-theme="dark"] .column-filter-row input::placeholder{
  color:rgba(255,248,236,.52);
}
@media(max-width:760px){
  .column-filter-row th{
    top:40px !important;
  }
  .column-filter-row input,
  .column-filter-row select{
    min-width:130px;
  }
  .split-filter{
    min-width:260px;
  }
  .split-filter.compact{
    min-width:220px;
  }
}

/* Final polish: compact mobile header, repaired share actions, archive texture */
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    radial-gradient(circle, rgba(184,64,64,.16) 1px, transparent 1.4px),
    linear-gradient(rgba(31,122,90,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,122,90,.055) 1px, transparent 1px);
  background-size:26px 26px, 76px 76px, 76px 76px;
  background-position:0 0, 12px 12px, 12px 12px;
  opacity:.28;
  mask-image:linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
}
html[data-theme="dark"] body::after{
  background-image:
    radial-gradient(circle, rgba(224,106,97,.14) 1px, transparent 1.4px),
    linear-gradient(rgba(46,139,103,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,139,103,.075) 1px, transparent 1px);
  opacity:.34;
}
.app{
  position:relative;
  z-index:1;
}
.btn-muted,
.google-disabled{
  background:rgba(31,122,90,.08) !important;
  border-color:rgba(31,122,90,.18) !important;
  color:rgba(83,65,105,.70) !important;
  cursor:not-allowed !important;
  box-shadow:none !important;
}
html[data-theme="dark"] .btn-muted,
html[data-theme="dark"] .google-disabled{
  background:rgba(255,255,255,.06) !important;
  border-color:rgba(255,255,255,.12) !important;
  color:rgba(255,248,236,.58) !important;
}
.detail-actions form{
  display:inline-flex;
  min-width:0;
}
.detail-actions .mini-btn.share-button{
  width:auto !important;
  min-width:118px !important;
  height:44px !important;
  min-height:44px !important;
  padding:0 18px !important;
  border:0 !important;
  border-radius:999px !important;
  background:linear-gradient(135deg,var(--green),var(--green2)) !important;
  color:#fffdf8 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:9px !important;
  line-height:1 !important;
  overflow:hidden !important;
  box-shadow:0 12px 28px rgba(31,122,90,.24) !important;
}
.detail-actions .mini-btn.share-button svg{
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  max-width:18px !important;
  flex:0 0 18px !important;
  display:block !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}
.detail-actions .mini-btn.share-button path{
  fill:none !important;
  stroke:currentColor !important;
}
.detail-actions .mini-btn.share-button span{
  display:inline !important;
  font-size:14px !important;
  font-weight:800 !important;
  color:inherit !important;
}
.detail-actions .mini-btn.share-button:hover,
.detail-actions .mini-btn.share-button:focus-visible{
  transform:translateY(-1px);
  background:linear-gradient(135deg,var(--red),var(--green)) !important;
}
.mobile-sidebar-theme{
  display:none !important;
}
@media(max-width:760px){
  .topbar{
    min-height:70px !important;
    height:70px !important;
    padding:8px 12px !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:stretch !important;
    gap:8px !important;
  }
  .brand-row{
    width:100% !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:44px 1fr 44px !important;
    align-items:center !important;
    gap:8px !important;
  }
  .brand-row .sidebar-toggle,
  .brand-row .mobile-search-button{
    width:44px !important;
    height:44px !important;
    min-height:44px !important;
    padding:0 !important;
    border-radius:16px !important;
  }
  .brand-row .brand{
    min-width:0 !important;
    width:100% !important;
    display:grid !important;
    grid-template-columns:52px minmax(0,1fr) !important;
    align-items:center !important;
    gap:9px !important;
  }
  .brand-row .mark.mark-photo{
    width:52px !important;
    height:52px !important;
    min-width:52px !important;
    border-radius:999px !important;
  }
  .brand-row .brand-copy{
    min-width:0 !important;
    display:block !important;
  }
  .brand-row .brand small{
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    font-size:9px !important;
    letter-spacing:.11em !important;
  }
  .brand-row .brand b{
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    font-size:16px !important;
    line-height:1.15 !important;
  }
  .mobile-search-button{
    display:inline-grid !important;
    place-items:center !important;
  }
  .mobile-search-button svg{
    width:19px !important;
    height:19px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:2 !important;
  }
  .topbar > .search,
  .top-actions{
    display:none !important;
  }
  .mobile-side-actions{
    grid-template-columns:44px 1fr 1fr !important;
    align-items:center !important;
  }
  .mobile-side-actions .mobile-sidebar-theme{
    display:inline-flex !important;
  }
  .mobile-side-actions .support-btn{
    grid-column:1 / -1;
  }
  .detail-actions{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
  }
  .detail-actions form{
    width:100%;
  }
  .detail-actions .mini-btn.share-button{
    width:100% !important;
    min-width:0 !important;
  }
}

/* Final requested fixes: countdown, compact mobile search, reels player, sidebar over player */
.brand-countdown{
  display:block !important;
  margin-top:2px;
  color:var(--red);
  font-size:10px;
  font-weight:750;
  letter-spacing:.04em;
  line-height:1.15;
  opacity:.9;
  transition:transform .18s ease,color .18s ease;
}
.brand-countdown.tick{
  transform:translateY(-1px);
  color:var(--green);
}
html[data-theme="dark"] .brand-countdown{
  color:#f08a7e;
}
html[data-theme="dark"] .brand-countdown.tick{
  color:#76d7ad;
}
.mobile-top-theme{
  display:none !important;
}
.btn.is-disabled,
.btn:disabled{
  opacity:.58;
  cursor:not-allowed;
  pointer-events:none;
  filter:saturate(.75);
}
.home-actions .btn-primary,
.home-actions .btn-secondary,
.home-actions .support-btn{
  color:#fffdf8 !important;
  text-shadow:0 1px 1px rgba(0,0,0,.18);
}
.home-actions .btn-quiet{
  color:var(--green2) !important;
}
.live-listener-pill{
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:24px;
  margin-top:6px;
  padding:0 10px;
  border:1px solid rgba(31,122,90,.22);
  border-radius:999px;
  background:rgba(31,122,90,.10);
  color:var(--green2);
  font-size:11px;
  font-weight:800;
}
html[data-theme="dark"] .live-listener-pill{
  color:#76d7ad;
  background:rgba(46,139,103,.14);
  border-color:rgba(46,139,103,.24);
}
.audio-library-content .line-actions{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
}
.audio-library-content .line-actions .mini-btn,
.audio-library-content .line-actions form,
.audio-library-content .line-actions button{
  width:auto !important;
  min-width:42px !important;
  white-space:nowrap !important;
}
.player-reels-page{
  height:100%;
}
.reels-track{
  height:min(720px,calc(100vh - 230px));
  min-height:420px;
  overflow-y:auto;
  scroll-snap-type:y mandatory;
  display:grid;
  gap:16px;
  padding-right:6px;
}
.reel-card{
  min-height:min(560px,70vh);
  scroll-snap-align:center;
  border:1px solid rgba(31,122,90,.22);
  border-radius:28px;
  background:
    radial-gradient(circle at 85% 14%,rgba(184,64,64,.16),transparent 32%),
    linear-gradient(135deg,rgba(255,253,248,.96),rgba(239,249,244,.92));
  color:var(--green2);
  display:grid;
  align-content:center;
  justify-items:start;
  gap:14px;
  padding:28px;
  text-align:left;
  box-shadow:0 24px 58px rgba(31,122,90,.12);
  cursor:pointer;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.reel-card:hover,
.reel-card:focus-visible,
.reel-card.is-current-reel{
  transform:translateY(-2px);
  border-color:rgba(184,64,64,.34);
  box-shadow:0 28px 70px rgba(184,64,64,.14);
}
.reel-card .reel-kicker{
  color:var(--red);
  font-size:12px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.reel-card b{
  max-width:760px;
  color:var(--green2);
  font-family:var(--serif);
  font-size:clamp(32px,6vw,62px);
  font-weight:500;
  line-height:1.02;
}
.reel-card > span:not(.reel-kicker){
  max-width:720px;
  color:var(--muted);
  font-size:16px;
  line-height:1.55;
}
.reel-card em{
  color:var(--red);
  font-size:12px;
  font-style:normal;
  font-weight:850;
}
html[data-theme="dark"] .reel-card{
  background:
    radial-gradient(circle at 85% 14%,rgba(224,106,97,.12),transparent 32%),
    linear-gradient(135deg,rgba(23,35,28,.96),rgba(19,17,14,.94));
  color:#fff8ec;
}
html[data-theme="dark"] .reel-card b{
  color:#fff8ec;
}
@media(max-width:760px){
  .topbar{
    height:70px !important;
    min-height:70px !important;
  }
  .brand-row{
    grid-template-columns:44px minmax(0,1fr) 42px 42px !important;
  }
  .mobile-top-theme,
  .mobile-search-button{
    display:inline-grid !important;
    place-items:center !important;
    width:42px !important;
    height:42px !important;
    min-height:42px !important;
    padding:0 !important;
  }
  .brand-row .brand{
    grid-template-columns:48px minmax(0,1fr) !important;
  }
  .brand-row .mark.mark-photo{
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
  }
  .brand-countdown{
    font-size:9px;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  body.sidebar-open .sidebar{
    z-index:9000 !important;
    top:8px !important;
    bottom:8px !important;
    max-height:calc(100vh - 16px) !important;
  }
  body.sidebar-open::after{
    z-index:8990 !important;
  }
  .player,
  .mobile-bottom-nav{
    z-index:100 !important;
  }
  .audio-library-content .filter-card{
    display:grid !important;
    grid-auto-flow:column !important;
    grid-auto-columns:minmax(150px,auto) !important;
    grid-template-columns:none !important;
    align-items:center !important;
    overflow-x:auto !important;
    padding:10px !important;
    gap:8px !important;
    border-radius:18px !important;
  }
  .audio-library-content .filter-card input[name="q"]{
    min-width:260px !important;
  }
  .audio-library-content .filter-card input[name="year"]{
    min-width:95px !important;
  }
  .audio-library-content .filter-card select,
  .audio-library-content .filter-card button{
    min-width:150px !important;
  }
  .audio-library-content .filter-card .btn{
    width:auto !important;
  }
  .audio-library-content .line-actions{
    justify-content:flex-start !important;
    overflow-x:auto !important;
    padding-bottom:2px;
  }
  .control-buttons{
    display:flex !important;
  }
  .control-buttons [data-player-prev],
  .control-buttons [data-player-next],
  .control-buttons [data-player-toggle]{
    display:inline-grid !important;
    place-items:center !important;
    flex:0 0 auto !important;
  }
  .player .controls{
    display:grid !important;
  }
  .player-actions{
    display:flex !important;
    grid-column:1 / -1 !important;
    justify-content:center !important;
  }
  .player-actions .btn:not([data-open-note]){
    display:none !important;
  }
  .player-actions [data-open-note],
  .player-actions [data-locked]{
    min-height:32px !important;
    padding-inline:12px !important;
    font-size:12px !important;
  }
  .reels-track{
    height:calc(100vh - 240px);
    min-height:360px;
    gap:12px;
  }
  .reel-card{
    min-height:calc(100vh - 280px);
    padding:22px;
    border-radius:24px;
  }
  .reel-card b{
    font-size:clamp(30px,11vw,48px);
  }
}

/* Final table filter polish and archive texture */
.page-wrap,
.main,
.content,
.sidebar{
  position:relative;
  isolation:isolate;
}
.main::before,
.content::before,
.sidebar::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(22, 115, 82, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 115, 82, .045) 1px, transparent 1px),
    radial-gradient(circle, rgba(173, 50, 50, .10) 1px, transparent 1.6px);
  background-size:54px 54px, 54px 54px, 22px 22px;
  background-position:0 0, 0 0, 8px 8px;
  opacity:.62;
}
.sidebar::before{
  background-size:44px 44px, 44px 44px, 18px 18px;
  opacity:.54;
}
.main > *,
.content > *,
.sidebar > *{
  position:relative;
  z-index:1;
}
html[data-theme="dark"] .main::before,
html[data-theme="dark"] .content::before,
html[data-theme="dark"] .sidebar::before{
  background-image:
    linear-gradient(rgba(98, 205, 158, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 205, 158, .045) 1px, transparent 1px),
    radial-gradient(circle, rgba(229, 89, 89, .12) 1px, transparent 1.6px);
  opacity:.7;
}
.column-filter-table{
  border-collapse:separate !important;
  border-spacing:0 !important;
}
.table-card,
.topics-table-card{
  background:
    linear-gradient(140deg, rgba(255, 253, 247, .94), rgba(236, 248, 241, .86)),
    var(--card) !important;
  border-color:rgba(22, 115, 82, .18) !important;
}
html[data-theme="dark"] .table-card,
html[data-theme="dark"] .topics-table-card{
  background:
    linear-gradient(140deg, rgba(14, 27, 20, .96), rgba(37, 25, 20, .82)),
    var(--card) !important;
  border-color:rgba(94, 188, 139, .20) !important;
}
.column-filter-table thead th,
.topics-table thead th,
.waez-table thead th,
html[data-theme="light"] .topics-table thead th{
  background:
    linear-gradient(135deg, rgba(22, 115, 82, .13), rgba(173, 50, 50, .055)),
    rgba(255, 253, 247, .96) !important;
  color:var(--green2) !important;
  border-bottom:1px solid rgba(22, 115, 82, .18) !important;
  box-shadow:inset 0 -1px 0 rgba(173, 50, 50, .10) !important;
  vertical-align:top !important;
}
html[data-theme="dark"] .column-filter-table thead th,
html[data-theme="dark"] .topics-table thead th,
html[data-theme="dark"] .waez-table thead th{
  background:
    linear-gradient(135deg, rgba(27, 126, 89, .22), rgba(173, 50, 50, .16)),
    rgba(17, 28, 22, .96) !important;
  color:#dff8e8 !important;
  border-bottom-color:rgba(83, 177, 132, .22) !important;
}
.column-filter-table tbody tr{
  background:rgba(255, 253, 247, .58) !important;
}
.column-filter-table tbody tr:hover{
  background:linear-gradient(90deg, rgba(22, 115, 82, .08), rgba(173, 50, 50, .045)) !important;
}
html[data-theme="dark"] .column-filter-table tbody tr{
  background:rgba(17, 28, 22, .56) !important;
}
html[data-theme="dark"] .column-filter-table tbody tr:hover{
  background:linear-gradient(90deg, rgba(49, 151, 105, .16), rgba(173, 50, 50, .11)) !important;
}
.th-filter{
  display:grid;
  gap:8px;
  align-content:start;
  min-width:0;
}
.th-filter > span{
  color:var(--red) !important;
  font-size:10px !important;
  font-weight:800 !important;
  letter-spacing:.12em !important;
  line-height:1.1 !important;
  text-transform:uppercase !important;
  white-space:nowrap;
}
html[data-theme="dark"] .th-filter > span{
  color:#ff9a92 !important;
}
.th-filter input,
.th-filter select,
.th-filter .column-reset{
  width:100%;
  min-height:38px;
  border:1px solid rgba(22, 115, 82, .20) !important;
  border-radius:14px !important;
  background:rgba(255, 253, 247, .82) !important;
  color:var(--green2) !important;
  box-shadow:0 10px 24px rgba(22, 115, 82, .06) !important;
  font-size:13px !important;
  font-weight:650 !important;
}
.th-filter input,
.th-filter select{
  padding:0 12px !important;
}
.th-filter input::placeholder{
  color:rgba(45, 66, 58, .55) !important;
}
.th-filter select{
  cursor:pointer;
}
.th-filter .split-filter{
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:7px;
}
.th-filter .split-filter.compact{
  grid-template-columns:minmax(90px, 1fr) auto;
  align-items:center;
}
.th-filter .column-reset{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 12px !important;
  color:var(--red) !important;
  text-decoration:none !important;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.th-filter input:focus,
.th-filter select:focus,
.th-filter .column-reset:focus-visible{
  border-color:rgba(173, 50, 50, .52) !important;
  box-shadow:0 0 0 3px rgba(173, 50, 50, .10), 0 12px 28px rgba(22, 115, 82, .10) !important;
  outline:0;
}
html[data-theme="dark"] .th-filter input,
html[data-theme="dark"] .th-filter select,
html[data-theme="dark"] .th-filter .column-reset{
  background:rgba(20, 32, 26, .88) !important;
  border-color:rgba(96, 190, 142, .25) !important;
  color:#f2fff8 !important;
}
html[data-theme="dark"] .th-filter input::placeholder{
  color:rgba(232, 255, 242, .52) !important;
}
.column-filter-row{
  display:none !important;
}
@media (max-width:760px){
  .column-filter-table thead th{
    min-width:150px;
  }
  .column-filter-table thead th:nth-child(3){
    min-width:220px;
  }
  .th-filter input,
  .th-filter select,
  .th-filter .column-reset{
    min-height:36px;
    font-size:12px !important;
  }
  .main::before,
  .content::before{
    background-size:36px 36px, 36px 36px, 18px 18px;
    opacity:.48;
  }
}



/* Phase 1E: persistent player navigation + visible timestamp shortcuts */
.player-title-link{
  display:inline-block;
  color:inherit;
  text-decoration:none;
  max-width:100%;
}
.player-title-link:hover b,
.player-title-link:focus-visible b{
  text-decoration:underline;
  text-underline-offset:3px;
}
.detail-player{
  overflow:visible !important;
}
.detail-player > *{
  min-width:0;
}
.detail-play{
  flex:0 0 auto;
  z-index:2;
}
.detail-scrub-wrap{
  position:relative;
  min-height:32px;
}
.topic-marker-layer.has-markers::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:5px;
  height:1px;
  background:rgba(34,211,238,.18);
}
.topic-jump-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
  padding:10px;
  border:1px solid rgba(184,64,64,.20);
  border-radius:18px;
  background:rgba(255,255,255,.045);
}
.topic-jump-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:900;
  color:#d86a5f;
  margin-right:2px;
}
.topic-jump-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:240px;
  min-height:34px;
  padding:7px 10px;
  border:1px solid rgba(34,211,238,.22);
  border-radius:999px;
  background:rgba(31,122,90,.14);
  color:#f8f4ff;
  cursor:pointer;
  font-size:12px;
}
.topic-jump-chip b{
  color:#9be7d0;
  font-weight:900;
  white-space:nowrap;
}
.topic-jump-chip span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.topic-jump-chip:hover,
.topic-jump-chip:focus-visible{
  border-color:rgba(34,211,238,.50);
  background:rgba(31,122,90,.26);
  outline:0;
}
html[data-theme="light"] .topic-jump-row{
  background:rgba(255,255,255,.72);
  border-color:rgba(31,122,90,.14);
}
html[data-theme="light"] .topic-jump-chip{
  background:rgba(31,122,90,.09);
  color:var(--ink);
  border-color:rgba(31,122,90,.16);
}
html[data-theme="light"] .topic-jump-chip b{
  color:var(--green2);
}
@media(max-width:760px){
  .topic-jump-row{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding:8px;
    scroll-snap-type:x proximity;
  }
  .topic-jump-label{
    flex:0 0 auto;
  }
  .topic-jump-chip{
    flex:0 0 auto;
    max-width:210px;
    scroll-snap-align:start;
  }
}

/* Phase 1F: final listener polish for detail player, mobile player controls and soft-navigation scroll. */
.detail-player{
  grid-template-columns:auto minmax(0,1fr) 52px 116px !important;
  align-items:center !important;
}
.detail-player-buttons{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  min-width:max-content !important;
}
.detail-step,
.detail-play{
  flex:0 0 auto !important;
}
.detail-step{
  width:42px !important;
  height:42px !important;
  min-height:42px !important;
  border-radius:999px !important;
  border:1px solid rgba(184,64,64,.28) !important;
  background:rgba(255,255,255,.075) !important;
  color:#efe9ff !important;
  font-size:15px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 22px rgba(0,0,0,.16) !important;
}
.detail-step:hover,
.detail-step:focus-visible{
  background:rgba(31,122,90,.26) !important;
  border-color:rgba(34,211,238,.36) !important;
  outline:none !important;
}
.detail-player-main{
  min-width:0 !important;
}
.detail-scrub-wrap{
  padding-top:14px !important;
  padding-bottom:2px !important;
}
.detail-scrub{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  opacity:1 !important;
}
.topic-marker-layer{
  top:0 !important;
}
.detail-player-meta{
  margin-top:2px !important;
}
html[data-theme="light"] .detail-step{
  background:#fff !important;
  color:var(--green2) !important;
  border-color:rgba(31,122,90,.18) !important;
}

@media(max-width:760px){
  .content.content-wide{
    padding-bottom:18px !important;
  }
  .content.content-wide .audio-detail-shell{
    margin-top:0 !important;
  }
  .detail-player{
    grid-template-columns:1fr !important;
    gap:10px !important;
    padding:13px !important;
    border-radius:22px !important;
  }
  .detail-player-buttons{
    width:100% !important;
    justify-content:center !important;
    gap:12px !important;
    order:2 !important;
  }
  .detail-player-main{
    width:100% !important;
    order:1 !important;
  }
  .detail-play{
    width:54px !important;
    height:54px !important;
    min-height:54px !important;
    border-radius:18px !important;
  }
  .detail-step{
    width:46px !important;
    height:46px !important;
    min-height:46px !important;
  }
  .detail-player-meta{
    font-size:11px !important;
    padding:0 2px !important;
  }
  .topic-jump-row{
    margin-top:10px !important;
  }
  .topic-jump-chip{
    min-height:40px !important;
  }

  .player{
    grid-template-columns:1fr !important;
    grid-template-rows:auto auto auto !important;
    gap:8px !important;
    padding:10px 12px 9px !important;
  }
  .player .now{
    grid-column:1 !important;
    grid-row:1 !important;
  }
  .player .controls{
    display:grid !important;
    grid-column:1 !important;
    grid-row:2 / 4 !important;
    gap:7px !important;
    width:100% !important;
  }
  .player .control-buttons{
    grid-column:auto !important;
    grid-row:auto !important;
    display:flex !important;
    justify-content:center !important;
    gap:12px !important;
  }
  .player .control-buttons .circle{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
    border-radius:999px !important;
  }
  .player .control-buttons .circle.play{
    width:50px !important;
    height:50px !important;
    min-width:50px !important;
    min-height:50px !important;
  }
  .player .control-buttons .player-mode{
    display:none !important;
  }
  .player .timebar{
    grid-column:auto !important;
    grid-row:auto !important;
    display:grid !important;
    grid-template-columns:42px minmax(0,1fr) 42px !important;
    gap:8px !important;
    width:100% !important;
  }
  .player .global-scrub{
    height:8px !important;
  }
}

/* Phase 1G: final visibility repair for detail progress line and mobile bottom controls */
.detail-player{
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) auto auto !important;
  gap:12px !important;
  align-items:center !important;
  min-height:76px !important;
  overflow:visible !important;
}
.detail-player-buttons{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  min-width:max-content !important;
  visibility:visible !important;
  opacity:1 !important;
}
.detail-player-main,
.detail-scrub-wrap{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  visibility:visible !important;
  opacity:1 !important;
}
.detail-scrub-wrap{
  position:relative !important;
  min-height:36px !important;
  padding:14px 0 4px !important;
}
.detail-scrub{
  display:block !important;
  width:100% !important;
  height:10px !important;
  min-height:10px !important;
  opacity:1 !important;
  visibility:visible !important;
  border-radius:999px !important;
  background:linear-gradient(90deg,rgba(31,122,90,.92),rgba(34,211,238,.64)) !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}
.detail-scrub::-webkit-slider-thumb{
  -webkit-appearance:none !important;
  appearance:none !important;
  width:20px !important;
  height:20px !important;
  border-radius:50% !important;
  background:#d86a5f !important;
  border:3px solid #fff !important;
  box-shadow:0 4px 14px rgba(31,122,90,.45) !important;
}
.detail-scrub::-moz-range-thumb{
  width:20px !important;
  height:20px !important;
  border-radius:50% !important;
  background:#d86a5f !important;
  border:3px solid #fff !important;
  box-shadow:0 4px 14px rgba(31,122,90,.45) !important;
}
.detail-step,
.detail-play,
.detail-mute{
  display:inline-grid !important;
  place-items:center !important;
  visibility:visible !important;
  opacity:1 !important;
}
.detail-step{
  font-size:0 !important;
}
.detail-prev::before{content:'‹' !important;font-size:30px !important;line-height:1 !important;font-weight:900 !important;}
.detail-next::before{content:'›' !important;font-size:30px !important;line-height:1 !important;font-weight:900 !important;}
.detail-player-meta{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:8px !important;
  width:100% !important;
}
.topic-marker-layer{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:none !important;
}
.topic-marker{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}

@media(max-width:760px){
  .detail-player{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
    padding:14px !important;
    min-height:132px !important;
  }
  .detail-player-main{
    order:1 !important;
  }
  .detail-player-buttons{
    order:2 !important;
    width:100% !important;
    justify-content:center !important;
  }
  .detail-mute,
  .detail-volume{
    display:none !important;
  }
  .detail-step{
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    min-height:48px !important;
  }
  .detail-play{
    width:58px !important;
    height:58px !important;
    min-width:58px !important;
    min-height:58px !important;
    border-radius:20px !important;
  }

  .player{
    position:sticky !important;
    bottom:0 !important;
    z-index:120 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-rows:auto auto !important;
    gap:8px 10px !important;
    padding:10px 12px 9px !important;
  }
  .player .now{
    grid-column:1 !important;
    grid-row:1 !important;
    min-width:0 !important;
  }
  .player .controls{
    display:grid !important;
    grid-column:2 !important;
    grid-row:1 / span 2 !important;
    align-content:center !important;
    gap:6px !important;
    width:auto !important;
  }
  .player .control-buttons{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    width:auto !important;
  }
  .player .control-buttons .circle,
  .player .control-buttons .circle:not(.play),
  .player .control-buttons [data-player-prev],
  .player .control-buttons [data-player-next],
  .player .control-buttons [data-player-toggle]{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    visibility:visible !important;
    opacity:1 !important;
    flex:0 0 auto !important;
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
    border-radius:999px !important;
    font-size:0 !important;
  }
  .player .control-buttons [data-player-prev]::before{content:'‹' !important;font-size:28px !important;font-weight:900 !important;line-height:1 !important;}
  .player .control-buttons [data-player-next]::before{content:'›' !important;font-size:28px !important;font-weight:900 !important;line-height:1 !important;}
  .player .control-buttons [data-player-toggle]{
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    min-height:48px !important;
    font-size:18px !important;
  }
  .player .control-buttons .player-mode{
    display:none !important;
  }
  .player .timebar{
    grid-column:1 !important;
    grid-row:2 !important;
    display:grid !important;
    grid-template-columns:38px minmax(0,1fr) 38px !important;
    gap:7px !important;
    width:100% !important;
    min-width:0 !important;
  }
  .player-actions{
    display:none !important;
  }
  .mobile-bottom-nav{
    z-index:121 !important;
  }
}

/* Phase 2B: admin book management polish */
.required-mark{color:#e18b7f;font-weight:900;margin-left:3px;}
.field-help{display:block;margin-top:6px;color:var(--muted);font-size:12px;line-height:1.45;}
.form-actions-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px;}
.section-head-compact{margin-bottom:12px;}
.table-actions-wrap{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.inline-delete-form{display:inline;margin:0;}
.danger-btn{border-color:rgba(225,97,97,.45)!important;color:#ffd1d1!important;background:rgba(110,21,21,.22)!important;}
.danger-btn:hover{background:rgba(145,32,32,.36)!important;}
@media(max-width:760px){
  .table-actions-wrap{gap:6px;}
  .table-actions-wrap .mini-btn,.table-actions-wrap button.mini-btn{padding:8px 10px;font-size:12px;}
}

/* Phase 3: mobile-first UX and admin usability polish */
:root{--touch-target:44px;}
.btn,.mini-btn,button,input,select,textarea{touch-action:manipulation;}
button,.btn,.mini-btn{min-height:var(--touch-target);}
input,select,textarea{font-size:16px;}
.selected-file-note{display:block;margin-top:7px;color:var(--muted);font-size:12px;line-height:1.4;}
.global-table-tools{display:flex;gap:12px;align-items:end;justify-content:space-between;flex-wrap:wrap;margin:12px 0 16px;padding:12px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.04);}
.global-table-tools label{display:grid;gap:6px;margin:0;min-width:180px;}
.global-table-tools label span{font-size:12px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.08em;}
.global-table-tools input,.global-table-tools select{min-height:42px;border-radius:14px;}
.global-table-page{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.global-table-page button{border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.06);color:var(--text);padding:8px 12px;font-weight:800;}
.global-table-page button:disabled{opacity:.45;cursor:not-allowed;}
.global-table-page span{color:var(--muted);font-size:13px;font-weight:800;}
.mobile-bottom-nav a.active{color:var(--green);}
.mobile-bottom-nav a.active b{filter:drop-shadow(0 0 8px rgba(60,179,113,.45));}
.admin-table td .mini-btn,.admin-table td button.mini-btn{white-space:nowrap;}
.table-card{overflow:hidden;}
.admin-table{width:100%;}
.form-card,.audio-card,.table-card{scroll-margin-top:92px;}
.alert{scroll-margin-top:92px;}

@media(max-width:760px){
  body{padding-bottom:calc(128px + env(safe-area-inset-bottom,0px));}
  .main,.page-wrap{min-height:auto!important;}
  .content,.content-wide{padding-bottom:18px!important;}
  .topbar{position:sticky;top:0;z-index:110;backdrop-filter:saturate(120%) blur(14px);}
  .brand-copy b{max-width:185px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .brand-copy small{font-size:9px;letter-spacing:.14em;}
  .brand-countdown{font-size:10px;}
  .hero{border-radius:0 0 28px 28px!important;padding:22px 16px!important;margin:0 -1px 14px!important;}
  .hero h1{font-size:clamp(30px,9vw,44px)!important;line-height:1.02!important;}
  .hero p{font-size:14px!important;line-height:1.65!important;}
  .hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
  .hero-actions .btn{width:100%;justify-content:center;padding:11px 10px!important;font-size:12px!important;}
  .section-head{display:grid!important;gap:12px!important;align-items:start!important;}
  .section-head h2{font-size:24px!important;line-height:1.15!important;}
  .form-grid{grid-template-columns:1fr!important;gap:12px!important;}
  .form-card,.audio-card,.table-card,.note-card{border-radius:22px!important;padding:16px!important;}
  .admin-table{border:0!important;min-width:0!important;}
  .admin-table thead{display:none!important;}
  .admin-table tbody,.admin-table tr,.admin-table td{display:block!important;width:100%!important;}
  .admin-table tr{border:1px solid var(--line)!important;border-radius:18px!important;padding:10px!important;margin:0 0 12px!important;background:rgba(255,255,255,.035)!important;}
  .admin-table td{border:0!important;padding:8px 4px!important;display:grid!important;grid-template-columns:104px minmax(0,1fr)!important;gap:10px!important;align-items:start!important;font-size:13px!important;word-break:break-word!important;}
  .admin-table td::before{content:attr(data-label);font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);}
  .admin-table td:only-child{grid-template-columns:1fr!important;}
  .admin-table td:only-child::before{display:none!important;}
  .global-table-tools{display:grid!important;grid-template-columns:1fr!important;padding:10px!important;border-radius:18px!important;}
  .global-table-tools label{min-width:0!important;}
  .global-table-page{justify-content:space-between!important;}
  .global-table-page button{flex:1!important;}
  .player{position:fixed!important;left:0!important;right:0!important;bottom:52px!important;box-shadow:0 -18px 44px rgba(0,0,0,.28)!important;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;}
  .player .now .cover{width:42px!important;height:42px!important;min-width:42px!important;border-radius:12px!important;}
  .player-title-link b{font-size:13px!important;line-height:1.2!important;display:block;max-width:155px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .player [data-player-subtitle]{font-size:11px!important;display:block;max-width:165px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .player .timebar span{font-size:10px!important;}
  .player .control-buttons{gap:6px!important;}
  .player .control-buttons [data-player-prev],.player .control-buttons [data-player-next]{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;}
  .player .control-buttons [data-player-toggle]{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;}
  .mobile-bottom-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;height:54px!important;padding-bottom:env(safe-area-inset-bottom,0px)!important;background:rgba(0,0,0,.88)!important;backdrop-filter:blur(14px)!important;}
  .mobile-bottom-nav a{font-size:10px!important;gap:3px!important;}
  .mobile-bottom-nav b{font-size:15px!important;}
  .detail-player-shell{margin-top:12px!important;}
  .topic-jump-list{display:flex!important;overflow-x:auto!important;gap:8px!important;padding-bottom:4px!important;scroll-snap-type:x proximity!important;}
  .topic-jump{min-width:max-content!important;scroll-snap-align:start!important;}
}

@media(max-width:430px){
  .brand-copy b{max-width:148px;}
  .player{grid-template-columns:minmax(0,1fr) 124px!important;}
  .player-title-link b{max-width:142px;}
  .player [data-player-subtitle]{max-width:150px;}
  .player .timebar{grid-template-columns:34px minmax(0,1fr) 34px!important;gap:5px!important;}
}

/* Phase 3B mobile viewport and drawer correction
   Keeps the header/menu accessible at every scroll position and prevents blank scroll gaps above page content. */
@media(max-width:760px){
  html,
  body{
    width:100% !important;
    height:100% !important;
    min-height:100% !important;
    overflow:hidden !important;
  }
  body{
    padding-bottom:0 !important;
  }
  .app{
    display:block !important;
    position:relative !important;
    width:100% !important;
    height:100dvh !important;
    min-height:100dvh !important;
    overflow:hidden !important;
    padding-top:70px !important;
    padding-bottom:calc(126px + env(safe-area-inset-bottom,0px)) !important;
  }
  .topbar{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    z-index:9200 !important;
    min-height:70px !important;
    height:70px !important;
    transform:none !important;
  }
  .main,
  .page-wrap{
    position:fixed !important;
    top:70px !important;
    left:0 !important;
    right:0 !important;
    bottom:calc(126px + env(safe-area-inset-bottom,0px)) !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior:contain !important;
    display:block !important;
    padding:10px !important;
    margin:0 !important;
    isolation:auto !important;
    scroll-padding-top:10px !important;
  }
  .main::before{
    position:fixed !important;
    inset:70px 0 calc(126px + env(safe-area-inset-bottom,0px)) 0 !important;
  }
  .content,
  .content-wide{
    display:grid !important;
    align-content:start !important;
    justify-content:stretch !important;
    gap:14px !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    overflow:visible !important;
    padding:0 0 14px 0 !important;
    margin:0 !important;
  }
  .right{
    display:grid !important;
    grid-template-columns:1fr !important;
    align-content:start !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    overflow:visible !important;
    margin:12px 0 0 0 !important;
    padding:0 0 14px 0 !important;
  }
  .section-head:first-child,
  .hero:first-child,
  .audio-detail-shell:first-child,
  .form-card:first-child,
  .table-card:first-child{
    margin-top:0 !important;
  }
  .player{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:54px !important;
    z-index:9100 !important;
  }
  .mobile-bottom-nav{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    z-index:9120 !important;
  }
  .sidebar{
    display:grid !important;
    position:fixed !important;
    top:76px !important;
    bottom:8px !important;
    left:8px !important;
    width:min(326px,calc(100vw - 16px)) !important;
    height:auto !important;
    max-height:calc(100dvh - 84px) !important;
    overflow:auto !important;
    z-index:10010 !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transform:translateX(-112%) !important;
  }
  body.sidebar-open{
    overflow:hidden !important;
  }
  body.sidebar-open .sidebar{
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transform:translateX(0) !important;
  }
  body.sidebar-open::after{
    content:"" !important;
    position:fixed !important;
    inset:0 !important;
    z-index:10000 !important;
    background:rgba(2,3,13,.62) !important;
    backdrop-filter:blur(5px) !important;
  }
}


/* Phase 3C: final mobile timeline, main player controls and audio-number cover fixes */
.player-logo-cover{
  background:#fff !important;
  color:#103d2c !important;
  border:1px solid rgba(31,122,90,.22) !important;
  box-shadow:0 8px 20px rgba(0,0,0,.16) !important;
  overflow:hidden !important;
}
.player-logo-cover img{display:none !important;}
.player-logo-cover span{
  display:grid !important;
  place-items:center !important;
  width:100% !important;
  height:100% !important;
  font-family:var(--serif) !important;
  font-size:18px !important;
  line-height:1 !important;
  font-weight:900 !important;
  letter-spacing:.01em !important;
  color:#103d2c !important;
}
.detail-player{
  overflow:visible !important;
}
.detail-scrub-wrap{
  position:relative !important;
  min-height:42px !important;
  display:block !important;
  width:100% !important;
}
.detail-scrub,
.global-scrub{
  -webkit-appearance:none !important;
  appearance:none !important;
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
  outline:none !important;
  cursor:pointer !important;
}
.detail-scrub{
  width:100% !important;
  height:28px !important;
  background:transparent !important;
  margin:0 !important;
}
.detail-scrub::-webkit-slider-runnable-track{
  height:9px !important;
  border-radius:999px !important;
  background:linear-gradient(90deg,#1f7a5a,#22d3ee) !important;
  border:1px solid rgba(255,255,255,.20) !important;
}
.detail-scrub::-moz-range-track{
  height:9px !important;
  border-radius:999px !important;
  background:linear-gradient(90deg,#1f7a5a,#22d3ee) !important;
  border:1px solid rgba(255,255,255,.20) !important;
}
.detail-scrub::-webkit-slider-thumb{
  -webkit-appearance:none !important;
  appearance:none !important;
  width:22px !important;
  height:22px !important;
  margin-top:-7px !important;
  border-radius:999px !important;
  background:#e06a61 !important;
  border:4px solid #fff !important;
  box-shadow:0 4px 16px rgba(31,122,90,.45) !important;
}
.detail-scrub::-moz-range-thumb{
  width:22px !important;
  height:22px !important;
  border-radius:999px !important;
  background:#e06a61 !important;
  border:4px solid #fff !important;
  box-shadow:0 4px 16px rgba(31,122,90,.45) !important;
}
.topic-marker-layer{
  position:absolute !important;
  left:11px !important;
  right:11px !important;
  top:11px !important;
  height:20px !important;
  z-index:3 !important;
  pointer-events:none !important;
}
.topic-marker-layer.has-markers::before{
  top:9px !important;
  height:2px !important;
  background:rgba(255,255,255,.30) !important;
}
.topic-marker{
  position:absolute !important;
  top:4px !important;
  width:13px !important;
  height:13px !important;
  margin-left:-6px !important;
  border-radius:999px !important;
  background:#f08a7e !important;
  border:2px solid #fff !important;
  box-shadow:0 0 0 4px rgba(31,122,90,.18),0 5px 12px rgba(0,0,0,.25) !important;
  z-index:4 !important;
  pointer-events:auto !important;
}
.detail-player-meta{
  margin-top:0 !important;
}

.player-seek-bubble{
  position:fixed;
  z-index:9999;
  left:50%;
  bottom:106px;
  transform:translateX(-50%);
  padding:7px 11px;
  border-radius:999px;
  background:rgba(13,20,16,.94);
  color:#fff;
  font-size:12px;
  font-weight:900;
  pointer-events:none;
  opacity:0;
  transition:opacity .16s ease;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
}
.player-seek-bubble.is-visible{opacity:1;}

@media(max-width:760px){
  .detail-player{
    grid-template-columns:1fr !important;
    gap:10px !important;
    min-height:0 !important;
    padding:12px !important;
  }
  .detail-player-main{
    order:1 !important;
    width:100% !important;
  }
  .detail-player-buttons{
    order:2 !important;
    display:flex !important;
    width:100% !important;
    justify-content:center !important;
    gap:14px !important;
  }
  .detail-step,
  .detail-play{
    display:inline-grid !important;
    place-items:center !important;
  }
  .detail-step{
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    min-height:46px !important;
  }
  .detail-play{
    width:58px !important;
    height:58px !important;
    min-width:58px !important;
    min-height:58px !important;
  }
  .detail-scrub-wrap{
    min-height:44px !important;
  }
  .detail-scrub{
    height:34px !important;
  }

  .player{
    position:sticky !important;
    bottom:0 !important;
    z-index:120 !important;
    display:grid !important;
    grid-template-columns:52px minmax(0,1fr) !important;
    grid-template-rows:auto auto auto !important;
    gap:8px 10px !important;
    padding:10px 12px 9px !important;
    max-height:none !important;
    overflow:visible !important;
  }
  .player .now{
    grid-column:1 / -1 !important;
    grid-row:1 !important;
    display:flex !important;
    min-width:0 !important;
  }
  .player .cover{
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    border-radius:14px !important;
  }
  .player-logo-cover span{font-size:17px !important;}
  .player .controls{
    display:contents !important;
  }
  .player .control-buttons{
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:12px !important;
    width:100% !important;
  }
  .player .control-buttons .circle,
  .player .control-buttons .circle:not(.play),
  .player .control-buttons .player-mode{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
    border-radius:999px !important;
    font-size:16px !important;
  }
  .player .control-buttons .circle.play{
    width:56px !important;
    height:56px !important;
    min-width:56px !important;
    min-height:56px !important;
    font-size:18px !important;
  }
  .player .timebar{
    grid-column:1 / -1 !important;
    grid-row:3 !important;
    display:grid !important;
    grid-template-columns:42px minmax(190px,1fr) 42px !important;
    gap:8px !important;
    align-items:center !important;
    width:100% !important;
    font-size:10px !important;
  }
  .player .global-scrub{
    width:100% !important;
    height:30px !important;
    min-width:190px !important;
  }
  .global-scrub::-webkit-slider-runnable-track{
    height:7px !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.78) !important;
  }
  .global-scrub::-moz-range-track{
    height:7px !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.78) !important;
  }
  .global-scrub::-webkit-slider-thumb{
    -webkit-appearance:none !important;
    width:20px !important;
    height:20px !important;
    margin-top:-6px !important;
    border-radius:999px !important;
    background:#1f7a5a !important;
    border:3px solid #fff !important;
  }
  .global-scrub::-moz-range-thumb{
    width:20px !important;
    height:20px !important;
    border-radius:999px !important;
    background:#1f7a5a !important;
    border:3px solid #fff !important;
  }
  .player-actions{display:none !important;}
  .player-seek-bubble{bottom:128px;}
}

/* Phase 3D: restore mobile player to fixed bottom position after timeline enhancement.
   Phase 3C made the mini player taller, so the scrollable page area must reserve more bottom space. */
@media(max-width:760px){
  :root{
    --mobile-header-h:70px;
    --mobile-nav-h:54px;
    --mobile-player-h:158px;
  }
  .app{
    height:100dvh !important;
    min-height:100dvh !important;
    overflow:hidden !important;
    padding-top:var(--mobile-header-h) !important;
    padding-bottom:calc(var(--mobile-player-h) + var(--mobile-nav-h) + env(safe-area-inset-bottom,0px)) !important;
  }
  .main,
  .page-wrap{
    position:fixed !important;
    top:var(--mobile-header-h) !important;
    left:0 !important;
    right:0 !important;
    bottom:calc(var(--mobile-player-h) + var(--mobile-nav-h) + env(safe-area-inset-bottom,0px)) !important;
    height:auto !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch !important;
  }
  .main::before{
    inset:var(--mobile-header-h) 0 calc(var(--mobile-player-h) + var(--mobile-nav-h) + env(safe-area-inset-bottom,0px)) 0 !important;
  }
  .player{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    top:auto !important;
    bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom,0px)) !important;
    z-index:9100 !important;
    min-height:0 !important;
    max-height:var(--mobile-player-h) !important;
    overflow:hidden !important;
    margin:0 !important;
    border-radius:0 !important;
    transform:none !important;
  }
  .mobile-bottom-nav{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    top:auto !important;
    bottom:0 !important;
    height:var(--mobile-nav-h) !important;
    z-index:9120 !important;
    margin:0 !important;
  }
  .player .control-buttons{
    grid-row:2 !important;
  }
  .player .timebar{
    grid-row:3 !important;
    margin-top:0 !important;
  }
}

@media(max-width:430px){
  :root{--mobile-player-h:152px;}
  .player{
    max-height:var(--mobile-player-h) !important;
    padding:8px 10px 7px !important;
    gap:6px 8px !important;
  }
  .player .global-scrub{
    min-width:0 !important;
  }
}


/* Phase 3E: definitive mobile docking fix.
   The player/nav are moved to body on mobile, so these body-level rules win over any older app-shell rules. */
@media(max-width:760px){
  body.mobile-player-docked > .player[data-global-player-shell]{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    top:auto !important;
    bottom:calc(var(--mobile-nav-h,54px) + env(safe-area-inset-bottom,0px)) !important;
    z-index:2147483000 !important;
    width:100vw !important;
    max-width:100vw !important;
    min-height:0 !important;
    max-height:var(--mobile-player-h,152px) !important;
    margin:0 !important;
    border-radius:0 !important;
    transform:none !important;
    translate:none !important;
    overflow:hidden !important;
  }
  body.mobile-player-docked > .mobile-bottom-nav{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    top:auto !important;
    bottom:0 !important;
    height:var(--mobile-nav-h,54px) !important;
    z-index:2147483001 !important;
    margin:0 !important;
    transform:none !important;
    translate:none !important;
  }
  body.mobile-player-docked .player-seek-bubble{
    position:fixed !important;
    bottom:calc(var(--mobile-nav-h,54px) + var(--mobile-player-h,152px) + 8px) !important;
    z-index:2147483002 !important;
  }
}

/* Phase 4A: admin audio and timestamp management polish */
.compact-head{margin-bottom:14px;gap:12px;align-items:flex-start}
.admin-inline-filter{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px}
.admin-inline-filter input,.admin-inline-filter select{max-width:280px}
.admin-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.admin-actions form{display:inline-flex;margin:0}
.mini-btn.danger{border-color:rgba(255,105,105,.35);color:#ffd2d2;background:rgba(255,75,75,.08)}
.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800;border:1px solid rgba(255,255,255,.14)}
.status-pill.ok{color:#a6f2cf;background:rgba(44,190,125,.12);border-color:rgba(44,190,125,.28)}
.status-pill.bad{color:#ffd2d2;background:rgba(255,75,75,.10);border-color:rgba(255,75,75,.28)}
.topic-chip-row{display:flex;gap:8px;overflow-x:auto;padding:8px 0 10px;scrollbar-width:thin}
.topic-chip{white-space:nowrap;border:1px solid rgba(62,207,142,.28);background:rgba(62,207,142,.08);color:var(--text);border-radius:999px;padding:10px 14px;text-decoration:none;font-size:13px}
.topic-chip b{color:var(--green)}
.topic-mini-manager{margin:18px 0}
.admin-topic-preview{border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:12px}
.form-card small{display:block;margin-top:5px;color:var(--muted);font-size:12px}
@media(max-width:760px){
  .admin-inline-filter{display:grid;grid-template-columns:1fr;gap:9px}
  .admin-inline-filter input,.admin-inline-filter select{max-width:none;width:100%}
  .admin-actions{justify-content:flex-start}
  .admin-actions .mini-btn,.admin-actions button.mini-btn{min-height:34px;padding:8px 11px}
  .compact-head{display:block}
  .compact-head .filters{margin-top:10px}
}

/* Phase 4B: admin users, comments and dashboard cleanup */
.filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr auto auto;gap:12px;align-items:end}
.filter-grid label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:13px}
.filter-grid input,.filter-grid select{width:100%}
.notice-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.notice-row:last-child{border-bottom:0}
.notice-row b{color:var(--text)}
.notice-row p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.35}
.dashboard-stat-grid{grid-template-columns:repeat(6,minmax(0,1fr));margin:16px 0 20px}
.inline-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.inline-actions select,.inline-form select{min-height:34px;border-radius:12px;padding:6px 10px;max-width:180px}
.admin-table small{color:var(--muted)}
@media(max-width:980px){.dashboard-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){
  .filter-grid{grid-template-columns:1fr;gap:10px}
  .dashboard-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .notice-row{align-items:flex-start;flex-direction:column}
  .notice-row .mini-btn{align-self:flex-start}
  .inline-actions,.inline-form{width:100%}
  .inline-actions .mini-btn,.inline-form .mini-btn{flex:1 1 auto;justify-content:center}
  .inline-actions select,.inline-form select{max-width:none;width:100%}
}

/* Phase 5: public archive UI and mobile responsive polish */
.phase5-home,.phase5-books-page,.phase5-table-page,.phase5-community-page,.phase5-book-detail{gap:18px}
.archive-welcome{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:18px;align-items:stretch;border:1px solid rgba(184,64,64,.24);border-radius:28px;background:linear-gradient(135deg,rgba(13,37,26,.92),rgba(27,19,52,.88));box-shadow:var(--shadow);padding:18px;color:var(--text)}
.archive-welcome-copy small,.phase5-section-head small{display:block;color:var(--lavender);font-size:11px;text-transform:uppercase;letter-spacing:.16em;font-weight:900;margin-bottom:8px}
.archive-welcome h1{font-family:var(--serif);font-weight:500;font-size:38px;line-height:1.08;margin:0 0 10px;color:var(--text)}
.archive-welcome p{color:var(--muted);line-height:1.62;margin:0;max-width:760px}
.phase5-home-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:16px 0 14px;max-width:780px}.phase5-home-search input,.phase5-table-filters input,.phase5-table-filters select,.phase5-book-search input{min-height:46px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:var(--text);padding:0 14px;outline:none}.phase5-home-search input::placeholder,.phase5-book-search input::placeholder{color:rgba(249,246,255,.55)}
.quick-actions{display:flex;flex-wrap:wrap;gap:10px}.quick-action{min-height:58px;min-width:145px;border-radius:20px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:var(--text);padding:10px 13px;text-decoration:none;display:flex;flex-direction:column;justify-content:center}.quick-action.primary{background:linear-gradient(135deg,rgba(45,180,125,.92),rgba(31,122,90,.9));color:#041714;border:0}.quick-action.muted{opacity:.72}.quick-action b{font-size:14px}.quick-action span{font-size:12px;color:inherit;opacity:.78;margin-top:2px}
.archive-stats-panel{background:rgba(10,9,18,.56);border:1px solid rgba(255,255,255,.12);border-radius:24px;padding:16px;display:grid;align-content:center;gap:14px}.archive-stats-panel>span{font-size:11px;text-transform:uppercase;letter-spacing:.16em;font-weight:900;color:var(--lavender)}.compact-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.compact-stat-grid div{border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.055);border-radius:18px;padding:12px}.compact-stat-grid b{display:block;font-family:var(--serif);font-size:28px;color:var(--text);line-height:1}.compact-stat-grid small{display:block;color:var(--muted);font-weight:800;margin-top:5px}.archive-stats-panel p{font-size:12px;color:var(--muted)}
.phase5-section-head{padding-top:2px}.phase5-section-head h2{font-size:26px}.phase5-section-head p{max-width:700px}.phase5-audio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.phase5-waez-card{position:relative;grid-template-columns:54px minmax(0,1fr) auto !important;align-items:center;background:linear-gradient(135deg,rgba(11,35,24,.95),rgba(30,26,35,.92));border-color:rgba(184,64,64,.22);color:var(--text);box-shadow:0 18px 46px rgba(0,0,0,.18);padding:14px}.phase5-waez-card:hover{transform:translateY(-2px)}.phase5-card-play{width:50px;height:50px;border-radius:18px;background:linear-gradient(135deg,#2cc58c,#1f7a5a);border:0;display:grid;place-items:center}.phase5-card-play span{width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:12px solid #fff;margin-left:3px}.phase5-card-code{font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:#ff9e9e;font-weight:900;margin-bottom:5px}.phase5-card-main h3{font-family:var(--serif);font-size:24px;font-weight:500;line-height:1.08;margin:0}.phase5-card-main h3 a{color:var(--text);text-decoration:none}.phase5-card-meta{font-size:13px;color:var(--muted);margin:5px 0 0}.phase5-card-sub{font-size:12px;color:rgba(249,246,255,.68);margin-top:5px}.phase5-card-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.phase5-card-chips span{border:1px solid rgba(62,207,142,.26);background:rgba(62,207,142,.08);color:var(--text);border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800}.phase5-card-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.phase5-card-actions form{margin:0}.phase5-card-actions .mini-btn{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);color:var(--text)}.phase5-card-actions .mini-btn.play{background:linear-gradient(135deg,#2cc58c,#1f7a5a);color:#fff}
.phase5-table-filters{display:grid;grid-template-columns:2fr repeat(4,1fr) .8fr auto auto;gap:10px;align-items:end}.phase5-table-filters label{display:flex;flex-direction:column;gap:5px;font-size:11px;text-transform:uppercase;letter-spacing:.10em;color:var(--muted);font-weight:900}.phase5-table-card{border:1px solid rgba(184,64,64,.20);border-radius:24px;background:rgba(10,25,17,.62);overflow:hidden;box-shadow:var(--shadow)}.phase5-waez-table{min-width:920px}.phase5-waez-table thead th{background:rgba(255,255,255,.06);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#ff9e9e}.phase5-waez-table td{vertical-align:middle}.phase5-waez-table td:nth-child(3) b{display:block;color:var(--text);font-size:14px}.phase5-waez-table td:nth-child(3) span{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.phase5-books-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.phase5-book-card{min-width:0;background:linear-gradient(135deg,rgba(11,35,24,.96),rgba(29,25,34,.94));border:1px solid rgba(184,64,64,.22);border-radius:26px;color:var(--text);padding:14px;box-shadow:var(--shadow);display:grid;gap:12px}.phase5-book-cover{min-height:220px;border-radius:20px;background:linear-gradient(145deg,#e9ddc5,#1f7a5a 68%,#152015);border:1px solid rgba(255,255,255,.14);display:grid;place-items:center;text-decoration:none;overflow:hidden;position:relative;color:#fff}.phase5-book-cover img{width:100%;height:100%;object-fit:cover;display:block}.phase5-book-cover span{font-family:var(--serif);font-size:54px;line-height:1}.phase5-book-cover small{position:absolute;left:12px;right:12px;bottom:12px;text-align:center;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:6px 8px;color:#fff;font-size:11px;font-weight:900}.phase5-book-info em{display:block;font-style:normal;color:#ff9e9e;font-size:11px;text-transform:uppercase;letter-spacing:.12em;font-weight:900;margin-bottom:6px}.phase5-book-info b{display:block;font-family:var(--serif);font-size:23px;line-height:1.15;color:var(--text);margin-bottom:5px}.phase5-book-info span{color:var(--muted);font-weight:800}.phase5-book-info p{color:var(--muted);font-size:13px;line-height:1.55;margin-top:8px}.phase5-book-card .book-action-strip{display:flex;flex-wrap:wrap;gap:8px}.phase5-book-card .book-action,.phase5-book-card .book-meta-chip{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:var(--text);border-radius:999px;padding:8px 11px;text-decoration:none;font-size:12px;font-weight:900}.phase5-book-card .book-action.primary{background:linear-gradient(135deg,#2cc58c,#1f7a5a);border:0;color:#fff}.book-detail-welcome{grid-template-columns:260px minmax(0,1fr)}.phase5-book-cover.large{min-height:320px}
.phase5-tabs{display:flex;gap:8px;overflow:auto}.phase5-tabs a{white-space:nowrap;text-decoration:none;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:var(--muted);border-radius:999px;padding:10px 14px;font-weight:900}.phase5-tabs a.active{background:linear-gradient(135deg,#2cc58c,#1f7a5a);color:#fff;border:0}.phase5-post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.phase5-post-card{border:1px solid rgba(184,64,64,.22);background:linear-gradient(135deg,rgba(11,35,24,.95),rgba(30,26,35,.92));border-radius:24px;padding:16px;color:var(--text);display:grid;gap:10px}.post-card-top,.post-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}.post-card-top span{font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:#ff9e9e;font-weight:900}.post-card-top b{border-radius:999px;background:rgba(62,207,142,.10);border:1px solid rgba(62,207,142,.26);padding:6px 9px;font-size:12px}.phase5-post-card h3{font-family:var(--serif);font-size:24px;line-height:1.12;margin:0}.phase5-post-card h3 a{color:var(--text);text-decoration:none}.phase5-post-card p{color:var(--muted);line-height:1.55;margin:0}.post-card-foot span,.post-card-foot small{color:var(--muted);font-size:12px}.phase5-submit-card h2{font-family:var(--serif);font-weight:500;color:var(--text);font-size:27px;margin-bottom:8px}
.empty-state{border:1px dashed rgba(255,255,255,.20);background:rgba(255,255,255,.045);border-radius:24px;padding:22px;color:var(--text)}.empty-state h3{font-family:var(--serif);font-weight:500;font-size:26px;margin-bottom:6px}.empty-state p{color:var(--muted)}.admin-book-cover-mini{width:52px;height:66px;border-radius:12px;overflow:hidden;background:linear-gradient(145deg,#e9ddc5,#1f7a5a);display:grid;place-items:center;color:#fff;font-weight:900}.admin-book-cover-mini img{width:100%;height:100%;object-fit:cover}
html[data-theme="light"] .archive-welcome,html[data-theme="light"] .phase5-waez-card,html[data-theme="light"] .phase5-book-card,html[data-theme="light"] .phase5-post-card,html[data-theme="light"] .phase5-table-card{background:linear-gradient(135deg,#fffdf8,#f3f8ef);color:#152018;border-color:rgba(31,122,90,.16)}html[data-theme="light"] .archive-welcome h1,html[data-theme="light"] .phase5-card-main h3 a,html[data-theme="light"] .phase5-book-info b,html[data-theme="light"] .phase5-post-card h3 a{color:#152018}html[data-theme="light"] .archive-stats-panel,html[data-theme="light"] .quick-action,html[data-theme="light"] .phase5-card-actions .mini-btn,html[data-theme="light"] .phase5-book-card .book-action,html[data-theme="light"] .phase5-book-card .book-meta-chip{background:rgba(31,122,90,.06);border-color:rgba(31,122,90,.14);color:#152018}html[data-theme="light"] .phase5-home-search input,html[data-theme="light"] .phase5-table-filters input,html[data-theme="light"] .phase5-table-filters select,html[data-theme="light"] .phase5-book-search input{background:#fff;color:#152018;border-color:rgba(31,122,90,.18)}
@media(max-width:1180px){.archive-welcome{grid-template-columns:1fr}.phase5-audio-grid,.phase5-post-grid{grid-template-columns:1fr}.phase5-books-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.phase5-table-filters{grid-template-columns:1fr 1fr 1fr}.book-detail-welcome{grid-template-columns:1fr}.phase5-book-cover.large{max-width:280px}}
@media(max-width:760px){.archive-welcome{padding:14px;border-radius:22px}.archive-welcome h1{font-size:30px}.phase5-home-search{grid-template-columns:1fr}.quick-actions{display:grid;grid-template-columns:1fr 1fr}.quick-action{min-width:0}.compact-stat-grid{grid-template-columns:repeat(2,1fr)}.phase5-waez-card{grid-template-columns:48px minmax(0,1fr) !important;gap:10px;padding:13px;border-radius:22px}.phase5-card-actions{grid-column:1/-1;justify-content:flex-start}.phase5-card-main h3{font-size:22px}.phase5-card-chips{overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}.phase5-card-chips span{white-space:nowrap}.phase5-table-filters{grid-template-columns:1fr}.phase5-waez-table{min-width:0;border-collapse:separate;border-spacing:0 10px}.phase5-waez-table thead{display:none}.phase5-waez-table tbody,.phase5-waez-table tr,.phase5-waez-table td{display:block;width:100%}.phase5-waez-table tr{border:1px solid rgba(184,64,64,.22);background:rgba(255,255,255,.05);border-radius:20px;padding:12px;margin-bottom:10px}.phase5-waez-table td{border:0 !important;padding:6px 4px !important;display:flex;justify-content:space-between;gap:12px;text-align:right}.phase5-waez-table td::before{content:attr(data-label);font-size:11px;text-transform:uppercase;letter-spacing:.10em;color:var(--muted);font-weight:900;text-align:left}.phase5-waez-table td[data-label="Title"]{display:block;text-align:left}.phase5-waez-table td[data-label="Title"]::before{display:block;margin-bottom:5px}.phase5-waez-table td[data-label="Actions"]{display:block;text-align:left}.phase5-waez-table td[data-label="Actions"]::before{display:block;margin-bottom:8px}.phase5-waez-table .table-actions{justify-content:flex-start}.phase5-books-grid{grid-template-columns:1fr}.phase5-book-cover{min-height:260px}.phase5-book-search{grid-template-columns:1fr !important}.phase5-tabs{padding-bottom:4px}.phase5-post-grid{grid-template-columns:1fr}.post-card-top,.post-card-foot{align-items:flex-start;flex-direction:column}.section-head.phase5-section-head{gap:8px}.phase5-section-head h2{font-size:24px}.books-grid.phase5-books-grid{display:grid}.phase5-books-preview .phase5-book-cover{min-height:190px}}
@media(max-width:430px){.archive-welcome h1{font-size:27px}.quick-actions{grid-template-columns:1fr}.phase5-book-cover{min-height:220px}.phase5-card-actions .mini-btn{flex:1 1 auto;justify-content:center}.compact-stat-grid b{font-size:24px}}

/* Phase 5B: Forum style, refined audio cards, coloured actions */
.phase6-waez-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,119,113,.20) !important;
  border-left:4px solid #ff7771 !important;
  background:linear-gradient(110deg,rgba(26,40,30,.96),rgba(39,35,32,.94)),radial-gradient(circle at 85% 20%,rgba(255,255,255,.06),transparent 28%) !important;
  border-radius:24px !important;
  box-shadow:0 22px 60px rgba(0,0,0,.28) !important;
  display:grid !important;
  grid-template-columns:76px minmax(0,1fr) 310px !important;
  gap:18px !important;
  align-items:center !important;
  padding:22px !important;
  color:var(--text);
}
.phase6-waez-card:after{content:"";position:absolute;inset:auto 0 0 0;height:1px;background:linear-gradient(90deg,transparent,#ff7771,transparent);opacity:.45}
.phase6-play-main{width:58px;height:58px;border:0;border-radius:20px;background:linear-gradient(135deg,#2ea77b,#21785b);color:#fff;display:grid;place-items:center;box-shadow:0 16px 34px rgba(33,120,91,.30);transition:.18s ease;z-index:2}
.phase6-play-main:hover{transform:translateY(-2px);box-shadow:0 20px 42px rgba(33,120,91,.42)}
.phase6-play-main svg{width:23px;height:23px;fill:#fff;margin-left:3px}
.phase6-card-info{min-width:0;z-index:2}.phase6-card-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.phase6-card-info h3{font-size:18px;line-height:1.2;margin:0}.phase6-card-info h3 a{color:var(--text);text-decoration:none}.phase6-audio-code{color:var(--muted);font-size:13px;font-weight:800}.phase6-listening-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:rgba(33,120,91,.20);border:1px solid rgba(46,167,123,.24);color:#d8fff1;padding:5px 9px;font-size:11px;font-weight:900}.phase6-listening-pill i{width:7px;height:7px;border-radius:50%;background:#56f0b6;box-shadow:0 0 10px #56f0b6}.phase6-description{margin-top:12px;color:var(--muted);font-size:14px;line-height:1.55}.phase6-description b{color:#ff7771}.phase6-mini-stats{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.phase6-mini-stat{min-width:46px;min-height:48px;border-radius:16px;border:1px solid rgba(255,255,255,.17);background:rgba(255,255,255,.045);display:grid;place-items:center;padding:5px 9px;color:var(--text)}.phase6-mini-stat i{display:block;font-style:normal;font-size:16px;line-height:1;text-align:center}.phase6-mini-stat b{display:block;font-size:11px;color:#ff7771;line-height:1;margin-top:3px;text-align:center}.phase6-mini-stat.view b{color:#d0a560}.phase6-mini-stat.like b{color:#9fe7cb}.phase6-mini-stat.save b{color:#ff8fab}.phase6-mini-stat.share b{color:#7da6ff}.phase6-mini-stat.topic b{color:#f1b35b}.phase6-mini-stat.comment b{color:#e8d7ba}.phase6-action-panel{position:relative;z-index:2;display:grid;gap:10px;padding:12px;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.045);border-radius:22px;backdrop-filter:blur(8px)}.phase6-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.phase6-secondary-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}.phase6-action-btn,.phase6-icon-btn{min-height:48px;border-radius:17px;border:1px solid rgba(255,255,255,.17);background:rgba(255,255,255,.06);color:var(--text);display:flex;align-items:center;justify-content:center;gap:9px;font-weight:900;font-size:14px;transition:.18s ease;text-decoration:none}.phase6-action-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}.phase6-action-btn svg path:first-child{fill:currentColor;stroke:none}.phase6-action-btn.primary{border:0;background:linear-gradient(135deg,#2ea77b,#21785b);color:#fff;box-shadow:0 12px 28px rgba(33,120,91,.25)}.phase6-action-btn.topics{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.18)}.phase6-icon-btn{min-height:42px;border-radius:15px;font-size:12px;padding:0 12px}.phase6-icon-btn.open{background:rgba(125,166,255,.13);border-color:rgba(125,166,255,.28);color:#dbe6ff}.phase6-icon-btn.share{background:rgba(208,165,96,.14);border-color:rgba(208,165,96,.28);color:#f4d99d}.phase6-icon-btn.save{background:rgba(255,119,113,.13);border-color:rgba(255,119,113,.28);color:#ffd5d3}.phase6-inline-form{margin:0;display:block}.phase6-inline-form button{width:100%}.phase6-action-btn:hover,.phase6-icon-btn:hover{transform:translateY(-1px);filter:brightness(1.08)}
.mini-btn.play,.btn.btn-green,.quick-action.primary,.book-action.primary{background:linear-gradient(135deg,#2ea77b,#21785b) !important;color:#fff !important;border-color:transparent !important}.mini-btn.suggest-edit-btn{background:rgba(208,165,96,.14) !important;border-color:rgba(208,165,96,.28) !important;color:#f4d99d !important}.mini-btn.icon-only{background:rgba(255,119,113,.13) !important;border-color:rgba(255,119,113,.28) !important;color:#ffd5d3 !important}

.forum-v2-page{gap:16px}.forum-v2-hero{border:1px solid rgba(255,119,113,.20);border-radius:32px;background:linear-gradient(135deg,rgba(24,35,28,.95),rgba(42,34,30,.90));box-shadow:0 22px 60px rgba(0,0,0,.36);padding:24px;display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:center}.forum-v2-eyebrow{display:inline-flex;border:1px solid rgba(255,119,113,.22);background:rgba(255,119,113,.10);border-radius:999px;padding:7px 11px;color:#ff7771;font-size:11px;text-transform:uppercase;letter-spacing:.14em;font-weight:950;margin-bottom:10px}.forum-v2-hero h1{font-family:var(--serif);font-size:42px;line-height:1.05;font-weight:500;margin:0 0 8px}.forum-v2-hero p{color:var(--muted);font-size:15px;line-height:1.65;max-width:820px}.forum-v2-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.forum-v2-btn{min-height:42px;border:1px solid rgba(255,255,255,.13);border-radius:999px;background:rgba(255,255,255,.06);color:var(--text);display:inline-flex;align-items:center;justify-content:center;padding:0 14px;font-weight:900;font-size:13px;gap:7px;text-decoration:none}.forum-v2-btn.green{background:linear-gradient(135deg,#2ea77b,#21785b);color:#fff;border:0}.forum-v2-btn.gold{background:linear-gradient(135deg,#f4d88e,#b8873d);color:#2a1b06;border:0}.forum-v2-btn.muted{opacity:.72}.forum-v2-status-card{border:1px solid rgba(255,255,255,.11);border-radius:24px;background:rgba(255,255,255,.05);padding:16px}.forum-v2-status-card h3{font-size:16px;margin:0 0 12px}.forum-v2-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.forum-v2-stat-grid div{border:1px solid rgba(255,255,255,.11);border-radius:16px;background:rgba(255,255,255,.05);padding:12px}.forum-v2-stat-grid b{display:block;font-size:23px;color:#ff7771}.forum-v2-stat-grid span{display:block;color:var(--muted);font-size:11px;margin-top:3px}.forum-v2-guide{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.forum-v2-guide div{border:1px solid rgba(255,255,255,.11);border-radius:22px;background:rgba(24,35,28,.82);padding:14px}.forum-v2-guide b{display:block;font-size:14px}.forum-v2-guide span{display:block;color:var(--muted);font-size:12px;line-height:1.45;margin-top:5px}.forum-v2-filter{padding:16px;display:grid;gap:14px}.forum-v2-filter-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.forum-v2-filter-top h2{font-size:18px;margin:0}.forum-v2-filter-top span{color:var(--muted);font-size:13px}.forum-v2-filter-grid{display:grid;grid-template-columns:1.5fr 1fr auto auto;gap:10px;align-items:end}.forum-v2-filter-grid label,.forum-v2-submit-form label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.forum-v2-filter-grid input,.forum-v2-filter-grid select,.forum-v2-submit-form input,.forum-v2-submit-form select,.forum-v2-submit-form textarea{border:1px solid rgba(255,255,255,.11);border-radius:15px;background:rgba(255,255,255,.06);color:var(--text);padding:0 12px;outline:none}.forum-v2-filter-grid input,.forum-v2-filter-grid select{height:46px}.forum-v2-submit-form textarea{min-height:140px;padding:12px}.forum-v2-chips{display:flex;gap:8px;flex-wrap:wrap}.forum-v2-chips a{border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.06);border-radius:999px;padding:8px 10px;color:var(--muted);font-size:12px;font-weight:900;text-decoration:none}.forum-v2-chips a.active{background:#21785b;border-color:#21785b;color:#fff}.forum-v2-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px}.forum-v2-post-list{display:grid;gap:12px}.forum-v2-post-card{position:relative;border:1px solid rgba(255,255,255,.11);border-left:4px solid #ff7771;border-radius:24px;background:rgba(24,35,28,.82);box-shadow:0 12px 30px rgba(0,0,0,.12);padding:16px;display:grid;gap:14px}.forum-v2-post-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.forum-v2-post-type{display:inline-flex;border:1px solid rgba(255,119,113,.20);background:rgba(255,119,113,.09);border-radius:999px;padding:7px 10px;color:#ff7771;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.forum-v2-reply-pill{display:inline-flex;min-height:30px;border-radius:999px;background:rgba(46,167,123,.10);border:1px solid rgba(46,167,123,.22);color:#9ef4d5;padding:0 10px;align-items:center;font-size:12px;font-weight:950}.forum-v2-post-card h3{font-size:20px;line-height:1.35;margin:3px 0}.forum-v2-post-card h3 a{color:var(--text);text-decoration:none}.forum-v2-post-meta{color:var(--muted);font-size:12px;display:flex;gap:9px;flex-wrap:wrap}.forum-v2-post-card p{color:var(--muted);font-size:14px;line-height:1.6;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.forum-v2-linked-waez{border:1px solid rgba(255,255,255,.11);border-radius:18px;background:rgba(255,255,255,.05);padding:12px;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;text-decoration:none;color:var(--text)}.forum-v2-linked-waez span{width:42px;height:42px;border-radius:15px;background:linear-gradient(135deg,#d0a560,#21785b);display:grid;place-items:center;color:#fff;font-weight:950}.forum-v2-linked-waez b{font-size:13px}.forum-v2-linked-waez em{font-style:normal;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.06);border-radius:999px;padding:8px 10px;font-size:12px;font-weight:950}.forum-v2-post-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.forum-v2-reactions{display:flex;gap:8px;color:var(--muted);font-size:12px;font-weight:900;flex-wrap:wrap}.forum-v2-reactions span{border:1px solid rgba(255,255,255,.11);border-radius:999px;padding:7px 9px;background:rgba(255,255,255,.04)}.forum-v2-post-actions{display:flex;gap:8px;flex-wrap:wrap}.forum-v2-mini{min-height:36px;border-radius:999px;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.04);padding:0 12px;font-size:12px;font-weight:900;color:var(--text);display:inline-flex;align-items:center;text-decoration:none}.forum-v2-mini.green{background:#21785b;border:0;color:#fff}.forum-v2-mini.gold{background:rgba(208,165,96,.12);color:#d0a560;border-color:rgba(208,165,96,.24)}.forum-v2-submit-panel{position:sticky;top:96px;align-self:start;border:1px solid rgba(255,255,255,.11);border-radius:26px;background:rgba(36,33,29,.86);padding:16px;display:grid;gap:12px}.forum-v2-submit-panel h2{font-family:var(--serif);font-size:24px;font-weight:500;margin:0}.forum-v2-submit-panel p{color:var(--muted);font-size:13px;line-height:1.5}.forum-v2-submit-form{display:grid;gap:12px}
html[data-theme="light"] .phase6-waez-card,html[data-theme="light"] .forum-v2-hero,html[data-theme="light"] .forum-v2-guide div,html[data-theme="light"] .forum-v2-post-card,html[data-theme="light"] .forum-v2-submit-panel{background:linear-gradient(135deg,#fffdf8,#f3f8ef) !important;color:#152018;border-color:rgba(31,122,90,.16) !important}html[data-theme="light"] .phase6-card-info h3 a,html[data-theme="light"] .forum-v2-post-card h3 a{color:#152018}html[data-theme="light"] .phase6-description,html[data-theme="light"] .forum-v2-hero p,html[data-theme="light"] .forum-v2-post-card p,html[data-theme="light"] .forum-v2-post-meta,html[data-theme="light"] .forum-v2-guide span{color:#75695c}html[data-theme="light"] .phase6-mini-stat,html[data-theme="light"] .phase6-action-panel,html[data-theme="light"] .forum-v2-status-card,html[data-theme="light"] .forum-v2-stat-grid div,html[data-theme="light"] .forum-v2-filter-grid input,html[data-theme="light"] .forum-v2-filter-grid select,html[data-theme="light"] .forum-v2-submit-form input,html[data-theme="light"] .forum-v2-submit-form select,html[data-theme="light"] .forum-v2-submit-form textarea{background:rgba(31,122,90,.06);border-color:rgba(31,122,90,.14);color:#152018}
@media(max-width:1180px){.phase6-waez-card{grid-template-columns:64px minmax(0,1fr) !important}.phase6-action-panel{grid-column:1/-1}.forum-v2-hero,.forum-v2-layout{grid-template-columns:1fr}.forum-v2-guide{grid-template-columns:repeat(2,1fr)}.forum-v2-submit-panel{position:relative;top:auto}.forum-v2-filter-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.phase6-waez-card{grid-template-columns:1fr !important;padding:18px !important;border-radius:24px !important}.phase6-play-main{width:54px;height:54px}.phase6-card-title-row{align-items:flex-start}.phase6-card-info h3{font-size:22px;font-family:var(--serif);font-weight:500}.phase6-mini-stats{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.phase6-mini-stat{min-width:48px}.phase6-primary-actions,.phase6-secondary-actions{grid-template-columns:1fr 1fr}.phase6-secondary-actions{grid-template-columns:1fr 1fr 1fr}.forum-v2-hero{grid-template-columns:1fr;padding:18px;border-radius:24px}.forum-v2-hero h1{font-size:30px}.forum-v2-guide{grid-template-columns:1fr}.forum-v2-filter-grid{grid-template-columns:1fr}.forum-v2-post-top,.forum-v2-post-footer{align-items:flex-start;flex-direction:column}.forum-v2-linked-waez{grid-template-columns:auto 1fr}.forum-v2-linked-waez em{grid-column:1/-1;text-align:center}.forum-v2-status-card{display:none}}

/* Phase 5C: forum reference layout, reels player page, mobile nav visibility and themed player badge */
.player-logo-cover{
  background:linear-gradient(145deg, rgba(46,167,123,.98), rgba(21,86,64,.98)) !important;
  color:#fff8e7 !important;
  border:1px solid rgba(208,165,96,.42) !important;
  box-shadow:0 10px 24px rgba(33,120,91,.24), inset 0 1px 0 rgba(255,255,255,.25) !important;
}
.player-logo-cover span{
  color:#fff8e7 !important;
  text-shadow:0 1px 8px rgba(0,0,0,.22) !important;
}
html[data-theme="light"] .player-logo-cover{
  background:linear-gradient(145deg,#fff8e7,#e8d7a8) !important;
  color:#1d5f47 !important;
  border-color:rgba(31,122,90,.28) !important;
}
html[data-theme="light"] .player-logo-cover span{color:#1d5f47 !important;}

@media(max-width:760px){
  body.mobile-player-docked > .mobile-bottom-nav{
    display:grid !important;
    grid-template-columns:repeat(5,1fr) !important;
    background:rgba(7,10,8,.96) !important;
    border-top:1px solid rgba(46,167,123,.24) !important;
    box-shadow:0 -10px 30px rgba(0,0,0,.28) !important;
  }
  body.mobile-player-docked > .mobile-bottom-nav a{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:2px !important;
    color:#f4f5ee !important;
    opacity:1 !important;
    visibility:visible !important;
    font-size:10px !important;
    font-weight:850 !important;
    line-height:1.05 !important;
    min-width:0 !important;
    padding:7px 2px calc(7px + env(safe-area-inset-bottom,0px)) !important;
  }
  body.mobile-player-docked > .mobile-bottom-nav a b{
    display:block !important;
    color:#2ea77b !important;
    font-size:15px !important;
    line-height:1 !important;
    margin:0 0 3px !important;
  }
  body.mobile-player-docked > .mobile-bottom-nav a.active,
  body.mobile-player-docked > .mobile-bottom-nav a:hover{
    color:#fff8e7 !important;
  }
  body.mobile-player-docked > .mobile-bottom-nav a.active b{
    color:#ff7771 !important;
  }
}

/* Better desktop forum look based on the supplied reference, without touching topbar/sidebar. */
.forum-v2-page{gap:18px !important;}
.forum-v2-hero{
  border-radius:30px !important;
  background:
    radial-gradient(circle at 82% 8%,rgba(255,255,255,.07),transparent 25%),
    linear-gradient(135deg,rgba(24,35,28,.96),rgba(36,31,27,.94)) !important;
  border-color:rgba(255,119,113,.20) !important;
  padding:24px !important;
}
.forum-v2-filter.panel{
  border-radius:24px !important;
  background:rgba(24,35,28,.82) !important;
  border:1px solid rgba(255,255,255,.11) !important;
}
.forum-v2-layout{align-items:start !important;}
.forum-v2-post-card{
  border-radius:24px !important;
  border-left:4px solid #ff7771 !important;
  background:rgba(24,35,28,.84) !important;
}
.forum-v2-post-card:nth-child(even){border-left-color:#2ea77b !important;}
.forum-v2-submit-panel{
  border-radius:26px !important;
  background:rgba(36,33,29,.90) !important;
}
html[data-theme="light"] .forum-v2-filter.panel,
html[data-theme="light"] .forum-v2-post-card,
html[data-theme="light"] .forum-v2-submit-panel{
  background:rgba(255,253,248,.92) !important;
}

/* Repaired and colored waez cards */
.phase6-waez-card{
  grid-template-columns:76px minmax(0,1fr) 320px !important;
  gap:18px !important;
  align-items:center !important;
  padding:22px !important;
  border-radius:24px !important;
  border:1px solid rgba(255,119,113,.20) !important;
  border-left:4px solid #ff7771 !important;
  background:linear-gradient(110deg,rgba(26,40,30,.96),rgba(39,35,32,.94)) !important;
  box-shadow:0 20px 54px rgba(0,0,0,.24) !important;
}
.phase6-play-main{background:linear-gradient(135deg,#2ea77b,#21785b) !important;border:0 !important;color:#fff !important;}
.phase6-action-panel{display:grid !important;gap:10px !important;padding:12px !important;border-radius:22px !important;background:rgba(255,255,255,.045) !important;border:1px solid rgba(255,255,255,.12) !important;}
.phase6-primary-actions,.phase6-secondary-actions{display:grid !important;gap:10px !important;}
.phase6-primary-actions{grid-template-columns:1fr 1fr !important;}
.phase6-secondary-actions{grid-template-columns:1fr 1fr 1fr !important;}
.phase6-inline-form{display:contents !important;}
.phase6-action-btn,.phase6-icon-btn{
  min-height:44px !important;
  border-radius:16px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  padding:0 12px !important;
  font-weight:950 !important;
  border:1px solid rgba(255,255,255,.14) !important;
  color:#f5f6ee !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
.phase6-action-btn.primary{background:linear-gradient(135deg,#2ea77b,#21785b) !important;border:0 !important;color:#fff !important;}
.phase6-action-btn.topics{background:rgba(255,255,255,.075) !important;color:#f5f6ee !important;}
.phase6-icon-btn.open{background:linear-gradient(135deg,#476dff,#2447a8) !important;border:0 !important;color:#fff !important;}
.phase6-icon-btn.share{background:linear-gradient(135deg,#f0c774,#b8873d) !important;border:0 !important;color:#241605 !important;}
.phase6-icon-btn.save{background:linear-gradient(135deg,#ff8a83,#d55558) !important;border:0 !important;color:#fff !important;}
.phase6-mini-stats{display:flex !important;gap:8px !important;flex-wrap:wrap !important;}
.phase6-mini-stat{display:grid !important;place-items:center !important;min-width:48px !important;min-height:46px !important;border-radius:16px !important;border:1px solid rgba(255,255,255,.16) !important;background:rgba(255,255,255,.055) !important;}
.phase6-mini-stat i{font-style:normal !important;line-height:1 !important;}
.phase6-mini-stat b{font-size:11px !important;color:#ff7771 !important;}
html[data-theme="light"] .phase6-waez-card{background:linear-gradient(110deg,#fffdf8,#edf7ef) !important;color:#18231c !important;border-color:rgba(31,122,90,.16) !important;}
html[data-theme="light"] .phase6-action-btn,html[data-theme="light"] .phase6-icon-btn{color:#18231c !important;border-color:rgba(31,122,90,.15) !important;}
html[data-theme="light"] .phase6-icon-btn.open,html[data-theme="light"] .phase6-icon-btn.share,html[data-theme="light"] .phase6-icon-btn.save,html[data-theme="light"] .phase6-action-btn.primary{color:#fff !important;}
html[data-theme="light"] .phase6-icon-btn.share{color:#241605 !important;}
@media(max-width:1180px){.phase6-waez-card{grid-template-columns:64px minmax(0,1fr) !important}.phase6-action-panel{grid-column:1/-1 !important;}}
@media(max-width:760px){.phase6-waez-card{grid-template-columns:1fr !important;padding:18px !important}.phase6-primary-actions,.phase6-secondary-actions{grid-template-columns:1fr 1fr !important}.phase6-secondary-actions{grid-template-columns:1fr 1fr 1fr !important}.phase6-mini-stats{overflow-x:auto !important;flex-wrap:nowrap !important;padding-bottom:4px !important}.phase6-play-main{width:54px !important;height:54px !important}.phase6-card-info h3{font-family:var(--serif) !important;font-size:23px !important;font-weight:500 !important}}

/* Instagram style waez player page */
.insta-waez-page{padding:0 !important;overflow:visible !important;}
.insta-reel-shell{
  height:calc(100vh - 92px) !important;
  overflow-y:auto !important;
  scroll-snap-type:y mandatory !important;
  display:grid !important;
  gap:14px !important;
  padding:14px !important;
  scrollbar-width:thin !important;
}
.insta-reel-card{
  position:relative !important;
  min-height:calc(100vh - 128px) !important;
  scroll-snap-align:start !important;
  overflow:hidden !important;
  border-radius:34px !important;
  border:1px solid rgba(255,119,113,.20) !important;
  background:linear-gradient(145deg,#121c16,#241e1a) !important;
  box-shadow:0 26px 70px rgba(0,0,0,.34) !important;
  padding:24px !important;
  display:grid !important;
  grid-template-rows:auto 1fr auto !important;
}
.insta-reel-bg{position:absolute !important;inset:0 !important;background:radial-gradient(circle at 80% 15%,rgba(46,167,123,.25),transparent 28%),radial-gradient(circle at 10% 90%,rgba(255,119,113,.18),transparent 32%),linear-gradient(180deg,rgba(255,255,255,.04),rgba(0,0,0,.20)) !important;pointer-events:none !important;}
.insta-reel-top,.insta-reel-info,.insta-reel-rail,.insta-reel-play{position:relative !important;z-index:2 !important;}
.insta-reel-top{display:flex !important;justify-content:space-between !important;gap:12px !important;align-items:center !important;}
.insta-reel-number{width:56px !important;height:56px !important;border-radius:18px !important;display:grid !important;place-items:center !important;background:linear-gradient(145deg,#fff8e7,#d7bf74) !important;color:#19593f !important;font-family:var(--serif) !important;font-size:22px !important;font-weight:950 !important;box-shadow:0 12px 26px rgba(0,0,0,.25) !important;}
.insta-reel-live{border:1px solid rgba(46,167,123,.25) !important;background:rgba(33,120,91,.18) !important;border-radius:999px !important;color:#d8fff1 !important;padding:7px 10px !important;font-size:12px !important;font-weight:900 !important;display:flex !important;align-items:center !important;gap:6px !important;}
.insta-reel-live i{width:8px !important;height:8px !important;border-radius:99px !important;background:#5cf2b8 !important;box-shadow:0 0 12px #5cf2b8 !important;}
.insta-reel-play{place-self:center !important;width:92px !important;height:92px !important;border-radius:999px !important;border:1px solid rgba(255,255,255,.18) !important;background:rgba(255,255,255,.12) !important;color:#fff !important;font-size:34px !important;backdrop-filter:blur(10px) !important;box-shadow:0 18px 44px rgba(0,0,0,.28) !important;}
.insta-reel-info{max-width:780px !important;align-self:end !important;padding-right:92px !important;}
.insta-reel-kicker{color:#ff7771 !important;text-transform:uppercase !important;letter-spacing:.14em !important;font-size:12px !important;font-weight:950 !important;}
.insta-reel-info h1{font-family:var(--serif) !important;font-size:clamp(36px,6vw,78px) !important;line-height:.96 !important;font-weight:500 !important;margin:10px 0 !important;color:#f3f5ee !important;}
.insta-reel-info p{color:#d2d6ca !important;font-size:15px !important;line-height:1.6 !important;max-width:680px !important;display:-webkit-box !important;-webkit-line-clamp:3 !important;-webkit-box-orient:vertical !important;overflow:hidden !important;}
.insta-reel-meta,.insta-reel-actions-inline{display:flex !important;gap:8px !important;flex-wrap:wrap !important;margin-top:12px !important;}
.insta-reel-meta span,.insta-reel-actions-inline a{border:1px solid rgba(255,255,255,.14) !important;background:rgba(255,255,255,.07) !important;border-radius:999px !important;padding:8px 11px !important;color:#f3f5ee !important;font-size:12px !important;font-weight:900 !important;text-decoration:none !important;}
.insta-reel-actions-inline a:first-child{background:#21785b !important;border-color:#21785b !important;color:#fff !important;}
.insta-reel-rail{position:absolute !important;right:20px !important;bottom:28px !important;display:grid !important;gap:12px !important;}
.insta-reel-rail span{display:grid !important;place-items:center !important;gap:4px !important;color:#fff !important;font-size:12px !important;font-weight:900 !important;}
.insta-reel-rail b{width:48px !important;height:48px !important;border-radius:17px !important;display:grid !important;place-items:center !important;background:rgba(255,255,255,.10) !important;border:1px solid rgba(255,255,255,.15) !important;font-size:18px !important;}
.insta-reel-rail em{font-style:normal !important;color:#e8ebe0 !important;}
.insta-reel-card.is-current-reel{border-color:rgba(46,167,123,.55) !important;box-shadow:0 0 0 2px rgba(46,167,123,.14),0 26px 70px rgba(0,0,0,.34) !important;}
@media(max-width:760px){
  .insta-reel-shell{height:calc(100vh - var(--mobile-player-h,152px) - var(--mobile-nav-h,54px) - 56px) !important;padding:10px !important;gap:10px !important;}
  .insta-reel-card{min-height:calc(100vh - var(--mobile-player-h,152px) - var(--mobile-nav-h,54px) - 76px) !important;border-radius:26px !important;padding:16px !important;}
  .insta-reel-play{width:72px !important;height:72px !important;font-size:28px !important;}
  .insta-reel-info{padding-right:60px !important;}
  .insta-reel-info h1{font-size:42px !important;}
  .insta-reel-info p{font-size:13px !important;-webkit-line-clamp:2 !important;}
  .insta-reel-rail{right:12px !important;bottom:18px !important;gap:8px !important;}
  .insta-reel-rail b{width:40px !important;height:40px !important;border-radius:15px !important;font-size:16px !important;}
  .insta-reel-rail em{font-size:10px !important;}
  .insta-reel-number{width:50px !important;height:50px !important;font-size:20px !important;}
}

/* Phase 5D: working reaction buttons and counts */
.reaction-action-row{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center}
.phase6-icon-btn.like,.reaction-btn.like{background:linear-gradient(135deg,#44213a,#b8506c);color:#fff;border-color:rgba(255,146,169,.32)}
.phase6-icon-btn.save,.reaction-btn.save{background:linear-gradient(135deg,#24392f,#2f8a65);color:#fff;border-color:rgba(105,214,162,.35)}
.phase6-icon-btn.share,.reaction-btn.share{background:linear-gradient(135deg,#3b3020,#b68a42);color:#fff;border-color:rgba(230,190,116,.38)}
.phase6-icon-btn.like.is-active,.reaction-btn.like.is-active{box-shadow:0 0 0 1px rgba(255,154,183,.34),0 12px 28px rgba(184,80,108,.24);filter:saturate(1.12)}
.phase6-icon-btn.save.is-active,.reaction-btn.save.is-active{box-shadow:0 0 0 1px rgba(105,214,162,.42),0 12px 28px rgba(47,138,101,.24);filter:saturate(1.12)}
[data-reaction-form] button:disabled{opacity:.68;cursor:wait;transform:none!important}
.insta-reel-rail form{margin:0;display:block}
.reel-reaction-btn{border:1px solid rgba(255,255,255,.16);background:rgba(20,20,18,.58);color:#fff;border-radius:18px;padding:.55rem .45rem;min-width:62px;display:flex;flex-direction:column;align-items:center;gap:.15rem;backdrop-filter:blur(10px);font:inherit;cursor:pointer;box-shadow:0 10px 28px rgba(0,0,0,.22)}
.reel-reaction-btn b{font-size:1.05rem;line-height:1}.reel-reaction-btn em{font-style:normal;font-weight:800}.reel-reaction-btn small{font-size:.62rem;letter-spacing:.03em;text-transform:uppercase;color:rgba(255,255,255,.74)}
.reel-reaction-btn.like.is-active{background:linear-gradient(135deg,rgba(184,80,108,.92),rgba(86,31,61,.92));border-color:rgba(255,154,183,.42)}
.reel-reaction-btn.save.is-active{background:linear-gradient(135deg,rgba(47,138,101,.92),rgba(26,76,57,.92));border-color:rgba(105,214,162,.42)}
.reel-reaction-btn.share{background:linear-gradient(135deg,rgba(182,138,66,.86),rgba(80,60,30,.82));border-color:rgba(230,190,116,.38)}
.book-cover.has-image{padding:0;overflow:hidden;background:#111}.book-cover.has-image img{width:100%;height:100%;object-fit:cover;display:block}.generated-cover{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;background:linear-gradient(135deg,#123829,#227655)!important;color:#f8f1d9!important}.generated-cover small{font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;opacity:.78}.generated-cover b{font-size:2rem;font-family:Georgia,serif}
@media(max-width:760px){.reaction-action-row{gap:.5rem}.reel-reaction-btn{min-width:52px;padding:.46rem .36rem;border-radius:15px}.reel-reaction-btn small{font-size:.56rem}.phase6-secondary-actions.reaction-action-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.phase6-secondary-actions.reaction-action-row .phase6-inline-form,.phase6-secondary-actions.reaction-action-row a{width:100%}.phase6-secondary-actions.reaction-action-row button,.phase6-secondary-actions.reaction-action-row .phase6-icon-btn{width:100%;justify-content:center}}

/* Phase 5E: Waez Listening Room audio detail redesign */
.waez-room-page{padding-bottom:24px!important;max-width:1500px!important}
.waez-room{display:grid!important;gap:22px!important;color:var(--ink)!important}
.waez-room-hero,.waez-room-player-card,.waez-resume-card,.waez-study-mode-card,.waez-current-chapter-card,.waez-chapter-map,.waez-grouped-timeline,.waez-tool-card{border:1px solid rgba(31,122,90,.20)!important;border-radius:30px!important;background:linear-gradient(135deg,rgba(255,252,243,.94),rgba(239,247,238,.88))!important;box-shadow:0 24px 70px rgba(20,38,28,.10)!important;color:#1e261f!important}
.waez-room-hero{display:grid!important;grid-template-columns:minmax(0,1fr) 360px!important;gap:24px!important;padding:30px!important;align-items:start!important;overflow:hidden!important}
.waez-room-kicker{display:inline-flex!important;align-items:center!important;gap:8px!important;margin-bottom:12px!important;border:1px solid rgba(180,129,50,.22)!important;background:rgba(255,255,255,.62)!important;border-radius:999px!important;padding:9px 14px!important;color:#9b6b28!important;font-size:12px!important;font-weight:950!important;letter-spacing:.18em!important;text-transform:uppercase!important}
.waez-room-hero h1{font-family:var(--serif)!important;font-size:clamp(42px,7vw,82px)!important;line-height:.94!important;font-weight:500!important;margin:0 0 16px!important;color:#201914!important;letter-spacing:-.04em!important}
.waez-room-meta{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin-bottom:18px!important;color:#695f55!important;font-size:14px!important;font-weight:850!important}
.waez-room-meta span{display:inline-flex!important;gap:5px!important;align-items:center!important;border-radius:999px!important;background:rgba(255,255,255,.58)!important;border:1px solid rgba(31,122,90,.14)!important;padding:8px 11px!important}.waez-room-meta b{color:#1e7657!important}
.waez-room-hero-copy p{max-width:930px!important;margin:0!important;color:#5c5853!important;font-size:17px!important;line-height:1.7!important}.waez-room-stats{display:grid!important;gap:14px!important}.waez-room-stats .live-listener-pill{justify-self:end!important;color:#106043!important;background:rgba(31,122,90,.12)!important;border-color:rgba(31,122,90,.25)!important}
.waez-room-stat-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.waez-room-stat-grid div{border:1px solid rgba(31,122,90,.14)!important;border-radius:22px!important;background:rgba(255,255,255,.68)!important;padding:17px!important}.waez-room-stat-grid b{display:block!important;font-family:var(--serif)!important;font-size:30px!important;color:#177252!important;line-height:1!important}.waez-room-stat-grid span{display:block!important;margin-top:7px!important;color:#5f5b55!important;font-size:12px!important;font-weight:850!important}
.waez-room-player-card{padding:26px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:22px!important;align-items:center!important;position:relative!important;overflow:hidden!important}.waez-room-player-card:before{content:""!important;position:absolute!important;inset:0!important;background:radial-gradient(circle at 0% 0%,rgba(31,122,90,.16),transparent 35%),radial-gradient(circle at 100% 25%,rgba(180,129,50,.13),transparent 32%)!important;pointer-events:none!important}.waez-room-player-card>*{position:relative!important;z-index:1!important}
.waez-now-listening{display:grid!important;grid-template-columns:86px minmax(0,1fr)!important;gap:18px!important;align-items:center!important}.waez-number-badge{width:86px!important;height:86px!important;border-radius:30px!important;display:grid!important;place-items:center!important;background:linear-gradient(135deg,#1a7b59,#d6b86f)!important;color:#fffbea!important;font-family:var(--serif)!important;font-size:32px!important;font-weight:950!important;box-shadow:0 18px 40px rgba(31,122,90,.24)!important;border:1px solid rgba(255,255,255,.52)!important}.waez-now-listening span{display:block!important;color:#0b6a4b!important;text-transform:uppercase!important;letter-spacing:.18em!important;font-size:12px!important;font-weight:950!important}.waez-now-listening h2{font-family:var(--serif)!important;margin:5px 0 3px!important;color:#201914!important;font-size:38px!important;font-weight:500!important;line-height:1!important}.waez-now-listening p{margin:0!important;color:#5c5853!important;font-size:14px!important}.waez-player-controls{display:flex!important;align-items:center!important;justify-content:center!important;gap:14px!important}.waez-player-controls .detail-step{width:54px!important;height:54px!important;border-radius:999px!important;border:1px solid rgba(31,122,90,.18)!important;background:rgba(255,255,255,.78)!important;color:#143f31!important;font-size:18px!important;box-shadow:0 10px 22px rgba(20,38,28,.08)!important}.waez-big-play{width:86px!important;height:86px!important;border-radius:999px!important;background:linear-gradient(135deg,#1b8b61,#16704f)!important;color:#fff!important;border:0!important;box-shadow:0 18px 42px rgba(31,122,90,.24)!important}.waez-big-play:before{border-left-color:#fff!important}.waez-big-play.is-paused-icon:before{background:#fff!important;box-shadow:18px 0 0 #fff!important}
.waez-timeline{grid-column:1/-1!important;display:grid!important;gap:10px!important}.waez-timeline-track{position:relative!important;padding:28px 0 18px!important}.waez-timeline-track input.detail-scrub{position:relative!important;width:100%!important;height:14px!important;border-radius:999px!important;accent-color:#1d8b65!important;background:rgba(31,122,90,.16)!important;z-index:3!important}.waez-static-pin{position:absolute!important;top:5px!important;transform:translateX(-50%)!important;width:18px!important;height:18px!important;border-radius:99px!important;border:3px solid rgba(255,255,255,.92)!important;background:#bd9147!important;box-shadow:0 0 0 4px rgba(189,145,71,.18)!important;z-index:4!important;cursor:pointer!important}.waez-time-row{display:grid!important;grid-template-columns:80px minmax(0,1fr) 80px!important;align-items:center!important;color:#5b554d!important;font-weight:900!important}.waez-current-pin-label{text-align:center!important;border:1px solid rgba(180,129,50,.20)!important;border-radius:999px!important;padding:7px 12px!important;color:#a1702b!important;background:rgba(255,255,255,.58)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.waez-quick-chapters{grid-column:1/-1!important;display:flex!important;gap:10px!important;overflow-x:auto!important;padding:2px 0 6px!important;scrollbar-width:thin!important}.waez-quick-chapters .topic-jump-chip{min-width:150px!important;background:rgba(255,255,255,.74)!important;border-color:rgba(31,122,90,.18)!important;color:#201914!important}.waez-quick-chapters .topic-jump-chip b{color:#177252!important}.waez-player-options{grid-column:1/-1!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:12px!important}.waez-speed-pill,.waez-volume-control{display:inline-flex!important;align-items:center!important;gap:9px!important;border-radius:999px!important;border:1px solid rgba(31,122,90,.16)!important;background:rgba(255,255,255,.62)!important;color:#16654a!important;font-weight:950!important;padding:10px 14px!important}.waez-volume-control input{width:130px!important;accent-color:#1d8b65!important}.waez-volume-control .detail-mute{border:0!important;background:transparent!important;color:#6d5638!important;font-weight:950!important}
.waez-room-grid{display:grid!important;grid-template-columns:minmax(0,1fr) 360px!important;gap:22px!important;align-items:start!important}.waez-room-main{display:grid!important;gap:22px!important}.waez-room-mini-grid{display:grid!important;grid-template-columns:1.1fr .9fr!important;gap:18px!important}.waez-resume-card,.waez-study-mode-card,.waez-current-chapter-card,.waez-chapter-map,.waez-grouped-timeline,.waez-tool-card{padding:22px!important}.waez-resume-card{display:grid!important;grid-template-columns:68px minmax(0,1fr) auto!important;gap:18px!important;align-items:center!important}.waez-resume-card:before{content:"↻"!important;width:68px!important;height:68px!important;border-radius:24px!important;display:grid!important;place-items:center!important;background:#1a7b59!important;color:#fff!important;font-size:28px!important}.waez-resume-card span,.waez-current-chapter-card span{color:#0b6a4b!important;text-transform:uppercase!important;letter-spacing:.16em!important;font-size:12px!important;font-weight:950!important}.waez-resume-card h3,.waez-study-mode-card h3,.waez-current-chapter-card h2,.waez-section-head h2,.waez-tool-card h3{font-family:var(--serif)!important;color:#201914!important;font-weight:500!important;margin:0 0 8px!important}.waez-resume-card h3{font-size:30px!important}.waez-resume-card p,.waez-study-mode-card p,.waez-current-chapter-card p,.waez-tool-card p{color:#5c5853!important;line-height:1.58!important;margin:0!important}.waez-mode-toggle{display:flex!important;justify-content:flex-end!important;margin-bottom:14px!important}.waez-mode-toggle button{border:1px solid rgba(31,122,90,.16)!important;background:#fff!important;color:#6d5638!important;font-weight:950!important;padding:10px 18px!important}.waez-mode-toggle button:first-child{border-radius:999px 0 0 999px!important}.waez-mode-toggle button:last-child{border-radius:0 999px 999px 0!important}.waez-mode-toggle .is-active{background:#1a7b59!important;color:#fff!important}.waez-current-chapter-card{display:grid!important;grid-template-columns:minmax(0,1fr) 310px!important;gap:22px!important;align-items:center!important}.waez-current-chapter-card h2{font-size:34px!important}.waez-current-chapter-card small{display:block!important;margin-top:14px!important;color:#8f642b!important}.waez-chapter-actions{display:grid!important;gap:10px!important}.waez-section-head{display:flex!important;justify-content:space-between!important;gap:14px!important;align-items:end!important;margin-bottom:16px!important}.waez-section-head h2{font-size:28px!important}.waez-section-head p{margin:0!important;color:#615b54!important;font-weight:850!important}.waez-chapter-strip{display:flex!important;gap:16px!important;overflow-x:auto!important;padding:2px 0 12px!important;scroll-snap-type:x proximity!important}.waez-chapter-card{min-width:240px!important;text-align:left!important;border:1px solid rgba(31,122,90,.15)!important;border-top:3px solid #bd9147!important;border-radius:22px!important;background:rgba(255,255,255,.72)!important;padding:18px!important;scroll-snap-align:start!important;cursor:pointer!important;color:#201914!important}.waez-chapter-card.is-active{border-top-color:#1a7b59!important;background:linear-gradient(135deg,rgba(236,248,241,.96),rgba(255,255,255,.90))!important}.waez-chapter-card span{display:block!important;color:#177252!important;font-size:25px!important;font-weight:950!important;margin-bottom:8px!important}.waez-chapter-card b{display:block!important;font-size:17px!important;margin-bottom:10px!important}.waez-chapter-card small{display:inline-flex!important;border-radius:999px!important;background:#fff4df!important;color:#a1702b!important;padding:6px 9px!important;font-size:12px!important;font-weight:950!important}.waez-chapter-card em{display:block!important;font-style:normal!important;margin-top:10px!important;color:#5c5853!important;line-height:1.45!important}.waez-chapter-row{display:grid!important;grid-template-columns:110px minmax(0,1fr) 140px!important;gap:22px!important;align-items:center!important;border:1px solid rgba(31,122,90,.13)!important;border-radius:28px!important;background:rgba(255,255,255,.64)!important;margin:14px 0!important;padding:18px!important}.waez-chapter-row.is-active{box-shadow:inset 5px 0 0 #1a7b59!important;background:linear-gradient(135deg,rgba(236,248,241,.88),rgba(255,255,255,.70))!important}.waez-chapter-time{display:grid!important;place-items:center!important;gap:8px!important;position:relative!important}.waez-chapter-time b{width:86px!important;height:86px!important;border-radius:28px!important;display:grid!important;place-items:center!important;background:#1a7b59!important;color:#fff!important;font-size:23px!important}.waez-chapter-time span{color:#fff!important;margin-top:-44px!important;font-size:11px!important}.waez-chapter-time small{border-radius:999px!important;background:#fff4df!important;color:#a1702b!important;padding:6px 9px!important;font-weight:950!important}.waez-chapter-body h3{font-family:var(--serif)!important;font-size:30px!important;line-height:1.1!important;margin:0 0 8px!important;color:#201914!important}.waez-chapter-body p{color:#5c5853!important;margin:0 0 10px!important;line-height:1.58!important}.waez-included-notes{border-left:3px solid rgba(180,129,50,.35)!important;padding-left:12px!important}.waez-included-notes b{color:#a1702b!important}.waez-tag-row{display:flex!important;gap:8px!important;flex-wrap:wrap!important}.waez-tag-row span{border:1px solid rgba(31,122,90,.14)!important;border-radius:999px!important;background:rgba(255,255,255,.70)!important;color:#5f554b!important;padding:7px 10px!important;font-size:12px!important;font-weight:900!important}.waez-tag-row .danger{background:#fff0ed!important;color:#b23d38!important;border-color:rgba(178,61,56,.18)!important}.waez-tag-row .success{background:#eaf7ef!important;color:#116344!important;border-color:rgba(17,99,68,.18)!important}.waez-chapter-row-actions{display:grid!important;gap:9px!important}.waez-tools-panel{display:grid!important;gap:18px!important;position:sticky!important;top:92px!important}.waez-tool-card h3{font-size:25px!important}.waez-tool-card .btn{width:100%!important;justify-content:center!important;margin-top:9px!important}.waez-tool-card.reaction-action-row{display:grid!important;gap:10px!important}.waez-tool-card.reaction-action-row form{display:block!important}.waez-tool-card.reaction-action-row .mini-btn{width:100%!important;justify-content:center!important;min-height:46px!important}.waez-cleanup-stats{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important;margin:12px 0!important}.waez-cleanup-stats span{display:grid!important;border:1px solid rgba(31,122,90,.12)!important;background:rgba(255,255,255,.62)!important;border-radius:16px!important;padding:10px!important;text-align:center!important;color:#5c5853!important;font-size:11px!important}.waez-cleanup-stats b{font-size:22px!important;color:#177252!important}.waez-related-books{display:grid!important;gap:10px!important}.waez-related-book{display:grid!important;grid-template-columns:56px minmax(0,1fr)!important;gap:11px!important;text-decoration:none!important;color:#201914!important;align-items:center!important;border:1px solid rgba(31,122,90,.12)!important;background:rgba(255,255,255,.64)!important;border-radius:18px!important;padding:9px!important}.waez-related-book .book-cover{width:56px!important;height:72px!important;border-radius:12px!important}.waez-related-book strong{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.waez-related-book em{display:block!important;font-style:normal!important;color:#6b6259!important;font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.transcript-card{opacity:.86!important}
html[data-theme="dark"] .waez-room-hero,html[data-theme="dark"] .waez-room-player-card,html[data-theme="dark"] .waez-resume-card,html[data-theme="dark"] .waez-study-mode-card,html[data-theme="dark"] .waez-current-chapter-card,html[data-theme="dark"] .waez-chapter-map,html[data-theme="dark"] .waez-grouped-timeline,html[data-theme="dark"] .waez-tool-card{background:linear-gradient(135deg,rgba(20,30,22,.96),rgba(42,32,29,.92))!important;border-color:rgba(255,119,113,.18)!important;color:#f2f0e7!important;box-shadow:0 24px 70px rgba(0,0,0,.25)!important}html[data-theme="dark"] .waez-room-hero h1,html[data-theme="dark"] .waez-now-listening h2,html[data-theme="dark"] .waez-resume-card h3,html[data-theme="dark"] .waez-study-mode-card h3,html[data-theme="dark"] .waez-current-chapter-card h2,html[data-theme="dark"] .waez-section-head h2,html[data-theme="dark"] .waez-tool-card h3,html[data-theme="dark"] .waez-chapter-body h3{color:#f3f1e8!important}html[data-theme="dark"] .waez-room-hero-copy p,html[data-theme="dark"] .waez-resume-card p,html[data-theme="dark"] .waez-study-mode-card p,html[data-theme="dark"] .waez-current-chapter-card p,html[data-theme="dark"] .waez-tool-card p,html[data-theme="dark"] .waez-section-head p,html[data-theme="dark"] .waez-chapter-body p,html[data-theme="dark"] .waez-chapter-card em{color:#cfcabe!important}html[data-theme="dark"] .waez-room-meta span,html[data-theme="dark"] .waez-room-stat-grid div,html[data-theme="dark"] .waez-chapter-card,html[data-theme="dark"] .waez-chapter-row,html[data-theme="dark"] .waez-related-book,html[data-theme="dark"] .waez-cleanup-stats span{background:rgba(255,255,255,.055)!important;border-color:rgba(255,255,255,.12)!important;color:#f2f0e7!important}html[data-theme="dark"] .waez-player-controls .detail-step,html[data-theme="dark"] .waez-speed-pill,html[data-theme="dark"] .waez-volume-control,html[data-theme="dark"] .waez-current-pin-label{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.13)!important;color:#f2f0e7!important}html[data-theme="dark"] .waez-chapter-card.is-active,html[data-theme="dark"] .waez-chapter-row.is-active{background:linear-gradient(135deg,rgba(22,71,52,.42),rgba(255,255,255,.05))!important}.player-logo-cover{background:linear-gradient(135deg,#174c3a,#2c946d,#d6b86f)!important;border:1px solid rgba(255,255,255,.24)!important;box-shadow:0 14px 30px rgba(20,80,57,.28)!important}.player-logo-cover span{color:#fffbe9!important;text-shadow:0 1px 2px rgba(0,0,0,.25)!important}
@media(max-width:1180px){.waez-room-hero,.waez-room-player-card,.waez-room-grid,.waez-current-chapter-card{grid-template-columns:1fr!important}.waez-tools-panel{position:static!important}.waez-room-mini-grid{grid-template-columns:1fr!important}.waez-room-stats .live-listener-pill{justify-self:start!important}.waez-resume-card{grid-template-columns:68px minmax(0,1fr)!important}.waez-resume-card .btn{grid-column:1/-1!important}}
@media(max-width:760px){.waez-room-page{padding:12px 12px calc(var(--mobile-player-h,152px) + var(--mobile-nav-h,54px) + 26px)!important}.waez-room{gap:14px!important}.waez-room-hero,.waez-room-player-card,.waez-resume-card,.waez-study-mode-card,.waez-current-chapter-card,.waez-chapter-map,.waez-grouped-timeline,.waez-tool-card{border-radius:24px!important;padding:16px!important}.waez-room-hero h1{font-size:44px!important}.waez-room-hero-copy p{font-size:15px!important}.waez-room-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.waez-room-stat-grid div{padding:11px!important;border-radius:17px!important}.waez-room-stat-grid b{font-size:22px!important}.waez-now-listening{grid-template-columns:62px minmax(0,1fr)!important;gap:12px!important}.waez-number-badge{width:62px!important;height:62px!important;border-radius:20px!important;font-size:24px!important}.waez-now-listening h2{font-size:28px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.waez-player-controls{gap:10px!important}.waez-player-controls .detail-step{width:46px!important;height:46px!important}.waez-big-play{width:70px!important;height:70px!important}.waez-time-row{grid-template-columns:58px minmax(0,1fr) 58px!important;font-size:12px!important}.waez-current-pin-label{padding:6px 9px!important}.waez-player-options{justify-content:stretch!important;display:grid!important;grid-template-columns:1fr!important}.waez-volume-control input{width:100%!important}.waez-resume-card{grid-template-columns:1fr!important}.waez-resume-card:before{width:54px!important;height:54px!important;border-radius:18px!important}.waez-current-chapter-card h2{font-size:27px!important}.waez-chapter-actions{grid-template-columns:1fr!important}.waez-section-head{display:block!important}.waez-chapter-card{min-width:210px!important}.waez-chapter-row{grid-template-columns:1fr!important;gap:14px!important;padding:14px!important}.waez-chapter-time{place-items:start!important;grid-template-columns:76px minmax(0,1fr)!important}.waez-chapter-time b{width:76px!important;height:76px!important;border-radius:24px!important;font-size:20px!important}.waez-chapter-time span{margin-top:0!important;color:#5c5853!important;align-self:end!important}.waez-chapter-time small{grid-column:2!important;align-self:start!important}.waez-chapter-body h3{font-size:25px!important}.waez-chapter-row-actions{grid-template-columns:1fr 1fr 1fr!important}.waez-chapter-row-actions .btn{padding-left:8px!important;padding-right:8px!important}.waez-cleanup-stats{grid-template-columns:1fr!important}.waez-room-meta{gap:7px!important}.waez-room-meta span{font-size:12px!important;padding:7px 9px!important}.waez-room-stats .live-listener-pill{font-size:12px!important}.waez-tool-card .form-grid{grid-template-columns:1fr!important}.waez-related-book .book-cover{width:48px!important;height:64px!important}}


/* Phase 5F: Audio detail repair after Waez Listening Room redesign
   Scope: audio detail page only. Fixes horizontal overflow, visible premium player, and broken right-tool overlap. */
.main:has(.waez-room-page){grid-template-columns:280px minmax(0,1fr)!important;overflow:auto!important;align-items:start!important;}
.main:has(.waez-room-page)>.right.suggestion-rail{display:none!important;}
.content.content-wide.waez-room-page,
.waez-room-page{width:100%!important;max-width:1280px!important;margin:0 auto!important;box-sizing:border-box!important;overflow:visible!important;padding-left:18px!important;padding-right:18px!important;}
.waez-room,.waez-room *{box-sizing:border-box!important;}
.waez-room{width:100%!important;max-width:100%!important;overflow:visible!important;}
.waez-room-hero{grid-template-columns:minmax(0,1fr)!important;padding:28px!important;min-height:auto!important;}
.waez-room-stats{display:block!important;}
.waez-room-stats .live-listener-pill{float:right!important;margin:0 0 12px 12px!important;}
.waez-room-stat-grid{clear:both!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important;}
.waez-room-stat-grid div{min-width:0!important;text-align:center!important;padding:14px 10px!important;}
.waez-room-stat-grid b{font-size:24px!important;}
.waez-room-player-card.detail-player{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"now controls" "timeline timeline" "chapters chapters" "options options"!important;align-items:center!important;gap:18px!important;padding:24px!important;min-height:0!important;height:auto!important;opacity:1!important;visibility:visible!important;transform:none!important;overflow:visible!important;background:linear-gradient(135deg,rgba(255,252,243,.97),rgba(239,247,238,.92))!important;border-color:rgba(31,122,90,.22)!important;}
.waez-room-player-card.detail-player::before{display:block!important;}
.waez-now-listening{grid-area:now!important;min-width:0!important;}
.waez-player-controls{grid-area:controls!important;display:flex!important;min-width:210px!important;}
.waez-timeline{grid-area:timeline!important;width:100%!important;display:grid!important;min-width:0!important;}
.waez-quick-chapters{grid-area:chapters!important;width:100%!important;min-width:0!important;}
.waez-player-options{grid-area:options!important;width:100%!important;}
.waez-timeline-track{width:100%!important;min-height:48px!important;display:block!important;position:relative!important;overflow:visible!important;padding:24px 0 18px!important;}
.waez-timeline-track input.detail-scrub{display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;height:16px!important;margin:0!important;appearance:auto!important;-webkit-appearance:auto!important;}
.waez-static-pin,.topic-marker{display:block!important;visibility:visible!important;opacity:1!important;}
.topic-marker-layer{display:block!important;position:absolute!important;left:0!important;right:0!important;top:0!important;height:34px!important;pointer-events:none!important;z-index:8!important;}
.topic-marker-layer .topic-marker{pointer-events:auto!important;position:absolute!important;top:8px!important;transform:translateX(-50%)!important;width:18px!important;height:18px!important;border-radius:999px!important;border:3px solid rgba(255,255,255,.92)!important;background:#bd9147!important;box-shadow:0 0 0 4px rgba(189,145,71,.18)!important;}
.waez-time-row{width:100%!important;}
.waez-room-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(300px,350px)!important;gap:20px!important;align-items:start!important;width:100%!important;max-width:100%!important;overflow:visible!important;}
.waez-room-main,.waez-tools-panel{min-width:0!important;width:100%!important;}
.waez-tools-panel{position:sticky!important;top:92px!important;z-index:1!important;}
.waez-room-mini-grid,.waez-current-chapter-card{max-width:100%!important;overflow:hidden!important;}
.waez-study-mode-card,.waez-resume-card,.waez-current-chapter-card,.waez-chapter-map,.waez-grouped-timeline,.waez-tool-card{max-width:100%!important;}
.waez-current-chapter-card{grid-template-columns:minmax(0,1fr) minmax(240px,310px)!important;}
.waez-chapter-map,.waez-grouped-timeline{overflow:hidden!important;}
.waez-chapter-strip{max-width:100%!important;overflow-x:auto!important;}
.waez-chapter-row{grid-template-columns:110px minmax(0,1fr) 150px!important;}
.waez-chapter-row-actions .btn{min-width:0!important;white-space:nowrap!important;}
html[data-theme="dark"] .waez-room-player-card.detail-player{background:linear-gradient(135deg,rgba(20,30,22,.96),rgba(42,32,29,.92))!important;}
@media(max-width:1180px){
  .main:has(.waez-room-page){grid-template-columns:240px minmax(0,1fr)!important;}
  .waez-room-page{max-width:100%!important;padding-left:14px!important;padding-right:14px!important;}
  .waez-room-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .waez-room-grid{grid-template-columns:1fr!important;}
  .waez-tools-panel{position:static!important;}
  .waez-current-chapter-card{grid-template-columns:1fr!important;}
}
@media(max-width:760px){
  .main:has(.waez-room-page){display:block!important;padding:0!important;overflow:auto!important;}
  .waez-room-page{padding:12px 10px calc(var(--mobile-player-h,152px) + var(--mobile-nav-h,54px) + 24px)!important;max-width:100%!important;overflow-x:hidden!important;}
  .waez-room-hero{padding:16px!important;border-radius:24px!important;}
  .waez-room-hero h1{font-size:42px!important;line-height:1!important;}
  .waez-room-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .waez-room-player-card.detail-player{grid-template-columns:1fr!important;grid-template-areas:"now" "controls" "timeline" "chapters" "options"!important;padding:16px!important;border-radius:24px!important;}
  .waez-player-controls{min-width:0!important;width:100%!important;justify-content:center!important;}
  .waez-now-listening{grid-template-columns:62px minmax(0,1fr)!important;}
  .waez-now-listening h2{font-size:28px!important;}
  .waez-current-pin-label{display:block!important;font-size:11px!important;}
  .waez-quick-chapters .topic-jump-chip{min-width:142px!important;}
  .waez-player-options{justify-content:stretch!important;display:grid!important;grid-template-columns:1fr!important;}
  .waez-volume-control{width:100%!important;}
  .waez-volume-control input{width:100%!important;}
  .waez-chapter-row{grid-template-columns:1fr!important;}
  .waez-chapter-row-actions{grid-template-columns:1fr!important;}
}

/* Phase 5G: Definitive Waez Listening Room repair
   Scope: audio detail page and mobile global player only. This avoids old .detail-player CSS conflicts. */
@media (min-width:761px){
  .app{height:100vh!important;min-height:100vh!important;overflow:hidden!important;}
  .main:has(.waez-room-page){
    display:grid!important;
    grid-template-columns:280px minmax(0,1fr)!important;
    gap:18px!important;
    padding:18px 18px 0!important;
    min-height:0!important;
    height:100%!important;
    overflow:hidden!important;
    align-items:stretch!important;
  }
  .main:has(.waez-room-page) > .sidebar{
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
    position:relative!important;
    align-self:stretch!important;
  }
  .main:has(.waez-room-page) > .sidebar .nav{overflow:auto!important;min-height:0!important;}
  .content.content-wide.waez-room-page{
    height:100%!important;
    min-height:0!important;
    overflow:auto!important;
    overscroll-behavior:contain!important;
    max-width:1280px!important;
    width:100%!important;
    padding:0 18px 34px!important;
    margin:0 auto!important;
  }
}

.waez-room-page .waez-room{display:grid!important;gap:22px!important;width:100%!important;max-width:100%!important;overflow:visible!important;}
.waez-room-page .waez-room-hero{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:24px!important;overflow:visible!important;}

.waez-reference-player{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:
    "now controls"
    "timeline timeline"
    "chapters chapters"
    "options options"!important;
  align-items:center!important;
  gap:18px!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  overflow:visible!important;
  opacity:1!important;
  visibility:visible!important;
  padding:26px!important;
  border:1px solid rgba(31,122,90,.18)!important;
  border-radius:34px!important;
  background:linear-gradient(135deg,rgba(255,253,247,.96),rgba(240,248,240,.92))!important;
  box-shadow:0 24px 65px rgba(38,27,13,.10)!important;
  color:#22180f!important;
}
.waez-reference-player > *{opacity:1!important;visibility:visible!important;min-width:0!important;}
.waez-reference-player .waez-now-listening{grid-area:now!important;display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;gap:18px!important;align-items:center!important;}
.waez-reference-player .waez-number-badge{
  width:88px!important;height:88px!important;border-radius:28px!important;display:grid!important;place-items:center!important;
  background:radial-gradient(circle at 50% 50%,#fffdf7 0 16%,transparent 17%),conic-gradient(from 150deg,#167451,#b9873d,#a75545,#167451)!important;
  color:#b9873d!important;font-family:var(--serif)!important;font-weight:950!important;font-size:26px!important;
  box-shadow:0 15px 32px rgba(22,116,81,.18)!important;border:1px solid rgba(31,122,90,.14)!important;
}
.waez-reference-player .waez-now-listening span{display:block!important;color:#b9873d!important;letter-spacing:.16em!important;text-transform:uppercase!important;font-size:12px!important;font-weight:950!important;margin-bottom:6px!important;}
.waez-reference-player .waez-now-listening h2{font-family:var(--serif)!important;font-size:42px!important;font-weight:500!important;line-height:1!important;color:#1b1813!important;margin:0 0 8px!important;}
.waez-reference-player .waez-now-listening p{margin:0!important;color:#6c6258!important;font-size:14px!important;}
.waez-reference-player .waez-player-controls{grid-area:controls!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:14px!important;min-width:240px!important;}
.waez-reference-player .detail-step,
.waez-reference-player .detail-play,
.waez-reference-player .waez-big-play{
  display:inline-grid!important;place-items:center!important;border-radius:999px!important;cursor:pointer!important;opacity:1!important;visibility:visible!important;
}
.waez-reference-player .detail-step{width:56px!important;height:56px!important;border:1px solid rgba(77,52,27,.14)!important;background:#fffdf7!important;color:#22180f!important;box-shadow:0 10px 22px rgba(38,27,13,.08)!important;}
.waez-reference-player .waez-big-play{width:82px!important;height:82px!important;border:0!important;background:linear-gradient(135deg,#239566,#167451)!important;color:#fff!important;box-shadow:0 18px 36px rgba(22,116,81,.25)!important;}
.waez-reference-player .waez-big-play::before{content:'▶'!important;font-size:30px!important;line-height:1!important;margin-left:4px!important;}
.waez-reference-player.is-playing .waez-big-play::before{content:'Ⅱ'!important;margin-left:0!important;font-size:28px!important;}
.waez-reference-player .detail-prev::before{content:'⏮'!important;font-size:18px!important;}
.waez-reference-player .detail-next::before{content:'⏭'!important;font-size:18px!important;}
.waez-reference-player .waez-timeline{grid-area:timeline!important;display:grid!important;gap:10px!important;width:100%!important;}
.waez-reference-player .waez-timeline-track{position:relative!important;width:100%!important;min-height:46px!important;display:block!important;padding:20px 0 12px!important;overflow:visible!important;}
.waez-reference-player input.detail-scrub{display:block!important;opacity:1!important;visibility:visible!important;width:100%!important;height:18px!important;margin:0!important;-webkit-appearance:none!important;appearance:none!important;background:transparent!important;cursor:pointer!important;position:relative!important;z-index:5!important;}
.waez-reference-player input.detail-scrub::-webkit-slider-runnable-track{height:14px!important;border-radius:999px!important;background:rgba(22,116,81,.12)!important;border:1px solid rgba(22,116,81,.16)!important;box-shadow:inset 0 0 0 999px rgba(255,253,247,.35)!important;}
.waez-reference-player input.detail-scrub::-moz-range-track{height:14px!important;border-radius:999px!important;background:rgba(22,116,81,.12)!important;border:1px solid rgba(22,116,81,.16)!important;}
.waez-reference-player input.detail-scrub::-webkit-slider-thumb{-webkit-appearance:none!important;appearance:none!important;width:26px!important;height:26px!important;margin-top:-7px!important;border-radius:50%!important;background:#fffdf7!important;border:6px solid #167451!important;box-shadow:0 8px 18px rgba(22,116,81,.22)!important;}
.waez-reference-player input.detail-scrub::-moz-range-thumb{width:26px!important;height:26px!important;border-radius:50%!important;background:#fffdf7!important;border:6px solid #167451!important;box-shadow:0 8px 18px rgba(22,116,81,.22)!important;}
.waez-reference-player .topic-marker-layer{display:block!important;position:absolute!important;left:12px!important;right:12px!important;top:10px!important;height:24px!important;z-index:6!important;pointer-events:none!important;}
.waez-reference-player .topic-marker-layer.has-markers::before{content:''!important;position:absolute!important;left:0!important;right:0!important;top:11px!important;height:2px!important;background:rgba(185,135,61,.22)!important;}
.waez-reference-player .topic-marker,
.waez-reference-player .waez-static-pin{display:block!important;visibility:visible!important;opacity:1!important;position:absolute!important;width:16px!important;height:16px!important;border-radius:50%!important;border:3px solid #fffdf7!important;background:#b9873d!important;box-shadow:0 0 0 4px rgba(185,135,61,.16)!important;z-index:7!important;transform:translateX(-50%)!important;top:5px!important;pointer-events:auto!important;}
.waez-reference-player .waez-static-pin{top:7px!important;z-index:4!important;}
.waez-reference-player .waez-time-row{display:grid!important;grid-template-columns:64px minmax(0,1fr) 64px!important;align-items:center!important;gap:10px!important;color:#6c6258!important;font-weight:850!important;font-size:13px!important;}
.waez-reference-player .waez-current-pin-label{justify-self:center!important;max-width:100%!important;border:1px solid rgba(185,135,61,.22)!important;background:rgba(185,135,61,.08)!important;color:#a46f2d!important;border-radius:999px!important;padding:8px 18px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.waez-reference-player .waez-quick-chapters{grid-area:chapters!important;display:flex!important;gap:10px!important;overflow-x:auto!important;padding:2px 0 4px!important;}
.waez-reference-player .topic-jump-chip{min-width:150px!important;border:1px solid rgba(77,52,27,.12)!important;background:rgba(255,253,247,.74)!important;color:#22180f!important;border-radius:18px!important;padding:11px 13px!important;text-align:left!important;box-shadow:none!important;}
.waez-reference-player .topic-jump-chip b{display:block!important;color:#167451!important;font-size:15px!important;margin-bottom:3px!important;}
.waez-reference-player .topic-jump-chip span{display:block!important;color:#6c6258!important;font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.waez-reference-player .waez-player-options{grid-area:options!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;}
.waez-reference-player .waez-speed-pill,.waez-reference-player .waez-volume-control{border:1px solid rgba(31,122,90,.14)!important;background:rgba(236,248,241,.85)!important;color:#167451!important;border-radius:999px!important;padding:10px 16px!important;font-weight:950!important;}
.waez-reference-player .waez-volume-control{display:flex!important;align-items:center!important;gap:10px!important;}
.waez-reference-player .detail-volume{width:120px!important;display:block!important;}
html[data-theme="dark"] .waez-reference-player{background:linear-gradient(135deg,rgba(20,30,22,.96),rgba(42,32,29,.92))!important;color:#f3f1e8!important;border-color:rgba(255,119,113,.18)!important;}
html[data-theme="dark"] .waez-reference-player .waez-now-listening h2{color:#f3f1e8!important;}
html[data-theme="dark"] .waez-reference-player .waez-now-listening p{color:#cfcabe!important;}

@media(max-width:1180px){
  .waez-reference-player{grid-template-columns:1fr!important;grid-template-areas:"now" "controls" "timeline" "chapters" "options"!important;}
  .waez-reference-player .waez-player-controls{justify-content:center!important;min-width:0!important;}
  .waez-reference-player .waez-player-options{justify-content:stretch!important;display:grid!important;grid-template-columns:1fr!important;}
  .waez-reference-player .waez-volume-control{width:100%!important;}
  .waez-reference-player .detail-volume{width:100%!important;}
}
@media(max-width:760px){
  .main:has(.waez-room-page){display:block!important;overflow:auto!important;padding:0!important;}
  .content.content-wide.waez-room-page{height:auto!important;overflow:visible!important;padding:12px 10px calc(var(--mobile-player-h,104px) + var(--mobile-nav-h,58px) + 24px)!important;}
  .waez-reference-player{border-radius:26px!important;padding:16px!important;gap:14px!important;}
  .waez-reference-player .waez-now-listening{grid-template-columns:60px minmax(0,1fr)!important;gap:12px!important;}
  .waez-reference-player .waez-number-badge{width:60px!important;height:60px!important;border-radius:20px!important;font-size:20px!important;}
  .waez-reference-player .waez-now-listening h2{font-size:30px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .waez-reference-player .waez-big-play{width:70px!important;height:70px!important;}
  .waez-reference-player .detail-step{width:48px!important;height:48px!important;}
  .waez-reference-player .waez-time-row{grid-template-columns:54px minmax(0,1fr) 54px!important;font-size:11px!important;}
  .waez-reference-player .waez-current-pin-label{font-size:11px!important;padding:7px 10px!important;}
  .waez-reference-player .topic-jump-chip{min-width:126px!important;}
}

/* Phase 5G: reference-style mobile bottom player */
@media(max-width:760px){
  :root{--mobile-player-h:106px!important;--mobile-nav-h:58px!important;}
  .player[data-global-player-shell]{
    position:fixed!important;left:10px!important;right:10px!important;bottom:calc(var(--mobile-nav-h,58px) + 8px)!important;z-index:1200!important;
    display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:8px 10px!important;align-items:center!important;
    min-height:0!important;max-height:none!important;height:auto!important;padding:10px 12px 9px!important;margin:0!important;overflow:hidden!important;
    border:1px solid rgba(22,116,81,.18)!important;border-radius:24px!important;background:rgba(255,253,247,.96)!important;color:#22180f!important;box-shadow:0 22px 55px rgba(38,27,13,.18)!important;backdrop-filter:blur(18px)!important;
  }
  .player[data-global-player-shell] .now{grid-column:1 / 3!important;grid-row:1!important;display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;}
  .player[data-global-player-shell] .cover{width:52px!important;height:52px!important;min-width:52px!important;border-radius:17px!important;background:radial-gradient(circle at 50% 50%,#fffdf7 0 18%,transparent 19%),conic-gradient(from 160deg,#167451,#b9873d,#a75545,#167451)!important;color:#b9873d!important;box-shadow:0 14px 28px rgba(22,116,81,.18)!important;border:1px solid rgba(22,116,81,.16)!important;}
  .player[data-global-player-shell] .cover span{color:#b9873d!important;font-family:var(--serif)!important;font-weight:950!important;font-size:17px!important;text-shadow:none!important;}
  .player[data-global-player-shell] .now > div:last-child{min-width:0!important;}
  .player[data-global-player-shell] .player-title-link b{display:block!important;color:#22180f!important;font-size:14px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .player[data-global-player-shell] [data-player-subtitle]{display:block!important;color:#786b5d!important;font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin-top:3px!important;}
  .player[data-global-player-shell] .controls{display:contents!important;}
  .player[data-global-player-shell] .control-buttons{grid-column:3!important;grid-row:1!important;display:flex!important;gap:6px!important;align-items:center!important;justify-content:flex-end!important;}
  .player[data-global-player-shell] .control-buttons .circle:not(.play),
  .player[data-global-player-shell] .control-buttons .player-mode{display:none!important;}
  .player[data-global-player-shell] .circle.play{display:inline-grid!important;place-items:center!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;border-radius:18px!important;border:0!important;background:linear-gradient(135deg,#239566,#167451)!important;color:#fff!important;font-size:17px!important;box-shadow:0 14px 28px rgba(22,116,81,.22)!important;}
  .player[data-global-player-shell] .timebar{grid-column:1 / -1!important;grid-row:2!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) 42px!important;gap:8px!important;align-items:center!important;width:100%!important;color:#786b5d!important;font-size:10px!important;font-weight:850!important;}
  .player[data-global-player-shell] .global-scrub{width:100%!important;height:18px!important;min-width:0!important;-webkit-appearance:none!important;appearance:none!important;background:transparent!important;}
  .player[data-global-player-shell] .global-scrub::-webkit-slider-runnable-track{height:5px!important;border-radius:999px!important;background:rgba(22,116,81,.14)!important;}
  .player[data-global-player-shell] .global-scrub::-webkit-slider-thumb{-webkit-appearance:none!important;width:18px!important;height:18px!important;margin-top:-6px!important;border-radius:50%!important;background:#fffdf7!important;border:5px solid #167451!important;box-shadow:0 8px 16px rgba(22,116,81,.20)!important;}
  .player[data-global-player-shell] .global-scrub::-moz-range-track{height:5px!important;border-radius:999px!important;background:rgba(22,116,81,.14)!important;}
  .player[data-global-player-shell] .global-scrub::-moz-range-thumb{width:18px!important;height:18px!important;border-radius:50%!important;background:#fffdf7!important;border:5px solid #167451!important;box-shadow:0 8px 16px rgba(22,116,81,.20)!important;}
  .player[data-global-player-shell] .player-actions{display:none!important;}
  .mobile-bottom-nav{height:var(--mobile-nav-h,58px)!important;z-index:1190!important;background:rgba(255,253,247,.96)!important;border-top:1px solid rgba(77,52,27,.14)!important;}
  .mobile-bottom-nav a{color:#786b5d!important;font-size:10px!important;font-weight:850!important;}
  .mobile-bottom-nav b{color:#167451!important;font-size:16px!important;}
}

/* Phase 5H: hard replacement for Waez Listening Room player and mobile player sheet */
@media(min-width:761px){
  body:has(.waez-room-page){overflow:hidden!important;}
  .app:has(.waez-room-page){height:100vh!important;min-height:0!important;overflow:hidden!important;grid-template-rows:76px minmax(0,1fr) 92px!important;}
  .main:has(.waez-room-page){height:100%!important;min-height:0!important;overflow:hidden!important;align-items:stretch!important;grid-template-columns:280px minmax(0,1fr)!important;}
  .main:has(.waez-room-page) > .sidebar{position:sticky!important;top:0!important;height:100%!important;min-height:0!important;overflow:hidden!important;align-self:stretch!important;}
  .main:has(.waez-room-page) > .sidebar .nav{height:100%!important;overflow:auto!important;}
  .content.waez-room-page{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;}
}

html[data-theme="light"] .topbar .search input,
html[data-theme="light"] .search input[data-search]{background:#fffdf7!important;color:#14251b!important;border-color:rgba(31,122,90,.22)!important;caret-color:#167451!important;}
html[data-theme="light"] .topbar .search input::placeholder,
html[data-theme="light"] .search input[data-search]::placeholder{color:rgba(61,70,62,.62)!important;}
html[data-theme="light"] .topbar .search span{color:#167451!important;}
html[data-theme="light"] .topbar .search .kbd{background:#f7f0e4!important;color:#5f5447!important;border-color:rgba(77,52,27,.15)!important;}

.waez-room-page .wl-player-card,
.waez-room-page .wl-player-card *{box-sizing:border-box!important;}
.waez-room-page .wl-player-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:"now controls" "timeline timeline" "chapters options"!important;
  gap:18px 24px!important;
  align-items:center!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  padding:30px 26px!important;
  border:1px solid rgba(31,122,90,.20)!important;
  border-radius:34px!important;
  background:linear-gradient(135deg,rgba(255,253,247,.98),rgba(239,247,238,.92))!important;
  box-shadow:0 28px 70px rgba(38,27,13,.11)!important;
  color:#201914!important;
  overflow:visible!important;
  opacity:1!important;
  visibility:visible!important;
  position:relative!important;
  isolation:isolate!important;
}
.waez-room-page .wl-player-card::before{content:""!important;position:absolute!important;inset:0!important;border-radius:inherit!important;background:radial-gradient(circle at 0% 0%,rgba(31,122,90,.13),transparent 34%),radial-gradient(circle at 100% 15%,rgba(185,135,61,.15),transparent 30%)!important;z-index:-1!important;pointer-events:none!important;}
html[data-theme="dark"] .waez-room-page .wl-player-card{background:linear-gradient(135deg,rgba(20,30,22,.97),rgba(42,32,29,.94))!important;border-color:rgba(255,119,113,.18)!important;color:#f4f1e8!important;box-shadow:0 28px 80px rgba(0,0,0,.34)!important;}
.waez-room-page .wl-now{grid-area:now!important;display:grid!important;grid-template-columns:86px minmax(0,1fr)!important;gap:18px!important;align-items:center!important;min-width:0!important;opacity:1!important;visibility:visible!important;}
.waez-room-page .wl-disc{width:86px!important;height:86px!important;border-radius:30px!important;display:grid!important;place-items:center!important;background:radial-gradient(circle at 50% 50%,#fffdf7 0 16%,transparent 17%),conic-gradient(from 155deg,#167451,#b9873d,#a75545,#167451)!important;box-shadow:0 16px 34px rgba(22,116,81,.20)!important;border:1px solid rgba(31,122,90,.15)!important;}
.waez-room-page .wl-disc span{font-family:var(--serif)!important;color:#b9873d!important;font-weight:950!important;font-size:26px!important;line-height:1!important;}
.waez-room-page .wl-copy{min-width:0!important;}
.waez-room-page .wl-copy small{display:block!important;color:#b9873d!important;letter-spacing:.16em!important;text-transform:uppercase!important;font-size:12px!important;font-weight:950!important;margin-bottom:6px!important;}
.waez-room-page .wl-copy h2{display:block!important;margin:0 0 8px!important;font-family:var(--serif)!important;font-size:42px!important;line-height:1!important;font-weight:500!important;color:#201914!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.waez-room-page .wl-copy p{display:block!important;margin:0!important;color:#6d6257!important;font-size:14px!important;line-height:1.45!important;}
html[data-theme="dark"] .waez-room-page .wl-copy h2{color:#f4f1e8!important;}
html[data-theme="dark"] .waez-room-page .wl-copy p{color:#cbc5ba!important;}
.waez-room-page .wl-controls{grid-area:controls!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:14px!important;min-width:238px!important;opacity:1!important;visibility:visible!important;}
.waez-room-page .wl-round{display:inline-grid!important;place-items:center!important;width:54px!important;height:54px!important;border-radius:999px!important;border:1px solid rgba(77,52,27,.12)!important;background:rgba(255,253,247,.82)!important;color:#201914!important;font-size:18px!important;font-weight:950!important;box-shadow:0 10px 24px rgba(38,27,13,.08)!important;cursor:pointer!important;opacity:1!important;visibility:visible!important;}
.waez-room-page .wl-play{width:86px!important;height:86px!important;border:0!important;background:linear-gradient(135deg,#239566,#167451)!important;color:#fff!important;box-shadow:0 18px 40px rgba(22,116,81,.25)!important;position:relative!important;}
.waez-room-page .wl-play::before{content:""!important;width:0!important;height:0!important;border-top:15px solid transparent!important;border-bottom:15px solid transparent!important;border-left:22px solid #fff!important;margin-left:5px!important;display:block!important;}
.waez-room-page .wl-play.is-paused-icon::before{content:""!important;width:8px!important;height:30px!important;border:0!important;background:#fff!important;box-shadow:16px 0 0 #fff!important;margin-left:-16px!important;}
html[data-theme="dark"] .waez-room-page .wl-round{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.12)!important;color:#f4f1e8!important;}
.waez-room-page .wl-timeline{grid-area:timeline!important;display:grid!important;gap:8px!important;width:100%!important;min-width:0!important;opacity:1!important;visibility:visible!important;}
.waez-room-page .wl-track-wrap{position:relative!important;display:block!important;width:100%!important;min-height:42px!important;padding:16px 0 8px!important;overflow:visible!important;}
.waez-room-page .wl-scrub{display:block!important;width:100%!important;height:18px!important;margin:0!important;background:transparent!important;-webkit-appearance:none!important;appearance:none!important;outline:none!important;cursor:pointer!important;position:relative!important;z-index:6!important;opacity:1!important;visibility:visible!important;}
.waez-room-page .wl-scrub::-webkit-slider-runnable-track{height:14px!important;border-radius:999px!important;background:rgba(22,116,81,.12)!important;border:1px solid rgba(22,116,81,.16)!important;}
.waez-room-page .wl-scrub::-webkit-slider-thumb{-webkit-appearance:none!important;width:26px!important;height:26px!important;margin-top:-7px!important;border-radius:50%!important;background:#fffdf7!important;border:6px solid #167451!important;box-shadow:0 8px 18px rgba(22,116,81,.22)!important;}
.waez-room-page .wl-scrub::-moz-range-track{height:14px!important;border-radius:999px!important;background:rgba(22,116,81,.12)!important;border:1px solid rgba(22,116,81,.16)!important;}
.waez-room-page .wl-scrub::-moz-range-thumb{width:26px!important;height:26px!important;border-radius:50%!important;background:#fffdf7!important;border:6px solid #167451!important;box-shadow:0 8px 18px rgba(22,116,81,.22)!important;}
.waez-room-page .wl-topic-marker-layer{display:block!important;position:absolute!important;left:13px!important;right:13px!important;top:13px!important;height:24px!important;z-index:8!important;pointer-events:none!important;opacity:1!important;visibility:visible!important;}
.waez-room-page .wl-topic-marker-layer.has-markers::before{content:""!important;position:absolute!important;left:0!important;right:0!important;top:11px!important;height:2px!important;background:rgba(185,135,61,.24)!important;}
.waez-room-page .wl-topic-marker-layer .topic-marker,
.waez-room-page .wl-static-pin{display:block!important;position:absolute!important;top:5px!important;transform:translateX(-50%)!important;width:16px!important;height:16px!important;border-radius:50%!important;border:3px solid #fffdf7!important;background:#b9873d!important;box-shadow:0 0 0 4px rgba(185,135,61,.16)!important;z-index:9!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;}
.waez-room-page .wl-static-pin{top:20px!important;z-index:5!important;}
.waez-room-page .wl-time-row{display:grid!important;grid-template-columns:64px minmax(0,1fr) 64px!important;align-items:center!important;gap:10px!important;color:#6c6258!important;font-size:13px!important;font-weight:850!important;}
.waez-room-page .wl-current-label{justify-self:center!important;max-width:100%!important;border:1px solid rgba(185,135,61,.22)!important;background:rgba(185,135,61,.08)!important;color:#a46f2d!important;border-radius:999px!important;padding:8px 18px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.waez-room-page .wl-chapter-jumps{grid-area:chapters!important;display:flex!important;gap:10px!important;overflow-x:auto!important;min-width:0!important;padding:2px 0 6px!important;}
.waez-room-page .wl-jump{min-width:150px!important;border:1px solid rgba(77,52,27,.12)!important;background:rgba(255,253,247,.75)!important;color:#22180f!important;border-radius:18px!important;padding:11px 13px!important;text-align:left!important;box-shadow:none!important;cursor:pointer!important;}
.waez-room-page .wl-jump b{display:block!important;color:#167451!important;font-size:15px!important;margin-bottom:3px!important;}
.waez-room-page .wl-jump span{display:block!important;color:#6c6258!important;font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
html[data-theme="dark"] .waez-room-page .wl-jump{background:rgba(255,255,255,.07)!important;border-color:rgba(255,255,255,.12)!important;color:#f4f1e8!important;}
.waez-room-page .wl-options{grid-area:options!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;}
.waez-room-page .wl-pill,.waez-room-page .wl-volume{border:1px solid rgba(31,122,90,.14)!important;background:rgba(236,248,241,.88)!important;color:#167451!important;border-radius:999px!important;padding:10px 16px!important;font-weight:950!important;}
.waez-room-page .wl-volume{display:flex!important;align-items:center!important;gap:10px!important;}
.waez-room-page .wl-volume button{border:0!important;background:transparent!important;color:inherit!important;font-weight:950!important;}
.waez-room-page .wl-volume input{display:block!important;width:120px!important;}
@media(max-width:1180px){.waez-room-page .wl-player-card{grid-template-columns:1fr!important;grid-template-areas:"now" "controls" "timeline" "chapters" "options"!important}.waez-room-page .wl-controls{justify-content:center!important;min-width:0!important}.waez-room-page .wl-options{justify-content:stretch!important;display:grid!important;grid-template-columns:1fr!important}.waez-room-page .wl-volume,.waez-room-page .wl-volume input{width:100%!important}}
@media(max-width:760px){.waez-room-page .wl-player-card{padding:16px!important;border-radius:26px!important;gap:14px!important}.waez-room-page .wl-now{grid-template-columns:60px minmax(0,1fr)!important;gap:12px!important}.waez-room-page .wl-disc{width:60px!important;height:60px!important;border-radius:20px!important}.waez-room-page .wl-disc span{font-size:20px!important}.waez-room-page .wl-copy h2{font-size:30px!important}.waez-room-page .wl-play{width:70px!important;height:70px!important}.waez-room-page .wl-round{width:48px!important;height:48px!important}.waez-room-page .wl-time-row{grid-template-columns:54px minmax(0,1fr) 54px!important;font-size:11px!important}.waez-room-page .wl-current-label{font-size:11px!important;padding:7px 10px!important}.waez-room-page .wl-jump{min-width:128px!important}}

@media(max-width:760px){
  :root{--mobile-player-h:108px!important;--mobile-nav-h:58px!important;}
  .player[data-global-player-shell]{position:fixed!important;left:10px!important;right:10px!important;bottom:calc(var(--mobile-nav-h,58px) + 8px)!important;z-index:1200!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:8px 10px!important;align-items:center!important;height:auto!important;max-height:none!important;min-height:0!important;padding:10px 12px 9px!important;border-radius:24px!important;background:rgba(255,253,247,.97)!important;border:1px solid rgba(22,116,81,.18)!important;color:#22180f!important;box-shadow:0 22px 55px rgba(38,27,13,.20)!important;backdrop-filter:blur(18px)!important;overflow:hidden!important;}
  html[data-theme="dark"] .player[data-global-player-shell]{background:linear-gradient(135deg,rgba(20,30,22,.98),rgba(42,32,29,.96))!important;color:#f4f1e8!important;border-color:rgba(255,255,255,.10)!important;}
  .player[data-global-player-shell] .now{grid-column:1 / 3!important;grid-row:1!important;display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;}
  .player[data-global-player-shell] .cover{width:52px!important;height:52px!important;min-width:52px!important;border-radius:17px!important;background:radial-gradient(circle at 50% 50%,#fffdf7 0 18%,transparent 19%),conic-gradient(from 160deg,#167451,#b9873d,#a75545,#167451)!important;box-shadow:0 14px 28px rgba(22,116,81,.18)!important;border:1px solid rgba(22,116,81,.16)!important;}
  .player[data-global-player-shell] .cover span{color:#b9873d!important;font-family:var(--serif)!important;font-weight:950!important;font-size:17px!important;text-shadow:none!important;}
  .player[data-global-player-shell] .now > div:last-child{min-width:0!important;}
  .player[data-global-player-shell] .player-title-link b{display:block!important;color:inherit!important;font-size:14px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .player[data-global-player-shell] [data-player-subtitle]{display:block!important;color:#786b5d!important;font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin-top:3px!important;}
  html[data-theme="dark"] .player[data-global-player-shell] [data-player-subtitle]{color:#cbc5ba!important;}
  .player[data-global-player-shell] .controls{display:contents!important;}
  .player[data-global-player-shell] .control-buttons{grid-column:3!important;grid-row:1!important;display:flex!important;gap:6px!important;align-items:center!important;justify-content:flex-end!important;}
  .player[data-global-player-shell] .control-buttons .circle:not(.play),.player[data-global-player-shell] .control-buttons .player-mode{display:none!important;}
  .player[data-global-player-shell] .circle.play{display:inline-grid!important;place-items:center!important;width:48px!important;height:48px!important;min-width:48px!important;border-radius:18px!important;border:0!important;background:linear-gradient(135deg,#239566,#167451)!important;color:#fff!important;font-size:17px!important;box-shadow:0 14px 28px rgba(22,116,81,.22)!important;}
  .player[data-global-player-shell] .timebar{grid-column:1 / -1!important;grid-row:2!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) 42px!important;gap:8px!important;align-items:center!important;width:100%!important;color:#786b5d!important;font-size:10px!important;font-weight:850!important;}
  .player[data-global-player-shell] .global-scrub{width:100%!important;height:18px!important;min-width:0!important;-webkit-appearance:none!important;appearance:none!important;background:transparent!important;}
  .player[data-global-player-shell] .global-scrub::-webkit-slider-runnable-track{height:5px!important;border-radius:999px!important;background:rgba(22,116,81,.14)!important;}
  .player[data-global-player-shell] .global-scrub::-webkit-slider-thumb{-webkit-appearance:none!important;width:18px!important;height:18px!important;margin-top:-6px!important;border-radius:50%!important;background:#fffdf7!important;border:5px solid #167451!important;box-shadow:0 8px 16px rgba(22,116,81,.20)!important;}
  .player[data-global-player-shell] .global-scrub::-moz-range-track{height:5px!important;border-radius:999px!important;background:rgba(22,116,81,.14)!important;}
  .player[data-global-player-shell] .global-scrub::-moz-range-thumb{width:18px!important;height:18px!important;border-radius:50%!important;background:#fffdf7!important;border:5px solid #167451!important;box-shadow:0 8px 16px rgba(22,116,81,.20)!important;}
  .player[data-global-player-shell] .player-actions{display:none!important;}
  .player[data-global-player-shell].is-expanded{left:0!important;right:0!important;bottom:0!important;border-radius:32px 32px 0 0!important;z-index:1250!important;padding:18px 16px calc(var(--mobile-nav-h,58px) + 18px)!important;grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important;gap:14px!important;}
  .player[data-global-player-shell].is-expanded .now{grid-column:1!important;grid-row:1!important;}
  .player[data-global-player-shell].is-expanded .control-buttons{grid-column:1!important;grid-row:2!important;justify-content:center!important;}
  .player[data-global-player-shell].is-expanded .control-buttons .circle:not(.play),.player[data-global-player-shell].is-expanded .control-buttons .player-mode{display:inline-grid!important;place-items:center!important;width:48px!important;height:48px!important;border-radius:50%!important;background:rgba(255,253,247,.78)!important;color:#22180f!important;border:1px solid rgba(77,52,27,.12)!important;}
  html[data-theme="dark"] .player[data-global-player-shell].is-expanded .control-buttons .circle:not(.play),html[data-theme="dark"] .player[data-global-player-shell].is-expanded .control-buttons .player-mode{background:rgba(255,255,255,.08)!important;color:#f4f1e8!important;border-color:rgba(255,255,255,.12)!important;}
  .player[data-global-player-shell].is-expanded .circle.play{width:72px!important;height:72px!important;border-radius:50%!important;font-size:24px!important;}
  .player[data-global-player-shell].is-expanded .timebar{grid-column:1!important;grid-row:3!important;grid-template-columns:48px minmax(0,1fr) 48px!important;font-size:11px!important;}
}

@media(max-width:760px){
  .player[data-global-player-shell] .player-expand-toggle{display:inline-grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:14px!important;border:1px solid rgba(77,52,27,.12)!important;background:rgba(255,253,247,.82)!important;color:#22180f!important;font-weight:950!important;margin-left:2px!important;}
  html[data-theme="dark"] .player[data-global-player-shell] .player-expand-toggle{background:rgba(255,255,255,.08)!important;color:#f4f1e8!important;border-color:rgba(255,255,255,.12)!important;}
  .player[data-global-player-shell]:not(.is-expanded) .player-expand-toggle{display:inline-grid!important;}
  .player[data-global-player-shell].is-expanded .player-expand-toggle{margin-left:auto!important;}
}
@media(min-width:761px){.player-expand-toggle{display:none!important;}}

/* Phase 5I: hard repair for Waez Listening Room player, forum overflow, notification icon and mobile sheet player */
html, body{max-width:100%;}
.content, .main, .app{scrollbar-width:none;}
.content::-webkit-scrollbar, .main::-webkit-scrollbar, .app::-webkit-scrollbar{width:0;height:0;display:none;}

body .waez-room-page .waez-reference-player,
body .waez-room-page .waez-reference-player *{box-sizing:border-box!important;}
body .waez-room-page .waez-reference-player{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:"now controls" "timeline timeline" "chapters options"!important;
  align-items:center!important;
  gap:18px 26px!important;
  width:100%!important;
  min-height:250px!important;
  height:auto!important;
  padding:30px 28px!important;
  margin:24px 0!important;
  border:1px solid rgba(31,122,90,.20)!important;
  border-radius:34px!important;
  background:linear-gradient(135deg,rgba(255,253,247,.98),rgba(239,247,238,.94))!important;
  color:#22180f!important;
  box-shadow:0 28px 70px rgba(38,27,13,.12)!important;
  overflow:visible!important;
  opacity:1!important;
  visibility:visible!important;
  position:relative!important;
  transform:none!important;
  clip:auto!important;
}
html[data-theme="dark"] body .waez-room-page .waez-reference-player{
  background:linear-gradient(135deg,rgba(20,30,22,.98),rgba(43,34,30,.96))!important;
  color:#f4f1e8!important;
  border-color:rgba(255,119,113,.18)!important;
  box-shadow:0 28px 80px rgba(0,0,0,.34)!important;
}
body .waez-room-page .waez-reference-player > *{display:revert!important;opacity:1!important;visibility:visible!important;min-width:0!important;position:relative!important;z-index:2!important;}
body .waez-room-page .waez-reference-player .waez-now-listening{grid-area:now!important;display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;gap:18px!important;align-items:center!important;}
body .waez-room-page .waez-reference-player .waez-number-badge{width:88px!important;height:88px!important;border-radius:30px!important;display:grid!important;place-items:center!important;background:radial-gradient(circle at 50% 50%,#fffdf7 0 15%,transparent 16%),conic-gradient(from 155deg,#167451,#b9873d,#a75545,#167451)!important;color:#b9873d!important;font-family:var(--serif)!important;font-size:26px!important;font-weight:950!important;box-shadow:0 16px 34px rgba(22,116,81,.20)!important;}
body .waez-room-page .waez-reference-player .waez-now-copy span{display:block!important;color:#b9873d!important;letter-spacing:.16em!important;text-transform:uppercase!important;font-size:12px!important;font-weight:950!important;margin-bottom:6px!important;}
body .waez-room-page .waez-reference-player .waez-now-copy h2{display:block!important;margin:0 0 8px!important;font-family:var(--serif)!important;font-size:42px!important;line-height:1!important;font-weight:500!important;color:inherit!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body .waez-room-page .waez-reference-player .waez-now-copy p{display:block!important;margin:0!important;color:var(--muted)!important;font-size:14px!important;line-height:1.45!important;}
body .waez-room-page .waez-reference-player .waez-player-controls{grid-area:controls!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:14px!important;min-width:240px!important;}
body .waez-room-page .waez-reference-player .detail-step,
body .waez-room-page .waez-reference-player .detail-play{display:inline-grid!important;place-items:center!important;border-radius:999px!important;cursor:pointer!important;opacity:1!important;visibility:visible!important;}
body .waez-room-page .waez-reference-player .detail-step{width:56px!important;height:56px!important;border:1px solid rgba(77,52,27,.14)!important;background:#fffdf7!important;color:#22180f!important;box-shadow:0 10px 22px rgba(38,27,13,.08)!important;}
html[data-theme="dark"] body .waez-room-page .waez-reference-player .detail-step{background:rgba(255,255,255,.08)!important;color:#f4f1e8!important;border-color:rgba(255,255,255,.12)!important;}
body .waez-room-page .waez-reference-player .waez-big-play{width:86px!important;height:86px!important;border:0!important;background:linear-gradient(135deg,#239566,#167451)!important;color:#fff!important;box-shadow:0 18px 36px rgba(22,116,81,.25)!important;}
body .waez-room-page .waez-reference-player .waez-big-play::before{content:'▶'!important;font-size:30px!important;line-height:1!important;margin-left:4px!important;}
body .waez-room-page .waez-reference-player.is-playing .waez-big-play::before,
body .waez-room-page .waez-reference-player .waez-big-play.is-paused-icon::before{content:'Ⅱ'!important;margin-left:0!important;font-size:28px!important;}
body .waez-room-page .waez-reference-player .detail-prev::before{content:'⏮'!important;font-size:18px!important;}
body .waez-room-page .waez-reference-player .detail-next::before{content:'⏭'!important;font-size:18px!important;}
body .waez-room-page .waez-reference-player .waez-timeline{grid-area:timeline!important;display:grid!important;gap:10px!important;width:100%!important;}
body .waez-room-page .waez-reference-player .waez-timeline-track{position:relative!important;display:block!important;width:100%!important;min-height:48px!important;padding:20px 0 12px!important;overflow:visible!important;}
body .waez-room-page .waez-reference-player input.detail-scrub{display:block!important;width:100%!important;height:18px!important;margin:0!important;background:transparent!important;-webkit-appearance:none!important;appearance:none!important;outline:none!important;cursor:pointer!important;position:relative!important;z-index:8!important;opacity:1!important;visibility:visible!important;}
body .waez-room-page .waez-reference-player input.detail-scrub::-webkit-slider-runnable-track{height:14px!important;border-radius:999px!important;background:rgba(22,116,81,.13)!important;border:1px solid rgba(22,116,81,.16)!important;}
body .waez-room-page .waez-reference-player input.detail-scrub::-webkit-slider-thumb{-webkit-appearance:none!important;width:26px!important;height:26px!important;margin-top:-7px!important;border-radius:50%!important;background:#fffdf7!important;border:6px solid #167451!important;box-shadow:0 8px 18px rgba(22,116,81,.22)!important;}
body .waez-room-page .waez-reference-player input.detail-scrub::-moz-range-track{height:14px!important;border-radius:999px!important;background:rgba(22,116,81,.13)!important;border:1px solid rgba(22,116,81,.16)!important;}
body .waez-room-page .waez-reference-player input.detail-scrub::-moz-range-thumb{width:26px!important;height:26px!important;border-radius:50%!important;background:#fffdf7!important;border:6px solid #167451!important;box-shadow:0 8px 18px rgba(22,116,81,.22)!important;}
body .waez-room-page .waez-reference-player .topic-marker-layer{display:block!important;position:absolute!important;left:13px!important;right:13px!important;top:10px!important;height:28px!important;z-index:9!important;pointer-events:none!important;opacity:1!important;visibility:visible!important;}
body .waez-room-page .waez-reference-player .topic-marker-layer.has-markers::before{content:''!important;position:absolute!important;left:0!important;right:0!important;top:12px!important;height:2px!important;background:rgba(185,135,61,.24)!important;}
body .waez-room-page .waez-reference-player .topic-marker,
body .waez-room-page .waez-reference-player .waez-static-pin{display:block!important;position:absolute!important;top:6px!important;transform:translateX(-50%)!important;width:16px!important;height:16px!important;border-radius:50%!important;border:3px solid #fffdf7!important;background:#b9873d!important;box-shadow:0 0 0 4px rgba(185,135,61,.16)!important;z-index:10!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;}
body .waez-room-page .waez-reference-player .waez-static-pin{top:8px!important;z-index:7!important;}
body .waez-room-page .waez-reference-player .waez-time-row{display:grid!important;grid-template-columns:64px minmax(0,1fr) 64px!important;align-items:center!important;gap:10px!important;color:var(--muted)!important;font-weight:850!important;font-size:13px!important;}
body .waez-room-page .waez-reference-player .waez-current-pin-label{justify-self:center!important;max-width:100%!important;border:1px solid rgba(185,135,61,.22)!important;background:rgba(185,135,61,.08)!important;color:#b9873d!important;border-radius:999px!important;padding:8px 18px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body .waez-room-page .waez-reference-player .waez-quick-chapters{grid-area:chapters!important;display:flex!important;gap:10px!important;overflow-x:auto!important;padding:2px 0 4px!important;scrollbar-width:thin!important;}
body .waez-room-page .waez-reference-player .topic-jump-chip{display:block!important;min-width:150px!important;border:1px solid rgba(77,52,27,.12)!important;background:rgba(255,253,247,.74)!important;color:#22180f!important;border-radius:18px!important;padding:11px 13px!important;text-align:left!important;box-shadow:none!important;cursor:pointer!important;}
body .waez-room-page .waez-reference-player .topic-jump-chip b{display:block!important;color:#167451!important;font-size:15px!important;margin-bottom:3px!important;}
body .waez-room-page .waez-reference-player .topic-jump-chip span{display:block!important;color:#786b5d!important;font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body .waez-room-page .waez-reference-player .waez-player-options{grid-area:options!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;}
body .waez-room-page .waez-reference-player .waez-speed-pill,
body .waez-room-page .waez-reference-player .waez-volume-control{display:flex!important;align-items:center!important;gap:10px!important;border:1px solid rgba(31,122,90,.14)!important;background:rgba(236,248,241,.88)!important;color:#167451!important;border-radius:999px!important;padding:10px 16px!important;font-weight:950!important;}
body .waez-room-page .waez-reference-player .waez-volume-control button{border:0!important;background:transparent!important;color:inherit!important;font-weight:950!important;}
body .waez-room-page .waez-reference-player .detail-volume{display:block!important;width:120px!important;}

.admin-notifications,.admin-notify-btn{display:inline-grid!important;place-items:center!important;position:relative!important;overflow:visible!important;}
.admin-notify-btn svg{display:block!important;width:18px!important;height:18px!important;stroke:currentColor!important;fill:none!important;stroke-width:2!important;}
.admin-notify-badge{position:absolute!important;top:-4px!important;right:-4px!important;min-width:17px!important;height:17px!important;border-radius:99px!important;background:#ef5b57!important;color:#fff!important;font-size:10px!important;line-height:17px!important;text-align:center!important;font-weight:950!important;}

.forum-v2-page{overflow-x:hidden!important;max-width:100%!important;}
.forum-v2-layout{grid-template-columns:minmax(0,1fr) minmax(300px,380px)!important;align-items:start!important;max-width:100%!important;}
.forum-v2-post-list,.forum-v2-submit-panel,.forum-v2-post-card,.forum-v2-filter,.forum-v2-hero{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;}
.forum-v2-submit-panel{position:sticky!important;top:86px!important;overflow:hidden!important;}
.forum-v2-submit-form input,.forum-v2-submit-form select,.forum-v2-submit-form textarea,.forum-v2-filter-grid input,.forum-v2-filter-grid select{width:100%!important;max-width:100%!important;color:var(--text)!important;}
.forum-v2-submit-form textarea{resize:vertical!important;overflow:auto!important;}
.forum-v2-linked-waez{grid-template-columns:42px minmax(0,1fr) auto!important;}
.forum-v2-linked-waez b{min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.forum-v2-post-card h3,.forum-v2-post-card p{overflow-wrap:anywhere!important;}

@media(max-width:1180px){
  body .waez-room-page .waez-reference-player{grid-template-columns:1fr!important;grid-template-areas:"now" "controls" "timeline" "chapters" "options"!important;}
  body .waez-room-page .waez-reference-player .waez-player-controls{justify-content:center!important;min-width:0!important;}
  body .waez-room-page .waez-reference-player .waez-player-options{justify-content:stretch!important;display:grid!important;grid-template-columns:1fr!important;}
  body .waez-room-page .waez-reference-player .waez-volume-control,body .waez-room-page .waez-reference-player .detail-volume{width:100%!important;}
  .forum-v2-layout{grid-template-columns:1fr!important;}
  .forum-v2-submit-panel{position:relative!important;top:auto!important;}
}
@media(max-width:760px){
  body .waez-room-page .waez-reference-player{padding:16px!important;border-radius:26px!important;gap:14px!important;min-height:0!important;margin:14px 0!important;}
  body .waez-room-page .waez-reference-player .waez-now-listening{grid-template-columns:60px minmax(0,1fr)!important;gap:12px!important;}
  body .waez-room-page .waez-reference-player .waez-number-badge{width:60px!important;height:60px!important;border-radius:20px!important;font-size:20px!important;}
  body .waez-room-page .waez-reference-player .waez-now-copy h2{font-size:30px!important;}
  body .waez-room-page .waez-reference-player .waez-big-play{width:70px!important;height:70px!important;}
  body .waez-room-page .waez-reference-player .detail-step{width:48px!important;height:48px!important;}
  body .waez-room-page .waez-reference-player .waez-time-row{grid-template-columns:54px minmax(0,1fr) 54px!important;font-size:11px!important;}
  body .waez-room-page .waez-reference-player .waez-current-pin-label{font-size:11px!important;padding:7px 10px!important;}
  body .waez-room-page .waez-reference-player .topic-jump-chip{min-width:128px!important;}
  .forum-v2-filter-grid{grid-template-columns:1fr!important;}
}

@media(max-width:760px){
  :root{--mobile-player-h:108px!important;--mobile-nav-h:58px!important;}
  .player[data-global-player-shell]{position:fixed!important;left:10px!important;right:10px!important;bottom:calc(var(--mobile-nav-h,58px) + 8px)!important;z-index:1200!important;border-radius:24px!important;overflow:hidden!important;background:rgba(255,253,247,.97)!important;color:#22180f!important;border:1px solid rgba(22,116,81,.18)!important;box-shadow:0 22px 55px rgba(38,27,13,.20)!important;backdrop-filter:blur(18px)!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:8px 10px!important;align-items:center!important;padding:10px 12px 9px!important;height:auto!important;min-height:0!important;max-height:none!important;}
  html[data-theme="dark"] .player[data-global-player-shell]{background:linear-gradient(135deg,rgba(20,30,22,.98),rgba(42,32,29,.96))!important;color:#f4f1e8!important;border-color:rgba(255,255,255,.10)!important;}
  .player[data-global-player-shell] .now{grid-column:1 / 3!important;grid-row:1!important;display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;}
  .player[data-global-player-shell] .cover{width:52px!important;height:52px!important;min-width:52px!important;border-radius:17px!important;background:radial-gradient(circle at 50% 50%,#fffdf7 0 18%,transparent 19%),conic-gradient(from 160deg,#167451,#b9873d,#a75545,#167451)!important;color:#b9873d!important;}
  .player[data-global-player-shell] .cover span{color:#b9873d!important;font-family:var(--serif)!important;font-weight:950!important;font-size:17px!important;}
  .player[data-global-player-shell] .now > div:last-child{min-width:0!important;}
  .player[data-global-player-shell] .player-title-link b{display:block!important;color:inherit!important;font-size:14px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .player[data-global-player-shell] [data-player-subtitle]{display:block!important;color:#786b5d!important;font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin-top:3px!important;}
  html[data-theme="dark"] .player[data-global-player-shell] [data-player-subtitle]{color:#cbc5ba!important;}
  .player[data-global-player-shell] .controls{display:contents!important;}
  .player[data-global-player-shell] .control-buttons{grid-column:3!important;grid-row:1!important;display:flex!important;gap:6px!important;align-items:center!important;justify-content:flex-end!important;}
  .player[data-global-player-shell] .control-buttons .circle:not(.play),.player[data-global-player-shell] .control-buttons .player-mode{display:none!important;}
  .player[data-global-player-shell] .circle.play{display:inline-grid!important;place-items:center!important;width:48px!important;height:48px!important;min-width:48px!important;border-radius:18px!important;border:0!important;background:linear-gradient(135deg,#239566,#167451)!important;color:#fff!important;font-size:17px!important;box-shadow:0 14px 28px rgba(22,116,81,.22)!important;}
  .player[data-global-player-shell] .timebar{grid-column:1 / -1!important;grid-row:2!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) 42px!important;gap:8px!important;align-items:center!important;width:100%!important;color:#786b5d!important;font-size:10px!important;font-weight:850!important;}
  .player[data-global-player-shell] .global-scrub{width:100%!important;height:18px!important;min-width:0!important;}
  .player[data-global-player-shell] .player-actions{display:none!important;}
  .player[data-global-player-shell].is-expanded{left:0!important;right:0!important;bottom:0!important;z-index:1250!important;border-radius:32px 32px 0 0!important;padding:10px 16px calc(var(--mobile-nav-h,58px) + 18px)!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto auto auto auto!important;gap:12px!important;max-height:calc(100dvh - 54px)!important;overflow-y:auto!important;background:#fffdf7!important;color:#22180f!important;}
  html[data-theme="dark"] .player[data-global-player-shell].is-expanded{background:linear-gradient(135deg,rgba(20,30,22,.99),rgba(42,32,29,.98))!important;color:#f4f1e8!important;}
  .player[data-global-player-shell].is-expanded::before{content:''!important;width:54px!important;height:5px!important;border-radius:999px!important;background:rgba(34,24,15,.16)!important;justify-self:center!important;grid-row:1!important;}
  .player[data-global-player-shell].is-expanded .now{grid-column:1!important;grid-row:2!important;display:grid!important;grid-template-columns:62px minmax(0,1fr) 38px!important;gap:12px!important;}
  .player[data-global-player-shell].is-expanded .cover{width:62px!important;height:62px!important;border-radius:23px!important;}
  .player[data-global-player-shell].is-expanded .player-title-link b{font-family:var(--serif)!important;font-size:25px!important;font-weight:500!important;}
  .player[data-global-player-shell].is-expanded .player-expand-toggle{width:38px!important;height:38px!important;border-radius:14px!important;margin-left:0!important;}
  .player[data-global-player-shell].is-expanded .control-buttons{grid-column:1!important;grid-row:3!important;justify-content:center!important;gap:12px!important;}
  .player[data-global-player-shell].is-expanded .control-buttons .circle:not(.play),.player[data-global-player-shell].is-expanded .control-buttons .player-mode{display:inline-grid!important;place-items:center!important;width:48px!important;height:48px!important;border-radius:50%!important;background:#fffdf7!important;color:#22180f!important;border:1px solid rgba(77,52,27,.14)!important;}
  html[data-theme="dark"] .player[data-global-player-shell].is-expanded .control-buttons .circle:not(.play),html[data-theme="dark"] .player[data-global-player-shell].is-expanded .control-buttons .player-mode{background:rgba(255,255,255,.08)!important;color:#f4f1e8!important;border-color:rgba(255,255,255,.12)!important;}
  .player[data-global-player-shell].is-expanded .circle.play{width:72px!important;height:72px!important;border-radius:50%!important;font-size:24px!important;}
  .player[data-global-player-shell].is-expanded .timebar{grid-column:1!important;grid-row:4!important;grid-template-columns:48px minmax(0,1fr) 48px!important;font-size:11px!important;margin-top:2px!important;}
  .player[data-global-player-shell].is-expanded .player-actions{grid-column:1!important;grid-row:5!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
  .player[data-global-player-shell].is-expanded .player-actions .btn{min-height:44px!important;border-radius:16px!important;justify-content:center!important;}
  .mobile-bottom-nav{z-index:1190!important;}
}

/* Phase 5J: remove broken inline audio-detail player, keep global bottom player only */
.waez-room-page .waez-reference-player,
.waez-room-page .wl-player-card,
.waez-room-page .waez-player-card,
.waez-room-page .detail-player{
  display:none!important;
}
.waez-room-page{
  overflow-x:hidden!important;
  scrollbar-width:none!important;
}
.waez-room-page::-webkit-scrollbar{display:none!important;}
.content::-webkit-scrollbar,.main::-webkit-scrollbar{width:0!important;height:0!important;display:none!important;}
.content,.main{scrollbar-width:none!important;}

/* Phase 5J: forum rail/form collision repair without removing the forum right panel */
.forum-v2-layout{
  grid-template-columns:minmax(0,1fr) clamp(300px,28vw,390px)!important;
  gap:18px!important;
  overflow:visible!important;
}
.forum-v2-submit-panel{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  position:sticky!important;
  top:88px!important;
  overflow:hidden!important;
}
.forum-v2-submit-panel *,
.forum-v2-post-card *,
.forum-v2-filter *{
  box-sizing:border-box!important;
  min-width:0!important;
}
.forum-v2-submit-form,
.forum-v2-submit-form label{
  width:100%!important;
  max-width:100%!important;
}
.forum-v2-submit-form input,
.forum-v2-submit-form select,
.forum-v2-submit-form textarea,
.forum-v2-filter-grid input,
.forum-v2-filter-grid select{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.forum-v2-submit-form textarea{
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.forum-v2-post-card h3,
.forum-v2-post-card p,
.forum-v2-submit-panel h2,
.forum-v2-submit-panel p{
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
@media(max-width:1180px){
  .forum-v2-layout{grid-template-columns:1fr!important;}
  .forum-v2-submit-panel{position:relative!important;top:auto!important;}
}

/* Phase 5J: notification/theme icon containment */
.btn.btn-icon,
.admin-notify-btn,
.mobile-top-theme{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  line-height:1!important;
  overflow:visible!important;
}
.admin-notify-icon{width:18px!important;height:18px!important;display:block!important;}
.admin-notify-badge{
  position:absolute!important;
  top:-5px!important;
  right:-5px!important;
  min-width:18px!important;
  height:18px!important;
  padding:0 5px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  line-height:1!important;
}

/* Phase 5J: mobile bottom player expanded sheet visible above bottom nav */
@media(max-width:760px){
  :root{--mobile-player-h:108px!important;--mobile-nav-h:58px!important;}
  .player[data-global-player-shell]{
    z-index:1250!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .player[data-global-player-shell].is-expanded{
    left:8px!important;
    right:8px!important;
    bottom:calc(var(--mobile-nav-h,58px) + env(safe-area-inset-bottom,0px) + 8px)!important;
    max-height:calc(100dvh - var(--mobile-header-h,58px) - var(--mobile-nav-h,58px) - 26px)!important;
    overflow-y:auto!important;
    padding:16px 16px 18px!important;
    border-radius:30px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto auto auto!important;
    gap:13px!important;
  }
  .player[data-global-player-shell].is-expanded .now,
  .player[data-global-player-shell].is-expanded .control-buttons,
  .player[data-global-player-shell].is-expanded .timebar,
  .player[data-global-player-shell].is-expanded .player-actions{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
  }
  .player[data-global-player-shell].is-expanded .now{
    grid-template-columns:62px minmax(0,1fr) 40px!important;
    align-items:center!important;
  }
  .player[data-global-player-shell].is-expanded .control-buttons{
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    gap:12px!important;
  }
  .player[data-global-player-shell].is-expanded .control-buttons .circle:not(.play),
  .player[data-global-player-shell].is-expanded .player-mode{
    display:inline-grid!important;
    place-items:center!important;
  }
  .player[data-global-player-shell].is-expanded .timebar{
    grid-template-columns:46px minmax(0,1fr) 46px!important;
    width:100%!important;
  }
  .player[data-global-player-shell].is-expanded .player-actions{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  .mobile-bottom-nav{z-index:1300!important;}
}


/* Phase 5K: Audio detail top player rebuilt, sidebar hidden only on detail page, side rails restored elsewhere */
.main:has(.waez-room-page){grid-template-columns:1fr!important;}
.main:has(.waez-room-page) > .sidebar,
.main:has(.waez-room-page) > .right{display:none!important;}
.waez-room-page{max-width:min(1280px,100%)!important;margin-inline:auto!important;overflow-x:hidden!important;}

.waez-top-player-card{
  display:grid!important;
  gap:18px!important;
  margin:24px 0!important;
  padding:24px!important;
  border-radius:32px!important;
  border:1px solid rgba(31,122,90,.18)!important;
  background:linear-gradient(135deg,rgba(255,253,247,.96),rgba(245,237,224,.92))!important;
  color:#20170f!important;
  box-shadow:0 22px 70px rgba(40,28,14,.10)!important;
  position:relative!important;
  z-index:2!important;
  overflow:hidden!important;
}
html[data-theme="dark"] .waez-top-player-card{
  background:linear-gradient(135deg,rgba(26,32,24,.98),rgba(42,33,28,.96))!important;
  color:#f4f1e8!important;
  border-color:rgba(255,255,255,.10)!important;
  box-shadow:0 24px 74px rgba(0,0,0,.34)!important;
}
.waez-top-player-head{display:grid!important;grid-template-columns:88px minmax(0,1fr) auto!important;align-items:center!important;gap:22px!important;}
.waez-top-player-cover{width:88px!important;height:88px!important;border-radius:28px!important;display:grid!important;place-items:center!important;background:radial-gradient(circle at 50% 45%,#fff9eb 0 24%,transparent 25%),conic-gradient(from 160deg,#167451,#b9873d,#a75545,#167451)!important;box-shadow:0 18px 45px rgba(22,116,81,.18)!important;}
.waez-top-player-cover span{font-family:var(--serif)!important;color:#b9873d!important;font-size:26px!important;font-weight:950!important;line-height:1!important;}
.waez-top-player-copy{min-width:0!important;}
.waez-top-player-copy > span{display:block!important;color:#b9873d!important;text-transform:uppercase!important;letter-spacing:.18em!important;font-size:11px!important;font-weight:950!important;margin-bottom:6px!important;}
.waez-top-player-copy h2{font-family:var(--serif)!important;font-size:42px!important;line-height:1.04!important;font-weight:500!important;margin:0 0 6px!important;color:inherit!important;}
.waez-top-player-copy p{margin:0!important;color:rgba(32,23,15,.66)!important;font-size:14px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
html[data-theme="dark"] .waez-top-player-copy p{color:rgba(244,241,232,.72)!important;}
.waez-top-player-controls{display:flex!important;align-items:center!important;gap:12px!important;}
.waez-round-btn,.waez-main-play{border:1px solid rgba(77,52,27,.14)!important;background:#fffdf7!important;color:#20170f!important;display:grid!important;place-items:center!important;cursor:pointer!important;box-shadow:0 12px 28px rgba(32,23,15,.08)!important;}
html[data-theme="dark"] .waez-round-btn,html[data-theme="dark"] .waez-main-play{background:rgba(255,255,255,.08)!important;color:#f4f1e8!important;border-color:rgba(255,255,255,.14)!important;}
.waez-round-btn{width:54px!important;height:54px!important;border-radius:50%!important;font-size:16px!important;}
.waez-main-play{width:82px!important;height:82px!important;border-radius:50%!important;background:linear-gradient(135deg,#239566,#167451)!important;color:#fff!important;border:0!important;font-size:26px!important;box-shadow:0 18px 45px rgba(22,116,81,.28)!important;}
.waez-top-player-card.is-playing .waez-main-play::before{content:'Ⅱ';font-weight:950;}
.waez-top-player-card.is-playing .waez-main-play{font-size:0!important;}
.waez-top-timeline-wrap{display:grid!important;gap:10px!important;}
.waez-top-time-row{display:flex!important;justify-content:space-between!important;color:rgba(32,23,15,.66)!important;font-size:12px!important;font-weight:900!important;}
html[data-theme="dark"] .waez-top-time-row{color:rgba(244,241,232,.72)!important;}
.waez-top-timeline-shell{position:relative!important;padding:8px 0 16px!important;}
.waez-detail-scrub{width:100%!important;height:20px!important;accent-color:#167451!important;position:relative!important;z-index:6!important;cursor:pointer!important;}
.waez-pin-layer{position:absolute!important;left:8px!important;right:8px!important;top:4px!important;height:30px!important;z-index:7!important;pointer-events:none!important;}
.waez-timeline-pin{position:absolute!important;top:7px!important;transform:translateX(-50%)!important;width:18px!important;height:18px!important;border-radius:50%!important;border:4px solid #fffdf7!important;background:#b9873d!important;box-shadow:0 0 0 4px rgba(185,135,61,.18)!important;pointer-events:auto!important;cursor:pointer!important;padding:0!important;}
html[data-theme="dark"] .waez-timeline-pin{border-color:#1b2119!important;}
.waez-chapter-now{justify-self:center!important;border:1px solid rgba(185,135,61,.24)!important;background:rgba(185,135,61,.10)!important;color:#b9873d!important;border-radius:999px!important;padding:8px 18px!important;font-weight:950!important;font-size:13px!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.waez-top-chapter-strip{display:flex!important;gap:10px!important;overflow-x:auto!important;padding:2px 2px 8px!important;scrollbar-width:thin!important;}
.waez-top-chip{min-width:148px!important;text-align:left!important;border:1px solid rgba(77,52,27,.13)!important;background:rgba(255,253,247,.72)!important;border-radius:18px!important;padding:11px 13px!important;color:#20170f!important;cursor:pointer!important;}
html[data-theme="dark"] .waez-top-chip{background:rgba(255,255,255,.06)!important;color:#f4f1e8!important;border-color:rgba(255,255,255,.12)!important;}
.waez-top-chip b{display:block!important;color:#167451!important;font-size:15px!important;margin-bottom:3px!important;}
.waez-top-chip span{display:block!important;font-size:12px!important;color:rgba(32,23,15,.65)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
html[data-theme="dark"] .waez-top-chip span{color:rgba(244,241,232,.70)!important;}
.waez-top-chip.is-active{border-color:rgba(31,122,90,.32)!important;background:rgba(31,122,90,.10)!important;}
.waez-top-player-foot{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:wrap!important;}
.waez-speed-pill,.waez-volume-pill{display:inline-flex!important;align-items:center!important;gap:10px!important;min-height:42px!important;border-radius:999px!important;border:1px solid rgba(31,122,90,.16)!important;background:rgba(236,248,241,.85)!important;color:#167451!important;font-weight:950!important;padding:8px 14px!important;}
.waez-speed-pill{cursor:default!important;}
.waez-volume-pill button{border:0!important;background:transparent!important;color:inherit!important;font:inherit!important;cursor:pointer!important;}
.waez-volume-pill input{width:130px!important;accent-color:#167451!important;}
html[data-theme="dark"] .waez-speed-pill,html[data-theme="dark"] .waez-volume-pill{background:rgba(31,122,90,.16)!important;border-color:rgba(31,122,90,.24)!important;color:#6ee7b7!important;}

/* Restore right widget rail behavior on forum/admin pages without overflow */
.forum-v2-layout{grid-template-columns:minmax(0,1fr) clamp(300px,28vw,390px)!important;align-items:start!important;}
.forum-v2-submit-panel{position:sticky!important;top:88px!important;max-height:calc(100vh - 108px)!important;overflow:auto!important;}
.right{display:grid;}

/* Mobile bottom player reference-style polish */
@media(max-width:760px){
  .main:has(.waez-room-page){grid-template-columns:1fr!important;}
  .waez-top-player-card{padding:16px!important;border-radius:26px!important;gap:14px!important;margin:16px 0!important;}
  .waez-top-player-head{grid-template-columns:62px minmax(0,1fr)!important;gap:12px!important;}
  .waez-top-player-cover{width:62px!important;height:62px!important;border-radius:22px!important;}
  .waez-top-player-cover span{font-size:20px!important;}
  .waez-top-player-copy h2{font-size:30px!important;}
  .waez-top-player-controls{grid-column:1/-1!important;justify-content:center!important;}
  .waez-round-btn{width:48px!important;height:48px!important;}
  .waez-main-play{width:72px!important;height:72px!important;}
  .waez-chapter-now{font-size:11px!important;padding:7px 10px!important;}
  .waez-top-player-foot{justify-content:stretch!important;}
  .waez-speed-pill,.waez-volume-pill{width:100%!important;justify-content:center!important;}
  .waez-volume-pill input{width:100%!important;}

  .player[data-global-player-shell]{
    left:14px!important;right:14px!important;bottom:calc(var(--mobile-nav-h,58px) + env(safe-area-inset-bottom,0px) + 8px)!important;
    border-radius:24px!important;background:rgba(255,253,247,.98)!important;color:#20170f!important;border:1px solid rgba(31,122,90,.18)!important;
    box-shadow:0 24px 60px rgba(32,23,15,.22)!important;padding:10px 12px!important;overflow:hidden!important;
  }
  .player[data-global-player-shell] .cover{background:radial-gradient(circle at 50% 45%,#fff9eb 0 24%,transparent 25%),conic-gradient(from 160deg,#167451,#b9873d,#a75545,#167451)!important;color:#b9873d!important;}
  .player[data-global-player-shell].is-expanded{left:0!important;right:0!important;bottom:0!important;border-radius:32px 32px 0 0!important;padding:18px 16px calc(var(--mobile-nav-h,58px) + 24px)!important;max-height:calc(100dvh - 44px)!important;overflow:auto!important;}
  .player[data-global-player-shell].is-expanded .now{display:grid!important;grid-template-columns:64px minmax(0,1fr) 42px!important;}
  .player[data-global-player-shell].is-expanded .control-buttons{display:flex!important;justify-content:center!important;gap:14px!important;}
  .player[data-global-player-shell].is-expanded .timebar{display:grid!important;grid-template-columns:48px minmax(0,1fr) 48px!important;}
  .player[data-global-player-shell].is-expanded .global-scrub{height:22px!important;}
}
@media(max-width:1180px){.forum-v2-layout{grid-template-columns:1fr!important}.forum-v2-submit-panel{position:relative!important;top:auto!important;max-height:none!important}}


/* Phase 5L: restore right rail everywhere and repair forum/sidebar stacking */
.main:has(.waez-room-page){
  grid-template-columns:280px minmax(0,1fr) 340px!important;
  overflow:hidden!important;
  align-items:stretch!important;
}
.main:has(.waez-room-page) > .right.suggestion-rail{
  display:flex!important;
  grid-column:auto!important;
}
.main:has(.waez-room-page) > .content.waez-room-page{
  max-width:none!important;
  min-width:0!important;
  overflow:auto!important;
  padding-right:6px!important;
}
.main:has(.waez-room-page) .waez-room-hero,
.main:has(.waez-room-page) .waez-room-grid,
.main:has(.waez-room-page) .waez-room-mini-grid{
  grid-template-columns:1fr!important;
}
.main:has(.waez-room-page) .waez-room-stats,
.main:has(.waez-room-page) .waez-room-tools{
  min-width:0!important;
}

/* Forum keeps the global right rail, so the submit panel becomes an in-page block instead of a second right rail. */
.main:has(.forum-v2-page){
  grid-template-columns:280px minmax(0,1fr) 340px!important;
  overflow:hidden!important;
}
.main:has(.forum-v2-page) > .content.forum-v2-page{
  min-width:0!important;
  overflow:auto!important;
  padding-right:6px!important;
}
.main:has(.forum-v2-page) .forum-v2-layout{
  grid-template-columns:1fr!important;
}
.main:has(.forum-v2-page) .forum-v2-submit-panel{
  position:relative!important;
  top:auto!important;
  max-height:none!important;
  overflow:hidden!important;
}

/* Global right rail: no transparent overlap, no floating cards, no unreadable text. */
.right.suggestion-rail,
.right{
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
  min-width:0!important;
  height:100%!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:0 3px 104px 0!important;
  position:relative!important;
  z-index:2!important;
}
.right .widget{
  display:block!important;
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  isolation:isolate!important;
  background:linear-gradient(180deg,rgba(20,34,25,.98),rgba(20,18,15,.98))!important;
  border:1px solid rgba(255,119,113,.18)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.20)!important;
  backdrop-filter:none!important;
}
html[data-theme="light"] .right .widget{
  background:linear-gradient(135deg,#fffdf8,#eef8ef)!important;
  border-color:rgba(31,122,90,.16)!important;
  box-shadow:0 16px 38px rgba(37,57,40,.10)!important;
}
.right .widget-head{
  min-width:0!important;
  gap:10px!important;
}
.right .widget-head h3{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.right .widget-head-actions{
  flex:0 0 auto!important;
}
.right .widget-body{
  min-width:0!important;
  overflow:hidden!important;
}
.right .suggestion-row,
.right .topic-suggestion,
.right .contributor,
.right .note-card,
.right .ai-card{
  position:relative!important;
  z-index:1!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  background:rgba(255,255,255,.055)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:18px!important;
}
html[data-theme="light"] .right .suggestion-row,
html[data-theme="light"] .right .topic-suggestion,
html[data-theme="light"] .right .contributor,
html[data-theme="light"] .right .note-card,
html[data-theme="light"] .right .ai-card{
  background:rgba(31,122,90,.055)!important;
  border-color:rgba(31,122,90,.12)!important;
}
.right .suggestion-copy,
.right .suggestion-copy b,
.right .suggestion-copy small,
.right .suggestion-copy em,
.right .topic-suggestion b,
.right .topic-suggestion span,
.right .note-card b,
.right .note-card p,
.right .contributor b,
.right .contributor span{
  min-width:0!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}
.right .suggestion-copy b,
.right .topic-suggestion b{
  display:block!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.right .suggestion-copy small,
.right .suggestion-copy em,
.right .topic-suggestion span{
  display:block!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.right .widget .btn,
.right .widget .btn-sm{
  white-space:nowrap!important;
  max-width:100%!important;
  flex-shrink:0!important;
}
.right .suggestion-widget::after{
  display:none!important;
}
.suggestion-widget .suggestion-list,
.suggestion-widget .topic-suggestion-list{
  max-height:360px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:6px!important;
}

@media(max-width:1180px){
  .main:has(.waez-room-page),
  .main:has(.forum-v2-page){
    grid-template-columns:240px minmax(0,1fr)!important;
    overflow:auto!important;
  }
  .main:has(.waez-room-page) > .right.suggestion-rail,
  .main:has(.forum-v2-page) > .right.suggestion-rail{
    grid-column:1/-1!important;
    height:auto!important;
    overflow:visible!important;
    padding-bottom:132px!important;
  }
}
@media(max-width:760px){
  .main:has(.waez-room-page),
  .main:has(.forum-v2-page){
    display:block!important;
    padding:12px!important;
    overflow:auto!important;
  }
  .main:has(.waez-room-page) > .right.suggestion-rail,
  .main:has(.forum-v2-page) > .right.suggestion-rail,
  .right.suggestion-rail,
  .right{
    height:auto!important;
    overflow:visible!important;
    padding-bottom:186px!important;
    margin-top:14px!important;
  }
  .suggestion-widget .suggestion-list,
  .suggestion-widget .topic-suggestion-list{
    max-height:300px!important;
  }
}

/* Phase 5M: final layout containment for audio detail/forum and mobile player sheet */
html, body{overflow:hidden!important;}
.main.page-wrap{min-width:0!important;}
.content{scrollbar-width:none!important;}
.content::-webkit-scrollbar,.right::-webkit-scrollbar,.nav::-webkit-scrollbar{width:0!important;height:0!important;display:none!important;}

/* Keep the three-column app shell predictable. The right rail is present but cannot collide with content. */
@media(min-width:1181px){
  .main:has(.waez-room-page),
  .main:has(.forum-v2-page){
    display:grid!important;
    grid-template-columns:280px minmax(0,1fr) minmax(300px,340px)!important;
    gap:18px!important;
    overflow:hidden!important;
    align-items:stretch!important;
  }
  .main:has(.waez-room-page) > .sidebar,
  .main:has(.forum-v2-page) > .sidebar{grid-column:1!important;min-width:0!important;}
  .main:has(.waez-room-page) > .content,
  .main:has(.forum-v2-page) > .content{grid-column:2!important;min-width:0!important;max-width:100%!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:2px!important;}
  .main:has(.waez-room-page) > .right.suggestion-rail,
  .main:has(.forum-v2-page) > .right.suggestion-rail{grid-column:3!important;min-width:0!important;max-width:340px!important;width:100%!important;overflow-y:auto!important;overflow-x:hidden!important;}
}

/* Audio detail should be rich, but not wider than its column. */
.waez-room-page,
.waez-room,
.waez-room *{box-sizing:border-box!important;}
.waez-room-page{width:100%!important;max-width:100%!important;margin:0!important;overflow-x:hidden!important;}
.waez-room{width:100%!important;max-width:100%!important;overflow-x:hidden!important;}
.waez-room-hero{grid-template-columns:1fr!important;width:100%!important;max-width:100%!important;overflow:hidden!important;}
.waez-room-hero h1{font-size:clamp(42px,5vw,76px)!important;line-height:.98!important;overflow-wrap:anywhere!important;}
.waez-room-meta{display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
.waez-room-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
.waez-top-player-card{width:100%!important;max-width:100%!important;overflow:hidden!important;display:grid!important;visibility:visible!important;opacity:1!important;}
.waez-top-player-card[hidden]{display:grid!important;}
.waez-top-player-head{grid-template-columns:72px minmax(0,1fr) auto!important;}
.waez-top-player-copy h2{font-size:clamp(30px,3.2vw,48px)!important;white-space:normal!important;overflow-wrap:anywhere!important;}
.waez-top-player-copy p{white-space:normal!important;}
.waez-top-player-controls{flex-wrap:nowrap!important;}
.waez-round-btn{width:48px!important;height:48px!important;min-width:48px!important;}
.waez-main-play{width:68px!important;height:68px!important;min-width:68px!important;}
.waez-room-grid{grid-template-columns:1fr!important;width:100%!important;max-width:100%!important;}
.waez-tools-panel{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;width:100%!important;max-width:100%!important;}
.waez-tools-panel .waez-tool-card{min-width:0!important;max-width:100%!important;overflow:hidden!important;}
.waez-grouped-timeline,.waez-current-chapter-card,.waez-chapter-map,.waez-room-mini-grid{width:100%!important;max-width:100%!important;overflow:hidden!important;}
.waez-chapter-row{grid-template-columns:110px minmax(0,1fr) minmax(120px,170px)!important;}

/* Global right rail readable cards, not transparent overlays. */
.right.suggestion-rail{background:transparent!important;isolation:isolate!important;}
.right.suggestion-rail .widget{position:relative!important;background:linear-gradient(180deg,rgba(18,31,22,.98),rgba(21,18,16,.98))!important;border:1px solid rgba(255,119,113,.18)!important;border-radius:26px!important;margin:0!important;overflow:hidden!important;opacity:1!important;}
html[data-theme="light"] .right.suggestion-rail .widget{background:linear-gradient(135deg,#fffdf8,#edf8f1)!important;border-color:rgba(31,122,90,.16)!important;}
.right.suggestion-rail .widget + .widget{margin-top:0!important;}
.right.suggestion-rail .widget-body{display:grid!important;gap:10px!important;}
.right.suggestion-rail .suggestion-row{display:grid!important;grid-template-columns:74px minmax(0,1fr)!important;align-items:center!important;gap:12px!important;min-height:74px!important;padding:10px!important;}
.right.suggestion-rail .suggestion-thumb{width:74px!important;height:52px!important;border-radius:14px!important;}
.right.suggestion-rail .topic-suggestion,.right.suggestion-rail .note-card,.right.suggestion-rail .contributor{padding:12px!important;}
.right.suggestion-rail *{max-width:100%!important;}

/* Forum: keep its own form inside the content column and stop text/input overflow. */
.forum-v2-page,.forum-v2-page *{box-sizing:border-box!important;}
.forum-v2-page{overflow-x:hidden!important;}
.forum-v2-layout{display:grid!important;grid-template-columns:1fr!important;width:100%!important;max-width:100%!important;}
.forum-v2-submit-panel{position:relative!important;top:auto!important;max-height:none!important;overflow:hidden!important;width:100%!important;max-width:100%!important;}
.forum-v2-submit-panel input,.forum-v2-submit-panel select,.forum-v2-submit-panel textarea{width:100%!important;max-width:100%!important;min-width:0!important;}
.forum-v2-card,.forum-v2-post,.forum-v2-submit-panel{overflow:hidden!important;overflow-wrap:anywhere!important;}

/* Mobile bottom player: collapsed mini stays compact, expanded sheet grows upward above nav with visible actions. */
@media(max-width:760px){
  :root{--mobile-nav-h:58px!important;--mobile-player-h:110px!important;}
  .main:has(.waez-room-page),.main:has(.forum-v2-page){display:block!important;overflow:auto!important;padding:12px!important;}
  .main:has(.waez-room-page) > .content,.main:has(.forum-v2-page) > .content{width:100%!important;max-width:100%!important;overflow:visible!important;padding-right:0!important;}
  .main:has(.waez-room-page) > .right.suggestion-rail,.main:has(.forum-v2-page) > .right.suggestion-rail{width:100%!important;max-width:100%!important;margin-top:14px!important;padding-bottom:calc(var(--mobile-player-h,110px) + var(--mobile-nav-h,58px) + 36px)!important;}
  .waez-room-hero h1{font-size:38px!important;}
  .waez-room-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .waez-top-player-head{grid-template-columns:58px minmax(0,1fr)!important;gap:12px!important;}
  .waez-top-player-controls{grid-column:1/-1!important;justify-content:center!important;}
  .waez-tools-panel{grid-template-columns:1fr!important;}
  .waez-chapter-row{grid-template-columns:1fr!important;}

  .player[data-global-player-shell]{
    position:fixed!important;
    left:12px!important;right:12px!important;
    bottom:calc(var(--mobile-nav-h,58px) + env(safe-area-inset-bottom,0px) + 8px)!important;
    z-index:1400!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    gap:8px 10px!important;
    min-height:96px!important;
    max-height:118px!important;
    padding:10px 12px!important;
    border-radius:24px!important;
    overflow:hidden!important;
    background:linear-gradient(135deg,rgba(255,253,247,.98),rgba(244,237,224,.96))!important;
    color:#211810!important;
    border:1px solid rgba(31,122,90,.18)!important;
    box-shadow:0 24px 60px rgba(30,22,12,.24)!important;
  }
  html[data-theme="dark"] .player[data-global-player-shell]{background:linear-gradient(135deg,rgba(18,31,22,.98),rgba(37,30,26,.97))!important;color:#f5f1e8!important;border-color:rgba(255,255,255,.10)!important;}
  .player[data-global-player-shell] .now{grid-column:1!important;grid-row:1!important;display:grid!important;grid-template-columns:54px minmax(0,1fr) 38px!important;align-items:center!important;gap:10px!important;}
  .player[data-global-player-shell] .cover{width:54px!important;height:54px!important;min-width:54px!important;border-radius:18px!important;}
  .player[data-global-player-shell] .controls{display:contents!important;}
  .player[data-global-player-shell] .control-buttons{grid-column:2!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;}
  .player[data-global-player-shell] .control-buttons .circle:not(.play),.player[data-global-player-shell] .control-buttons .player-mode{display:none!important;}
  .player[data-global-player-shell] .circle.play{width:48px!important;height:48px!important;min-width:48px!important;border-radius:18px!important;}
  .player[data-global-player-shell] .timebar{grid-column:1 / -1!important;grid-row:2!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) 42px!important;width:100%!important;align-items:center!important;gap:8px!important;}
  .player[data-global-player-shell] .player-actions{display:none!important;}
  .player[data-global-player-shell] .player-expand-toggle{display:inline-grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:14px!important;}

  .player[data-global-player-shell].is-expanded{
    left:10px!important;right:10px!important;
    bottom:calc(var(--mobile-nav-h,58px) + env(safe-area-inset-bottom,0px) + 8px)!important;
    top:auto!important;
    z-index:1450!important;
    max-height:calc(100dvh - var(--mobile-header-h,62px) - var(--mobile-nav-h,58px) - 24px)!important;
    min-height:420px!important;
    overflow-y:auto!important;
    padding:18px 16px!important;
    border-radius:32px!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto auto auto!important;
    gap:14px!important;
  }
  .player[data-global-player-shell].is-expanded::before{content:''!important;width:54px!important;height:5px!important;border-radius:999px!important;background:rgba(127,106,76,.30)!important;justify-self:center!important;display:block!important;}
  .player[data-global-player-shell].is-expanded .now{grid-column:1!important;grid-row:1!important;display:grid!important;grid-template-columns:64px minmax(0,1fr) 40px!important;gap:12px!important;align-items:center!important;}
  .player[data-global-player-shell].is-expanded .cover{width:64px!important;height:64px!important;border-radius:22px!important;}
  .player[data-global-player-shell].is-expanded .player-title-link b{font-family:var(--serif)!important;font-size:24px!important;line-height:1.1!important;}
  .player[data-global-player-shell].is-expanded [data-player-subtitle]{font-size:12px!important;white-space:normal!important;}
  .player[data-global-player-shell].is-expanded .control-buttons{grid-column:1!important;grid-row:2!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:14px!important;}
  .player[data-global-player-shell].is-expanded .control-buttons .circle:not(.play),.player[data-global-player-shell].is-expanded .player-mode{display:inline-grid!important;width:50px!important;height:50px!important;border-radius:50%!important;place-items:center!important;}
  .player[data-global-player-shell].is-expanded .circle.play{width:76px!important;height:76px!important;border-radius:50%!important;font-size:24px!important;}
  .player[data-global-player-shell].is-expanded .timebar{grid-column:1!important;grid-row:3!important;display:grid!important;grid-template-columns:48px minmax(0,1fr) 48px!important;gap:9px!important;}
  .player[data-global-player-shell].is-expanded .player-actions{grid-column:1!important;grid-row:4!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;visibility:visible!important;opacity:1!important;}
  .player[data-global-player-shell].is-expanded .player-actions .btn{display:flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important;border-radius:16px!important;}
  .mobile-bottom-nav{z-index:1300!important;}
}

/* Header icon containment */
.top-actions .btn-icon,.brand-row .btn-icon,.mobile-top-theme,.admin-notify-btn{overflow:hidden!important;border-radius:16px!important;}
.top-actions .btn-icon svg,.brand-row .btn-icon svg,.mobile-top-theme svg,.admin-notify-btn svg{width:18px!important;height:18px!important;display:block!important;stroke:currentColor!important;fill:none!important;}

/* Phase 5N: restore true 3-column placement on audio detail and forum pages.
   Earlier patches hid the left sidebar, so the audio detail content fell into the first column and looked broken. */
@media(min-width:1181px){
  body .main.page-wrap:has(.waez-room-page),
  body .main.page-wrap:has(.forum-v2-page){
    display:grid!important;
    grid-template-columns:280px minmax(0,1fr) 340px!important;
    gap:18px!important;
    align-items:stretch!important;
    overflow:hidden!important;
  }
  body .main.page-wrap:has(.waez-room-page) > .sidebar,
  body .main.page-wrap:has(.forum-v2-page) > .sidebar{
    display:grid!important;
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    max-width:280px!important;
    width:100%!important;
    height:100%!important;
    overflow:hidden!important;
  }
  body .main.page-wrap:has(.waez-room-page) > .content.waez-room-page,
  body .main.page-wrap:has(.forum-v2-page) > .content.forum-v2-page{
    display:grid!important;
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
    height:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-right:6px!important;
    align-content:start!important;
  }
  body .main.page-wrap:has(.waez-room-page) > .right.suggestion-rail,
  body .main.page-wrap:has(.forum-v2-page) > .right.suggestion-rail{
    display:flex!important;
    flex-direction:column!important;
    grid-column:3!important;
    grid-row:1!important;
    min-width:0!important;
    max-width:340px!important;
    width:100%!important;
    height:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
}

/* Keep the audio detail page inside its center column. */
body .waez-room-page,
body .waez-room,
body .waez-room-hero,
body .waez-top-player-card,
body .waez-room-grid,
body .waez-room-main,
body .waez-tools-panel,
body .waez-grouped-timeline,
body .waez-chapter-map,
body .waez-current-chapter-card{
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body .waez-room-page{overflow-x:hidden!important;}
body .waez-room{display:grid!important;gap:18px!important;align-content:start!important;}
body .waez-room-hero{display:grid!important;grid-template-columns:1fr!important;gap:18px!important;}
body .waez-room-stat-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;}

/* Force the top audio detail player to remain visible and complete. */
body .waez-room-page .waez-top-player-card{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
  grid-template-columns:1fr!important;
}
body .waez-room-page .waez-top-player-head,
body .waez-room-page .waez-top-timeline-wrap,
body .waez-room-page .waez-top-chapter-strip,
body .waez-room-page .waez-top-player-foot{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
}
body .waez-room-page .waez-top-player-head{
  display:grid!important;
  grid-template-columns:72px minmax(0,1fr) auto!important;
  align-items:center!important;
}
body .waez-room-page .waez-top-player-controls{display:flex!important;align-items:center!important;justify-content:flex-end!important;}
body .waez-room-page .waez-top-timeline-wrap{display:grid!important;gap:10px!important;}
body .waez-room-page .waez-top-chapter-strip{display:flex!important;overflow-x:auto!important;}
body .waez-room-page .waez-top-player-foot{justify-content:flex-end!important;flex-wrap:wrap!important;}
body .waez-room-page .waez-top-time-row{display:flex!important;justify-content:space-between!important;}
body .waez-room-page .waez-detail-scrub{display:block!important;width:100%!important;opacity:1!important;visibility:visible!important;}
body .waez-room-page .waez-pin-layer{display:block!important;opacity:1!important;visibility:visible!important;}

/* Forum containment: keep global right rail, but never let the submit panel overflow its own center column. */
body .forum-v2-page,
body .forum-v2-page *{box-sizing:border-box!important;}
body .forum-v2-page{max-width:100%!important;overflow-x:hidden!important;}
body .forum-v2-page .forum-v2-layout{display:grid!important;grid-template-columns:1fr!important;gap:16px!important;width:100%!important;max-width:100%!important;}
body .forum-v2-page .forum-v2-submit-panel,
body .forum-v2-page .forum-v2-post-card,
body .forum-v2-page .forum-v2-filter,
body .forum-v2-page input,
body .forum-v2-page select,
body .forum-v2-page textarea{max-width:100%!important;min-width:0!important;overflow-wrap:anywhere!important;}
body .forum-v2-page input,
body .forum-v2-page select,
body .forum-v2-page textarea{width:100%!important;}

/* Expanded mobile player opens upward above nav and shows controls/actions. */
@media(max-width:760px){
  body .main.page-wrap:has(.waez-room-page),
  body .main.page-wrap:has(.forum-v2-page){display:block!important;overflow:auto!important;padding:12px!important;}
  body .main.page-wrap:has(.waez-room-page) > .content,
  body .main.page-wrap:has(.forum-v2-page) > .content{width:100%!important;max-width:100%!important;overflow:visible!important;}
  body .main.page-wrap:has(.waez-room-page) > .right.suggestion-rail,
  body .main.page-wrap:has(.forum-v2-page) > .right.suggestion-rail{width:100%!important;max-width:100%!important;height:auto!important;overflow:visible!important;margin-top:14px!important;}
  body .waez-room-page .waez-top-player-head{grid-template-columns:58px minmax(0,1fr)!important;gap:12px!important;}
  body .waez-room-page .waez-top-player-controls{grid-column:1 / -1!important;justify-content:center!important;}
  body .waez-room-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body .player[data-global-player-shell].is-expanded{
    position:fixed!important;
    left:10px!important;
    right:10px!important;
    bottom:calc(var(--mobile-nav-h,58px) + env(safe-area-inset-bottom,0px) + 8px)!important;
    top:auto!important;
    max-height:calc(100dvh - var(--mobile-nav-h,58px) - 30px)!important;
    min-height:420px!important;
    overflow-y:auto!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto auto auto!important;
    gap:14px!important;
  }
  body .player[data-global-player-shell].is-expanded .now,
  body .player[data-global-player-shell].is-expanded .control-buttons,
  body .player[data-global-player-shell].is-expanded .timebar,
  body .player[data-global-player-shell].is-expanded .player-actions{display:grid!important;visibility:visible!important;opacity:1!important;}
  body .player[data-global-player-shell].is-expanded .control-buttons{display:flex!important;justify-content:center!important;}
  body .player[data-global-player-shell].is-expanded .control-buttons .circle:not(.play),
  body .player[data-global-player-shell].is-expanded .player-mode{display:inline-grid!important;}
  body .player[data-global-player-shell].is-expanded .player-actions{grid-template-columns:1fr 1fr!important;}
}

/* Phase 5O: mobile bottom player rebuilt from the provided mini/expanded reference. */
.mobile-player-grabber,
.mobile-sheet-head,
.mobile-now-chapter,
.mobile-chapter-jumps{display:none;}
.player .mobile-mini-heart,
.player .mobile-mini-expand{display:none;}
.player .mobile-player-mini{min-width:0;}
.player .mobile-mini-copy{min-width:0;}
.player .mobile-mini-copy a{color:inherit;text-decoration:none;}
.player .mobile-mini-copy b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.player .mobile-mini-copy span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

@media (min-width:761px){
  .player.waez-mobile-player .mobile-sheet-head{display:none!important;}
  .player.waez-mobile-player .mobile-player-grabber,
  .player.waez-mobile-player .mobile-now-chapter,
  .player.waez-mobile-player .mobile-chapter-jumps{display:none!important;}
  .player.waez-mobile-player .mobile-player-mini .mobile-mini-play,
  .player.waez-mobile-player .mobile-player-mini .mobile-mini-heart,
  .player.waez-mobile-player .mobile-player-mini .mobile-mini-expand{display:none!important;}
}

@media (max-width:760px){
  :root{--mobile-nav-h:64px!important;--mini-player-h:86px!important;}
  body.mobile-player-docked{padding-bottom:calc(var(--mobile-nav-h) + var(--mini-player-h) + 12px)!important;}
  .app{padding-bottom:calc(var(--mobile-nav-h) + var(--mini-player-h) + 16px)!important;}
  .content{padding-bottom:calc(var(--mobile-nav-h) + var(--mini-player-h) + 32px)!important;}

  .mobile-bottom-nav{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;height:var(--mobile-nav-h)!important;
    display:grid!important;grid-template-columns:repeat(5,1fr)!important;z-index:10020!important;
    background:rgba(10,11,9,.98)!important;border-top:1px solid rgba(255,255,255,.08)!important;
    box-shadow:0 -10px 24px rgba(0,0,0,.18)!important;
  }
  .mobile-bottom-nav a{display:grid!important;place-items:center!important;align-content:center!important;color:#dcd7ca!important;text-decoration:none!important;font-size:10px!important;font-weight:850!important;gap:3px!important;min-width:0!important;}
  .mobile-bottom-nav a b{display:block!important;font-size:16px!important;line-height:1!important;color:#168b60!important;}
  .mobile-bottom-nav a.active,.mobile-bottom-nav a[aria-current="page"]{color:#fff!important;}
  .mobile-bottom-nav a.active b,.mobile-bottom-nav a[aria-current="page"] b{color:#22a36f!important;}

  .player.waez-mobile-player[data-global-player-shell]{
    position:fixed!important;left:10px!important;right:10px!important;bottom:calc(var(--mobile-nav-h) + 8px)!important;
    z-index:10010!important;margin:0!important;width:auto!important;max-width:none!important;min-height:0!important;
    display:block!important;padding:0!important;border:1px solid rgba(22,116,81,.18)!important;border-radius:24px!important;
    background:rgba(255,253,247,.97)!important;color:#22180f!important;box-shadow:0 22px 55px rgba(38,27,13,.24)!important;
    overflow:hidden!important;backdrop-filter:blur(18px)!important;transform:none!important;visibility:visible!important;opacity:1!important;
  }
  html[data-theme="dark"] .player.waez-mobile-player[data-global-player-shell]{
    background:linear-gradient(135deg,rgba(18,31,22,.98),rgba(37,30,26,.98))!important;color:#f7f1e8!important;border-color:rgba(255,255,255,.10)!important;
  }

  .player.waez-mobile-player .mobile-player-mini{
    display:grid!important;grid-template-columns:48px 48px minmax(0,1fr) 38px 38px!important;align-items:center!important;gap:8px!important;
    padding:10px 12px 9px!important;min-height:78px!important;background:transparent!important;
  }
  .player.waez-mobile-player .mobile-mini-play{
    display:grid!important;place-items:center!important;width:48px!important;height:48px!important;min-width:48px!important;border-radius:18px!important;border:0!important;
    background:linear-gradient(135deg,#239566,#167451)!important;color:#fff!important;font-size:16px!important;box-shadow:0 14px 28px rgba(22,116,81,.24)!important;
  }
  .player.waez-mobile-player .player-logo-cover{
    width:48px!important;height:48px!important;min-width:48px!important;border-radius:18px!important;display:grid!important;place-items:center!important;
    background:radial-gradient(circle at 50% 45%,rgba(255,253,247,.94) 0 24%,transparent 25%),conic-gradient(from 160deg,#167451,#b9873d,#a75545,#167451)!important;
    color:#b9873d!important;box-shadow:0 10px 22px rgba(22,116,81,.16)!important;font-family:Georgia,'Times New Roman',serif!important;
  }
  .player.waez-mobile-player .player-logo-cover span{font-size:17px!important;font-weight:950!important;color:#b9873d!important;line-height:1!important;}
  .player.waez-mobile-player .mobile-mini-copy{display:grid!important;gap:3px!important;min-width:0!important;}
  .player.waez-mobile-player .mobile-mini-copy b{font-size:14px!important;line-height:1.1!important;color:inherit!important;display:block!important;}
  .player.waez-mobile-player .mobile-mini-copy span{font-size:11px!important;color:rgba(34,24,15,.66)!important;display:block!important;}
  html[data-theme="dark"] .player.waez-mobile-player .mobile-mini-copy span{color:rgba(247,241,232,.68)!important;}
  .player.waez-mobile-player .mobile-mini-heart,
  .player.waez-mobile-player .mobile-mini-expand{
    display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:14px!important;border:1px solid rgba(77,52,27,.14)!important;
    background:rgba(255,253,247,.86)!important;color:#22180f!important;font-weight:950!important;font-size:16px!important;
  }
  html[data-theme="dark"] .player.waez-mobile-player .mobile-mini-heart,
  html[data-theme="dark"] .player.waez-mobile-player .mobile-mini-expand{background:rgba(255,255,255,.06)!important;color:#f7f1e8!important;border-color:rgba(255,255,255,.10)!important;}
  .player.waez-mobile-player .mobile-player-sheet-controls,
  .player.waez-mobile-player .mobile-sheet-actions{display:none!important;}
  .player.waez-mobile-player::after{content:'';display:block;height:4px;background:linear-gradient(90deg,#239566 0 34%,rgba(22,116,81,.10) 34% 100%)!important;}

  .player.waez-mobile-player.is-expanded{
    left:0!important;right:0!important;bottom:var(--mobile-nav-h)!important;border-radius:32px 32px 0 0!important;border-left:0!important;border-right:0!important;border-bottom:0!important;
    padding:10px 16px 18px!important;max-height:calc(100dvh - var(--mobile-nav-h) - 18px)!important;overflow:auto!important;
    background:#fffdf7!important;color:#22180f!important;box-shadow:0 -22px 60px rgba(0,0,0,.26)!important;
  }
  html[data-theme="dark"] .player.waez-mobile-player.is-expanded{background:linear-gradient(135deg,#162019,#251f1b)!important;color:#f7f1e8!important;}
  .player.waez-mobile-player.is-expanded::before{content:''!important;display:block!important;width:54px!important;height:5px!important;border-radius:999px!important;background:rgba(34,24,15,.16)!important;margin:0 auto 14px!important;}
  html[data-theme="dark"] .player.waez-mobile-player.is-expanded::before{background:rgba(255,255,255,.20)!important;}
  .player.waez-mobile-player.is-expanded::after{display:none!important;}
  .player.waez-mobile-player.is-expanded .mobile-player-mini{display:none!important;}
  .player.waez-mobile-player.is-expanded .mobile-player-sheet-controls{display:grid!important;gap:12px!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-head{display:grid!important;grid-template-columns:62px minmax(0,1fr) 38px!important;gap:12px!important;align-items:center!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-disc{width:62px!important;height:62px!important;border-radius:23px!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-disc span{font-size:20px!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-title{min-width:0!important;display:grid!important;gap:4px!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-title small{display:block!important;color:#b9873d!important;text-transform:uppercase!important;letter-spacing:.13em!important;font-size:10px!important;font-weight:950!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-title b{display:block!important;font-family:Georgia,'Times New Roman',serif!important;font-size:25px!important;font-weight:500!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:inherit!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-title span{display:block!important;color:rgba(34,24,15,.62)!important;font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  html[data-theme="dark"] .player.waez-mobile-player.is-expanded .mobile-sheet-title span{color:rgba(247,241,232,.68)!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-close{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:14px!important;border:1px solid rgba(77,52,27,.14)!important;background:#fffdf7!important;color:#786b5d!important;font-weight:950!important;}
  html[data-theme="dark"] .player.waez-mobile-player.is-expanded .mobile-sheet-close{background:rgba(255,255,255,.06)!important;color:#f7f1e8!important;border-color:rgba(255,255,255,.10)!important;}

  .player.waez-mobile-player.is-expanded .mobile-sheet-buttons{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;margin:2px 0 2px!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-buttons .circle{display:grid!important;place-items:center!important;width:48px!important;height:48px!important;border-radius:50%!important;border:1px solid rgba(77,52,27,.14)!important;background:#fffdf7!important;color:#22180f!important;font-weight:950!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-buttons .circle.play{width:72px!important;height:72px!important;border:0!important;background:linear-gradient(135deg,#239566,#167451)!important;color:#fff!important;font-size:24px!important;box-shadow:0 18px 34px rgba(22,116,81,.25)!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-buttons .player-mode{display:none!important;}
  html[data-theme="dark"] .player.waez-mobile-player.is-expanded .mobile-sheet-buttons .circle:not(.play){background:rgba(255,255,255,.06)!important;color:#f7f1e8!important;border-color:rgba(255,255,255,.10)!important;}

  .player.waez-mobile-player.is-expanded .mobile-sheet-timebar{display:grid!important;grid-template-columns:48px minmax(0,1fr) 48px!important;align-items:center!important;gap:8px!important;color:#786b5d!important;font-size:11px!important;font-weight:850!important;}
  html[data-theme="dark"] .player.waez-mobile-player.is-expanded .mobile-sheet-timebar{color:rgba(247,241,232,.70)!important;}
  .player.waez-mobile-player.is-expanded .global-scrub{display:block!important;width:100%!important;height:20px!important;accent-color:#167451!important;}
  .player.waez-mobile-player.is-expanded .mobile-now-chapter{display:block!important;border:1px solid rgba(185,135,61,.24)!important;background:rgba(185,135,61,.08)!important;border-radius:18px!important;padding:11px!important;margin-top:2px!important;}
  .player.waez-mobile-player.is-expanded .mobile-now-chapter b{display:block!important;color:#b9873d!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.09em!important;}
  .player.waez-mobile-player.is-expanded .mobile-now-chapter span{display:block!important;font-size:14px!important;font-weight:900!important;margin-top:4px!important;color:inherit!important;}
  .player.waez-mobile-player.is-expanded .mobile-chapter-jumps{display:flex!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;padding-bottom:4px!important;scrollbar-width:thin!important;}
  .player.waez-mobile-player.is-expanded .mobile-jump{min-width:112px!important;border:1px solid rgba(77,52,27,.14)!important;background:#fffdf7!important;border-radius:16px!important;padding:9px!important;text-align:left!important;color:#22180f!important;}
  html[data-theme="dark"] .player.waez-mobile-player.is-expanded .mobile-jump{background:rgba(255,255,255,.06)!important;color:#f7f1e8!important;border-color:rgba(255,255,255,.10)!important;}
  .player.waez-mobile-player.is-expanded .mobile-jump b{display:block!important;color:#167451!important;font-size:12px!important;}
  .player.waez-mobile-player.is-expanded .mobile-jump span{display:block!important;color:#786b5d!important;font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin-top:3px!important;}
  html[data-theme="dark"] .player.waez-mobile-player.is-expanded .mobile-jump span{color:rgba(247,241,232,.70)!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:0!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-actions .action{min-height:44px!important;border-radius:16px!important;border:1px solid rgba(77,52,27,.14)!important;background:#fffdf7!important;color:#22180f!important;font-size:12px!important;font-weight:950!important;text-align:center!important;display:flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-actions .action.green{border:0!important;background:#167451!important;color:#fff!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-actions .action.gold{background:rgba(185,135,61,.10)!important;color:#b9873d!important;border-color:rgba(185,135,61,.24)!important;}
  .player.waez-mobile-player.is-expanded .mobile-sheet-actions .action.blue{background:rgba(49,90,140,.08)!important;color:#315a8c!important;border-color:rgba(49,90,140,.18)!important;}

  .topbar .search input,.topbar input[type="search"]{color:var(--text)!important;-webkit-text-fill-color:var(--text)!important;}
  html[data-theme="light"] .topbar .search input,html[data-theme="light"] .topbar input[type="search"]{color:#22180f!important;-webkit-text-fill-color:#22180f!important;}
}

/* Phase 5O: keep desktop page columns sane after the previous sidebar experiments. */
@media (min-width:1181px){
  .main.page-wrap{grid-template-columns:280px minmax(0,1fr) 340px!important;align-items:stretch!important;}
  .main.page-wrap > .content{grid-column:auto!important;min-width:0!important;max-width:100%!important;}
  .main.page-wrap > .sidebar{grid-column:auto!important;position:relative!important;display:grid!important;}
  .main.page-wrap > .right.suggestion-rail{grid-column:auto!important;display:grid!important;min-width:0!important;max-width:340px!important;}
  .content.content-wide.waez-room-page{max-width:none!important;width:100%!important;}
}

/* Phase 5P: definitive mobile bottom player repair.
   This overrides earlier player experiments and matches the supplied compact/expanded mobile reference. */
@media (max-width:760px){
  :root{
    --mobile-nav-h:58px;
    --mobile-mini-player-h:78px;
  }

  body{
    padding-bottom:calc(var(--mobile-nav-h) + var(--mobile-mini-player-h) + env(safe-area-inset-bottom,0px) + 16px)!important;
  }

  body .mobile-bottom-nav{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    height:var(--mobile-nav-h)!important;
    z-index:1700!important;
    display:grid!important;
    grid-template-columns:repeat(5,1fr)!important;
    background:rgba(10,16,13,.96)!important;
    border-top:1px solid rgba(255,255,255,.08)!important;
    padding-bottom:env(safe-area-inset-bottom,0px)!important;
  }
  body .mobile-bottom-nav a{
    display:grid!important;
    place-items:center!important;
    gap:2px!important;
    color:#f7f1e8!important;
    font-size:10px!important;
    font-weight:850!important;
    text-decoration:none!important;
    min-width:0!important;
  }
  body .mobile-bottom-nav a b{
    display:block!important;
    color:#22a06e!important;
    font-size:15px!important;
    line-height:1!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]{
    position:fixed!important;
    left:10px!important;
    right:10px!important;
    bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom,0px) + 8px)!important;
    top:auto!important;
    z-index:1650!important;
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    display:block!important;
    padding:0!important;
    margin:0!important;
    overflow:visible!important;
    border:1px solid rgba(22,116,81,.20)!important;
    border-radius:24px!important;
    background:rgba(255,253,247,.97)!important;
    color:#22180f!important;
    box-shadow:0 22px 58px rgba(0,0,0,.22)!important;
    backdrop-filter:blur(16px)!important;
    -webkit-backdrop-filter:blur(16px)!important;
  }
  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell]{
    background:linear-gradient(135deg,rgba(20,31,23,.98),rgba(35,28,24,.98))!important;
    color:#f7f1e8!important;
    border-color:rgba(255,255,255,.10)!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]::before,
  body footer.player.waez-mobile-player[data-global-player-shell]::after{
    content:none!important;
    display:none!important;
  }

  /* collapsed reference state */
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-player-mini{
    display:grid!important;
    grid-template-columns:48px minmax(0,1fr) 38px 38px!important;
    align-items:center!important;
    gap:10px!important;
    padding:10px 12px 9px!important;
    min-width:0!important;
    width:100%!important;
    position:relative!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-play{
    display:grid!important;
    place-items:center!important;
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    border-radius:18px!important;
    border:0!important;
    background:linear-gradient(135deg,#239566,#167451)!important;
    color:#fff!important;
    font-size:16px!important;
    box-shadow:0 12px 24px rgba(22,116,81,.22)!important;
  }
  /* The reference mini player does not need the second cover badge; hide it in compact state to avoid overlap. */
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-player-mini > .player-logo-cover{
    display:none!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-copy{
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-copy b{
    display:block!important;
    font-size:14px!important;
    font-weight:950!important;
    line-height:1.15!important;
    color:inherit!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-copy span{
    display:block!important;
    margin-top:3px!important;
    font-size:11px!important;
    color:rgba(34,24,15,.62)!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-copy span{
    color:rgba(247,241,232,.68)!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-heart,
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-expand{
    display:grid!important;
    place-items:center!important;
    width:38px!important;
    height:38px!important;
    border-radius:14px!important;
    border:1px solid rgba(77,52,27,.14)!important;
    background:#fffdf7!important;
    color:#22180f!important;
    font-weight:950!important;
    font-size:16px!important;
    line-height:1!important;
  }
  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-heart,
  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-expand{
    background:rgba(255,255,255,.06)!important;
    color:#f7f1e8!important;
    border-color:rgba(255,255,255,.10)!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-player-sheet-controls,
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-sheet-actions,
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .player-actions{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    height:0!important;
    overflow:hidden!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded)::after{
    content:''!important;
    display:block!important;
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    height:4px!important;
    border-radius:0 0 24px 24px!important;
    background:linear-gradient(90deg,#239566 0 34%,rgba(22,116,81,.12) 34% 100%)!important;
  }

  /* expanded reference bottom sheet */
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded{
    left:0!important;
    right:0!important;
    bottom:var(--mobile-nav-h)!important;
    top:auto!important;
    width:auto!important;
    max-height:calc(100dvh - var(--mobile-nav-h) - 18px)!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:10px 16px 18px!important;
    border-radius:32px 32px 0 0!important;
    border-left:0!important;
    border-right:0!important;
    border-bottom:0!important;
    background:#fffdf7!important;
    color:#22180f!important;
    box-shadow:0 -24px 70px rgba(0,0,0,.28)!important;
    display:block!important;
  }
  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell].is-expanded{
    background:linear-gradient(135deg,#162019,#251f1b)!important;
    color:#f7f1e8!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded::before{
    content:''!important;
    display:block!important;
    width:54px!important;
    height:5px!important;
    border-radius:999px!important;
    background:rgba(34,24,15,.16)!important;
    margin:0 auto 14px!important;
  }
  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell].is-expanded::before{
    background:rgba(255,255,255,.20)!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-player-mini{
    display:none!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-player-sheet-controls{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    position:static!important;
    width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    visibility:visible!important;
    opacity:1!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-player-grabber{
    display:none!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-head{
    display:grid!important;
    grid-template-columns:62px minmax(0,1fr) 38px!important;
    gap:12px!important;
    align-items:center!important;
    position:static!important;
    width:100%!important;
    min-width:0!important;
    margin:0 0 8px!important;
    padding:0!important;
    overflow:visible!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-disc{
    display:grid!important;
    place-items:center!important;
    width:62px!important;
    height:62px!important;
    min-width:62px!important;
    border-radius:23px!important;
    background:radial-gradient(circle at 50% 50%,#fffdf7 0 22%,transparent 23%),conic-gradient(from 160deg,#167451,#b9873d,#a75545,#167451)!important;
    box-shadow:0 14px 28px rgba(22,116,81,.18)!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-disc span{
    display:grid!important;
    place-items:center!important;
    color:#b9873d!important;
    font-family:Georgia,'Times New Roman',serif!important;
    font-size:20px!important;
    font-weight:950!important;
    line-height:1!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-title{
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
    position:static!important;
    padding:0!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-title small{
    display:block!important;
    color:#b9873d!important;
    font-size:10px!important;
    text-transform:uppercase!important;
    letter-spacing:.13em!important;
    font-weight:950!important;
    line-height:1.2!important;
    margin:0 0 4px!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-title b{
    display:block!important;
    font-family:Georgia,'Times New Roman',serif!important;
    font-size:25px!important;
    font-weight:500!important;
    line-height:1.08!important;
    color:inherit!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    max-width:100%!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-title span{
    display:block!important;
    margin-top:4px!important;
    color:rgba(34,24,15,.62)!important;
    font-size:12px!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    max-width:100%!important;
  }
  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-title span{
    color:rgba(247,241,232,.68)!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-close{
    display:grid!important;
    place-items:center!important;
    width:38px!important;
    height:38px!important;
    border-radius:14px!important;
    border:1px solid rgba(77,52,27,.14)!important;
    background:#fffdf7!important;
    color:#786b5d!important;
    font-weight:950!important;
    position:static!important;
  }
  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-close{
    background:rgba(255,255,255,.06)!important;
    color:#f7f1e8!important;
    border-color:rgba(255,255,255,.10)!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-buttons{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:12px!important;
    margin:2px 0 2px!important;
    position:static!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-buttons .circle{
    display:grid!important;
    place-items:center!important;
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    border-radius:50%!important;
    border:1px solid rgba(77,52,27,.14)!important;
    background:#fffdf7!important;
    color:#22180f!important;
    font-weight:950!important;
    position:static!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-buttons .circle.play{
    width:72px!important;
    height:72px!important;
    min-width:72px!important;
    border:0!important;
    background:linear-gradient(135deg,#239566,#167451)!important;
    color:#fff!important;
    font-size:24px!important;
    box-shadow:0 18px 34px rgba(22,116,81,.25)!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-buttons .player-mode{
    display:none!important;
  }
  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-buttons .circle:not(.play){
    background:rgba(255,255,255,.06)!important;
    color:#f7f1e8!important;
    border-color:rgba(255,255,255,.10)!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-timebar{
    display:grid!important;
    grid-template-columns:46px minmax(0,1fr) 46px!important;
    align-items:center!important;
    gap:8px!important;
    color:#786b5d!important;
    font-size:11px!important;
    font-weight:850!important;
    position:static!important;
    width:100%!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-timebar .global-scrub,
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded input[data-player-scrub]{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    height:20px!important;
    accent-color:#167451!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-now-chapter{
    display:block!important;
    border:1px solid rgba(185,135,61,.24)!important;
    background:rgba(185,135,61,.08)!important;
    border-radius:18px!important;
    padding:11px!important;
    margin:0!important;
    position:static!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-now-chapter b{
    display:block!important;
    color:#b9873d!important;
    font-size:12px!important;
    text-transform:uppercase!important;
    letter-spacing:.09em!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-now-chapter span{
    display:block!important;
    font-size:14px!important;
    font-weight:900!important;
    margin-top:4px!important;
    color:inherit!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-chapter-jumps{
    display:flex!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding-bottom:4px!important;
    scrollbar-width:thin!important;
    position:static!important;
    width:100%!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-jump{
    flex:0 0 112px!important;
    min-width:112px!important;
    border:1px solid rgba(77,52,27,.14)!important;
    background:#fffdf7!important;
    border-radius:16px!important;
    padding:9px!important;
    text-align:left!important;
    color:#22180f!important;
    position:relative!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-jump b{
    display:block!important;
    color:#167451!important;
    font-size:12px!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-jump span{
    display:block!important;
    color:#786b5d!important;
    font-size:10px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    margin-top:3px!important;
  }
  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-jump{
    background:rgba(255,255,255,.06)!important;
    color:#f7f1e8!important;
    border-color:rgba(255,255,255,.10)!important;
  }
  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-jump span{
    color:rgba(247,241,232,.70)!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-actions,
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .player-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    margin-top:12px!important;
    width:100%!important;
    visibility:visible!important;
    opacity:1!important;
    height:auto!important;
    overflow:visible!important;
    position:static!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-actions .action,
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .player-actions .btn{
    min-height:44px!important;
    border-radius:16px!important;
    border:1px solid rgba(77,52,27,.14)!important;
    background:#fffdf7!important;
    color:#22180f!important;
    font-size:12px!important;
    font-weight:950!important;
    text-align:center!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-decoration:none!important;
    padding:0 10px!important;
    white-space:normal!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-actions .action.green,
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .player-actions .green{
    border:0!important;
    background:#167451!important;
    color:#fff!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-actions .action.gold,
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .player-actions .gold{
    background:rgba(185,135,61,.10)!important;
    color:#b9873d!important;
    border-color:rgba(185,135,61,.24)!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-actions .action.blue,
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .player-actions .blue{
    background:rgba(49,90,140,.08)!important;
    color:#315a8c!important;
    border-color:rgba(49,90,140,.18)!important;
  }

  /* Prevent the expanded sheet from visually breaking because of previous global player CSS. */
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded *,
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) *{
    box-sizing:border-box!important;
  }
}

/* Phase 5Q: final focused repair for audio-detail top player and mobile player controls.
   This is intentionally appended last so older experimental rules cannot hide the player. */
body .waez-room-page .waez-top-player-card{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:18px!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  margin:22px 0!important;
  padding:24px!important;
  overflow:visible!important;
  visibility:visible!important;
  opacity:1!important;
}
body .waez-room-page .waez-top-player-card > *{
  display:revert!important;
  visibility:visible!important;
  opacity:1!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}
body .waez-room-page .waez-top-player-head{
  display:grid!important;
  grid-template-columns:88px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:22px!important;
}
body .waez-room-page .waez-top-player-cover{
  display:grid!important;
  place-items:center!important;
  width:88px!important;
  height:88px!important;
  min-width:88px!important;
  border-radius:28px!important;
}
body .waez-room-page .waez-top-player-copy{display:block!important;min-width:0!important;}
body .waez-room-page .waez-top-player-copy > span{display:block!important;}
body .waez-room-page .waez-top-player-copy h2{display:block!important;margin:0 0 6px!important;}
body .waez-room-page .waez-top-player-copy p{display:block!important;}
body .waez-room-page .waez-top-player-controls{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:12px!important;
}
body .waez-room-page .waez-round-btn,
body .waez-room-page .waez-main-play{
  display:grid!important;
  place-items:center!important;
  visibility:visible!important;
  opacity:1!important;
  line-height:1!important;
}
body .waez-room-page .waez-top-timeline-wrap{
  display:grid!important;
  gap:10px!important;
  min-height:0!important;
}
body .waez-room-page .waez-top-time-row{display:flex!important;justify-content:space-between!important;}
body .waez-room-page .waez-top-timeline-shell{display:block!important;position:relative!important;min-height:46px!important;padding:8px 0 16px!important;}
body .waez-room-page .waez-detail-scrub{display:block!important;width:100%!important;height:22px!important;position:relative!important;z-index:6!important;}
body .waez-room-page .waez-pin-layer{display:block!important;position:absolute!important;left:8px!important;right:8px!important;top:4px!important;height:30px!important;z-index:7!important;}
body .waez-room-page .waez-top-chapter-strip{display:flex!important;gap:10px!important;overflow-x:auto!important;padding:2px 2px 8px!important;}
body .waez-room-page .waez-top-player-foot{display:flex!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:wrap!important;}

@media(max-width:760px){
  body .waez-room-page .waez-top-player-card{padding:16px!important;border-radius:26px!important;gap:14px!important;margin:16px 0!important;}
  body .waez-room-page .waez-top-player-head{grid-template-columns:62px minmax(0,1fr)!important;gap:12px!important;}
  body .waez-room-page .waez-top-player-cover{width:62px!important;height:62px!important;min-width:62px!important;border-radius:22px!important;}
  body .waez-room-page .waez-top-player-copy h2{font-size:30px!important;white-space:normal!important;}
  body .waez-room-page .waez-top-player-controls{grid-column:1/-1!important;justify-content:center!important;}

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-expand::before{content:'⌃'!important;}
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-expand{font-size:0!important;}
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-expand::before{font-size:16px!important;line-height:1!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-close::before{content:'×'!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-close{font-size:0!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-close::before{font-size:20px!important;line-height:1!important;}
  body footer.player.waez-mobile-player[data-global-player-shell] [data-player-prev],
  body footer.player.waez-mobile-player[data-global-player-shell] [data-player-next]{font-size:0!important;}
  body footer.player.waez-mobile-player[data-global-player-shell] [data-player-prev]::before{content:'‹'!important;font-size:24px!important;line-height:1!important;font-weight:950!important;}
  body footer.player.waez-mobile-player[data-global-player-shell] [data-player-next]::before{content:'›'!important;font-size:24px!important;line-height:1!important;font-weight:950!important;}
  body footer.player.waez-mobile-player[data-global-player-shell] [data-player-prev] svg,
  body footer.player.waez-mobile-player[data-global-player-shell] [data-player-next] svg{display:none!important;}
}


/* Phase 5R: Root cause fix for audio detail player disappearing.
   The JS duration label now uses data-detail-duration-label, so the player container is never overwritten. */
body .waez-room-page .waez-top-player-card{display:grid!important;opacity:1!important;visibility:visible!important;height:auto!important;min-height:220px!important;}
body .waez-room-page .waez-top-player-card > *{display:revert-layer;}
body .waez-room-page .waez-top-player-head, body .waez-room-page .waez-top-timeline-wrap, body .waez-room-page .waez-top-chapter-strip, body .waez-room-page .waez-top-player-foot{display:flex!important;}
body .waez-room-page .waez-top-player-head{display:grid!important;}
body .waez-room-page .waez-top-timeline-wrap{display:grid!important;}
body .waez-room-page .waez-top-chapter-strip{display:flex!important;}

/* Phase 5S: stable audio detail compaction and player restoration. */
@media (min-width:761px){
  body .app{grid-template-rows:76px minmax(0,1fr) 122px!important;overflow:hidden!important;}
  body footer.player[data-global-player-shell]{
    height:122px!important;min-height:122px!important;max-height:122px!important;box-sizing:border-box!important;
    display:grid!important;grid-template-columns:minmax(260px,340px) minmax(360px,1fr) minmax(260px,360px)!important;
    align-items:center!important;gap:18px!important;padding:14px 22px!important;overflow:hidden!important;margin:0!important;
  }
  body footer.player[data-global-player-shell] .now{min-width:0!important;overflow:hidden!important;}
  body footer.player[data-global-player-shell] .controls{min-width:0!important;overflow:hidden!important;}
  body footer.player[data-global-player-shell] .player-actions{min-width:0!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;overflow:hidden!important;}
  body footer.player[data-global-player-shell] .player-actions .btn{max-height:40px!important;white-space:nowrap!important;}
  body footer.player[data-global-player-shell] .timebar{grid-template-columns:50px minmax(0,1fr) 50px!important;}
}

/* Keep the normal three-column shell on the audio detail page. */
@media (min-width:1181px){
  body .main:has(.waez-room-page){
    display:grid!important;
    grid-template-columns:280px minmax(0,1fr) 340px!important;
    gap:18px!important;
    padding:18px 18px 0!important;
    overflow:hidden!important;
    align-items:stretch!important;
  }
  body .main:has(.waez-room-page) > .sidebar,
  body .main:has(.waez-room-page) > .right.suggestion-rail{display:grid!important;visibility:visible!important;opacity:1!important;}
  body .main:has(.waez-room-page) > .content{height:100%!important;overflow:auto!important;min-width:0!important;}
  body .main:has(.waez-room-page) > .right.suggestion-rail{height:100%!important;overflow:auto!important;min-width:0!important;}
}
@media (min-width:761px) and (max-width:1180px){
  body .main:has(.waez-room-page){grid-template-columns:240px minmax(0,1fr)!important;overflow:auto!important;}
  body .main:has(.waez-room-page) > .right.suggestion-rail{grid-column:1 / -1!important;display:grid!important;}
}
@media (max-width:760px){
  body .main:has(.waez-room-page){display:block!important;padding:12px!important;overflow:auto!important;}
  body .main:has(.waez-room-page) > .right.suggestion-rail{display:grid!important;margin-top:14px!important;}
}

/* Merge the large audio header into the player to save space. */
body .waez-room-page .waez-room-hero{display:none!important;}
body .waez-room-page .waez-top-player-card{
  background:linear-gradient(135deg,rgba(255,253,247,.94),rgba(246,242,231,.90))!important;
  border:1px solid rgba(31,122,90,.18)!important;
  border-radius:30px!important;
  box-shadow:0 20px 55px rgba(39,28,15,.10)!important;
  padding:26px!important;
  gap:16px!important;
  margin:0 0 18px!important;
  min-height:0!important;
}
html[data-theme="dark"] body .waez-room-page .waez-top-player-card{
  background:linear-gradient(135deg,rgba(13,34,24,.96),rgba(44,33,27,.93))!important;
  border-color:rgba(255,255,255,.10)!important;
}
body .waez-room-page .waez-top-player-head{grid-template-columns:88px minmax(0,1fr) auto!important;gap:20px!important;}
body .waez-room-page .waez-top-player-copy > span{color:#a76f23!important;letter-spacing:.14em!important;text-transform:uppercase!important;font-size:11px!important;font-weight:950!important;}
body .waez-room-page .waez-top-player-copy h2{font-family:Georgia,'Times New Roman',serif!important;font-size:46px!important;line-height:1.02!important;font-weight:500!important;color:#104b31!important;}
html[data-theme="dark"] body .waez-room-page .waez-top-player-copy h2{color:#e8f5e9!important;}
body .waez-player-meta-merged{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(320px,520px)!important;gap:18px!important;align-items:start!important;}
body .waez-player-meta-left{display:grid!important;gap:10px!important;min-width:0!important;}
body .waez-room-meta.compact{display:flex!important;gap:8px!important;flex-wrap:wrap!important;}
body .waez-room-meta.compact span{display:inline-flex!important;align-items:center!important;min-height:32px!important;padding:0 12px!important;border-radius:999px!important;border:1px solid rgba(31,122,90,.18)!important;background:rgba(255,255,255,.62)!important;color:#5b5146!important;font-weight:850!important;font-size:12px!important;}
html[data-theme="dark"] body .waez-room-meta.compact span{background:rgba(255,255,255,.06)!important;color:#e8e0d6!important;border-color:rgba(255,255,255,.10)!important;}
body .waez-player-desc{font-size:14px!important;line-height:1.55!important;color:#62584e!important;margin:0!important;max-width:900px!important;}
html[data-theme="dark"] body .waez-player-desc{color:rgba(247,241,232,.74)!important;}
body .waez-player-mini-stats{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important;min-width:0!important;}
body .waez-player-mini-stats .live-listener-pill{grid-column:1 / -1!important;justify-self:end!important;}
body .waez-player-mini-stats > div{border:1px solid rgba(31,122,90,.16)!important;border-radius:16px!important;background:rgba(255,255,255,.62)!important;text-align:center!important;padding:10px 8px!important;min-width:0!important;}
html[data-theme="dark"] body .waez-player-mini-stats > div{background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.10)!important;}
body .waez-player-mini-stats b{display:block!important;color:#167451!important;font-size:18px!important;line-height:1!important;}
body .waez-player-mini-stats span{display:block!important;color:#6b6259!important;font-size:10px!important;font-weight:850!important;margin-top:5px!important;}
html[data-theme="dark"] body .waez-player-mini-stats span{color:rgba(247,241,232,.62)!important;}
@media(max-width:980px){
  body .waez-player-meta-merged{grid-template-columns:1fr!important;}
  body .waez-player-mini-stats{grid-template-columns:repeat(3,1fr)!important;}
}
@media(max-width:760px){
  body .waez-room-page .waez-top-player-card{padding:16px!important;border-radius:24px!important;}
  body .waez-room-page .waez-top-player-copy h2{font-size:30px!important;}
  body .waez-player-mini-stats{grid-template-columns:repeat(2,1fr)!important;}
}

/* Restore the reference mobile bottom player features and keep the sheet above the nav. */
@media(max-width:760px){
  :root{--mobile-nav-h:64px!important;--mini-player-h:86px!important;}
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded){
    position:fixed!important;left:20px!important;right:20px!important;bottom:calc(var(--mobile-nav-h) + 10px)!important;
    min-height:74px!important;height:auto!important;border-radius:22px!important;padding:0!important;overflow:hidden!important;z-index:10010!important;
    background:rgba(255,253,247,.98)!important;color:#22180f!important;box-shadow:0 18px 45px rgba(38,27,13,.24)!important;
  }
  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded){background:linear-gradient(135deg,#162019,#241f1b)!important;color:#f7f1e8!important;}
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-player-mini{
    display:grid!important;grid-template-columns:50px minmax(0,1fr) 42px 42px!important;gap:10px!important;align-items:center!important;padding:10px 12px!important;min-height:74px!important;
  }
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-play{display:grid!important;grid-column:1!important;width:50px!important;height:50px!important;border-radius:18px!important;}
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .player-logo-cover{display:none!important;}
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-copy{grid-column:2!important;min-width:0!important;}
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-heart{display:grid!important;grid-column:3!important;}
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-expand{display:grid!important;grid-column:4!important;}
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-expand::before{content:'⌃'!important;}
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-player-sheet-controls,
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-sheet-actions{display:none!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded{
    position:fixed!important;left:20px!important;right:20px!important;bottom:var(--mobile-nav-h)!important;top:auto!important;
    width:auto!important;max-height:calc(100dvh - var(--mobile-nav-h) - 18px)!important;overflow:auto!important;
    padding:16px 14px 18px!important;border-radius:28px 28px 0 0!important;z-index:10010!important;
    background:#fffdf7!important;color:#22180f!important;box-shadow:0 -22px 60px rgba(0,0,0,.26)!important;
  }
  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell].is-expanded{background:linear-gradient(135deg,#162019,#251f1b)!important;color:#f7f1e8!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-player-mini{display:none!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-player-sheet-controls{display:grid!important;gap:12px!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-head{display:grid!important;grid-template-columns:62px minmax(0,1fr) 40px!important;gap:12px!important;align-items:center!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-close::before{content:'×'!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-buttons{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-buttons .circle:not(.player-mode){display:grid!important;width:50px!important;height:50px!important;border-radius:50%!important;place-items:center!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-buttons .circle.play{width:72px!important;height:72px!important;background:#168b60!important;color:#fff!important;font-size:22px!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-buttons .player-mode{display:none!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-timebar{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;gap:8px!important;align-items:center!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-now-chapter{display:grid!important;gap:4px!important;border:1px solid rgba(185,135,61,.22)!important;background:rgba(185,135,61,.08)!important;border-radius:18px!important;padding:12px!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-now-chapter b{text-transform:uppercase!important;letter-spacing:.12em!important;color:#b9873d!important;font-size:10px!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-chapter-jumps{display:flex!important;gap:8px!important;overflow-x:auto!important;padding:2px 0 6px!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-jump{display:block!important;flex:0 0 112px!important;min-width:112px!important;border:1px solid rgba(77,52,27,.14)!important;background:#fffdf7!important;border-radius:16px!important;padding:9px!important;text-align:left!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-jump b{display:block!important;color:#167451!important;font-size:12px!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-jump span{display:block!important;color:#786b5d!important;font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin-top:3px!important;}
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:10px!important;}
}

/* Final shared right rail repair: use the forum page's stable placement everywhere. */
body .main.page-wrap > .right.suggestion-rail{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  align-content:stretch!important;
  gap:14px!important;
  min-width:0!important;
  overflow-x:hidden!important;
}

@media(min-width:1181px){
  body .main.page-wrap{
    display:grid!important;
    grid-template-columns:280px minmax(0,1fr) 340px!important;
    gap:18px!important;
    align-items:stretch!important;
    overflow:hidden!important;
  }

  body .main.page-wrap > .sidebar{
    display:grid!important;
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    max-width:280px!important;
    width:100%!important;
    height:100%!important;
    overflow:hidden!important;
  }

  body .main.page-wrap > .content{
    display:grid!important;
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
    height:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-right:6px!important;
    align-content:start!important;
  }

  body .main.page-wrap > .right.suggestion-rail{
    display:flex!important;
    flex-direction:column!important;
    grid-column:3!important;
    grid-row:1!important;
    min-width:0!important;
    max-width:340px!important;
    width:100%!important;
    height:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    align-content:stretch!important;
  }
}

@media(min-width:761px) and (max-width:1180px){
  body .main.page-wrap{
    display:grid!important;
    grid-template-columns:240px minmax(0,1fr)!important;
    gap:14px!important;
    align-items:start!important;
    overflow:auto!important;
  }

  body .main.page-wrap > .sidebar{
    grid-column:1!important;
    min-width:0!important;
  }

  body .main.page-wrap > .content{
    grid-column:2!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
  }

  body .main.page-wrap > .right.suggestion-rail{
    display:flex!important;
    flex-direction:column!important;
    grid-column:1 / -1!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    overflow:visible!important;
    gap:14px!important;
    padding-bottom:calc(var(--mobile-player-h,110px) + 22px)!important;
  }
}

@media(max-width:760px){
  body .main.page-wrap > .right.suggestion-rail{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    align-content:stretch!important;
    gap:14px!important;
    grid-column:auto!important;
    grid-template-columns:none!important;
    grid-template-rows:none!important;
    grid-auto-rows:auto!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    margin-top:14px!important;
    padding-bottom:calc(var(--mobile-nav-h,64px) + var(--mini-player-h,86px) + 42px)!important;
  }

  body .right.suggestion-rail .suggestion-list,
  body .right.suggestion-rail .topic-suggestion-list{
    max-height:300px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
}

body .right.suggestion-rail > .widget{
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  flex:0 0 auto!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
}

/* Final index audio card cleanup: compact cards for the home two-column grid. */
.phase5-home .phase5-audio-grid{
  align-items:start!important;
}

.phase5-home .phase5-audio-grid .phase6-waez-card{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  grid-template-areas:
    "play info"
    "actions actions"!important;
  align-items:start!important;
  gap:14px!important;
  min-height:0!important;
  padding:16px!important;
  border-left-width:1px!important;
  border-radius:24px!important;
}

.phase5-home .phase5-audio-grid .phase6-play-main{
  grid-area:play!important;
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  border-radius:18px!important;
  align-self:start!important;
}

.phase5-home .phase5-audio-grid .phase6-card-info{
  grid-area:info!important;
  display:grid!important;
  gap:9px!important;
  min-width:0!important;
}

.phase5-home .phase5-audio-grid .phase6-card-title-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:6px 10px!important;
  align-items:start!important;
}

.phase5-home .phase5-audio-grid .phase6-card-title-row h3{
  grid-column:1/-1!important;
  font-family:var(--serif)!important;
  font-size:24px!important;
  line-height:1.08!important;
  margin:0!important;
}

.phase5-home .phase5-audio-grid .phase6-audio-code{
  font-size:12px!important;
  line-height:1.35!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.phase5-home .phase5-audio-grid .phase6-listening-pill{
  justify-self:end!important;
  min-height:28px!important;
  padding:0 9px!important;
  font-size:10px!important;
  white-space:nowrap!important;
}

.phase5-home .phase5-audio-grid .phase6-description{
  margin:0!important;
  font-size:13px!important;
  line-height:1.45!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

.phase5-home .phase5-audio-grid .phase6-mini-stats{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:6px!important;
  margin:0!important;
}

.phase5-home .phase5-audio-grid .phase6-mini-stat{
  min-width:0!important;
  min-height:36px!important;
  border-radius:13px!important;
  padding:4px!important;
}

.phase5-home .phase5-audio-grid .phase6-mini-stat i{
  font-size:13px!important;
}

.phase5-home .phase5-audio-grid .phase6-mini-stat b{
  font-size:10px!important;
}

.phase5-home .phase5-audio-grid .phase6-action-panel{
  grid-area:actions!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}

.phase5-home .phase5-audio-grid .phase6-primary-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
}

.phase5-home .phase5-audio-grid .phase6-secondary-actions{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
}

.phase5-home .phase5-audio-grid .phase6-action-btn,
.phase5-home .phase5-audio-grid .phase6-icon-btn{
  min-height:40px!important;
  border-radius:14px!important;
  padding:0 10px!important;
  font-size:12px!important;
  white-space:nowrap!important;
}

@media(max-width:1180px){
  .phase5-home .phase5-audio-grid .phase6-action-panel{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:760px){
  .phase5-home .phase5-audio-grid .phase6-waez-card{
    grid-template-columns:52px minmax(0,1fr)!important;
    gap:12px!important;
    padding:14px!important;
  }

  .phase5-home .phase5-audio-grid .phase6-play-main{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
  }

  .phase5-home .phase5-audio-grid .phase6-card-title-row{
    grid-template-columns:1fr!important;
  }

  .phase5-home .phase5-audio-grid .phase6-listening-pill{
    justify-self:start!important;
  }

  .phase5-home .phase5-audio-grid .phase6-mini-stats{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }

  .phase5-home .phase5-audio-grid .phase6-secondary-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* Final topbar/sidebar cleanup. */
@media(min-width:641px){
  body .topbar .brand-row .mobile-top-theme,
  body .topbar .brand-row .mobile-search-button{
    display:none!important;
  }
}

@media(max-width:640px){
  body .topbar .brand-row{
    grid-template-columns:44px minmax(0,1fr) 44px 44px!important;
    overflow:hidden!important;
  }

  body .topbar .brand-row .mobile-top-theme,
  body .topbar .brand-row .mobile-search-button{
    display:inline-grid!important;
  }
}

@media(min-width:641px) and (max-width:760px){
  body .topbar .brand-row{
    grid-template-columns:44px minmax(0,1fr)!important;
    overflow:hidden!important;
  }
}

@media(max-width:760px){
  :root{
    --mobile-header-h:70px;
    --mobile-nav-h:64px;
    --mini-player-h:86px;
  }

  body.sidebar-open .sidebar,
  body.sidebar-open .main.page-wrap > .sidebar,
  body.sidebar-open .app .main.page-wrap > .sidebar{
    display:grid!important;
    position:fixed!important;
    top:calc(var(--mobile-header-h,70px) + 8px)!important;
    bottom:calc(var(--mobile-nav-h,64px) + env(safe-area-inset-bottom,0px) + 8px)!important;
    left:10px!important;
    width:min(330px,calc(100vw - 20px))!important;
    height:auto!important;
    max-height:none!important;
    overflow:hidden!important;
    z-index:10040!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:translateX(0)!important;
    grid-template-rows:auto minmax(0,1fr) auto auto!important;
  }

  body.sidebar-open .sidebar .nav{
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-bottom:12px!important;
  }

  body.sidebar-open .sidebar .mobile-side-actions,
  body.sidebar-open .sidebar .sidebar-powered{
    flex-shrink:0!important;
  }

  body.sidebar-open::after{
    top:var(--mobile-header-h,70px)!important;
    bottom:calc(var(--mobile-nav-h,64px) + env(safe-area-inset-bottom,0px))!important;
    z-index:10030!important;
  }
}

/* Final admin notification badge visibility. */
body .top-actions .admin-notifications,
body .top-actions .admin-notify-btn,
body .brand-row .admin-notifications,
body .brand-row .admin-notify-btn{
  overflow:visible!important;
  position:relative!important;
}

body .admin-notify-badge{
  display:grid!important;
  place-items:center!important;
  position:absolute!important;
  top:-8px!important;
  right:-8px!important;
  z-index:6!important;
  min-width:20px!important;
  height:20px!important;
  padding:0 5px!important;
  border:2px solid var(--panel, #17261c)!important;
  border-radius:999px!important;
  background:#ff5f58!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:950!important;
  line-height:1!important;
  box-shadow:0 8px 18px rgba(80,20,16,.35)!important;
  pointer-events:none!important;
}

body .admin-notify-badge[hidden]{
  display:none!important;
}

.protected-user-note{
  display:inline-flex!important;
  align-items:center!important;
  max-width:260px!important;
  min-height:34px!important;
  margin:0!important;
  padding:7px 10px!important;
  border:1px solid rgba(239,91,87,.28)!important;
  border-radius:12px!important;
  color:#ef5b57!important;
  background:rgba(239,91,87,.08)!important;
  font-weight:850!important;
}

/* PDF first-page fallback thumbnails for books without uploaded covers. */
.pdf-preview-cover{
  background:#f8f3e8!important;
  overflow:hidden!important;
  position:relative!important;
}

.pdf-preview-cover iframe{
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  border:0!important;
  display:block!important;
  background:#fff!important;
  pointer-events:none!important;
}

.phase5-book-cover.pdf-preview-cover iframe{
  position:absolute!important;
  inset:0!important;
}

.phase5-book-cover.pdf-preview-cover small{
  z-index:2!important;
}

.admin-book-cover-mini.pdf-preview-cover iframe{
  position:absolute!important;
  inset:0!important;
}

.waez-related-book .book-cover.pdf-preview-cover iframe{
  position:absolute!important;
  inset:0!important;
}

.book-admin-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}

.phase5-book-card .book-action.admin{
  background:rgba(208,165,96,.14);
  border-color:rgba(208,165,96,.30);
  color:#f4d99d;
}

html[data-theme="light"] .phase5-book-card .book-action.admin{
  background:#fff7e7;
  border-color:rgba(185,135,61,.30);
  color:#7b5423;
}

@media(max-width:760px){
  .book-admin-actions{
    width:100%;
    justify-content:flex-start;
  }

  .book-admin-actions .btn{
    flex:1 1 auto;
    justify-content:center;
  }
}

/* Final compact desktop global player. */
@media(min-width:761px){
  body .app{
    grid-template-rows:76px minmax(0,1fr) 88px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]{
    height:88px!important;
    min-height:88px!important;
    max-height:88px!important;
    display:grid!important;
    grid-template-columns:minmax(230px,320px) minmax(360px,1fr) auto!important;
    align-items:center!important;
    gap:18px!important;
    padding:10px 20px!important;
    overflow:hidden!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .mobile-mini-play,
  body footer.player.waez-mobile-player[data-global-player-shell] .mobile-mini-heart,
  body footer.player.waez-mobile-player[data-global-player-shell] .mobile-mini-expand,
  body footer.player.waez-mobile-player[data-global-player-shell] .mobile-player-grabber,
  body footer.player.waez-mobile-player[data-global-player-shell] .mobile-sheet-head,
  body footer.player.waez-mobile-player[data-global-player-shell] .mobile-now-chapter,
  body footer.player.waez-mobile-player[data-global-player-shell] .mobile-chapter-jumps{
    display:none!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .now{
    display:grid!important;
    grid-template-columns:56px minmax(0,1fr)!important;
    gap:12px!important;
    align-items:center!important;
    min-width:0!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .player-logo-cover{
    display:grid!important;
    width:56px!important;
    height:56px!important;
    min-width:56px!important;
    border-radius:16px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .player-title-link b{
    max-width:250px!important;
    font-size:13px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] [data-player-subtitle]{
    max-width:270px!important;
    font-size:11px!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .controls{
    display:grid!important;
    grid-template-rows:42px 22px!important;
    gap:4px!important;
    min-width:0!important;
    overflow:hidden!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .control-buttons{
    gap:8px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .circle{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .circle.play{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .player-mode{
    width:38px!important;
    height:38px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .timebar{
    grid-template-columns:46px minmax(0,1fr) 46px!important;
    gap:8px!important;
    align-items:center!important;
    font-size:11px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .global-scrub{
    height:18px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .player-actions{
    display:flex!important;
    justify-content:flex-end!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    gap:8px!important;
    min-width:max-content!important;
    overflow:visible!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .player-actions .btn{
    min-height:36px!important;
    max-height:36px!important;
    padding:0 13px!important;
    border-radius:18px!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] [data-save-timestamp]:disabled{
    opacity:.62!important;
    cursor:wait!important;
  }
}

/* Final topics table repair: keep /topics as a horizontally scrollable table. */
.topics-table-card{
  max-width:100%!important;
  overflow:hidden!important;
}

.topics-table-wrap[data-topics-table-wrap]{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-x:contain!important;
  scrollbar-width:thin!important;
}

.topics-table-wrap[data-topics-table-wrap] .topics-table{
  width:max-content!important;
  min-width:980px!important;
  table-layout:auto!important;
  border-collapse:collapse!important;
}

.topics-table-wrap[data-topics-table-wrap] .topics-table thead{
  display:table-header-group!important;
}

.topics-table-wrap[data-topics-table-wrap] .topics-table tbody{
  display:table-row-group!important;
}

.topics-table-wrap[data-topics-table-wrap] .topics-table tr{
  display:table-row!important;
}

.topics-table-wrap[data-topics-table-wrap] .topics-table th,
.topics-table-wrap[data-topics-table-wrap] .topics-table td{
  display:table-cell!important;
  width:auto!important;
  min-width:0!important;
  white-space:normal!important;
  text-align:left!important;
}

.topics-table-wrap[data-topics-table-wrap] .topics-table td::before{
  content:none!important;
}

.topics-table-wrap[data-topics-table-wrap] .topics-table th:nth-child(1),
.topics-table-wrap[data-topics-table-wrap] .topics-table td:nth-child(1){
  min-width:110px!important;
  white-space:nowrap!important;
}

.topics-table-wrap[data-topics-table-wrap] .topics-table th:nth-child(2),
.topics-table-wrap[data-topics-table-wrap] .topics-table td:nth-child(2){
  min-width:330px!important;
}

.topics-table-wrap[data-topics-table-wrap] .topics-table th:nth-child(3),
.topics-table-wrap[data-topics-table-wrap] .topics-table td:nth-child(3){
  min-width:260px!important;
}

.topics-table-wrap[data-topics-table-wrap] .topics-table th:nth-child(4),
.topics-table-wrap[data-topics-table-wrap] .topics-table td:nth-child(4){
  min-width:170px!important;
}

.topics-table-wrap[data-topics-table-wrap] .topics-table th:nth-child(5),
.topics-table-wrap[data-topics-table-wrap] .topics-table td:nth-child(5){
  min-width:110px!important;
}

/* Final mobile sidebar stack fix: open drawer must sit above the docked player. */
@media(max-width:760px){
  body.sidebar-open .app,
  body.sidebar-open .main.page-wrap{
    isolation:auto!important;
    transform:none!important;
  }

  body.sidebar-open .sidebar,
  body.sidebar-open .main.page-wrap > .sidebar,
  body.sidebar-open .app .main.page-wrap > .sidebar{
    position:fixed!important;
    top:calc(var(--mobile-header-h,70px) + 8px)!important;
    bottom:calc(var(--mobile-nav-h,64px) + env(safe-area-inset-bottom,0px) + 8px)!important;
    z-index:2147483647!important;
    pointer-events:auto!important;
  }

  body.sidebar-open::after{
    top:var(--mobile-header-h,70px)!important;
    bottom:calc(var(--mobile-nav-h,64px) + env(safe-area-inset-bottom,0px))!important;
    z-index:2147483645!important;
  }

  body.sidebar-open footer.player[data-global-player-shell],
  body.sidebar-open footer.player.waez-mobile-player[data-global-player-shell],
  body.sidebar-open.mobile-player-docked > footer.player[data-global-player-shell]{
    z-index:2147483000!important;
  }

  body.sidebar-open .mobile-bottom-nav{
    z-index:2147483001!important;
  }
}

/* Mobile All Waez filters: collapsed by default so the table is visible sooner. */
.mobile-filter-toggle-input,
.mobile-filter-toggle{
  display:none;
}

@media(max-width:760px){
  .phase5-table-page .mobile-filter-toggle-input{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
    white-space:nowrap!important;
  }

  .phase5-table-page .mobile-filter-toggle{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    min-height:46px!important;
    border:1px solid rgba(255,255,255,.14)!important;
    border-radius:20px!important;
    background:rgba(255,255,255,.07)!important;
    color:var(--text)!important;
    padding:10px 14px!important;
    font-weight:950!important;
    box-shadow:var(--shadow)!important;
  }

  html[data-theme="light"] .phase5-table-page .mobile-filter-toggle{
    background:rgba(255,253,248,.92)!important;
    border-color:rgba(31,122,90,.16)!important;
    color:#152018!important;
  }

  .phase5-table-page .mobile-filter-toggle span{
    font-size:14px!important;
  }

  .phase5-table-page .mobile-filter-toggle b{
    color:var(--muted)!important;
    font-size:11px!important;
    font-weight:850!important;
    text-align:right!important;
  }

  .phase5-table-page .mobile-filter-toggle::after{
    content:'+'!important;
    display:grid!important;
    place-items:center!important;
    width:28px!important;
    height:28px!important;
    border-radius:999px!important;
    background:rgba(46,167,123,.18)!important;
    color:#9fe7cb!important;
    flex:0 0 auto!important;
  }

  .phase5-table-page .mobile-filter-toggle-input:not(:checked) + .mobile-filter-toggle + .phase5-table-filters{
    display:none!important;
  }

  .phase5-table-page .mobile-filter-toggle-input:checked + .mobile-filter-toggle{
    border-radius:20px 20px 10px 10px!important;
  }

  .phase5-table-page .mobile-filter-toggle-input:checked + .mobile-filter-toggle::after{
    content:'-'!important;
  }

  .phase5-table-page .mobile-filter-toggle-input:checked + .mobile-filter-toggle + .phase5-table-filters{
    display:grid!important;
    margin-top:-6px!important;
  }
}

/* Final desktop collapsed-sidebar layout: reclaim the sidebar column. */
@media(min-width:1181px){
  body.sidebar-collapsed .main.page-wrap,
  body.sidebar-collapsed .main.page-wrap:has(.waez-room-page),
  body.sidebar-collapsed .main.page-wrap:has(.forum-v2-page){
    grid-template-columns:minmax(0,1fr) minmax(300px,340px)!important;
    gap:18px!important;
  }

  body.sidebar-collapsed .main.page-wrap > .sidebar{
    display:none!important;
  }

  body.sidebar-collapsed .main.page-wrap > .content,
  body.sidebar-collapsed .main.page-wrap > .content.waez-room-page,
  body.sidebar-collapsed .main.page-wrap > .content.forum-v2-page{
    grid-column:1!important;
    width:100%!important;
    max-width:100%!important;
  }

  body.sidebar-collapsed .main.page-wrap > .right.suggestion-rail{
    grid-column:2!important;
    width:100%!important;
    max-width:340px!important;
  }
}

@media(min-width:761px) and (max-width:1180px){
  body.sidebar-collapsed .main.page-wrap{
    grid-template-columns:minmax(0,1fr)!important;
  }

  body.sidebar-collapsed .main.page-wrap > .sidebar{
    display:none!important;
  }

  body.sidebar-collapsed .main.page-wrap > .content,
  body.sidebar-collapsed .main.page-wrap > .right.suggestion-rail{
    grid-column:1!important;
    width:100%!important;
    max-width:100%!important;
  }
}

/* Final mobile drawer/player behavior: when the drawer is open, move the mini player away. */
@media(max-width:760px){
  body.sidebar-open footer.player[data-global-player-shell],
  body.sidebar-open footer.player.waez-mobile-player[data-global-player-shell],
  body.sidebar-open.mobile-player-docked > footer.player[data-global-player-shell]{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(120%)!important;
    z-index:1!important;
  }

  body.sidebar-open .sidebar,
  body.sidebar-open .main.page-wrap > .sidebar,
  body.sidebar-open .app .main.page-wrap > .sidebar{
    bottom:calc(var(--mobile-nav-h,64px) + env(safe-area-inset-bottom,0px) + 8px)!important;
    grid-template-rows:auto minmax(0,1fr) auto auto!important;
  }

  body.sidebar-open .sidebar .nav{
    min-height:0!important;
    overflow-y:auto!important;
    padding-bottom:14px!important;
  }

  body.sidebar-open .sidebar .mobile-side-actions,
  body.sidebar-open .sidebar .sidebar-powered{
    display:flex!important;
    opacity:1!important;
    visibility:visible!important;
    flex-shrink:0!important;
  }
}

/* Mobile player close button: let users reclaim screen space when nothing is playing. */
.mobile-mini-dismiss{
  display:none;
}

@media(max-width:760px){
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-player-mini{
    position:relative!important;
    padding-top:16px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-dismiss{
    display:grid!important;
    place-items:center!important;
    position:absolute!important;
    top:5px!important;
    right:7px!important;
    width:24px!important;
    height:24px!important;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:999px!important;
    background:rgba(0,0,0,.16)!important;
    color:currentColor!important;
    font-size:18px!important;
    line-height:1!important;
    font-weight:900!important;
    z-index:3!important;
  }

  body.mobile-player-dismissed footer.player[data-global-player-shell],
  body.mobile-player-dismissed footer.player.waez-mobile-player[data-global-player-shell]{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(120%)!important;
  }

  body.mobile-player-dismissed{
    padding-bottom:calc(var(--mobile-nav-h,64px) + env(safe-area-inset-bottom,0px) + 12px)!important;
  }

  body.mobile-player-dismissed.mobile-player-docked{
    padding-bottom:calc(var(--mobile-nav-h,64px) + env(safe-area-inset-bottom,0px))!important;
  }

  body.mobile-player-dismissed .app,
  body.mobile-player-dismissed.mobile-player-docked .app,
  body.mobile-player-dismissed .content{
    padding-bottom:calc(var(--mobile-nav-h,64px) + env(safe-area-inset-bottom,0px) + 20px)!important;
  }

  body.mobile-player-dismissed .main.page-wrap,
  body.mobile-player-dismissed .content.content-wide,
  body.mobile-player-dismissed .waez-room-page,
  body.mobile-player-dismissed .forum-v2-page,
  body.mobile-player-dismissed .right.suggestion-rail,
  body.mobile-player-dismissed .main.page-wrap > .right.suggestion-rail{
    padding-bottom:calc(var(--mobile-nav-h,64px) + env(safe-area-inset-bottom,0px) + 18px)!important;
  }

  body.mobile-player-dismissed footer.player[data-global-player-shell] + .mobile-bottom-nav,
  body.mobile-player-dismissed .mobile-bottom-nav{
    margin-top:0!important;
  }
}

/* Final mobile player dismissal: collapse the reserved viewport space, not only the player. */
@media(max-width:760px){
  body.mobile-player-dismissed footer.player[data-global-player-shell],
  body.mobile-player-dismissed footer.player.waez-mobile-player[data-global-player-shell]{
    display:none!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    box-shadow:none!important;
  }

  body.mobile-player-dismissed,
  body.mobile-player-dismissed.mobile-player-docked{
    padding-bottom:0!important;
  }

  body.mobile-player-dismissed .app,
  body.mobile-player-dismissed.mobile-player-docked .app{
    padding-bottom:calc(var(--mobile-nav-h,58px) + env(safe-area-inset-bottom,0px))!important;
  }

  body.mobile-player-dismissed .main,
  body.mobile-player-dismissed .page-wrap,
  body.mobile-player-dismissed .main.page-wrap,
  body.mobile-player-dismissed.mobile-player-docked .main,
  body.mobile-player-dismissed.mobile-player-docked .page-wrap,
  body.mobile-player-dismissed.mobile-player-docked .main.page-wrap{
    bottom:calc(var(--mobile-nav-h,58px) + env(safe-area-inset-bottom,0px))!important;
    padding-bottom:10px!important;
  }

  body.mobile-player-dismissed .main::before,
  body.mobile-player-dismissed .page-wrap::before,
  body.mobile-player-dismissed .main.page-wrap::before{
    inset:var(--mobile-header-h,70px) 0 calc(var(--mobile-nav-h,58px) + env(safe-area-inset-bottom,0px)) 0!important;
  }

  body.mobile-player-dismissed .content,
  body.mobile-player-dismissed .content.content-wide,
  body.mobile-player-dismissed .waez-room-page,
  body.mobile-player-dismissed .forum-v2-page,
  body.mobile-player-dismissed .right.suggestion-rail,
  body.mobile-player-dismissed .main.page-wrap > .right.suggestion-rail{
    padding-bottom:14px!important;
  }
}

/* Final mobile mini player controls: separate heart, expand and close buttons. */
@media(max-width:760px){
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-player-mini{
    grid-template-columns:48px minmax(0,1fr) 38px 38px 30px!important;
    gap:8px!important;
    align-items:center!important;
    padding:10px 10px 9px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-play{
    grid-column:1!important;
    order:1!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-copy{
    grid-column:2!important;
    order:2!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-heart,
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-expand{
    display:grid!important;
    place-items:center!important;
    position:static!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    margin:0!important;
    border-radius:14px!important;
    line-height:1!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-heart{
    grid-column:3!important;
    order:3!important;
    font-size:18px!important;
    text-decoration:none!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-expand{
    grid-column:4!important;
    order:4!important;
    font-size:0!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-expand::before{
    content:"\2191"!important;
    font-size:18px!important;
    line-height:1!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-dismiss{
    display:grid!important;
    place-items:center!important;
    grid-column:5!important;
    order:5!important;
    position:static!important;
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    min-height:30px!important;
    margin:0!important;
    padding:0!important;
    border-radius:12px!important;
    font-size:0!important;
    line-height:1!important;
    transform:none!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-dismiss::before{
    content:"\00d7"!important;
    font-size:18px!important;
    line-height:1!important;
  }
}

/* Hearts: white by default, red after the user likes or saves. */
.phase6-icon-btn.like,
.reaction-btn.like,
.reel-reaction-btn.like,
.mobile-mini-heart{
  color:#fff!important;
}

.phase6-icon-btn.like.is-active,
.reaction-btn.like.is-active,
.reel-reaction-btn.like.is-active,
.mobile-mini-heart.is-active{
  color:#ef4444!important;
}

.phase6-icon-btn.like{
  font-size:20px!important;
  line-height:1!important;
}

.phase6-icon-btn.like.is-active{
  background:rgba(239,68,68,.13)!important;
  border-color:rgba(239,68,68,.32)!important;
}

@media(max-width:760px){
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-heart{
    color:#fff!important;
    font-size:21px!important;
    text-shadow:0 1px 6px rgba(0,0,0,.35)!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-heart.is-active{
    color:#ef4444!important;
    text-shadow:0 0 12px rgba(239,68,68,.36)!important;
  }
}

/* Final iPad/tablet repair: avoid mixed desktop/mobile layout collisions. */
@media(min-width:761px) and (max-width:1180px){
  body .app{
    height:100vh!important;
    height:100dvh!important;
    min-height:0!important;
    grid-template-rows:auto minmax(0,1fr) 112px!important;
    overflow:hidden!important;
  }

  body .topbar{
    display:grid!important;
    grid-template-columns:minmax(300px,auto) minmax(0,1fr)!important;
    grid-template-areas:
      "brand actions"
      "search search"!important;
    align-items:center!important;
    gap:8px 12px!important;
    height:auto!important;
    min-height:0!important;
    padding:10px 14px!important;
    overflow:hidden!important;
  }

  body .topbar .brand-row{
    grid-area:brand!important;
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
  }

  body .topbar .brand{
    min-width:0!important;
    width:auto!important;
    display:flex!important;
    gap:10px!important;
  }

  body .topbar .mark.mark-photo{
    width:54px!important;
    height:54px!important;
    min-width:54px!important;
  }

  body .topbar .brand-copy{
    min-width:0!important;
  }

  body .topbar .brand small,
  body .topbar .brand b,
  body .topbar .brand-countdown{
    max-width:100%!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body .topbar .brand b{
    font-size:18px!important;
    line-height:1.12!important;
  }

  body .topbar > .search{
    grid-area:search!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }

  body .topbar > .search input{
    height:42px!important;
    font-size:14px!important;
  }

  body .topbar > .search .kbd{
    display:none!important;
  }

  body .topbar .top-actions{
    grid-area:actions!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    width:auto!important;
    min-width:0!important;
    flex-wrap:nowrap!important;
  }

  body .topbar .top-actions .auth-note,
  body .topbar .top-actions .support-btn{
    display:none!important;
  }

  body .topbar .top-actions .btn{
    min-height:40px!important;
    white-space:nowrap!important;
    padding-inline:12px!important;
  }

  body .main.page-wrap{
    display:grid!important;
    grid-template-columns:230px minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
    gap:12px!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
    align-items:stretch!important;
    padding:12px!important;
  }

  body .main.page-wrap > .sidebar{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    max-width:230px!important;
    min-width:0!important;
    height:100%!important;
    max-height:100%!important;
    align-self:stretch!important;
    overflow:hidden!important;
  }

  body .main.page-wrap > .sidebar .nav{
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }

  body .main.page-wrap > .content,
  body .main.page-wrap > .content.home-content,
  body .main.page-wrap > .content.content-wide,
  body .main.page-wrap > .content.waez-room-page,
  body .main.page-wrap > .content.forum-v2-page{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:100%!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-right:0!important;
    padding-bottom:18px!important;
  }

  body .main.page-wrap > .right.suggestion-rail,
  body .main.page-wrap > .right{
    display:none!important;
  }

  body .archive-welcome{
    grid-template-columns:1fr!important;
    padding:18px!important;
    gap:16px!important;
  }

  body .archive-welcome h1{
    font-size:clamp(34px,4.6vw,44px)!important;
    line-height:1.06!important;
  }

  body .phase5-home-search{
    grid-template-columns:minmax(0,1fr) auto!important;
  }

  body .quick-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  body .quick-action{
    min-width:0!important;
  }

  body .phase5-audio-grid,
  body .audio-grid{
    grid-template-columns:1fr!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]{
    height:112px!important;
    min-height:112px!important;
    max-height:112px!important;
    grid-template-columns:minmax(170px,240px) minmax(260px,1fr) auto!important;
    gap:10px!important;
    padding:10px 14px!important;
    overflow:hidden!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .now{
    grid-template-columns:50px minmax(0,1fr)!important;
    gap:10px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .player-logo-cover{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .controls{
    min-width:0!important;
    gap:6px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .control-buttons{
    gap:8px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .timebar{
    grid-template-columns:44px minmax(0,1fr) 44px!important;
    gap:8px!important;
    min-width:0!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .global-scrub{
    min-width:0!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .player-actions{
    min-width:0!important;
    max-width:290px!important;
    gap:8px!important;
    align-content:center!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .player-actions .btn{
    min-height:38px!important;
    max-height:38px!important;
    padding:0 11px!important;
    font-size:12px!important;
  }
}

/* Final tablet audio/detail page repair: override older :has() detail-page rules. */
@media(min-width:761px) and (max-width:1180px){
  body .app{
    grid-template-rows:auto minmax(0,1fr) 132px!important;
  }

  body .main.page-wrap:has(.waez-room-page),
  body .main.page-wrap:has(.forum-v2-page){
    display:grid!important;
    grid-template-columns:230px minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
    align-items:stretch!important;
    padding:12px!important;
    gap:12px!important;
  }

  body .main.page-wrap:has(.waez-room-page) > .sidebar,
  body .main.page-wrap:has(.forum-v2-page) > .sidebar{
    display:grid!important;
    grid-column:1!important;
    grid-row:1!important;
    height:100%!important;
    max-height:100%!important;
    overflow:hidden!important;
    align-self:stretch!important;
  }

  body .main.page-wrap:has(.waez-room-page) > .content,
  body .main.page-wrap:has(.waez-room-page) > .content.waez-room-page,
  body .main.page-wrap:has(.forum-v2-page) > .content,
  body .main.page-wrap:has(.forum-v2-page) > .content.forum-v2-page{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    max-width:100%!important;
    height:100%!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:0 0 18px!important;
  }

  body .main.page-wrap:has(.waez-room-page) > .right.suggestion-rail,
  body .main.page-wrap:has(.forum-v2-page) > .right.suggestion-rail{
    display:none!important;
  }

  body.sidebar-collapsed .main.page-wrap,
  body.sidebar-collapsed .main.page-wrap:has(.waez-room-page),
  body.sidebar-collapsed .main.page-wrap:has(.forum-v2-page){
    grid-template-columns:minmax(0,1fr)!important;
  }

  body.sidebar-collapsed .main.page-wrap > .sidebar,
  body.sidebar-collapsed .main.page-wrap:has(.waez-room-page) > .sidebar,
  body.sidebar-collapsed .main.page-wrap:has(.forum-v2-page) > .sidebar{
    display:none!important;
  }

  body.sidebar-collapsed .main.page-wrap > .content,
  body.sidebar-collapsed .main.page-wrap > .content.home-content,
  body.sidebar-collapsed .main.page-wrap > .content.content-wide,
  body.sidebar-collapsed .main.page-wrap > .content.waez-room-page,
  body.sidebar-collapsed .main.page-wrap > .content.forum-v2-page,
  body.sidebar-collapsed .main.page-wrap:has(.waez-room-page) > .content,
  body.sidebar-collapsed .main.page-wrap:has(.forum-v2-page) > .content{
    grid-column:1!important;
    width:100%!important;
    max-width:100%!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]{
    height:132px!important;
    min-height:132px!important;
    max-height:132px!important;
    grid-template-columns:minmax(170px,230px) minmax(240px,1fr) minmax(250px,auto)!important;
  }

body footer.player.waez-mobile-player[data-global-player-shell] .player-actions{
    max-width:320px!important;
    justify-content:flex-end!important;
  }
}

/* Final audio detail controls: visible pause icon and readable audio-number badge. */
body .waez-room-page .waez-top-player-cover{
  background:linear-gradient(135deg,#0f6b4b 0%,#1f946b 54%,#c58b37 100%)!important;
  border:1px solid rgba(255,255,255,.58)!important;
  box-shadow:0 18px 38px rgba(15,107,75,.25)!important;
  overflow:hidden!important;
}

body .waez-room-page .waez-top-player-cover::before{
  content:none!important;
  display:none!important;
}

body .waez-room-page .waez-top-player-cover span{
  color:#fffdf7!important;
  font-size:28px!important;
  font-weight:950!important;
  letter-spacing:.02em!important;
  text-shadow:0 2px 8px rgba(0,0,0,.36)!important;
  position:relative!important;
  z-index:1!important;
}

body .waez-room-page .waez-main-play{
  color:#fff!important;
  position:relative!important;
  overflow:hidden!important;
}

body .waez-room-page .waez-main-play::before{
  content:none!important;
}

body .waez-top-player-card.is-playing .waez-main-play{
  font-size:0!important;
}

body .waez-top-player-card.is-playing .waez-main-play::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  width:24px!important;
  height:30px!important;
  background:linear-gradient(90deg,#fff 0 34%,transparent 34% 66%,#fff 66% 100%)!important;
  border:0!important;
  border-radius:2px!important;
  margin:0!important;
  transform:translate(-50%,-50%)!important;
  box-shadow:none!important;
}

@media(max-width:760px){
  body .waez-room-page .waez-top-player-cover span{
    font-size:22px!important;
  }

  body .waez-top-player-card.is-playing .waez-main-play::before{
    width:20px!important;
    height:26px!important;
  }
}

/* Final mobile bottom player number badge: remove white center and improve contrast. */
@media(max-width:760px){
  body footer.player.waez-mobile-player[data-global-player-shell] .player-logo-cover,
  body footer.player.waez-mobile-player[data-global-player-shell] .mobile-sheet-disc,
  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .player-logo-cover{
    background:linear-gradient(135deg,#0f6b4b 0%,#1f946b 55%,#c58b37 100%)!important;
    border:1px solid rgba(255,255,255,.58)!important;
    color:#fffdf7!important;
    box-shadow:0 12px 26px rgba(15,107,75,.24)!important;
    overflow:hidden!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .player-logo-cover::before,
  body footer.player.waez-mobile-player[data-global-player-shell] .mobile-sheet-disc::before{
    content:none!important;
    display:none!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .player-logo-cover span,
  body footer.player.waez-mobile-player[data-global-player-shell] .mobile-sheet-disc span{
    color:#fffdf7!important;
    font-size:18px!important;
    font-weight:950!important;
    letter-spacing:.01em!important;
    text-shadow:0 2px 8px rgba(0,0,0,.38)!important;
    position:relative!important;
    z-index:1!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .mobile-sheet-disc span{
    font-size:22px!important;
  }
}

/* Final player 10-second seek controls. */
.mobile-mini-seek-pair,
.mobile-mini-skip{
  display:none;
}

body footer.player.waez-mobile-player[data-global-player-shell] .player-skip{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  display:inline-grid!important;
  grid-auto-flow:column!important;
  place-items:center!important;
  gap:1px!important;
  font-size:13px!important;
  font-weight:950!important;
  letter-spacing:0!important;
  border-color:rgba(35,149,102,.32)!important;
  background:
    radial-gradient(circle at 28% 20%,rgba(255,255,255,.88),rgba(255,255,255,0) 38%),
    linear-gradient(135deg,rgba(35,149,102,.18),rgba(185,135,61,.12))!important;
  color:#0f5f43!important;
  box-shadow:0 10px 22px rgba(20,95,67,.12), inset 0 1px 0 rgba(255,255,255,.8)!important;
}

body footer.player.waez-mobile-player[data-global-player-shell] .player-skip span,
body footer.player.waez-mobile-player[data-global-player-shell] .mobile-mini-skip span{
  font-size:.78em!important;
  font-weight:950!important;
  line-height:1!important;
}

html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell] .player-skip{
  border-color:rgba(56,189,148,.28)!important;
  background:
    radial-gradient(circle at 28% 20%,rgba(255,255,255,.16),rgba(255,255,255,0) 40%),
    linear-gradient(135deg,rgba(35,149,102,.28),rgba(185,135,61,.12))!important;
  color:#dffbea!important;
  box-shadow:0 12px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.12)!important;
}

@media(min-width:761px){
  body footer.player.waez-mobile-player[data-global-player-shell] .control-buttons{
    gap:8px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .player-skip{
    width:44px!important;
    height:38px!important;
    min-width:44px!important;
    min-height:38px!important;
    border-radius:15px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell] .player-skip-back{
    margin-left:4px!important;
  }
}

@media(max-width:760px){
  body footer.player.waez-mobile-player[data-global-player-shell] .mobile-sheet-buttons .player-skip,
  body footer.player.waez-mobile-player[data-global-player-shell].is-expanded .player-skip{
    display:none!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-player-mini{
    grid-template-columns:44px minmax(0,1fr) 74px 34px 34px 28px!important;
    gap:6px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-play{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-copy{
    grid-column:2!important;
    order:2!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-seek-pair{
    display:grid!important;
    grid-column:3!important;
    order:3!important;
    grid-template-columns:1fr 1fr!important;
    align-items:center!important;
    width:74px!important;
    height:36px!important;
    min-width:74px!important;
    padding:2px!important;
    border-radius:16px!important;
    border:1px solid rgba(35,149,102,.24)!important;
    background:linear-gradient(135deg,rgba(255,253,247,.88),rgba(232,245,238,.78))!important;
    box-shadow:0 10px 22px rgba(20,95,67,.12), inset 0 1px 0 rgba(255,255,255,.88)!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-skip{
    display:grid!important;
    place-items:center!important;
    grid-auto-flow:column!important;
    gap:1px!important;
    width:100%!important;
    height:30px!important;
    min-width:0!important;
    min-height:30px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:13px!important;
    background:transparent!important;
    color:#0f5f43!important;
    font-size:12px!important;
    font-weight:950!important;
    line-height:1!important;
    box-shadow:none!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-skip + .mobile-mini-skip{
    border-left:1px solid rgba(35,149,102,.18)!important;
    border-top-left-radius:0!important;
    border-bottom-left-radius:0!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-skip:first-child{
    border-top-right-radius:0!important;
    border-bottom-right-radius:0!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-skip:active{
    background:rgba(35,149,102,.16)!important;
    transform:translateY(1px)!important;
  }

  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-seek-pair{
    border-color:rgba(56,189,148,.24)!important;
    background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(35,149,102,.10))!important;
    box-shadow:0 12px 24px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.10)!important;
  }

  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-skip{
    color:#dffbea!important;
  }

  html[data-theme="dark"] body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-skip + .mobile-mini-skip{
    border-left-color:rgba(255,255,255,.12)!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-heart{
    grid-column:4!important;
    order:4!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-expand{
    grid-column:5!important;
    order:5!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
  }

  body footer.player.waez-mobile-player[data-global-player-shell]:not(.is-expanded) .mobile-mini-dismiss{
    grid-column:6!important;
    order:6!important;
    width:28px!important;
    height:30px!important;
    min-width:28px!important;
    min-height:30px!important;
  }
}

/* Final audio detail cleanup: replace the heavy resume/mode/chapter cards with one compact strip. */
body .waez-room-page .waez-room-mini-grid,
body .waez-room-page .waez-current-chapter-card{
  display:none!important;
}

body .waez-room-page .waez-current-strip{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  border:1px solid rgba(31,122,90,.18)!important;
  border-radius:22px!important;
  padding:12px!important;
  background:linear-gradient(135deg,rgba(255,253,247,.86),rgba(235,247,240,.72))!important;
  box-shadow:0 14px 36px rgba(20,38,28,.08)!important;
  overflow:hidden!important;
}

body .waez-room-page .waez-current-strip-main{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
}

body .waez-room-page .waez-current-resume{
  appearance:none!important;
  border:0!important;
  border-radius:16px!important;
  min-height:42px!important;
  padding:0 16px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#fff!important;
  background:linear-gradient(135deg,#239566,#167451)!important;
  box-shadow:0 10px 24px rgba(22,116,81,.18)!important;
  font-weight:950!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}

body .waez-room-page .waez-current-strip-copy{
  min-width:0!important;
  display:grid!important;
  gap:2px!important;
}

body .waez-room-page .waez-current-strip-copy span{
  color:#0b6a4b!important;
  text-transform:uppercase!important;
  letter-spacing:.12em!important;
  font-size:10px!important;
  font-weight:950!important;
}

body .waez-room-page .waez-current-strip-copy b{
  display:block!important;
  min-width:0!important;
  color:#201914!important;
  font-family:var(--serif)!important;
  font-size:20px!important;
  line-height:1.12!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

body .waez-room-page .waez-current-strip-copy small{
  color:#8f642b!important;
  font-weight:850!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

body .waez-room-page .waez-current-strip-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  min-width:0!important;
}

body .waez-room-page .waez-current-strip-actions .btn{
  min-height:38px!important;
  padding:0 13px!important;
  white-space:nowrap!important;
}

html[data-theme="dark"] body .waez-room-page .waez-current-strip{
  background:linear-gradient(135deg,rgba(20,30,22,.92),rgba(42,32,29,.86))!important;
  border-color:rgba(255,119,113,.16)!important;
  box-shadow:0 16px 38px rgba(0,0,0,.2)!important;
}

html[data-theme="dark"] body .waez-room-page .waez-current-strip-copy b{
  color:#f3f1e8!important;
}

html[data-theme="dark"] body .waez-room-page .waez-current-strip-copy small{
  color:#d6b77a!important;
}

@media(max-width:900px){
  body .waez-room-page .waez-current-strip{
    grid-template-columns:1fr!important;
  }

  body .waez-room-page .waez-current-strip-actions{
    justify-content:stretch!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  body .waez-room-page .waez-current-strip-actions .btn{
    width:100%!important;
    padding:0 10px!important;
  }
}

@media(max-width:520px){
  body .waez-room-page .waez-current-strip{
    border-radius:18px!important;
    padding:10px!important;
    gap:10px!important;
  }

  body .waez-room-page .waez-current-strip-main{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }

  body .waez-room-page .waez-current-resume{
    width:100%!important;
  }

  body .waez-room-page .waez-current-strip-copy b{
    font-size:18px!important;
  }

  body .waez-room-page .waez-current-strip-actions{
    grid-template-columns:1fr!important;
  }
}
