:root {
  color-scheme: light;
  --ink: #172632;
  --ink-soft: #4d5f6d;
  --muted: #74838e;
  --line: #dce4e8;
  --line-strong: #c9d4da;
  --surface: #ffffff;
  --surface-soft: #f4f7f8;
  --canvas: #edf2f3;
  --green: #0b5d4b;
  --green-dark: #084438;
  --green-soft: #e6f3ef;
  --blue: #245f9e;
  --blue-soft: #e9f1fa;
  --amber: #a96511;
  --amber-soft: #fff2dc;
  --red: #a63f3f;
  --red-soft: #fbeaea;
  --purple: #695198;
  --purple-soft: #f0ecf8;
  --shadow: 0 8px 24px rgba(23, 38, 50, 0.08);
  --sidebar-width: 220px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.45;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(36, 95, 158, 0.25);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.auth-shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 28px;
  background: #e8eff0;
  border-top: 8px solid var(--green);
}

.auth-card {
  width: min(460px, 100%);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 38, 50, 0.13);
}

.session-check-card {
  border-radius: 14px;
}

.session-check-panel {
  padding-block: 42px;
  text-align: center;
}

.session-check-panel h1 {
  margin-top: 5px;
}

.session-check-panel .auth-intro {
  margin-bottom: 0;
}

.session-check-mark {
  display: flex;
  justify-content: center;
  gap: 7px;
  min-height: 18px;
  margin-bottom: 24px;
}

.session-check-mark i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  animation: session-check-pulse 1.15s ease-in-out infinite;
}

.session-check-mark i:nth-child(2) { animation-delay: 0.14s; }
.session-check-mark i:nth-child(3) { animation-delay: 0.28s; }

