@font-face {
  font-family: 'Publication Serif';
  src: url('../fonts/libre-baskerville-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Publication Serif';
  src: url('../fonts/libre-baskerville-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Publication Serif';
  src: url('../fonts/libre-baskerville-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url('../fonts/montserrat-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url('../fonts/montserrat-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url('../fonts/montserrat-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #171717;
  --muted: #404040;
  --soft: #696969;
  --line: #d8d6d2;
  --accent: #a52731;
  --link: #1455bb;
  --paper: #f7f7f5;
  --surface: #ffffff;
  --body-font: Montserrat, Verdana, sans-serif;
  --headline-font: 'Publication Serif', Georgia, serif;
  --type-micro: 10px;
  --type-caption: 11px;
  --type-small: 12px;
  --type-body: 13.5px;
  --type-input: 14px;
  --type-section: 20px;
  --type-page: 32px;
  color-scheme: light;
}

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

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper) url('../img/backgrounds/paper.webp') center top / cover no-repeat;
  font: var(--type-body)/1.55 var(--body-font);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input:not(.search-field input, .input-suffix input):focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(165, 39, 49, .12) !important;
}

::selection {
  color: #fff;
  background: var(--accent);
}

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

.admin-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 268px;
  height: 100vh;
  height: 100dvh;
  padding: 20px 16px 14px;
  border-right: 1px solid var(--line);
  background: rgba(249, 249, 247, .94);
  overflow: hidden;
}

.sidebar > .brand-lockup {
  flex: 0 0 auto;
}

.sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  margin-inline: -4px;
  padding-inline: 4px;
  scrollbar-width: thin;
  scrollbar-color: #d8d5cf transparent;
}

.sidebar-scroll::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.scope-list::-webkit-scrollbar {
  width: 4px;
}

.sidebar-scroll::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.scope-list::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.scope-list::-webkit-scrollbar-thumb {
  background: #d8d5cf;
  border-radius: 4px;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.scope-list::-webkit-scrollbar-thumb:hover {
  background: #b5b1a8;
}

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

.brand-mark {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-lockup strong {
  display: block;
  font: 700 14px/1.3 var(--headline-font);
}

.brand-lockup small,
.brand-lockup div span {
  display: block;
  margin-top: 2px;
  color: var(--soft);
  font-size: 11px;
  letter-spacing: .04em;
}

.nav-caption {
  margin: 20px 8px 6px;
  color: #77736e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.nav-caption--secondary {
  margin-top: 14px;
}

.admin-nav {
  display: grid;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 10px;
  padding: 0 12px;
  border-radius: 3px;
  color: #565452;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color .15s ease, background .15s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(23, 23, 23, .045);
}

.nav-link.active {
  color: var(--accent);
  background: rgba(165, 39, 49, .07);
  font-weight: 700;
}

.nav-link.active::before {
  position: absolute;
  inset: 4px auto 4px 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
  content: '';
}

.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 19px;
  margin-left: auto;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #55514d;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-footer {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.sidebar-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 2px;
  color: #5e5a56;
  background: transparent;
  text-decoration: none;
  text-align: left;
  font: 600 12px var(--body-font);
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}

.sidebar-utility:hover {
  color: var(--accent);
  background: rgba(23, 23, 23, .04);
}

.sidebar-utility--logout {
  color: #5e5a56;
}

.sidebar-utility--logout:hover {
  color: var(--accent);
  background: rgba(165, 39, 49, .06);
}

.logout-form {
  margin: 0;
}

.logout-form button {
  width: 100%;
}

.operator-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 6px 1px 0;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--line);
}

.operator-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #c9c6c0;
  border-radius: 50%;
  color: #55514d;
  background: #fff;
  font-size: 9px;
  font-weight: 700;
}

.operator-chip strong,
.operator-chip small {
  display: block;
}

.operator-chip strong {
  font-size: 11px;
  font-weight: 700;
}

.operator-chip small {
  margin-top: 1px;
  color: var(--soft);
  font-size: 10.5px;
}

.main {
  min-height: 100vh;
  margin-left: 268px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 245, .9);
  backdrop-filter: blur(8px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #77736e;
  font-size: 12px;
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 700;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-status {
  color: var(--soft);
  font-size: 11px;
  letter-spacing: .02em;
}

.mobile-logout-form {
  display: none;
  margin: 0;
}

.mobile-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: #55514d;
  background: #fff;
  font: 600 11.5px var(--body-font);
  cursor: pointer;
  transition: all .15s ease;
}

.mobile-logout-button:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(165, 39, 49, 0.05);
}

.page-wrap {
  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
  padding: 38px 0 76px;
}

.page-heading {
  margin: 0 0 24px;
}

.page-heading--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 0;
  font: 700 clamp(28px, 2.8vw, var(--type-page))/1.2 var(--headline-font);
  letter-spacing: -.025em;
}

.page-description {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

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

.heading-actions form {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  font: 700 13px/1.2 var(--body-font);
  transition: background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}

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

.button.is-loading,
.button[aria-busy="true"],
.button:disabled {
  opacity: .58;
  cursor: not-allowed;
}

.button-spinner {
  display: inline-block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  animation: ml-spin .75s linear infinite;
}

.button--primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.button--primary:hover {
  border-color: #7f1d25;
  color: #fff;
  background: #8e2029;
}

.button--secondary {
  border-color: #aaa7a1;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
}

.button--secondary:hover {
  border-color: var(--ink);
  background: #fff;
}

.button--quiet {
  min-height: 28px;
  padding: 0 8px;
  border-color: transparent;
  color: #55514d;
  background: transparent;
}

.button--quiet:hover {
  color: var(--accent);
  background: rgba(165, 39, 49, .06);
}

.button--small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
}

.button--danger-quiet {
  border-color: transparent;
  color: #9b3038;
  background: transparent;
}

.button--danger-quiet:hover {
  border-color: #e0c5c6;
  background: #f8eeee;
}

