/* Study rooms (rooms.js): the panel, and the small pill while you're in a room. Theme tokens throughout;
   above the Visual Novel stage like the Exam Library (themes.css forces .ovl backgrounds with !important). */
html:root .ovl.kzroomo{z-index:234}
.kzroom{position:relative;max-width:420px;text-align:left;display:flex;flex-direction:column;gap:12px}
.kzroom .dh{text-align:center;margin:0}
.kzroom .dp{margin:0;text-align:center}
.kzrx{position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:50%;border:1px solid var(--edge);background:var(--glass2);color:var(--sub);font-size:1.1rem;line-height:1;cursor:pointer}
.kzrx:hover{color:var(--ink)}
.kzrbig{align-self:center;min-height:44px;padding:10px 22px}
.kzror{display:flex;align-items:center;gap:10px;font-size:.78rem;color:var(--sub)}
.kzror::before,.kzror::after{content:"";flex:1;height:1px;background:var(--edge)}
.kzrjoin{display:flex;gap:8px}
.kzrjoin input{flex:1;min-width:0;text-transform:uppercase;letter-spacing:.18em;font-weight:700;text-align:center}
.kzrfine{margin:0;font-size:.74rem;color:var(--sub);text-align:center;line-height:1.4}
.kzrcode{display:flex;align-items:center;gap:10px;padding:8px 10px 8px 14px;border:1px dashed var(--edge);border-radius:12px}
.kzrcode span{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--sub)}
.kzrcode b{flex:1;font-size:1.25rem;letter-spacing:.16em;font-variant-numeric:tabular-nums}
.kzrnet{margin:0;font-size:.8rem;color:var(--sub);text-align:center}
.kzrtime{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 0 4px}
.kzrtime small{font-size:.76rem;color:var(--sub);text-align:center}
.kzrtime b{font-size:2.6rem;line-height:1.05;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.kzrtime[data-ph="focus"] b{color:var(--phy)}
.kzrtime.idle b{color:var(--sub);font-weight:400}
.kzracts{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.kzrmem{display:flex;flex-direction:column;gap:6px}
.kzrlbl{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--sub)}
.kzrmem ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:220px;overflow-y:auto}
.kzrmem li{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:10px;background:var(--glass2)}
.kzrav{flex:none;width:30px;height:30px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--edge);font-size:.75rem}
.kzrav img{width:100%;height:100%;object-fit:cover}
.kzrnm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem}
.kzrnm i{font-style:normal;font-size:.72rem;color:var(--sub)}
.kzrst{flex:none;font-size:.72rem;padding:2px 8px;border-radius:999px;border:1px solid var(--edge);color:var(--sub)}
.kzrst-focus{color:var(--phy);border-color:color-mix(in srgb,var(--phy) 50%,var(--edge))}
.kzroom .tctl{justify-content:space-between;flex-wrap:wrap}
/* the pill */
.kzrpill{position:fixed;left:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:120;display:inline-flex;align-items:center;gap:8px;max-width:calc(100vw - 24px);padding:7px 14px 7px 10px;border-radius:999px;border:1px solid var(--edge);background:var(--bg1,#1b1622);color:var(--ink);font:inherit;font-size:.8rem;font-weight:600;box-shadow:0 10px 26px -12px rgba(0,0,0,.6);cursor:pointer}
.kzrpill i{width:8px;height:8px;border-radius:50%;background:#4ade80;box-shadow:0 0 8px rgba(74,222,128,.7)}
.kzrpill b{min-width:1.4em;padding:0 6px;border-radius:999px;background:var(--glass2);font-size:.72rem;text-align:center}
.kzrpill b:empty{display:none}
.kzrpill .kzpt{font-variant-numeric:tabular-nums;color:var(--phy)}
.kzrpill .kzpt:empty{display:none}
.kzrpill[data-ph="break"] .kzpt{color:var(--sub)}
.kzrpill.kzrflash{border-color:var(--phy);box-shadow:0 0 0 2px color-mix(in srgb,var(--phy) 40%,transparent),0 10px 26px -12px rgba(0,0,0,.6)}
/* Visual Novel: Academy finish; the pill sits above Shiori's text box */
html:root:root[data-skin="novel"] body .kzroom .dh{font-family:var(--vn-serif);font-style:italic;font-weight:500}
html:root:root[data-skin="novel"] body .kzrtime[data-ph="focus"] b{color:#e2c58c;font-family:var(--vn-serif)}
html:root:root[data-skin="novel"] body .kzrpill{background:linear-gradient(180deg,#201626,#140e1a);border-color:rgba(210,174,148,.5);color:#efe4cc;font-family:var(--vn-serif)}
html:root:root[data-skin="novel"] body .kzrpill .kzpt{color:#e2c58c}
@media (min-width:768px){html:root:root[data-skin="novel"] body .kzrpill{bottom:auto;top:14px;left:50%;transform:translateX(-50%)}}
:root[data-skin="retroos"] .kzrpill{bottom:46px;border-radius:0}
@media (prefers-reduced-motion:reduce){.kzrpill i{box-shadow:none}}