@keyframes session-check-pulse {
  0%, 60%, 100% { opacity: 0.28; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .session-check-mark i { animation: none; opacity: 0.72; }
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  color: #fff;
  background: #14352f;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #14352f;
  background: #d9efe7;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
}

.auth-brand strong,
.auth-brand span {
  display: block;
}

.auth-brand strong {
  font-size: 17px;
}

.auth-brand span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.auth-panel {
  padding: 28px;
}

.auth-panel h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.auth-intro,
.auth-footnote {
  color: var(--muted);
}

.auth-intro {
  margin: 8px 0 22px;
}

.auth-footnote {
  margin: 17px 0 0;
  font-size: 12px;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.auth-form label small,
.password-fields label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
}

.auth-secondary {
  width: 100%;
  margin-top: 10px;
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.auth-separator::before,
.auth-separator::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.auth-passkey {
  width: 100%;
  min-height: 48px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: #b8dfd2;
}

.auth-passkey svg {
  width: 21px;
  height: 21px;
}

.auth-passkey-error {
  margin-top: 12px;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid #efc4c4;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 650;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 18px 14px 14px;
  color: #fff;
  background: #14352f;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 4px 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  color: #14352f;
  background: #d9efe7;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.sidebar-navigation {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.sidebar-navigation::-webkit-scrollbar { display: none; }

.nav-list {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.nav-section-label {
  display: block;
  margin: 12px 11px 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-list > .nav-section-label:first-child {
  margin-top: 0;
}

.nav-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.76);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}

.nav-item svg {
  width: 18px;
  height: 18px;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-item.is-active {
  color: #fff;
  background: rgba(217, 239, 231, 0.13);
  border-color: rgba(217, 239, 231, 0.2);
}

.sidebar-owner-zone {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 14px;
}

.owner-workshop-link {
  color: #f8e7ac;
  background: rgba(244, 217, 144, 0.08);
  border-color: rgba(244, 217, 144, 0.16);
}

.owner-report-link {
  grid-template-columns: 20px minmax(0, 1fr) auto;
}

.owner-report-link > span:not(.nav-count) {
  min-width: 0;
  white-space: nowrap;
}

.owner-workshop-link:hover,
.owner-workshop-link.is-active {
  color: #fff;
  background: rgba(244, 217, 144, 0.16);
  border-color: rgba(244, 217, 144, 0.28);
}

.nav-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  padding: 0 6px;
  color: #fff;
  border-radius: 11px;
  background: #c94766;
  font-size: 11px;
  font-weight: 900;
}

.site-control-intro h2 { margin: 4px 0 12px; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.site-control-intro p:last-child { color: var(--text-muted, #64748b); max-width: 70ch; line-height: 1.6; }
.site-control-domains { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.site-control-domains button { display: flex; align-items: center; gap: 12px; min-height: 88px; padding: 16px; border: 1px solid #dce2ec; border-radius: 16px; background: #fff; color: #455267; text-align: left; cursor: pointer; }
.site-control-domains button.is-selected { border-color: #597cda; background: #eff3ff; box-shadow: inset 0 0 0 1px #597cda; color: #2749a6; }
.site-control-domains strong, .site-control-domains small { display: block; }
.site-control-domains small { margin-top: 5px; font-size: .76rem; }
.site-control-domains button:focus-visible, .site-control-collection > summary:focus-visible { outline: 3px solid #597cda; outline-offset: 3px; }
.site-control-collection { background: #fff; border: 1px solid #dfe5ef; border-radius: 20px; overflow: hidden; margin-bottom: 18px; }
.site-control-collection > summary { padding: 22px 24px; cursor: pointer; font-size: 1.12rem; font-weight: 750; }
.site-control-collection > summary span { display: block; padding-left: 20px; margin-top: 7px; font-size: .8rem; font-weight: 400; color: #637084; }
.site-control-collection > .activities-control-tree, .site-control-collection > .panel { margin: 0 18px 18px; }
.photo-safety-group { margin: 0 18px 18px 44px; background: #f8fafc; }
.site-control-view .activities-tree-branch { margin-left: 28px; }
.site-control-view .activities-control-card { box-shadow: none; }
.site-control-view .activities-control-copy a { overflow-wrap: anywhere; }
.site-control-view .availability-services { grid-template-columns: 1fr; }
.site-publication-list { display: grid; padding: 0 24px 20px; }
.site-publication-list article { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid #e8ecf2; }
.site-publication-list h3 { margin: 8px 0 5px; font-size: 1rem; }
.site-publication-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 620px) {
  .site-control-domains { grid-template-columns: 1fr 1fr; }
  .site-control-domains button { padding: 12px; gap: 8px; }
  .site-control-domains button > svg { display: none; }
  .site-control-collection > summary { padding: 18px 14px; }
  .site-control-collection > .activities-control-tree, .site-control-collection > .panel { margin: 0 10px 12px; }
  .site-control-view .activities-tree-branch { margin-left: 10px; }
  .site-control-view .activities-control-card { grid-template-columns: 1fr; padding: 18px; gap: 12px; }
  .site-control-view .activities-control-icon { display: none; }
  .site-control-view .activities-control-copy a { font-size: .73rem; font-weight: 500; }
  .photo-safety-group { margin: 0 10px 12px; }
  .site-publication-list { padding: 0 14px 16px; }
  .site-publication-list article { align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-publication-actions { justify-content: flex-start; }
}

.site-control-link {
  position: relative;
  grid-template-columns: 20px minmax(0, 1fr) auto;
}

.nav-alert {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fff;
  background: #c54b4b;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.sidebar-foot {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: stretch;
  gap: 7px;
}

.sign-out-button {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 48px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.sign-out-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.sign-out-button svg {
  width: 18px;
  height: 18px;
}

.environment-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #70d6b1;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(112, 214, 177, 0.13);
}

.user-compact {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.avatar-placeholder {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--green-dark);
  background: #e7f3ef;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.user-compact strong,
.user-compact small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-compact strong {
  font-size: 12px;
}

.user-compact small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.main-column {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  padding: 14px clamp(18px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.topbar h1,
.dialog h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.icon-button:hover {
  color: var(--green);
  border-color: var(--green);
}

.mobile-sign-out {
  display: none;
}

.icon-button svg,
.button svg,
.table-action svg,
.inline-action svg {
  width: 17px;
  height: 17px;
}

.icon-button.is-spinning svg {
  animation: spin 0.8s linear infinite;
}

main {
  min-width: 0;
  padding: 22px clamp(18px, 3vw, 34px) 44px;
}

.loading-state {
  display: grid;
  gap: 18px;
  max-width: 1040px;
}

.loading-state p {
  margin: 0;
  color: var(--muted);
}

.loading-bar,
.loading-grid span {
  position: relative;
  overflow: hidden;
  background: #dde5e8;
  border-radius: 6px;
}

.loading-bar::after,
.loading-grid span::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  content: "";
  animation: loading 1.3s ease-in-out infinite;
}

.loading-bar {
  width: min(420px, 80%);
  height: 54px;
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.loading-grid span {
  height: 106px;
}

.view-stack {
  display: grid;
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
}

.section-heading,
.panel-heading,
.toolbar,
.metric-head,
.service-row,
.provider-row,
.document-row,
.audit-row,
.empty-state,
.account-row {
  display: flex;
  align-items: center;
}

.section-heading,
.toolbar {
  justify-content: space-between;
  gap: 14px;
}

.section-heading h2,
.panel-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.section-heading p,
.panel-heading p,
.section-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.exchange-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-width: 0;
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 6px;
}

.metric:nth-child(2) {
  border-top-color: var(--blue);
}

.metric:nth-child(3) {
  border-top-color: var(--amber);
}

.metric:nth-child(4) {
  border-top-color: var(--purple);
}

.metric-head {
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-head svg {
  width: 17px;
  height: 17px;
}

.metric-value {
  display: block;
  margin-top: 9px;
  overflow-wrap: anywhere;
  font-size: 27px;
  font-weight: 780;
  line-height: 1;
}

.metric-foot {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  align-items: start;
  gap: 16px;
}

.quality-overview-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: stretch;
  min-height: 184px;
}

.quality-overview-score {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  color: #214d45;
  background: #eff7f4;
  border-right: 1px solid #cfe0da;
}

.quality-overview-score strong {
  font-size: 32px;
  line-height: 1;
}

.quality-overview-score span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.quality-overview-score progress {
  width: 100%;
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  accent-color: var(--green);
  border: 0;
  border-radius: 10px;
}

.quality-queue {
  display: grid;
  align-content: start;
}

.quality-queue > div {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 13px;
  border-bottom: 1px solid var(--line);
}

.quality-queue > div:last-child {
  border-bottom: 0;
}

.quality-queue span,
.quality-queue strong,
.quality-queue small {
  display: block;
  min-width: 0;
}

.quality-queue strong {
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.quality-queue small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.quality-queue-clear {
  justify-content: flex-start !important;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

.quality-queue-clear svg {
  width: 19px;
  height: 19px;
}

.panel-link {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  color: var(--green-dark);
  background: var(--surface-soft);
  border: 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.panel-link:hover {
  background: var(--green-soft);
}

.panel-link svg {
  width: 16px;
  height: 16px;
}

.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.workshop-banner {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  color: #fff;
  background: #2f3653;
  border: 1px solid #252b43;
  border-radius: 7px;
}

.workshop-banner-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #2f3653;
  background: #f4d990;
  border-radius: 6px;
}

.workshop-banner-icon svg {
  width: 24px;
  height: 24px;
}

.workshop-banner .eyebrow {
  color: #f4d990;
}

.workshop-banner h2,
.workshop-card h3 {
  margin: 0;
}

.workshop-banner h2 {
  font-size: 21px;
}

.workshop-banner p:not(.eyebrow) {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workshop-grid > .empty-state {
  grid-column: 1 / -1;
  min-height: 240px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
}

.workshop-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(74px, 1fr) auto auto;
  gap: 13px;
  min-width: 0;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--purple);
  border-radius: 7px;
}

.workshop-card-head,
.workshop-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.workshop-subject {
  overflow: hidden;
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.workshop-card-copy h3 {
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.25;
}

.workshop-card-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.workshop-card-meta {
  align-items: flex-start;
  flex-direction: column;
  color: var(--muted);
  font-size: 11px;
}

.workshop-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.workshop-card-meta svg {
  width: 14px;
  height: 14px;
}

.workshop-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.workshop-card-actions > .button {
  min-width: 0;
  padding-inline: 8px;
  gap: 6px;
}

.panel-heading {
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-actions,
.account-statuses {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.role-overview {
  display: grid;
  gap: 12px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.role-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 148px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--purple);
  border-radius: 7px;
}

.role-card.role-owner {
  border-top-color: var(--green);
}

.role-card.role-reviewer {
  border-top-color: var(--blue);
}

.role-card.role-principal {
  border-top-color: var(--amber);
}

.role-card.is-current {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(11, 93, 75, 0.08);
}

.role-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 6px;
}

.role-reviewer .role-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.role-principal .role-icon {
  color: var(--amber);
  background: var(--amber-soft);
}

.availability-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  background: var(--surface);
  border: 1px solid #b8dfd2;
  border-left: 5px solid var(--green);
  border-radius: 7px;
}

.availability-summary.is-paused {
  border-color: #efc4c4;
  border-left-color: var(--red);
}

.availability-summary-icon,
.availability-emergency-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 6px;
}

.availability-summary.is-paused .availability-summary-icon {
  color: var(--red);
  background: var(--red-soft);
}

.availability-summary small,
.availability-summary strong,
.availability-summary span {
  display: block;
}

.availability-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.availability-summary strong {
  margin-top: 2px;
  font-size: 15px;
}

.availability-summary div > span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
}

.availability-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  color: #fff;
  background: #123d35;
  border: 1px solid #26584f;
  border-radius: 7px;
}

.availability-command-bar.is-paused {
  background: #612f35;
  border-color: #83454d;
}

.availability-command-bar h2,
.availability-command-bar p {
  margin: 0;
}

.availability-command-bar h2 {
  font-size: 24px;
}

.availability-command-bar p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
}

.availability-command-bar .eyebrow {
  color: #a9ddd1;
}

.availability-command-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}

.availability-command-status svg {
  width: 18px;
  height: 18px;
}

.availability-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.availability-service {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 15px;
  padding: 19px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 7px;
}

.availability-service.is-paused {
  border-top-color: var(--red);
}

.availability-service-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 6px;
}

.availability-service.is-paused .availability-service-icon {
  color: var(--red);
  background: var(--red-soft);
}

.availability-service-copy h3,
.availability-service-copy p {
  margin: 0;
}

.availability-service-copy h3 {
  margin-top: 9px;
  font-size: 18px;
}

.availability-service-copy a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.availability-service-copy a svg {
  width: 13px;
  height: 13px;
}

.availability-service-copy p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
}

.availability-service > .button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 2px;
}

.availability-reason-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  align-items: end;
  gap: 18px;
  padding: 17px;
}

.availability-reason-row label span,
.availability-last-change small,
.availability-last-change strong,
.availability-last-change span {
  display: block;
}

.availability-reason-row label span {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.availability-reason-row input {
  width: 100%;
  min-height: 46px;
}

.availability-last-change {
  padding: 10px 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.availability-last-change small,
.availability-last-change span {
  color: var(--muted);
  font-size: 10px;
}

.availability-last-change strong {
  margin: 2px 0;
  font-size: 12px;
}

.availability-emergency-zone {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px;
  background: #fff7f7;
  border: 1px solid #e6b8b8;
  border-radius: 7px;
}

.availability-emergency-icon {
  color: var(--red);
  background: var(--red-soft);
}

.availability-emergency-zone strong,
.availability-emergency-zone span {
  display: block;
}

.availability-emergency-zone strong {
  color: var(--red);
  font-size: 14px;
}

.availability-emergency-zone div > span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.availability-emergency-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activities-control-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border: 1px solid #abd8cc;
  border-radius: 24px;
  background: linear-gradient(135deg, #e9f6f1, #f7fbfa);
}

.activities-control-banner-icon,
.activities-control-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  background: #17634f;
}

.activities-control-banner-icon svg,
.activities-control-icon svg { width: 28px; height: 28px; }
.activities-control-banner h2,
.activities-control-banner p { margin: 0; }
.activities-control-banner h2 { font-size: 1.45rem; }
.activities-control-banner p:not(.eyebrow) { margin-top: 7px; color: #48675f; line-height: 1.5; }
.activities-control-banner a,
.activities-control-copy a { display: inline-flex; align-items: center; gap: 5px; color: inherit; font-weight: 750; text-underline-offset: 3px; }
.activities-control-banner a svg,
.activities-control-copy a svg { width: 14px; height: 14px; }

.activities-control-tree { display: grid; gap: 14px; }
.activities-tree-branch { position: relative; padding-left: 48px; }
.activities-tree-branch::before { content: ""; position: absolute; left: 22px; top: -14px; bottom: 50%; width: 2px; background: #b8c7c2; }
.activities-tree-branch::after { content: ""; position: absolute; left: 22px; top: 50%; width: 26px; height: 2px; background: #b8c7c2; }
.activities-control-card { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 24px; border: 1px solid #cbd8d4; border-radius: 22px; background: #fff; }
.activities-control-card.is-paused { border-color: #e2b7b2; background: #fffafa; }
.activities-control-card.is-paused .activities-control-icon { background: #a94440; }
.activities-control-copy h3 { margin: 8px 0 4px; font-size: 1.25rem; }
.activities-control-copy p { margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
.activities-readiness-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; padding: 22px 24px 8px; }
.activities-readiness-form label { display: grid; gap: 7px; color: var(--muted); font-size: .86rem; font-weight: 750; }
.activities-readiness-form input, .activities-readiness-form textarea { min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; }
.activities-readiness-form textarea { min-height: 92px; resize: vertical; }
.activities-readiness-form .button { min-height: 44px; }
.activities-control-meta > .field-hint { margin: 8px 24px 22px; }
.activities-last-change { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 22px 24px; }
.activities-last-change span { display: grid; gap: 4px; }
.activities-last-change small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }

@media (max-width: 760px) {
  .activities-control-banner,
  .activities-control-card { grid-template-columns: auto minmax(0, 1fr); }
  .activities-control-banner > .status-badge,
  .activities-control-card > .button { grid-column: 1 / -1; justify-self: stretch; }
  .activities-tree-branch { padding-left: 28px; }
  .activities-tree-branch::before { left: 12px; }
  .activities-tree-branch::after { left: 12px; width: 16px; }
  .activities-last-change { grid-template-columns: 1fr; }
  .activities-readiness-form { grid-template-columns: 1fr; }
}

.role-viewer .role-icon {
  color: var(--purple);
  background: var(--purple-soft);
}

.role-icon svg {
  width: 20px;
  height: 20px;
}

.role-name,
.role-card strong,
.role-card p {
  display: block;
}

.role-name {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.role-card strong {
  font-size: 14px;
}

.role-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.current-role {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid #b8dfd2;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.access-role-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  color: #354a5a;
  background: #eef5f8;
  border: 1px solid #bed0da;
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
}

.access-role-note svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-top: 1px;
  color: var(--blue);
}

.shared-preview-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  color: #2f4e48;
  background: #edf7f3;
  border: 1px solid #b9d8ce;
  border-left: 4px solid var(--green);
  border-radius: 6px;
}

.shared-preview-note > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--green);
}

.shared-preview-note strong,
.shared-preview-note span {
  display: block;
}

.shared-preview-note strong {
  font-size: 12px;
}

.shared-preview-note span {
  margin-top: 2px;
  color: #526d68;
  font-size: 11px;
  line-height: 1.45;
}

.access-content-grid > .panel,
.access-onboarding {
  border-color: var(--line-strong);
}

.panel-body {
  padding: 16px;
}

.panel-body.flush {
  padding: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 3px 8px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.status-badge.stable,
.status-badge.active,
.status-badge.ready,
.status-badge.verified,
.status-badge.live {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: #b8dfd2;
}

.status-badge.review-needed,
.status-badge.attention,
.status-badge.needs-review {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: #efd19c;
}

.status-badge.not-connected,
.status-badge.pending,
.status-badge.paused {
  color: var(--red);
  background: var(--red-soft);
  border-color: #efc4c4;
}

.status-badge.planned,
.status-badge.draft {
  color: var(--purple);
  background: var(--purple-soft);
  border-color: #d9ccec;
}

.status-badge.local {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #c7d9ec;
}

.progress-list {
  display: grid;
  gap: 13px;
}

.progress-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(110px, 1.6fr) auto;
  align-items: center;
  gap: 12px;
}

.progress-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-track {
  appearance: none;
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: #e7edef;
  border: 0;
  border-radius: 999px;
}

.progress-track::-webkit-progress-bar {
  background: #e7edef;
  border-radius: 999px;
}

.progress-track::-webkit-progress-value {
  background: var(--green);
  border-radius: 999px;
}

.progress-track::-moz-progress-bar {
  background: var(--green);
  border-radius: 999px;
}

.progress-value {
  min-width: 38px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.service-list,
.provider-list,
.document-list,
.audit-list,
.account-list {
  display: grid;
}

.service-row,
.provider-row,
.document-row,
.audit-row,
.account-row {
  min-width: 0;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.service-row:last-child,
.provider-row:last-child,
.document-row:last-child,
.audit-row:last-child,
.account-row:last-child {
  border-bottom: 0;
}

.row-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 6px;
}

.row-icon svg {
  width: 18px;
  height: 18px;
}

.row-copy {
  min-width: 0;
  flex: 1;
}

.row-copy strong,
.row-copy span {
  display: block;
}

.row-copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.chart-shell {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  min-height: 190px;
}

.chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0 25px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(30, minmax(4px, 1fr));
  align-items: end;
  gap: 3px;
  height: 190px;
  padding: 4px 0 24px;
  border-bottom: 1px solid var(--line-strong);
  background-image: linear-gradient(to bottom, transparent 24%, var(--line) 25%, transparent 26%, transparent 49%, var(--line) 50%, transparent 51%, transparent 74%, var(--line) 75%, transparent 76%);
}

.chart-bar {
  position: relative;
  min-height: 2px;
  background: var(--blue);
  border-radius: 3px 3px 0 0;
}

.chart-bar.zero {
  background: #cfd9de;
}

.chart-bar.height-2 { height: 2%; }
.chart-bar.height-5 { height: 5%; }
.chart-bar.height-10 { height: 10%; }
.chart-bar.height-15 { height: 15%; }
.chart-bar.height-20 { height: 20%; }
.chart-bar.height-25 { height: 25%; }
.chart-bar.height-30 { height: 30%; }
.chart-bar.height-35 { height: 35%; }
.chart-bar.height-40 { height: 40%; }
.chart-bar.height-45 { height: 45%; }
.chart-bar.height-50 { height: 50%; }
.chart-bar.height-55 { height: 55%; }
.chart-bar.height-60 { height: 60%; }
.chart-bar.height-65 { height: 65%; }
.chart-bar.height-70 { height: 70%; }
.chart-bar.height-75 { height: 75%; }
.chart-bar.height-80 { height: 80%; }
.chart-bar.height-85 { height: 85%; }
.chart-bar.height-90 { height: 90%; }
.chart-bar.height-95 { height: 95%; }
.chart-bar.height-100 { height: 100%; }

.chart-bar::after {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  display: none;
  color: var(--muted);
  font-size: 9px;
  content: attr(data-day);
  transform: translateX(-50%);
}

.chart-bar:nth-child(1)::after,
.chart-bar:nth-child(8)::after,
.chart-bar:nth-child(15)::after,
.chart-bar:nth-child(22)::after,
.chart-bar:nth-child(30)::after {
  display: block;
}

.chart-empty {
  display: grid;
  place-items: center;
  min-height: 190px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.search-box {
  position: relative;
  min-width: min(300px, 50vw);
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding-left: 38px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #97a4ad;
}

.button,
.table-action,
.inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary,
.table-action,
.inline-action {
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.button.secondary:hover,
.table-action:hover,
.inline-action:hover {
  color: var(--green);
  border-color: var(--green);
}

.button.danger,
.table-action.danger {
  color: var(--red);
  background: var(--surface);
  border: 1px solid #dfaaaa;
}

.button.danger:hover,
.table-action.danger:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.button:disabled,
.table-action:disabled,
.inline-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  color: var(--muted);
  background: #f8fafb;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.data-table td {
  font-size: 13px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fbfcfc;
}

.table-title {
  display: block;
  font-weight: 720;
}

.table-subtitle {
  display: block;
  max-width: 340px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.table-action {
  min-height: 36px;
  padding: 6px 9px;
  font-size: 12px;
}

.summary-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
}

.summary-line strong {
  color: var(--ink);
}

.provider-row {
  align-items: flex-start;
}

.provider-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.budget-copy {
  min-width: 88px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.document-row {
  align-items: flex-start;
}

.document-row .row-copy strong {
  white-space: normal;
}

.document-row .row-copy span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.document-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.audit-row {
  align-items: flex-start;
}

.audit-time {
  flex: 0 0 108px;
  color: var(--muted);
  font-size: 11px;
}

.audit-copy {
  min-width: 0;
  flex: 1;
  font-size: 12px;
}

.account-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1.2fr) minmax(150px, 1fr) auto 36px;
}

.account-row > * {
  min-width: 0;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid #b8dfd2;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.account-role {
  color: var(--muted);
  font-size: 12px;
}

.table-action.icon-only {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.pending-account {
  padding: 16px;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
}

.account-management {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 20px 20px;
  padding: 13px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.account-management strong,
.account-management span {
  display: block;
}

.account-management span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.account-management-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.pending-account strong,
.pending-account span {
  display: block;
}

.panel-note,
.access-gate-note,
.permission-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  background: var(--blue-soft);
  font-size: 12px;
  line-height: 1.45;
}

.access-onboarding .panel-heading {
  align-items: flex-start;
}

.access-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.access-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.access-steps li:last-child {
  border-right: 0;
}

.access-steps li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-weight: 800;
}

.access-steps strong,
.access-steps small {
  display: block;
}

.access-steps small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.temporary-password-control {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f7f4fb;
  border-top: 1px solid #d7cce4;
}

.temporary-password-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--purple);
  border-radius: 6px;
}

.temporary-password-icon svg {
  width: 20px;
  height: 20px;
}

.temporary-password-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.temporary-password-copy small {
  color: var(--purple);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.temporary-password-copy code {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #2f2341;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.temporary-password-copy > span {
  color: #6f647d;
  font-size: 10px;
  line-height: 1.4;
}

.temporary-password-actions {
  display: flex;
  gap: 8px;
}

.temporary-password-actions .button {
  min-width: 82px;
}

.panel-note {
  padding: 13px 16px;
  border-top: 1px solid #c7d9ec;
}

.access-gate-note,
.permission-note {
  margin: 16px 20px 0;
  padding: 11px 12px;
  border: 1px solid #c7d9ec;
  border-radius: 5px;
}

.panel-note svg,
.access-gate-note svg,
.permission-note svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--blue);
}

.pending-account span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.collection-pilot-panel {
  grid-column: 1 / -1;
  overflow: hidden;
}

.collection-pilot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 14px;
  padding: 16px;
}

.collection-pilot-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.collection-pilot-map > span {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
  min-height: 76px;
  padding: 11px;
}

.collection-pilot-map > span > svg {
  grid-row: 1 / 3;
  width: 21px;
  height: 21px;
  color: var(--blue);
}

.collection-pilot-map small,
.collection-pilot-map strong {
  display: block;
  min-width: 0;
}

.collection-pilot-map small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.collection-pilot-map strong {
  font-size: 11px;
  line-height: 1.3;
}

.collection-pilot-map > svg {
  width: 16px;
  height: 16px;
  color: var(--line-strong);
}

.collection-pilot-boundary,
.collection-cloud-lock {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border-radius: 6px;
}

.collection-pilot-boundary {
  color: #5b4b1f;
  background: #fff8e5;
  border: 1px solid #e3d49a;
}

.collection-pilot-boundary svg,
.collection-cloud-lock svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.collection-pilot-boundary strong,
.collection-pilot-boundary span,
.collection-cloud-lock strong,
.collection-cloud-lock span {
  display: block;
}

.collection-pilot-boundary strong,
.collection-cloud-lock strong {
  font-size: 12px;
}

.collection-pilot-boundary span,
.collection-cloud-lock span {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.45;
}

.collection-pilot-form {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(140px, 0.6fr));
  align-items: end;
  gap: 12px;
  padding: 0 16px 16px;
}

.collection-pilot-form > label:not(.switch-row) {
  display: grid;
  gap: 6px;
}

.collection-pilot-form > label:not(.switch-row) > span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.collection-pilot-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.collection-cloud-lock {
  margin: 0 16px 16px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.collection-cloud-lock strong,
.collection-cloud-lock span {
  display: inline;
}

.collection-cloud-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 16px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.collection-cloud-facts > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--line);
}

.collection-cloud-facts > span:last-child {
  border-right: 0;
}

.collection-cloud-facts strong {
  font-size: 12px;
}

.collection-cloud-facts small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.cloud-service-actions {
  padding: 0 16px 16px;
}

.account-security-panel {
  grid-column: 1 / -1;
}

.passkey-list {
  display: grid;
}

.passkey-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.passkey-row:last-child {
  border-bottom: 0;
}

.passkey-row-icon,
.passkey-empty-icon,
.passkey-dialog-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 6px;
}

.passkey-row-icon svg,
.passkey-empty-icon svg,
.passkey-dialog-icon svg {
  width: 21px;
  height: 21px;
}

.passkey-empty {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 16px;
}

.passkey-empty strong,
.passkey-empty span,
.passkey-dialog-intro strong,
.passkey-dialog-intro span,
.passkey-remove-copy strong,
.passkey-remove-copy span {
  display: block;
}

.passkey-empty span,
.passkey-dialog-intro span,
.passkey-remove-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.settings-list {
  display: grid;
  margin: 0;
}

.settings-list div {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.settings-list div:last-child {
  border-bottom: 0;
}

.settings-list dt {
  color: var(--muted);
  font-size: 12px;
}

.settings-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 650;
}

.empty-state {
  justify-content: center;
  min-height: 150px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state > div {
  max-width: 390px;
}

.empty-state svg {
  width: 28px;
  height: 28px;
  margin-bottom: 9px;
  color: var(--blue);
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  color: var(--ink);
}

.empty-state span {
  margin-top: 4px;
  font-size: 12px;
}

.dialog {
  width: min(620px, calc(100vw - 40px));
  max-width: none;
  max-inline-size: none;
  min-width: 0;
  min-inline-size: 0;
  max-height: calc(100dvh - 28px);
  overflow: hidden;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  inset: 0;
  margin: auto;
}

.dialog::backdrop {
  background: rgba(13, 27, 34, 0.56);
}

.dialog-frame {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100dvh - 28px);
  overscroll-behavior: contain;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.dialog.dialog-wide {
  width: min(1120px, calc(100vw - 40px));
  max-width: none;
  max-inline-size: none;
}

.dialog-head {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.dialog-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.project-dirty-badge {
  white-space: nowrap;
}

.dialog-head > div {
  min-width: 0;
}

.dialog-head h2 {
  overflow-wrap: anywhere;
}

.passkey-dialog-intro {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 18px 20px 0;
  padding: 14px;
  background: var(--green-soft);
  border: 1px solid #b8dfd2;
  border-radius: 6px;
}

.passkey-dialog-intro .passkey-dialog-icon {
  color: #fff;
  background: var(--green);
}

.passkey-remove-copy {
  margin: 18px 20px 0;
  padding: 14px;
  background: var(--red-soft);
  border: 1px solid #efc4c4;
  border-radius: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.release-controls {
  min-width: 0;
  margin: 0 20px 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.project-control-group {
  min-width: 0;
  margin: 0 20px 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.project-control-group legend {
  width: 100%;
  padding: 11px 14px;
  color: var(--ink);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-control-group .form-grid {
  padding: 14px;
}

.quality-gate-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: #f5f8f7;
  border-bottom: 1px solid var(--line);
}

.quality-gate-explainer,
.quality-overview-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #385267;
  background: #edf4f8;
  border-bottom: 1px solid #cbdbe4;
  font-size: 10px;
  line-height: 1.45;
}

.quality-gate-explainer {
  padding: 10px 14px;
}

.quality-overview-note {
  padding: 10px 16px;
  border-top: 1px solid #cbdbe4;
}

.quality-gate-explainer svg,
.quality-overview-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  color: var(--blue);
}

.quality-gate-ring {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  color: #765913;
  background: #fff4ce;
  border: 1px solid #e8cf78;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
}

.quality-gate-ring.is-complete {
  color: #175d49;
  background: var(--green-soft);
  border-color: #a9d6c7;
}

.quality-gate-summary strong,
.quality-gate-summary small {
  display: block;
}

.quality-gate-summary strong {
  font-size: 13px;
}

.quality-gate-summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.quality-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px;
}

.quality-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 64px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}

.quality-check:has(input:checked) {
  background: #f0f8f5;
  border-color: #a9d6c7;
}

.quality-check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.quality-check strong,
.quality-check small {
  display: block;
}

.quality-check strong {
  font-size: 11px;
}

.quality-check small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.quality-notes {
  display: grid;
  gap: 6px;
  padding: 0 14px 14px;
}

.quality-notes > span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.quality-notes textarea {
  min-height: 82px;
}

.control-note {
  margin: -2px 14px 14px;
  color: var(--muted);
  font-size: 11px;
}

.cost-form-note {
  margin: -4px 20px 18px;
  padding: 11px 12px;
  background: var(--surface-soft);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  line-height: 1.5;
}

.project-audience-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 16px 20px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.audience-stage {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 11px 14px;
  color: var(--muted);
  border-right: 1px solid var(--line);
}

.audience-stage:last-child {
  border-right: 0;
}

.audience-stage > svg {
  width: 20px;
  height: 20px;
}

.audience-stage span,
.audience-stage small,
.audience-stage strong {
  display: block;
  min-width: 0;
}

.audience-stage small {
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.audience-stage strong {
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 12px;
}

.audience-stage.is-complete {
  color: var(--green);
  background: #f2faf7;
}

.audience-stage.is-current {
  color: #fff;
  background: var(--green);
}

.audience-stage.is-current strong,
.audience-stage.is-current small {
  color: #fff;
}

.project-facts-disclosure {
  margin: 0 20px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.project-facts-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 13px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
}

.project-facts-disclosure summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-facts-disclosure summary svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.project-facts-disclosure summary small {
  color: var(--muted);
  font-weight: 600;
}

.project-facts-disclosure .detail-grid {
  margin: 0;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.project-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  align-items: start;
  gap: 16px;
  margin: 0 20px 20px;
}

.project-editor-main,
.project-editor-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.project-editor-grid .project-control-group,
.project-editor-grid .release-controls,
.project-editor-grid .danger-zone {
  margin: 0;
}

.project-editor-side .danger-zone {
  align-items: stretch;
  flex-direction: column;
}

.project-editor-side .danger-zone .button {
  align-self: flex-start;
}

.release-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.release-map > button,
.release-map > a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 78px;
  padding: 14px 16px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  text-decoration: none;
}

.release-map > button:hover,
.release-map > a:hover {
  background: var(--surface-soft);
}

.release-map > svg {
  width: 18px;
  color: var(--muted);
}

.release-map > button > svg,
.release-map > a > svg {
  width: 22px;
  height: 22px;
  color: var(--green);
}

.release-map span,
.release-map small,
.release-map strong {
  display: block;
}

.release-map small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.release-map strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.cost-operations-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.cost-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cost-breakdown-grid > div {
  min-width: 0;
  padding: 15px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cost-breakdown-grid > div:nth-child(2n) {
  border-right: 0;
}

.cost-breakdown-grid span,
.cost-breakdown-grid strong,
.cost-breakdown-grid small {
  display: block;
}

.cost-breakdown-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.cost-breakdown-grid strong {
  margin-top: 5px;
  font-size: 19px;
}

.cost-breakdown-grid small {
  display: inline;
  margin-left: 3px;
  color: var(--muted);
  font-size: 10px;
}

.cost-baseline-line,
.cost-conversion-warning,
.viewer-boundary-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 16px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.cost-baseline-line svg,
.cost-conversion-warning svg,
.viewer-boundary-note svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--green);
}

.cost-conversion-warning {
  background: var(--amber-soft);
  border-top: 1px solid #efd5ad;
}

.cost-conversion-warning svg {
  color: var(--amber);
}

.ai-traffic-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.ai-traffic-summary > div {
  padding: 12px 16px;
  border-right: 1px solid var(--line);
}

.ai-traffic-summary > div:last-child {
  border-right: 0;
}

.ai-traffic-summary strong,
.ai-traffic-summary span {
  display: block;
}

.ai-traffic-summary strong {
  font-size: 18px;
}

.ai-traffic-summary span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.subject-count-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.subject-count-grid > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.subject-count-grid strong {
  color: var(--green);
  font-size: 22px;
}

.subject-count-grid span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.viewer-boundary-note {
  background: var(--surface-soft);
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 20px 20px;
  padding: 14px;
  background: var(--red-soft);
  border: 1px solid #efc4c4;
  border-radius: 6px;
}

.danger-zone > div {
  min-width: 0;
}

.danger-zone strong,
.danger-zone span {
  display: block;
}

.danger-zone strong {
  color: var(--red);
  font-size: 13px;
}

.danger-zone span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.danger-dialog-head {
  border-top: 4px solid var(--red);
}

.discard-project-copy {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 20px;
  padding: 14px;
  background: var(--amber-soft);
  border: 1px solid #efd5ad;
  border-radius: 6px;
}

.discard-project-copy svg {
  width: 28px;
  height: 28px;
  color: var(--amber);
}

.discard-project-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.delete-confirmation-copy {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  margin: 20px;
  padding: 14px;
  background: var(--red-soft);
  border: 1px solid #efc4c4;
  border-radius: 6px;
}

.delete-confirmation-copy > svg {
  width: 30px;
  height: 30px;
  color: var(--red);
}

.delete-confirmation-copy strong {
  overflow-wrap: anywhere;
}

.delete-confirmation-copy p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.delete-confirmation-field {
  display: grid;
  gap: 6px;
  margin: 0 20px 16px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

#deleteProjectError {
  margin: 0 20px 16px;
}

.release-controls legend {
  width: 100%;
  padding: 11px 14px;
  color: var(--ink);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.release-permission {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  color: var(--ink-soft);
  background: var(--amber-soft);
  border-bottom: 1px solid #efd5ad;
  font-size: 12px;
}

.release-permission svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--amber);
}

.switch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.switch-row:last-child {
  border-bottom: 0;
}

.switch-copy strong,
.switch-copy small,
.checkbox-field strong,
.checkbox-field small {
  display: block;
}

.switch-copy small,
.checkbox-field small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
}

.switch-track {
  position: relative;
  width: 46px;
  height: 26px;
  background: #cbd5da;
  border-radius: 13px;
  transition: background 160ms ease;
}

.switch-track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(23, 38, 50, 0.25);
  transition: transform 160ms ease;
}

.switch-row input:checked + .switch-track {
  background: var(--green);
}

.switch-row input:checked + .switch-track span {
  transform: translateX(20px);
}

.switch-row input:focus-visible + .switch-track {
  outline: 3px solid rgba(36, 95, 158, 0.25);
  outline-offset: 2px;
}

.switch-row input:disabled + .switch-track {
  opacity: 0.48;
}

.form-grid label {
  display: grid;
  align-content: start;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.form-grid .form-wide {
  grid-column: 1 / -1;
}

.checkbox-field {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
}

.warning-check {
  color: var(--red);
  background: var(--red-soft);
  border-color: #efc4c4;
}

.dialog-actions {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 20px;
  background: #f8fafb;
  border-top: 1px solid var(--line);
}

.dialog-actions-split {
  align-items: center;
}

.dialog-action-spacer {
  flex: 1;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 20px;
  border-bottom: 1px solid var(--line);
}

.detail-item {
  min-width: 0;
  padding: 13px 14px 13px 0;
}

.detail-item span,
.detail-item strong {
  display: block;
}

.detail-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-item strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 13px;
}

.compact-fields {
  padding-top: 16px;
}

.toast-region {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
}

.toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #fff;
  background: var(--ink);
  border-left: 4px solid #70d6b1;
  border-radius: 5px;
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: toast-in 0.18s ease-out;
}

