/* Pixel art meets neumorphism. Loaded last. Everything here is built on the theme tokens (--bg, --ink, --line, --sd, --sl,
   --accent ...), so every theme and both light/dark modes get the same pixel accents in their own colours.
   - A bundled open-licence pixel font (Pixelify Sans, SIL OFL, fonts/OFL.txt) for headings, numbers, badges and nav labels.
     Body text and question text stay in the readable sans font.
   - Soft raised and inset surfaces are kept; key surfaces add a crisp 2px outline with notched (stepped) corners.
   - Buttons press down 2px and the shadow collapses to inset.
   - Surfaces are opaque; hover is a 1px lift or a shade change, never a glow. */
@font-face{font-family:"Pixelify Sans";src:url("fonts/PixelifySans.woff2") format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:Silkscreen;src:url("fonts/Silkscreen-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:VT323;src:url("fonts/VT323-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
:root{
  --sans:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
  --px-font:var(--sans);
  --px-r:4px;
}
html[data-font="pixelify"]{--px-font:"Pixelify Sans",var(--sans)}
html[data-font="silkscreen"]{--px-font:Silkscreen,var(--sans)}
html[data-font="vt323"]{--px-font:VT323,var(--sans)}
/* Let app panels follow the visible viewport while a mobile keyboard is open. */
.font-choice select{max-width:100%;font:inherit;color:var(--ink);background:var(--bg);border:1px solid var(--edge);border-radius:8px;padding:7px}
/* Shadows are re-declared where the tokens can change (root and the profile theme scope) so each resolves with its own colours.
   The outline is four hard 2px offsets: a frame with one-pixel notches at the corners. */
:root,.pc-scope,.profile-hero[class*=" pc-"],.item-pcard{
  --px-edge:0 -2px 0 0 var(--line),0 2px 0 0 var(--line),-2px 0 0 0 var(--line),2px 0 0 0 var(--line);
  --raise:var(--px-edge),8px 8px 18px var(--sd),-8px -8px 18px var(--sl);
  --raise-sm:var(--px-edge),5px 5px 11px var(--sd),-5px -5px 11px var(--sl);
  --raise-soft:5px 5px 11px var(--sd),-5px -5px 11px var(--sl);
  --raise-xs:2px 2px 6px var(--sd),-2px -2px 6px var(--sl);
  --inset:inset 0 2px 0 0 var(--sd),inset 6px 6px 12px var(--sd),inset -6px -6px 12px var(--sl);
  --inset-sm:inset 0 2px 0 0 var(--sd),inset 3px 3px 7px var(--sd),inset -3px -3px 7px var(--sl);
}
body{font-family:var(--sans)}
::selection{background:var(--accent);color:var(--on-accent)}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

/* ---------- Pixel type: headings, numbers, badges, nav labels ---------- */
h1,h2,h3,.hero-title,.brand strong,.eyebrow,.nav-item,.breadcrumb,.metric strong,.stat strong,.level-ring>span,.level-ring small,.player-info small,.hud-chip,.xp-pill,.stage-xp,
.badge-tier,.badge-card strong,.fame-slot strong,.mode-card strong,.launch-tile strong,.more-tile strong,.chip-stat,.combo,.gem-count,.daily-streak strong,.rank-pos,.rank-xp,.tab,.chip-btn{font-family:var(--px-font);letter-spacing:0}
h1{letter-spacing:.5px;font-weight:700}
h2,h3{font-weight:700;letter-spacing:.2px}
.nav-item{font-weight:600;font-size:15px}
.eyebrow{font-size:12px;letter-spacing:1px}
.brand small,.player-info small,.level-ring small{font-size:11px}
/* Question, lesson and card text keeps the readable sans font. */
.q-prompt,.match-q,.slide-title,.back-title,.feat-title,.q-option,.q-text,.q-hint,.flash-face h2,.flash-face h3{font-family:var(--sans)}

/* ---------- Opaque surfaces: nothing translucent over theme art ---------- */
.topbar,html[data-ui-theme] .topbar{background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none}
html[data-ui-theme] main{background:transparent;border-radius:0}
.gc-stats span,.msg.system span,.file-chip,.chat-form,.dm-quote,.dm-score,.photo-nav,.w-joy{background:color-mix(in srgb,var(--bg) 82%,var(--track));backdrop-filter:none;-webkit-backdrop-filter:none}
.chat-form{background:var(--bg)}
.sheet,.more-panel,.install-card,.levelup-card,.tour-card,.notify-panel,.pomo-panel,.radio-panel,.w-panel,.alarm-dialog,.ar-card{background:var(--bg)}

/* ---------- Stepped corners and crisp outlines on key surfaces ---------- */
.player-card,.hud-chip,.xp-pill,.chip-btn,.chip-stat,.empty-state,.stat,.launch-next,.launch-tile,.quest-chip,.search-pill,.map-tile,.mode-card,.daily-streak,.boss-card,.combo,
.q-option,.slide,.flash-face,.result-card,.achievement,.filter-bar,.photo-card,.install-banner,.toast,.more-tile,.more-tool,.auth-hero,.auth-card,.profile-hero,.metric,.profile-card,
.badge-card,.notice-card,.earned-medal,.weekly-round,.league-panel,.rank-row,.arena-hero,.queue-card,.match-card,.match-option,.player-chip,.wallet-bar,.craft-card,.item-card,
.cl-item,.review-card,.group-card,.invite-card,.person,.chat-wrap,.goal,.set-card,.member-row,.lib-card,.subject-card,.job-card,.fame-slot,.rp-now,.rp-station,.al-row,.ar-opt,
.panel,.nav-item,.button,.notify-panel,.pomo-panel,.radio-panel,.w-panel,.tour-card,.levelup-card,.alarm-dialog,.ar-card,.sheet-take,.brand-mark,.install-card .button{border-radius:var(--px-r)}
.brand-mark,.level-ring,.avatar-button,.icon-button,.round-btn,.stage-close{box-shadow:var(--raise-soft)}
.profile-hero.banner{border-radius:var(--px-r)}

/* ---------- Pixel press: a 2px step down, shadow collapses to inset ---------- */
.button,.nav-item,.launch-tile,.mode-card,.map-tile,.more-tile,.q-option,.chip-btn,.icon-button,.group-card,.set-card{transition:transform .08s steps(2),box-shadow .08s steps(2)}
button:not(:disabled):active,.button:not(:disabled):active,.launch-tile:active,.mode-card:active,.map-tile:active,.group-card:active,.q-option:not([aria-disabled]):active{transform:translateY(2px);box-shadow:var(--inset-sm);filter:none}
/* Hover is a shade change or a 1px lift. No glow, no wiggle, no brightness flash. */
.button:hover:not(:disabled){transform:translateY(-1px);filter:none}
.launch-tile:hover,.mode-card:hover,.map-tile:hover,.launch-next:hover,.group-card:hover,.q-option:hover:not([aria-disabled]),.preset:hover{transform:translateY(-1px)}
.launch-tile:hover .tile-icon,.mode-card:hover .mode-icon,.launch-tile:hover .badge-art,.mode-card:hover .badge-art,.more-tile:hover .badge-art{animation:none;translate:0 0}
.swatch:hover,.bubble:hover{transform:none;filter:none}
.pp-pick button:hover{transform:translateY(-1px) rotate(0)}
@media(hover:hover){.nav-item:hover{background:var(--track);box-shadow:none}.q-option:hover:not([aria-disabled]){box-shadow:var(--raise-xs),0 0 0 1px var(--line)}}
@media(prefers-reduced-motion:reduce){button:active,.button:active,.launch-tile:active,.mode-card:active,.map-tile:active{transition:none}}

/* ---------- Progress bars with pixel steps ---------- */
.xp-track>span,.progress-bar>span{background-image:repeating-linear-gradient(90deg,transparent 0 6px,color-mix(in srgb,var(--on-accent) 22%,transparent) 6px 8px),linear-gradient(90deg,var(--accent-2),var(--accent));border-radius:2px}
.xp-track{border-radius:3px}

/* ---------- Pixel scrollbars from the theme tokens (WebKit and Firefox, vertical and horizontal) ---------- */
html{scrollbar-color:var(--scroll-thumb) var(--scroll-track);scrollbar-width:auto}
*{scrollbar-color:var(--scroll-thumb) var(--scroll-track)}
::-webkit-scrollbar{width:14px;height:14px}
::-webkit-scrollbar-track,html::-webkit-scrollbar-track{background:var(--scroll-track);box-shadow:inset 2px 0 0 var(--line),inset 0 2px 0 var(--line)}
::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border-radius:0;border:3px solid var(--scroll-track);background-clip:padding-box;min-height:36px;min-width:36px;box-shadow:inset -2px -2px 0 rgba(0,0,0,.18),inset 2px 2px 0 rgba(255,255,255,.22)}
::-webkit-scrollbar-thumb:hover{background:var(--scroll-thumb-hover);background-clip:padding-box}
::-webkit-scrollbar-thumb:active{background:var(--accent);background-clip:padding-box}
::-webkit-scrollbar-corner{background:var(--scroll-track)}
@media(hover:hover) and (pointer:fine){.chip-row::-webkit-scrollbar,.carousel::-webkit-scrollbar,.quest-strip::-webkit-scrollbar{height:10px}}

/* Pixel display lettering stays large; dense controls and reading text use the UI face. */
h1,h2,.hero-title,.brand strong{font-family:var(--px-font);font-weight:600;line-height:1.25;letter-spacing:0}
h3,.eyebrow,.nav-item,.breadcrumb,.metric strong,.stat strong,.level-ring>span,.level-ring small,.player-info small,.hud-chip,.xp-pill,.stage-xp,.badge-tier,.badge-card strong,.fame-slot strong,.mode-card strong,.launch-tile strong,.more-tile strong,.chip-stat,.combo,.gem-count,.daily-streak strong,.rank-pos,.rank-xp,.tab,.chip-btn{font-family:var(--sans);letter-spacing:normal}
.eyebrow,.brand small,.player-info small,.level-ring small{font-size:12px;line-height:1.5}
.chat-list,.chat-form,.dm-head,.group-head p{font-family:var(--sans);font-size:16px;line-height:1.5}
/* Suppress accidental page selection while preserving native editing. */
body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,[contenteditable]:not([contenteditable="false"]){-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
img,a{-webkit-user-drag:none}

.sidebar-toggle{display:none}
@media(min-width:781px){
 .app-shell{grid-template-columns:250px minmax(0,1fr)}
 .sidebar{width:250px;overflow:hidden;align-items:stretch;gap:12px;padding:16px 14px}
 .sidebar>.brand,.sidebar>.player-card,.sidebar>.sidebar-toggle{flex-shrink:0}
 .sidebar .primary-nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;width:100%}
 .sidebar .sidebar-bottom{display:none}
 .sidebar .brand>span:last-child{display:block}
 .sidebar .player-info{display:block}
 .sidebar .nav-item{flex-direction:row;text-align:left;width:100%;justify-content:flex-start;gap:12px;padding:10px 12px;font-size:15px}
 .sidebar-toggle{display:grid;place-items:center;align-self:flex-end;width:32px;height:28px;min-height:28px;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:6px;font:700 22px var(--sans);cursor:pointer}
 html.sidebar-collapsed .app-shell{grid-template-columns:84px minmax(0,1fr)}
 html.sidebar-collapsed .sidebar{width:84px;padding-inline:10px;align-items:center}
 html.sidebar-collapsed .brand>span:last-child,html.sidebar-collapsed .player-info,html.sidebar-collapsed .nav-label,html.sidebar-collapsed .nav-group{display:none}
 html.sidebar-collapsed .brand{justify-content:center}
 html.sidebar-collapsed .player-card{padding:6px;justify-content:center;width:64px}
 html.sidebar-collapsed .sidebar .level-ring{--size:46px}
 html.sidebar-collapsed .primary-nav{display:flex;flex-direction:column;gap:6px}
 html.sidebar-collapsed .nav-item{justify-content:center;min-height:44px;padding:10px;flex-shrink:0}
 html.sidebar-collapsed .sidebar-toggle{align-self:center}
}

/* Brand and collapse control form one header, without a floating spacer row. */
@media(min-width:781px){
 .sidebar-header{display:flex;align-items:center;gap:8px;flex-shrink:0;width:100%;min-width:0}
 .sidebar-header .brand{flex:1;min-width:0;gap:8px}
 .sidebar-header .brand-mark{width:38px;height:38px;flex-shrink:0}
 .sidebar-header .brand strong{font-size:19px;letter-spacing:0}
 .sidebar-header .brand small{font-size:9px;letter-spacing:.6px;white-space:nowrap}
 .sidebar-header .sidebar-toggle{align-self:center;flex-shrink:0;width:36px;height:44px;min-height:44px;padding:6px;border:0;box-shadow:var(--raise-xs);color:var(--muted);border-radius:8px}
 .sidebar-toggle svg{width:20px;height:20px;display:block}
 .sidebar-toggle:hover{color:var(--accent);background:var(--track)}
 .sidebar-toggle:active{transform:scale(.96)}
 html.sidebar-collapsed .sidebar-header{flex-direction:column-reverse;gap:10px}
 html.sidebar-collapsed .sidebar-header .brand{flex:none}
 html.sidebar-collapsed .sidebar-header .sidebar-toggle{width:44px}
 html.sidebar-collapsed .sidebar-toggle svg{transform:rotate(180deg)}
}
@media(max-width:780px){.sidebar-header{display:none}}

/* Guide controls have separate, consistently spaced navigation and action rows. */
.help-pagination{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px;margin-top:20px}
.help-pagination .button{justify-content:center;min-width:0}
#helpPageCount{white-space:nowrap;font:500 14px var(--sans);text-align:center}
.help-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--edge)}
.help-actions .button{flex:1 1 auto;justify-content:center}
.help-steps li>div{min-width:0}.help-dialog h2{padding-right:32px}
/* Release cards fill the page rather than treating the version caption as a column. */
.changelog-page{display:block;width:100%;max-width:none}
.cl-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));padding:0;gap:18px;align-items:start}
.cl-list::before,.cl-item::before{display:none}
@media(min-width:781px){
 .sidebar-header{position:relative;display:block;padding-top:0}
 .sidebar-header .brand{padding-right:40px;min-height:44px}
 .sidebar-header .sidebar-toggle{position:absolute;right:0;top:0}
 .sidebar-header .brand>span:last-child,.sidebar .player-info,.sidebar .nav-label{max-width:170px;opacity:1;visibility:visible;overflow:hidden;white-space:nowrap}
 html.sidebar-collapsed .sidebar-header{display:block;padding-top:54px}
 html.sidebar-collapsed .sidebar-header .brand{padding-right:0}
 html.sidebar-collapsed .sidebar-header .sidebar-toggle{right:10px}
 html.sidebar-collapsed .sidebar-header .brand>span:last-child,html.sidebar-collapsed .sidebar .player-info,html.sidebar-collapsed .sidebar .nav-label{display:block;max-width:0;opacity:0;visibility:hidden}
 html.sidebar-collapsed .sidebar .nav-label{position:absolute;pointer-events:none}
 html.sidebar-collapsed .sidebar .brand{gap:0}
 html.sidebar-ready .app-shell{transition:grid-template-columns .25s cubic-bezier(.2,0,0,1)}
 html.sidebar-ready .sidebar{transition:width .25s cubic-bezier(.2,0,0,1),padding .25s cubic-bezier(.2,0,0,1)}
 html.sidebar-ready .sidebar-header{transition:padding-top .25s cubic-bezier(.2,0,0,1)}
 html.sidebar-ready .sidebar-header .brand>span:last-child,html.sidebar-ready .sidebar .player-info,html.sidebar-ready .sidebar .nav-label{transition:opacity .18s cubic-bezier(.2,0,0,1),max-width .25s cubic-bezier(.2,0,0,1),visibility .18s}
 html.sidebar-ready .sidebar-toggle svg{transition:transform .25s cubic-bezier(.2,0,0,1)}
}
@media(prefers-reduced-motion:reduce){html.sidebar-ready .app-shell,html.sidebar-ready .sidebar,html.sidebar-ready .sidebar-header,html.sidebar-ready .sidebar-header .brand>span:last-child,html.sidebar-ready .sidebar .player-info,html.sidebar-ready .sidebar .nav-label,html.sidebar-ready .sidebar-toggle svg{transition:none}}
@media(max-width:480px){.help-pagination{gap:10px}.help-actions{display:grid;grid-template-columns:1fr}.help-actions .button{width:100%}}

