/* Presentation only: no changes to scheduling, data, or interaction geometry. */
:root {
  --ink: #202335; --muted: #62677b; --line: #dcd6e5;
  --page: #172238; --surface: #fcfaff; --blue: #5267a4;
  --blue-dark: #354d8c; --blue-soft: #edf1fc; --punk-yellow: #f5d48c;
  --gold: #bb945b; --gold-light: #ffedc7;
  --pearl: linear-gradient(135deg,#fffefa 0%,#faf7ff 55%,#fffdfa 100%);
  --soft-shadow: 0 3px 9px #3a315b20, inset 0 1px 1px #fff;
}
html { background: #172238; }
body { background: #172238 url('./assets/celestial-sky.svg') center top / cover fixed; color: var(--ink); }
html body .app-header { background: transparent; border-bottom: 1px solid #d8b77c99; box-shadow: 0 2px 8px #edc98f20; }
html body .app-header h1 { color: #fff9ee; font-family: 'Hiragino Mincho ProN','Yu Mincho',serif; letter-spacing: .08em; font-weight: 700; text-shadow: 0 2px 8px #0006; }
html body .brand-mark { background: linear-gradient(145deg,#253451,#111b30); border: 1px solid #f3d6a1; box-shadow: 0 0 13px #ffd79870,inset 0 0 5px #fff3; }
html body .brand-mark svg { stroke: #ffe3a6; }
html body .app-header .logout-button { color: #f9e8c7; background: #23314ed9; border: 1px solid #be9f6f; border-radius: 9px; box-shadow: 0 2px 5px #0002; }
html body .panel, html.embedded body .schedule-panel { border: 1px solid #c4a574; border-radius: 22px; background: var(--pearl); box-shadow: 0 0 0 3px #fff8,0 0 20px #f9d39b35,0 12px 26px #060e2733; }
html body .timeline { background: linear-gradient(130deg,#fffefb,#f7f3fc 55%,#fffcf7); }
html body .time-labels { background: #faf7fc; }
html body .time-label { color: #434458; font-weight: 650; }
html body .grid-line { border-color: #ece7f0; }
html body .grid-line.hour, html body .time-grid, html body .time-grid::after { border-color: #d6ccdf; }
html body .schedule-header, html.embedded body .schedule-header { background: linear-gradient(155deg,#e6e1f0eF,#fffaf3f5 55%,#ece7f2); color: var(--ink); border-color: #c8b18b; }
html body .schedule-header .header-button, html body .schedule-header .logout-button,
html.embedded body .schedule-header .header-button, html.embedded body .schedule-header .logout-button { border: 1px solid #bcad9a; border-radius: 12px; color: #24283c; background: linear-gradient(#fff,#f4eff7); box-shadow: var(--soft-shadow); font-weight: 700; }
html body .schedule-header #open-templates { background: linear-gradient(#fffef9,#e2d1be); border-color: #c1aa88; }
html body .schedule-header #open-weekday { background: linear-gradient(#f9edff,#d1afea); border-color: #b69acb; }
html body .schedule-header #open-status { background: linear-gradient(#f2ffef,#bee0ad); border-color: #9cb88a; }
html body .schedule-header #open-memos { background: linear-gradient(#fff9f3,#edc5ac); border-color: #cda88e; }
html body .schedule-header #open-workouts { background: linear-gradient(#f3f9ff,#bdd5f3); border-color: #93acd1; }
html body .schedule-header .create-button, html.embedded body .schedule-header .create-button,
html body .save-button, html body .use-template, html body .page-item-add button:not(#add-routine-divider), html body .auth-submit { color: #513b1b; background: linear-gradient(175deg,#fff3c8 0%,#f5d58a 55%,#e8bb64 100%); border: 1px solid #b08a50; border-radius: 10px; box-shadow: inset 0 0 0 2px #fff3,0 3px 8px #8d693d30; }
html body .schedule-header .create-button, html.embedded body .schedule-header .create-button { width: 100%; border-radius: 13px; }
html body button:hover { filter: brightness(1.025); }
html body button:focus-visible, html body input:focus-visible, html body select:focus-visible, html body textarea:focus-visible { outline: 2px solid #546aab; outline-offset: 2px; }
html body .zoom-controls button, html.embedded body .zoom-controls button { background: linear-gradient(#fff,#eee8f2); border: 1px solid #afa4bb; color: #34374c; box-shadow: 0 2px 5px #332e4a25; }
html body .zoom-controls #zoom-reset, html.embedded body .zoom-controls #zoom-reset { color: #34374c; background: transparent; border-color: transparent; box-shadow: none; }
html body .remaining-panel { background: #fff9; border: 1px solid #c8b99f; border-radius: 12px; }
html body #create-remaining { background: transparent; color: #675135; }
html body .remaining-hint { color: #737184; }
html body .remaining-item, html body .remaining-item[data-color] { color: #25283b; border: 1px solid var(--tint-edge,#bbb3c7); border-radius: 10px; box-shadow: var(--soft-shadow); }
html body .remaining-item-note { color: #4b4a60; }
html body .remaining-item-count { border-color: #c0ad92; border-radius: 6px; color: #55462f; background: #fffaf1; }
html body .event-card, html body .event-card[data-color], html.mobile-agenda body .event-card.agenda-card, html.embedded body .event-card { color: #252538; border: 1px solid var(--tint-edge,#afa6bd); border-radius: 12px; box-shadow: 0 3px 7px #44354e25,inset 0 0 0 2px #ffffff70; background: linear-gradient(140deg,#ffffff85,var(--tint,#e9e5ef) 65%,#ffffff45),var(--tint,#e9e5ef); }
html body .event-card[data-color="red"], html body .remaining-item[data-color="red"] { --tint: #edafc6; --tint-edge: #cc93a9; }
html body .event-card[data-color="blue"], html body .remaining-item[data-color="blue"] { --tint: #aecff4; --tint-edge: #8eadd1; }
html body .event-card[data-color="green"], html body .remaining-item[data-color="green"] { --tint: #addcc7; --tint-edge: #8dbba7; }
html body .event-card[data-color="yellow"], html body .remaining-item[data-color="yellow"] { --tint: #f6df9b; --tint-edge: #d3b36a; }
html body .event-card[data-color="purple"], html body .remaining-item[data-color="purple"] { --tint: #cfaff0; --tint-edge: #b591cf; }
html body .event-card[data-color="orange"], html body .remaining-item[data-color="orange"] { --tint: #f2c299; --tint-edge: #d2a37f; }
html body .event-card[data-color="gray"], html body .remaining-item[data-color="gray"] { --tint: #d0cbdf; --tint-edge: #aaa5bc; }
html body .remaining-item[data-color] { background: linear-gradient(140deg,#ffffff90,var(--tint)),var(--tint); }
html body .event-card.completed { opacity: .65; filter: saturate(.65); }
html body .event-name { font-weight: 750; }
html body .card-note { color: #464256; }
html body .card-link { color: #38598d; }
html body .card-checklist-badge, html body .overlap-count { background: linear-gradient(#fffdf4,#f1e5d7); border: 1px solid #c0a785; border-radius: 9px; color: #5e452c; box-shadow: 0 1px 4px #79593e20; }
html body .event-check, html body .status-check, html body .task-completed-control input, html body .page-item-check, html body .routine-completion { accent-color: #997ab0; }
html body .resize-handle::after { background: #73678070; border-radius: 3px; }
html body .mobile-drag-grip { color: #8d7c99; }
/* Gold now marker uses exactly the existing time-position calculations. */
html body .current-time-indicator span, html.embedded body .current-time-indicator span, html.mobile-agenda body .agenda-now span { color: #533819; background: linear-gradient(#fff6d5,#f2cc78); border: 1px solid #b18a49; border-radius: 8px; box-shadow: 0 2px 5px #9b77352e; }
html body .current-time-indicator i, html.mobile-agenda body .agenda-now i { height: 2px; background: #c8993e; filter: drop-shadow(0 0 3px #f8d88e); }
html body .current-time-indicator i::before, html.mobile-agenda body .agenda-now i::before { content: ''; position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(90deg,#d1a24d,#ffdf8c,#b88935); clip-path: none; border-radius: 2px; }
html body .modal-backdrop { background: #101b36aa; backdrop-filter: blur(5px); }
html body .modal, html body .modal.workout-modal, html.embedded body #modal-backdrop .modal, html body .auth-card { color: #272639; background: linear-gradient(133deg,#fffefa 0%,#faf7ff 56%,#fffdfa 100%); border: 1px solid #bc9e75; border-radius: 18px; box-shadow: 0 0 0 3px #fff9,0 0 22px #e6c08735,0 18px 48px #070e3250; }
html body .modal-heading { border-bottom: 1px solid #cbb38b; padding-bottom: 12px; }
html body .modal h2, html body .auth-card h2 { font-family: 'Hiragino Mincho ProN','Yu Mincho',serif; letter-spacing: .04em; color: #272639; }
html body .close-button, html.embedded body #modal-backdrop .close-button { color: #373245; background: linear-gradient(#fff,#f5eef4); border: 1px solid #bca27c; box-shadow: 0 2px 5px #6d526022; }
html body .field, html body .kind-switch legend, html body .task-completed-control, html body .page-items-field legend { color: #373449; }
html body .field input, html body .field textarea, html body .field select, html body .time-picker-trigger,
html body #task-form .field input, html body #task-form .field textarea, html body #task-form .field select,
html.embedded body #task-form .field input, html.embedded body #task-form .field textarea, html body .page-item-add input, html body #task-form .page-item-add input { color: #28273b; background: linear-gradient(150deg,#fff,#f6f2fa); border: 1px solid #a89caf; border-radius: 7px; box-shadow: inset 0 1px 3px #80708c0b; }
html body .field :is(input,textarea,select):focus { border-color: #8a70a2; box-shadow: 0 0 0 2px #8a70a21c; }
html body .kind-switch span, html body #task-form .kind-switch span, html.embedded body #task-form .kind-switch span,
html body .workout-types span, html body .workout-rating-options span { color: #353145; border: 1px solid #aaa1b8; border-radius: 7px; background: linear-gradient(#fff,#f2edf7); box-shadow: var(--soft-shadow); }
html body .kind-switch input:checked + span, html body #task-form .kind-switch input:checked + span, html.embedded body #task-form .kind-switch input:checked + span,
html body .workout-types input:checked + span, html body .workout-rating-options input:checked + span { color: #513b20; background: linear-gradient(#fff4cd,#f0ca7a); border: 1px solid #ac8545; box-shadow: inset 0 0 0 2px #fff5,0 2px 6px #a3865340; }
html body .cancel-button, html body .delete-button, html body .item-delete, html body .item-action, html body .workout-edit, html body .workout-remove, html body .weekday-picker button,
html body .page-item-add #add-routine-divider, html body .routine-modal #add-routine-divider { border: 1px solid #b6a9bb; border-radius: 8px; background: linear-gradient(#fff,#eee9f3); color: #3a3449; box-shadow: 0 2px 5px #52415e1c; }
html body .delete-button, html body .item-delete, html body .workout-remove { color: #9d3c50; border-color: #d5a5b1; background: #fff3f5; }
html body .weekday-picker button.active { color: #513b20; background: linear-gradient(#fff4cd,#f0ca7a); border-color: #b08a50; }
html body .page-items-field { border: 1px solid #ddd2e3; border-radius: 10px; background: #ffffff60; box-shadow: inset 0 1px 3px #fff; }
html body .page-items-help, html body .auth-help { color: #696176; }
html body .page-item-menu, html body .time-picker-menu { border: 1px solid #b9a6c8; border-radius: 9px; background: #fffcff; box-shadow: 0 7px 22px #35274130; }
html body .page-item-drag { color: #a395ae; }
html body .page-item-text:focus { border-color: #b49bc6; background: #fff; box-shadow: 0 0 0 2px #b49bc61c; }
html body .modal-actions { border-color: #ded1dd; }
html body .manager-item, html body .status-item, html body .workout-record { background: #fff9; border: 1px solid #d5c5da; border-radius: 10px; box-shadow: 0 2px 6px #49325515; }
html body .workout-recent-entry, html body .workout-recent-entry:nth-child(2) { color: #302e41; border: 1px solid #d8c8d6; border-radius: 9px; background: linear-gradient(145deg,#fff,#dfd0ed); box-shadow: 0 2px 5px #4a375c15; }
html body .workout-recent-entry:nth-child(2) { background: linear-gradient(145deg,#fff,#f2dfb5); }
html body .workout-recent { color: #343044; }
html body .workout-record-date { color: #383347; }
html body .workout-rest-summary { color: #484359; background: linear-gradient(#fff,#eeeaf5); border-color: #aaa1bd; border-radius: 20px; }
html body .workout-tile { background: radial-gradient(circle at 30% 22%,#fff,var(--workout-tint,#e6e2ef)); color: #303044; border: 1px solid var(--workout-edge,#a79ab7); box-shadow: inset 0 0 0 2px #ffffff90,0 4px 7px #4c3c602e; }
html body .workout-part-tag { color: #373045; border: 1px solid var(--workout-edge,#b1a4bf); border-radius: 6px; background: var(--workout-tint,#eee6f4); }
html body .workout-cardio { --workout-tint: #91d4cb; --workout-edge: #79a8a4; }
html body .workout-back { --workout-tint: #a7c8f5; --workout-edge: #7794c5; }
html body .workout-chest { --workout-tint: #efacc8; --workout-edge: #c991aa; }
html body .workout-shoulders { --workout-tint: #f4dc89; --workout-edge: #c8ae67; }
html body .workout-abs { --workout-tint: #c4df94; --workout-edge: #a6b87a; }
html body .workout-legs { --workout-tint: #d1afe9; --workout-edge: #b198c6; }
html body .workout-biceps { --workout-tint: #efc296; --workout-edge: #cba282; }
html body .workout-triceps { --workout-tint: #ccc8db; --workout-edge: #a8a3b7; }
html body .workout-rest { --workout-tint: #ccc8db; --workout-edge: #a8a3b7; }
html body .workout-types label:has([name="workout-part"]) span { background: linear-gradient(#fff,var(--workout-tint,#f2edf7)); }
html body .workout-types label:has([value="cardio"]) { --workout-tint: #a7dfd7; }
html body .workout-types label:has([value="back"]) { --workout-tint: #b5d1f7; }
html body .workout-types label:has([value="chest"]) { --workout-tint: #f0bdd1; }
html body .workout-types label:has([value="shoulders"]) { --workout-tint: #f6df9b; }
html body .workout-types label:has([value="abs"]) { --workout-tint: #cde4a9; }
html body .workout-types label:has([value="legs"]) { --workout-tint: #d8bbed; }
html body .workout-types label:has([value="biceps"]) { --workout-tint: #f3cda7; }
html body .workout-types label:has([value="triceps"]) { --workout-tint: #d7cde3; }
html body #workout-parts input:checked + span { border-color: #ac8545; box-shadow: inset 0 0 0 1px #b9976280,0 2px 5px #7c5f3820; }
html body .routine-rail, html.mobile-agenda body .routine-rail { background: #faf6fc; border-color: #c3abc9; }
html body .routine-rail button, html.mobile-agenda body .routine-rail button { color: #4b3c60; background: linear-gradient(100deg,#fff8ff,#d3b5ed); border: 1px solid #b89acb; border-radius: 8px; box-shadow: 2px 2px 5px #4c355435,inset 0 1px 2px #fff; }
html body .routine-rail #open-afternoon-routine { color: #604b2b; background: linear-gradient(100deg,#fffdf2,#edd395); border-color: #c8ae77; }
html body .routine-completion { accent-color: #a88750; }
html body #toggle-routine-checks[aria-pressed="true"] { background: linear-gradient(#fff5d1,#efce8a); border-color: #af8c55; }
html body .boot-view { color: #e4d6bf; }
@media (min-width: 0px) {
  html.mobile-agenda body .timeline, html.mobile-agenda body .events-layer { background: linear-gradient(130deg,#fffdfa,#f6f0fc); }
  html.mobile-agenda body .schedule-header { background: linear-gradient(140deg,#f2ebf8,#fdf9f0); border-color: #bea67f; }
  html.mobile-agenda body .mobile-menu-toggle { color: #695431; background: linear-gradient(#fffaf0,#ede3d4); border: 1px solid #bda57c; box-shadow: 0 2px 6px #80694a20; }
  html.mobile-agenda body #open-remaining-mobile { color: #60451f; background: linear-gradient(#fff5d3,#edcc87); border: 1px solid #b08a50; border-radius: 10px; box-shadow: 0 2px 5px #a1844f30; }
  html.mobile-agenda body .schedule-header.menu-open .schedule-actions { background: linear-gradient(145deg,#fffdf8,#eae3f4); border: 1px solid #bda47c; border-radius: 12px; box-shadow: 0 8px 25px #28244230; }
}
@media (prefers-reduced-motion: reduce) { html body button, html body .event-card { transition: none; } }
/* Restrained light facets and gold ornaments are decorative, never hit targets. */
html body .event-card[data-color], html.mobile-agenda body .event-card.agenda-card { background: linear-gradient(138deg,transparent 0 72%,#ffffff60 72% 76%,transparent 76% 86%,#ffffff70 86% 87%,transparent 87%),linear-gradient(140deg,#ffffff85,var(--tint,#e9e5ef) 65%,#ffffff45),var(--tint,#e9e5ef); }
html body .modal-heading { position: relative; }
html body .modal-heading::after { content: ''; position: absolute; bottom: -4px; left: 50%; width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid #c5a46b; background: #fffaf2; pointer-events: none; }
html body #task-form .page-items-field, html.embedded body #task-form .page-items-field { border-color: #ddd2e3; border-radius: 10px; }
html body .workout-rating-options label:has([value="Good"]) span,
html body .workout-rating-options label:has([value="Energetic"]) span { color: #287047; }
html body .workout-rating-options label:has([value="Fair"]) span,
html body .workout-rating-options label:has([value="Normal"]) span { color: #82601e; }
html body .workout-rating-options label:has([value="Bad"]) span,
html body .workout-rating-options label:has([value="Tired"]) span { color: #9b3858; }
html.mobile-agenda body .schedule-header #create-item { border-radius: 10px; }

/* Soft elevation and an inner highlight, without changing layout or hit areas. */
html body .event-card, html body .event-card[data-color], html.mobile-agenda body .event-card.agenda-card,
html.embedded body .event-card, html body .remaining-item, html body .remaining-item[data-color] {
  box-shadow: 0 3px 3px #49365816,0 7px 12px -5px #46305050,inset 0 1px 2px #fffffff0,inset 0 -1px 2px #59436f12;
}
html body .event-card:hover { box-shadow: 0 3px 3px #49365816,0 9px 15px -5px #46305055,inset 0 1px 2px #fffffff0; }
html body .schedule-header .header-button, html body .schedule-header .logout-button,
html.embedded body .schedule-header .header-button, html.embedded body .schedule-header .logout-button,
html body .cancel-button, html body .delete-button, html body .item-delete, html body .item-action,
html body .workout-edit, html body .workout-remove, html body .weekday-picker button,
html body .page-item-add #add-routine-divider, html body .routine-modal #add-routine-divider,
html body .kind-switch span, html body #task-form .kind-switch span,
html.embedded body #task-form .kind-switch span, html body .workout-types span, html body .workout-rating-options span {
  box-shadow: 0 2px 2px #4b375321,0 5px 9px -3px #5540604a,inset 0 1px 2px #fffffff0;
}
html body .schedule-header .create-button, html.embedded body .schedule-header .create-button,
html body .save-button, html body .use-template, html body .page-item-add button:not(#add-routine-divider),
html body .auth-submit, html.mobile-agenda body #open-remaining-mobile {
  box-shadow: 0 2px 2px #8e672d30,0 6px 10px -3px #9d75435c,inset 0 1px 2px #fffbe8,inset 0 -2px 2px #bf8b3f25;
}
html body .kind-switch input:checked + span, html body #task-form .kind-switch input:checked + span,
html.embedded body #task-form .kind-switch input:checked + span,
html body .workout-types input:checked + span, html body .workout-rating-options input:checked + span {
  box-shadow: 0 2px 3px #8e672d30,0 5px 9px -3px #9d754350,inset 0 1px 2px #fffbe8,inset 0 0 0 1px #fff6;
}
html body .workout-tile { box-shadow: 0 3px 3px #4b375324,0 8px 12px -5px #55406055,inset 0 1px 3px #fff,inset 0 -2px 3px #80638f12; }
html body .workout-record, html body .workout-recent-entry, html body .workout-recent-entry:nth-child(2),
html body .manager-item, html body .status-item { box-shadow: 0 2px 3px #4b37531c,0 5px 9px -4px #5540603d,inset 0 1px 2px #fff; }
html body .routine-rail button, html.mobile-agenda body .routine-rail button { box-shadow: 2px 3px 5px #4c35543d,inset 0 1px 2px #fff,inset 0 -1px 2px #80638f16; }
html body .close-button, html.embedded body #modal-backdrop .close-button,
html body .zoom-controls button, html.embedded body .zoom-controls button,
html.mobile-agenda body .mobile-menu-toggle { box-shadow: 0 2px 3px #4b375323,0 4px 7px -3px #5540604a,inset 0 1px 2px #fff; }
html body .zoom-controls #zoom-reset, html.embedded body .zoom-controls #zoom-reset { box-shadow: none; }