.text-link {
  color: var(--link);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: #0d3c88;
}

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

.subtle-count {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 20px;
  margin-left: 3px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #55514d;
  background: #fff;
  font: 700 10px var(--body-font);
  vertical-align: 2px;
}

.notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 11px 14px;
  border: 1px solid #b4c5b3;
  color: #35553a;
  background: #f0f5ef;
  font-size: 12px;
}

.notice--warning {
  border-color: #d7c5a4;
  color: #69542b;
  background: #faf5e9;
}

.notice--error {
  border-color: #d9b1b3;
  color: #7b292f;
  background: #faf0f0;
}

.notice--progress {
  border-color: #b7c6db;
  color: #204170;
  background: #eff4fb;
}

.notice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 15px;
}

.metric-card {
  min-height: 164px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 2px 5px rgb(27 22 21 / 5%);
  transition: border-color .15s ease;
}

.metric-card:hover {
  border-color: #c4c1ba;
}

.metric-card--feature {
  border-top: 2px solid var(--accent);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.metric-icon {
  width: 23px;
  height: 2px;
  background: #8b8780;
}

.metric-icon--green {
  background: #658b67;
}

.metric-icon--amber {
  background: #a67b37;
}

.metric-icon--blue {
  background: var(--link);
}

.metric-trend {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--soft);
  background: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metric-card>strong {
  display: block;
  color: var(--ink);
  font: 700 32px/1 var(--headline-font);
  letter-spacing: -.03em;
}

.metric-label {
  display: block;
  margin-top: 8px;
  color: #34312d;
  font-size: 12px;
  font-weight: 700;
}

.metric-foot {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 11px;
}

.content-grid {
  display: grid;
  gap: 13px;
}

.content-grid--dashboard {
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, .8fr);
}

.surface-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 2px 5px rgb(27 22 21 / 5%);
}

.content-grid>.surface-card {
  padding: 20px;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-bottom: 12px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.section-heading h2,
.directory-toolbar h2 {
  margin: 0;
  font: 700 var(--type-section)/1.3 var(--headline-font);
}

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

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.brand-row:hover .row-arrow {
  color: var(--accent);
}

.brand-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid #d0cdc7;
  border-radius: 50%;
  color: #494641;
  background: #fff;
  font: 700 11px var(--headline-font);
  overflow: hidden;
  padding: 2px;
}

.brand-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.brand-letter-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font: 700 11px var(--headline-font);
  color: #494641;
}

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

.brand-row-main strong,
.brand-row-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-row-main strong {
  font-size: 12.5px;
  font-weight: 700;
}

.brand-row-main small {
  margin-top: 2px;
  color: var(--soft);
  font-size: 11px;
}

.row-arrow {
  margin-left: auto;
  color: #76716b;
  font-size: 13px;
}

.quick-actions {
  display: grid;
}

.quick-actions>a,
.quick-actions>form>button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  gap: 10px;
  padding: 8px 2px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.quick-actions>a:hover,
.quick-actions>form>button:hover {
  color: var(--accent);
  background: rgba(165, 39, 49, .025);
}

.quick-actions>a>span:first-child,
.quick-actions>form>button>span:first-child {
  flex: 1;
}

.quick-actions strong,
.quick-actions small {
  display: block;
}

.quick-actions strong {
  font-size: 12px;
  font-weight: 700;
}

.quick-actions small {
  margin-top: 3px;
  color: var(--soft);
  font-size: 11px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 18px;
  text-align: center;
}

.empty-state h3 {
  margin: 0;
  font: 700 16px var(--headline-font);
}

.empty-state p {
  max-width: 400px;
  margin: 8px 0 15px;
  color: var(--soft);
  font-size: 12.5px;
}

.directory-card {
  overflow: hidden;
}

.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 17px;
  border-bottom: 1px solid var(--line);
}

.directory-toolbar p {
  margin: 5px 0 0;
  color: var(--soft);
  font-size: 11.5px;
}

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

.search-field {
  display: flex;
  align-items: center;
  width: min(240px, 100%);
  height: 36px;
  padding: 0 10px;
  border: 1px solid #c9c6c0;
  border-radius: 2px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(165, 39, 49, .1);
}

.search-field>span {
  color: #77736e;
  font-size: 14px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  color: var(--ink);
  background: transparent;
  font-size: 12.5px;
  -webkit-appearance: none;
  appearance: none;
}

.search-field input:focus,
.search-field input:focus-visible {
  border: 0;
  outline: none;
  box-shadow: none;
}

.search-field input::placeholder {
  color: #7b7771;
}

.filter-select {
  height: 36px;
  max-width: 155px;
  padding: 0 28px 0 10px;
  border: 1px solid #c9c6c0;
  border-radius: 2px;
  color: #393632;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.row-actions select:not(.filter-select) {
  min-height: 44px;
  max-width: 100%;
  padding: 0 32px 0 11px;
  border: 1px solid #c9c6c0;
  border-radius: 2px;
  color: var(--ink);
  background-color: #fff;
  font-size: 14px;
}

.filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(165, 39, 49, .1);
  outline: none;
}

.report-upload {
  margin-block-end: 1rem;
}

