/* Six connected tool bays on one surface, rather than a scrolling stack. */
.workspace-home .workspace-page {
  --bay-edge:color-mix(in srgb,var(--border) 82%,var(--bg));
  width:calc(100% - 24px); max-width:1800px; height:calc(100dvh - var(--home-topbar-height,57px));
  padding:10px 0; margin:0 auto; display:grid; gap:8px;
  grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:40px minmax(0,1fr) minmax(0,1fr);
  overflow:hidden; min-height:0;
}
.workspace-home .study-home,.workspace-home .study-home__tools,.workspace-home .home-layout,.workspace-home .home-dashboard,.workspace-home .home-dashboard__grid { display:contents; }
.workspace-home .study-home__head { grid-column:1/-1; margin:0; align-items:center; }
.workspace-home .study-home__head h1 { margin:2px 0 0; font-size:20px; }
.workspace-home .study-home__head .workspace-eyebrow { font-size:10px; }
.workspace-home :is(.study-focus,.study-progress,.study-assistant,.workspace-section,.dashboard-calendar,.dashboard-agenda) {
  --bay-tone:var(--panel);
  min-width:0; min-height:0; position:relative; margin:0; padding:12px; border:1px solid var(--bay-edge); border-radius:8px;
  background:linear-gradient(155deg,color-mix(in srgb,var(--bay-tone) 94%,white),var(--bay-tone) 48%,color-mix(in srgb,var(--bay-tone) 92%,black));
  box-shadow:inset 0 1px 0 #ffffff14,inset 0 -2px 3px #0002,0 1px 1px #0005;
}
.workspace-home .study-focus { --bay-tone:color-mix(in srgb,var(--panel-2) 45%,var(--panel)); grid-column:1; grid-row:2; display:flex; flex-direction:column; }
.workspace-home .study-progress { --bay-tone:color-mix(in srgb,var(--panel) 97%,#d99c43); grid-column:2; grid-row:2; display:flex; flex-direction:column; }
.workspace-home .study-assistant { --bay-tone:color-mix(in srgb,var(--panel) 94%,var(--accent)); grid-column:3; grid-row:2; display:flex; flex-direction:column; }
.workspace-home .workspace-section { grid-column:1; grid-row:3; }
.workspace-home .dashboard-calendar { --bay-tone:color-mix(in srgb,var(--panel) 94%,var(--panel-2)); grid-column:2; grid-row:3; display:flex; flex-direction:column; overflow:hidden; }
.workspace-home .dashboard-agenda { grid-column:3; grid-row:3; display:flex; flex-direction:column; overflow:hidden; }
.workspace-home .study-tool-head { flex:0 0 28px; min-height:28px; margin:0 0 6px; }
.workspace-home .study-tool-head h2 { font-size:14px; }
.workspace-home .study-tool-head .study-icon { height:28px; width:28px; flex-basis:28px; font-size:19px; }
.workspace-home .study-focus__body { flex:1; min-height:0; grid-template-columns:minmax(110px,1fr) minmax(95px,.7fr); }
.workspace-home .study-focus__stage { height:100%; min-height:0; }
.workspace-home .study-focus__stage .study-dial { width:min(176px,calc(100% - 12px),calc(100cqh - 12px)); }
.workspace-home .study-focus__fallback { width:min(160px,calc(100% - 28px),calc(100cqh - 28px)); }
.workspace-home .study-focus__stage { container-type:size; }
.workspace-home .study-focus__clock strong { font-size:30px; }
.workspace-home .study-session { flex:0 0 auto; margin:6px 0 0; }
.workspace-home .study-focus>.study-session>summary { padding:8px 10px;min-height:38px;border:0;border-radius:6px;background:color-mix(in srgb,var(--panel-2) 55%,transparent);box-shadow:inset 0 1px #ffffff10;transition:background .2s; }
.workspace-home .study-focus>.study-session>summary:hover { background:var(--panel-2); }
.workspace-home .study-focus>.study-session>summary:focus:not(:focus-visible) { outline:none; }
.workspace-home .study-progress__numbers { flex:0 0 auto; margin:0 0 3px; gap:20px; }
.workspace-home .study-progress__numbers strong { font-size:19px; }
.workspace-home .study-progress__period { margin:0; min-height:28px; flex:0 0 28px; }
.workspace-home .study-progress__period button { min-height:28px; }
.workspace-home .study-progress__axis { height:20px; flex:0 0 20px; }
.workspace-home .study-progress__chart { flex:1; min-height:0; height:auto; }
.workspace-home .study-progress__scrubber { height:22px; flex:0 0 22px; }
.workspace-home .study-progress__foot { flex:0 0 24px; min-height:24px; padding-top:4px; margin-top:0; font-size:10px; }
.workspace-home .study-assistant__route { flex:1; min-height:100px; max-height:none; height:auto; gap:15px; padding-top:0; justify-content:center; }
.workspace-home .study-assistant__hub { width:40px; height:30px; }
.workspace-home .study-assistant__hub::after { top:34px; height:9px; }
.workspace-home .study-assistant__destinations button { min-height:43px; gap:3px; padding-top:4px; }
.workspace-home .study-assistant__composer { flex:0 0 auto; padding:8px 38px 8px 10px; }
.workspace-home .study-assistant__composer textarea { min-height:38px; max-height:60px; }
.workspace-home .study-assistant__suggestions { flex:0 0 auto; margin:9px 0 0; }
.workspace-home .study-assistant__suggestions button { padding:5px 0; }
.workspace-home .workspace-section__head { flex:0 0 auto; margin:0 0 6px; gap:8px; align-items:center; }
.workspace-home .workspace-section__intro > :is(p:first-child,p:last-child) { display:none; }
.workspace-home .workspace-section__head h2 { font-size:16px; }
.workspace-home .workspace-plan-summary { padding:4px 8px; font-size:10px; }
.workspace-home .workspace-plan-summary__action { display:none; }
.workspace-home .workspace-plan-summary { margin-left:auto; min-width:0; }
.workspace-console-add { color:var(--accent); background:var(--panel-2); box-shadow:inset 0 1px #ffffff18,0 2px 0 #0003; }
.workspace-console-add svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; }
.workspace-home .workspace-add-tile { display:none; }
.workspace-home .workspace-browser { border:0; padding:0; background:transparent; border-radius:0; box-shadow:none; display:flex; flex-direction:column; min-height:0; }
.workspace-home .workspace-toolbar { gap:6px; padding:4px 0 7px; flex:0 0 auto; }
.workspace-home .workspace-toolbar__controls { flex:1; min-width:0; gap:5px; }
.workspace-home .workspace-search { flex:1; min-width:50px; width:auto; }
.workspace-home .workspace-sort { max-width:106px; }
.workspace-home .workspace-sort select { width:100%; font-size:11px; }
.workspace-home .workspace-view-toggle button { min-width:28px; width:28px; min-height:32px; }
.workspace-home .workspace-dropzone { padding:6px 1px; flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; }
.workspace-home .workspace-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.workspace-home .workspace-item { min-height:88px; padding:10px; border-radius:6px; }
.workspace-home .workspace-item__name { font-size:12px; }
.workspace-home .dashboard-widget__head { padding:0 0 8px; min-height:38px; flex:0 0 auto; }
.workspace-home .dashboard-widget__head h2 { font-size:16px; }
.workspace-home .dashboard-widget__eyebrow { font-size:9px; }
.workspace-home .dashboard-widget__nav button,.workspace-home .dashboard-widget__action { width:30px; height:30px; }
.workspace-home .dashboard-calendar__grid { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; }
.workspace-home .dashboard-calendar[data-view=week] .dashboard-calendar__grid { grid-template-rows:repeat(7,minmax(28px,1fr)); gap:3px; }
.workspace-home .dashboard-calendar[data-view=week] .dashboard-calendar__day { min-height:28px; padding:5px; }
.workspace-home .dashboard-calendar[data-view=month] .dashboard-calendar__grid { grid-auto-rows:minmax(22px,1fr); }
.workspace-home .dashboard-calendar[data-view=month] .dashboard-calendar__day { box-shadow:none; }
.workspace-home .dashboard-calendar__event { font-size:10px; }
.workspace-home .dashboard-agenda__list { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; }
.workspace-home .dashboard-agenda__item:nth-child(n) { display:grid; }
.workspace-home .dashboard-agenda__copy strong { font-size:12px; }
.workspace-home .study-home__shortcuts { display:none; }
.study-session-dialog { width:min(430px,calc(100% - 24px)); max-height:calc(100dvh - 28px); padding:18px; color:var(--text); background:var(--panel); border:1px solid var(--border); border-radius:8px; box-shadow:inset 0 1px #ffffff20,0 24px 60px #0007; overflow:auto; overscroll-behavior:contain; }
.study-session-dialog[open] { animation:session-appear .22s cubic-bezier(.2,.8,.2,1); }
@keyframes session-appear { from { opacity:0;transform:translateY(10px) scale(.98); } to { opacity:1;transform:none; } }
.study-session-dialog::backdrop { background:#02071488; }
.study-session-dialog>header { display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-18px;background:var(--panel);padding:2px 0 8px;z-index:2; }
.study-session-dialog h2 { margin:0; font-size:18px; }
.study-session-dialog .study-icon { min-width:44px;min-height:44px; }
.study-session-dialog .study-icon svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; }
.study-session-dialog .study-session { margin-top:12px; }
@media(min-width:701px) and (max-width:900px) and (min-height:900px) {
  .workspace-home .workspace-page { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:40px repeat(3,minmax(0,1fr)); }
  .workspace-home .study-assistant { grid-column:1; grid-row:3; }
  .workspace-home .workspace-section { grid-column:2; grid-row:3; }
  .workspace-home .dashboard-calendar { grid-column:1; grid-row:4; }
  .workspace-home .dashboard-agenda { grid-column:2; grid-row:4; }
}
@media(max-width:700px),(min-width:701px) and (max-width:900px) and (max-height:899px),(max-height:650px) {
  .workspace-home .workspace-page { display:flex; flex-direction:column; padding:6px env(safe-area-inset-right) max(6px,env(safe-area-inset-bottom)) env(safe-area-inset-left); width:calc(100% - 16px); gap:6px; }
  .workspace-home .study-home { flex:1; min-height:0; display:grid; grid-template-rows:34px minmax(0,1fr) 62px; gap:8px; padding:0; overflow:hidden; }
  .workspace-home .study-home__head { grid-column:1; }
  .workspace-home .study-home__head h1 { font-size:18px; }
  .workspace-home .study-home__tools { min-height:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:minmax(0,1fr); gap:6px; padding:0; border:0; align-items:stretch; }
  .workspace-home :is(.study-focus,.study-progress,.study-assistant) { grid-row:1; padding:10px; }
  .workspace-home .study-focus { grid-column:1; }
  .workspace-home .study-progress { grid-column:2; }
  .workspace-home .study-assistant { grid-column:3; }
  .workspace-home .study-focus__body { display:flex; flex-direction:column; gap:4px; }
  .workspace-home .study-focus__stage { width:100%; flex:1; min-height:76px; max-height:220px; }
  .workspace-home .study-focus__actions { flex:0 0 auto; width:100%; padding:0; gap:4px; }
  .workspace-home .study-focus__state,.workspace-home .study-nudge { display:none; }
  .workspace-home .study-start { min-height:44px; padding:7px; font-size:12px; }
  .workspace-home .study-playbar { gap:5px; }
  .workspace-home .study-playbar .study-icon { width:32px;flex-basis:32px;min-height:44px; }
  .workspace-home .study-focus__clock strong { font-size:26px; }
  .workspace-home .study-focus>.study-session>summary { min-height:36px;font-size:11px;padding:5px; }
  .workspace-home [data-home-session-summary] { display:none; }
  .workspace-home .study-progress__period { justify-content:center; }
  .workspace-home .study-progress__period>span,.workspace-home .study-progress__period>[data-home-period-step] { display:none; }
  .workspace-home .study-progress__period>div { padding:0; }
  .workspace-home .study-progress__axis { height:24px; flex:0 0 24px; font-size:9px; }
  .workspace-home .study-progress__axis .study-icon { height:24px; }
  .workspace-home .study-progress__numbers { flex-direction:column; gap:5px; }
  .workspace-home .study-progress__numbers>div { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:4px; }
  .workspace-home .study-progress__numbers strong { font-size:14px; }
  .workspace-home .study-progress__numbers span { font-size:10px; }
  .workspace-home .study-progress__chart { max-height:190px; }
  .workspace-home .study-progress__chart canvas { height:calc(100% - 24px); }
  .workspace-home .study-progress__foot { flex-direction:column; align-items:flex-start; gap:1px; min-height:30px; }
  .workspace-home .study-progress__foot>span:last-child { text-align:left; }
  .workspace-home .study-assistant__suggestions { display:none; }
  .workspace-home .study-home__shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:0; }
  .workspace-home .study-home__shortcuts button { padding:10px; min-width:0; border:1px solid var(--bay-edge); border-radius:8px; background:linear-gradient(155deg,var(--panel-2),var(--panel)); box-shadow:inset 0 1px #ffffff12,inset 0 -2px 2px #0002; }
  .workspace-home .study-home__shortcuts small { max-width:none; font-size:10px; }
  .workspace-home .study-home__shortcuts span { font-size:12px; }
  .workspace-home .study-home__shortcuts b { top:8px; right:7px; }
  .workspace-home .home-layout:not([hidden]) { display:flex; flex:1; min-height:0; }
  .workspace-home .workspace-section { flex:1; }
  .workspace-home .home-dashboard:not([hidden]) { display:flex; flex:1; border:0; padding:0; }
  .workspace-home .home-dashboard__grid { display:flex; flex-direction:column; flex:1; min-height:0; height:auto; }
  .workspace-home .dashboard-widget { flex:1; }
  .workspace-home .product-home-navigation:not([hidden]) { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:2px; border:0; gap:4px; flex:0 0 42px; }
  .workspace-home .product-home-navigation button { min-height:40px; padding:5px; font-size:12px; border:0; border-radius:6px; color:var(--muted); background:transparent; }
  .workspace-home .product-home-navigation button[aria-selected=true] { background:var(--panel-2); color:var(--accent); box-shadow:inset 0 1px #ffffff14; }
}
.study-model-controls { display:flex;align-items:center;gap:3px; }
.study-model-controls button[hidden] { display:none; }
.study-model-controls svg { width:14px;height:14px;fill:currentColor; }
.workspace-home .study-assistant__route { position:relative;isolation:isolate; }
.study-assistant__route canvas { position:absolute;inset:0;width:100%;height:calc(100% - 38px);z-index:1;touch-action:none;cursor:grab;border-radius:6px; }
.study-assistant__route canvas.is-grabbing { cursor:grabbing; }
.study-assistant__route.has-organizer-depth>.study-assistant__hub { visibility:hidden; }
.study-assistant__route.has-organizer-depth>.study-assistant__destinations { position:absolute;bottom:0;left:0;right:0;z-index:2; }
.study-assistant__route.has-organizer-depth .study-assistant__destinations button { transform:none!important; }
.study-assistant__route.has-organizer-depth .study-assistant__destinations::before { display:none; }
@media(max-width:700px) {
  .study-assistant__route canvas { height:calc(100% - 28px); }
  .workspace-home .study-model-controls .study-icon { width:28px;flex-basis:28px; }
  .study-session-dialog { padding:14px; }
  .study-session-dialog>header { top:-14px; }
  .study-session__field { grid-template-columns:minmax(0,1fr) 140px;min-height:60px;gap:7px; }
  .study-session__fields label small { font-size:9px; }
}
@media(prefers-reduced-motion:reduce) { .study-session-dialog[open] { animation:none; } }
@media(max-width:700px) {
  .workspace-home .study-home { grid-template-rows:34px minmax(0,1fr) 58px; gap:6px; }
  .workspace-home .study-home__tools { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:minmax(0,1fr) minmax(110px,.4fr); }
  .workspace-home .study-assistant { grid-row:2; grid-column:1/-1; display:grid; grid-template-columns:100px minmax(0,1fr); grid-template-rows:26px minmax(0,1fr); gap:4px 8px; }
  .workspace-home .study-assistant .study-tool-head { grid-column:1/-1; margin:0; min-height:24px; height:24px; }
  .workspace-home .study-assistant .study-tool-head .study-icon { height:24px; }
  .workspace-home .study-assistant__route { grid-column:1; grid-row:2; min-height:0; height:100%; max-height:110px; padding:0; gap:10px; }
  .workspace-home .study-assistant__hub { width:28px; height:23px; }
  .workspace-home .study-assistant__hub svg { width:18px; height:18px; }
  .workspace-home .study-assistant__hub::after { top:27px; height:4px; }
  .workspace-home .study-assistant__destinations { gap:2px; }
  .workspace-home .study-assistant__destinations button { min-width:28px; min-height:30px; padding:0; }
  .workspace-home .study-assistant__destinations button>span:last-child { display:none; }
  .workspace-home .study-assistant__composer { grid-column:2; grid-row:2; align-self:center; padding:8px 32px 6px 8px; min-height:60px; }
  .workspace-home .study-assistant__composer label { font-size:11px; }
  .workspace-home .study-assistant__composer textarea { font-size:16px; min-height:44px; height:44px; margin-top:2px; }
  .workspace-home .study-assistant__composer .study-icon { width:30px; min-width:30px; height:36px; right:1px; bottom:6px; }
  .workspace-home .study-progress__numbers>div { flex-direction:column; align-items:flex-start; gap:0; }
  .workspace-home .study-progress__numbers { flex-direction:row; justify-content:space-between; gap:3px; }
  .workspace-home .study-progress__numbers strong { font-size:13px; white-space:normal; }
  .workspace-home .study-progress__foot { font-size:9px; }
  .workspace-home .study-tool-head h2 { font-size:12px; }
  .workspace-home .study-tool-head .study-icon { width:26px; flex-basis:26px; }
  .workspace-home .study-home__presence { max-width:82px; font-size:9px; }
  .workspace-home .study-home__shortcuts button { padding:9px 7px; }
  .workspace-home .study-home__shortcuts small { font-size:9px; }
  .workspace-home .study-home__head { gap:6px; }
  .workspace-home .study-home__head h1 { font-size:16px; }
}
@media(max-width:700px) and (max-height:700px) {
  .workspace-home .study-home { grid-template-rows:30px minmax(0,1fr); }
  .workspace-home .study-home__shortcuts { display:none; }
  .workspace-home .study-home__tools { grid-template-rows:minmax(0,1fr) 116px; }
  .workspace-home :is(.study-focus,.study-progress) { padding:8px; }
  .workspace-home .study-focus__clock strong { font-size:24px; }
  .workspace-home .study-progress__chart { min-height:56px; }
}
@media(max-height:650px) and (min-width:621px) {
  .workspace-home .study-home { grid-template-rows:28px minmax(0,1fr); }
  .workspace-home .study-home__shortcuts { display:none; }
  .workspace-home .study-focus__body { display:grid; grid-template-columns:minmax(80px,1fr) minmax(80px,.8fr); }
  .workspace-home .study-focus__stage { min-height:60px; }
  .workspace-home .study-progress__numbers { flex-direction:row; gap:10px; }
  .workspace-home .study-progress__numbers>div { flex-direction:column; align-items:start; gap:0; }
  .workspace-home .study-progress__axis { position:absolute; right:10px; top:80px; }
  .workspace-home .study-progress__axis>span { display:none; }
  .workspace-home .study-progress__chart { min-height:64px; }
  .workspace-home .study-assistant__route { display:none; }
  .workspace-home [data-home-motion] { display:none; }
  .workspace-home .study-assistant__composer { margin:auto 0; }
}
html.theme-light .workspace-home :is(.study-focus,.study-progress,.study-assistant,.workspace-section,.dashboard-calendar,.dashboard-agenda) {
  border-color:#dce5ef;
  background:#f8fafc;
  box-shadow:0 1px 2px rgba(39,54,74,.08);
}
html.theme-light .workspace-home :is(.study-focus,.study-progress,.study-assistant) {
  background:linear-gradient(155deg,#fbfdff,#f3f7fb);
}
html.theme-light .workspace-home :is(.workspace-console-add,.study-focus>.study-session>summary,.study-home__shortcuts button,.dashboard-calendar__day,.dashboard-calendar__view,.study-progress__period button,.study-nudge button,.study-assistant__composer,.study-assistant__destinations button,.workspace-view-toggle,.workspace-search,.workspace-sort select) {
  box-shadow:none!important;
}
html.theme-light .workspace-home :is(.dashboard-calendar__day,.dashboard-agenda__item,.workspace-item) {
  border-color:#dfe7f1;
  background:#ffffff;
}
html.theme-light .workspace-home .dashboard-calendar__day.is-today {
  background:#eaf2ff;
  border-color:#9dbff3;
}
html.theme-light .workspace-home :is(.study-focus__fallback,.study-focus__stage .study-dial,.study-progress__chart canvas,.study-assistant__route canvas) {
  filter:saturate(.9) contrast(.96);
}

.home-space-disabled { display:none!important; }
.study-home__head-actions { display:flex; align-items:center; gap:8px; min-width:0; }
.study-home__customize,.home-customizer__close { width:44px; height:44px; flex:0 0 44px; display:grid; place-items:center; padding:0; border:1px solid var(--border); border-radius:7px; color:var(--muted); background:var(--panel); cursor:pointer; }
.study-home__customize:hover,.study-home__customize:focus-visible { color:var(--accent); border-color:color-mix(in srgb,var(--accent) 55%,var(--border)); background:var(--panel-2); }
.study-home__customize svg,.home-customizer__close svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.home-customizer { width:min(480px,calc(100% - 24px)); max-height:calc(100dvh - 28px); box-sizing:border-box; padding:0; border:1px solid var(--border); border-radius:8px; color:var(--text); background:var(--panel); box-shadow:0 28px 80px #0009; overflow:auto; overscroll-behavior:contain; }
.home-customizer[open] { animation:home-customizer-in .24s cubic-bezier(.2,.8,.2,1); }
.home-customizer::backdrop { background:#020714b3; backdrop-filter:blur(5px); }
.home-customizer form { padding:18px 20px; }
.home-customizer header,.home-customizer footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.home-customizer header span { display:block; color:var(--accent); font-size:10px; font-weight:700; text-transform:uppercase; }
.home-customizer h2 { margin:3px 0 0; font-size:20px; letter-spacing:0; }
.home-customizer>form>p { margin:8px 0 14px; color:var(--muted); font-size:13px; }
.home-customizer fieldset { padding:0; margin:0 0 14px; border:0; }
.home-customizer legend { margin-bottom:8px; font-size:12px; font-weight:700; color:var(--muted); }
.home-customizer__spaces { border-block:1px solid var(--border); }
.home-customizer__space { min-height:52px; display:flex; align-items:center; justify-content:space-between; gap:16px; cursor:pointer; }
.home-customizer__space + .home-customizer__space { border-top:1px solid color-mix(in srgb,var(--border) 72%,transparent); }
.home-customizer__space span { min-width:0; }
.home-customizer__space strong,.home-customizer__space small { display:block; }
.home-customizer__space strong { font-size:14px; }
.home-customizer__space small { margin-top:2px; color:var(--muted); font-size:11px; }
.home-customizer__space input { appearance:none; position:relative; width:44px; height:26px; flex:0 0 44px; margin:0; border:1px solid var(--border); border-radius:20px; background:var(--bg); cursor:pointer; }
.home-customizer__space input::after { content:''; position:absolute; left:3px; top:3px; width:18px; height:18px; border-radius:50%; background:var(--muted); transition:transform .18s cubic-bezier(.2,.8,.2,1); }
.home-customizer__space input:checked { border-color:var(--accent); background:var(--accent); }
.home-customizer__space input:checked::after { transform:translateX(18px); background:var(--bg); }
.home-customizer__space input:disabled { opacity:.55; cursor:not-allowed; }
.home-customizer__density { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.home-customizer__density label { position:relative; min-width:0; cursor:pointer; }
.home-customizer__density input { position:absolute; opacity:0; pointer-events:none; }
.home-customizer__density span { min-height:58px; box-sizing:border-box; display:flex; flex-direction:column; justify-content:center; padding:10px 12px; border:1px solid var(--border); border-radius:7px; background:var(--bg); }
.home-customizer__density small { margin-top:3px; color:var(--muted); font-size:10px; }
.home-customizer__density input:checked + span { border-color:var(--accent); background:color-mix(in srgb,var(--accent) 11%,var(--panel)); box-shadow:inset 0 0 0 1px var(--accent); }
.home-customizer :focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.home-customizer footer button { min-height:44px; padding:9px 14px; border:1px solid var(--border); border-radius:7px; color:var(--text); background:transparent; cursor:pointer; }
.home-customizer footer .home-customizer__done { margin-left:auto; min-width:96px; border-color:var(--accent); color:var(--bg); background:var(--accent); font-weight:700; }
body[data-home-density="compact"] .workspace-page { gap:5px; padding-block:6px; }
body[data-home-density="compact"] :is(.study-focus,.study-progress,.study-assistant,.workspace-section,.dashboard-calendar,.dashboard-agenda) { padding:9px; }
body[data-home-density="compact"] .workspace-item { min-height:72px; padding:8px; }
@keyframes home-customizer-in { from { opacity:0; transform:translateY(12px) scale(.98); } to { opacity:1; transform:none; } }
@media(max-width:700px) {
  .workspace-home .study-home__customize { width:38px; height:38px; flex-basis:38px; }
  body[data-home-tool-count="1"] .study-home__tools { grid-template-columns:minmax(0,1fr)!important; grid-template-rows:minmax(0,1fr)!important; }
  body[data-home-tool-count="2"] .study-home__tools { grid-template-columns:repeat(2,minmax(0,1fr))!important; grid-template-rows:minmax(0,1fr)!important; }
  body[data-home-tool-count="1"] .study-home__tools>[data-home-space],body[data-home-tool-count="2"] .study-home__tools>[data-home-space] { grid-column:auto!important; grid-row:auto!important; }
  .home-customizer form { padding:16px; }
  .home-customizer__space { min-height:56px; }
}
@media(prefers-reduced-motion:reduce) {
  .home-customizer[open] { animation:none; }
  .home-customizer__space input::after { transition:none; }
}
