/* StudyTickApp workspaces. Colors and sizing come from theme.css; type from typography.css.
   This replaces visual-refresh-20261029.css. Feature state and editable paper remain authoritative.
   !important bridges legacy selectors while those components migrate to their owning files. */
html[data-theme] body:is(.today-dashboard-preview,.group-timer-page,.ticknotes-page):not(.focus-view){background:var(--sc-bg);background-image:none!important}
html[data-theme] body :is(button,input,textarea,select){box-sizing:border-box}
html[data-theme] body :is(button,summary,.action-link,.group-back,.ticknotes-back-link){min-block-size:var(--st-control-height);touch-action:manipulation}
html[data-theme] body :is(button,select,input:not([type=checkbox]):not([type=radio]),textarea){max-inline-size:100%}
html[data-theme] body :is(button,summary){white-space:normal;overflow-wrap:break-word}
html[data-theme] body :is(h1,h2,h3,p,label,.today-timeline-task){overflow-wrap:break-word}
html[data-theme] body :is(.today-signature-head,.today-progress-card,.today-timeline-card,.group-card,.group-clock-card,.ticknotes-overview,.ticknotes-controls){min-inline-size:0}
html[data-theme] body :is(.today-manage-actions,.group-controls,.tick-day-controls){flex-wrap:wrap}
html[data-theme] body :is(.today-manage-actions,.group-controls,.tick-day-controls)>*{min-inline-size:0}
html[data-theme] body :is(.today-signature-head,.today-quick-actions,.ticknotes-overview){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html[data-theme] body :is(.today-progress-card,.today-timeline-card,.group-setup .group-card,.group-clock-card,.group-side .group-card,.group-collab-card,.ticknotes-controls,.tick-calendar){border-radius:var(--st-panel-radius)!important;box-shadow:none!important;background-image:none!important}
/* Primary actions use the foreground green; secondary controls use quiet surfaces.
   User palettes provide --sc-accent and a contrast-tested foreground. */
html[data-theme] body :is(button.primary,.group-primary,#groupStart,#stDashboardStart,#stFocusStart,.st-ux-empty-add){background:var(--st-primary)!important;color:var(--st-primary-text)!important;border:1px solid var(--st-primary)!important;box-shadow:none!important}
html[data-theme] body :is(button.primary,.group-primary,#groupStart,#stDashboardStart,#stFocusStart,.st-ux-empty-add):hover{background:var(--st-primary-hover)!important;filter:none!important}
html[data-theme] body :is(button.primary,.group-primary,#groupStart,#stDashboardStart,#stFocusStart,.st-ux-empty-add):disabled{background:var(--sc-surface-soft)!important;color:var(--sc-muted)!important;border-color:var(--sc-border)!important}
html[data-color-palette] body,html[data-custom-accent] body{--st-primary:var(--sc-accent);--st-primary-text:var(--st-colors-on-accent);--st-primary-hover:var(--sc-accent-hover)}
/* State feedback: no ambient motion, no layout movement on hover. */
html[data-theme] body :is(button,.action-link,summary){
 transition:background-color var(--st-motion-duration) var(--st-motion-ease),border-color var(--st-motion-duration) var(--st-motion-ease),color var(--st-motion-duration) var(--st-motion-ease),box-shadow var(--st-motion-duration) var(--st-motion-ease);
}
html[data-theme] body :is(button,.action-link,summary):focus-visible{outline:3px solid var(--sc-accent-strong);outline-offset:3px}
html[data-theme] body button:active:not(:disabled){box-shadow:inset 0 2px 3px #0002}
html[data-theme] body :is(input,textarea,select):focus-visible{outline:2px solid var(--sc-accent-strong);outline-offset:3px}
html[data-theme] body dialog{border:1px solid var(--sc-border);border-radius:var(--st-panel-radius);max-inline-size:calc(100vw - 24px)}
html[data-theme] body dialog[open]{animation:st-dialog-enter 150ms var(--st-motion-ease) both}
html[data-theme] body dialog::backdrop{background:rgb(10 20 18 / .58)}
html[data-theme] body .today-timeline-time{font-variant-numeric:tabular-nums;letter-spacing:-.02em}
html[data-theme] body .today-timeline-empty{padding-block:var(--st-space-3)}
html[data-theme] body .today-timeline-empty button{margin-block-start:var(--st-space-2)}
html[data-theme] body .today-progress-summary{font-family:var(--st-heading);font-size:clamp(1.1rem,1.5vw,1.5rem);font-weight:500;line-height:1.45}
html[data-theme] body .today-timeline-item.is-done .today-timeline-task{color:var(--sc-muted)}
@keyframes st-dialog-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
/* Center work within the available area, including either saved navigation layout. */
html[data-theme] body#studyTickApp:not(.focus-view) main#main{
 width:100%!important;max-width:var(--st-content-width)!important;margin-inline:auto!important;
 padding:var(--st-space-3) var(--st-page-gutter) var(--st-space-5)!important;min-width:0;
}
html[data-theme] body#studyTickApp:not(.focus-view) .today-signature{
 display:grid;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:none!important;
 gap:var(--st-space-3)!important;align-items:start!important;
}
html[data-theme] body#studyTickApp:not(.focus-view) .today-signature>*{grid-area:auto!important;min-width:0}
html[data-theme] body#studyTickApp:not(.focus-view) .today-signature-head{
 display:flex!important;align-items:center!important;justify-content:space-between;flex-wrap:wrap;
 gap:var(--st-space-3)!important;padding:var(--st-space-3) 0 var(--st-space-4)!important;
 border-bottom:1px solid var(--sc-border)!important;
}
html[data-theme] body#studyTickApp:not(.focus-view) .today-intro{flex:1 1 260px;padding:0!important}
html[data-theme] body#studyTickApp:not(.focus-view) .today-kicker{display:block;align-self:flex-start;background:transparent;padding:0;margin-bottom:8px;color:var(--sc-muted);font-size:.75rem;letter-spacing:.14em;text-transform:uppercase}
html[data-theme] body#studyTickApp:not(.focus-view) .today-greeting{font-size:var(--st-editorial-size)!important;line-height:1.08!important;letter-spacing:-.04em!important;max-width:22ch;margin:0}
html[data-theme] body#studyTickApp:not(.focus-view) .today-date{font-size:.9375rem!important;margin-top:8px!important}
/* Progress is a compact ledger; the timeline is the primary working surface. */
html[data-theme] body#studyTickApp:not(.focus-view) .today-progress-card{
 padding:var(--st-space-3) 0!important;background:transparent!important;
 border:0!important;border-block-start:3px solid var(--sc-accent-strong)!important;
 border-radius:0!important;
}
html[data-theme] body#studyTickApp:not(.focus-view) .today-timeline-card{
 padding:var(--st-space-3) var(--st-panel-padding)!important;background:var(--sc-surface)!important;
 border:0!important;border-block-start:3px solid var(--sc-accent-strong)!important;border-radius:0!important;
}
html[data-theme] body#studyTickApp:not(.focus-view) .today-progress-meta{
 font-size:var(--st-text-caption);line-height:var(--st-leading-body);
}
html[data-theme] body#studyTickApp:not(.focus-view) .today-section-heading{
 gap:12px;align-items:center;flex-wrap:wrap;
}
html[data-theme] body#studyTickApp:not(.focus-view) .today-timeline-empty{
 max-width:var(--st-reading-width);line-height:var(--st-leading-body);
}