.report-actions, .secret-field {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.secret-field input { flex: 1 1 10rem; min-width: 0; }
.report-table td { overflow-wrap: anywhere; }
.report-table td:nth-child(2) { min-width: 13rem; }
.report-actions form { margin: 0; }

.translation-directory {
  --translation-columns: minmax(8rem, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) auto;
}

.translation-directory--source {
  --translation-columns: minmax(8rem, 1fr) minmax(0, 2fr) auto;
}

.translation-head, .trans-row {
  display: grid;
  grid-template-columns: var(--translation-columns);
  gap: 1rem;
  align-items: start;
  padding: .75rem 1rem;
}

.translation-head { font-weight: 700; background: var(--paper); }
.trans-row { border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.translation-reference { color: var(--soft); }
.translation-reference small { display: none; }

@media (max-width: 640px) {
  .translation-head { display: none; }
  .trans-row { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .translation-reference small { display: block; font-weight: 600; }
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  height: 40px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  color: #68645e;
  background: #efeeeb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 15px 14px;
  border-bottom: 1px solid #e5e3de;
  color: #33302c;
  font-size: 13.5px;
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background .12s ease;
}

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

.admin-table tbody tr:hover {
  background: rgba(20, 20, 20, .035);
}

.table-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 145px;
}

.table-brand strong,
.table-brand small {
  display: block;
}

.table-brand strong {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.table-brand small,
.table-subline {
  margin-top: 3px;
  color: #74706a;
  font-size: 11px;
}

.table-subline {
  display: block;
}

.table-status-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.status-sublabel {
  color: #74706a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pillar-tag,
.type-pill {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #d8d5cf;
  border-radius: 20px;
  color: #5f5a54;
  background: #f9f8f5;
  font-size: 11px;
  text-transform: capitalize;
}

.domain-link {
  color: var(--link);
  font-size: 11.5px;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 265px;
}

.row-actions form {
  margin: 0;
}

.empty-search {
  margin: 0;
  padding: 20px;
  color: var(--soft);
  text-align: center;
  font-size: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid #cbc8c2;
  border-radius: 20px;
  color: #5e5a55;
  background: #f4f3f0;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: '';
  flex-shrink: 0;
}

.status-badge.status-live,
.status-badge.status-provisioned {
  border-color: #b7c9b6;
  color: #3b5f3e;
  background: #f1f6ef;
}

.status-badge.status-operational {
  border-color: #b7c9b6;
  color: #2e6231;
  background: #f1f6ef;
}

.status-badge.status-degraded {
  border-color: #d6c6a6;
  color: #77602e;
  background: #faf6eb;
}

.status-badge.status-down {
  border-color: #e5b9be;
  color: #9b2832;
  background: #fdf2f3;
}

.status-badge.status-unmonitored {
  border-color: #d0ccc7;
  color: #6f6a64;
  background: #efeeeb;
}

.status-badge.status-coming-soon,
.status-badge.status-pending {
  border-color: #d6c6a6;
  color: #77602e;
  background: #faf6eb;
}

.status-badge.status-suspended {
  border-color: #dfc49f;
  color: #805b26;
  background: #fbf5e9;
}

.status-badge.status-deleted {
  border-color: #d0ccc7;
  color: #6f6a64;
  background: #efeeeb;
}

.status-badge.status-unknown {
  color: #64605a;
}

.launch-layout,
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: start;
  gap: 13px;
}

.settings-page { display: grid; gap: 20px; min-width: 0; }
.settings-page .settings-form { container-type: inline-size; }
.settings-page .form-grid, .settings-server-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0 16px;
}
.settings-server-fields { grid-template-columns: minmax(0, 2fr) minmax(6rem, .7fr) minmax(0, 1fr); }
@container (max-width: 34rem) {
  .settings-server-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .settings-server-fields > :first-child { grid-column: 1 / -1; }
}
.settings-page .form-section { padding: clamp(16px, 2.2vw, 28px); }
.settings-page .form-section-heading h2, .settings-support h2 {
  margin: 0 0 6px;
  font: 700 18px/1.3 var(--headline-font);
}
.settings-help, .settings-support > p { color: var(--soft); line-height: 1.5; }
.settings-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  align-items: start;
  gap: 16px;
}
.settings-support { min-width: 0; padding: clamp(16px, 2.2vw, 28px); }
.settings-support pre { max-width: 100%; overflow-x: auto; }
.settings-transcript { margin-bottom: 20px; }
.settings-test-form { display: grid; gap: 12px; justify-items: start; }
.settings-test-form .field { width: 100%; margin: 0; }
.settings-reference { padding-top: 16px; border-top: 1px solid var(--line); }
.settings-reference summary { cursor: pointer; font-weight: 600; }
.settings-reference ul { padding-left: 20px; }
.settings-page .config-list li { gap: 10px; flex-wrap: wrap; }

.launch-form,
.settings-form {
  overflow: hidden;
}

.form-section {
  padding: 19px 20px;
  border-bottom: 1px solid var(--line);
}

.form-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 17px;
}

.step-number,
.settings-icon {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border: 1px solid #cfcbc4;
  border-radius: 50%;
  color: var(--accent);
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}

.settings-icon {
  border-radius: 0;
  font-size: 13px;
}

.form-section-heading h2 {
  margin: 1px 0 3px;
  font: 700 14px var(--headline-font);
}

.form-section-heading p {
  margin: 0;
  color: var(--soft);
  font-size: 11px;
}

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

.field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  margin-bottom: 13px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  color: #383531;
  font-size: 12px;
  font-weight: 700;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  cursor: pointer;
}
.checkbox-label input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }

.required-mark {
  color: var(--accent);
}

.field input:where(:not([type="checkbox"])),
.field select,
.field textarea {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #c9c6c0;
  border-radius: 2px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}

.field select {
  appearance: none;
  padding-right: 32px;
}

.filter-select,
.field select,
.row-actions select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2355514d' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(165, 39, 49, .08);
}

.field input::placeholder {
  color: #8c8882;
}

.field small {
  color: #625e58;
  font-size: 11.5px;
  line-height: 1.5;
}

.field code,
code {
  padding: 2px 5px;
  color: #433f38;
  background: #eeece7;
  border: 1px solid #dfdcce;
  border-radius: 2px;
  font: 11.5px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.input-suffix {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid #c9c6c0;
  border-radius: 2px;
  background: #fff;
}

.input-suffix:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(165, 39, 49, .08);
}

