/* User-selected appearance only. Access, event state and data are unchanged. */
:root { --display-bg:#f8fafc; --display-surface:#fff; --display-soft:#f1f5f9; --display-border:#d8e0ea; --display-text:#1e293b; --display-muted:#64748b; --display-accent:#4f46e5; }
html[data-theme="light"] { color-scheme:light; }
.display-theme-switch { display:inline-flex; align-items:center; gap:2px; padding:3px; border:1px solid #dce2eb; border-radius:8px; background:#f1f5f9; flex:0 0 auto; }
.display-theme-switch button { display:inline-flex; align-items:center; justify-content:center; gap:4px; width:auto; min-height:28px; margin:0; padding:4px 7px; border:0; border-radius:5px; background:transparent; color:#526174; cursor:pointer; font:inherit; font-size:11.5px; font-weight:600; line-height:1.3; white-space:nowrap; }
.display-theme-switch button[aria-pressed="true"] { color:#4338ca; background:#fff; box-shadow:0 1px 3px #0f172a12; }
.display-theme-switch button:focus-visible { outline:2px solid #6366f1; outline-offset:3px; }
.header-tools { flex-wrap:wrap; max-width:100%; width:auto; justify-content:flex-end; }
.access-panel > .display-theme-switch { margin:0 0 8px; }
@media (min-width:1101px) and (max-width:1750px) { .header-tools { width:260px; } }
html[data-theme="dark"] {
  color-scheme:dark;
  --display-bg:#10151e; --display-surface:#18212f; --display-soft:#202c3d; --display-border:#344257;
  --display-text:#e8edf6; --display-muted:#a9b6ca; --display-accent:#a5adff;
  --calendar-cell-bg:#151e2b; --calendar-leave-text:#a9b4c5; --calendar-leave-hover:#e4eaf4;
  background:var(--display-bg);
}
html[data-theme="dark"] body { background:var(--display-bg); color:var(--display-text); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background:#526279; }
html[data-theme="dark"] :is(.app-header,.app-sidebar,.app-main,.modal-box,.event-hover-tooltip,.access-panel) { background:var(--display-surface); color:var(--display-text); border-color:var(--display-border); }
html[data-theme="dark"] :is(.app-brand-title,#currentPeriodLabel,.header-clock-time,.today-task-title,.summary-chip strong,.editor-header h3,.editor-panel h4,.task-deadline-title) { color:var(--display-text); }
html[data-theme="dark"] :is(.header-sync) { color:#72d8b3; }
html[data-theme="dark"] :is(.header-period-nav,.day-header-grid,.calendar-bottom-summary,.today-section-box,.share-feed-box,.task-board-box,.task-deadlines,.editor-header,.editor-steps button,.editor-review,.recurrence-group) { background:var(--display-soft); border-color:var(--display-border); color:var(--display-muted); }
html[data-theme="dark"] :is(.calendar-scroll,.calendar-cell,.calendar-cell.other-month) { background:var(--calendar-cell-bg); border-color:var(--display-border); }
html[data-theme="dark"] .calendar-cell:hover { background:#1b283b; border-color:#536580; }
html[data-theme="dark"] .calendar-cell.is-today { background:#202b48!important; border-color:#7c83ed!important; box-shadow:inset 0 0 10px #818cf814!important; }
html[data-theme="dark"] .calendar-cell.is-today:hover { background:#253353!important; }
html[data-theme="dark"] .calendar-cell.is-drag-over,html[data-theme="dark"] .calendar-drop-day.is-drag-over { background:#2b3655!important; }
html[data-theme="dark"] .month-grid { border-color:var(--display-border); }
html[data-theme="dark"] .date-number:not(.today) { color:#d5deed!important; }
html[data-theme="dark"] .calendar-cell.other-month .date-number:not(.today) { color:#8290a5!important; }
html[data-theme="dark"] .date-number:not(.today):is([style*="239, 68, 68"],[style*="#ef4444"]) { color:#ff9fa8!important; }
html[data-theme="dark"] .date-number:not(.today):is([style*="37, 99, 235"],[style*="#2563eb"]) { color:#9bc4ff!important; }
html[data-theme="dark"] .day-header-grid>:first-child { color:#ff9fa8!important; }
html[data-theme="dark"] .day-header-grid>:last-child { color:#9bc4ff!important; }
html[data-theme="dark"] .holiday-tag { background:#412637; color:#ffc1d0; }
html[data-theme="dark"] .theme-meeting { background:#142e43; color:#91d6ff; border-color:#2c5b78; border-left-color:#60b7e8; }
html[data-theme="dark"] .theme-visit { background:#382a24; color:#ffc299; border-color:#714c35; border-left-color:#e99f69; }
html[data-theme="dark"] .theme-fieldwork { background:#143837; color:#9ce5df; border-color:#32615e; border-left-color:#52b8b1; }
html[data-theme="dark"] .theme-work { background:#302641; color:#dac0ff; border-color:#5e467a; border-left-color:#bd97ea; }
html[data-theme="dark"] .theme-edu { background:#18372f; color:#a0e5bb; border-color:#326552; border-left-color:#76c89b; }
html[data-theme="dark"] .theme-vacation { background:#282938; color:#c3bed2; border-color:#454459; border-left-color:#77758b; }
html[data-theme="dark"] .theme-etc { background:#253041; color:#c9d3e3; border-color:#49586d; border-left-color:#8c9db6; }
html[data-theme="dark"] .event-badge:hover { filter:brightness(1.12); }
html[data-theme="dark"] :is(.today-task-meta,.today-task-time,.sidebar-filter summary,.filter-selection-summary,.sidebar-section-title,.share-feed-summary,.developer-notes-version,.developer-notes-launch,.summary-chip,.editor-hint,.editor-time-separator,.editor-field,.task-deadlines-note,.task-deadline-meta,.task-deadlines-empty) { color:var(--display-muted); }
html[data-theme="dark"] :is(.share-feed-launch,.quote-ticker-content) { color:var(--display-text); }
html[data-theme="dark"] :is(.quote-ticker-container,.task-deadline-item) { background:var(--display-surface); border-color:var(--display-border); }
html[data-theme="dark"] .quote-ticker-badge { background:#213b5a; border-color:#35567a; color:#acd0ff; }
html[data-theme="dark"] .developer-notes-launch-box { border-color:var(--display-border); }
html[data-theme="dark"] .btn-outline { background:var(--display-surface); border-color:#53637a; color:var(--display-text); }
html[data-theme="dark"] .btn-outline:hover { background:#26354b; }
html[data-theme="dark"] .btn-danger { background:#492936; color:#ffb4bd; }
html[data-theme="dark"] .btn-danger:hover { background:#5b3042; }
html[data-theme="dark"] .btn-primary { background:#6054e4; color:#fff; }
html[data-theme="dark"] .display-theme-switch { background:#101925; border-color:#46556b; }
html[data-theme="dark"] .display-theme-switch button { background:transparent; color:#b6c2d4; }
html[data-theme="dark"] .display-theme-switch button[aria-pressed="true"] { background:#334465; color:#edf2ff; box-shadow:none; }
html[data-theme="dark"] .header-views>div { background:var(--display-soft)!important; }
html[data-theme="dark"] .header-views button { color:var(--display-muted)!important; background:transparent!important; }
html[data-theme="dark"] .header-views button:is([style*="background:#fff"],[style*="background: #fff"],[style*="background: rgb(255"]) { color:#d0d5ff!important; background:#354267!important; box-shadow:none!important; }
html[data-theme="dark"] #miniGrid button { color:#d5deed!important; }
html[data-theme="dark"] #miniGrid button[style*="239, 68, 68"] { color:#ff9fa8!important; }
html[data-theme="dark"] #miniGrid button[style*="255, 255, 255"] { color:#fff!important; }
html[data-theme="dark"] #miniMonthLabel { color:var(--display-text); }
/* Legacy renderers use inline colors. Match those specific palettes, not all descendants. */
html[data-theme="dark"] :is(.app-sidebar,#timelineContainer,.modal-box,.event-hover-tooltip) :is([style*="color: #0f172a"],[style*="color: #1e293b"],[style*="color: #334155"],[style*="color:#0f172a"],[style*="color:#334155"]) { color:var(--display-text)!important; }
html[data-theme="dark"] :is(.app-sidebar,#timelineContainer,.modal-box,.event-hover-tooltip) :is([style*="color: #64748b"],[style*="color: #475569"],[style*="color: #94a3b8"],[style*="color:#64748b"]) { color:var(--display-muted)!important; }
html[data-theme="dark"] :is(.app-sidebar,#timelineContainer,.modal-box,.event-hover-tooltip) :is([style*="color: #4f46e5"],[style*="color: #6366f1"]) { color:#aab4ff!important; }
html[data-theme="dark"] :is(#timelineContainer,.modal-box) [style*="color: #e11d48"] { color:#ffadbc!important; }
html[data-theme="dark"] :is(#timelineContainer,.modal-box,.event-hover-tooltip,#sidebarTodayTasksList) :is([style*="background: #ffffff"],[style*="background: #f8fafc"],[style*="background: rgba(255"],[style*="background: rgb(255"]) { background:var(--display-surface)!important; border-color:var(--display-border)!important; }
html[data-theme="dark"] #timelineContainer>.calendar-drop-day { background:var(--display-surface)!important; border-color:var(--display-border)!important; }
html[data-theme="dark"] #timelineContainer>.calendar-drop-day[style*="238, 242, 255"] { background:#202b48!important; border-color:#7c83ed!important; }
html[data-theme="dark"] #summaryVacations>span,html[data-theme="dark"] #summaryTodayVacations>span,html[data-theme="dark"] #todayVacationMembers { color:var(--display-muted)!important; }
html[data-theme="dark"] #pyeongtaekWeather { color:var(--display-muted); }
html[data-theme="dark"] #pyeongtaekWeather :is(.ptw-place,.ptw-temp) { color:var(--display-text); }
html[data-theme="dark"] #pyeongtaekWeather :is(.ptw-hours,.ptw-date,.ptw-status,.ptw-icon,.ptw-source) { color:var(--display-muted); }
html[data-theme="dark"] #pyeongtaekWeather .ptw-day { border-color:var(--display-border); }
html[data-theme="dark"] #pyeongtaekWeather .ptw-day.is-today { background:#2a304a; box-shadow:inset 0 0 0 1px #596288; }
html[data-theme="dark"] #pyeongtaekWeather .ptw-day.is-today :is(.ptw-date,.ptw-temp) { color:#e0e5ff; }
html[data-theme="dark"] #accessGate { background:#10151e; }
html[data-theme="dark"] .access-panel :is(h1,label) { color:var(--display-text); }
html[data-theme="dark"] .access-panel :is(p,.pst-access-status) { color:var(--display-muted); }
html[data-theme="dark"] :is(.access-panel input,.editor-field input,.editor-field select,.editor-field textarea) { color:var(--display-text); background:#111a27; border-color:#66788f; }
html[data-theme="dark"] .editor-field input:read-only { color:var(--display-muted); background:var(--display-soft); }
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder { color:#9baac0; }
html[data-theme="dark"] :is(#accessMessage,.editor-error,#recurrenceDeleteError,#normalDeleteError) { color:#ffb4bd; }
html[data-theme="dark"] :is(.editor-categories button,.editor-time-choice) { color:var(--display-text); background:var(--display-surface); border-color:#66788f; }
html[data-theme="dark"] :is(.editor-categories button[aria-pressed="true"],.editor-steps button[aria-current],.editor-time-choice:has(input:checked)) { color:#d2d7ff; background:#2c3654; border-color:#9298f4; }
html[data-theme="dark"] .editor-step-status { color:#b3baff; }
html[data-theme="dark"] .editor-series-note { color:#ffcca4; background:#3c2b21; }
html[data-theme="dark"] :is(.editor-footer,.editor-header,.recurrence-group,.pst-access-separator::before,.pst-access-separator::after) { border-color:var(--display-border); }
html[data-theme="dark"] :is(#btnDeleteThisAndFollowing,#btnDeleteAllRecurrence) { background:#342737!important; border-color:#78536a!important; }
html[data-theme="dark"] #btnDeleteThisAndFollowing [style*="color:"],html[data-theme="dark"] #btnDeleteAllRecurrence [style*="color:"] { color:#ffc6b4!important; }
html[data-theme="dark"] #tpartShareFeed {
  --toss-accent:#87b8ff; --toss-action:#8bbcff; --toss-action-hover:#2a6ad1; --toss-accent-soft:#263b59;
  --toss-text:#e8edf6; --toss-text-body:#c8d3e3; --toss-text-secondary:#a9b6ca;
  --toss-background:#111a27; --toss-surface:#18212f; --toss-surface-soft:#202c3d; --toss-divider:#39485d;
  background:var(--display-surface); color:var(--display-text); border-color:var(--display-border);
}
html[data-theme="dark"] #tpartShareFeed :is(.sf-header,.sf-compose,.sf-post,.sf-comment-bubble,.sf-calendar) { background:var(--display-surface); border-color:var(--display-border); }
html[data-theme="dark"] #tpartShareFeed :is(.sf-scroll,.sf-comments[open],.sf-post.is-deleted,.sf-card-status) { background:#111a27; border-color:var(--display-border); color:var(--display-muted); }
html[data-theme="dark"] #tpartShareFeed :is(.sf-button,.sf-calendar-grid button,.sf-icon-button) { color:var(--display-muted); }
html[data-theme="dark"] #tpartShareFeed :is(.sf-button,.sf-inline-form,.sf-edit-form,.sf-report-period,.sf-selected-week,.sf-comment-avatar,.sf-avatar,.sf-name-chip,.sf-trash-count,.sf-wizard-summary button,.sf-calendar-nav button) { background:var(--display-soft); border-color:var(--display-border); }
html[data-theme="dark"] #tpartShareFeed :is(.sf-post-actions,.sf-report-details,.sf-report-details>div,.sf-comment-form,.sf-comment-bubble,.sf-card-status,.sf-comments[open]) { border-color:var(--display-border); }
html[data-theme="dark"] #tpartShareFeed :is(.sf-post>.sf-content,.sf-report-card h3,.sf-report-details dd,.sf-task-name,.sf-report-title,.sf-wizard-success h3,.sf-calendar-nav strong) { color:var(--display-text); }
html[data-theme="dark"] #tpartShareFeed :is(.sf-edited,.sf-eyebrow,.sf-post-header time,.sf-report-dates,.sf-report-year,.sf-field-hint,.sf-optional,.sf-report-details dt,.sf-post-stats,[data-ack-count],[data-comment-count],.sf-comment-meta time,.sf-deleted-label,.sf-name-chip,.sf-comments-empty,.sf-delete-target,.sf-avatar,.sf-empty) { color:var(--display-muted); }
html[data-theme="dark"] #tpartShareFeed :is(input,select,textarea,[data-calendar-toggle]) { background:#101925; color:var(--display-text); border-color:#66788f; }
html[data-theme="dark"] #tpartShareFeed :is(input[readonly],textarea[readonly],select:disabled) { background:#202a39; color:#a3aec0; }
html[data-theme="dark"] #tpartShareFeed input::placeholder,html[data-theme="dark"] #tpartShareFeed textarea::placeholder { color:#9baac0; }
html[data-theme="dark"] #tpartShareFeed :is(.sf-primary,[data-wizard-submit],.sf-calendar-grid button.is-selected,.sf-calendar-grid button[aria-pressed="true"]) { background:#245cb5; border-color:#6fa4ed; color:#fff; }
html[data-theme="dark"] #tpartShareFeed .sf-primary:hover:enabled { background:#2b6acb; border-color:#8dbbfb; }
html[data-theme="dark"] #tpartShareFeed .sf-button:hover:enabled,html[data-theme="dark"] #tpartShareFeed .sf-icon-button:hover:enabled { background:#2c3d56; color:#deebff; }
html[data-theme="dark"] #tpartShareFeed .sf-primary:hover:enabled { background:#2b6acb; color:#fff; }
html[data-theme="dark"] #tpartShareFeed .sf-wizard-summary button:hover:enabled,html[data-theme="dark"] #tpartShareFeed .sf-post-actions .sf-button[aria-expanded="true"] { color:#b9d7ff; background:#263b59; }
html[data-theme="dark"] #tpartShareFeed :is(.sf-calendar-grid button:enabled,.sf-wizard-progress,.sf-selected-week [data-report-title]) { color:#b3d3ff; }
html[data-theme="dark"] #tpartShareFeed .sf-calendar-grid button:disabled { color:#8f9db3; }
html[data-theme="dark"] #tpartShareFeed .sf-calendar-grid button.is-in-range { background:#213957; color:#b9cbe2; }
html[data-theme="dark"] #tpartShareFeed .sf-calendar-grid button.is-selected { color:#fff; background:#245cb5; }
html[data-theme="dark"] #tpartShareFeed .sf-calendar-grid button:hover:enabled { background:#2c466a; border-color:#85ade6; }
html[data-theme="dark"] #tpartShareFeed :is(.sf-trash-toggle,.sf-status,.sf-post-actions .sf-button,.sf-empty) { background:var(--display-soft); border-color:var(--display-border); }
html[data-theme="dark"] #tpartShareFeed :is(.sf-delete-panel,.sf-permanent-delete-panel,.sf-status.is-error) { background:#35232e; border-color:#775367; color:#ffc0cc; }
html[data-theme="dark"] #tpartShareFeed :is([data-delete-confirm],[data-permanent-delete-confirm]) { background:#8d344c; color:#fff; border-color:#cb7a8f; }
html[data-theme="dark"] #tpartShareFeed :is([data-delete-toggle],.sf-permanent-delete-button,[data-wizard-status]) { color:#ffb5c6; }
html[data-theme="dark"] #tpartShareFeed .sf-category-chip { color:#d4c1ef; background:#392c4c; }
html[data-theme="dark"] #tpartShareFeed .sf-category-chip[data-category="production"] { color:#ace1c3; background:#1c3b31; }
html[data-theme="dark"] #tpartShareFeed .sf-category-chip[data-category="customer"] { color:#b2d4ff; background:#263a56; }
html[data-theme="dark"] #tpartShareFeed .sf-category-chip[data-category="other"] { color:#d1d5dd; background:#343944; }
html[data-theme="dark"] #tpartDeveloperNotes { background:#111a27; color:var(--display-text); border-color:var(--display-border); }
html[data-theme="dark"] #tpartDeveloperNotes :is(.dn-header,.dn-release,.dn-close) { background:var(--display-surface); color:var(--display-text); border-color:var(--display-border); }
html[data-theme="dark"] #tpartDeveloperNotes :is(.dn-overview,.dn-status,.dn-eyebrow,.dn-release-date,.dn-section-title,.dn-reference,.dn-details) { color:var(--display-muted); }
html[data-theme="dark"] #tpartDeveloperNotes :is(.dn-latest .dn-release-heading,.dn-latest-tag) { background:#2b3351; }
html[data-theme="dark"] #tpartDeveloperNotes :is(.dn-latest-tag,.dn-release-version) { color:#c2c8ff; }
html[data-theme="dark"] #tpartDeveloperNotes :is(.dn-release-body,.dn-latest) { border-color:#4e5b7d; }
html[data-theme="dark"] #tpartDayAgenda { background:var(--display-surface); color:var(--display-text); border-color:var(--display-border); }
html[data-theme="dark"] #tpartDayAgenda :is(.da-event,.da-button) { background:var(--display-surface); color:var(--display-text); border-color:var(--display-border); }
html[data-theme="dark"] #tpartDayAgenda :is(.da-header,.da-toolbar) { border-color:var(--display-border); }
html[data-theme="dark"] #tpartDayAgenda :is(.da-eyebrow,#tpartDayAgendaCount,.da-filter-note,.da-event-meta,.da-recurring,.da-event-arrow,.da-empty) { color:var(--display-muted); }
html[data-theme="dark"] #tpartDayAgenda .da-primary { background:#6054e4; color:#fff; }
html[data-theme="dark"] #tpartDayAgenda .da-priority { background:#492936; color:#ffb4bd; }
html[data-theme="dark"] #tpartDayAgenda .da-theme-meeting { --da-color:#91d6ff; --da-bg:#142e43; --da-border:#2c5b78; }
html[data-theme="dark"] #tpartDayAgenda .da-theme-visit { --da-color:#ffc299; --da-bg:#382a24; --da-border:#714c35; }
html[data-theme="dark"] #tpartDayAgenda .da-theme-fieldwork { --da-color:#9ce5df; --da-bg:#143837; --da-border:#32615e; }
html[data-theme="dark"] #tpartDayAgenda .da-theme-work { --da-color:#dac0ff; --da-bg:#302641; --da-border:#5e467a; }
html[data-theme="dark"] #tpartDayAgenda .da-theme-education { --da-color:#a0e5bb; --da-bg:#18372f; --da-border:#326552; }
html[data-theme="dark"] #tpartDayAgenda .da-theme-vacation { --da-color:#c3bed2; --da-bg:#282938; --da-border:#454459; }
html[data-theme="dark"] #tpartDayAgenda .da-theme-other { --da-color:#c9d3e3; --da-bg:#253041; --da-border:#49586d; }
html[data-theme="dark"] #tpartDayAgenda .da-event { border-left-color:var(--da-color); }
html[data-theme="dark"] #tpartDayAgenda .da-event:hover { background:var(--da-bg); border-color:var(--da-border); border-left-color:var(--da-color); }
html[data-theme="dark"] #tpartShareFeed [data-wizard-dot] { background:#405068; }
html[data-theme="dark"] #tpartShareFeed [data-wizard-dot]:is(.is-done,.is-current,.is-complete) { background:#87b8ff; }
html[data-theme="dark"] #tpartShareFeed :is(input,select,textarea)[aria-invalid="true"] { border-color:#f4929f; }
html[data-theme="dark"] :is(button,input,select,textarea,summary,a):focus-visible { outline-color:#a3c6ff!important; }
html[data-theme="dark"] :is(#tooltipPriorityBadge,#detailPriorityBadge)[style*="239, 68, 68"] { color:#ff9fa8!important; }
html[data-theme="dark"] .pst-access-separator::before,html[data-theme="dark"] .pst-access-separator::after { background:var(--display-border); }
html[data-theme="dark"] .app-sidebar hr { border-top-color:var(--display-border)!important; }

/* Automatic schedule and explicit manual alternatives share one compact control. */
.display-theme-manual-label { border-inline-start:1px solid currentColor; padding-inline-start:7px; margin-inline-start:4px; font-size:10px; line-height:1; color:inherit; opacity:.72; white-space:nowrap; }
.display-theme-switch { max-width:100%; }
.access-panel > .display-theme-switch { display:flex; width:max-content; flex-wrap:wrap; }
@media (max-width:390px) { .display-theme-switch { gap:0; padding:2px; } .display-theme-switch button { padding-inline:5px; font-size:11px; } .display-theme-manual-label { padding-inline-start:5px; margin-inline-start:2px; } }