html[data-theme] body#studyTickApp:not(.focus-view) .today-section-label{font-family:var(--st-body)!important;font-size:.75rem!important;font-weight:600!important;letter-spacing:.09em!important;text-transform:uppercase;color:var(--sc-muted)!important}
html[data-theme] body#studyTickApp:not(.focus-view) .today-timeline-item{grid-template-columns:72px 16px minmax(0,1fr)!important;gap:8px!important}
html[data-theme] body#studyTickApp:not(.focus-view) .today-timeline-actions{grid-column:3!important;flex-direction:row!important;flex-wrap:wrap!important;margin:0 0 16px!important;max-width:100%}
html[data-theme] body#studyTickApp:not(.focus-view) .today-timeline-task{font-size:1rem!important;line-height:1.5!important}
html[data-theme] body#studyTickApp:not(.focus-view) .today-timeline-target{font-size:.8125rem!important;line-height:1.5!important}
html[data-theme] body#studyTickApp:not(.focus-view) .today-quick-actions{padding:0!important}
html[data-theme] body#studyTickApp:not(.focus-view) .today-manage-heading{background:transparent!important;box-shadow:none!important;border:0!important}
html[data-theme] body#studyTickApp:not(.focus-view) .today-exam{flex:0 1 360px;min-width:0;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;border-radius:var(--st-panel-radius)}
html[data-theme] body#studyTickApp .today-exam.is-exam-setup .exam-setup-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
html[data-theme] body#studyTickApp .today-exam.is-exam-setup .exam-field input{height:auto!important;min-height:44px!important;font-size:1rem!important}
html[data-theme] body#studyTickApp .today-exam.is-exam-setup .exam-save{grid-column:1/-1!important;min-height:44px!important;height:auto!important;font-size:.875rem!important}
/* A dashboard timer shares a narrow column with progress. Stack its artwork
   and title so long task names retain a readable line length. */