.input-suffix input,
.input-suffix input:focus,
.input-suffix input:focus-visible {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.input-suffix>span {
  padding: 0 10px;
  color: #6b6762;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
}

.form-footer p {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 600px;
  margin: 0;
  color: #625e58;
  font-size: 11.5px;
}

.info-mark {
  display: grid;
  place-items: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid #99958d;
  border-radius: 50%;
  color: #6a665f;
  font-size: 9px;
  font-weight: 700;
}

.launch-aside {
  display: grid;
  gap: 11px;
}

.aside-card,
.aside-note {
  padding: 17px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 2px 5px rgb(27 22 21 / 5%);
}

.aside-card {
  border-top: 2px solid var(--accent);
}

.aside-card h2 {
  margin: 0 0 13px;
  font: 700 14px var(--headline-font);
}

.step-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: flex;
  gap: 9px;
}

.step-list li>span {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1px solid #cfcbc4;
  border-radius: 50%;
  color: var(--accent);
  background: #fff;
  font-size: 9.5px;
  font-weight: 700;
}

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

.step-list strong {
  font-size: 12px;
  font-weight: 700;
}

.step-list small {
  margin-top: 3px;
  color: var(--soft);
  font-size: 11px;
}

.aside-note {
  background: rgba(255, 255, 255, .68);
}

.aside-note strong {
  font: 700 12.5px var(--headline-font);
}

.aside-note p {
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 11.5px;
}

.health-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 13px;
}

.health-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
}

.health-summary-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 2px;
  background: #77736e;
}

.health-summary-icon--green {
  background: #638565;
}

.health-summary-icon--blue {
  background: var(--link);
}

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

.health-summary small {
  color: var(--soft);
  font-size: 11px;
}

.health-summary strong {
  margin: 3px 0;
  font: 700 16px var(--headline-font);
}

.health-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #66615b;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.health-state i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.health-state--good {
  color: #4b704d;
}

.health-state--bad {
  color: #9b3038;
}

.health-state--warning {
  color: #80642f;
}

.health-state--neutral {
  color: #69645e;
}

.health-card {
  margin-bottom: 13px;
  padding: 16px;
}

.health-card--spaced {
  margin-top: 20px;
}

.health-card .check-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.check-row-meta {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--soft);
  word-break: break-all;
}

.check-row-note {
  margin: 10px 0 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}

.section-meta {
  color: var(--soft);
  font-size: 11px;
}

.health-table td {
  white-space: nowrap;
}

.health-error-row td {
  padding-top: 0;
  color: #72383b;
}

.health-error-row small {
  margin-left: 10px;
  color: #796f69;
  font-size: 11px;
}

.table-footnote {
  margin: 11px 2px 0;
  color: var(--soft);
  font-size: 11px;
}

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

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
}