.toast > span {
  flex: 1;
}

.toast button {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: -6px -7px -6px 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.toast button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.toast button svg {
  width: 16px;
  height: 16px;
}

.toast.error {
  border-left-color: #ef8b8b;
}

.student-saves-banner {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  color: #fff;
  background: #174f47;
  border: 1px solid #103e38;
  border-radius: 7px;
}

.student-saves-banner-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #174f47;
  background: #8ce0c8;
  border-radius: 6px;
}

.student-saves-banner-icon svg {
  width: 25px;
  height: 25px;
}

.student-saves-banner .eyebrow {
  color: #8ce0c8;
}

.student-saves-banner h2 {
  margin: 0;
  font-size: 21px;
}

.student-saves-banner p:not(.eyebrow) {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.student-saves-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  align-items: start;
  gap: 16px;
}

.student-last-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.student-last-sync svg {
  width: 15px;
  height: 15px;
}

.student-profile-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 13px 16px 8px;
}

.student-profile-search .search-box {
  max-width: none;
}

.student-search-boundary {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 16px 12px;
  padding: 9px 10px;
  color: #446171;
  background: #f1f6f7;
  border: 1px solid #d2e0e4;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.4;
}

.student-search-boundary svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.student-profile-results > .empty-state {
  min-height: 200px;
  border-top: 1px solid var(--line);
}