html[data-theme] body#studyTickApp:not(.focus-view) .today-signature>.focus{
 display:flex!important;flex-direction:column;align-items:stretch;gap:8px;
 min-inline-size:0;
}
html[data-theme] body#studyTickApp:not(.focus-view) .today-signature>.focus #currentTask{
 font-size:1.25rem!important;line-height:1.4!important;margin-block:0 8px;
 overflow-wrap:break-word;min-inline-size:0;
}
html[data-theme] body#studyTickApp:not(.focus-view) .today-signature>.focus .chime-focus-timer-wrap{
 align-self:center;flex:none;margin-inline:auto!important;
}
/* Navigation has one active destination; inactive destinations read as links. */
html[data-theme] body#studyTickApp #stNavSidebar{border-radius:0;box-shadow:none!important;background:var(--sc-surface)}
html[data-theme] body#studyTickApp #stNavSidebar :is(.st-nav-action,#studyTickMenu):not(.st-nav-active):not(:hover):not(:focus-visible){background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html[data-theme] body#studyTickApp #stNavSidebar .st-nav-action.st-nav-active{background:var(--sc-accent-soft)!important;box-shadow:none!important;border-inline-start:3px solid var(--sc-accent-strong)!important}
/* Focus keeps the existing single face, disclosure toolbar and session controls. */
html[data-theme] body#studyTickApp.focus-view{background:var(--sc-focus)!important;color:var(--sc-focus-text)}
html[data-theme] body#studyTickApp.focus-view #stDashboardNextStep{display:none!important}
/* A floating launcher must not cover the last row of timer controls on short phones. */
html[data-theme] body#studyTickApp.focus-view > #tickStickyNotes{
 position:relative!important;inset:auto!important;float:none!important;
 width:min(480px,calc(100% - 32px))!important;max-width:calc(100% - 32px)!important;
 margin:16px auto!important;
}

/* Keep visual order equal to DOM and keyboard order. The original scheduled
   and personal buttons share a flow-based action host below the clock. */
html[data-theme] body#studyTickApp.focus-view .focus :is(#currentTask,#timer,.st-focus-face,.next,#stFocusDisclosures){order:0!important}
html[data-theme] body#studyTickApp.focus-view .focus #timer:not(.st-focus-visually-hidden){font-size:clamp(3rem,10vw,5.5rem)!important;line-height:1.15!important;margin-block:8px!important}
html[data-theme] body#studyTickApp.focus-view #exitFocus{background:var(--sc-focus-soft)!important;border-color:var(--sc-focus-border)!important;color:var(--sc-focus-text)!important}

