/* Page layouts for the admin redesign, stage 2: boards, card grids, timelines, check rows,
   readiness cards, the settings section list. Same rules as console.css: warm hairlines,
   one accent, tinted two-layer shadows on hover only, 44px targets, tabular figures. */
.stat-card.static {
  cursor: default;
}
.stat-card.static:hover {
  transform: none;
  box-shadow: var(--shadow-rest);
  border-color: var(--line);
}
.stat-card.warn .stat-value {
  color: var(--bad);
}
.stat-card.warn .stat-value:has(> .skeleton-number) {
  color: inherit;
}
.list-toolbar .view-switch {
  margin-left: auto;
}
.view-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.view-switch .icon {
  width: 16px;
  height: 16px;
}
.list-more {
  display: flex;
  justify-content: center;
  padding: 0 16px 18px;
}
.bad-text {
  color: var(--bad);
  font-weight: 700;
}
.tabular,
.board-meta,
.terminal-facts,
.activity-item time {
  font-variant-numeric: tabular-nums;
}
/* Board (Applications) */
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(200px, 1fr));
  gap: 12px;
  padding: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.board-column {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  scroll-snap-align: start;
}
.board-column h3 {
  display: flex;
  justify-content: space-between;
  margin: 2px 4px 10px;
  font-size: 13px;
}
.board-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.board-card {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.board-card:hover {
  border-color: #cdbfb5;
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}
.board-card small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-card .badge {
  justify-self: start;
}
.board-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.board-empty,
.board-note {
  margin: 4px;
  font-size: 12px;
}
.board-note {
  padding: 0 16px 12px;
}
/* Terminal cards */
.terminal-grid {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.terminal-card {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.terminal-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}
.terminal-card.online {
  border-left-color: var(--good);
}
.terminal-card.late {
  border-left-color: var(--late);
}
.terminal-card.offline {
  border-left-color: var(--bad);
}
.terminal-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.terminal-card small {
  color: var(--muted);
}
.terminal-card .badge {
  justify-self: start;
}
.terminal-facts {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.state-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.state-chip .beat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--good);
}
.state-chip.late .beat-dot {
  background: var(--late);
  border-radius: 2px;
  transform: rotate(45deg) scale(0.86);
}
.state-chip.offline .beat-dot {
  background: var(--bad);
  border-radius: 2px;
}
.state-chip.pairing .beat-dot {
  background: transparent;
  border: 2px solid var(--muted);
}
/* Order panel */
.stage-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stage-timeline li {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 14px;
}
.stage-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.stage-timeline li.done:not(:last-child)::before {
  background: var(--good);
}
.stage-dot {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 2px solid #b9aaa0;
  border-radius: 50%;
  background: var(--white);
}
.stage-timeline .done .stage-dot {
  border-color: var(--good);
  background: var(--good);
}
.stage-timeline .alert .stage-dot {
  border-color: var(--bad);
  background: var(--bad);
  border-radius: 3px;
}
.stage-timeline span:last-child {
  display: grid;
}
.stage-timeline small {
  color: var(--muted);
}
.order-lines {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.order-lines li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee5de;
}
.order-lines li > span:nth-child(2) {
  display: grid;
}
.order-lines small {
  color: var(--muted);
}
/* Cases */
.case-description {
  white-space: pre-wrap;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--soft);
}
.case-notes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.note.internal {
  padding-left: 12px;
  border-left: 3px solid var(--warn);
}
.details-form {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
/* Activity timeline */
.activity-timeline {
  list-style: none;
  margin: 0;
  padding: 8px 16px 16px;
}
.activity-day h3 {
  margin: 16px 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.activity-item {
  display: grid;
  grid-template-columns: 52px 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eee5de;
}
.activity-item time {
  color: var(--muted);
  font-size: 12px;
}
.activity-text {
  display: block;
  min-height: 48px;
  padding: 8px 6px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.activity-text:hover {
  background: var(--soft);
}
.activity-text small {
  display: block;
  color: var(--muted);
}
.cat-chip {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  color: #4f4652;
  background: var(--white);
}
.cat-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9a8f95;
}
.cat-chip.money::before {
  background: var(--good);
}
.cat-chip.menus::before {
  background: var(--orange);
}
.cat-chip.people::before {
  background: var(--warn);
  border-radius: 2px;
}
.cat-chip.access::before {
  background: var(--ink);
  border-radius: 2px;
  transform: rotate(45deg);
}
/* Check rows (Operational checks, Settings security) */
.check-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 22px;
  border-bottom: 1px solid #eee5de;
}
.check-row:last-child {
  border-bottom: 0;
}
.check-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.check-row .check-todo {
  color: var(--ink);
}
.check-mark {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--good);
}
.check-row.warn .check-mark {
  background: var(--late);
  border-radius: 2px;
  transform: rotate(45deg) scale(0.9);
}
.check-row.fail .check-mark {
  background: var(--bad);
  border-radius: 2px;
}
.section-heading {
  margin: 28px 0 12px;
  font-size: 20px;
}
.evidence-anchor {
  scroll-margin-top: 80px;
}
.evidence-anchor:focus {
  outline: none;
}
/* Launch readiness cards */
.ready-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}
.ready-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 4px solid var(--late);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-rest);
}
.ready-card.ready {
  border-top-color: var(--good);
}
.ready-card.blocked {
  border-top-color: var(--bad);
}
.ready-card header,
.ready-card footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 10px;
}
.ready-card header h2 {
  font-size: 17px;
}
.ready-card header p {
  margin: 2px 0 0;
  font-size: 12px;
}
.ready-card footer {
  flex-direction: column;
  align-items: stretch;
  margin-top: auto;
  padding: 12px 18px 16px;
  border-top: 1px solid #eee5de;
}
.ready-card footer p {
  margin: 0;
  font-size: 12px;
}
.ready-card .status-list {
  padding: 0 18px;
}
.ready-card .status-list li {
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}
.ready-card .status-symbol {
  width: 26px;
  height: 26px;
  font-size: 12px;
}
.ready-card .status-list .button {
  min-height: 44px;
  padding-inline: 10px;
}
.ready-meter {
  appearance: none;
  display: block;
  width: calc(100% - 36px);
  height: 6px;
  margin: 0 18px 4px;
  border: 0;
  border-radius: 6px;
  background: var(--soft);
  overflow: hidden;
}
.ready-meter::-webkit-progress-bar {
  background: var(--soft);
}
.ready-meter::-webkit-progress-value {
  background: var(--good);
  border-radius: 6px;
}
.ready-meter::-moz-progress-bar {
  background: var(--good);
}
/* Chat assistant link cards */
.link-cards {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.link-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  min-height: 44px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-rest);
  transition: box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.link-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
  text-decoration: none;
}
.link-card > span:nth-child(2) {
  display: grid;
  gap: 4px;
}
.link-card small {
  color: var(--muted);
}
.link-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--peach);
  color: var(--action);
}
/* Settings */
.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.section-nav {
  position: sticky;
  top: 84px;
}
.section-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.section-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.section-nav a:hover {
  background: var(--soft);
}
.section-nav a[aria-current="page"] {
  background: var(--peach);
  color: var(--action);
  box-shadow: inset 3px 0 0 var(--action);
}
.pane-title {
  margin: 0 0 14px;
  font-size: 20px;
}
.pane-link {
  margin: 0 0 18px;
}
@media (max-width: 767px) {
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .section-nav {
    position: static;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 0 16px;
  }
  .section-nav ul {
    grid-auto-flow: column;
    width: max-content;
  }
  .list-toolbar .view-switch {
    margin-left: 0;
  }
  .activity-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .activity-item .cat-chip {
    display: none;
  }
  .check-row {
    padding: 12px 16px;
    grid-template-columns: 14px minmax(0, 1fr);
  }
  .check-row > .badge {
    grid-column: 2;
    justify-self: start;
  }
  .ready-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .terminal-grid,
  .board {
    padding: 12px;
  }
  .board {
    grid-template-columns: repeat(5, minmax(78%, 1fr));
  }
}
.filter-select span {
  white-space: nowrap;
}
