/* Shared admin palette. Load after each page's component styles. */
:root{
  --canvas:#f2f5f9;
  --surface:#ffffff;
  --ink:#172536;
  --text:#172536;
  --muted:#475569;
  --line:#cbd5e1;
  --brown:#824116;
  --brown-dark:#5b2b0e;
  --sand:#f5e7d6;
  --teal:#0f766e;
  --blue:#1d4ed8;
  --danger:#b91c1c;
}
/* Keep secondary labels readable across the existing admin components. */
.auth-back,
.auth-brand span,
.auth-story p,
.auth-story small,
.bar-column span,
.bar-count,
.blocked-panel p,
.blocked-panel>.icon,
.branch-card-bottom,
.branch-card-footer,
.branch-card>p,
.branch-details dd,
.branch-details dt,
.branch-icon,
.branch-number,
.branch-public-card p,
.branch-summary-row small,
.brand small,
.breadcrumb,
.capacity-day-header p,
.capacity-policy p,
.cell-sub,
.code-edit-table input[readonly],
.code-group,
.code-key,
.code-saved,
.code-tree-line.is-inactive .code-tree-node,
.code-tree-node small,
.content-footer,
.date-label,
.detail-grid dt,
.dialog-header p,
.dialog-kicker,
.eyebrow,
.field input:read-only,
.field-help,
.filter-field label,
.filter-reset,
.form-hint,
.history-list,
.history-list strong,
.icon-btn,
.legend,
.menu-category,
.menu-table .indented .icon,
.menu-toggle,
.nav-caption,
.pagination-current,
.panel-link,
.permission-footnote,
.permission-restricted,
.permission-tick,
.preview-note,
.radio-card,
.read-only-note,
.required-note,
.reservation-calendar-footnote,
.reservation-calendar-table thead th,
.reservation-calendar-table thead th.is-saturday,
.reservation-calendar-table thead th.is-sunday,
.reservation-day-total,
.reservation-day.is-outside .reservation-day-button,
.reservation-empty-day,
.reservation-event-guardian,
.reservation-more,
.reservation-view-switch button,
.result-caption,
.role-icon,
.search-box .icon,
.sidebar-footnote,
.stat-foot,
.stat-top,
.stat-value small,
.statistics-branch-actions button,
.statistics-branch-options small,
.statistics-branches>p,
.statistics-chart-caption,
.statistics-chart-heading>div>span,
.statistics-chart-heading>p,
.statistics-data summary,
.statistics-data summary>span,
.statistics-data-table caption,
.statistics-data-table thead th,
.statistics-eyebrow,
.statistics-filter-actions>span,
.statistics-filter-title>span,
.statistics-loading,
.statistics-result-header p,
.statistics-status-summary>span,
.statistics-total>span,
.statistics-updated,
.success-note,
.summary-heading .icon,
.summary-list dt,
.summary-notice,
.summary-notice strong,
.tab,
.tab small,
.table-empty,
.table-empty .icon,
.table-pagination,
.tiny-help,
.upcoming-note,
input::placeholder,
textarea::placeholder,
th{color:var(--muted)}
body{color:var(--ink)}
.sidebar{border-right-color:#b8c5d5}
.brand strong{color:#4e2b15}
.brand small,.nav-caption,.sidebar-footnote{color:#526174}
.nav-caption{font-size:12px;font-weight:700;letter-spacing:.03em}
.nav-item{color:#334155}
.nav-item:hover{background:#e8edf4;color:#172536}
.nav-item.active{background:var(--brown);color:#fff;box-shadow:inset 4px 0 #e3a348}
.nav-item.active:hover{background:var(--brown-dark);color:#fff}
.site-link{color:#334155}
.site-link:hover{background:#e8edf4;color:#172536;border-radius:7px}
.breadcrumb,.eyebrow{color:#526174}
.breadcrumb strong{color:#172536;font-weight:700}
.avatar{color:#63320e;background:#f3dfc6}
.topbar{border-bottom-color:#b8c5d5}
.btn{color:#25364a;border-color:#8b9bb0;background:#fff}
.btn:hover{background:#e9eef5;border-color:#64748b}
.btn-primary,.btn-primary:hover{background:var(--brown);color:#fff;border-color:var(--brown)}
.btn-primary:hover{background:var(--brown-dark);border-color:var(--brown-dark)}
.btn-danger{color:#a11919;background:#fff1f2;border-color:#c55a5a}
.btn-danger:hover{background:#ffe1e3;border-color:#a11919}
.btn-plain{color:#334155;background:transparent;border-color:transparent}
.btn:disabled{color:#64748b;background:#e8edf3;border-color:#c2ccd8;opacity:1;cursor:default}
.btn-primary:disabled{color:#fff;background:#8a7464;border-color:#8a7464}
#admin-app :where(button,a,input,select,textarea,summary):focus-visible,
.auth-page :where(button,a,input,select,textarea):focus-visible,
.password-page :where(button,a,input,select,textarea):focus-visible{outline:3px solid #2563eb;outline-offset:3px}
#admin-app .statistics-chart svg:focus-visible{outline:3px solid #2563eb;outline-offset:-3px}
.field>label,.filter-field label,.permission-label{color:#334155}
.field input,.field select,.field textarea,.filter-field input,.filter-field select{color:#172536;border-color:#8191a6;background:#fff}
.field input::placeholder,.field textarea::placeholder{color:#596b82;opacity:1}
.field input:read-only{background:#edf2f7;color:#475569}
.field input:disabled,.field select:disabled,.field textarea:disabled{background:#edf2f7;color:#526174}
input[type=checkbox],input[type=radio]{accent-color:var(--brown)}
#admin-app :where(p,small,label,caption,figcaption,legend){color:var(--muted)}
#admin-app :where(h1,h2,h3,h4){color:var(--ink)}
#admin-app .nav-item.active :where(span,small){color:#fff}
.field-help,.cell-sub,.tiny-help,.check-line,.history-list,.history-list strong{color:#475569}
.field-help,.cell-sub,.tiny-help{font-size:12px}
.table-action{color:#71390f;border-color:#a5937e;background:#fff}
.table-action:hover{color:#4e2b15;background:#f5e7d6;border-color:#824116}
thead th{color:#334155;background:#eaf0f7;border-color:#bcc9d9}
td{color:#25364a;border-bottom-color:#dce3ed}
.stat-top,.stat-foot,.stat-value small{color:#475569}
.stat-top{font-size:13px}
.stat-foot{font-size:11px}
.stat-icon{color:#824116;background:#f5e7d6}
.stat-icon.blue{color:#1d4ed8;background:#e1ebff}
.stat-icon.teal{color:#0f766e;background:#d9f2ea}
.stat-icon.purple{color:#6d28d9;background:#eee5ff}
.stat-card.attention{border-color:#c28b4e;border-left:4px solid #a35516}
.stat-card.attention .stat-foot{color:#71390f}
.badge{background:#e7edf5;color:#334155;border:1px solid #a3b0c2}
.badge.pending{background:#fff0d2;color:#874000;border-color:#d69b35}
.badge.confirmed{background:#dceaff;color:#194caf;border-color:#7da5ea}
.badge.progress{background:#ede3ff;color:#6420a2;border-color:#b08bdb}
.badge.done{background:#d9f2e3;color:#17643b;border-color:#77b495}
.badge.canceled{background:#ffe3e3;color:#9f2222;border-color:#d49393}
.preview-note,.form-hint{color:#513b26;background:#f5eee3;border-left:3px solid #a9621c}
.preview-note strong{color:#513b26}
#admin-app .form-hint{color:#513b26}
#admin-app .form-error,#admin-app .runtime-error p{color:#a11919}
#admin-app .success-note{color:#17643b;background:#dff3e7}
.code-tree-id,.code-tree-toggle{color:#475569}
.code-tree-node[aria-current=true],.code-tree-root[aria-current=true]{background:#f1dfc9;color:#63320e;font-weight:700}
.code-record-meta,.code-detail-hint{color:#475569}
.reservation-branches legend,.reservation-branch-options label{color:#334155}
.reservation-branch-option.is-unselected{opacity:.8}
.reservation-period-statuses,.reservation-calendar-heading,.reservation-calendar-caption,.reservation-event-time,.reservation-day-summary{color:#334155}
.reservation-view-switch button[aria-pressed=true]{background:var(--brown);border-color:var(--brown);color:#fff}
.reservation-day-panel .panel-header{border-bottom:1px solid #cbd5e1}
.reservation-view-switch button,.reservation-period-statuses>strong{color:#475569}
.reservation-calendar-table thead th{color:#475569}
.reservation-calendar-table thead th.is-saturday{color:#1d4ed8}
.reservation-calendar-table thead th.is-sunday{color:#b91c1c}
.reservation-day-button,.reservation-day.is-outside .reservation-day-button{color:#475569}
.reservation-day.is-selected .reservation-day-button{background:var(--brown);color:#fff}
.reservation-day-total,.reservation-event-guardian,.reservation-more,.reservation-empty-day,.reservation-calendar-footnote,.reservation-day-panel h2>span{color:#475569}
.reservation-no-selection{color:#71390f;background:#fff0d2;border-color:#d69b35}
.reservation-calendar-error{color:#a11919}
.capacity-policy,.capacity-day-header{color:#172536}
.capacity-period [aria-pressed=true]{background:var(--brown);color:#fff}
.notification-mode{border-left:4px solid #a9621c;background:#fff1d9;color:#71390f}
#admin-app .notification-mode :where(p,strong){color:#71390f}
.notification-privacy h2{color:#172536}
.statistics-filter-title>span,.statistics-filter-fields label,.statistics-branches legend,.statistics-branches>p,.statistics-branch-options label,.statistics-branch-options small{color:#475569}
.statistics-filter-fields input,.statistics-filter-fields select{font:inherit;padding:10px 12px;color:#172536;background:#fff;border:1px solid #8191a6;border-radius:7px}
.statistics-quick-periods button,.statistics-branch-actions button{color:#71390f;background:#f5e7d6;border-color:#b49a7d}
.statistics-quick-periods button:hover,.statistics-branch-actions button:hover{background:#eacfad;color:#4e2b15}
.statistics-branch-options input{accent-color:var(--brown)}
.statistics-filter-actions>span,.statistics-eyebrow,.statistics-total>span,.statistics-status-summary>span,.statistics-updated{color:#475569}
.statistics-result-header h2,.statistics-total strong,.statistics-status-summary strong,.statistics-chart-heading h2{color:#172536}
.statistics-chart-heading>div>span{color:#71390f;font-weight:700}
.statistics-chart-heading>p,.statistics-chart-caption,.statistics-data summary,.statistics-data summary>span{color:#475569}
.statistics-tick,.statistics-branch-label,.statistics-empty{fill:#475569}
.statistics-value{fill:#172536;font-weight:600}
.statistics-line{stroke:#0f766e}
.statistics-grid-line{stroke:#cbd5e1}
.statistics-selection-line{stroke:#475569}
.statistics-data-table caption,.statistics-data-table td,.statistics-data-table th{color:#334155}
.statistics-data-table thead th{color:#25364a;background:#eaf0f7}
.auth-story{background:#633717;color:#fff}
.auth-story .auth-brand,.auth-story h1,.auth-story .eyebrow{color:#fff}
.auth-story .auth-brand span,.auth-story p,.auth-story small{color:#f1ddc7}
.auth-story:after{border-color:#a57650}
.auth-card>p,.auth-card .auth-help{color:#475569}
.auth-back{color:#71390f}
.password-card{border-color:#aebcce}
@media(max-width:760px){.nav-caption{font-size:12px}.field-help,.cell-sub{font-size:11px}}