.student-profile-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.student-profile-more {
  display: flex;
  justify-content: center;
  padding: 14px 16px 2px;
}

.student-profile-table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
}

.student-profile-table th,
.student-profile-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  vertical-align: middle;
}

.student-profile-table th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.student-profile-table tbody tr:last-child td {
  border-bottom: 0;
}

.student-profile-table td strong,
.student-profile-table td small,
.student-profile-table td span {
  display: block;
}

.student-profile-table td strong {
  color: var(--ink);
  font-size: 11px;
}

.student-profile-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.button.danger.subtle {
  min-height: 34px;
  padding: 6px 9px;
  color: #9d3e39;
  background: #fff;
  border-color: #dfbbb7;
}

.student-deletion-list {
  display: grid;
}

.student-deletion-request {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.student-deletion-request:last-child {
  border-bottom: 0;
}

.student-deletion-request-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.student-deletion-request-head > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #9d3e39;
  background: #fff0ef;
  border-radius: 5px;
}

.student-deletion-request-head svg {
  width: 18px;
  height: 18px;
}

.student-deletion-request-head strong,
.student-deletion-request-head small {
  display: block;
}

.student-deletion-request-head strong {
  font-size: 12px;
}

.student-deletion-request-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.student-deletion-request > p {
  margin: 0;
  color: #425967;
  font-size: 11px;
  line-height: 1.45;
}

