/* Content layouts from the signed-in usability review. */
.ledger-filter-advanced { display: contents; }
.ledger-filter-advanced > label {
  display: grid;
  gap: .35rem;
  min-width: 0;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 650;
}
.ledger-filter-toggle[hidden], .ledger-filter-advanced [hidden] { display: none; }
.ledger-filter-sheet {
  width: min(100%, 38rem);
  max-width: 100%;
  max-height: calc(var(--visual-viewport-height, 100dvh) - 1rem);
  margin: auto auto 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-radius: 1rem 1rem 0 0;
  color: var(--ink);
  background: var(--surface);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ledger-filter-sheet::backdrop { background: rgb(0 0 0 / .4); }
.ledger-filter-sheet > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: -1rem;
  padding-block: .5rem;
  background: var(--surface);
  z-index: 1;
}
.ledger-filter-sheet h2 { margin: 0; font-size: 1.2rem; }
.ledger-filter-sheet .ledger-filter-advanced { display: grid; gap: 1rem; }
.ledger-filter-sheet .ledger-filter-sort,
.ledger-filter-sheet .ledger-filter-meta { grid-column: auto; }
.ledger-filter-sheet input, .ledger-filter-sheet select {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
}
.ledger-filter-sheet .ledger-filter-meta { justify-content: space-between; }
.people-card-field-label { display: none; }
.task-detail-status-control { display: grid; gap: .4rem; max-width: 22rem; margin-block: .75rem; }
.task-detail-status-control[hidden] { display: none; }
.task-detail-status-control select { min-height: 44px; }
[data-task-detail-status-message] { color: var(--danger, #a52b3d); }
.setup-message { align-self: start; position: static; }
.setup-message p { margin: 0 0 .75rem; }
.setup-message:has(> p[hidden]):not(:has(a)) { display: none; }
.venue-page-title { margin: 0; font-size: 1.25rem; }
.scroll-edge-cue.has-scroll-right {
  mask-image: linear-gradient(to right, #000 calc(100% - 1.4rem), transparent);
}
.scroll-edge-cue.has-scroll-left {
  mask-image: linear-gradient(to right, transparent, #000 1.4rem);
}
.scroll-edge-cue.has-scroll-left.has-scroll-right {
  mask-image: linear-gradient(to right, transparent, #000 1.4rem, #000 calc(100% - 1.4rem), transparent);
}

@media (max-width: 900px) {
  .facilities-board-card .kanban-board,
  #kanban-board {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .kanban-column, .kanban-card, .kanban-card-left { min-width: 0; }
  .kanban-card-title { overflow-wrap: anywhere; }
}

@media (max-width: 700px) {
  .ledger-filter-bar--enhanced,
  .ledger-filter-bar--enhanced[data-ledger-filters="card"] {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
    padding: .5rem;
  }
  .ledger-filter-bar--enhanced .ledger-filter-search { grid-column: auto; }
  .ledger-filter-bar--enhanced .ledger-filter-search > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .ledger-filter-bar--enhanced input { min-height: 44px; font-size: 16px; }
  .ledger-filter-toggle { display: flex; gap: .35rem; align-items: center; min-height: 44px; }
  [data-ledger-active-count] { font-variant-numeric: tabular-nums; }
  .purchase-center, .church-card-center { gap: .6rem; }
  #panel-purchasing .page-head, #panel-card-spend .page-head { gap: .5rem; margin-bottom: .25rem; }
  #panel-purchasing .page-head h1, #panel-card-spend .page-head h1 { font-size: 1.4rem; }
  #panel-card-spend .page-head-actions { width: auto; }
  #panel-card-spend .page-head-actions button { min-height: 44px; }
  #panel-card-spend .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #panel-card-spend .stat-strip .stat-cell { padding: .4rem .6rem; }
  #panel-card-spend .stat-strip .stat-cell:nth-child(2) { border-top: 0; }
  #panel-card-spend .stat-strip .stat-value { font-size: 1.05rem; }
  #panel-card-spend .church-card-workspace { gap: .6rem; }
  #panel-card-spend .church-card-ledger-card > .section-block-head { min-height: 1.5rem; padding-bottom: 0; }
  #panel-card-spend .church-card-ledger-group-head { padding-block: .4rem; }

  #panel-venue .venue-workspace { gap: .5rem; }
  #panel-venue .venue-calendar-head { gap: .5rem; }
  #panel-venue .venue-calendar-title-group { gap: .2rem; }
  #panel-venue .venue-calendar-title-group h2 { font-size: 1.25rem; }
  #panel-venue .venue-calendar-context { display: none; }
  #panel-venue .venue-calendar-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem;
  }
  #panel-venue .venue-calendar-add { grid-column: 1 / -1; }
  #panel-venue .venue-calendar-viewswitch { width: auto; min-width: 0; }
  #panel-venue .venue-cal-viewbtn { min-width: 0; padding-inline: .35rem; min-height: 44px; font-size: .78rem; }
  #panel-venue .venue-calendar-nav { width: auto; gap: .15rem; }
  #panel-venue .venue-calendar-nav > button { min-height: 44px; padding-inline: .35rem; }
  #panel-venue .venue-calendar-nav .icon-button { width: 44px; min-width: 44px; }
  #panel-venue .venue-calendar-zoom { grid-column: 1 / -1; }
  #panel-venue .venue-calendar-body { overflow-x: visible; padding: .1rem; }
  #panel-venue .vc-mday { min-height: 58px; }
  #panel-venue .venue-calendar-legend { margin-top: .4rem; }

  #people-panel-people .data-table-wrap { overflow: visible; mask-image: none; }
  #people-panel-people .users-table,
  #people-panel-people .users-table tbody { display: block; width: 100%; min-width: 0; }
  #people-panel-people .users-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  #people-panel-people .users-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-block: .75rem;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: .7rem;
    background: var(--surface);
  }
  #people-panel-people .users-table td {
    display: block;
    width: auto;
    min-width: 0;
    padding: .35rem 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #people-panel-people .people-card-field-label {
    display: block;
    margin-bottom: .15rem;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 650;
  }
  #people-panel-people .users-table .cell-actions { justify-content: flex-start; }
  #people-panel-people .users-table .cell-actions button { min-height: 44px; }
}

/* Sharper lists — remaining screens (admin, profile, vaults, climate, goals,
   children, building access, reporting, org chart, event planning).
   Same pages and hooks as before: this block only flattens the surfaces and
   tightens the heads so they sit beside the rebuilt screens. */

/* ---- Page head (.sh-head on the panel headers) ------------------------- */
.page-head.sh-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px 12px;
  margin: 0;
  padding: 0 0 12px;
  border: 0;
}
.page-head.sh-head > h1 {
  margin: 0;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.page-head.sh-head > .sh-head__meta {
  min-width: 0;
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}
.page-head.sh-head > .sh-head__meta strong { color: var(--ink); font-weight: 700; }
.page-head.sh-head > .page-head-actions { margin-left: auto; align-self: center; }

/* ---- Admin console ------------------------------------------------------ */
.admin-shell .admin-panel,
.admin-shell .admin-panel > :is(.admin-card, .section-block),
.admin-shell .admin-panel .data-table-wrap { min-width: 0; max-width: 100%; }

.admin-shell .admin-panel :is(.section-heading, .section-block-head) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}
.admin-shell .admin-panel :is(.section-heading, .section-block-head) > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  min-width: 0;
}
@media (min-width: 601px) {
  .admin-shell .admin-panel :is(.section-heading, .section-block-head) > div:first-child { flex: 1 1 16rem; }
}
.admin-shell .admin-panel :is(.section-heading, .section-block-head) :is(h3, h2, h1.page-title) {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}
.admin-shell .admin-panel > :first-child :is(.section-heading, .section-block-head) :is(h3, h2),
.admin-shell .admin-panel > .people-access-tabs + .section-block .section-block-head h3,
.admin-shell .admin-panel :is(.section-heading, .section-block-head) h1.page-title {
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}
.admin-shell .admin-panel :is(.section-heading, .section-block-head) :is(p, .section-block-hint, .table-subcopy) {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
}
.admin-shell .admin-panel :is(.section-heading, .section-block-head) > :is(button, a, .cell-actions, .section-actions):last-child {
  margin-left: auto;
  align-self: center;
}