/* One full-width release column, as requested. */
body:has(#view-changelog.active) main{max-width:none}
.cl-list{grid-template-columns:minmax(0,1fr)}
/* Compact navigation uses one shared horizontal center and fixed icon targets. */
@media(min-width:781px){
 html.sidebar-collapsed .sidebar{padding-inline:10px;gap:12px}
 html.sidebar-collapsed .sidebar-header{width:64px}
 html.sidebar-collapsed .sidebar-header .brand{justify-content:center;width:64px}
 html.sidebar-collapsed .sidebar .player-card{width:64px;min-height:64px;padding:8px;gap:0;flex:none}
 html.sidebar-collapsed .sidebar .level-ring{--size:46px;width:46px;height:46px}
 html.sidebar-collapsed .sidebar .level-ring>span{font-size:18px;width:32px;height:32px;line-height:1}
 html.sidebar-collapsed .sidebar .primary-nav{width:64px;padding:4px 5px;align-items:center;scrollbar-gutter:stable}
 html.sidebar-collapsed .sidebar .nav-item{width:44px;height:44px;min-height:44px;padding:10px;gap:0;align-items:center;justify-content:center}
 html.sidebar-collapsed .sidebar .nav-icon{width:24px;min-width:24px;height:24px;font-size:22px;display:grid;place-items:center}
}
/* Recessed tracks and raised theme-accent thumbs, for every scrollable pane. */
*{scrollbar-color:color-mix(in srgb,var(--accent) 55%,var(--muted)) var(--track);scrollbar-width:thin}
@supports selector(::-webkit-scrollbar){
 *{scrollbar-color:auto;scrollbar-width:auto}
 ::-webkit-scrollbar{width:12px;height:12px}
 ::-webkit-scrollbar-track{background:linear-gradient(90deg,var(--track),var(--bg));border-radius:10px;box-shadow:inset 2px 2px 4px var(--sd),inset -1px -1px 3px var(--sl)}
 ::-webkit-scrollbar-thumb{border:2px solid var(--track);border-radius:10px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 35%,var(--bg)),color-mix(in srgb,var(--accent) 70%,var(--bg)));box-shadow:inset 1px 1px 2px var(--sl),inset -1px -1px 3px var(--sd);min-height:36px;background-clip:padding-box}
 ::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,var(--accent-2),var(--accent));background-clip:padding-box}
 ::-webkit-scrollbar-button{display:none;width:0;height:0}
 ::-webkit-scrollbar-corner{background:var(--bg)}
 .sidebar .primary-nav{scrollbar-width:auto}
}