.student-deletion-request > p.is-empty {
  color: var(--muted);
  font-style: italic;
}

.student-deletion-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.student-deletion-actions .button {
  justify-content: center;
  min-width: 0;
  padding-inline: 8px;
}

.student-deletion-boundary {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  color: #725120;
  background: #fff8e8;
  border-top: 1px solid #e8d4aa;
  font-size: 10px;
  line-height: 1.45;
}

.student-deletion-boundary svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.student-operation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-operation-grid > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  min-height: 104px;
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.student-operation-grid > div:nth-child(3n) {
  border-right: 0;
}

.student-operation-grid > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.student-operation-grid > div > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 5px;
}

.student-operation-grid svg {
  width: 19px;
  height: 19px;
}

.student-operation-grid p,
.student-operation-grid strong,
.student-operation-grid small {
  display: block;
  margin: 0;
}

.student-operation-grid strong {
  font-size: 11px;
}

.student-operation-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.student-delete-summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin: 16px 16px 10px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.student-delete-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #9d3e39;
  background: #fff0ef;
  border-radius: 5px;
}

.student-delete-icon svg {
  width: 21px;
  height: 21px;
}

.student-delete-summary strong,
.student-delete-summary span {
  display: block;
}

.student-delete-summary strong {
  font-size: 13px;
}

