:root {
  color-scheme: light;
  --ink: #1a2420;
  --muted: #5f6b64;
  --line: #e4e0d8;
  --paper: #faf7f1;
  --panel: #fffcf7;
  --soft: #f0f5f1;
  --green: #2a6b55;
  --green-dark: #1d4a3c;
  --green-glow: rgba(42, 107, 85, 0.14);
  --gold: #b8892d;
  --gold-soft: #fff4dd;
  --red: #b14a42;
  --shadow: 0 20px 50px rgba(36, 32, 24, 0.08);
  --shadow-soft: 0 8px 24px rgba(36, 32, 24, 0.05);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --font-ui: "DM Sans", Aptos, "Segoe UI", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(184, 137, 45, 0.09), transparent 34%),
    radial-gradient(circle at 100% 12%, rgba(42, 107, 85, 0.1), transparent 30%),
    linear-gradient(180deg, #fffdf9 0%, var(--paper) 48%, #f3efe8 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

body.auth-checking .admin-shell {
  display: none;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

.admin-shell.is-sidebar-collapsed {
  grid-template-columns: 64px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 26px 18px;
  border-right: 1px solid rgba(36, 32, 24, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(248, 244, 236, 0.92));
  backdrop-filter: blur(16px);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.7);
}

.sidebar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 8px;
  color: var(--ink);
  text-decoration: none;
}

.brand-block img {
  width: 38px;
  height: 38px;
}

.brand-block span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-block small {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-block strong {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.05;
  font-weight: 600;
  font-variant-ligatures: none;
}

.sidebar-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(42, 107, 85, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--green-dark);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(30, 48, 38, 0.08);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.sidebar-toggle:hover {
  border-color: rgba(42, 107, 85, 0.28);
  background: #ffffff;
  color: var(--green);
}

.sidebar-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.admin-shell.is-sidebar-collapsed .sidebar {
  gap: 16px;
  padding: 18px 8px;
}

.admin-shell.is-sidebar-collapsed .sidebar-head {
  grid-template-columns: 1fr;
  justify-items: center;
}

.admin-shell.is-sidebar-collapsed .brand-block {
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 0;
}

.admin-shell.is-sidebar-collapsed .brand-block img {
  width: 32px;
  height: 32px;
}

.admin-shell.is-sidebar-collapsed .brand-block span,
.admin-shell.is-sidebar-collapsed .nav-section-label,
.admin-shell.is-sidebar-collapsed .nav-label,
.admin-shell.is-sidebar-collapsed .sidebar-footer {
  display: none;
}

.admin-shell.is-sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.eyebrow,
.panel-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

h1 {
  margin-top: 5px;
  font-size: 26px;
  line-height: 1.04;
}

.brand-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

h2 {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 36px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-ligatures: none;
}

h3 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  font-variant-ligatures: none;
}

.view-subtitle,
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.view-subtitle {
  max-width: 660px;
  margin-top: 7px;
}

.nav-tabs {
  display: grid;
  gap: 18px;
}

.admin-shell.is-sidebar-collapsed .nav-tabs {
  justify-items: center;
  gap: 10px;
}

.nav-section {
  display: grid;
  gap: 6px;
}

.admin-shell.is-sidebar-collapsed .nav-section {
  gap: 8px;
}

.nav-section[hidden] {
  display: none;
}

.nav-section-label {
  margin: 0;
  padding: 0 8px;
  color: rgba(95, 107, 100, 0.76);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: stretch;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 12px 9px 14px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.admin-shell.is-sidebar-collapsed .nav-tab {
  justify-content: center;
  width: 38px;
  min-height: 36px;
  padding: 0;
  text-align: center;
}

.nav-tab[hidden] {
  display: none;
}

.nav-tab::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 160ms ease;
}

.admin-shell.is-sidebar-collapsed .nav-tab::before {
  display: none;
}

.nav-tab::after {
  display: none;
}

.admin-shell.is-sidebar-collapsed .nav-tab::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(95, 107, 100, 0.42);
  box-shadow: 0 0 0 4px rgba(42, 107, 85, 0);
}

.nav-tab:hover {
  border-color: rgba(42, 107, 85, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-dark);
}

.nav-tab.is-active {
  border-color: rgba(42, 107, 85, 0.14);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(240, 245, 241, 0.9));
  color: var(--green-dark);
  box-shadow: var(--shadow-soft);
}

