:root {
  --bg: #f6f4ef;
  --panel: #fffef9;
  --panel-alt: #e4edf0;
  --ink: #172026;
  --muted: #677279;
  --dark: #1b2329;
  --dark-soft: #2a353c;
  --line: rgba(23, 32, 38, 0.1);
  --accent: #efff58;
  --accent-strong: #d7f13a;
  --success: #2d7d56;
  --warning: #b07a00;
  --danger: #b24035;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 64px rgba(15, 24, 29, 0.08);
  --body-font: "Avenir Next", "Segoe UI", sans-serif;
  --display-font: "Avenir Next Condensed", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top left, rgba(239, 255, 88, 0.3), transparent 24%),
    linear-gradient(180deg, #eef2f3 0%, var(--bg) 24%, #f3f1ea 100%);
  color: var(--ink);
}

body[data-theme="dark"] {
  --bg: #10161b;
  --panel: #182128;
  --panel-alt: #203038;
  --ink: #edf3f6;
  --muted: #9eabb2;
  --dark: #0c1115;
  --dark-soft: #182228;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  background:
    radial-gradient(circle at top left, rgba(239, 255, 88, 0.12), transparent 24%),
    linear-gradient(180deg, #0b1014 0%, var(--bg) 24%, #0d1216 100%);
}

body[data-font="system"] {
  --body-font: "Segoe UI", Arial, sans-serif;
  --display-font: "Segoe UI", Arial, sans-serif;
}

body[data-font="serif"] {
  --body-font: Georgia, "Times New Roman", serif;
  --display-font: Georgia, "Times New Roman", serif;
}

body[data-font="mono"] {
  --body-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

body[data-font] .sidebar h1,
body[data-font] .hero-copy h2,
body[data-font] .card-heading h3,
body[data-font] .subheading h4,
body[data-font] .auth-intro h1,
body[data-font] .auth-card h2,
body[data-font] .sidebar h1,
body[data-font] .section-chip,
body[data-font] .eyebrow,
body[data-font] .sidebar-label,
body[data-font] .brand-kicker {
  font-family: var(--display-font) !important;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.auth-stage {
  width: min(1120px, 100%);
  display: grid;
  gap: 28px;
}

.auth-intro {
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(27, 35, 41, 0.98), rgba(49, 58, 64, 0.94)),
    linear-gradient(135deg, rgba(239, 255, 88, 0.08), transparent);
  color: white;
  box-shadow: var(--shadow);
}

.auth-intro h1 {
  margin: 16px 0 12px;
  max-width: 11ch;
  font-family: "Avenir Next Condensed", "Trebuchet MS", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.94;
}

.auth-intro p {
  margin: 0;
  max-width: 52ch;
  color: #d3dde1;
  line-height: 1.6;
}

.auth-chip {
  background: rgba(228, 237, 240, 0.16);
}

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

.auth-card {
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0 0 18px;
  font-family: "Avenir Next Condensed", "Trebuchet MS", sans-serif;
  font-size: 2rem;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 20px;
  background: var(--dark);
  color: white;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.brand-block {
  display: block;
  padding: 4px 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-copy {
  display: grid;
  gap: 10px;
}

.brand-kicker {
  margin: 0;
  color: #a7b5bc;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.45;
}

.sidebar h1,
.hero-copy h2,
.card-heading h3,
.subheading h4 {
  font-family: "Avenir Next Condensed", "Trebuchet MS", sans-serif;
}

.sidebar h1 {
  margin: 0;
  max-width: 9ch;
  font-size: 2.15rem;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #96a5ad;
}

.sidebar-label {
  margin: 0 0 8px;
  color: #95a4ac;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-tools {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.role-switcher {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
}

#currentUserDisplay {
  padding: 2px 0 0;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #f7fbfc;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
  box-shadow: none;
}

.current-user-button {
  display: grid;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  appearance: none;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.current-user-button:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.current-user-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.current-user-button:focus-visible {
  outline: 2px solid #f6ff52;
  outline-offset: 3px;
}

.current-user-name {
  font-size: 1rem;
}

.current-user-email {
  color: #b7c4ca;
  font-size: 0.82rem;
  font-weight: 500;
}

.current-user-action {
  color: #f6ff52;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.workspace {
  padding: 28px 30px 40px;
  position: relative;
}

.guide-fab {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 30;
  padding: 10px 16px;
  border: 1px solid rgba(23, 32, 38, 0.08);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.92);
  color: var(--ink);
  box-shadow: 0 18px 36px rgba(15, 24, 29, 0.12);
  font-weight: 700;
}

.guide-fab:hover {
  background: white;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 34px;
  padding: 34px 36px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(27, 35, 41, 0.98), rgba(49, 58, 64, 0.94)),
    linear-gradient(135deg, rgba(239, 255, 88, 0.08), transparent);
  color: white;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-panel.hidden {
  display: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 56%, rgba(255, 255, 255, 0.05) 56% 72%, transparent 72%),
    radial-gradient(circle at 90% 25%, rgba(239, 255, 88, 0.15), transparent 22%);
  pointer-events: none;
}

.section-chip {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(228, 237, 240, 0.18);
  color: #d1dde2;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy h2 {
  margin: 18px 0 14px;
  max-width: 13.5ch;
  font-size: clamp(2.1rem, 4.2vw, 3.75rem);
  line-height: 1.01;
}

.hero-copy p {
  max-width: 52ch;
  color: #d3dde1;
  line-height: 1.6;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.metric-card,
.visual-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.dashboard-jump-card {
  width: 100%;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.dashboard-jump-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(8, 14, 20, 0.18);
}

.dashboard-jump-card:focus-visible {
  outline: 2px solid #f6ff52;
  outline-offset: 3px;
}

.metric-card span,
.visual-card span {
  display: block;
  color: #c6d2d7;
  font-size: 0.88rem;
}

.metric-card strong,
.visual-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
  font-family: "Avenir Next Condensed", "Trebuchet MS", sans-serif;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  min-width: 0;
}

.visual-card.large {
  padding: 22px;
}

.visual-card.large h3 {
  margin: 0 0 18px;
}

.coverage-ring {
  width: 240px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  padding: 18px;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--accent) 0deg, var(--accent) 230deg, rgba(255, 255, 255, 0.14) 230deg);
}

