:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-sunken: #f8f9fb;
  --surface-hover: #f2f4f7;
  --border: #e4e7ec;
  --border-strong: #cfd4dc;
  --text: #111827;
  --text-muted: #4b5565;
  --text-faint: #636a76;
  --accent: #3b5bdb;
  --accent-hover: #2f4ac0;
  --accent-soft: #edf1ff;
  --accent-text: #ffffff;
  --ok: #067647;
  --ok-soft: #e7f6ec;
  --warn: #a15c07;
  --warn-soft: #fff5e1;
  --bad: #b42318;
  --bad-soft: #fdeceb;
  --info: #1d5bbf;
  --info-soft: #eaf2fe;
  --muted: #4b5565;
  --muted-soft: #eef0f3;
  --focus: 0 0 0 3px rgb(59 91 219 / 0.28);
  --shadow: 0 1px 2px rgb(16 24 40 / 0.05);
  --shadow-raised: 0 8px 24px rgb(16 24 40 / 0.08);
  --radius: 10px;
  --radius-small: 7px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sidebar: 15rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d1117;
    --surface: #151b23;
    --surface-sunken: #11161d;
    --surface-hover: #1c232d;
    --border: #262d37;
    --border-strong: #353d49;
    --text: #edf0f4;
    --text-muted: #b3bac5;
    --text-faint: #8a93a1;
    --accent: #7b93ff;
    --accent-hover: #93a7ff;
    --accent-soft: #1d2645;
    --accent-text: #0d1117;
    --ok: #5fd08f;
    --ok-soft: #12291d;
    --warn: #f0b456;
    --warn-soft: #2d2311;
    --bad: #ff8a80;
    --bad-soft: #321716;
    --info: #79aefc;
    --info-soft: #14243d;
    --muted: #b3bac5;
    --muted-soft: #222a35;
    --focus: 0 0 0 3px rgb(123 147 255 / 0.35);
    --shadow: none;
    --shadow-raised: 0 8px 24px rgb(0 0 0 / 0.4);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 15px / 1.55 var(--font);
  background: var(--bg);
  color: var(--text);
  font-feature-settings: "tnum" 1;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.6rem;
  font-weight: 650;
}

h2 {
  font-size: 1.05rem;
  font-weight: 620;
}

h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

p {
  margin: 0;
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.85em;
}

code {
  background: var(--muted-soft);
  border-radius: 5px;
  padding: 0.1rem 0.35rem;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-small);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem 0.9rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.45rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--text);
  color: var(--surface);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  flex: none;
}

.brand-name {
  display: grid;
  line-height: 1.2;
}

.brand-name small {
  color: var(--text-faint);
  font-weight: 500;
  font-size: 0.75rem;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.workspace-name,
.switcher summary {
  margin: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.switcher summary {
  cursor: pointer;
}

.switcher ul {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.switcher a {
  display: block;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-small);
  color: var(--text);
  text-decoration: none;
}

.switcher a:hover,
.switcher a[aria-current="page"] {
  background: var(--surface-hover);
}

.stack-tight {
  display: grid;
  gap: 0.35rem;
}

.workspace-choices {
  display: grid;
  gap: 0.5rem;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-small);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 520;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

button svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.button svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.nav svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}

.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem 0.45rem 0;
  border-top: 1px solid var(--border);
}

.viewer {
  display: grid;
  min-width: 0;
}