.student-delete-summary div span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.student-delete-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 16px 14px;
  padding: 11px 12px;
  color: #743d38;
  background: #fff0ef;
  border: 1px solid #e5bbb7;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.45;
}

.student-delete-warning svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .student-saves-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@keyframes loading {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 920px) {
  :root {
    --sidebar-width: 196px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-editor-side {
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    align-items: start;
  }

  .collection-pilot-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-pilot-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-visibility-switch {
    grid-column: 1 / -1;
  }

  .role-card {
    min-height: 138px;
  }

  .workshop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .access-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    z-index: 30;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    height: auto;
    min-height: 68px;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .brand-lockup {
    min-height: 50px;
    padding: 0;
    border-bottom: 0;
  }

  .brand-copy span {
    display: none;
  }

  .nav-list {
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
    min-width: max-content;
    margin: 0;
    overflow: visible;
  }

  .nav-section-label {
    display: none;
  }

  .sidebar-navigation {
    flex-direction: row;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0;
    scrollbar-width: none;
  }

  .sidebar-navigation::-webkit-scrollbar {
    display: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .sidebar-owner-zone {
    display: flex;
    flex: 0 0 auto;
    margin: 0;
    padding: 0 0 0 4px;
  }

  .nav-item {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
  }

  .nav-item > span:not(.nav-count):not(.nav-alert) {
    white-space: nowrap;
  }

  .sidebar-foot {
    display: none;
  }

  .mobile-sign-out {
    display: inline-grid;
  }

  .topbar {
    top: 67px;
    min-height: 74px;
  }

  main {
    padding-top: 18px;
  }

  .availability-command-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .availability-services,
  .availability-reason-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .availability-emergency-zone {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .availability-emergency-actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    padding: 14px;
  }

  .auth-panel {
    padding: 22px 18px;
  }

  .brand-copy {
    display: none;
  }

  .sidebar {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .nav-item span {
    display: none;
  }

  .nav-item .nav-alert {
    position: absolute;
    top: 4px;
    right: 3px;
    display: grid;
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .nav-item {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .topbar {
    align-items: flex-start;
    min-height: 72px;
    padding: 12px 14px;
  }

  .topbar h1 {
    font-size: 21px;
  }

  .sync-label {
    display: none;
  }

  main {
    padding: 14px 12px 34px;
  }

  .metrics-grid,
  .settings-grid,
  .form-grid,
  .detail-grid,
  .role-grid,
  .workshop-grid,
  .access-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .availability-summary {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .availability-summary-icon {
    width: 44px;
    height: 44px;
  }

  .availability-summary .button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .availability-emergency-actions,
  .availability-emergency-actions .button,
  .availability-service > .button {
    width: 100%;
  }

  .quality-overview-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .quality-overview-score {
    border-right: 0;
    border-bottom: 1px solid #cfe0da;
  }

  .quality-check-grid,
  .collection-pilot-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-pilot-map {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-pilot-map > svg {
    display: none;
  }

  .collection-pilot-map > span {
    min-height: 62px;
    border-bottom: 1px solid var(--line);
  }

  .collection-pilot-map > span:last-of-type {
    border-bottom: 0;
  }

  .collection-pilot-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .collection-pilot-actions .button {
    justify-content: center;
  }

  .collection-cloud-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-cloud-facts > span:nth-child(2) {
    border-right: 0;
  }

  .collection-cloud-facts > span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .project-editor-grid {
    margin-inline: 12px;
  }

  .project-editor-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-audience-map {
    grid-template-columns: minmax(0, 1fr);
    margin-inline: 12px;
  }

  .audience-stage {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .audience-stage:last-child {
    border-bottom: 0;
  }

  .project-facts-disclosure {
    margin-inline: 12px;
  }

  .project-facts-disclosure summary small {
    display: none;
  }

  .release-map {
    grid-template-columns: minmax(0, 1fr);
  }

  .release-map > svg {
    display: none;
  }

  .release-map > button,
  .release-map > a {
    min-height: 62px;
    border-bottom: 1px solid var(--line);
  }

  .release-map > a:last-child {
    border-bottom: 0;
  }

  .cost-breakdown-grid,
  .subject-count-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cost-breakdown-grid > div,
  .subject-count-grid > div {
    border-right: 0;
  }

  .ai-traffic-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ai-traffic-summary > div {
    padding-inline: 10px;
  }

  .account-security-panel {
    grid-column: auto;
  }

  .passkey-security-panel .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .passkey-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
  }

  .passkey-row .status-badge {
    grid-column: 2;
    justify-self: start;
  }

  .passkey-row .icon-only {
    grid-column: 3;
    grid-row: 1;
  }

  .workshop-banner {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .workshop-banner-icon {
    width: 44px;
    height: 44px;
  }

  .workshop-banner > .status-badge {
    grid-column: 2;
    justify-self: start;
  }

  .student-saves-banner {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .student-saves-banner-icon {
    width: 44px;
    height: 44px;
  }

  .student-saves-banner > .status-badge {
    grid-column: 2;
    justify-self: start;
  }

  .student-profile-search,
  .student-deletion-actions,
  .student-operation-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-operation-grid > div,
  .student-operation-grid > div:nth-child(3n),
  .student-operation-grid > div:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .student-operation-grid > div:last-child {
    border-bottom: 0;
  }

  .access-steps li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .access-steps li:last-child {
    border-bottom: 0;
  }

  .access-onboarding .panel-heading,
  .access-onboarding .panel-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .temporary-password-control {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .temporary-password-actions {
    grid-column: 2;
    flex-wrap: wrap;
  }

  .release-controls {
    margin-inline: 12px;
  }

  .project-control-group,
  .danger-zone {
    margin-inline: 12px;
  }

  .danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid .form-wide {
    grid-column: auto;
  }

  .toolbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-controls,
  .search-box {
    width: 100%;
    min-width: 0;
  }

  .toolbar-controls select,
  .toolbar-controls .button {
    flex: 1;
  }

  .progress-row {
    grid-template-columns: minmax(90px, 1fr) minmax(90px, 1.4fr) auto;
    gap: 8px;
  }

  .account-row {
    grid-template-columns: 42px minmax(0, 1fr) auto 36px;
  }

  .account-role {
    grid-column: 2 / -1;
  }

  .account-statuses {
    grid-column: 2 / 3;
  }

  .role-card {
    min-height: 0;
  }

  .provider-row,
  .document-row {
    flex-wrap: wrap;
  }

  .provider-controls,
  .document-meta {
    width: 100%;
    padding-left: 48px;
  }

  .dialog-actions .button {
    flex: 1;
  }

  .dialog {
    width: calc(100vw - 20px);
  }

  .dialog.dialog-wide {
    width: calc(100vw - 20px);
  }

  .dialog-actions-split {
    flex-wrap: wrap;
  }

  .dialog-actions-split .dialog-action-spacer {
    display: none;
  }

  .dialog-actions-split #projectPreviewLink {
    flex-basis: 100%;
  }

  .account-management,
  .account-management-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.report-inbox {
  display: grid;
  gap: 10px;
}

.report-inbox > .empty-state {
  min-height: 300px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.report-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid #cad4dc;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.report-row.is-new {
  border-left-color: #d79a26;
}

.report-row-marker {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #0c6f69;
  border-radius: 7px;
  background: #e7f5f3;
}

.report-row-marker svg {
  width: 20px;
  height: 20px;
}

.report-row-main {
  min-width: 0;
}

.report-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.report-row-head > div {
  min-width: 0;
}

.report-row-head span:not(.status-badge) {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.report-row h3 {
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-row-main > p {
  display: -webkit-box;
  margin: 7px 0 10px;
  overflow: hidden;
  color: #536173;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.report-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: #687587;
  font-size: 11px;
}

.report-row-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.report-row-meta svg {
  width: 13px;
  height: 13px;
}

.report-open-button {
  white-space: nowrap;
}

.report-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
  overflow: hidden;
}

.report-facts > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 0 !important;
  background: #f7f9fa;
}

.report-facts span,
.report-section-heading > div > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.report-facts strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.report-dialog-section {
  display: grid;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.report-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.report-section-heading > div {
  display: grid;
  gap: 3px;
}

.report-section-heading strong {
  font-size: 15px;
}

.report-transcript,
.report-original > div {
  color: #26364b;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.62;
}

.report-original {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.report-original summary {
  color: #47586b;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.report-original > div {
  margin-top: 10px;
  padding: 12px;
  background: #f5f7f8;
}

.report-summary-section {
  border-color: #cce5e1;
  background: #f4fbfa;
}

.report-summary-section > p {
  margin: 0;
  color: #3f5063;
  font-size: 13px;
  line-height: 1.55;
}

.report-summary-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.report-summary-details > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #d4e7e4;
  background: #fff;
}

.report-summary-details dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.report-summary-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.4;
}

.report-action-list {
  margin: 0;
  padding-left: 20px;
  color: #35475b;
  font-size: 12px;
  line-height: 1.55;
}

.rights-banner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 26px;
  color: #fff;
  border-radius: 8px;
  background: #153d43;
}

.rights-banner-copy {
  max-width: 760px;
}

.rights-banner .eyebrow {
  color: #8cd8ce;
}

.rights-banner h2 {
  margin: 7px 0 8px;
  font-size: 27px;
  line-height: 1.15;
}

.rights-banner p:not(.eyebrow) {
  margin: 0;
  color: #d1e0e1;
  font-size: 13px;
  line-height: 1.5;
}

.rights-banner-actions {
  display: grid;
  justify-items: end;
  gap: 12px;
  flex: 0 0 auto;
}

.rights-download-button {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.rights-download-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.rights-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.rights-process {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.rights-process > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px;
}

.rights-process > div > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
}

.rights-process p,
.rights-process strong,
.rights-process small {
  display: block;
  margin: 0;
}

.rights-process strong {
  font-size: 12px;
}

.rights-process small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.rights-process > svg {
  width: 18px;
  height: 18px;
  color: var(--line-strong);
}

.rights-facts > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.rights-facts > div:last-child {
  border-right: 0;
}

.rights-facts span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.rights-facts strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.rights-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rights-section {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 17px;
}

.rights-section-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #0a756e;
  border-radius: 7px;
  background: #e6f4f2;
}

.rights-section-icon.orange {
  color: #9b5c17;
  background: #fff1dc;
}

.rights-section-icon.blue {
  color: #285d9d;
  background: #e9f1fb;
}

.rights-section-icon.rose {
  color: #9e3f59;
  background: #faeaf0;
}

.rights-section-icon svg {
  width: 20px;
  height: 20px;
}

.rights-section h3,
.rights-caution h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.rights-section p,
.rights-caution p {
  margin: 0;
  color: #536173;
  font-size: 12px;
  line-height: 1.55;
}

.rights-caution {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid #eccf9e;
  border-left: 5px solid #d28b28;
  border-radius: 7px;
  background: #fff9ed;
}

.rights-caution > svg {
  width: 30px;
  height: 30px;
  color: #a06620;
}

.rights-caution p + p {
  margin-top: 8px;
}

.rights-reader-panel {
  overflow: hidden;
}

.rights-reader-panel .panel-heading {
  align-items: center;
}

.rights-pdf-shell {
  height: clamp(540px, 68vh, 820px);
  background: #dfe6e8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rights-pdf-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.rights-reader-fallback {
  margin: 0;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 11px;
}

.rights-reader-fallback a {
  color: var(--blue);
  font-weight: 750;
}

.rights-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: start;
  gap: 12px;
}

.rights-boundary-list {
  display: grid;
}

.rights-boundary-list > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.rights-boundary-list > div:last-child {
  border-bottom: 0;
}

.rights-boundary-list svg {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: var(--green);
}

.rights-boundary-list strong,
.rights-boundary-list small {
  display: block;
}

.rights-boundary-list strong {
  font-size: 12px;
}

.rights-boundary-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.rights-status-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 15px 16px 0;
}

.rights-status-fields label {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.rights-status-fields label > span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 780;
}

.rights-status-fields .form-wide {
  grid-column: 1 / -1;
}

.rights-status-fields textarea {
  min-height: 86px;
}

.rights-status-note {
  margin: 14px 16px 0;
  padding: 11px 12px;
  color: #6a4b18;
  background: #fff8e9;
  border-left: 3px solid var(--amber);
  font-size: 11px;
  line-height: 1.5;
}

.rights-status-panel .form-error {
  margin: 12px 16px 0;
}

.rights-status-actions {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px 16px;
}

.rights-status-summary {
  display: grid;
  margin: 0;
}

.rights-status-summary > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.rights-status-summary > div:last-child {
  border-bottom: 0;
}

.rights-status-summary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.rights-status-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
}

.governance-notice-summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #eff8f6;
  border-bottom: 1px solid #cce4df;
}

.governance-notice-summary > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--green);
  background: #fff;
  border: 1px solid #c9dfdb;
  border-radius: 6px;
}

.governance-notice-summary svg {
  width: 19px;
  height: 19px;
}

.governance-notice-summary small,
.governance-notice-summary strong,
.governance-notice-summary p {
  display: block;
}

.governance-notice-summary small {
  color: var(--green);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.governance-notice-summary strong {
  margin-top: 2px;
  font-size: 12px;
}

.governance-notice-summary p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.governance-current {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--green);
}

.governance-current svg {
  width: 19px;
  height: 19px;
}

.governance-current strong,
.governance-current small {
  display: block;
}

.governance-current small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.source-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}

.source-links a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #255a7a;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.source-links a:hover {
  background: #f5f9fb;
}