.check-status {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.check-status--good {
  background: #638565;
}

.check-status--bad {
  background: var(--accent);
}

.check-row>span:nth-child(2) {
  flex: 1;
}

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

.check-row strong {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.check-row small {
  color: var(--soft);
  font-size: 10.5px;
}

.settings-aside {
  padding: 17px;
}

.settings-aside .aside-icon {
  width: 24px;
  height: 2px;
  margin-bottom: 12px;
  background: var(--link);
}

.settings-aside h2 {
  margin: 0 0 6px;
  font: 700 14px var(--headline-font);
}

.settings-aside>p {
  color: var(--soft);
  font-size: 12px;
}

.config-list {
  display: grid;
  gap: 8px;
  margin: 13px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.config-list li {
  display: grid;
  gap: 3px;
}

.config-list li>span {
  color: #4b704d;
  font-size: 11px;
  font-weight: 600;
}

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

.diagnostic-card {
  padding: 16px;
}

.diagnostic-card h2 {
  margin: 0 0 16px;
  font: 700 18px/1.3 var(--headline-font);
}

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

.diagnostic-list>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  border-top: 1px solid var(--line);
}

.diagnostic-list dt {
  color: #625e58;
  font-size: 12px;
}

.diagnostic-list dd {
  margin: 0;
  color: #292622;
  font-size: 12px;
  text-align: right;
}

.diagnostic-list dd code {
  overflow-wrap: anywhere;
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 22px;
  background: var(--paper) url('../img/backgrounds/paper.webp') center top / cover no-repeat;
}

.login-card {
  width: min(100%, 420px);
  padding: 32px 30px;
  border: 1px solid #c9c6c0;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 9px 13px rgb(27 22 21 / 10%), 0 1px 2px rgb(27 22 21 / 12%);
}

.login-card .brand-lockup {
  padding: 0;
  margin-bottom: 24px;
}

.login-card .eyebrow {
  margin-bottom: 7px;
}

.login-card h1 {
  margin: 0;
  font: 700 24px/1.25 var(--headline-font);
  letter-spacing: -.025em;
}

.login-copy {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.stack-form label {
  color: #383531;
  font-size: 12px;
  font-weight: 700;
}

.stack-form input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #c9c6c0;
  border-radius: 2px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}

.stack-form .button {
  margin-top: 6px;
  min-height: 44px;
  font-size: 13.5px;
}

.form-error {
  margin: 2px 0 0;
  color: #8e2029;
  font-size: 12px;
}

.login-footnote {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 1050px) {
  .settings-layout, .launch-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-wrap {
    width: calc(100% - 48px);
  }

  .topbar {
    padding-inline: 24px;
  }

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

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

@media (max-width: 800px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    padding: 10px 13px 7px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-y: visible;
  }

  .sidebar>.brand-lockup {
    min-height: 30px;
    padding: 0 2px 7px;
  }

  .brand-mark {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
  }

  .brand-lockup strong {
    font-size: 14px;
  }

  .nav-caption,
  .sidebar-footer {
    display: none;
  }

  .sidebar-scroll {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-inline: 0;
    padding-inline: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

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

  .admin-nav {
    display: flex;
    flex: 0 0 auto;
    gap: 3px;
    overflow: visible;
  }

  .nav-link {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid transparent;
    font-size: 13px;
    white-space: nowrap;
  }

  .nav-link.active::before {
    inset: auto 7px 0;
    width: auto;
    height: 2px;
  }

  .nav-count {
    min-width: 17px;
    height: 16px;
  }

  .main {
    margin-left: 0;
  }

  .topbar {
    position: relative;
    height: 48px;
    padding-inline: 16px;
  }

  .mobile-logout-form {
    display: block;
  }

  .page-wrap {
    width: calc(100% - 32px);
    padding: 24px 0 45px;
  }

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

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

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

@media (max-width: 560px) {
  .component-inner-container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .component-status-wrap {
    margin-left: auto;
  }

  .topbar-status {
    display: none;
  }

  .breadcrumb {
    gap: 6px;
    font-size: 11px;
  }

  .page-heading--split {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .page-heading h1 {
    font-size: 27px;
  }

  .heading-actions {
    width: 100%;
  }

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

  .metric-grid {
    gap: 7px;
  }

  .metric-card {
    min-height: 115px;
    padding: 11px;
  }

  .metric-card>strong {
    font-size: 24px;
  }

  .metric-top {
    margin-bottom: 8px;
  }

  .content-grid>.surface-card,
  .health-card {
    padding: 13px;
  }

  .directory-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 13px;
  }

  .directory-controls {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .search-field {
    flex: 1 1 100%;
    width: 100%;
  }

  .filter-select {
    flex: 1;
    max-width: none;
  }

  .admin-table {
    min-width: 730px;
  }

  .health-table {
    min-width: 665px;
  }

  .form-section {
    padding: 15px 13px;
  }

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

  .form-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 13px;
  }

  .form-footer .button {
    width: 100%;
  }

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

  .health-summary-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .health-summary {
    padding: 10px;
  }

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

  .diagnostic-card {
    padding: 13px;
  }

  .login-card {
    padding: 24px 19px;
  }
}

.detail-card {
  min-width: 0;
  padding: 20px;
}

.brand-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 16px 24px;
  margin: 0 0 16px;
  padding: 20px;
}
.brand-summary dt { margin-bottom: 6px; color: var(--soft); font-size: 12px; }
.brand-summary dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.brand-detail-list > div { min-height: 44px; align-items: baseline; padding-block: 10px; }
.brand-detail-list dt { flex: 0 0 32%; }
.diagnostic-list :is(dt, dd) { min-width: 0; overflow-wrap: anywhere; }

.metric-card>strong.metric-value-text {
  overflow-wrap: anywhere;
  font: 700 clamp(16px, 1.5vw, 20px)/1.25 var(--headline-font);
  letter-spacing: 0;
}

/* Status Page & Hostinger-Style Timeline */
.status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.status-banner--operational {
  background: #f2f7f1;
  border-color: #b7c9b6;
  color: #255027;
}

.status-banner--degraded {
  background: #fdf9ee;
  border-color: #dfcb9f;
  color: #6d5522;
}

.status-banner--outage {
  background: #fdf3f4;
  border-color: #e5b9be;
  color: #88222a;
}

.status-banner-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.status-banner-body h2 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
}

.status-banner-body p {
  margin: 0;
  font-size: 12.5px;
  opacity: 0.9;
}

.uptime-bar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.uptime-block {
  display: block;
  width: 6px;
  height: 18px;
  border-radius: 2px;
  background: #c5c1b9;
  flex-shrink: 0;
}

.uptime-block--operational {
  background: #4d8f53;
}

.uptime-block--degraded {
  background: #c99a38;
}

.uptime-block--down {
  background: #bd3844;
}

.cron-guide-box {
  background: #faf9f6;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 12px;
}

.cron-code {
  display: block;
  background: #f4f3ef;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 11px 14px;
  border-radius: 2px;
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 8px 0;
  overflow-x: auto;
  user-select: all;
}

/* ==========================================================================
   Hostinger Statuspage Layout for Admin Health Tab
   ========================================================================== */
.page-status {
  position: relative;
  font-weight: 500;
  border-radius: 2px;
  border: 1px solid #c9dec9;
  border-left: 4px solid #2a8747;
  margin-bottom: 24px;
  padding: 1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f2f7f2;
  color: #1e5628;
  box-shadow: 0 1px 3px rgba(27, 22, 21, 0.04);
}
.page-status.status-minor {
  background-color: #fdf8ee;
  border-color: #e8d5ab;
  border-left-color: #b46914;
  color: #6b4712;
}
.page-status.status-major {
  background-color: #fdf2f3;
  border-color: #e5b9be;
  border-left-color: #a52731;
  color: #7b1d24;
}
.page-status.status-unmonitored {
  background-color: #f4f4f5;
  border-color: #d4d4d8;
  border-left-color: #64748b;
  color: #3f3f46;
}
.page-status .status {
  color: inherit;
  margin: 0;
  font: 700 18px/1.25 var(--headline-font);
  letter-spacing: -0.01em;
}
.page-status .last-updated-stamp {
  font-size: 12px;
  opacity: 0.85;
}

.components-uptime-link {
  text-align: right;
  font-size: 0.85em;
  color: #737373;
  margin-bottom: 10px;
}
.components-uptime-link a {
  color: #737373;
  text-decoration: underline;
}

.components-container {
  overflow: hidden;
  background: #ffffff;
  border-radius: 4px;
}
.components-container.one-column .component-container {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-top-width: 0px;
  padding: 1.1rem 1.25rem 1rem;
  background: #ffffff;
  transition: background-color 0.15s ease;
}
.components-container.one-column .component-container:first-of-type {
  border-top-width: 1px;
  border-radius: 4px 4px 0 0;
}
.components-container.one-column .component-container:last-of-type {
  border-radius: 0 0 4px 4px;
}
.components-container.one-column .component-container:first-child:last-child {
  border-radius: 4px;
}
.component-container.is-group {
  padding: 1.25rem 1.25rem 1.15rem;
}

.component-inner-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  min-height: 28px;
}
.component-inner-container .name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  line-height: 1.2;
}

