/* Counter campus — token-only so light and dark stay honest.
   Layout follows 20260820_scheduling_booking_page_mockups.canvas.tsx. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

.counter-page {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 60px;
}

.counter-page-header {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 24px var(--app-pad) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.counter-page-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}

.counter-page-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.editor-context-shell .lifecycle-meta {
  margin: 8px 2px 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.counter-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 42rem;
}

.counter-soon-card,
.counter-denied {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 28px 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.counter-denied {
  margin-left: var(--app-pad);
  margin-right: var(--app-pad);
}

.counter-denied h1,
.counter-soon-card h2,
.counter-editor-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}

.counter-editor-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.counter-editor-heading {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
  min-width: 0;
}

.counter-editor-heading .counter-roster-kicker,
.counter-editor-heading .counter-editor-title {
  margin: 0;
}

.counter-editor-chrome-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.counter-editor-chrome .counter-row { margin-top: 0; }

.counter-editor-chrome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.counter-next-dates-add {
  margin-top: 8px;
}

.counter-from-preview {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in oklab, var(--ink) 4%, var(--surface));
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.counter-roster { display: grid; gap: 20px; }

.counter-date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.counter-denied p,
.counter-soon-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.counter-soon-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: color-mix(in oklab, var(--brand-orange, var(--brand1)) 12%, var(--surface));
  color: var(--brand-orange, var(--brand1));
  border: 1px solid color-mix(in oklab, var(--brand-orange, var(--brand1)) 25%, var(--line));
}

.counter-denied-home {
  display: inline-flex;
  margin-top: 16px;
  height: 38px;
  padding: 0 14px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.counter-denied-home:hover { border-color: var(--muted); }

.counter-layout {
  max-width: var(--page-w);
  margin: 16px auto 0;
  padding: 0 var(--app-pad);
  display: grid;
  gap: 20px;
}

.counter-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.counter-stack { display: grid; gap: 16px; }

.counter-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
}

.counter-panel h2,
.counter-section-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.counter-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 4px;
}

.counter-section-head .counter-section-title {
  margin: 0;
}

.counter-fields .counter-section-title,
.counter-field .counter-section-title,
.counter-field-wide > .counter-section-title,
.counter-program-child .counter-section-title {
  margin: 0 0 6px;
}

.counter-panel-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.counter-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.counter-fields .counter-field-wide,
.counter-field { grid-column: 1 / -1; }

.counter-field-half { grid-column: auto; }

.counter-fields label,
.counter-field label {
  display: block;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.counter-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.counter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.counter-listed {
  margin-top: 10px;
}

.counter-stack > .counter-listed:first-child,
.counter-stack > #svcVisitorChrome:first-child {
  margin-top: 0;
}

.counter-price-heading {
  display: block;
  margin: 10px 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.counter-listed-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-listed .counter-check { margin-top: 0; }

.counter-listed .counter-hint { margin-top: 6px; }

.counter-connect-callout {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid color-mix(in oklab, var(--brand1, #ff5f6d) 42%, var(--line));
  border-radius: 10px;
  background: color-mix(in oklab, var(--brand1, #ff5f6d) 12%, var(--surface));
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.35;
}

.counter-connect-callout[hidden] { display: none !important; }

.counter-connect-callout a {
  color: var(--ink);
  font-weight: 700;
}

.counter-check--table {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.counter-info-details {
  position: relative;
}

.counter-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid color-mix(in oklab, var(--ink) 28%, var(--line));
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  list-style: none;
}

.counter-info::-webkit-details-marker { display: none; }
.counter-info::marker { content: none; }

.counter-info:hover,
.counter-info:focus-visible {
  color: var(--ink);
  border-color: color-mix(in oklab, var(--ink) 50%, var(--line));
}

.counter-info-more {
  position: absolute;
  z-index: 3;
  top: calc(100% + 6px);
  left: 0;
  width: min(22rem, calc(100vw - 48px));
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 8px 24px color-mix(in oklab, var(--ink) 14%, transparent);
}

.counter-fields input:not([type="checkbox"]),
.counter-fields select,
.counter-fields textarea,
.counter-field input:not([type="checkbox"]),
.counter-field select,
.counter-field textarea,
.counter-form-card input:not([type="checkbox"]),
.counter-form-card select,
.counter-form-row input:not([type="checkbox"]),
.counter-join {
  width: 100%;
  min-height: 40px;
  border: 1px solid color-mix(in oklab, var(--ink) 22%, var(--line));
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
}

.counter-fields input:not([type="checkbox"]):focus,
.counter-fields select:focus,
.counter-fields textarea:focus,
.counter-field input:not([type="checkbox"]):focus,
.counter-form-card input:not([type="checkbox"]):focus,
.counter-form-card select:focus,
.counter-form-row input:not([type="checkbox"]):focus {
  outline: 2px solid color-mix(in oklab, var(--brand-orange, var(--brand1)) 45%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in oklab, var(--brand-orange, var(--brand1)) 55%, var(--line));
}

.counter-fields input:disabled,
.counter-fields select:disabled,
.counter-form-card input[readonly] {
  background: color-mix(in oklab, var(--ink) 4%, var(--surface));
  cursor: default;
}

.counter-form-card input[readonly]:focus {
  outline: none;
}

.counter-form-card input:disabled {
  color: var(--muted);
  background: color-mix(in oklab, var(--ink) 4%, var(--surface));
}

.counter-check input[type="checkbox"] {
  width: auto;
  min-height: 0;
  border: none;
  background: transparent;
  padding: 0;
}

.counter-fields textarea,
.counter-field textarea { min-height: 72px; padding: 8px 10px; }

.counter-form-card textarea {
  width: 100%;
  min-height: 40px;
  max-height: 4.5rem;
  align-self: start;
  resize: vertical;
  padding: 8px 12px;
  border: 1px solid color-mix(in oklab, var(--ink) 22%, var(--line));
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.counter-date-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0;
}

.counter-date-facts > div { margin: 0; }

.counter-date-fact-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.counter-date-fact-value {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.4;
}

.counter-date-facts .counter-field-wide,
.counter-form-card .counter-fields {
  grid-column: 1 / -1;
}

.counter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.counter-btn,
.counter-denied-home {
  display: inline-flex;
  height: 36px;
  padding: 0 13px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
}

.counter-btn:hover { border-color: var(--muted); }

.counter-btn--primary {
  color-scheme: only light;
  background: var(--cta, var(--brand1));
  border-color: transparent;
  color: var(--on-brand, #fff);
  -webkit-text-fill-color: var(--on-brand, #fff);
}

.counter-btn--primary:hover { opacity: 0.92; }

.counter-btn--ghost { background: transparent; }
.counter-btn--danger { color: var(--danger, #b42318); }

.counter-share-btn {
  width: 36px;
  padding: 0;
  justify-content: center;
}

.counter-share-btn svg { display: block; }

.counter-back-btn {
  width: max-content;
  max-width: 100%;
  gap: 8px;
}

.counter-back-btn svg {
  display: block;
  flex: 0 0 auto;
}

.counter-btn:disabled,
.counter-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.counter-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.counter-check input {
  margin-top: 3px;
}

#moneyConnectStatus[data-status="active"] {
  color: var(--ink);
  font-weight: 650;
}

.counter-status { display: none; }

.counter-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.counter-choice button {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.counter-choice button[aria-pressed="true"] {
  background: color-mix(in oklab, var(--brand-orange, var(--brand1)) 14%, var(--surface));
  color: var(--brand-orange, var(--brand1));
  border-color: transparent;
}

#svcCreditsWrap,
#offerProgramCreditsWrap,
#offerMembershipCreditsWrap {
  margin-top: 10px;
}

.counter-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
  margin-top: 8px;
}

.counter-price-unit {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
}

.counter-access-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.counter-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
  background: color-mix(in oklab, var(--ink) 6%, var(--surface));
  color: var(--muted);
}

.counter-pill--live {
  background: color-mix(in oklab, var(--brand-orange, var(--brand1)) 14%, var(--surface));
  color: var(--brand-orange, var(--brand1));
}

.counter-pill--archived {
  text-transform: none;
  background: color-mix(in oklab, var(--muted) 18%, var(--surface));
  color: var(--muted);
}

.counter-muted,
.counter-empty { color: var(--muted); font-size: 0.88rem; }

.counter-empty-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
}

.counter-empty-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.counter-empty-card p {
  margin: 8px 0 16px;
  color: var(--muted);
}

.counter-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
}

.counter-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.counter-table thead { background: var(--bg); }

.counter-table th {
  padding: 10px 14px;
  font-weight: 700;
  text-align: left;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.counter-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}

.counter-table tbody tr:last-child td { border-bottom: none; }
.counter-table tbody tr[data-open] { cursor: pointer; }
.counter-table tbody tr[data-open]:hover { background: var(--bg); }

.counter-table .counter-svc-name {
  font-weight: 700;
  color: var(--ink);
}

.counter-include-cell {
  vertical-align: top;
}

.counter-money-cell {
  max-width: 16rem;
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: normal;
}

.counter-include-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--muted);
}

.counter-include-list li {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.counter-roster-name {
  display: block;
  font-weight: 700;
}

.counter-roster-email {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.counter-party-role {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.counter-party-booker td:first-child,
.counter-party-booker td:nth-child(2) {
  font-weight: 800;
}

.counter-party-associates {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px 0 0 10px;
  border-left: 2px solid color-mix(in oklab, var(--ink) 16%, var(--line));
}

.counter-party-associates li + li {
  margin-top: 6px;
}

.counter-party-associates .counter-roster-name {
  font-weight: 650;
  font-size: 0.92rem;
}

.counter-party-unnamed {
  color: var(--muted);
  font-size: 0.78rem;
}

.counter-answers-cell {
  max-width: 22rem;
  white-space: normal;
}

.counter-answers-inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 5px;
  margin: 0 10px 2px 0;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.35;
  white-space: normal;
}

.counter-answers-inline span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.counter-path {
  color: var(--muted);
  font-size: 0.8rem;
}

.counter-public-link {
  color: var(--brand-orange, var(--brand1));
  font-weight: 700;
  text-decoration: none;
}

.counter-public-link:hover { text-decoration: underline; }

.counter-fill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 92px;
}

.counter-fill-bar {
  flex: 1;
  height: 6px;
  min-width: 64px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 8%, var(--surface));
  overflow: hidden;
}

.counter-fill-bar > span {
  display: block;
  height: 100%;
  background: var(--brand-orange, var(--brand1));
}

.counter-fill-n,
.counter-fill-wait {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
}

.counter-fill-n { color: var(--ink); }

.counter-fill-wait {
  color: var(--muted);
  font-weight: 600;
}

.counter-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 28px 32px;
}

.counter-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}

.counter-stat span {
  color: var(--muted);
  font-size: 0.78rem;
}

#svcCatalogView,
#svcSettingsView,
#svcSetupView,
#offerProgramView,
#offerMembershipView,
#moneySalesView,
#moneyCouponsView,
#moneyStripeView {
  display: grid;
  gap: 20px;
}

.counter-setup-steps {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.5;
}

.counter-setup-steps strong { font-weight: 800; }

.counter-setup-kicker {
  margin: 16px 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.counter-embed-preview {
  min-height: 72px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.counter-public-preview {
  position: relative;
  min-height: 120px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
  overflow: hidden;
}

.counter-public-preview-frame {
  display: block;
  width: 100%;
  height: min(70vh, 640px);
  border: 0;
  background: var(--canvas);
}

.counter-public-preview-shimmer {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 16px;
  background: var(--canvas);
}

.counter-shimmer-line,
.counter-shimmer-cal {
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--ink) 6%, var(--canvas)) 0%,
    color-mix(in srgb, var(--ink) 14%, var(--canvas)) 50%,
    color-mix(in srgb, var(--ink) 6%, var(--canvas)) 100%
  );
  background-size: 200% 100%;
  animation: counter-preview-shimmer 1.2s ease-in-out infinite;
}

.counter-shimmer-line {
  height: 14px;
  width: 72%;
}

.counter-shimmer-line--mid { width: 48%; }
.counter-shimmer-line--short { width: 28%; }

.counter-shimmer-cal {
  height: 168px;
  width: 100%;
  border-radius: 12px;
}

.counter-public-preview-shimmer[data-kind="cards"] .counter-shimmer-cal {
  height: 72px;
}

@keyframes counter-preview-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .counter-shimmer-line,
  .counter-shimmer-cal {
    animation: none;
    background: color-mix(in srgb, var(--ink) 8%, var(--canvas));
  }
}

.counter-public-preview-empty {
  margin: 0;
  padding: 20px 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.counter-identity {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.counter-dates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.counter-dates--two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.counter-dates--two .counter-date-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in oklab, var(--ink) 3%, var(--surface));
}

.counter-dates li {
  color: var(--ink);
  font-size: 0.9rem;
}

.counter-field-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.counter-delivery-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-top: 12px;
  min-height: 220px;
  align-items: start;
}

.counter-delivery-body label { margin-top: 8px; }
.counter-delivery-body label:first-of-type { margin-top: 0; }

.counter-delivery-body.is-virtual #svcVenueBlock,
.counter-delivery-body.is-physical #svcJoinWrap { opacity: 0.42; }

#svcAssetsCard {
  margin-top: 16px;
}

#occVenueWrap.is-off,
#occPlaceWrap.is-off,
#occJoinWrap.is-off,
#rosterVenueWrap.is-off {
  opacity: 0.42;
}

.counter-people-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.counter-people-toolbar .counter-hint {
  margin: 0;
}

.counter-form-card {
  background: color-mix(in oklab, var(--ink) 3%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.counter-form-card > label {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.counter-lookup-bar {
  max-width: 28rem;
}

.counter-lookup-bar label {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.counter-lookup-matches {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.counter-lookup-matches li + li {
  border-top: 1px solid var(--line);
}

.counter-lookup-match {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.counter-lookup-match:hover,
.counter-lookup-match:focus-visible {
  background: color-mix(in oklab, var(--ink) 6%, var(--surface));
}

.counter-lookup-match strong {
  font-size: 0.9rem;
}

.counter-lookup-match span {
  color: var(--muted);
  font-size: 0.78rem;
}

.counter-section-title--icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-section-title--icon .subtab-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.counter-asset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
  margin: 10px 0 8px;
}

.counter-asset-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 8px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 92%, var(--ink));
  color: var(--ink);
  font-size: 0.82rem;
}

.counter-asset-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.counter-asset-chip button {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.counter-asset-chip button:hover {
  color: var(--ink);
  background: color-mix(in oklab, var(--ink) 8%, transparent);
}

.counter-asset-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.counter-asset-add input {
  flex: 1 1 16rem;
  min-width: 0;
}

.counter-form-list { display: grid; gap: 8px; }

.counter-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.counter-form-row input[data-field-label],
.counter-form-row input[data-program-field-label],
.counter-form-row input[data-membership-field-label] {
  flex: 1 1 12rem;
  min-width: 0;
}

.counter-form-row .counter-order-buttons {
  flex: 0 0 auto;
}

.counter-form-row .counter-check { margin-top: 0; white-space: nowrap; }

.counter-form-row--locked {
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.counter-form-row--locked .counter-field-locked-label {
  flex: 1 1 12rem;
  min-width: 0;
  font-weight: 750;
  color: var(--ink);
}

.counter-form-row--locked .counter-field-locked-note {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.counter-cta-row td { padding: 22px 16px; }

.counter-cta-row strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ink);
}

.counter-cta-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.counter-cta-row:hover {
  background: color-mix(in oklab, var(--brand-orange, var(--brand1)) 8%, var(--surface));
}

.counter-proposal {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.counter-proposal-copy,
.counter-proposal-rationale,
.counter-proposal-later,
.counter-proposal-stale {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.counter-proposal-stale { color: var(--ink); }

.counter-proposal-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.counter-proposal-main { min-width: 0; flex: 1 1 auto; }

.counter-proposal-kind {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.counter-proposal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.counter-proposal-row:first-of-type { border-top: 0; }

.counter-proposal-row strong {
  display: block;
  color: var(--ink);
}

.counter-proposal-why,
.counter-proposal-summary,
.counter-proposal-children,
.counter-proposal-cite {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.counter-proposal-why { color: var(--ink); font-weight: 600; }

.counter-proposal-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.counter-proposal-fact {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--ink) 5%, var(--surface));
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
}

.counter-proposal-fact--hint {
  border-style: dashed;
  color: var(--muted);
  font-weight: 500;
}

.counter-proposal #counterProposalLabLink {
  margin-top: 8px;
}

.counter-window {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.counter-window button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
}

.counter-window button[aria-pressed="true"] {
  background: color-mix(in oklab, var(--ink) 7%, var(--surface));
  color: var(--ink);
}

.counter-agenda-l3,
.counter-services-l3,
.counter-offers-l3,
.counter-settings-l3,
.counter-board-l3,
.counter-money-l3 {
  max-width: var(--page-w);
  margin: 16px auto 0;
  padding: 0 var(--app-pad);
}

.counter-offers-l3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.counter-offers-archived-filter {
  margin: 0;
  color: var(--ink);
}

.counter-catalog-name {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.counter-agenda-l3 .subtab-icon,
.counter-services-l3 .subtab-icon,
.counter-offers-l3 .subtab-icon,
.counter-settings-l3 .subtab-icon,
.counter-board-l3 .subtab-icon,
.counter-money-l3 .subtab-icon {
  width: 15px;
  height: 15px;
  margin-right: 6px;
}

.counter-page-header #boardStats .counter-stats {
  justify-content: flex-end;
}

.counter-sample-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.counter-people-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: end;
  margin: 0 0 16px;
  padding: 12px 14px;
}

.counter-people-filters label {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.counter-people-filters .select {
  min-width: 12rem;
}

.counter-pill--plain {
  text-transform: none;
}

.counter-pill--pending {
  background: color-mix(in oklab, #c9862a 16%, var(--surface));
  color: color-mix(in oklab, #c9862a 70%, var(--ink));
}

.counter-pay-status {
  font-weight: 600;
}

.counter-pay-status--paid {
  color: var(--ok);
}

.counter-pay-status--due {
  color: var(--warn);
}

.counter-pay-status--unpaid {
  color: var(--danger);
}

.counter-roster .counter-form-card .counter-table-wrap {
  margin: 0;
}

.counter-req {
  color: var(--brand);
  font-weight: 800;
}

.counter-enroll-seats {
  display: grid;
  gap: 12px;
}

.counter-enroll-seat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: color-mix(in oklab, var(--ink) 2%, var(--surface));
}

.counter-enroll-seat-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.counter-enroll-seat label {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.counter-booking-seats ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.counter-booking-seats li {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.92rem;
}

.counter-booking-seats li:last-child {
  margin-bottom: 0;
}

.counter-agenda-toolbar {
  max-width: var(--page-w);
  margin: 12px auto 0;
  padding: 0 var(--app-pad);
}

.counter-roster-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.counter-skeleton {
  height: 14px;
  border-radius: 8px;
  background: color-mix(in oklab, var(--ink) 8%, var(--surface));
}

.counter-busy { opacity: 0.64; pointer-events: none; }

.counter-program-services { margin-top: 20px; }

.counter-program-children-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 12px 0;
}

.counter-program-child {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in oklab, var(--ink) 3%, var(--surface));
}

.counter-program-child-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.counter-order-buttons {
  display: flex;
  gap: 4px;
}

.counter-order-buttons .counter-btn {
  min-width: 32px;
  padding: 4px 8px;
}

.counter-order-buttons .counter-btn:disabled {
  opacity: 0.4;
}

.counter-program-child-foot {
  display: grid;
  gap: 10px;
}

.counter-choice--enroll {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.counter-choice--enroll button {
  width: 100%;
  height: auto;
  min-height: 30px;
  padding: 6px 8px;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}

@media (max-width: 900px) {
  .counter-editor-grid,
  .counter-fields,
  .counter-date-facts,
  .counter-dates--two,
  .counter-delivery-body { grid-template-columns: 1fr; }
  .counter-delivery-body { min-height: 400px; }
  .counter-form-row { display: flex; }
}

.counter-story-preview {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
}

.counter-story-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.counter-library-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  background: color-mix(in oklab, #000 45%, transparent);
}

.counter-library-modal[hidden] { display: none; }

.counter-library-dialog {
  width: min(40rem, 100%);
  max-height: 80vh;
  overflow: auto;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.counter-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.counter-library-grid button {
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--canvas);
}

.counter-library-grid button[aria-pressed="true"] { border-color: var(--brand); }

.counter-library-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

@media (max-width: 640px) {
  .counter-page-header h1 { font-size: 1.3rem; }
  .counter-soon-card { margin-left: var(--app-pad); margin-right: var(--app-pad); padding: 22px 18px; }
  #svcOfferingList .counter-col-next { display: none; }
}