@supports selector(::-webkit-scrollbar){html{scrollbar-color:auto}.sidebar .primary-nav::-webkit-scrollbar{width:8px}}
@media(min-width:781px){html.sidebar-collapsed .sidebar .primary-nav{padding:4px 0}html.sidebar-collapsed .sidebar .nav-item{margin-left:10px;margin-right:0}}
.group-detail-content select{font:inherit;color:var(--ink);background:var(--bg);border:1px solid var(--edge);border-radius:8px;padding:10px}

/* Counters keep their compact label on one line without squeezing icons. */
.hud-chip,.gem-count,.xp-pill,.gp-chip,.chip-stat{font-variant-numeric:tabular-nums;max-width:100%}
.hud-chip .ico,.hud-chip .gem-ico,.gem-count svg{flex-shrink:0}
.rank-xp,.pod-score,.metric strong,.stat strong,.xp-text,.xp-row>strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.rank-row .rank-person{min-width:0}.rank-xp{flex-shrink:0;min-width:5ch}
.metric,.stat,.hero-text,.player-info{min-width:0}
.metric strong,.stat strong{font-size:clamp(16px,2vw,22px)}

/* Native selects share the raised/inset surfaces used by the rest of the form. */
select,.group-detail-content select,.settings-form select,.goal-form select,.inline-form select,.field select,.perm-toggle select{
 appearance:none;-webkit-appearance:none;width:100%;min-width:0;min-height:46px;
 border:1px solid color-mix(in srgb,var(--line) 65%,transparent);border-radius:12px;
 padding:10px 38px 10px 14px;font:500 15px/1.4 var(--sans);color:var(--ink);
 background-color:var(--bg);
 background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
 background-position:calc(100% - 19px) 50%,calc(100% - 14px) 50%;background-size:5px 5px;background-repeat:no-repeat;
 box-shadow:var(--inset-sm);cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease;
}
select:hover{border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}
select:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-color:var(--accent)}
select:disabled{opacity:.55;cursor:not-allowed}
select option,select optgroup{background:var(--bg);color:var(--ink);font-family:var(--sans)}
@media(max-width:780px){select,.group-detail-content select,.settings-form select,.goal-form select,.inline-form select,.field select,.perm-toggle select{font-size:16px}}
@media(max-width:780px) and (pointer:coarse){input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]):not([type=reset]),textarea,select{font-size:16px}}
@media(prefers-reduced-motion:reduce){select{transition:none}}