.coverage-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(27, 35, 41, 0.94);
  text-align: center;
}

.coverage-core span {
  color: white;
  font-size: 2.2rem;
  font-family: "Avenir Next Condensed", "Trebuchet MS", sans-serif;
}

.coverage-core small {
  color: #afbdc4;
}

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

.tab-button,
.ghost-button,
.primary-button {
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.tab-button {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  border: 1px solid transparent;
}

.tab-button.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(239, 255, 88, 0.45);
  box-shadow: inset 3px 0 0 var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.hidden-block {
  display: none !important;
}

.panel-grid {
  display: grid;
  gap: 22px;
}

.panel-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.panel-card {
  background: rgba(255, 254, 249, 0.9);
  border: 1px solid rgba(23, 32, 38, 0.06);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.card-heading,
.subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.card-heading h3,
.subheading h4 {
  margin: 0;
}

.panel-intro {
  margin: 0 0 18px;
  color: var(--muted);
}

.filter-grid,
.inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.request-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.request-form-span-3 {
  grid-column: span 3;
}

.permission-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(23, 32, 38, 0.08);
  border-radius: 18px;
  background: rgba(228, 237, 240, 0.22);
}

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

.permission-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 32, 38, 0.06);
}

.permission-item input {
  width: auto;
  margin-top: 3px;
}

.permission-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.94rem;
}

.permission-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

#entityAuthForm .inline-form,
#entityManualSection .inline-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#entityAuthForm {
  width: 100%;
}

#entityAuthForm .inline-form {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

#entityAuthForm label {
  min-width: 0;
}

#entityKyribaSection,
#kyribaPreviewSection,
#entityImportForm {
  min-width: 0;
}

#entityKyribaSection .form-actions,
#entityImportForm .form-actions {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  justify-content: flex-start;
  align-items: center;
}

#entityKyribaSection .form-actions .primary-button,
#entityKyribaSection .form-actions .ghost-button,
#kyribaPreviewSection .subheading .primary-button {
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  white-space: nowrap;
}

#kyribaAuthStatus,
#entityImportSummary {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#kyribaPreviewSection .subheading {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

#kyribaPreviewSection .subheading h4 {
  flex: 0 1 auto;
}

#kyribaPreviewSection .subheading .primary-button {
  margin-left: 0;
  justify-self: start;
}

.entity-summary-row {
  align-items: center;
  flex-wrap: wrap;
}

.entity-summary-row .detail-badge {
  flex: 1 1 420px;
}

.entity-summary-row .primary-button {
  flex: 0 0 auto;
}

#dashboardFilters .filter-actions {
  align-self: end;
  display: flex;
  justify-content: flex-start;
}

#signOutBtn {
  align-self: flex-start;
  padding: 10px 18px;
  border: none;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  box-shadow: none;
}