.viewer-email {
  font-size: 0.85rem;
  font-weight: 560;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-role {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.env-flag {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.env-flag::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.content {
  min-width: 0;
  width: 100%;
  max-width: 76rem;
  padding: 2rem clamp(1rem, 3.5vw, 2.75rem) 4rem;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
}

.page-head-text {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.back {
  justify-self: start;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  text-decoration: none;
}

.back svg {
  width: 1rem;
  height: 1rem;
}

.back:hover {
  color: var(--text);
}

.subtitle {
  color: var(--text-muted);
  max-width: 46rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.card-head-text {
  display: grid;
  gap: 0.2rem;
}

.card-head p {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.card-body {
  padding: 1.15rem 1.25rem;
}

.card-body > * + * {
  margin-top: 0.9rem;
}

.card-foot {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface-sunken);
  border-radius: 0 0 var(--radius) var(--radius);
}

.card-foot > * + * {
  margin-top: 0.75rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat {
  padding: 1rem 1.15rem;
}

.stat-label {
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 560;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.table-scroll {
  position: relative;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 0.6rem 1.25rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr.lapsed td {
  color: var(--text-faint);
}

tr.lapsed td:first-child {
  box-shadow: inset 3px 0 0 var(--bad);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: var(--surface-sunken);
}

td.actions {
  text-align: right;
  white-space: nowrap;
}

td.nowrap,
th.nowrap {
  white-space: nowrap;
}

.cell-title {
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

a.cell-title:hover {
  color: var(--accent);
}

.cell-stack {
  display: grid;
  justify-items: start;
  gap: 0.1rem;
  min-width: 0;
}

.cell-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.cell-sub {
  color: var(--text-faint);
  font-size: 0.82rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 620;
  white-space: nowrap;
  background: var(--muted-soft);
  color: var(--muted);
}

.badge::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.badge.plain::before {
  display: none;
}

.badge.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge.bad {
  background: var(--bad-soft);
  color: var(--bad);
}

.badge.info {
  background: var(--info-soft);
  color: var(--info);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.12s,
    border-color 0.12s,
    color 0.12s;
}

.button:hover,
button:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
}

.button.secondary,
button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.button.secondary:hover,
button.secondary:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.button.subtle,
button.subtle {
  background: transparent;
  color: var(--text-muted);
}

.button.subtle:hover,
button.subtle:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.button.danger,
button.danger {
  background: var(--surface);
  color: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 35%, var(--border));
}

.button.danger:hover,
button.danger:hover {
  background: var(--bad-soft);
  color: var(--bad);
}

.button.small,
button.small {
  min-height: 1.9rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button.block,
button.block {
  width: 100%;
}

form {
  margin: 0;
}

.action-form {
  display: inline-flex;
}

.row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.9rem 1rem;
  align-items: start;
}

.form-grid .form-submit {
  grid-column: 1 / -1;
  display: flex;
}

.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-faint);
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.inline-select {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.inline-select select {
  width: auto;
  min-width: 9rem;
  min-height: 1.9rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.82rem;
}

.empty {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 2.25rem 1.25rem;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  background: var(--muted-soft);
  color: var(--text-faint);
}

.empty-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.empty-title {
  font-weight: 620;
}

.empty-text {
  color: var(--text-faint);
  font-size: 0.88rem;
  max-width: 30rem;
}

.notice {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.8rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.notice::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--info);
}

.notice.ok::before {
  background: var(--ok);
}

.notice.warn {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 30%, transparent);
}

.notice.warn::before {
  background: var(--warn);
}

.notice.bad {
  background: var(--bad-soft);
  border-color: color-mix(in srgb, var(--bad) 30%, transparent);
}

.notice.bad::before {
  background: var(--bad);
}

.disclosure-toggle {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.82rem;
}

.fold > summary {
  list-style: none;
  cursor: pointer;
}

.fold > summary::-webkit-details-marker {
  display: none;
}

.fold-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  padding: 1rem 1.25rem;
}

.fold-summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(-45deg);
  transition: transform 0.15s;
}

.fold[open] .fold-summary::before {
  transform: rotate(45deg);
}

.fold[open] > summary {
  border-bottom: 1px solid var(--border);
}

.fold-summary .grow {
  flex: 1;
}

.json {
  margin: 0.5rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-small);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.78rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.secret {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.secret code {
  font-size: 1rem;
  padding: 0.45rem 0.7rem;
}

.copy-status {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.confirm-dialog {
  width: min(28rem, calc(100% - 2rem));
  padding: 1.25rem;
  color: var(--text);
  box-shadow: var(--shadow-raised);
}

.confirm-dialog::backdrop {
  background: rgb(16 24 40 / 0.45);
}

.confirm-dialog p {
  margin: 0 0 1rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.1rem;
}

.skill {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
}

.skill-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.skill-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  flex: none;
}

.skill-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.skill-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.skill-version {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 25rem;
  padding: 2rem;
  display: grid;
  gap: 1.25rem;
  box-shadow: var(--shadow-raised);
}

.auth-card .brand {
  padding: 0;
}

.auth-card h1 {
  font-size: 1.35rem;
}

.auth-card .subtitle {
  font-size: 0.9rem;
}

.auth-form {
  display: grid;
  gap: 0.9rem;
}

.scope-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  display: grid;
  justify-items: start;
  gap: 0.1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-sunken);
}

.scope-list .scope-text {
  color: var(--text-faint);
  font-size: 0.82rem;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.form-error {
  min-height: 1.2rem;
  color: var(--bad);
  font-size: 0.88rem;
}

.muted {
  color: var(--text-faint);
}

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

  .sidebar {
    position: sticky;
    z-index: 5;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    padding: 0.7rem 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .brand-name small {
    display: none;
  }

  .nav {
    order: 3;
    flex: 1 0 100%;
    flex-direction: row;
    overflow-x: auto;
    margin: 0 -1rem;
    padding: 0 1rem;
    scrollbar-width: none;
  }

  .nav a {
    padding: 0.4rem 0.65rem;
  }

  .sidebar-foot {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    grid-auto-flow: column;
    align-items: center;
    gap: 0.6rem;
  }

  .viewer {
    display: none;
  }

  .content {
    padding-top: 1.5rem;
  }

  h1 {
    font-size: 1.35rem;
  }

  td,
  th {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

@media (max-width: 480px) {
  .sidebar .brand-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  button,
  .fold-summary::before {
    transition: none;
  }
}

.tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.tabs a {
  padding: 0.5rem 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.settings-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.settings-form .form-submit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.setting {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.setting-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.setting-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.setting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.setting-value {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.field-error {
  margin: 0;
  font-size: 0.8rem;
  color: var(--bad);
}

.required {
  font-weight: 400;
  color: var(--text-faint);
}

.check {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.check input {
  width: auto;
  min-height: 0;
}

.draft-bar {
  border-color: var(--warn);
  background: var(--warn-soft);
  margin-bottom: 1rem;
}

.draft-bar h2 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.draft-publish {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.75rem;
}

.draft-publish .field {
  flex: 1 1 16rem;
}

.preview-file-name {
  font-size: 0.85rem;
  font-family: var(--mono);
  margin: 0.75rem 0 0.35rem;
}

.preview-file {
  margin: 0;
  padding: 0.75rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--surface-sunken);
  border-radius: var(--radius-small);
}

.preview mark {
  background: var(--accent-soft);
  color: var(--text);
  border-radius: 3px;
  outline: 1px solid var(--accent);
}

.family {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.family > h2 {
  margin: 0;
  font-size: 1.1rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}

.plan {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1rem 1.1rem;
}

.plan h3 {
  margin: 0;
  font-size: 1rem;
}

.plan-adds {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.plan-skills {
  margin: 0;
  padding-left: 1.1rem;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
}

.checks legend {
  width: 100%;
  margin-bottom: 0.35rem;
}

.consent-client {
  margin: 0;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}