/* Mobile feedback occupies its own header row, never the question or answer area. */
@media(max-width:780px){
 body.immersive .toast-stack,body.immersive .radio-pet{display:none!important}
 body.immersive .stage-top{flex-wrap:wrap;align-content:start;row-gap:8px}
 .stage-inline-notice{flex:0 0 100%;display:flex;align-items:center;gap:10px;min-width:0;padding:4px 2px 8px}
 .stage-notice-avatar{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;color:var(--accent)}
 .stage-notice-avatar svg{width:38px;height:38px}
 .stage-notice-message{position:relative;min-width:0;flex:1;max-height:104px;overflow:auto;padding:8px 12px;border-radius:12px;background:var(--bg);box-shadow:var(--inset-sm);border:1px solid var(--edge);font:500 13px/1.45 var(--sans);overflow-wrap:anywhere}
 .stage-notice-message strong{font-weight:600}.stage-notice-message>span:not(:empty){display:block;margin-top:3px;color:var(--muted)}
 .stage-inline-notice[data-source=error] .stage-notice-message{border-color:var(--accent)}
}
.stage-inline-notice{display:none}@media(max-width:780px){.stage-inline-notice{display:flex}.stage-notice-avatar{position:relative}.stage-inline-notice[data-source=pet] .stage-notice-avatar::after{content:"";position:absolute;right:-14px;top:14px;width:9px;height:9px;transform:rotate(45deg);background:var(--bg);border-left:1px solid var(--edge);border-bottom:1px solid var(--edge)}}

