/* Minimal tool themes: grouped controls, typography and deliberate space.
   Hand-drawn defaults below are preserved; product overrides are scoped. */
.appearance-group{padding:20px}.appearance-group h2{font-size:24px;margin-bottom:14px}.appearance-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0;margin:0;border:0}.appearance-choice{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px 4px;border:1px solid var(--line);border-radius:8px;font-size:14px;cursor:pointer}.appearance-choice input{position:absolute;width:1px;height:1px;opacity:0}.appearance-choice:has(input:checked){border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}.appearance-choice:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:3px}.appearance-swatch{width:58px;height:42px;border-radius:5px;border:1px solid #bbb;position:relative;background:#f4f4f2}.appearance-swatch::before{content:"";position:absolute;left:6px;right:6px;top:6px;height:16px;border-radius:3px;border:1px solid #aaa;background:#fff}.appearance-swatch::after{content:"";position:absolute;left:6px;right:24px;bottom:7px;height:4px;border-radius:2px;background:#444}.appearance-swatch.simple-light{background:#eef1f6}.appearance-swatch.simple-light::after{background:#185adb}.appearance-swatch.simple-dark{background:#15171b;border-color:#747e8f}.appearance-swatch.simple-dark::before{background:#292d34;border-color:#485365}.appearance-swatch.simple-dark::after{background:#8eafff}
:root[data-theme^=simple] {
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --bg:#f5f5f7; --paper:#fff; --ink:#161719; --muted:#656b76;
  --line:#e4e5ea; --outline:#a4a9b2; --primary:#303640; --on-primary:#fff;
  --tint:#e9edf2; --slot:#eceef2; --selected:#dce1e8;
  --metal-top:#454e5b; --metal-mid:#303741; --metal-bottom:#1d222a; --metal-text:#fff;
  --green:#166649; --green-tint:#edf7f1; --red:#ae3333; --red-tint:#fff0ef;
  --nav:rgba(245,245,247,.94); color-scheme:light;
}
:root[data-theme=simple-dark] {
  --bg:#09090b; --paper:#17181c; --ink:#f3f4f6; --muted:#a1a7b1;
  --line:#2b2d34; --outline:#737b89; --primary:#d3d8df; --on-primary:#151a22;
  --tint:#242b33; --slot:#22242b; --selected:#303a45;
  --metal-top:#e4e8ed; --metal-mid:#c2c9d2; --metal-bottom:#a5aeb9; --metal-text:#151a22;
  --green:#83d9b2; --green-tint:#172b22; --red:#ffb4aa; --red-tint:#342123;
  --nav:rgba(9,9,11,.94); color-scheme:dark;
}
:root[data-theme^=simple] body {font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased}
:root[data-theme^=simple] h1,:root[data-theme^=simple] h2,:root[data-theme^=simple] h3 {font-weight:650; letter-spacing:-.025em}
:root[data-theme^=simple] .page-heading {align-items:start; margin-bottom:24px}
:root[data-theme^=simple] .page-heading h1 {font-size:32px; line-height:1.2}
:root[data-theme^=simple] .page-heading .muted {font-size:14px; margin-top:8px}
:root[data-theme^=simple] .brand strong,:root[data-theme^=simple] .mobile-brand strong {font-size:20px; font-weight:650; letter-spacing:-.025em}
:root[data-theme^=simple] .brand small,:root[data-theme^=simple] .mobile-brand small,
:root[data-theme^=simple] .brand-mark,:root[data-theme^=simple] .sidebar-note,
:root[data-theme^=simple] img[src*="ink-dog-"],:root[data-theme^=simple] .empty-symbol,
:root[data-theme^=simple] .when-label,:root[data-theme^=simple] .paper-binding,
:root[data-theme^=simple] .paper-underleaf,:root[data-theme^=simple] .sketch-border,
:root[data-theme^=simple] .tear-handle,:root[data-theme^=simple] .floor-visual {display:none}
:root[data-theme^=simple] .paper-pad::before,:root[data-theme^=simple] .toast::before {display:none; background:none}
:root[data-theme^=simple] .sidebar,:root[data-theme^=simple] .main-nav,:root[data-theme^=simple] .app-header {background:var(--nav); border-color:var(--line)}
:root[data-theme^=simple] .main-nav a {font-size:14px; color:var(--muted); border-radius:10px; transition:color .16s,background .16s}
:root[data-theme^=simple] .main-nav a[aria-current=page] {color:var(--primary); background:var(--tint); font-weight:600}
:root[data-theme^=simple] .main-nav a[aria-current=page]>span:last-child {text-decoration:none; border:0}
:root[data-theme^=simple] .campus-button {background:var(--slot); border:0; border-radius:100px; font-size:13px; padding:9px 12px; min-height:38px; color:var(--ink); gap:6px}
:root[data-theme^=simple] .campus-button .icon {width:16px; height:16px}
:root[data-theme^=simple] .paper-pad {filter:none; max-width:560px}
:root[data-theme^=simple] .paper-sheet {background:transparent; clip-path:none; border:0; border-radius:0; padding:0; box-shadow:none}
:root[data-theme^=simple] .wizard-intro {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:0; padding:14px 0 0; margin-bottom:28px}
:root[data-theme^=simple] .home-study-shortcut {border:0;background:var(--slot);font-family:inherit;font-size:13px}
:root[data-theme^=simple] .paper-title {padding:14px 0 0; margin-bottom:24px}
:root[data-theme^=simple] .wizard-intro h1,:root[data-theme^=simple] .paper-title h1 {font-size:34px; line-height:1.2; margin:0}
:root[data-theme^=simple] .wizard-intro .muted,:root[data-theme^=simple] .paper-title p {font-size:14px; line-height:1.6; margin-top:10px; color:var(--muted)}
:root[data-theme^=simple] .time-card {padding:0}
:root[data-theme^=simple] .time-date-row {border:0; padding:0}
:root[data-theme^=simple] .plan-date {padding:14px 16px; border:0; border-radius:14px; background:var(--paper); font-size:14px; min-height:48px; width:100%}
:root[data-theme^=simple] .plan-date .icon {width:18px; height:18px}
:root[data-theme^=simple] .plan-date small {font-size:12px; color:var(--muted)}
:root[data-theme^=simple] .time-input-row {gap:10px; margin-top:22px; align-items:center; grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr)}
:root[data-theme^=simple] .time-input-row>.icon {width:18px; height:18px; color:var(--muted)}
:root[data-theme^=simple] .time-input-row .field {gap:9px; padding:16px 12px 12px; background:var(--paper); border:1px solid transparent; border-radius:18px; transition:border-color .16s,box-shadow .16s}
:root[data-theme^=simple] .time-input-row .field:focus-within {border-color:var(--primary); box-shadow:0 0 0 3px var(--tint)}
:root[data-theme^=simple] .time-input-row input {font-family:var(--font); font-variant-numeric:tabular-nums; font-size:32px; font-weight:550; letter-spacing:-.045em; min-height:46px; padding:0; border:0; background:transparent; color:var(--ink); border-radius:0; outline:0}
:root[data-theme^=simple] .time-input-row input::-webkit-calendar-picker-indicator {opacity:.65; width:16px; margin:0; padding:0}
:root[data-theme^=simple] .time-sliders {margin-top:28px; gap:17px; padding:0 4px}
:root[data-theme^=simple] .slider-label,:root[data-theme^=simple] .slider-label output {font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums}
:root[data-theme^=simple] .time-sliders input[type=range] {accent-color:var(--primary); cursor:ew-resize}
:root[data-theme^=simple] .time-sliders input[type=range]::-webkit-slider-runnable-track {height:4px; border:0; background:var(--line); border-radius:10px}
:root[data-theme^=simple] .time-sliders input[type=range]::-webkit-slider-thumb {width:22px; height:22px; margin-top:-9px; background:var(--paper); border:1px solid var(--outline); border-radius:50%; box-shadow:0 2px 5px rgba(0,0,0,.13); transition:border-color .16s,box-shadow .16s}
:root[data-theme^=simple] .time-sliders input[type=range]:active::-webkit-slider-thumb {border-color:var(--primary); box-shadow:0 0 0 5px var(--tint)}
:root[data-theme^=simple] .slider-axis {color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums}
:root[data-theme^=simple] .selected-duration {color:var(--muted); font-size:13px; border:0; padding-top:0; margin:28px 0 0}
:root[data-theme^=simple] .selected-duration strong {font-weight:600; color:var(--ink); font-size:18px}
:root[data-theme^=simple] .paper-footer {margin-top:28px; display:block; padding:0}
:root[data-theme^=simple] .primary-button {background:var(--primary); color:var(--on-primary); border:0; border-radius:14px; font-size:16px; font-weight:600; min-height:50px; box-shadow:none; transition:opacity .16s,transform .16s}
:root[data-theme^=simple] .primary-button .icon {width:18px; height:18px}
:root[data-theme^=simple] .primary-button:active {transform:scale(.985); opacity:.84}
:root[data-theme^=simple] .wizard-next {width:100%; min-height:52px}
:root[data-theme^=simple] .secondary-button,:root[data-theme^=simple] .more-button,:root[data-theme^=simple] .detail-favorite,:root[data-theme^=simple] .timetable-toolbar button,:root[data-theme^=simple] .timetable-zoom-controls button {border:0; border-radius:10px; background:var(--slot); color:var(--ink); font-size:14px; min-height:40px}
:root[data-theme^=simple] .field {font-size:13px; color:var(--muted)}
:root[data-theme^=simple] .field input,:root[data-theme^=simple] .field select,:root[data-theme^=simple] textarea,
:root[data-theme^=simple] .timetable-edit input,:root[data-theme^=simple] .timetable-edit select,:root[data-theme^=simple] .timetable-preview select {background:var(--paper); border:1px solid var(--line); border-radius:10px; color:var(--ink); font-size:16px}
:root[data-theme^=simple] .time-input-row input {background:transparent; border:0; border-radius:0; font-size:32px}
:root[data-theme^=simple] .helper {color:var(--muted); font-size:13px; line-height:1.6}
:root[data-theme^=simple] .error {background:var(--red-tint); color:var(--red); border-radius:10px; padding:12px; font-size:14px}
:root[data-theme^=simple] .preference-list {gap:0; margin-block:20px 0; border:0; border-radius:18px; background:var(--paper); overflow:hidden}
:root[data-theme^=simple] .preference-option-content {display:grid; grid-template-columns:minmax(0,1fr) 22px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; padding:21px 18px; min-height:88px; gap:14px; transition:background .18s}
:root[data-theme^=simple] .preference-option:last-child .preference-option-content {border-bottom:0}
:root[data-theme^=simple] .preference-option input:checked+.preference-option-content {border-color:var(--line); background:var(--tint)}
:root[data-theme^=simple] .preference-option:active .preference-option-content {background:var(--slot)}
:root[data-theme^=simple] .preference-copy b {font-size:16px; font-weight:600}
:root[data-theme^=simple] .preference-copy small {font-size:12px; color:var(--muted); line-height:1.5; margin-top:5px}
:root[data-theme^=simple] .radio-dot {border-color:var(--outline); border-radius:50%; width:20px; height:20px}
:root[data-theme^=simple] .preference-option input:checked+.preference-option-content .radio-dot {background:var(--primary); border-color:var(--primary); box-shadow:inset 0 0 0 5px var(--paper)}
:root[data-theme^=simple] .wizard-plan-summary {font-size:13px; background:transparent; padding:12px 0; border:0; color:var(--muted)}
:root[data-theme^=simple] .wizard-plan-summary .icon {width:15px; height:15px}
:root[data-theme^=simple] .result-query-line {font-size:13px; padding:17px 18px; margin-bottom:20px; border:0; border-radius:16px; background:var(--paper); gap:12px}
:root[data-theme^=simple] .result-query-line strong {font-size:24px; font-weight:600; font-variant-numeric:tabular-nums; letter-spacing:-.025em}
:root[data-theme^=simple] .result-query-line small {font-size:12px; margin-top:6px}
:root[data-theme^=simple] .result-query-line .icon {width:15px; height:15px}
:root[data-theme^=simple] .room-grid {background:var(--paper); border-radius:18px; overflow:hidden}
:root[data-theme^=simple] .room-card {border-color:var(--line); min-height:68px; background:transparent; margin:0}
:root[data-theme^=simple] .room-card:last-child {border-bottom:0}
:root[data-theme^=simple] .room-entry {font-size:16px; font-weight:500; padding:20px 16px; gap:12px}
:root[data-theme^=simple] .room-entry .icon {width:16px; height:16px}
:root[data-theme^=simple] .favorite-button {min-width:50px; margin-right:5px}
:root[data-theme^=simple] .favorite-button .icon {width:21px; height:21px; transition:transform .18s,color .18s}
:root[data-theme^=simple] .favorite-button:active .icon {transform:scale(1.18)}
:root[data-theme^=simple] .favorite-button[aria-pressed=true] .icon,:root[data-theme^=simple] .detail-favorite[aria-pressed=true] .icon {color:var(--primary); fill:var(--primary)}
:root[data-theme^=simple] .section-note,:root[data-theme^=simple] .detail-note {font-size:12px; line-height:1.6; color:var(--muted)}
:root[data-theme^=simple] .empty-state {padding:56px 24px; min-height:240px}
:root[data-theme^=simple] .empty-state h2 {font-size:22px}
:root[data-theme^=simple] .empty-state p {font-size:14px; color:var(--muted)}
:root[data-theme^=simple] .detail-hero {background:transparent; border:0; border-radius:0; padding:12px 0; box-shadow:none}
:root[data-theme^=simple] .detail-heading h1 {font-size:32px}
:root[data-theme^=simple] .detail-heading p {font-size:13px}
:root[data-theme^=simple] .detail-metadata {border-color:var(--line); margin-top:24px}
:root[data-theme^=simple] .detail-metadata span {font-size:12px}
:root[data-theme^=simple] .detail-metadata b {font-size:16px}
:root[data-theme^=simple] .schedule-panel,:root[data-theme^=simple] .settings-group,:root[data-theme^=simple] .data-sheet {background:var(--paper); border:0; border-radius:18px; box-shadow:none}
:root[data-theme^=simple] .schedule-panel h2 {font-size:20px}
:root[data-theme^=simple] .settings-row,:root[data-theme^=simple] .favorite-row {border-color:var(--line)}
:root[data-theme^=simple] .settings-row {padding:16px 18px; min-height:68px; color:var(--ink)}
:root[data-theme^=simple] .settings-row b {font-size:15px; font-weight:550}
:root[data-theme^=simple] .settings-row small,:root[data-theme^=simple] .favorite-row small {font-size:12px; line-height:1.6; color:var(--muted)}
:root[data-theme^=simple] .settings-icon {background:transparent; color:var(--muted); width:25px; height:25px; border-radius:0}
:root[data-theme^=simple] .settings-group h2 {font-size:17px}
:root[data-theme^=simple] .favorite-management-heading p,:root[data-theme^=simple] .favorite-explanation,:root[data-theme^=simple] .settings-footer {font-size:12px; color:var(--muted)}
:root[data-theme^=simple] .favorite-row b {font-size:15px; font-weight:500}
:root[data-theme^=simple] .appearance-choices {gap:3px; padding:4px; background:var(--slot); border-radius:11px}
:root[data-theme^=simple] .appearance-choice {padding:12px 2px; font-size:12px; border:0; border-radius:8px}
:root[data-theme^=simple] .appearance-swatch {display:none}
:root[data-theme^=simple] .appearance-choice:has(input:checked) {background:var(--paper); color:var(--ink); border:0; box-shadow:0 1px 4px rgba(0,0,0,.1)}
:root[data-theme^=simple] .appearance-choice:has(input:focus-visible) {outline:2px solid var(--primary)}
:root[data-theme^=simple] .public-data-group [role=status] {font-size:14px; margin-block:16px}
:root[data-theme^=simple] .public-data-switch {font-size:13px; gap:8px}
:root[data-theme^=simple] .public-data-switch input {accent-color:var(--primary); width:20px; height:20px}
:root[data-theme^=simple] .availability-panel {background:var(--green-tint); color:var(--green); border:0; border-radius:14px}
:root[data-theme^=simple] .availability-panel h2 {font-size:17px}
:root[data-theme^=simple] .availability-panel p {font-size:13px}
:root[data-theme^=simple] .availability-panel.busy {background:var(--red-tint); color:var(--red)}
:root[data-theme^=simple] .schedule-row,:root[data-theme^=simple] .info-table td,:root[data-theme^=simple] .info-table th {border-color:var(--line)}
:root[data-theme^=simple] .schedule-row:not(.occupied) {background:transparent; color:var(--green)}
:root[data-theme^=simple] .schedule-row.occupied {background:transparent; color:var(--ink)}
:root[data-theme^=simple] .schedule-row.selected {background:var(--green-tint); border-radius:10px}
:root[data-theme^=simple] .schedule-timeline {background:var(--slot); border-color:var(--line)}
:root[data-theme^=simple] .busy-bar {background:var(--outline)}
:root[data-theme^=simple] .study-bar {border-color:var(--primary)}
:root[data-theme^=simple] .timetable-scroll,:root[data-theme^=simple] .weekly-timetable {background:transparent; border-color:var(--line)}
:root[data-theme^=simple] .timetable-day,:root[data-theme^=simple] .timetable-corner,:root[data-theme^=simple] .timetable-period {background:var(--bg); color:var(--ink); border-color:var(--line)}
:root[data-theme^=simple] .timetable-cell {border-color:var(--line)}
:root[data-theme^=simple] .timetable-day.is-today {background:var(--primary); color:var(--on-primary); border-radius:8px}
:root[data-theme^=simple] .timetable-day.is-today small {color:var(--on-primary)}
:root[data-theme^=simple] .weekly-timetable .timetable-course,:root[data-theme^=simple] .timetable-course {background:var(--tint); color:var(--ink); border:0; border-left:2px solid var(--primary); border-radius:7px; font-family:var(--font)}
:root[data-theme^=simple] .weekly-timetable .timetable-course b {font-weight:550}
:root[data-theme^=simple] .weekly-timetable .timetable-course span,:root[data-theme^=simple] .timetable-course span {color:var(--muted)}
:root[data-theme^=simple] .timetable-empty {background:transparent; border:0; border-radius:0; text-align:left; padding:32px 0; box-shadow:none}
:root[data-theme^=simple] .timetable-empty h2 {font-size:25px}
:root[data-theme^=simple] .timetable-empty p {font-size:14px; line-height:1.7}
:root[data-theme^=simple] .timetable-edit fieldset,:root[data-theme^=simple] .timetable-conflicts fieldset,:root[data-theme^=simple] .web-shortcut-guide {border:0; background:var(--paper); border-radius:14px}
:root[data-theme^=simple] .timetable-edit legend,:root[data-theme^=simple] .timetable-conflicts legend {font-size:16px; font-weight:600}
:root[data-theme^=simple] .timetable-toolbar strong {font-size:16px; font-weight:600}
:root[data-theme^=simple] .timetable-week-heading h1 {font-size:24px}
:root[data-theme^=simple] .timetable-zoom-controls button {min-height:32px}
:root[data-theme^=simple] h1[tabindex="-1"]:focus {outline:none}
:root[data-theme^=simple] .timetable-widget-controls section {border-color:var(--line)}
:root[data-theme^=simple] .app-update-notice {background:var(--paper); border-color:var(--line); color:var(--ink)}
:root[data-theme^=simple] dialog {background:var(--paper); border:1px solid var(--line); border-radius:20px; color:var(--ink)}
:root[data-theme^=simple] dialog::backdrop {background:rgba(0,0,0,.48); backdrop-filter:blur(4px)}
:root[data-theme^=simple] .dialog-heading h2 {font-size:23px}
:root[data-theme^=simple] .dialog-campus button {border:1px solid var(--line); background:var(--bg); color:var(--ink); border-radius:12px; min-height:64px}
:root[data-theme^=simple] .dialog-campus button[aria-pressed=true] {background:var(--tint); border-color:var(--primary)}
:root[data-theme^=simple] .dialog-campus b {font-size:17px; font-weight:600}
:root[data-theme^=simple] .dialog-campus small {font-size:12px}
:root[data-theme^=simple] .toast {background:var(--paper); color:var(--ink); border:1px solid var(--line); border-radius:14px; box-shadow:0 8px 28px rgba(0,0,0,.12); font-size:14px; padding:14px 18px}
:root[data-theme^=simple] :focus-visible {outline:2px solid var(--primary); outline-offset:3px}
:root[data-theme^=simple] .icon-button {border-radius:10px}
/* Override inherited unconditional hover too, including touch browsers that retain it. */
:root[data-theme^=simple] .settings-row:hover,:root[data-theme^=simple] .icon-button:hover {background:var(--slot)}
@media(hover:hover) {
  :root[data-theme^=simple] .room-card:hover {background:var(--slot)}
  :root[data-theme^=simple] .campus-button:hover,:root[data-theme^=simple] .secondary-button:hover {filter:brightness(.97)}
}
@media(max-width:780px) {
  :root[data-theme^=simple] .app-header {height:auto; min-height:66px; padding:calc(14px + env(safe-area-inset-top)) 20px 12px; align-items:center}
  :root[data-theme^=simple] #app-main {padding:20px 20px 110px}
  :root[data-theme^=simple] .sidebar {backdrop-filter:blur(16px)}
  :root[data-theme^=simple] .main-nav {border:0; min-height:64px; height:auto; padding:7px 16px}
  :root[data-theme^=simple] .main-nav a {font-size:11px; min-height:47px; background:transparent; gap:4px; padding:3px}
  :root[data-theme^=simple] .main-nav a[aria-current=page] {background:transparent}
  :root[data-theme^=simple] .main-nav a .icon {width:21px; height:21px}
  :root[data-theme^=simple] .page-heading {margin-top:12px; margin-bottom:26px}
  :root[data-theme^=simple] .timetable-page {margin-inline:-10px; width:calc(100% + 20px)}
  :root[data-theme^=simple] .timetable-empty h2 {font-size:24px}
}
@media(max-width:360px) {
  :root[data-theme^=simple] #app-main {padding-inline:16px}
  :root[data-theme^=simple] .app-header {padding-inline:16px}
  :root[data-theme^=simple] .mobile-brand strong {font-size:19px}
  :root[data-theme^=simple] .campus-button {font-size:12px; padding-inline:10px}
  :root[data-theme^=simple] .time-input-row .field {padding-inline:10px}
  :root[data-theme^=simple] .time-input-row input {font-size:27px}
  :root[data-theme^=simple] .result-query-line {padding-inline:14px}
  :root[data-theme^=simple] .result-query-line strong {font-size:21px}
  :root[data-theme^=simple] .room-entry {font-size:15px; padding-inline:14px}
}
@media(prefers-reduced-motion:reduce) {
  :root[data-theme^=simple] *,:root[data-theme^=simple] *::before,:root[data-theme^=simple] *::after {transition:none!important; animation:none!important; scroll-behavior:auto!important}
}