.group-parent-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
  line-height: 1;
}
.group-parent-indicator .indicator-icon {
  display: block;
  width: 14px;
  height: 14px;
}
.group-parent-indicator:hover svg rect {
  stroke: #475569;
}
.group-parent-indicator:hover svg line {
  stroke: #0f172a;
}
.brand-inline-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.component-status-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.component-status {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2e8544;
}
.component-status--minor,
.component-status--degraded {
  color: #ca8a24;
}
.component-status--major,
.component-status--down {
  color: #a52731;
}
.component-status--unchecked {
  color: #64748b;
}
.status-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e8f8f0;
  color: #2e8544;
  font-size: 10px;
  font-weight: 700;
  border: none;
  padding: 0;
  cursor: default;
}

.shared-partial.uptime-90-days-wrapper {
  padding-top: 10px;
  margin-bottom: -2px;
}
.availability-time-line-graphic {
  display: block;
  width: 100%;
  height: 34px;
  overflow: hidden;
}
.availability-time-line-graphic rect.uptime-day {
  cursor: pointer;
  transition: fill 0.1s ease;
}
.availability-time-line-graphic rect.uptime-day:hover {
  fill: #5e6c84 !important;
}

.legend {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-top: 6px;
}
.legend .legend-item {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  position: relative;
  color: #8c8c8c;
}
.legend .legend-item.light {
  color: #8c8c8c;
  opacity: 0.85;
}
.legend .spacer {
  flex: 1;
  margin: 0 16px;
  height: 1px;
  background: #e5e5e5;
}

.child-components-container {
  display: none;
  margin-top: 10px;
  margin-left: 6px;
  padding-left: 20px;
  border-left: 2px solid #e2e8f0;
}
.child-components-container .component-inner-container {
  margin: 0;
  padding: 8px 0;
  border: none !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.45) !important;
  background: transparent !important;
  color: #334155 !important;
  cursor: default;
  min-height: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease, padding 0.15s ease;
}
.child-components-container .component-inner-container:last-child {
  border-bottom: none !important;
}
.child-components-container .component-inner-container:hover {
  background: rgba(241, 245, 249, 0.7) !important;
  padding-inline: 8px;
  margin-inline: -8px;
  border-radius: 4px;
}
.child-components-container .component-inner-container .name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 13px;
  color: #334155 !important;
  line-height: 1.3;
  cursor: default;
}
.child-components-container .component-inner-container .component-status {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}
.child-components-container .component-inner-container .component-status--down,
.child-components-container .component-inner-container .component-status--major {
  color: #b91c1c !important;
  font-weight: 600 !important;
}
.child-components-container .component-inner-container .component-status--degraded,
.child-components-container .component-inner-container .component-status--minor {
  color: #b45309 !important;
  font-weight: 600 !important;
}
.child-components-container .component-inner-container .component-status--operational {
  color: #15803d !important;
  font-weight: 600 !important;
}
.child-components-container .component-inner-container .component-status--unchecked {
  color: #64748b !important;
  font-weight: 600 !important;
}

.status-indicator-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0;
  vertical-align: middle;
}
.status-indicator-dot.status-dot--operational {
  background-color: #10b981;
  box-shadow: 0 0 0 2.5px rgba(16, 185, 129, 0.2);
}
.status-indicator-dot.status-dot--degraded {
  background-color: #f59e0b;
  box-shadow: 0 0 0 2.5px rgba(245, 158, 11, 0.2);
}
.status-indicator-dot.status-dot--down {
  background-color: #ef4444;
  box-shadow: 0 0 0 2.5px rgba(239, 68, 68, 0.2);
}
.status-indicator-dot.status-dot--unchecked {
  background-color: #94a3b8;
  box-shadow: 0 0 0 2.5px rgba(148, 163, 184, 0.25);
}

.component-container.is-group.open .plus-icon {
  display: none !important;
}
.component-container.is-group.open .minus-icon {
  display: block !important;
}

.component-container.is-group.open .child-components-container {
  display: block !important;
}
.component-container.is-group.open > .uptime-90-days-wrapper {
  display: none !important;
}

#uptime-tooltip {
  position: absolute;
  display: none;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  width: 290px;
  z-index: 1000;
  pointer-events: none;
  padding: 0;
}
#uptime-tooltip #box-arrow {
  background-color: #ffffff;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: -2px -2px 3px rgba(0, 0, 0, 0.03);
  height: 10px;
  width: 10px;
  position: absolute;
  top: -6px;
  transform: rotate(45deg);
  z-index: 1;
}
#uptime-tooltip .tooltip-box {
  background-color: #ffffff;
  border-radius: 4px;
  padding: 12px 14px;
  position: relative;
  z-index: 2;
}
#uptime-tooltip .tooltip-date {
  font-size: 13.5px;
  font-weight: 600;
  color: #222222;
  margin-bottom: 4px;
}
#uptime-tooltip .tooltip-body {
  font-size: 13px;
  color: #555555;
  line-height: 1.4;
}

/* ==========================================================================
   Editorial Modals & Dialogs (Fixed Frame + Scrollable Inner Body)
   ========================================================================== */
html:has(.modal-backdrop[open]) {
  overflow: hidden;
}

.modal-backdrop {
  --dialog-space: clamp(16px, 2vw, 24px);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  color: inherit;
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 23, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(12px, 2vw, 24px);
}

.modal-backdrop[open] { display: flex; }
.modal-backdrop::backdrop { background: transparent; }
.modal-backdrop:focus { outline: none; }

.modal-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 2px;
  max-width: 500px;
  width: 100%;
  max-height: calc(100vh - 32px);
  max-height: min(720px, calc(100dvh - 32px));
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(23, 23, 23, 0.14), 0 2px 6px rgba(23, 23, 23, 0.06);
}

.modal-card > form:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
}

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

.modal-header {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: clamp(14px, 1.8vw, 20px) var(--dialog-space);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  z-index: 2;
}

.modal-header > div {
  min-width: 0;
  flex: 1 1 auto;
}

