/* Shared semantic colors keep every surface consistent across the ten themes. */
:root { color: var(--text); background: var(--page-bg); }
body { min-height: 100dvh; background: var(--page-bg); background-attachment: fixed; }
.topbar { background: var(--header-bg); color: var(--text); }
.sidebar { background: var(--sidebar-bg); }
.tagline, .page-heading p, .day-header > p, .task-notes, .task-meta, .panel-footer, .field-hint, .optional, .calendar-legend, .list-section-header > span, .export-description, .discard-description { color: var(--muted); }
.panel, dialog, .task-menu { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--panel-shadow); }
.panel-footer, .task-row, .calendar-grid, .calendar-day, .quick-add { border-color: var(--line); }
.button, .icon-button { background: var(--surface); color: var(--text); border-color: var(--border); }
.button:hover, .icon-button:hover, .task-menu button:hover, .nav-item:hover { background: var(--surface-soft); border-color: var(--today-ring); }
.button.primary { background: var(--button-bg); border-color: var(--button-bg); color: var(--button-text); }
.button.primary:hover { background: var(--button-hover); border-color: var(--button-hover); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.calendar-day { background: var(--calendar-cell); color: var(--text); }
.calendar-day:hover { background: var(--surface-soft); }
.calendar-day.selected .day-number { background: var(--accent); color: var(--on-accent); }
.calendar-day.is-today:not(.selected) .day-number { box-shadow: inset 0 0 0 1px var(--today-ring); color: var(--accent); }
.weekdays, .calendar-day.outside .day-number { color: var(--subtle); }
.progress-track { background: var(--line); }
.progress-track > div, .done-dot { background: var(--accent); }
.pending-dot { background: var(--subtle); }
.task-check { background: var(--input-bg); border-color: var(--today-ring); color: var(--on-accent); }
.task-row.completed .task-check { background: var(--accent); border-color: var(--accent); }
.task-row.completed .task-title, .task-row.completed .task-notes { color: var(--done-text); }
.task-check:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); }
.task-row.completed .task-check:hover:not(:disabled) { background: var(--accent-hover); }
.task-row.discarded .task-check { background: var(--surface-soft); border-color: var(--border); color: var(--muted); }
.task-row.discarded .task-title { color: var(--muted); }
.row-menu-button { background: transparent; color: var(--subtle); }
.row-menu-button:hover { background: var(--surface-soft); color: var(--accent); }
.field input, .field textarea, .field select { background: var(--input-bg); border-color: var(--border); color: var(--text); }
.quick-add input { color: var(--text); }
.quick-add input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--subtle); }
.export-link, .mobile-export { color: var(--muted); }
.export-link:hover, .mobile-export:hover { color: var(--accent); }
.export-filename { color: var(--accent); }
.empty-state h3 { color: var(--muted); }
.empty-state p, .empty-state svg { color: var(--subtle); }
.error-banner { color: var(--danger-text); background: var(--danger-bg); border-color: var(--danger-text); }
.form-error { color: var(--danger-text); }
.toast { background: var(--button-bg); color: var(--button-text); }
.toast.error { background: var(--danger-text); color: #fff; }
dialog::backdrop { background: var(--overlay); }
.settings-trigger { margin-left: -10px; flex-shrink: 0; }
.settings-dialog { width: min(680px, calc(100vw - 32px)); padding: 30px; }
.settings-dialog h3 { margin: 0 0 22px; font-size: 16px; font-weight: 650; }
.settings-dialog h4 { margin: 21px 0 10px; font-size: 12px; color: var(--muted); font-weight: 500; }
.language-field { max-width: 255px; }
.glass-theme-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.account-section { border-top: 1px solid var(--border); margin-top: 30px; padding-top: 26px; }
.account-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 16px; }
.account-section-heading h3 { margin: 0; }
.account-section .field-hint { margin-bottom: 22px; }
.sign-out-button { font-size: 12px; min-height: 36px; padding: 8px 13px; }
.login-page { min-height: 100dvh; }
.login-topbar { max-width: 1320px; padding: 28px 38px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.login-topbar .brand { font-size: 27px; }
.login-topbar > .button { background: var(--header-bg); }
.login-main { width: 100%; max-width: none; padding: 28px 20px 60px; display: flex; justify-content: center; }
.login-card { width: min(455px, 100%); padding: 37px 35px 29px; align-self: start; }
.login-symbol { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 23px; }
.login-symbol svg { width: 25px; height: 25px; }
.login-card h1 { font-size: 27px; line-height: 1.3; letter-spacing: -.6px; font-weight: 650; margin: 0 0 10px; }
.login-subtitle { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 0 29px; }
.login-submit { width: 100%; margin-top: 2px; min-height: 45px; }
.initial-credentials { margin-top: 28px; padding: 21px 0 0; border-top: 1px solid var(--border); }
.initial-credentials h2 { font-size: 13px; line-height: 1.6; margin: 0 0 13px; font-weight: 600; }
.initial-credentials dl { margin: 0; padding: 0; }
.initial-credentials dl > div { display: flex; gap: 12px; justify-content: space-between; margin: 9px 0; font-size: 12px; line-height: 1.7; }
.initial-credentials dt { color: var(--muted); }
.initial-credentials dd { margin: 0; color: var(--text); }
.initial-credentials code { background: var(--surface-soft); border: 1px solid var(--border); border-radius: 4px; padding: 3px 7px; font-size: 12px; }
.initial-credentials p { color: var(--muted); font-size: 11px; line-height: 1.9; margin: 15px 0 0; }
.registration-note { color: var(--subtle); font-size: 11px; line-height: 1.8; margin: 20px 0 0; }
.account-notice { background: var(--accent-soft); color: var(--accent); padding: 12px 14px; font-size: 13px; line-height: 1.8; border-radius: 7px; margin: 0 0 20px; }
@media (max-width: 700px) {
  .topbar .tagline { display: none; }
  .settings-trigger { margin-left: 0; width: 39px; height: 39px; min-width: 39px; }
  .month-picker { font-size: 17px; }
  .login-topbar { padding: 22px 21px; }
  .login-topbar .brand { font-size: 24px; }
  .login-topbar .button { font-size: 12px; padding: 9px 12px; }
  .login-main { padding: 12px 16px 35px; }
  .login-card { padding: 28px 24px 24px; }
  .login-card h1 { font-size: 24px; }
  .login-subtitle { font-size: 13px; }
  .settings-dialog { padding: 23px; }
}
@media (max-width: 540px) {
  .glass-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