/* Satin metal is limited to the main action; lighting responds to interaction. */
:root[data-theme^=simple] .primary-button {
  isolation:isolate; overflow:hidden; color:var(--metal-text); background-color:var(--metal-mid);
  background-image:linear-gradient(175deg,var(--metal-top) 0%,var(--metal-mid) 48%,var(--metal-bottom) 100%);
  border:1px solid rgba(128,137,149,.45); border-radius:13px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 -1px 0 rgba(0,0,0,.18),0 3px 7px rgba(0,0,0,.12);
  transition:transform .16s,box-shadow .16s;
}
:root[data-theme^=simple] .primary-button::before {
  content:""; position:absolute; z-index:-1; inset:0; pointer-events:none;
  background:radial-gradient(ellipse at var(--shine-x,50%) var(--shine-y,0%),rgba(255,255,255,.17),transparent 68%);
  opacity:.45; transition:opacity .16s;
}
:root[data-theme^=simple] .primary-button:active {transform:translateY(1px) scale(.985); opacity:1; box-shadow:inset 0 2px 5px rgba(0,0,0,.22),0 1px 2px rgba(0,0,0,.08)}
:root[data-theme^=simple] .primary-button:active::before {opacity:1}
@media(hover:hover) {:root[data-theme^=simple] .primary-button:hover::before {opacity:1}}
:root[data-theme^=simple] .time-sliders input[type=range]::-webkit-slider-runnable-track {background:linear-gradient(to right,var(--primary) var(--range-fill,0%),var(--line) var(--range-fill,0%))}
:root[data-theme^=simple] .time-sliders input[type=range]::-webkit-slider-thumb {background:linear-gradient(160deg,#f9fafc,#bcc4cf); border:1px solid #89929f; box-shadow:inset 0 1px 1px #fff,0 2px 4px rgba(0,0,0,.22)}
:root[data-theme=simple-dark] .time-sliders input[type=range]::-webkit-slider-thumb {background:linear-gradient(155deg,#c7cdd6,#646e7b); border-color:#c0c7d2; box-shadow:inset 0 1px 1px rgba(255,255,255,.45),0 2px 5px #000}
:root[data-theme^=simple] .preference-option input:focus-visible+.preference-option-content {outline:2px solid var(--primary); outline-offset:-3px}
:root[data-theme^=simple] .settings-row:focus-visible {outline-offset:-3px}
:root[data-theme^=simple] dialog[open] {animation:minimal-sheet-open .18s cubic-bezier(.2,.8,.2,1)}
@keyframes minimal-sheet-open {from{opacity:.6;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:780px) {
  :root[data-theme^=simple] .main-nav {position:relative; isolation:isolate}
  :root[data-theme^=simple] .main-nav::before {content:"";position:absolute;z-index:-1;top:7px;bottom:7px;left:16px;width:calc((100% - 32px)/var(--nav-count,3));border-radius:12px;background:var(--slot);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);transform:translateX(calc(var(--nav-index,0)*100%));transition:transform .24s cubic-bezier(.2,.8,.2,1)}
}
/* Hand-drawn layout stays intact, with tactile press feedback of its own. */
:root[data-theme=handdrawn] .primary-button,:root[data-theme=handdrawn] .secondary-button {transition:transform .14s}
:root[data-theme=handdrawn] .primary-button:active,:root[data-theme=handdrawn] .secondary-button:active {transform:translateY(1px) scale(.985)}
@media(prefers-reduced-motion:reduce) {
  :root[data-theme^=simple] .primary-button::before {display:none}
  :root[data-theme^=simple] .primary-button,:root[data-theme=handdrawn] .primary-button,:root[data-theme=handdrawn] .secondary-button {transition:none; transform:none!important}
}

html[data-appearance] .personal-plans .plan-filter [aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.personal-plans .page-heading{align-items:flex-start;flex-direction:column;gap:8px}