.modal-header h3 {
  margin: 0;
  font: 700 18px/1.3 var(--headline-font);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.modal-header p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--soft);
  overflow-wrap: anywhere;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: var(--dialog-space);
  scrollbar-width: thin;
  scrollbar-color: #d8d5cf transparent;
}

.modal-body > :last-child {
  margin-bottom: 0;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: #666;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all .15s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(165, 39, 49, 0.05);
}

.modal-field {
  margin-bottom: 14px;
}

.modal-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #383531;
  margin-bottom: 5px;
}

.modal-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.modal-label-row label {
  margin-bottom: 0;
}

.button-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--link);
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
}

.modal-field input,
.modal-field select,
.modal-field textarea {
  width: 100%;
  border: 1px solid #c9c6c0;
  border-radius: 2px;
  color: var(--ink);
  background: #ffffff;
  font-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.modal-field input,
.modal-field select {
  min-height: 38px;
  padding: 0 10px;
}

.modal-field textarea {
  padding: 8px 10px;
  line-height: 1.45;
  resize: vertical;
}

.is-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.is-readonly-field {
  background: rgba(0, 0, 0, 0.03);
}

.modal-field .is-readonly-field {
  background: rgba(0, 0, 0, 0.03);
}

.modal-field textarea.is-mono {
  font-size: 11.5px;
}

.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(165, 39, 49, 0.1) !important;
  outline: none;
}

.modal-field small {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 11px;
}

.modal-note-box {
  background: #f2f7f2;
  border: 1px solid #c9dec9;
  border-radius: 2px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 11.5px;
  color: #215426;
}

.modal-note-box strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-note-box ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
}

.modal-footer, .modal-actions {
  flex-wrap: wrap;
}

.modal-footer.modal-footer--split { justify-content: space-between; }
.modal-actions { display: flex; align-items: center; gap: .5rem; }
.modal-options { padding: .875rem; border: 1px solid var(--line); }
.modal-options summary { cursor: pointer; font-weight: 600; }

.modal-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: clamp(12px, 1.6vw, 16px) var(--dialog-space);
  border-top: 1px solid var(--line);
  background: var(--paper);
  z-index: 2;
}

/* ==========================================================================
   Editorial Diagnostic Transcript
   ========================================================================== */
.diagnostic-transcript-box {
  background: #f5f4f0;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.6;
  max-height: 220px;
  overflow-y: auto;
}

/* ==========================================================================
   Admin Subtabs Navigation & Dynamic Previews
   ========================================================================== */
.subtabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  flex-wrap: wrap;
}

.subtabs-bar.control-strip {
  flex-wrap: nowrap;
  overflow-x: auto;
}
.subtab-pill {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  font: 600 13px var(--body-font);
  color: #55514d;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
.subtab-pill:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}
.subtab-pill.is-active {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 1px 3px rgba(27, 22, 21, 0.05);
  font-weight: 700;
}
.subtab-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #475569;
  letter-spacing: .02em;
}
.subtab-badge.is-live {
  background: #dcfce7;
  color: #15803d;
}
.subtab-panel {
  display: block;
}
.subtab-panel[hidden],
.subtab-panel.is-hidden {
  display: none !important;
}
.control-strip {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  gap: 8px;
  white-space: nowrap;
  scroll-padding-inline: 8px;
}

.control-strip > * { flex: 0 0 auto; }

.locale-toolbar, .directory-controls.control-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(4px, 1vw, 12px);
}
.locale-toolbar { padding: clamp(8px, 1.5vw, 18px); margin-bottom: 20px; }
.locale-toolbar > *, .directory-controls.control-strip > * { min-width: 0; }
.locale-toolbar label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
}
.locale-toolbar :is(.search-field, .filter-select), .directory-controls.control-strip > * {
  width: 100%;
  max-width: none;
}
.directory-toolbar:has(.directory-controls) { flex-wrap: wrap; }
.directory-controls.control-strip { flex: 1 1 24rem; max-width: 34rem; }
@media (max-width: 800px) {
  .directory-controls.control-strip { flex: none; }
}
@media (max-width: 480px) {
  .subtabs-bar.control-strip { gap: 2px; padding: 4px; }
  .subtabs-bar .subtab-pill { padding-inline: 6px; font-size: 12px; }
  .locale-toolbar .filter-select, .directory-controls .filter-select { padding-inline: 3px; }
}
#brands-table th { padding: 0 10px; font-size: 11px; }
#brands-table td { padding: 7px 10px; vertical-align: middle; }
#brands-table .table-brand { display: flex; align-items: center; gap: 8px; min-width: 140px; }
#brands-table .table-brand-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.2; }
#brands-table .table-brand-info strong { font-size: 13px; font-weight: 700; white-space: nowrap; line-height: 1.2; }
#brands-table .table-brand-info small { font-size: 11px; color: #74706a; line-height: 1.2; }
#brands-table .pillar-tag { font-size: 10px; padding: 2px 7px; text-transform: uppercase; letter-spacing: 0.04em; }
#brands-table .domain-link { font-size: 12px; white-space: nowrap; }
#brands-table .row-actions, .report-table .row-actions, .report-table .report-actions { display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; min-width: 0; gap: 3px; }
#brands-table .row-actions .button--small { padding: 0 5px; font-size: 11px; height: 26px; line-height: 24px; border-radius: 2px; }