.source-links svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

@media (max-width: 900px) {
  .report-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .report-open-button {
    grid-column: 2;
    justify-self: start;
  }

  .report-facts,
  .report-summary-details,
  .rights-facts,
  .source-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-facts > div:nth-child(3n),
  .report-facts > div:nth-last-child(-n + 3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .report-facts > div:nth-child(2n) {
    border-right: 0;
  }

  .report-facts > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .rights-facts > div:nth-child(2) {
    border-right: 0;
  }

  .rights-facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .rights-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .rights-banner-actions {
    width: 100%;
    justify-items: start;
  }

  .rights-control-grid {
    grid-template-columns: 1fr;
  }

  .rights-process {
    grid-template-columns: 1fr;
  }

  .rights-process > svg {
    display: none;
  }

  .rights-pdf-shell {
    height: 640px;
  }
}

@media (max-width: 620px) {
  .report-row {
    grid-template-columns: 1fr;
  }

  .report-row-marker {
    display: none;
  }

  .report-open-button {
    grid-column: auto;
  }

  .report-row-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-facts,
  .report-summary-details,
  .rights-facts,
  .rights-columns,
  .source-links {
    grid-template-columns: 1fr;
  }

  .report-facts > div,
  .report-facts > div:nth-child(2n),
  .report-facts > div:nth-last-child(-n + 2),
  .rights-facts > div,
  .rights-facts > div:nth-child(2),
  .rights-facts > div:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .report-facts > div:last-child,
  .rights-facts > div:last-child {
    border-bottom: 0;
  }

  .report-section-heading {
    flex-direction: column;
  }

  .rights-banner {
    padding: 20px;
  }

  .rights-banner-actions .button {
    width: 100%;
  }

  .rights-pdf-shell {
    height: 520px;
  }

  .rights-status-fields {
    grid-template-columns: 1fr;
  }

  .rights-status-fields .form-wide {
    grid-column: auto;
  }

  .governance-notice-summary {
    grid-template-columns: 1fr;
  }
}
.access-capability-section{display:grid;gap:14px;margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:18px;background:#f8fbfa}
.access-capability-section h3{margin:3px 0 5px;color:var(--ink);font-size:1.08rem}
.access-capability-section p{margin:0;color:var(--muted);line-height:1.5}
.access-capability-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.capability-check{align-items:flex-start;min-height:88px;padding:13px;border:1px solid var(--line);border-radius:14px;background:#fff}
.capability-check input{margin-top:3px}
.capability-check span{display:grid;gap:4px}
.capability-check small{color:var(--muted);font-weight:500;line-height:1.35}
.capability-badge{font-size:.67rem}
.connected-app-link{text-decoration:none;color:inherit}
.connected-app-link>span:last-child{margin-left:auto;font-size:1.25rem}
@media(max-width:720px){.access-capability-grid{grid-template-columns:1fr}.capability-check{min-height:0}}

/* Admin clarity pass: give identities, permissions and evidence their own space. */
.access-section-nav {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff}
.access-section-nav span {display:grid;gap:5px}
.access-section-nav small {color:var(--muted);line-height:1.5}
.access-explainer {display:block;padding:18px 22px;border:1px solid var(--line);border-radius:16px;background:#fff}
.access-explainer > summary {cursor:pointer;font-weight:700;line-height:1.5}
.access-explainer[open] > summary {margin-bottom:20px}
.access-view .access-content-grid {grid-template-columns:minmax(0,1fr)}
.access-view .account-row {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;grid-template-areas:"avatar identity action" ". role role" ". permissions permissions";gap:8px 16px;padding:24px;align-items:start}
.access-view .account-avatar {grid-area:avatar}
.access-view .account-row > .row-copy {grid-area:identity;overflow-wrap:anywhere}
.access-view .account-row > .row-copy strong {font-size:16px;line-height:1.4}
.access-view .account-role {grid-area:role;line-height:1.5;color:var(--muted)}
.access-view .account-statuses {grid-area:permissions;gap:7px;min-width:0}
.access-view .account-statuses .status-badge {white-space:normal;line-height:1.4}
.access-view .account-row > button {grid-area:action;min-width:40px;min-height:40px}
.access-view .service-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.access-capability-grid .capability-check {display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start}
.access-capability-grid .capability-check input {width:18px;height:18px;min-height:18px;flex:none}
.cost-source-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:24px}
.cost-source-grid article {display:grid;align-content:start;justify-items:start;gap:10px;min-width:0}
.cost-source-grid h3,.service-register-grid h3 {margin:0;font-size:15px;line-height:1.5}
.cost-source-grid p,.service-register-grid p {margin:0;color:var(--muted);font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.cost-source-grid a {font-size:12px}
.cost-source-grid article > svg {width:26px;height:26px;color:var(--teal)}
.financial-scope-note {margin:0;border:1px solid var(--line);border-radius:16px;background:#fff;line-height:1.65}
.cost-evidence-note {margin-top:8px;max-width:460px;white-space:normal;line-height:1.5}
.cost-evidence-note summary {cursor:pointer;color:var(--muted);font-size:12px}
.cost-evidence-note p {font-size:12px;overflow-wrap:anywhere}
.usage-view .data-table {min-width:980px}
.usage-view .table-wrap {position:relative;overflow-x:auto}
.usage-view .data-table td:nth-child(3) {min-width:210px;max-width:440px;white-space:normal}
.usage-view .data-table td:nth-child(6) {min-width:185px;white-space:normal}
.cost-evidence-fields {border-top:1px solid var(--line);padding-top:20px;margin-top:20px}
.service-register-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line)}
.service-register-grid article {padding:24px;background:#fff;min-width:0}
.service-register-grid article > small {display:block;margin-top:12px;color:var(--muted);font-size:11px}
@media(max-width:1000px){.cost-source-grid{grid-template-columns:1fr}.cost-source-grid article + article{border-top:1px solid var(--line);padding-top:20px}}
@media(max-width:600px){.access-section-nav{align-items:flex-start;flex-direction:column}.access-view .account-row{padding:18px;gap:8px 10px;grid-template-areas:"avatar identity action" "role role role" "permissions permissions permissions"}.access-view .service-list,.service-register-grid{grid-template-columns:1fr}}