#signOutBtn:hover {
  background: var(--accent-strong);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  background: white;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.toggle input {
  width: auto;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button {
  padding: 12px 18px;
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
}

.ghost-button {
  padding: 11px 16px;
  background: rgba(27, 35, 41, 0.08);
  color: var(--ink);
  font-weight: 600;
}

.danger-fill {
  background: var(--danger);
  color: white;
}

.primary-button:hover,
.ghost-button:hover,
.tab-button:hover {
  transform: translateY(-1px);
}

.table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(23, 32, 38, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  background: white;
}

.compact-table table {
  min-width: 640px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(23, 32, 38, 0.08);
  vertical-align: top;
  text-align: left;
  font-size: 0.92rem;
}

th {
  background: #edf2f4;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #526168;
  position: sticky;
  top: 0;
}

tbody tr:hover {
  background: #fbfbf7;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pill.available {
  background: rgba(45, 125, 86, 0.12);
  color: var(--success);
}

.pill.warning {
  background: rgba(176, 122, 0, 0.12);
  color: var(--warning);
}

.pill.expired,
.pill.missing {
  background: rgba(178, 64, 53, 0.12);
  color: var(--danger);
}

.mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--dark);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.danger-button {
  color: var(--danger);
}

.builder-list {
  display: grid;
  gap: 12px;
}

.builder-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: #edf2f4;
}

.builder-row.conditions {
  grid-template-columns: 1.1fr 1fr 1fr auto;
  align-items: end;
}

.builder-row.required-docs {
  grid-template-columns: 0.8fr 1fr 0.7fr 0.9fr 0.9fr auto;
  align-items: end;
}

.detail-list,
.access-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.access-list li,
.detail-badge {
  padding: 14px 16px;
  border-radius: 16px;
  background: #edf2f4;
}

.rights-summary,
.scope-summary {
  color: var(--muted);
  line-height: 1.45;
}

.request-lifecycle-summary {
  margin-top: 2px;
}

.diagnostics-panel {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: #11181d;
  color: #dbe5ea;
  font-size: 0.84rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-toolbar {
  margin-bottom: 14px;
  display: flex;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
  min-width: 0;
}

.preview-toolbar label {
  max-width: 320px;
}

.filter-row th {
  background: #f7f8f3;
  position: static;
  padding-top: 8px;
  padding-bottom: 10px;
}

.filter-row input {
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 12px;
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

#kyribaPreviewSection,
#kyribaAuthDiagnosticsWrap {
  min-width: 0;
}

#kyribaPreviewSection .table-wrap,
#kyribaAuthDiagnosticsWrap .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

#kyribaPreviewSection table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

#kyribaPreviewSection th,
#kyribaPreviewSection td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#kyribaPreviewSection th:first-child,
#kyribaPreviewSection td:first-child {
  width: 76px;
}

#kyribaPreviewSection th:nth-child(2),
#kyribaPreviewSection td:nth-child(2) {
  width: 110px;
}

#kyribaPreviewSection th:nth-child(6),
#kyribaPreviewSection td:nth-child(6) {
  width: 110px;
}

.stack-form > .detail-badge,
.panel-card > .detail-badge {
  margin-bottom: 16px;
}

.entity-row {
  cursor: context-menu;
}

.entity-row:hover {
  background: #f8f8f2;
}

.entity-context-menu {
  position: fixed;
  z-index: 30;
  min-width: 180px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 254, 249, 0.98);
  border: 1px solid rgba(23, 32, 38, 0.12);
  box-shadow: 0 20px 40px rgba(15, 24, 29, 0.18);
}

.entity-context-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

.entity-context-menu button:hover {
  background: #edf2f4;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 32, 38, 0.34);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 254, 249, 0.98);
  border: 1px solid rgba(23, 32, 38, 0.08);
  box-shadow: 0 28px 64px rgba(15, 24, 29, 0.22);
}

.modal-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 24, 29, 0.12);
  z-index: 2;
}

.modal-close-button:hover {
  background: white;
}

.source-data-modal {
  width: min(920px, 100%);
}

.admin-guide-modal {
  width: min(720px, 100%);
}

.guide-kicker {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-guide-modal h4 {
  margin: 0 0 12px;
  font-family: "Avenir Next Condensed", "Trebuchet MS", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.guide-copy {
  margin: 0 0 12px;
  line-height: 1.65;
}

.guide-checkbox {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-checkbox input {
  width: auto;
}

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

.record-row {
  cursor: context-menu;
}

.record-row:hover {
  background: #f8f8f2;
}

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

.record-modal-note {
  margin: -4px 0 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.entity-list-heading {
  margin-top: 22px;
}

.masked {
  letter-spacing: 0.12em;
}

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

@media (max-width: 1160px) {
  .auth-panels,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .workspace,
  .hero-panel,
  .panel-grid.two-columns,
  .filter-grid,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .workspace {
    padding-left: 24px;
    padding-right: 24px;
  }

  .coverage-ring {
    width: 200px;
  }

  #entityAuthForm .inline-form {
    grid-template-columns: 1fr;
  }

  .request-form-span-3 {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .auth-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-intro,
  .auth-card {
    padding: 24px 22px;
  }

  .sidebar,
  .hero-metrics,
  .visual-row {
    grid-template-columns: 1fr;
  }

  .sidebar-tools {
    padding-bottom: 8px;
  }

  .builder-row.conditions,
  .builder-row.required-docs {
    grid-template-columns: 1fr;
  }
}