.nav-tab.is-active::before {
  background: linear-gradient(180deg, var(--gold), #d4a84b);
}

.admin-shell.is-sidebar-collapsed .nav-tab.is-active::after {
  width: 9px;
  height: 9px;
  background: var(--green-dark);
  box-shadow: 0 0 0 5px rgba(42, 107, 85, 0.11);
}

.nav-tab.is-primary.is-active {
  border-color: rgba(42, 107, 85, 0.18);
  background: linear-gradient(90deg, #f4faf6, #eaf3ee);
}

.nav-tab-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.admin-shell.is-sidebar-collapsed .nav-tab-inner {
  display: none;
}

.nav-label {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 0 8px;
}

.admin-account {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(42, 107, 85, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.admin-account[hidden] {
  display: none;
}

.admin-account span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-sign-out-button {
  width: 100%;
}

.subtle-link {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.subtle-link:hover {
  text-decoration: underline;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  border: 1px solid rgba(31, 95, 73, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  background: #eef6f1;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.status-pill.is-warning {
  border-color: rgba(157, 116, 29, 0.35);
  background: var(--gold-soft);
  color: #6a4c10;
}

.workspace {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 34px 38px 40px;
}

.workspace-header {
  display: grid;
  gap: 6px;
}

body[data-admin-view="dictionary"] .workspace-header {
  display: none;
}

.workspace-status {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(122, 88, 48, 0.18);
  background: rgba(255, 249, 240, 0.92);
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.workspace-toolbar {
  margin-top: -2px;
}

.is-admin-signed-out .workspace-toolbar {
  display: none;
}

.workspace-toolbar:not(:has(.toolbar-block.is-active)) {
  display: none;
}

.toolbar-block {
  display: none;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.toolbar-block.is-active {
  display: grid;
}

.toolbar-label {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.toolbar-search-row {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(150px, 180px) minmax(160px, 200px);
  gap: 8px;
  align-items: center;
}

.search-input-prominent {
  min-height: 42px;
  border-color: var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 14px;
}

.search-input-prominent:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 95, 73, 0.12);
}

.select-input-toolbar {
  min-height: 42px;
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 14px;
}

.panel-head-compact {
  display: grid;
  gap: 4px;
  min-height: auto;
  padding: 14px 16px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 13px;
  background: #fff;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.secondary-link:hover {
  border-color: rgba(33, 98, 77, 0.24);
  background: var(--soft);
}

.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(42, 107, 85, 0.1);
  border-radius: var(--radius-md);
  background: rgba(42, 107, 85, 0.08);
  box-shadow: var(--shadow-soft);
}

#view-unresolved > .summary-strip {
  margin-bottom: 16px;
}

.summary-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 54px;
  min-width: 220px;
  flex: 1 1 0;
  padding: 12px 14px;
  background: var(--panel);
}

.summary-item-primary {
  background: linear-gradient(180deg, #f8fcf9, #f1f7f3);
}

.summary-item strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.is-admin-signed-out .view.is-active {
  display: none;
}

.panel,
.access-panel {
  border: 1px solid rgba(36, 32, 24, 0.07);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.94);
  box-shadow: var(--shadow);
}

.panel {
  min-width: 0;
  overflow: hidden;
}

.primary-panel {
  border-color: rgba(31, 95, 73, 0.24);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(31, 38, 34, 0.08);
}

.inbox-panel .panel-head {
  display: grid;
}

.reference-head {
  align-items: flex-start;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.search-input,
.select-input,
#access-email,
#access-password,
#membership-email,
#membership-role,
.official-input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.search-input:focus,
.select-input:focus,
.official-input:focus {
  border-color: rgba(42, 107, 85, 0.42);
  box-shadow: 0 0 0 3px var(--green-glow);
  outline: none;
}

.official-input.is-style-preview-italic,
.add-term-input.is-style-preview-italic {
  font-style: italic;
}

.search-input {
  width: 100%;
}

.filter-row .search-input {
  width: min(300px, 100%);
}

.review-terms-panel {
  min-height: 0;
}

.review-workspace {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(560px, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1240px;
}

.review-lookup-panel {
  position: sticky;
  top: 18px;
}

.review-lookup-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.review-lookup-search {
  min-height: 40px;
}

.review-lookup-results {
  display: grid;
  gap: 8px;
  min-height: 360px;
  max-height: calc(100vh - 360px);
  overflow: auto;
}

.review-lookup-panel .official-match-row {
  grid-template-columns: 1fr;
}

.review-lookup-panel .official-match-meta {
  justify-content: flex-start;
  max-width: none;
}

.review-lookup-summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.review-reference-table-wrap {
  overflow-x: hidden;
  overflow-y: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reference-terms-table.review-reference-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.reference-terms-table.review-reference-table th:nth-child(1),
.reference-terms-table.review-reference-table td:nth-child(1) {
  width: 30%;
}

.reference-terms-table.review-reference-table th:nth-child(2),
.reference-terms-table.review-reference-table td:nth-child(2) {
  width: 45%;
}

.reference-terms-table.review-reference-table th:nth-child(3),
.reference-terms-table.review-reference-table td:nth-child(3) {
  width: 25%;
}

.reference-terms-table.review-reference-table thead th {
  padding: 9px 10px;
}

.reference-terms-table.review-reference-table td {
  padding: 9px 10px;
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.term-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  max-height: calc(100vh - 285px);
  overflow: auto;
  padding: 10px;
}

.term-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid rgba(36, 32, 24, 0.07);
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fff, #fcfaf6);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.term-review-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  padding: 8px;
}

.term-card:hover {
  border-color: rgba(42, 107, 85, 0.16);
  box-shadow: 0 14px 30px rgba(36, 32, 24, 0.08);
  transform: translateY(-1px);
}

.term-card-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.review-row-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, auto);
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
}

.review-term-cell,
.review-check-cell {
  min-width: 0;
}

.review-term-cell {
  display: grid;
  align-content: start;
  gap: 6px;
}

.term-name-input {
  display: block;
  width: 100%;
  margin: 0;
  min-height: 36px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 850;
}

.term-meta-row {
  display: grid;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.term-meta {
  color: var(--muted);
  font-size: 12px;
}

.term-card-context {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.review-context-cell {
  display: block;
}

.term-card-context summary {
  width: max-content;
  max-width: 100%;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.term-card-context[open] {
  margin-top: 2px;
}

.review-context-cell .context-list {
  margin-top: 8px;
}

.review-actions.term-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: stretch;
}

.review-actions.term-card-actions > :first-child {
  grid-column: auto;
}

.review-actions.term-card-actions button {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 12px;
  line-height: 1.15;
}

.term-card-actions .review-ignore-button {
  color: #6c6357;
}

.review-usage-note-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.review-usage-note-field > span {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.term-usage-note-input {
  width: 100%;
  min-height: 48px;
  resize: vertical;
  color: #34413b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.term-style-picker {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.term-style-picker[hidden] {
  display: none;
}

.term-style-picker legend {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.term-style-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.term-style-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.term-style-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.term-style-option span {
  display: grid;
  place-items: center;
  min-height: 32px;
  border: 1px solid rgba(31, 38, 34, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #4e5b54;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.term-style-option input:checked + span {
  border-color: rgba(31, 95, 73, 0.42);
  background: #edf6f1;
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgba(31, 95, 73, 0.08);
}

.term-style-option input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.term-style-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.submitter-pill {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f3f0eb;
  color: #5f6b64;
  font-size: 11px;
  font-weight: 750;
}

.suggested-date-pill {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f8f5ee;
  color: #786f61;
  font-size: 11px;
  font-weight: 750;
}

.official-check {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(42, 107, 85, 0.14);
  border-radius: 7px;
  padding: 6px 8px;
  background: #f8fcf9;
}

.official-check-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.official-match-list {
  display: grid;
  gap: 4px;
}

.official-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(35, 31, 25, 0.08);
  border-radius: 7px;
  padding: 5px 6px;
  background: #fff;
}

.official-match-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.official-match-main strong,
.official-match-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.official-match-main strong {
  color: var(--ink);
  font-size: 12px;
}

.official-match-main span,
.official-match-meta,
.official-check-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.official-match-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  max-width: 260px;
}

.official-match-meta > span {
  border-radius: 999px;
  padding: 3px 7px;
  background: #f5f2e9;
  color: #5f6b64;
  font-weight: 800;
}

.official-check-empty {
  margin: 0;
}

.detail-panel {
  min-height: 590px;
}

.detail-empty {
  display: grid;
  place-items: center;
  min-height: 590px;
  color: var(--muted);
  font-size: 14px;
}

.detail-body {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.decision-section {
  display: grid;
  gap: 14px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-title {
  margin-top: 5px;
  font-size: 30px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.detail-stats {
  display: none;
}

.mini-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fafbf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.review-box {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(42, 107, 85, 0.14);
  border-radius: var(--radius-md);
  padding: 16px;
  background: linear-gradient(180deg, #f8fcf9, #f1f7f3);
}

.review-box label {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
}

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

.review-actions > :first-child {
  grid-column: 1 / -1;
}

.primary-button {
  border-color: var(--green);
  background: linear-gradient(180deg, #33856a, var(--green));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(42, 107, 85, 0.22);
}

.primary-button:hover {
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  box-shadow: 0 10px 22px rgba(42, 107, 85, 0.28);
  transform: translateY(-1px);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-dark);
  font-weight: 600;
}

.secondary-button:hover {
  background: var(--soft);
  border-color: rgba(42, 107, 85, 0.2);
}

.dictionary-guide {
  display: grid;
  gap: 18px;
  max-width: 1060px;
  margin: 0 auto;
}

.dictionary-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 8px 0 4px;
  text-align: center;
}

.dictionary-hero h3 {
  max-width: 760px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
}

.dictionary-hero p,
.dictionary-final-cta p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.dictionary-download-action {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.dictionary-installer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 520px);
}

.dictionary-install-button,
.dictionary-download-button {
  width: 100%;
  min-height: 44px;
}

.dictionary-manual-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dictionary-manual-link:hover {
  color: var(--green-dark);
}

.dictionary-download-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.dictionary-proofing-card,
.dictionary-install-panel,
.dictionary-manual-section,
.dictionary-install-card,
.dictionary-dialog-section,
.dictionary-final-cta {
  border: 1px solid rgba(36, 32, 24, 0.08);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dictionary-proofing-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.dictionary-document-surface {
  position: relative;
  min-height: 126px;
  border: 1px solid rgba(49, 95, 156, 0.16);
  border-radius: 8px;
  padding: 42px 18px 18px;
  background:
    linear-gradient(90deg, rgba(49, 95, 156, 0.05) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
}

.dictionary-document-surface.is-clean {
  border-color: rgba(42, 107, 85, 0.2);
}

.dictionary-document-surface p {
  color: #1e2b28;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.35;
}

.dictionary-misspelled {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #cc3c36;
  text-decoration-thickness: 1.6px;
  text-underline-offset: 5px;
}

.dictionary-preview-label {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 850;
}

.dictionary-preview-label.is-before {
  background: #fff0ec;
  color: #7e3327;
}

.dictionary-preview-label.is-after {
  background: #edf7f1;
  color: var(--green-dark);
}

.dictionary-install-panel {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.dictionary-install-copy {
  justify-items: center;
}

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

.dictionary-manual-section {
  overflow: hidden;
}

.dictionary-manual-section summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 18px;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.dictionary-manual-section summary::-webkit-details-marker {
  display: none;
}

.dictionary-manual-section summary::after {
  content: "⌄";
  margin-left: 8px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: transform 160ms ease;
}

.dictionary-manual-section[open] summary {
  border-bottom: 1px solid rgba(36, 32, 24, 0.08);
}

.dictionary-manual-section[open] summary::after {
  transform: rotate(180deg);
}

.dictionary-manual-body {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.dictionary-manual-intro {
  justify-items: center;
  text-align: center;
}

.dictionary-manual-block {
  display: grid;
  gap: 14px;
  min-width: 0;
}

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

.dictionary-install-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  min-width: 0;
  padding: 18px;
}

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

.dictionary-section-copy h3 {
  font-size: clamp(24px, 2.5vw, 34px);
}

.dictionary-section-note {
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dictionary-manual-download-button,
.dictionary-install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(42, 107, 85, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(35, 31, 25, 0.06);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.dictionary-install-button {
  min-height: 48px;
  padding: 0 18px;
}

.dictionary-manual-download-button {
  min-height: 42px;
  padding: 0 16px;
}

.dictionary-manual-download-button:hover,
.dictionary-install-button:hover {
  border-color: rgba(42, 107, 85, 0.42);
  background: #edf6f1;
  box-shadow: 0 10px 22px rgba(42, 107, 85, 0.12);
  transform: translateY(-1px);
}

.dictionary-platform-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.dictionary-step-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.dictionary-step-list li {
  padding-left: 2px;
  color: #26332e;
  font-size: 14px;
  line-height: 1.45;
}

.dictionary-step-list strong {
  color: var(--green-dark);
}

.dictionary-simple-callout {
  width: min(100%, 420px);
  border: 1px solid rgba(35, 31, 25, 0.08);
  border-radius: 8px;
  padding: 14px;
  background: #fbfaf7;
}

.dictionary-screenshot-frame {
  min-width: 0;
  margin: 0;
}

.dictionary-screenshot-frame figcaption {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.dictionary-troubleshoot-note {
  margin-top: 10px;
  border: 1px solid rgba(206, 158, 53, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffcf1;
  color: #5f6b64;
  font-size: 12px;
  line-height: 1.42;
}

.dictionary-troubleshoot-note strong {
  color: var(--green-dark);
}

.dictionary-fake-window,
.dictionary-dialog-window {
  overflow: hidden;
  border: 1px solid rgba(27, 77, 61, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.dictionary-window-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border-bottom: 1px solid rgba(35, 31, 25, 0.08);
  padding: 0 12px;
  background: #f6f6f4;
}

.dictionary-window-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e66d5f;
}

.dictionary-window-chrome span:nth-child(2) {
  background: #edbe4f;
}

.dictionary-window-chrome span:nth-child(3) {
  background: #62bd6a;
}

.dictionary-window-chrome strong,
.dictionary-windows-titlebar {
  color: #3a403c;
  font-size: 13px;
  font-weight: 850;
}

.dictionary-mac-settings,
.dictionary-windows-options {
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) minmax(220px, 1.25fr);
  min-height: 250px;
}

.dictionary-preference-grid,
.dictionary-options-nav {
  display: grid;
  align-content: start;
  gap: 7px;
  border-right: 1px solid rgba(35, 31, 25, 0.08);
  padding: 14px;
  background: #fbfaf7;
}

.dictionary-preference-grid div,
.dictionary-options-nav span {
  display: flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px;
  color: #53625c;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.dictionary-preference-grid .is-selected,
.dictionary-options-nav .is-selected {
  border-color: rgba(49, 95, 156, 0.42);
  background: #eaf2ff;
  color: #214c85;
}

.dictionary-settings-panel,
.dictionary-options-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.dictionary-settings-panel h4,
.dictionary-options-panel h4 {
  margin: 0;
  color: #1f2c28;
  font-size: 15px;
  line-height: 1.2;
}

.dictionary-fake-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #394741;
  font-size: 13px;
}

.dictionary-fake-check span,
.dictionary-box {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid #8b9c94;
  border-radius: 4px;
  background: #fff;
}

.dictionary-fake-check span::after,
.dictionary-box.is-checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--green-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.dictionary-fake-check.is-empty span::after {
  content: none;
}

.dictionary-fake-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 38px;
  border: 1px solid rgba(35, 31, 25, 0.12);
  border-radius: 8px;
  padding: 8px 13px;
  background: #fff;
  color: #33423d;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 4px 10px rgba(35, 31, 25, 0.05);
}

.dictionary-fake-button.is-primary {
  border-color: rgba(49, 95, 156, 0.26);
  background: #315f9c;
  color: #fff;
}

.dictionary-windows-titlebar {
  min-height: 36px;
  border-bottom: 1px solid rgba(35, 31, 25, 0.08);
  padding: 10px 12px;
  background: #f5f6f8;
}

.dictionary-dialog-section {
  padding: 18px;
}

.dictionary-dialog-window {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px;
}

.dictionary-dialog-window h3 {
  color: #1f2c28;
  font-size: 15px;
  line-height: 1.2;
}

.dictionary-dialog-actions {
  display: flex;
  justify-content: flex-end;
}

.dictionary-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  border-radius: 7px;
  padding: 8px 10px;
  color: #32413c;
  font-size: 13px;
}

.dictionary-row.muted-row {
  background: #f9faf8;
}

.dictionary-row.active-row {
  border: 1px solid rgba(42, 107, 85, 0.2);
  background: #eef7f1;
  color: var(--green-dark);
  font-weight: 850;
}

.dictionary-final-cta {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
}

.danger-button {
  border-color: rgba(159, 59, 51, 0.25);
  background: #fff7f6;
  color: var(--red);
  font-weight: 850;
}

.danger-button:hover {
  background: #fdecea;
}

.confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.confirm-dialog[hidden] {
  display: none !important;
}

.confirm-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 28, 22, 0.42);
}

.confirm-dialog-panel {
  position: relative;
  width: min(100%, 460px);
  padding: 24px 26px 22px;
  border-radius: 18px;
  border: 1px solid rgba(122, 88, 48, 0.16);
  background: #fffdf8;
  box-shadow: 0 24px 60px rgba(34, 28, 22, 0.18);
}

.confirm-dialog-kicker {
  margin: 0 0 8px;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirm-dialog-kicker-danger {
  color: var(--red);
}

.confirm-dialog-panel h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.45rem;
  font-weight: 650;
}

.confirm-dialog-copy {
  margin: 12px 0 0;
  color: var(--ink);
  line-height: 1.5;
}

.confirm-dialog-note {
  margin: 10px 0 0;
  line-height: 1.45;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.project-rule-dialog-actions {
  align-items: center;
  justify-content: flex-start;
}

.project-rule-dialog-actions-spacer {
  flex: 1 1 auto;
}

body.is-confirm-dialog-open {
  overflow: hidden;
}

.project-admin-shell {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 1280px;
}

.project-admin-list-panel,
.project-admin-detail-panel {
  min-height: 520px;
}

.project-admin-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(31, 38, 34, 0.08);
}

.project-admin-list-head .primary-button {
  min-height: 36px;
  padding: 7px 12px;
  white-space: nowrap;
}

.project-admin-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.project-list-card {
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 86px;
  border-color: rgba(31, 38, 34, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.project-list-card:hover,
.project-list-card.is-active {
  border-color: rgba(42, 107, 85, 0.28);
  background: #f6fbf8;
}

.project-list-card.is-active {
  box-shadow: inset 3px 0 0 var(--green);
}

.project-list-card strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-list-card small,
.project-list-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.project-list-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
}

.project-empty-card,
.project-detail-empty {
  display: grid;
  gap: 7px;
  padding: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.project-empty-card strong,
.project-detail-empty h3 {
  color: var(--ink);
}

.project-admin-detail {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.project-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(31, 38, 34, 0.08);
}

.project-detail-hero > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.project-detail-hero h3 {
  font-size: 28px;
}

.project-detail-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.project-detail-title-row h3 {
  min-width: 0;
}

.project-detail-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.project-genre-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(184, 137, 45, 0.26);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--gold-soft);
  color: #7d5a16;
  font-size: 12px;
  font-weight: 800;
}

.project-create-rule-card {
  border: 1px solid rgba(42, 107, 85, 0.16);
  border-radius: 8px;
  background: #f7fbf8;
  overflow: hidden;
}

.project-create-rule-card summary {
  cursor: pointer;
  padding: 13px 14px;
  color: var(--green-dark);
  font-weight: 850;
}

.project-create-rule-card[open] summary {
  border-bottom: 1px solid rgba(42, 107, 85, 0.12);
}

.project-ai-rule-form {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.project-create-rule-help,
.project-create-rule-note,
.project-ai-policy-text p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.project-create-rule-note {
  font-size: 11px;
}

.project-ai-policy-text {
  display: grid;
  gap: 4px;
  margin-top: 9px;
  border: 1px solid rgba(42, 107, 85, 0.12);
  border-radius: 8px;
  padding: 9px;
  background: rgba(250, 247, 241, 0.62);
}

.project-ai-policy-text strong {
  color: var(--green-dark);
  font-size: 12px;
}

.project-form-field {
  display: grid;
  gap: 6px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.project-form-field input,
.project-form-field select,
.project-form-field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.project-form-field textarea {
  resize: vertical;
  line-height: 1.4;
}

.project-rules-admin-card {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.project-rules-admin-head {
  display: block;
}

.project-rule-folder-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  margin-bottom: -13px;
  padding-top: 2px;
  position: relative;
  z-index: 2;
}

.project-rule-folder-tab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  align-items: center;
  min-height: 58px;
  border: 1px solid rgba(31, 38, 34, 0.1);
  border-bottom-color: rgba(42, 107, 85, 0.16);
  border-radius: 8px 8px 0 0;
  padding: 10px 12px 11px;
  background: #fbf8f1;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
  transform: translateY(4px);
}

.project-rule-folder-tab:hover {
  background: #f8fbf9;
  border-color: rgba(42, 107, 85, 0.22);
}

.project-rule-folder-tab.is-active {
  z-index: 3;
  border-color: rgba(42, 107, 85, 0.24);
  border-bottom-color: #f7fbf8;
  background: #f7fbf8;
  box-shadow: inset 0 3px 0 var(--green);
  transform: translateY(0);
}

.project-rule-folder-tab span {
  overflow: hidden;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-rule-folder-tab small {
  grid-column: 1 / -1;
  grid-row: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.project-rule-folder-tab b {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  min-width: 24px;
  border-radius: 999px;
  padding: 3px 7px;
  background: #f4efe5;
  color: #73551e;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.project-rule-folder-tab.is-active b {
  background: rgba(42, 107, 85, 0.12);
  color: var(--green-dark);
}

.project-rules-admin-list {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(42, 107, 85, 0.24);
  border-radius: 0 0 8px 8px;
  padding: 15px 14px 14px;
  background: #f7fbf8;
}

.project-rule-admin-section {
  display: grid;
  gap: 8px;
}

.project-rule-admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(31, 38, 34, 0.08);
  padding: 2px 2px 7px;
}

.project-rule-admin-section-head h4 {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.project-rule-admin-section-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.project-rule-admin-section-head span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f4efe5;
  color: #73551e;
  font-size: 11px;
  font-weight: 850;
}

.project-rule-section-empty {
  border: 1px dashed rgba(31, 38, 34, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}

.project-members-admin-section {
  gap: 12px;
  border: 1px solid rgba(42, 107, 85, 0.18);
  border-radius: 8px;
  padding: 18px;
  background: rgba(247, 251, 248, 0.78);
}

.project-member-page-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid rgba(31, 38, 34, 0.08);
  padding: 0 2px 12px;
}

.project-member-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(31, 38, 34, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(35, 31, 25, 0.05);
}

.project-member-back-button:hover,
.project-member-back-button:focus-visible {
  border-color: rgba(42, 107, 85, 0.28);
  background: #f7fbf8;
  outline: none;
}

.project-member-page-head h3 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.project-member-page-head p:not(.panel-kicker) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.project-member-head-count {
  align-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f4efe5;
  color: #73551e;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.project-member-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(42, 107, 85, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.project-member-form .project-form-field {
  min-width: 0;
}

.project-member-form .primary-button,
.project-member-form .secondary-button {
  min-height: 40px;
  white-space: nowrap;
}

.project-member-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.project-member-picker {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(42, 107, 85, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.project-member-picker-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.project-member-picker-head span {
  align-self: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef6f1;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.project-member-picker-results {
  display: grid;
  gap: 7px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.project-member-user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(31, 38, 34, 0.08);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}

.project-member-user-card strong {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.project-member-user-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.project-member-user-card .compact-button {
  white-space: nowrap;
}

.project-member-list {
  display: grid;
  gap: 8px;
}

.project-member-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  align-items: center;
  border: 1px solid rgba(31, 38, 34, 0.08);
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
}

.project-member-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  min-width: 0;
}

.project-member-card strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.project-member-card span {
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(42, 107, 85, 0.1);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 850;
}

.project-member-card small {
  grid-column: 1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.project-member-card .compact-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.project-reference-admin-section {
  gap: 12px;
}

.project-reference-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) auto;
  gap: 8px;
  align-items: center;
}

.project-reference-count {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.project-reference-list {
  display: grid;
  gap: 8px;
}

.project-reference-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(74px, 94px);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(31, 38, 34, 0.08);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.project-reference-card.has-project-override {
  border-color: rgba(42, 107, 85, 0.2);
  background: #f7fbf8;
}

.project-reference-card .official-input,
.project-reference-card .select-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.project-reference-card-main,
.project-reference-field,
.project-reference-override-panel,
.project-reference-actions {
  min-width: 0;
}

.project-reference-term-head {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: baseline;
  min-width: 0;
}

.project-reference-term-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.project-reference-term-head strong.is-style-preview-italic {
  font-style: italic;
}

.project-reference-term-kind {
  margin-left: 0;
  line-height: 1.15;
  white-space: normal;
}

.project-reference-raw {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.project-reference-term-input,
.project-reference-style-select {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
}

.project-reference-style-select {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-reference-override-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.72fr) minmax(220px, 1.15fr);
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(31, 38, 34, 0.08);
}

.project-reference-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.project-reference-field > span {
  line-height: 1.15;
}

.project-reference-field input,
.project-reference-field select,
.project-reference-field textarea {
  text-transform: none;
  letter-spacing: 0;
}

.project-reference-actions {
  display: grid;
  gap: 7px;
  align-self: start;
}

.project-reference-notes {
  min-height: 56px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.35;
}

.project-reference-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .project-reference-toolbar,
  .project-reference-card,
  .project-reference-override-panel {
    grid-template-columns: 1fr;
  }

  .project-reference-count,
  .project-reference-actions {
    justify-self: stretch;
  }
}

.project-rule-admin-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(31, 38, 34, 0.08);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

.project-rule-admin-row.is-enabled {
  border-color: rgba(42, 107, 85, 0.2);
  background: #f8fcf9;
}

.project-rule-admin-row input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.project-rule-admin-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-rule-admin-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.project-rule-admin-title strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.project-rule-admin-title span {
  border-radius: 999px;
  padding: 3px 7px;
  background: #f4efe5;
  color: #73551e;
  font-size: 11px;
  font-weight: 850;
}

.project-rule-admin-copy small {
  color: var(--muted);
  font-size: 12px;
}

.project-rule-summary {
  max-width: 820px;
  margin: 2px 0 0;
  color: #5f6b64;
  font-size: 12px;
  line-height: 1.45;
}

.project-rule-variant {
  max-width: 850px;
  margin: 10px 0 2px;
  padding: 10px;
  border: 1px solid rgba(42, 107, 85, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.project-rule-variant legend {
  padding: 0 5px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 850;
}

.project-rule-variant-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.project-rule-variant-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: flex-start;
  padding: 8px;
  border: 1px solid rgba(42, 107, 85, 0.12);
  border-radius: 7px;
  background: rgba(245, 249, 246, 0.72);
}

.project-rule-variant-option input {
  margin-top: 3px;
}

.project-rule-variant-option strong {
  display: block;
  color: var(--green-dark);
  font-size: 12px;
}

.project-rule-variant-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.project-rule-registry {
  max-width: 900px;
  margin: 10px 0 2px;
  border: 1px solid rgba(42, 107, 85, 0.14);
  border-radius: 8px;
  background: rgba(245, 249, 246, 0.72);
  overflow: hidden;
}

.project-rule-registry > summary,
.project-regex-inventory > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.project-rule-registry > summary {
  min-height: 42px;
  border-radius: 7px;
  background: rgba(248, 252, 249, 0.92);
}

.project-rule-registry > summary:hover {
  background: #ffffff;
}

.project-rule-registry > summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.project-rule-registry-body {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid rgba(42, 107, 85, 0.12);
  background: rgba(255, 255, 255, 0.64);
}

.project-component-reset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(159, 59, 51, 0.16);
  border-radius: 8px;
  background: #fffafa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.project-component-reset-button {
  min-height: 34px;
  padding: 7px 12px;
  white-space: nowrap;
}

.project-component-list {
  display: grid;
  gap: 8px;
}

.project-component-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(42, 107, 85, 0.12);
  border-radius: 8px;
  background: #fff;
}

.project-component-row.is-component-disabled {
  border-color: rgba(159, 59, 51, 0.18);
  background: #fffafa;
}

.project-component-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-component-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.project-component-title strong {
  color: var(--ink);
  font-size: 12px;
}

.project-component-title span,
.project-component-title em,
.project-component-readonly {
  border-radius: 999px;
  padding: 2px 7px;
  background: #f4efe5;
  color: #73551e;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.project-component-title em {
  background: #eef7f1;
  color: var(--green-dark);
}

.is-component-disabled .project-component-title em {
  background: #fff0ef;
  color: var(--red);
}

.project-component-copy p {
  margin: 0;
  color: #5f6b64;
  font-size: 12px;
  line-height: 1.4;
}

.project-component-state {
  display: grid;
  gap: 4px;
  align-self: center;
}

.project-component-state span {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.project-component-details {
  grid-column: 1 / -1;
  border: 1px solid rgba(42, 107, 85, 0.11);
  border-radius: 7px;
  background: #fbfdfb;
  overflow: hidden;
}

.project-component-details > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 850;
}

.project-component-details > summary small {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-component-details-body {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid rgba(42, 107, 85, 0.1);
  background: #fff;
}

.project-component-tech-section {
  display: grid;
  gap: 7px;
}

.project-component-tech-section h5 {
  margin: 0;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-component-tech-grid {
  display: grid;
  grid-template-columns: minmax(90px, max-content) minmax(0, 1fr);
  gap: 5px 10px;
  margin: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf8;
}

.project-component-tech-grid dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.project-component-tech-grid dd {
  min-width: 0;
  margin: 0;
  color: #2e3a35;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.project-component-empty-detail {
  margin: 0;
  padding: 9px;
  border: 1px dashed rgba(42, 107, 85, 0.18);
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
}

.project-component-json {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf8;
  overflow: hidden;
}

.project-component-json summary {
  cursor: pointer;
  padding: 7px 9px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 850;
}

.project-component-json pre {
  max-height: 220px;
  margin: 0;
  overflow: auto;
  padding: 9px;
  border-top: 1px solid var(--line);
  color: #2e3a35;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.project-regex-inventory {
  border: 1px solid rgba(42, 107, 85, 0.12);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.project-regex-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(42, 107, 85, 0.1);
}

.project-regex-list-compact {
  padding: 0;
  border-top: 0;
}

.project-regex-row {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf8;
}

.project-regex-row strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.project-regex-row span,
.project-regex-row p {
  display: block;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.project-regex-row code {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  padding: 8px;
  border-radius: 6px;
  background: #f7f4ee;
  color: #2e3a35;
  font-size: 11px;
  line-height: 1.35;
  white-space: pre;
}

.project-rule-source {
  max-width: 850px;
  margin-top: 4px;
  border: 1px solid rgba(42, 107, 85, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.project-rule-source summary {
  cursor: pointer;
  padding: 7px 9px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 850;
}

.project-rule-source[open] summary {
  border-bottom: 1px solid rgba(42, 107, 85, 0.1);
}

.project-rule-source p {
  margin: 0;
  padding: 8px 9px 9px;
  color: #5f6b64;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.project-rule-edit-button {
  align-self: center;
  min-height: 32px;
  padding: 6px 10px;
}

.project-create-panel {
  display: grid;
  gap: 12px;
}

.subtle-button {
  background: #fff;
  color: var(--green-dark);
  font-weight: 800;
}

.pending-users-section {
  display: grid;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfaf6, #f7f4ee);
}

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

.pending-users-head h4 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.25;
}

.pending-users-list {
  display: grid;
  gap: 8px;
}

.pending-user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 160px) minmax(180px, 220px);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(31, 95, 73, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.pending-user-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pending-delete-button,
.pending-approve-button {
  width: 100%;
}

.pending-user-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pending-user-main strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-user-main span,
.pending-users-empty {
  color: var(--muted);
  font-size: 12px;
}

.user-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.user-membership-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(130px, 170px) auto auto;
  gap: 10px;
  align-items: end;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.user-membership-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.checkbox-label,
.inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-transform: none;
  white-space: nowrap;
}

.checkbox-label input,
.inline-checkbox input {
  width: 16px;
  height: 16px;
}

.users-table {
  max-height: calc(100vh - 470px);
}

.users-permissions-table th:nth-child(1),
.users-permissions-table td:nth-child(1) {
  width: 38%;
}

.users-permissions-table th:nth-child(2),
.users-permissions-table td:nth-child(2) {
  width: 150px;
}

.users-permissions-table th:nth-child(3),
.users-permissions-table td:nth-child(3) {
  width: 130px;
}

.users-permissions-table th:nth-child(5),
.users-permissions-table td:nth-child(5) {
  width: 180px;
}

.table-action-button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.reference-actions-note {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reference-actions-head,
.reference-actions-cell {
  width: 160px;
  min-width: 160px;
  overflow-wrap: normal;
}

.reference-actions-cell {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible !important;
  white-space: nowrap;
  text-overflow: unset;
}

.reference-actions-cell .table-action-button {
  width: auto;
  min-width: 62px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.reference-edit-row td {
  vertical-align: top;
}

.reference-edit-input,
.reference-edit-note,
.reference-edit-select {
  width: 100%;
  min-width: 0;
  font-size: 12px;
}

.reference-edit-input {
  font-weight: 850;
}

.reference-edit-note {
  min-height: 58px;
  resize: vertical;
  line-height: 1.35;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 14px;
}

.support-section {
  min-width: 0;
}

.support-heading {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.context-list,
.candidate-list {
  display: grid;
  gap: 8px;
}

.context-snippet,
.candidate-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfa;
}

.context-snippet {
  color: #34413b;
  font-size: 13px;
  line-height: 1.45;
}

.context-snippet strong {
  color: var(--ink);
  font-weight: 900;
}

.candidate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.candidate-title {
  font-weight: 850;
}

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

.add-term-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(42, 107, 85, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 252, 247, 0.98), rgba(244, 249, 246, 0.96)),
    var(--panel);
  box-shadow: var(--shadow);
}

.add-term-hero-glow {
  position: absolute;
  inset: -40% auto auto -10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 98, 77, 0.14), rgba(33, 98, 77, 0));
  pointer-events: none;
}

.add-term-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px 26px;
}

.add-term-hero-copy {
  display: grid;
  gap: 8px;
}

.add-term-hero-copy h3 {
  font-size: 24px;
  line-height: 1.12;
}

.add-term-lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.add-term-form {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.add-term-field {
  display: grid;
  gap: 8px;
}

.add-term-field > span,
.add-term-list-picker legend {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.add-term-input {
  min-height: 50px;
  border: 1px solid rgba(31, 95, 73, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.2;
  box-shadow: inset 0 1px 2px rgba(30, 42, 36, 0.04);
}

.add-term-input::placeholder {
  color: #8a968f;
  font-size: 16px;
  font-weight: 500;
}

.add-term-input:focus {
  border-color: var(--green);
  box-shadow:
    inset 0 1px 2px rgba(30, 42, 36, 0.04),
    0 0 0 3px rgba(31, 95, 73, 0.12);
  outline: none;
}

.add-term-note-input {
  min-height: 74px;
  border: 1px solid rgba(31, 95, 73, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #34413b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  resize: vertical;
  box-shadow: inset 0 1px 2px rgba(30, 42, 36, 0.04);
}

.add-term-note-input::placeholder {
  color: #8a968f;
  font-size: 13px;
  font-weight: 500;
}

.add-term-note-input:focus {
  border-color: var(--green);
  box-shadow:
    inset 0 1px 2px rgba(30, 42, 36, 0.04),
    0 0 0 3px rgba(31, 95, 73, 0.12);
  outline: none;
}

.add-term-list-picker {
  margin: 0;
  padding: 0;
  border: 0;
}

.add-term-style-picker {
  max-width: 360px;
}

.add-term-contextual-note {
  margin: -2px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.add-term-contextual-note[hidden] {
  display: none;
}

.add-term-list-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.add-term-list-option {
  display: block;
  cursor: pointer;
}

.add-term-list-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.add-term-list-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 84px;
  border: 1px solid rgba(31, 38, 34, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.88);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.add-term-list-badge {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 42px;
  padding: 0 8px;
  border-radius: 10px;
  background: #eef5f0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.add-term-list-card.is-sefer-author .add-term-list-badge {
  background: var(--gold-soft);
  color: #604300;
}

.add-term-list-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.add-term-list-option:hover .add-term-list-card {
  border-color: rgba(31, 95, 73, 0.28);
  background: #fff;
}

.add-term-list-option input:checked + .add-term-list-card {
  border-color: rgba(31, 95, 73, 0.42);
  background: linear-gradient(180deg, #f7fbf8, #eef6f1);
  box-shadow: 0 10px 24px rgba(31, 95, 73, 0.1);
  transform: translateY(-1px);
}

.add-term-list-option input:checked + .add-term-list-card.is-sefer-author {
  border-color: rgba(155, 114, 26, 0.42);
  background: linear-gradient(180deg, #fffdf7, #fbf4df);
  box-shadow: 0 10px 24px rgba(155, 114, 26, 0.1);
}

.add-term-list-option input:focus-visible + .add-term-list-card {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.add-term-list-copy strong {
  font-size: 15px;
  line-height: 1.2;
}

.add-term-list-copy > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.add-term-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.add-term-submit {
  min-height: 44px;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 14px;
}

.add-term-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.add-term-status.is-success {
  color: var(--green-dark);
  font-weight: 750;
}

.add-term-status.is-error {
  color: var(--red);
  font-weight: 750;
}

.add-term-status.is-info {
  color: #604300;
  font-weight: 750;
}

.data-table {
  max-height: calc(100vh - 235px);
  overflow-y: auto;
  overflow-x: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f4ee;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: rgba(255, 252, 247, 0.9);
}

.sort-col-btn {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-align: left;
}

.sort-col-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.sort-col-label {
  min-width: 0;
}

.sort-dir-indicator {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  font-size: 10px;
  line-height: 1;
  color: var(--green-dark);
}

.date-added-cell {
  font-size: 12px;
  color: #3f4a3d;
  white-space: normal;
}

.reference-terms-table th:nth-child(1),
.reference-terms-table td:nth-child(1) {
  width: 16%;
}

.reference-terms-table th:nth-child(2),
.reference-terms-table td:nth-child(2) {
  width: 26%;
}

.reference-terms-table th:nth-child(3),
.reference-terms-table td:nth-child(3) {
  width: 12%;
}

.reference-terms-table th:nth-child(4),
.reference-terms-table td:nth-child(4) {
  width: 12%;
}

.reference-terms-table th:nth-child(5),
.reference-terms-table td:nth-child(5) {
  width: 18%;
}

.reference-terms-table th:nth-child(6),
.reference-terms-table td:nth-child(6) {
  width: 11%;
}

.reference-terms-table.has-actions th:nth-child(1),
.reference-terms-table.has-actions td:nth-child(1) {
  width: 14%;
}

.reference-terms-table.has-actions th:nth-child(2),
.reference-terms-table.has-actions td:nth-child(2) {
  width: 23%;
}

.reference-terms-table.has-actions th:nth-child(5),
.reference-terms-table.has-actions td:nth-child(5) {
  width: 15%;
}

.reference-terms-table.has-actions th:nth-child(7),
.reference-terms-table.has-actions td:nth-child(7) {
  width: 13%;
}

.intro-volume-names-table th:nth-child(1),
.intro-volume-names-table td:nth-child(1) {
  width: 24%;
}

.intro-volume-names-table th:nth-child(2),
.intro-volume-names-table td:nth-child(2) {
  width: 13%;
}

.intro-volume-names-table th:nth-child(3),
.intro-volume-names-table td:nth-child(3) {
  width: 11%;
}

.intro-volume-names-table th:nth-child(4),
.intro-volume-names-table td:nth-child(4) {
  width: 27%;
}

.intro-volume-names-table th:nth-child(5),
.intro-volume-names-table td:nth-child(5) {
  width: 25%;
}

.reference-terms-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.reference-terms-table thead th {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-align: left;
  vertical-align: middle;
  color: var(--muted);
  padding: 11px 14px;
  background: #f8faf6;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow-wrap: normal;
}

.reference-terms-table td {
  text-align: left;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reference-terms-table td:nth-child(3) {
  white-space: nowrap;
}

.reference-terms-table td.style-cell,
.reference-terms-table td:nth-child(5) {
  overflow: visible;
  white-space: normal;
  text-overflow: unset;
}

.reference-terms-table td.style-cell {
  white-space: nowrap;
}

.project-reference-card .style-badge {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.project-reference-actions .table-action-button {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.reference-terms-table .sort-col-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-transform: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.reference-terms-table .sort-col-btn:hover {
  color: var(--green-dark);
  background: transparent;
}

.reference-terms-table .sort-col-btn:disabled,
.reference-terms-table .sort-col-btn.is-disabled-by-search {
  cursor: default;
  opacity: 0.72;
}

.reference-terms-table .sort-col-btn:disabled:hover,
.reference-terms-table .sort-col-btn.is-disabled-by-search:hover {
  background: transparent;
}

.reference-terms-table .sort-col-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.reference-terms-table .sort-col-label {
  line-height: 1.25;
  min-width: 0;
  white-space: nowrap;
}

.reference-terms-table .sort-dir-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border-left: 0;
  min-height: 1.2em;
  font-size: 10px;
  line-height: 1;
  color: var(--green-dark);
}

.reference-terms-table .sort-dir-indicator.is-placeholder {
  visibility: hidden;
}

.raw-entry-cell {
  color: #3f4a3d;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.term-kind-badge {
  display: inline-block;
  margin-left: 8px;
  border-radius: 999px;
  padding: 2px 7px;
  background: #eef2ea;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: lowercase;
  vertical-align: middle;
}

.source-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  white-space: normal;
}

.style-badge {
  display: inline-block;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  white-space: nowrap;
}

.style-badge.is-italicized {
  border-color: rgba(31, 95, 73, 0.2);
  background: var(--soft);
  color: var(--green-dark);
  font-style: italic;
}

.style-badge.is-contextual {
  border-color: rgba(66, 84, 102, 0.18);
  background: #eef3f7;
  color: #425466;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 22px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}

.locked-state {
  display: grid;
  gap: 7px;
  max-width: 420px;
  margin: 0 auto;
}

.locked-state strong {
  color: var(--ink);
  font-size: 16px;
}

.locked-state span {
  color: var(--muted);
  font-size: 13px;
}

.suggestion-reports-table table {
  min-width: 980px;
}

.suggestion-report-row td {
  vertical-align: top;
}

.report-run-id,
.report-rule-title,
.report-suggestion-kind {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.report-suggestion-kind {
  margin-top: 0;
  color: var(--green-strong);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.report-suggestion-summary {
  margin-top: 5px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.report-arrow {
  color: var(--muted);
  font-weight: 700;
}

.report-status-pill.is-open {
  background: #fff4df;
  color: #7a4d26;
}

.report-status-pill.is-reviewed {
  background: #edf7f2;
  color: var(--green-strong);
}

.report-status-pill.is-dismissed {
  background: #f1f1ef;
  color: #66645e;
}

.report-complaint {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.report-context {
  max-width: 460px;
}

.report-context summary {
  cursor: pointer;
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 800;
}

.report-context-snippet {
  margin: 8px 0;
  color: #4d5a55;
  font-size: 12px;
  line-height: 1.4;
}

.report-selected-text {
  max-height: 220px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 10px;
  border: 1px solid rgba(31, 38, 34, 0.08);
  border-radius: 8px;
  background: #fbfaf6;
  color: #303a36;
  font: 12px/1.45 var(--sans);
  white-space: pre-wrap;
}

.report-actions {
  display: grid;
  gap: 7px;
  min-width: 110px;
}

.pipeline-root {
  display: grid;
  gap: 16px;
}

.pipeline-panel,
.pipeline-latest-panel {
  overflow: hidden;
}

.pipeline-latest-head {
  min-height: auto;
}

.pipeline-latest-body {
  padding: 18px;
}

.pipeline-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.pipeline-metric {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 14px;
  background: #fbfcfa;
}

.pipeline-metric strong {
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1;
}

.pipeline-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.pipeline-flow {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.pipeline-stage-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(36, 32, 24, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  background: linear-gradient(180deg, #fff, #fcfaf6);
  box-shadow: var(--shadow-soft);
}

.pipeline-stage-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.pipeline-stage-content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.pipeline-stage-title-row,
.prompt-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pipeline-stage-title-row h4,
.prompt-card h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.pipeline-kind-badge,
.prompt-readonly-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pipeline-kind-badge {
  border: 1px solid rgba(31, 95, 73, 0.18);
  background: var(--soft);
  color: var(--green-dark);
}

.pipeline-kind-badge.is-ai {
  border-color: rgba(31, 95, 73, 0.24);
  background: #e6f0ed;
}

.pipeline-kind-badge.is-hybrid {
  border-color: rgba(157, 116, 29, 0.28);
  background: var(--gold-soft);
  color: #654915;
}

.pipeline-kind-badge.is-human {
  border-color: rgba(159, 59, 51, 0.22);
  background: #fff1ef;
  color: #81342d;
}

.prompt-readonly-badge {
  border: 1px solid var(--line);
  background: #f8faf7;
  color: var(--muted);
}

.pipeline-stage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pipeline-stage-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fafbf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pipeline-list-block {
  display: grid;
  gap: 6px;
}

.pipeline-list-block > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pipeline-list-block ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline-list-block li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  background: #fbfcfa;
  color: #34413b;
  font-size: 12px;
  font-weight: 750;
}

.pipeline-samples,
.prompt-grid {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.pipeline-samples {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.pipeline-sample-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.pipeline-sample-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 850;
}

.pipeline-sample-card summary strong {
  color: var(--green-dark);
}

.pipeline-sample-items {
  display: grid;
  gap: 6px;
  padding: 0 12px 12px;
}

.pipeline-sample-items code {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 8px;
  background: #fbfcfa;
  color: #34413b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-sample-empty {
  padding: 0 12px 12px;
}

.pipeline-usage {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.pipeline-usage table {
  width: 100%;
  border-collapse: collapse;
}

.pipeline-usage th,
.pipeline-usage td {
  border-top: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  font-size: 13px;
}

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

.prompt-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.prompt-pre {
  min-height: 320px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0;
  padding: 12px;
  background: #fbfcfa;
  color: #26322d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

@media (max-width: 1020px) {
  .admin-shell,
  .admin-shell.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    gap: 14px;
    height: auto;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-shell.is-sidebar-collapsed .sidebar {
    gap: 14px;
    padding: 14px 16px;
  }

  .sidebar-head,
  .admin-shell.is-sidebar-collapsed .sidebar-head {
    grid-template-columns: minmax(0, 1fr) 34px;
    justify-items: stretch;
  }

  .admin-shell.is-sidebar-collapsed .brand-block {
    justify-content: flex-start;
    width: auto;
    min-height: 48px;
    padding: 0 8px;
  }

  .admin-shell.is-sidebar-collapsed .brand-block span,
  .admin-shell.is-sidebar-collapsed .sidebar-footer {
    display: grid;
  }

  .admin-shell.is-sidebar-collapsed .nav-section-label {
    display: block;
  }

  .admin-shell.is-sidebar-collapsed .nav-label {
    display: inline;
  }

  .admin-shell.is-sidebar-collapsed .sidebar-toggle svg {
    transform: none;
  }

  .brand-note,
  .view-subtitle {
    display: none;
  }

  .nav-tabs,
  .admin-shell.is-sidebar-collapsed .nav-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
    justify-items: stretch;
  }

  .nav-section,
  .admin-shell.is-sidebar-collapsed .nav-section {
    min-width: 0;
    gap: 6px;
  }

  .nav-tab,
  .admin-shell.is-sidebar-collapsed .nav-tab {
    justify-content: stretch;
    width: auto;
    min-height: 42px;
    padding: 9px 12px 9px 14px;
    text-align: left;
  }

  .admin-shell.is-sidebar-collapsed .nav-tab::after {
    display: none;
  }

  .admin-shell.is-sidebar-collapsed .nav-tab-inner {
    display: flex;
  }

  .sidebar-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .sidebar-sign-out-button {
    width: auto;
    min-width: 92px;
  }

  .workspace {
    padding: 18px;
  }

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

  .review-workspace {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .review-lookup-panel {
    position: static;
  }

  .term-list {
    grid-template-columns: 1fr;
  }

  .term-card {
    grid-template-columns: 1fr;
  }

  .review-row-head,
  .review-actions.term-card-actions {
    grid-template-columns: 1fr;
  }

  .submitter-pill {
    max-width: 100%;
  }

  .term-list,
  .data-table {
    max-height: none;
  }

  .toolbar-search-row {
    grid-template-columns: 1fr;
  }

  .dictionary-guide {
    max-width: none;
  }

  .dictionary-proofing-card,
  .dictionary-install-grid,
  .dictionary-platform-grid,
  .dictionary-installer-actions {
    grid-template-columns: 1fr;
  }

  .add-term-hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .add-term-list-options {
    grid-template-columns: 1fr;
  }

  .pipeline-metrics,
  .pipeline-samples,
  .prompt-grid,
  .project-admin-shell,
  .pending-user-card,
  .user-membership-form {
    grid-template-columns: 1fr;
  }

  .project-detail-hero {
    display: grid;
  }

  .project-detail-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .project-member-page-head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .project-member-head-count {
    grid-column: 2;
    justify-self: start;
  }

  .project-rule-folder-tabs {
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }

  .project-rule-folder-tab,
  .project-rule-folder-tab.is-active {
    border: 1px solid rgba(31, 38, 34, 0.1);
    border-radius: 8px;
    transform: none;
  }

  .project-member-form,
  .project-member-picker-head,
  .project-member-user-card,
  .project-member-card {
    grid-template-columns: 1fr;
  }

  .project-member-picker-head span {
    justify-self: start;
  }

  .project-member-user-card .compact-button,
  .project-member-card .compact-button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .project-rules-admin-list {
    border-radius: 8px;
  }
}

@media (max-width: 640px) {
  .nav-tabs {
    grid-template-columns: 1fr;
  }

  .sidebar-footer {
    grid-template-columns: 1fr;
  }

  .dictionary-hero h3 {
    font-size: 36px;
  }

  .dictionary-proofing-card,
  .dictionary-install-panel,
  .dictionary-manual-body,
  .dictionary-install-card,
  .dictionary-dialog-section,
  .dictionary-final-cta {
    padding: 14px;
  }

  .official-match-row {
    grid-template-columns: 1fr;
  }

  .official-match-meta {
    justify-content: flex-start;
    max-width: none;
  }

  .dictionary-mac-settings,
  .dictionary-windows-options {
    grid-template-columns: 1fr;
  }

  .dictionary-preference-grid,
  .dictionary-options-nav {
    border-right: 0;
    border-bottom: 1px solid rgba(35, 31, 25, 0.08);
  }
}
