/* 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;
}
/* Website stats (2 November 2026): a 30-day chart and ranked lists with <progress> bars. */
.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
  margin-top: 22px;
}
.site-grid .panel { margin: 0; }
.site-hint { margin: 0 0 14px; font-size: 13px; }
.site-trend { margin: 0; }
.site-trend svg { display: block; overflow: visible; border-bottom: 1px solid var(--line); }
.site-trend rect { fill: var(--orange); }
.site-trend rect:hover { fill: var(--ink); }
.site-trend figcaption { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; }
.site-ranked { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-ranked li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 14px; }
.site-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.site-value { color: var(--muted); white-space: nowrap; }
.site-ranked progress { grid-column: 1 / -1; appearance: none; width: 100%; height: 6px; border: 0; border-radius: 6px; background: var(--soft); overflow: hidden; }
.site-ranked progress::-webkit-progress-bar { background: var(--soft); }
.site-ranked progress::-webkit-progress-value { background: var(--orange); border-radius: 6px; }
.site-ranked progress::-moz-progress-bar { background: var(--orange); }
@media (max-width: 760px) {
  .site-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Website stats tabs, period choice and heatmap viewer. */
.site-toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin: 22px 0; }
.site-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.site-controls { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.site-control { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); min-width: 180px; }
.site-frame-box { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.site-frame { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.site-frame iframe { display: block; border: 0; background: #fff; }
.site-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.site-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; }
.site-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.site-swatch.low { background: rgba(234, 86, 48, 0.35); }
.site-swatch.high { background: rgba(163, 47, 43, 0.85); margin-left: 8px; }
.panel .table-wrap { margin: 0; }
/* Terminal staff: the one-time setup code, large enough to read out across a counter. */
.dialog-body > .setup-code { margin: 18px 0 8px; font-size: 34px; font-weight: 800; letter-spacing: 0.14em; color: var(--ink); text-align: center; }

/* Offers & customers: the offer composer, its preview, the checkout ticks and the unsubscribe page. */
.marketing-form .segmented { margin-bottom: 16px; }
.marketing-preview:empty { display: none; }
.sms-sample { white-space: pre-wrap; font: inherit; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 8px 0 12px; max-width: 420px; overflow-wrap: anywhere; }
.checkout-offers { border: 0; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.checkout-offers legend { font-weight: 700; margin-bottom: 4px; }
.unsubscribe-page { max-width: 520px; margin: 64px auto; padding: 0 20px; }
.unsubscribe-page form { margin-top: 20px; }
.unsubscribe-brand { margin: 0 0 12px; font-weight: 800; font-size: 20px; color: var(--ink); }

.shop-setup-tasks { list-style: none; margin: 0; padding: 0 1.3rem; }
.shop-setup-tasks > li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; }
.shop-setup-tasks > li + li { border-top: 1px solid var(--line, #d5e0da); }
.shop-setup-tasks h3 { margin: 0; font-size: 1rem; }
.shop-setup-tasks p { margin: .35rem 0 .65rem; }
.shop-setup-tasks .button { margin: .15rem .4rem .15rem 0; }
.shop-setup-tasks form, #shop-launch .check { margin-top: .8rem; }
.setup-status { white-space: nowrap; font-size: .85rem; }
.shop-address { overflow-wrap: anywhere; }
@media(max-width: 540px) { .shop-setup-tasks { padding: 0 .9rem; } .shop-setup-tasks > li { position: relative; display: block; } .shop-setup-tasks h3 { padding-right: 4.5rem; } .setup-status { position: absolute; top: 1.25rem; right: 0; } }

.website-builder { max-width: 760px; }
.website-builder [data-progress] { margin-top: 1rem; }
.website-builder .import-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(170px, 1.5fr) auto; gap: .8rem; align-items: center; padding: .65rem 0; border-top: 1px solid var(--line); }
.import-choice { display: inline-flex; gap: .55rem; align-items: center; font-weight: 600; }
.import-choice input { flex: none; width: 1rem; height: 1rem; }
.import-row [data-value] { width: 100%; min-width: 0; }
.import-row small { display: block; margin-top: .25rem; color: var(--muted); overflow-wrap: anywhere; }
.import-source { font-size: .85rem; white-space: nowrap; }
.import-hours { padding: 0; border: 0; margin: 1rem 0; }
.import-hours legend { font-weight: 700; margin-bottom: .3rem; }
.import-notes { margin: .5rem 0; padding-left: 1.25rem; }
@media(max-width: 620px) {
  .website-builder .import-row { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; }
  .import-row .import-choice { grid-column: 1 / -1; }
}
.domain-setup-body { display: grid; gap: .8rem; }
.domain-setup-body summary { cursor: pointer; font-weight: 650; }
.domain-setup-body [data-records] > * + *, .domain-setup-body details > p { margin-top: .65rem; }
.domain-records-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,22rem),1fr)); gap: 1rem; }
.domain-record { min-width: 0; margin-top: .75rem; padding: .85rem; border: 1px solid var(--line); border-radius: 8px; }
.domain-record h4 { margin: 0 0 .45rem; }
.domain-copy-line button { flex-shrink: 0; }
.domain-record code { overflow-wrap: anywhere; }
.domain-copy-line { display: flex; align-items: end; gap: .5rem; margin-block: .5rem; max-width: 42rem; }
.domain-copy-line label { flex: 1; min-width: 0; }
.domain-copy-line input { width: 100%; }