/* Tables: one bordered block, tinted header row, hairlines, no zebra. */
.admin-shell .data-table-wrap {
  border-radius: 8px;
  background: var(--surface);
}
.admin-shell .data-table { font-size: 0.875rem; }
.admin-shell .data-table thead th {
  position: static;
  padding: 9px 12px;
  background: var(--surface-soft);
  color: var(--ink-secondary);
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
}
.admin-shell .data-table tbody td {
  padding: 9px 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.admin-shell .data-table tbody tr:nth-child(even) td { background: transparent; }
.admin-shell .data-table tbody tr:hover td { background: var(--surface-soft); }
.admin-shell .data-table tbody tr:last-child td { border-bottom: 0; }
.admin-shell .data-table .cell-sub { color: var(--muted); }

/* Settings groups: one bordered list, hairline rows, no fills. */
.admin-shell .settings-summary-list,
.profile-shell .settings-summary-list {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.admin-shell .settings-summary-row,
.profile-shell .settings-summary-row {
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.admin-shell .settings-summary-row:first-child,
.profile-shell .settings-summary-row:first-child { border-top: 0; }
.admin-shell .settings-summary-row:hover,
.profile-shell .settings-summary-row:hover { background: var(--surface-soft); }
.admin-shell .settings-summary-icon,
.profile-shell .settings-summary-icon {
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
}
.admin-shell .settings-summary-copy span,
.admin-shell .settings-summary-copy small,
.profile-shell .settings-summary-copy span,
.profile-shell .settings-summary-copy small {
  color: var(--ink-secondary);
  font-size: 0.8125rem;
  font-weight: 400;
}
.admin-shell .settings-summary-copy strong,
.profile-shell .settings-summary-copy strong { font-size: 0.9375rem; }

/* Plain strips and empty states instead of filled or dashed boxes. */
.admin-shell .default-preset-form {
  padding: 0 0 12px;
  border: 0;
  border-radius: 0;
}
.admin-shell .admin-panel .empty-state,
.admin-shell .admin-panel .admin-empty-guidance {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

/* Audit log: one line of counts, a plain filter strip, and one list of rows. */
.admin-shell .audit-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  color: var(--ink-secondary);
  font-size: 0.875rem;
}
.admin-shell .audit-summary-strip article {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.admin-shell .audit-summary-strip span {
  color: var(--ink-secondary);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.admin-shell .audit-summary-strip strong { color: var(--ink); font-size: inherit; font-weight: 700; }
.admin-shell .audit-filter-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.admin-shell .audit-filter-form label,
.admin-shell .audit-filter-label {
  color: var(--ink-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.admin-shell .audit-log-list {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.admin-shell .audit-log-entry {
  gap: 4px;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.admin-shell .audit-log-entry:first-child { border-top: 0; }
.admin-shell .audit-log-entry--emergency { background: transparent; }
.admin-shell .audit-log-entry time { font-weight: 400; letter-spacing: 0; font-size: 0.8125rem; color: var(--muted); }
.admin-shell .audit-log-entry strong { margin-top: 0; font-size: 0.9375rem; }
.admin-shell .audit-log-meta { gap: 2px 14px; }
.admin-shell .audit-log-meta span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 400;
}
.admin-shell .audit-log-meta b {
  color: var(--muted);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.admin-shell .audit-log-meta b::after { content: ":"; }
.admin-shell .audit-log-meta b + * { margin-left: 4px; }
.admin-shell .audit-tool { gap: 10px; }
.admin-shell .audit-tool > .audit-heading { margin: 0; }

/* Workforce registries are already bordered blocks with a tinted head: keep
   that, drop the inner table frame, and let the head follow the list header. */
.admin-shell .time-admin-shell,
.admin-shell .time-workforce-registry { min-width: 0; max-width: 100%; }
.admin-shell .admin-panel .time-workforce-registry > .section-block-head {
  align-items: center;
  gap: 4px 12px;
  min-height: 40px;
  margin: 0;
  padding: 6px 12px;
  background: var(--surface-soft);
}
.admin-shell .admin-panel .time-workforce-registry > .section-block-head h3 { font-size: 0.9375rem; }
.admin-shell .time-workforce-registry > .data-table-wrap {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.admin-shell .time-workforce-registry > .empty-state { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.admin-shell .time-admin-section { padding: 0; border: 0; border-radius: 0; background: transparent; }

/* Panels stack from the top; sections never stretch to fill the page. */
.admin-shell .admin-panel { align-content: start; grid-auto-rows: max-content; }
.admin-shell .admin-panel > :is(.section-block, .admin-card) { align-content: start; align-self: start; }

/* License: status line, a key/value list, then plain action rows. */
.admin-shell .license-admin-panel { grid-template-columns: minmax(0, 1fr); }
.admin-shell .license-overview-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.admin-shell .license-summary-card .license-status-card,
.admin-shell .license-summary-card .license-status-card--valid {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
}
.admin-shell .license-admin-panel .license-detail-list {
  display: block;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.admin-shell .license-admin-panel .license-detail-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.admin-shell .license-admin-panel .license-detail-list > div:first-child { border-top: 0; }
.admin-shell .license-detail-list dt {
  color: var(--ink-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.admin-shell .license-admin-panel .license-detail-list dd { text-align: right; font-size: 0.875rem; font-weight: 700; }
.admin-shell .license-settings-summary { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
.admin-shell .license-email-status,
.admin-shell .license-warning-panel { margin-top: 12px; background: transparent; }
.admin-shell .license-email-status-copy small,
.admin-shell .license-email-actions small {
  color: var(--ink-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.admin-shell .license-email-status > .material-symbols-outlined { background: transparent; }

/* Admin dialogs: one column of full-width fields, no fills inside the panel. */
.admin-shell .form-sheet-form { align-items: stretch; }
.admin-shell .admin-create-modal-panel:not(.department-modal-panel) { width: min(560px, calc(100vw - 2rem)); }
.admin-shell .admin-create-form { grid-template-columns: minmax(0, 1fr); align-items: start; }
.admin-shell .department-status-toggle,
.admin-shell .admin-create-modal-panel .checkbox-label {
  border: 0;
  background: transparent;
  padding-inline: 0;
}
.admin-shell .admin-create-modal-panel .empty-state {
  border: 1px solid var(--line);
  background: transparent;
}
.admin-shell .form-sheet .form-sheet-actions { justify-content: flex-end; align-self: stretch; }
.admin-shell .modal-panel fieldset { background: transparent; }

/* People on phones: hairline rows instead of a card inside the bordered block. */
@media (max-width: 700px) {
  .admin-shell #people-panel-people .data-table-wrap { border: 0; border-radius: 0; background: transparent; }
  .admin-shell #people-panel-people .users-table tr {
    margin: 0;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  .admin-shell #people-panel-people .users-table tbody tr:first-child { border-top: 0; }
}

/* ---- Profile: plain header, sections divided by hairlines ---------------- */
.profile-shell .profile-page { gap: 16px; }
.profile-shell .profile-header-card {
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.profile-shell .profile-kicker {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.profile-shell .profile-heading-copy h1 { font-size: 1.375rem; font-weight: 800; line-height: 1.2; }
.profile-shell .profile-heading-copy p { color: var(--ink-secondary); font-size: 0.875rem; font-weight: 400; }
.profile-shell .profile-heading-copy .profile-email { color: var(--muted); font-size: 0.875rem; font-weight: 400; }
.profile-shell .profile-header-meta { gap: 2px; }
.profile-shell .profile-header-meta span {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.profile-shell .profile-header-meta small {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}
.profile-shell .profile-header-meta small::after { content: ":"; }
.profile-shell .profile-header-meta strong { font-size: 0.875rem; }
.profile-shell .profile-role-badge {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
}
.profile-shell .profile-card {
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.profile-shell .profile-detail-stack > .profile-card + .profile-card {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.profile-shell .profile-card .section-heading { flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.profile-shell .profile-card .section-heading h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.profile-shell .profile-card .section-heading :is(p, .table-subcopy) {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}
.profile-shell .profile-identity--page { align-items: flex-start; }
.profile-shell .profile-preferences-list { grid-template-columns: minmax(0, 1fr); }
.profile-shell .approval-coverage-boundary {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 0.875rem;
  font-weight: 400;
}
.profile-shell .approval-coverage-empty {
  border: 1px solid var(--line);
  border-style: solid;
  border-radius: 8px;
  background: transparent;
}
.profile-shell .approval-coverage-list,
.profile-shell .security-method-list {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.profile-shell .approval-coverage-row,
.profile-shell .security-method-card {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.profile-shell .approval-coverage-row:first-child,
.profile-shell .security-method-card:first-child { border-top: 0; }
.profile-shell .security-method-icon { border: 0; background: transparent; }

/* ---- Vaults: flat columns, hairline lists, one-line filters --------------- */
#panel-vaults .card.vault-sidebar,
#panel-vaults .card.vault-main,
#panel-vaults .card.vault-detail {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#panel-vaults .vault-workspace { gap: 20px; }
#panel-vaults .vault-detail { padding-left: 20px; border-left: 1px solid var(--line); }
#panel-vaults .section-heading { margin: 0 0 10px; align-items: baseline; gap: 4px 12px; }
#panel-vaults .section-heading h3 { margin: 0; font-size: 1rem; font-weight: 800; }
#panel-vaults .section-heading :is(p, .table-subcopy) { margin: 2px 0 0; color: var(--muted); font-size: 0.875rem; font-weight: 400; }
#panel-vaults .vault-list,
#panel-vaults .vault-item-list {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
#panel-vaults .vault-list:has(> .empty-state),
#panel-vaults .vault-item-list:has(> .empty-state) { border: 0; background: transparent; }
#panel-vaults .vault-list-item,
#panel-vaults .vault-item-row {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
#panel-vaults .vault-list > :first-child,
#panel-vaults .vault-item-list > :first-child { border-top: 0; }
#panel-vaults .vault-list-item:hover,
#panel-vaults .vault-item-row:hover { background: var(--surface-soft); }
#panel-vaults .vault-list-item.is-active,
#panel-vaults .vault-item-row.is-active { background: var(--current-wash); box-shadow: inset 3px 0 0 var(--current); }
#panel-vaults .vault-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
#panel-vaults .vault-search-field { grid-column: 1 / -1; }
#panel-vaults .vault-toolbar select { min-width: 0; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
#panel-vaults .vault-toolbar { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
@media (max-width: 900px) {
  #panel-vaults .vault-detail { padding-left: 0; border-left: 0; }
}

/* ---- Goals: one line of counts, one list of rows -------------------------- */
#panel-goals .goal-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.875rem;
}
#panel-goals .goal-stat-strip .stat-cell {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}
#panel-goals .goal-stat-strip .stat-label {
  color: var(--ink-secondary);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
#panel-goals .goal-stat-strip .stat-value { font-size: inherit; font-weight: 700; color: var(--ink); }
#panel-goals .goal-stat-strip .stat-value--accent { color: var(--ink); }
#panel-goals .goal-stat-strip .goal-stat-value--danger { color: var(--danger); }
#panel-goals .goal-rows {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
#panel-goals .goal-row {
  padding: 10px 12px;
  border-radius: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}
#panel-goals .goal-rows > .goal-row:first-child { border-top: 0; }
#panel-goals .goal-row.is-overdue { box-shadow: inset 3px 0 0 var(--danger); }
#panel-goals .goal-row.is-completed { background: transparent; }
#panel-goals .goal-latest-update,
#panel-goals .goal-latest-update--empty {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#panel-goals .goal-latest-update strong { text-transform: none; letter-spacing: 0; font-size: 0.875rem; }
#panel-goals .goal-section-head { border-bottom: 0; margin-bottom: 8px; }
#panel-goals .goal-empty { border: 1px solid var(--line); border-radius: 8px; background: transparent; }
#panel-goals .goal-stat-strip .stat-cell { flex: 0 0 auto; width: auto; min-width: auto; }
#panel-goals .goal-stat-strip, #panel-goals .goal-stat-strip .stat-cell { container-type: normal; contain: none; }

/* ---- Climate: one surface, one line of counts ----------------------------- */
#panel-climate .climate-workspace { gap: 12px; }
#panel-climate .thermostat-control-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#panel-climate .section-heading { align-items: baseline; margin-bottom: 8px; gap: 4px 12px; }
#panel-climate .section-heading h2 { margin: 0; font-size: 1rem; font-weight: 800; }
#panel-climate .section-heading :is(p, .table-subcopy) { margin: 2px 0 0; color: var(--muted); font-size: 0.875rem; font-weight: 400; }
#panel-climate .thermostat-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#panel-climate .thermostat-summary-strip > div {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  container-type: normal;
  contain: none;
}
#panel-climate .thermostat-summary-strip strong { color: var(--ink); font-size: 0.875rem; font-weight: 700; }
#panel-climate .thermostat-summary-strip span { color: var(--ink-secondary); font-size: 0.875rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
#panel-climate .thermostat-data-current { margin: 0; color: var(--ink-secondary); font-size: 0.75rem; }
#panel-climate .thermostat-empty-state { border: 1px solid var(--line); border-style: solid; background: transparent; }

/* ---- Reporting, children and other list panels ---------------------------- */
:is(#panel-reporting, #panel-children, #panel-building-access, #panel-workforce-assignments) .stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.875rem;
}
:is(#panel-reporting, #panel-children, #panel-building-access) .stat-strip .stat-cell {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  container-type: normal;
  contain: none;
}
:is(#panel-reporting, #panel-children, #panel-building-access) .stat-strip .stat-label {
  color: var(--ink-secondary);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
:is(#panel-reporting, #panel-children, #panel-building-access) .stat-strip .stat-value {
  color: var(--ink);
  font-size: inherit;
  font-weight: 700;
}
:is(#panel-reporting, #panel-children, #panel-building-access, #panel-workforce-assignments) :is(.section-block-head, .section-heading) {
  align-items: baseline;
  padding-bottom: 0;
  border-bottom: 0;
}
:is(#panel-reporting, #panel-children, #panel-building-access) :is(.section-block-head, .section-heading) h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}
:is(#panel-reporting, #panel-children, #panel-building-access, #panel-workforce-assignments) :is(.section-block-hint, .table-subcopy) {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}
#panel-reporting .reporting-filter label {
  color: var(--ink-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
:is(#panel-reporting, #panel-children, #panel-building-access, #panel-workforce-assignments) .empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
:is(#panel-reporting, #panel-children, #panel-building-access) .data-table-wrap {
  border-radius: 8px;
}
:is(#panel-reporting, #panel-children, #panel-building-access) .data-table thead th {
  position: static;
  background: var(--surface-soft);
  color: var(--ink-secondary);
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
}
:is(#panel-reporting, #panel-children, #panel-building-access) .data-table tbody td { color: var(--ink); }
:is(#panel-reporting, #panel-children, #panel-building-access) .data-table tbody tr:nth-child(even) td { background: transparent; }
:is(#panel-reporting, #panel-children, #panel-building-access) .data-table tbody tr:hover td { background: var(--surface-soft); }
.admin-shell .admin-panel .section-block > .section-block-head { margin-bottom: 0; }
