.twlr{--lr-ink:#182a40;--lr-sub:#64758b;--lr-border:#dfe8f1;--lr-bg:#f3f6fb;--lr-blue:#155c96;--lr-accent:#e64964;box-sizing:border-box;color:var(--lr-ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;max-width:1220px;margin:28px auto;padding:0 16px;font-size:15px;line-height:1.5}
.twlr *{box-sizing:border-box}
.twlr button,.twlr input,.twlr select{font:inherit}
.twlr button{cursor:pointer}
.twlr button:disabled{opacity:.43;cursor:not-allowed}
.twlr a{color:var(--lr-blue)}
.twlr h2,.twlr h3,.twlr h4{font-family:inherit;letter-spacing:-.025em;line-height:1.2;color:var(--lr-ink);margin:0}
.twlr h2{font-size:clamp(28px,4vw,38px);font-weight:760}
.twlr h3{font-size:24px;font-weight:760}
.twlr h4{font-size:17px;font-weight:720}
.twlr p{margin:0}
.twlr-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 23px}
.twlr-head p{color:var(--lr-sub);margin-top:8px;max-width:760px}
.twlr-kicker{font-size:11px;color:var(--lr-blue);font-weight:800;letter-spacing:.13em;margin-bottom:11px}
.twlr-version{background:#e2ecf7;border-radius:4px;padding:3px 5px;letter-spacing:normal;color:#294967}
.twlr-privacy{background:#e7f5eb;color:#216340;border:1px solid #c7e8d3;border-radius:20px;padding:9px 12px;white-space:nowrap;font-size:12px;font-weight:650}
.twlr-privacy span{font-size:11px;color:#1f9f5f;margin-right:5px}
.twlr-player,.twlr-directory,.twlr-recordings{border:1px solid var(--lr-border);border-radius:18px;background:#fff;box-shadow:0 6px 25px rgba(29,49,74,.045);padding:26px;margin-bottom:25px}
.twlr-player{background:linear-gradient(120deg,#fff 58%,#f4f9ff 100%)}
.twlr-player-info{display:flex;align-items:center;gap:15px}
.twlr-station-symbol{width:58px;height:58px;border-radius:15px;background:#e7f0fb;color:#2767aa;display:grid;place-items:center;font-size:30px;flex-shrink:0}
.twlr-current{flex:1;min-width:0}
.twlr-current h3{margin:3px 0;overflow-wrap:anywhere}
.twlr-current-hint{color:var(--lr-sub);font-size:10px;letter-spacing:.14em;font-weight:800}
.twlr-current [data-current-meta]{font-size:13px;color:var(--lr-sub)}
.twlr-live{font-size:11px;letter-spacing:.1em;font-weight:800;color:#60768b;background:#eaf0f5;border-radius:20px;padding:7px 10px}.twlr-live.is-live{color:#9d4151;background:#ffe7eb}
.twlr-wave-wrap{height:127px;border-radius:12px;background:#f7f9fd;margin-top:20px;position:relative;overflow:hidden;border:1px solid #e8edf6}
.twlr-wave-wrap canvas{display:block;width:100%;height:112px}
.twlr-wave-wrap span{position:absolute;bottom:6px;left:0;right:0;text-align:center;font-size:11px;color:#8594a7}
.twlr-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:19px 0 14px}
.twlr .twlr-btn{appearance:none;border:1px solid #cfdae5;border-radius:9px;color:#284760;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 14px;text-decoration:none;background:#fff;font-size:13px;font-weight:750;white-space:nowrap;line-height:1.3;box-shadow:none}
.twlr .twlr-btn:hover:not(:disabled){filter:brightness(.96);text-decoration:none}
.twlr .twlr-btn-play{background:#1565a0;border-color:#1565a0;color:#fff;min-width:172px;min-height:52px}
.twlr .twlr-btn-record{background:#e64e67;color:#fff;border-color:#e64e67;min-width:160px;min-height:52px}
.twlr .twlr-btn-record.is-recording{background:#a71e34;border-color:#a71e34;animation:twlr-pulse 1.4s ease-in-out infinite}
.twlr .twlr-btn-quiet{background:#fff}
.twlr .twlr-btn-link{background:#f2f7fd}
.twlr .twlr-disabled{opacity:.45;pointer-events:none}
.twlr-controls-sub{display:flex;align-items:center;flex-wrap:wrap;gap:16px;color:var(--lr-sub);font-size:13px}
.twlr-controls-sub label{display:inline-flex;align-items:center;gap:8px}
.twlr-controls-sub select{border:1px solid #c9d7e8;border-radius:6px;background:#fff;color:var(--lr-ink);height:32px;padding:3px 7px}
.twlr-controls-sub [data-volume]{accent-color:var(--lr-blue);max-width:110px}
.twlr-timer{font-variant-numeric:tabular-nums;font-family:ui-monospace,SFMono-Regular,monospace;font-size:19px;color:#2f4e69;font-weight:750;margin-left:auto}
.twlr-status{margin-top:17px;padding:12px 14px;background:#eef5ff;border:1px solid #d4e5fa;color:#325372;border-radius:9px;min-height:47px;font-size:13px}
.twlr-status[data-level="ok"]{background:#eaf8ee;border-color:#cae8d3;color:#235c3a}
.twlr-status[data-level="warn"]{background:#fffaeb;border-color:#f0dfaa;color:#72541f}
.twlr-status[data-level="error"]{background:#fff0f1;border-color:#f3c5cb;color:#9a2537}
.twlr-recording-player{display:flex;flex-direction:column;gap:6px;margin:9px 0 12px;padding:12px 14px;background:#f5f9ff;border:1px solid #dbe7f4;border-radius:12px}
.twlr-recording-player audio{width:100%;max-width:100%}
.twlr-recording-player strong{font-size:13px;color:#264864}
.twlr-capture-help{font-size:12px;color:#78889b;margin-top:12px!important;max-width:890px}
.twlr-section-head{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:19px}
.twlr-section-head h3{font-size:22px}.twlr-section-head p{margin-top:4px;color:var(--lr-sub);font-size:13px}
.twlr-section-head>span{font-size:12px;color:#466481;background:#eff5fb;border-radius:50px;padding:6px 9px;white-space:nowrap}
.twlr-filters{margin-bottom:21px}
.twlr-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.twlr-chips button{border:1px solid #dbe4ec;background:#fff;color:#405870;border-radius:20px;padding:7px 12px;font-size:12px;font-weight:650}
.twlr-chips button.is-active{background:#185d94;color:#fff;border-color:#185d94}
.twlr-searchrow{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.twlr-searchrow input[type=search],.twlr-searchrow select{min-height:39px;border:1px solid #d5dfe9;border-radius:8px;background:#fff;color:var(--lr-ink);padding:6px 10px;font-size:13px}
.twlr-searchrow input[type=search]{flex:1;min-width:165px}
.twlr-searchrow .twlr-fav-filter{font-size:12px;display:flex;gap:6px;align-items:center;white-space:nowrap}
.twlr-searchrow input[type=checkbox]{accent-color:#f0ae25}
.twlr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.twlr-station{border:1px solid var(--lr-border);background:#fff;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:13px;min-width:0;transition:border-color .12s,box-shadow .12s}
.twlr-station.is-selected{border-color:#77a9d3;box-shadow:0 0 0 2px #d8e9f7}
.twlr-station-top{display:flex;gap:10px;align-items:flex-start}
.twlr-flag{width:37px;height:37px;display:grid;place-items:center;background:#f2f5fa;border-radius:9px;font-size:23px;flex-shrink:0}
.twlr-station-details{flex:1;min-width:0}
.twlr-station-details h4{overflow-wrap:anywhere;font-size:16px}
.twlr-station-details span{color:var(--lr-sub);font-size:12px}
.twlr .twlr-fav{border:0;background:transparent;font-size:23px;line-height:1;color:#a9b4c0;padding:0 3px}
.twlr .twlr-fav.is-fav{color:#f1ac25}
.twlr-station>p{color:#617186;font-size:13px;min-height:39px}
.twlr-station-foot{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:auto}
.twlr-tag{font-size:11px;line-height:1.2;color:#527188;white-space:normal}
.twlr .twlr-select{font-size:12px;background:#ecf3fc;border:0;border-radius:7px;color:#1e5f97;font-weight:750;padding:8px 10px;white-space:nowrap}
.twlr .twlr-select:hover{background:#dceafa}
.twlr-empty{padding:16px;color:#6a7d8d;text-align:center}
.twlr-recording{border:1px solid var(--lr-border);padding:12px 14px;border-radius:9px;margin-top:9px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.twlr-rec-meta{display:flex;flex-direction:column;gap:2px}
.twlr-rec-meta strong{font-size:14px}.twlr-rec-meta span{color:var(--lr-sub);font-size:12px}
.twlr-rec-actions{display:flex;flex-wrap:wrap;gap:6px}
.twlr-rec-actions button{background:#f2f7fc;border:1px solid #d8e5f0;color:#2d587b;padding:7px 9px;border-radius:7px;font-size:12px}
.twlr-rec-actions button.twlr-delete{color:#9c3943;border-color:#f0d3d7;background:#fff5f6}
.twlr-recording audio{width:100%;margin-top:5px}
.twlr-empty-recordings{color:#748395;background:#f8fafc;border-radius:10px;padding:18px;text-align:center}
.twlr-note{font-size:12px;color:#738398;margin-top:15px!important}
.twlr-foot{text-align:center;font-size:12px;color:#8997a7;padding:0 0 18px}
@keyframes twlr-pulse{50%{box-shadow:0 0 0 5px rgba(230,78,103,.15)}}
@media(max-width:1000px){.twlr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.twlr{padding:0 10px;margin:18px auto}.twlr-head{flex-direction:column;align-items:flex-start}.twlr-player,.twlr-directory,.twlr-recordings{padding:15px;border-radius:13px}.twlr-grid{grid-template-columns:1fr}.twlr-player-info{gap:9px}.twlr-station-symbol{width:43px;height:43px;font-size:22px}.twlr-current h3{font-size:20px}.twlr-live{font-size:9px}.twlr-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.twlr .twlr-btn{white-space:normal;min-width:0;padding:10px 9px;font-size:12px}.twlr .twlr-btn-link{grid-column:span 2}.twlr-controls-sub label{flex:1}.twlr-timer{margin-left:0}.twlr-section-head{align-items:flex-start}.twlr-rec-actions{width:100%}.twlr-rec-actions button{flex:1}.twlr-station>p{min-height:0}}
@media(prefers-reduced-motion:reduce){.twlr .twlr-btn-record.is-recording{animation:none}}

.twlr .twlr-btn-study,.twlr .twlr-study-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 10px;border-radius:9px;background:#e3f5ed;border:1px solid #a1d4c1;color:#116044;text-decoration:none;font-size:12px;font-weight:700}
.twlr .twlr-btn-study[hidden]{display:none!important}
.twlr .twlr-study-link:hover{background:#c8f1e0}

/* Public mode: browsing and listening only; recording/library are not exposed. */
.twlr:not(.twlr-in-admin) [data-record],.twlr:not(.twlr-in-admin) [data-pause],.twlr:not(.twlr-in-admin) [data-duration],.twlr:not(.twlr-in-admin) .twlr-recordings{display:none!important}

/* Station selection is always available next to the player, including when Study is open. */
.twlr .twlr-station-picker{display:flex;align-items:center;gap:10px;margin:16px 0 2px;font-size:13px;font-weight:700;color:var(--lr-sub);min-width:0}
.twlr .twlr-station-picker select{width:100%;min-width:0;max-width:100%;padding:7px 10px;border:1px solid #c9d7e8;border-radius:9px;background:#fff;color:var(--lr-ink);height:41px}
.twlr-wave-wrap[hidden],.twlr [data-window][hidden]{display:none!important}
.twlr .twlr-btn-window{border-color:#b0dacc;background:#eaf8f1;color:#14674e}
@media(max-width:650px){.twlr .twlr-station-picker{align-items:stretch;flex-direction:column;gap:4px}}