html[data-theme] body#studyTickApp.focus-view .focus{border:0!important;box-shadow:none!important;border-radius:0!important}
html[data-theme] body#studyTickApp.focus-view .focus #currentTask{font-family:var(--st-heading)!important;font-size:clamp(1.5rem,3vw,2.5rem)!important;line-height:1.4!important;max-width:36ch;overflow-wrap:anywhere}
html[data-theme] body#studyTickApp.focus-view .focus .st-focus-toolbar{gap:8px}
html[data-theme] body#studyTickApp.focus-view .focus .st-focus-toolbar button{background:transparent!important;color:var(--sc-focus-muted)!important;border:1px solid var(--sc-focus-border)!important}
html[data-theme] body#studyTickApp.focus-view .focus .st-focus-toolbar button[aria-expanded=true]{background:var(--sc-focus-soft)!important;color:var(--sc-focus-text)!important;text-decoration:none;box-shadow:inset 0 -2px var(--sc-accent)}
/* Group Timer: preserve Focus / Tasks / Chat routing and account-bound host controls. */
html[data-theme] body.group-timer-page .group-wrap{width:100%;max-width:var(--st-content-width)!important;margin-inline:auto;padding:var(--st-space-3) var(--st-page-gutter) var(--st-space-5)!important}
html[data-theme] body.group-timer-page .group-intro h1{font-size:clamp(1.875rem,3vw,2.75rem)!important;line-height:1.2}
html[data-theme] body.group-timer-page :is(.group-setup .group-card,.group-side .group-card,.group-collab-card){padding:var(--st-space-3)!important}
html[data-theme] body.group-timer-page :is(.group-card h2,.group-room-heading h2){font-family:var(--st-body)!important;font-size:1.125rem!important;line-height:1.4!important}
html[data-theme] body.group-timer-page :is(.group-controls,.group-preset-grid,#stgRoomActions) button{min-height:44px!important}
html[data-theme] body.group-timer-page :is(.group-setup,.group-columns,.group-create-column){gap:var(--st-space-2)}
html[data-theme] body.group-timer-page .group-clock-card{background:var(--sc-surface)!important}
/* TickNotes is a writing workspace, with quiet chrome around editable paper. */
html[data-theme] body.ticknotes-page .ticknotes-main{width:100%;max-width:var(--st-content-width);margin-inline:auto;padding-inline:var(--st-page-gutter)}
html[data-theme] body.ticknotes-page .ticknotes-overview{padding:0 0 var(--st-space-3)!important;margin-bottom:var(--st-space-2)!important;border-bottom:1px solid var(--sc-border)!important}
html[data-theme] body.ticknotes-page .ticknotes-controls{padding:var(--st-space-2)!important;gap:var(--st-space-2);background:var(--sc-surface)}
html[data-theme] body.ticknotes-page :is(.ticknotes-controls,.ticknotes-return,.ticknotes-overview){flex-wrap:wrap}
html[data-theme] body.ticknotes-page .ticknotes-controls :is(input,select,button){min-height:44px}
@media(min-width:1280px){
 html[data-theme] body#studyTickApp:not(.focus-view) .today-signature>.focus{
  display:grid!important;grid-template-columns:140px minmax(0,1fr)!important;
  column-gap:16px;row-gap:8px;
 }
 html[data-theme] body#studyTickApp:not(.focus-view) .today-signature>.focus .chime-focus-timer-wrap{
  width:140px!important;height:140px!important;
 }
 html[data-theme] body#studyTickApp:not(.focus-view) .today-signature{grid-template-columns:minmax(0,.85fr) minmax(0,1.45fr)!important}
 html[data-theme] body#studyTickApp:not(.focus-view) .today-signature-head{grid-column:1/-1!important}
 html[data-theme] body#studyTickApp:not(.focus-view) .today-timeline-card{grid-column:2!important;grid-row:2/span 3!important}
 html[data-theme] body#studyTickApp:not(.focus-view) :is(.today-progress-card,.today-quick-actions,.today-manage-heading){grid-column:1!important}
}
@media(max-width:767px){
 html[data-theme] body#studyTickApp:not(.focus-view) main#main{padding-block-start:16px!important}
 html[data-theme] body#studyTickApp:not(.focus-view) .today-signature-head{align-items:flex-start!important}
 html[data-theme] body#studyTickApp:not(.focus-view) .today-exam{flex-basis:100%}
 html[data-theme] body#studyTickApp:not(.focus-view) .today-timeline-card{padding:16px!important}
 html[data-theme] body.group-timer-page .group-setup{grid-template-columns:minmax(0,1fr)!important}
 html[data-theme] body.group-timer-page :is(.group-setup .group-card,.group-side .group-card,.group-collab-card){padding:16px!important}
 html[data-theme] body.ticknotes-page :is(input:not([type=checkbox]),textarea,select){font-size:1rem!important}
 html[data-theme] body.ticknotes-page .tick-paper{padding:16px 12px}
}
@media(max-width:390px){
 html[data-theme] body#studyTickApp:not(.focus-view) .today-timeline-item{grid-template-columns:60px 12px minmax(0,1fr)!important;gap:6px!important}
 html[data-theme] body#studyTickApp .today-exam.is-exam-setup .exam-setup-form{grid-template-columns:minmax(0,1fr)!important}
}
@media(prefers-reduced-motion:reduce){html[data-theme] body *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(forced-colors:active){html[data-theme] body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid Highlight!important}html[data-theme] body :is(button.primary,.group-primary){border:1px solid ButtonText!important}}