.report-upload-inline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  flex-wrap: nowrap;
}
.report-upload-inline .field {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.report-upload-inline .field label {
  font-size: 11.5px;
  font-weight: 700;
  height: 18px;
  line-height: 18px;
  margin-bottom: 6px;
  white-space: nowrap;
  color: #383531;
}
.report-upload-inline .field-label-spacer {
  display: block;
  user-select: none;
}
.report-upload-inline .field--period {
  flex: 0 0 100px;
}
.report-upload-inline .field--title {
  flex: 1 1 220px;
  min-width: 130px;
}
.report-upload-inline .field--category {
  flex: 0 0 160px;
}
.report-upload-inline .field--file {
  flex: 1 1 200px;
  min-width: 150px;
}
.report-upload-inline .field--public {
  flex: 0 0 auto;
}
.report-upload-inline .field--public .checkbox-label {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.report-upload-inline .field--submit {
  flex: 0 0 auto;
}
.report-upload-inline .field--submit .button,
.report-upload-inline .field--submit .button--primary {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap;
  border-radius: 2px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.report-upload-inline input[type="text"],
.report-upload-inline select {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 10px;
  font-size: 12.5px;
  border: 1px solid #c9c6c0;
  border-radius: 2px;
  background: #ffffff;
  color: var(--ink);
  box-sizing: border-box;
}
.report-upload-inline .field--file input[type="file"],
.field input[type="file"] {
  width: 100%;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 3px 6px;
  border: 1px solid #c9c6c0;
  border-radius: 2px;
  background: #ffffff;
  color: var(--text);
  font: 500 11.5px var(--font-stack);
  box-sizing: border-box;
  display: flex;
  align-items: center;
}
.report-upload-inline .field--file input[type="file"]::-webkit-file-upload-button,
.field input[type="file"]::-webkit-file-upload-button,
.report-upload-inline .field--file input[type="file"]::file-selector-button,
.field input[type="file"]::file-selector-button {
  height: 28px;
  line-height: 26px;
  padding: 0 10px;
  margin-right: 8px;
  border: 1px solid #c9c6c0;
  border-radius: 2px;
  background: #f4f3ef;
  color: #33302c;
  font: 600 11px var(--font-stack);
  cursor: pointer;
  transition: background 0.15s ease;
}
.report-upload-inline .field--file input[type="file"]::-webkit-file-upload-button:hover,
.field input[type="file"]::-webkit-file-upload-button:hover,
.report-upload-inline .field--file input[type="file"]::file-selector-button:hover,
.field input[type="file"]::file-selector-button:hover {
  background: #e8e6e0;
}
@media (max-width: 1200px) {
  .report-upload-inline {
    flex-wrap: wrap;
    gap: 12px;
  }
}

.banner-preview-card {
  padding: clamp(14px, 2vw, 24px);
  margin-bottom: 20px;
}

.banner-preview-header, .banner-preview-element {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.banner-preview-header h2 { margin: 0; font: 700 18px var(--headline-font); }

.banner-preview-element {
  margin-block: 16px;
  padding: 12px 16px;
  background: #0b0b0b;
  color: #f3f3f0;
  font-size: 13px;
  line-height: 1.45;
}

.banner-preview-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.banner-preview-copy > * { max-width: 100%; }
.banner-preview-tag {
  padding: 2px 7px;
  background: #565656;
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.banner-preview-cta { text-decoration: underline; text-underline-offset: 3px; }
.banner-preview-target { margin: 0; color: var(--soft); font-size: 12px; overflow-wrap: anywhere; }
.banner-preview-target code { margin-inline-start: 6px; color: var(--ink); }

/* 4-KPI Live Preview Matrix */
.kpi-preview-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.kpi-preview-card {
  overflow-wrap: anywhere;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.kpi-preview-val {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
  font-family: var(--body-font);
}
.kpi-preview-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: #55514d;
  margin: 0 0 2px;
}
.kpi-preview-sub {
  font-size: 10.5px;
  color: var(--soft);
  margin: 0;
  line-height: 1.3;
}

.mcp-providers-grid {
  margin-top: 16px;
}

.mcp-provider-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
}

.mcp-provider-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.mcp-provider-card p {
  margin: 0;
  font-size: 13px;
  color: var(--soft);
  line-height: 1.45;
}

.mcp-inline-copy {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.mcp-inline-copy input,
.mcp-inline-copy textarea {
  flex: 1 1 auto;
  min-width: 0;
}

.mcp-code-pre {
  margin: 0;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-x: auto;
}

.mcp-steps-list {
  margin: 8px 0 0;
  padding-left: 20px;
}

.mcp-steps-list li + li {
  margin-top: 4px;
}

.modal-card--wide {
  max-width: 600px;
}

.integration-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.integration-card-head h3 {
  margin: 0;
  line-height: 1.3;
}

.integration-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.integration-pill--added {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}

.integration-pill--missing {
  background: var(--paper);
  border-color: var(--line);
  color: var(--soft);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.api-key-trigger {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  border-radius: 999px;
}

.status-badge--muted {
  opacity: 0.72;
}

.api-key-trigger:hover .status-badge {
  border-color: var(--ink);
  opacity: 1;
}

.brand-detail-actions {
  margin-bottom: 16px;
}

.brand-detail-field {
  margin-top: 14px;
}

.brand-detail-footer {
  margin-top: 16px;
}

.brand-detail-lifecycle {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.brand-detail-note {
  font-size: 12px;
}

.settings-section-gap {
  margin-top: 16px;
  margin-bottom: 20px;
}

.cell-code {
  font-size: 11.5px;
}

.scope-group {
  display: grid;
  gap: 8px;
}

.scope-radio,
.scope-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}

.modal-field .scope-radio input,
.modal-field .scope-item input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.scope-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d8d5cf transparent;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

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

.approval-decision-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.integration-card-note {
  font-size: 12px;
}

.modal-options {
  margin-bottom: 16px;
  border-radius: 2px;
}

.modal-options .modal-field:first-of-type {
  margin-top: 12px;
}

.modal-options .modal-field:last-of-type {
  margin-bottom: 12px;
}

@media (max-height: 540px) {
  .modal-backdrop {
    --dialog-space: 14px;
    padding: 8px 16px;
  }

  .modal-card {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .modal-header,
  .modal-footer {
    padding-block: 10px;
  }
}

@media (max-width: 800px) and (max-height: 520px) {
  .sidebar {
    position: relative;
  }
}

@media (max-width: 560px) {
  .modal-backdrop {
    --dialog-space: 16px;
    padding: 0;
  }

  .modal-card,
  .modal-card--wide {
    max-width: none;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .modal-footer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