/* Scope compact dimensions to navigation; content level rings retain their own sizes. */
@media(min-width:781px){
 html.sidebar-collapsed .app-shell{grid-template-columns:96px minmax(0,1fr)}
 html.sidebar-collapsed .sidebar{width:96px;padding-inline:8px}
 html.sidebar-collapsed .sidebar-header{width:80px;padding-top:0;padding-bottom:54px}
 html.sidebar-collapsed .sidebar-header .brand{width:80px;justify-content:center}
 html.sidebar-collapsed .sidebar-header .sidebar-toggle{top:auto;bottom:0;right:18px}
 html.sidebar-collapsed .sidebar .primary-nav{width:80px;padding:4px 0;scrollbar-gutter:stable}
 html.sidebar-collapsed .sidebar .nav-item{width:44px;margin-left:18px;margin-right:0}
 .topbar .hud{overflow:visible;padding:6px 2px;flex-shrink:0}
 html.sidebar-ready .sidebar-header{transition:padding-top .25s cubic-bezier(.2,0,0,1),padding-bottom .25s cubic-bezier(.2,0,0,1)}
}
@media(prefers-reduced-motion:reduce){html.sidebar-ready .sidebar-header{transition:none}}
@media(min-width:781px){html.sidebar-collapsed .app-shell{grid-template-columns:108px minmax(0,1fr)}html.sidebar-collapsed .sidebar{width:108px}html.sidebar-collapsed .sidebar-header,html.sidebar-collapsed .sidebar-header .brand,html.sidebar-collapsed .sidebar .primary-nav{width:92px}html.sidebar-collapsed .sidebar-header .sidebar-toggle{right:24px}html.sidebar-collapsed .sidebar .nav-item{margin-left:24px}}
@media(min-width:781px){html.sidebar-collapsed .sidebar .primary-nav{align-items:flex-start}}
/* Include padding in the panel width and reserve room for selected reward outlines. */
.pomo-panel{box-sizing:border-box;min-width:0;scrollbar-gutter:stable;padding:20px}
.pomo-panel>*{min-width:0}
.pp-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
.pp-head>strong{white-space:normal}
.pp-head .pp-tabs{grid-row:2;grid-column:1/-1;margin:0;justify-content:stretch}
.pp-head .pp-tabs button{flex:1;min-width:0}
.pp-close{grid-column:2;grid-row:1;flex-shrink:0}
.pp-pick{padding:5px;margin:0;grid-template-columns:repeat(auto-fit,minmax(54px,1fr));gap:12px}
@media(max-width:780px){.pomo-panel{left:12px!important;right:12px!important;width:calc(100% - 24px)!important;bottom:12px!important;max-height:calc(var(--vh,100vh) - 24px)!important;border-radius:24px!important;padding:20px!important}}
/* Recording controls must remain available even when Lotl was dragged over the composer. */
body:has(#dmRec:not([hidden])) .radio-pet{display:none!important}
