@import url("wordpress_plugins.0d245d65e8c6.css");

:root {
  --portal-primary: #92b74d;
  --portal-primary-dark: #75923e;
  --portal-link: #c5e293;
  --portal-link-hover: #7ee8ff;
  --portal-text: #f8fbff;
  --portal-muted: rgba(223, 248, 255, 0.78);
  --portal-panel: rgba(4, 13, 16, 0.54);
  --portal-border: rgba(197, 226, 147, 0.3);
  --portal-radius: 8px;
}

.project-workspace-shell {
  width: min(1320px, 100%);
  display: grid;
  gap: 18px;
}

.project-topbar {
  position: relative;
  z-index: 5000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(3, 13, 18, 0.74);
  border: 1px solid rgba(223, 248, 255, 0.18);
  border-radius: var(--portal-radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 48px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
}

.portal-topbar {
  width: min(1320px, 100%);
}

.project-topbar__brand {
  display: inline-flex;
  align-items: center;
}

.project-topbar__logo {
  width: min(190px, 30vw);
  max-height: 54px;
  object-fit: contain;
}

.project-breadcrumb {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: rgba(223, 248, 255, 0.54);
  font-size: 0.92rem;
  line-height: 1.35;
}

.project-breadcrumb__item {
  position: relative;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.project-breadcrumb a,
.project-breadcrumb__label-button {
  color: var(--portal-text);
  font-weight: 760;
  text-decoration: none;
}

.project-breadcrumb a:hover,
.project-breadcrumb a:focus-visible,
.project-breadcrumb a[aria-current="page"],
.project-breadcrumb__label-button:hover,
.project-breadcrumb__label-button:focus-visible,
.project-breadcrumb__label-button[aria-expanded="true"] {
  color: var(--portal-link);
}

.project-breadcrumb__label-button {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  cursor: pointer;
}

.project-breadcrumb__menu-button {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--portal-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 248, 255, 0.18);
  border-radius: 999px;
  font: inherit;
  font-weight: 850;
  line-height: 1;
}

.project-breadcrumb__menu-button:hover,
.project-breadcrumb__menu-button:focus-visible,
.project-breadcrumb__menu-button[aria-expanded="true"] {
  color: #06120c;
  background: #c5e293;
  border-color: rgba(197, 226, 147, 0.82);
}

.project-breadcrumb__menu {
  position: absolute;
  z-index: 6000;
  top: calc(100% + 10px);
  left: 0;
  width: min(420px, calc(100vw - 36px));
}

.project-breadcrumb__menu[hidden] {
  display: none;
}

.project-breadcrumb__menu .portal-nav {
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(3, 13, 18, 0.92);
  border: 1px solid rgba(223, 248, 255, 0.2);
  border-radius: var(--portal-radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 42px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  max-height: min(72vh, 720px);
  overflow: auto;
}

.project-session-actions {
  display: grid;
  gap: 8px;
  grid-auto-flow: column;
  align-items: center;
}

.project-workspace-layout {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.project-left-column {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  display: grid;
  gap: 14px;
  align-items: start;
}

.project-main-column {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.project-nav-panel,
.project-level-menu {
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(3, 13, 18, 0.7);
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: var(--portal-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.portal-nav a.project-nav-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.project-nav-link__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-nav-link__meta {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.portal-nav a:hover .project-nav-link__meta,
.portal-nav a:focus-visible .project-nav-link__meta,
.portal-nav a[aria-current="page"] .project-nav-link__meta {
  color: #06120c;
}

.project-nav-status {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
}

.project-nav-status--complete {
  color: #06120c;
  background: #c5e293;
  border: 1px solid rgba(197, 226, 147, 0.85);
}

.project-nav-status--open {
  border: 1px solid rgba(223, 248, 255, 0.32);
}

.portal-nav a[aria-current="page"] .project-nav-status--complete,
.portal-nav a:hover .project-nav-status--complete,
.portal-nav a:focus-visible .project-nav-status--complete {
  background: #06120c;
  border-color: rgba(6, 18, 12, 0.48);
  color: #c5e293;
}

.project-left-column .project-source-panel {
  position: static;
}

.project-answer-ignored {
  border-style: dashed;
  border-color: rgba(255, 218, 117, 0.56);
}

.project-ignore-field {
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(223, 248, 255, 0.14);
  border-radius: var(--portal-radius);
}

.project-ignore-field .domain-panel-note {
  grid-column: 1 / -1;
  margin-top: 0;
}

.project-answer-field.is-ignored {
  opacity: 0.56;
}

.project-toolbar {
  align-items: flex-start;
}

.brandkit-token-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.brandkit-token-panel {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(223, 248, 255, 0.14);
  border-radius: var(--portal-radius);
}

.brandkit-token-panel h3 {
  margin: 0;
  color: var(--portal-link);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.brandkit-token-panel article {
  display: grid;
  gap: 3px;
  padding: 9px 0;
  border-top: 1px solid rgba(223, 248, 255, 0.12);
}

.brandkit-token-panel strong,
.brandkit-token-panel span,
.brandkit-token-panel small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brandkit-token-panel small {
  color: var(--portal-muted);
}

.brandkit-form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.brandkit-form-layout--upload {
  grid-template-columns: 1fr;
}

.brandkit-form-section {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(223, 248, 255, 0.13);
  border-radius: var(--portal-radius);
}

.brandkit-form-section h3 {
  margin: 0;
  color: var(--portal-link);
  font-size: 0.86rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.brandkit-asset-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.brandkit-asset-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(223, 248, 255, 0.14);
  border-radius: var(--portal-radius);
}

.brandkit-asset-preview {
  min-height: 154px;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    rgba(223, 248, 255, 0.08);
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size: 16px 16px;
}

.brandkit-asset-preview--light {
  background: #f8fbff;
}

.brandkit-asset-preview--dark {
  background: #06120c;
}

.brandkit-asset-preview img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
}

.brandkit-asset-preview span {
  color: var(--portal-muted);
  font-weight: 800;
  text-align: center;
}

.brandkit-preview-error {
  color: #ffd86b;
}

.brandkit-asset-card__body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.brandkit-asset-card__body strong,
.brandkit-asset-card__body span,
.brandkit-asset-card__body p,
.brandkit-asset-facts dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brandkit-asset-card__body strong {
  display: block;
  margin-bottom: 3px;
  color: var(--portal-text);
}

.brandkit-asset-card__body span,
.brandkit-asset-card__body p {
  margin: 0;
  color: var(--portal-muted);
}

.brandkit-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.brandkit-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: #06120c;
  background: rgba(197, 226, 147, 0.88);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 760;
}

.brandkit-asset-facts {
  display: grid;
  gap: 7px;
  margin: 0;
}

.brandkit-asset-facts div {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.brandkit-asset-facts dt {
  color: rgba(223, 248, 255, 0.58);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.brandkit-asset-facts dd {
  margin: 0;
  color: var(--portal-text);
}

.brandkit-asset-card > .project-card__actions {
  padding: 0 14px 14px;
}

.brandkit-upload-disclosure {
  display: grid;
  gap: 14px;
}

.brandkit-upload-disclosure summary {
  width: fit-content;
  cursor: pointer;
  list-style: none;
}

.brandkit-upload-disclosure summary::-webkit-details-marker {
  display: none;
}

.brandkit-upload-disclosure[open] summary {
  margin-bottom: 4px;
}

button[aria-busy="true"],
button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.project-staff-filter {
  max-width: 780px;
}

.project-filter-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.project-create-shell .page-hero,
.project-create-panel {
  max-width: 980px;
}

.project-create-panel {
  padding: 26px;
}

.project-create-form {
  display: grid;
  gap: 18px;
}

.project-choice-field {
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.project-choice-field legend {
  margin: 0 0 10px;
  padding: 0;
  color: var(--portal-link);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

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

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

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

.project-choice-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 118px;
  padding: 16px;
  color: var(--portal-text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(3, 13, 18, 0.62);
  border: 1px solid rgba(223, 248, 255, 0.18);
  border-radius: var(--portal-radius);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.project-choice-card input[type="radio"],
.project-choice-card input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.project-choice-card__marker {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid rgba(223, 248, 255, 0.36);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 5px rgba(3, 13, 18, 0.9);
}

.project-choice-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.project-choice-card__title {
  color: var(--portal-text);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.project-choice-card__text {
  color: var(--portal-muted);
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.project-choice-card:hover,
.project-choice-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(126, 232, 255, 0.46);
  background:
    linear-gradient(145deg, rgba(126, 232, 255, 0.1), rgba(197, 226, 147, 0.07)),
    rgba(3, 13, 18, 0.74);
}

.project-choice-card:has(input[type="radio"]:checked),
.project-choice-card:has(input[type="checkbox"]:checked) {
  border-color: rgba(126, 232, 255, 0.78);
  background:
    linear-gradient(145deg, rgba(126, 232, 255, 0.16), rgba(197, 226, 147, 0.1)),
    rgba(3, 13, 18, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 12px 34px rgba(0, 0, 0, 0.28);
}

.project-choice-card:has(input[type="radio"]:checked) .project-choice-card__marker,
.project-choice-card:has(input[type="checkbox"]:checked) .project-choice-card__marker {
  border-color: #8dbdff;
  background: #8dbdff;
  box-shadow: inset 0 0 0 5px rgba(3, 13, 18, 0.88);
}

.project-choice-card:has(input[type="radio"]:checked) .project-choice-card__title,
.project-choice-card:has(input[type="checkbox"]:checked) .project-choice-card__title {
  color: #dff8ff;
}

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

.project-table-panel {
  padding: 0;
  overflow: hidden;
}

.project-table-wrap {
  overflow-x: auto;
}

.project-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  color: var(--portal-text);
}

.project-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.project-table th,
.project-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(223, 248, 255, 0.12);
  text-align: left;
  vertical-align: top;
}

.project-table th {
  color: var(--portal-muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-table tbody tr:hover {
  background: rgba(126, 232, 255, 0.04);
}

.project-table__title {
  max-width: 340px;
}

.project-table__title strong,
.project-table__title span {
  display: block;
}

.project-table__title span,
.project-table__muted {
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.project-table__pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid rgba(223, 248, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 850;
}

.project-table__pill--ok {
  color: #06120c;
  background: #c5e293;
}

.project-table__pill--warning {
  color: #322203;
  background: #ffcf6a;
}

.project-table__pill--blocked {
  color: #fff5f5;
  background: #8d2b35;
}

.project-table__pill--internal {
  color: #ffd2ca;
  background: rgba(141, 43, 53, 0.34);
  border-color: rgba(255, 210, 202, 0.3);
}

.project-table__pill--visible {
  color: #06120c;
  background: #c5e293;
}

.project-table__progress {
  width: 100%;
  max-width: 150px;
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.project-table__progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c5e293, #7ee8ff);
}

.project-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 220px;
}

.project-workspace__context,
.project-workspace__diff {
  max-height: 34rem;
  margin-top: 16px;
  padding: clamp(16px, 2vw, 24px);
  overflow: auto;
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: var(--portal-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(3, 13, 18, 0.24)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(126, 232, 255, 0.03) 28px);
  line-height: 1.65;
}

.project-workspace__diff {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.82rem;
  white-space: pre;
}

.project-workspace__link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.project-workspace__link,
.project-workspace__references article {
  padding: 16px;
  border: 1px solid rgba(223, 248, 255, 0.14);
  border-radius: var(--portal-radius);
  background: rgba(255, 255, 255, 0.04);
}

.project-workspace__link h3 {
  margin: 10px 0 4px;
  font-size: 1rem;
}

.project-workspace__form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(223, 248, 255, 0.14);
}

.project-workspace__form summary,
.project-workspace__references summary {
  cursor: pointer;
  color: var(--portal-link);
  font-weight: 760;
}

.project-workspace__form form,
.project-workspace__references form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.project-workspace__references {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.project-table__detail-row td {
  padding-top: 0;
  background: rgba(3, 13, 18, 0.36);
}

.project-table__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.project-table__step {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(223, 248, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.project-table__step strong {
  font-size: 0.9rem;
}

.project-table__step span {
  color: var(--portal-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.project-table__step a {
  color: var(--portal-link);
  font-size: 0.85rem;
  font-weight: 850;
}

.project-card {
  display: grid;
  gap: 16px;
}

.project-card__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.5fr);
  gap: 18px;
}

.project-card h2,
.project-form-panel h2,
.project-context-panel h2,
.project-missing-panel h2 {
  margin: 0;
}

.project-card p {
  margin: 8px 0 0;
  color: var(--portal-muted);
  line-height: 1.5;
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.project-progress {
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: 999px;
}

.project-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c5e293, #7ee8ff);
}

.project-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.project-progress-card {
  min-width: 180px;
  display: grid;
  gap: 4px;
  padding: 14px;
  color: var(--portal-text);
  background: rgba(3, 13, 18, 0.66);
  border: 1px solid rgba(126, 232, 255, 0.3);
  border-radius: var(--portal-radius);
}

.project-progress-card strong {
  color: var(--portal-link);
  font-size: 1.8rem;
  line-height: 1;
}

.project-progress-card span {
  color: var(--portal-muted);
  font-size: 0.9rem;
}

.project-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-section-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  color: var(--portal-text);
  text-decoration: none;
  background: rgba(3, 13, 18, 0.66);
  border: 1px solid rgba(223, 248, 255, 0.18);
  border-radius: var(--portal-radius);
  font-weight: 750;
}

.project-section-tabs a:hover,
.project-section-tabs a:focus-visible,
.project-section-tabs a[aria-current="page"] {
  color: #06120c;
  background: linear-gradient(135deg, #c5e293, #92b74d);
  border-color: rgba(197, 226, 147, 0.8);
}

.project-chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 16px;
  align-items: start;
}

.project-chat {
  max-width: none;
}

.project-question-panel {
  margin-top: 0;
}

.project-answer-field ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-answer-field li {
  margin: 0;
}

.project-answer-field label:has(input[type="radio"]),
.project-answer-field label:has(input[type="checkbox"]) {
  min-height: 40px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  color: var(--portal-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 248, 255, 0.2);
  border-radius: var(--portal-radius);
  font-weight: 700;
}

.project-answer-field label.is-selected,
.project-answer-field label:has(input:checked) {
  color: #06120c;
  background: linear-gradient(135deg, #c5e293, #92b74d);
  border-color: rgba(197, 226, 147, 0.82);
}

.project-scope-panel {
  width: min(920px, 100%);
}

.project-setup-focus {
  justify-items: center;
}

.project-main-column--focus {
  width: min(960px, 100%);
}

.project-scope-form {
  gap: 18px;
}

.project-scope-fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.project-scope-fieldset legend {
  margin: 0 0 4px;
  color: var(--portal-text);
  font-size: 1.05rem;
  font-weight: 900;
}

.project-scope-list {
  display: grid;
  gap: 10px;
}

.project-scope-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  color: var(--portal-text);
  background: rgba(3, 13, 18, 0.62);
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: var(--portal-radius);
  cursor: pointer;
}

.project-scope-option:has(input:checked) {
  color: #06120c;
  background: linear-gradient(135deg, #c5e293, #92b74d);
  border-color: rgba(197, 226, 147, 0.86);
}

.project-scope-option input {
  margin-top: 4px;
}

.project-scope-option span {
  display: grid;
  gap: 4px;
}

.project-scope-option small {
  color: inherit;
  opacity: 0.78;
  line-height: 1.45;
}

.project-scope-all {
  padding-top: 2px;
}

.project-scope-brandkit {
  display: grid;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid rgba(223, 248, 255, 0.14);
}

.project-scope-brandkit h2 {
  margin: 0;
}

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

.project-scope-summary article {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(3, 13, 18, 0.62);
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: var(--portal-radius);
}

.project-scope-summary h3,
.project-scope-summary p {
  margin: 0;
}

.project-scope-summary h3 {
  color: var(--portal-link);
  font-size: 0.9rem;
}

.project-scope-summary p {
  color: var(--portal-muted);
  line-height: 1.45;
}

.project-setup-hero {
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.32fr);
}

.project-setup-progress {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  color: var(--portal-text);
  background: rgba(3, 13, 18, 0.58);
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: var(--portal-radius);
}

.project-setup-progress strong {
  font-size: 1.05rem;
}

.project-setup-progress span {
  color: var(--portal-muted);
  line-height: 1.4;
}

.project-setup-progress__bar {
  height: 8px;
  overflow: hidden;
  background: rgba(223, 248, 255, 0.12);
  border-radius: 999px;
}

.project-setup-progress__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7ee8ff, #c5e293);
  border-radius: inherit;
  transition: width 180ms ease;
}

.project-setup-assistant {
  width: min(960px, 100%);
}

.project-setup-assistant.is-enhanced .project-setup-step[hidden],
.project-domain-followup[hidden],
.project-brandkit-followup[hidden] {
  display: none;
}

.project-assistant-card {
  display: grid;
  gap: 18px;
}

.project-assistant-card.is-active {
  animation: projectStepIn 160ms ease;
}

.project-assistant-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.project-assistant-avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #06120c;
  background: linear-gradient(135deg, #7ee8ff, #c5e293);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.project-assistant-message h2,
.project-open-points h3,
.project-internal-tools h3 {
  margin: 0;
  color: var(--portal-text);
  font-size: 1.18rem;
  line-height: 1.25;
}

.project-assistant-message p,
.project-briefing-summary p {
  margin: 0.35rem 0 0;
  color: var(--portal-muted);
  line-height: 1.55;
}

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

.project-choice-grid--frames,
.project-choice-grid--domain,
.project-choice-grid--brandkit {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.project-domain-followup,
.project-brandkit-followup {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(3, 13, 18, 0.48);
  border: 1px solid rgba(223, 248, 255, 0.14);
  border-radius: var(--portal-radius);
}

.project-inline-action,
.project-suggestion-row,
.project-setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.project-suggestion-row button {
  min-height: 34px;
  padding: 0.45rem 0.62rem;
  color: var(--portal-text);
  background: rgba(126, 232, 255, 0.1);
  border: 1px solid rgba(126, 232, 255, 0.24);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
}

.project-suggestion-row button:hover,
.project-suggestion-row button:focus {
  background: rgba(126, 232, 255, 0.18);
  outline: none;
}

.project-briefing-summary {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: rgba(3, 13, 18, 0.52);
  border: 1px solid rgba(223, 248, 255, 0.14);
  border-radius: var(--portal-radius);
}

.project-open-points ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 1.1rem;
  color: var(--portal-muted);
}

.project-advanced-settings {
  width: min(960px, 100%);
}

.project-advanced-settings summary {
  cursor: pointer;
  color: var(--portal-text);
  font-weight: 900;
}

.project-internal-tools {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(223, 248, 255, 0.14);
}

.project-setup-actions {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  justify-content: flex-end;
  width: min(960px, 100%);
  padding: 10px;
  background: rgba(3, 13, 18, 0.88);
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: var(--portal-radius);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.project-domain-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 22px;
  color: var(--portal-text);
  background: #071116;
  border: 1px solid rgba(223, 248, 255, 0.24);
  border-radius: var(--portal-radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.project-domain-dialog::backdrop {
  background: rgba(0, 0, 0, 0.64);
}

.project-domain-dialog h2 {
  margin: 0 2rem 0.7rem 0;
}

.project-domain-dialog p {
  margin: 0 0 1rem;
  color: var(--portal-muted);
  line-height: 1.55;
}

.project-domain-dialog__close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.project-domain-dialog__close button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--portal-text);
  background: rgba(223, 248, 255, 0.08);
  border: 1px solid rgba(223, 248, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
}

@keyframes projectStepIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-source-panel {
  position: sticky;
  top: 18px;
}

.project-source-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--portal-muted);
  line-height: 1.45;
}

.project-context-panel,
.project-missing-panel {
  display: grid;
  gap: 16px;
}

.project-context-export__header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.project-context-export__header .domain-panel-note {
  margin: 8px 0 0;
}

.project-context-textarea {
  width: 100%;
  min-height: 420px;
  resize: vertical;
  padding: 14px;
  color: var(--portal-text);
  background: rgba(3, 13, 18, 0.72);
  border: 1px solid rgba(223, 248, 255, 0.18);
  border-radius: var(--portal-radius);
  font:
    0.92rem/1.55 ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
}

.project-context-textarea:focus-visible {
  border-color: rgba(126, 232, 255, 0.72);
  outline: 3px solid rgba(126, 232, 255, 0.28);
}

.project-context-textarea--template {
  min-height: 260px;
}

.project-copy-status {
  min-height: 1.35em;
  margin: 0;
  color: var(--portal-link);
  font-size: 0.9rem;
  font-weight: 800;
}

.project-import-preview-list {
  display: grid;
  gap: 14px;
}

.project-import-diff {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(3, 13, 18, 0.62);
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: var(--portal-radius);
}

.project-import-diff--new {
  border-color: rgba(197, 226, 147, 0.38);
}

.project-import-diff--update {
  border-color: rgba(255, 218, 117, 0.42);
}

.project-import-diff--unchanged {
  opacity: 0.78;
}

.project-import-diff__header,
.project-import-diff__grid {
  display: grid;
  gap: 10px;
}

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

.project-import-diff__apply,
.project-import-diff__ignored {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--portal-text);
  font-weight: 800;
}

.project-import-diff__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.project-import-diff__badge--new {
  color: #06120c;
  background: #c5e293;
}

.project-import-diff__badge--update {
  color: #1b1300;
  background: #ffda75;
}

.project-import-diff__badge--unchanged {
  color: var(--portal-muted);
  background: rgba(255, 255, 255, 0.1);
}

.project-import-diff h3,
.project-import-diff p {
  margin: 0;
}

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

.project-import-diff__old,
.project-import-diff__new {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--portal-radius);
}

.project-import-diff__old {
  color: #ffd9d9;
  background: rgba(138, 28, 28, 0.26);
  border: 1px solid rgba(255, 137, 137, 0.34);
}

.project-import-diff__new {
  color: #ecffd1;
  background: rgba(78, 122, 30, 0.26);
  border: 1px solid rgba(197, 226, 147, 0.34);
}

.project-import-diff__old p,
.project-import-diff__new p {
  color: inherit;
  white-space: pre-wrap;
}

.project-import-diff__edit {
  display: grid;
  gap: 8px;
  color: var(--portal-text);
  font-weight: 800;
}

.project-import-diff__edit textarea {
  width: 100%;
  resize: vertical;
  padding: 12px;
  color: var(--portal-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 248, 255, 0.18);
  border-radius: var(--portal-radius);
  font: inherit;
  font-weight: 500;
}

.project-variable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.project-variable {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: rgba(3, 13, 18, 0.62);
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: var(--portal-radius);
}

.project-variable dt {
  color: var(--portal-link);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-variable dd {
  margin: 0;
  color: var(--portal-text);
  line-height: 1.45;
}

.project-context-list {
  display: grid;
  gap: 10px;
}

.project-context-list article {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid rgba(223, 248, 255, 0.14);
}

.project-context-list h3 {
  margin: 0;
  font-size: 1rem;
}

.project-context-list p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

.project-context-list small {
  color: rgba(223, 248, 255, 0.58);
}

@media (max-width: 900px) {
  .project-card__main,
  .project-chat-layout,
  .project-workspace-layout,
  .project-filter-form {
    grid-template-columns: 1fr;
  }

  .project-context-export__header {
    align-items: stretch;
    flex-direction: column;
  }

  .project-import-diff__grid {
    grid-template-columns: 1fr;
  }

  .project-setup-hero,
  .project-choice-grid--assistant,
  .project-choice-grid--frames,
  .project-choice-grid--domain,
  .project-choice-grid--brandkit {
    grid-template-columns: 1fr;
  }

  .project-scope-summary {
    grid-template-columns: 1fr;
  }

  .project-topbar {
    grid-template-columns: 1fr;
  }

  .project-topbar__logo {
    width: min(210px, 70vw);
  }

  .project-session-actions {
    grid-auto-flow: row;
  }

  .project-setup-actions {
    position: static;
    justify-content: flex-start;
  }

  .project-setup-actions .primary-action,
  .project-setup-actions .secondary-action {
    width: 100%;
    justify-content: center;
  }

  .project-left-column {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .project-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .project-source-panel {
    position: static;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #05090f;
  color: var(--portal-text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(1, 7, 12, 0.18), rgba(1, 7, 12, 0.72)),
    linear-gradient(90deg, rgba(3, 10, 22, 0.1), rgba(2, 8, 18, 0.58)),
    url("../img/froehlich-galactic-security.761aaf1684af.webp") center / cover fixed;
}

a {
  color: var(--portal-link);
  text-decoration-color: rgba(197, 226, 147, 0.45);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--portal-link-hover);
}

:focus-visible {
  outline: 3px solid var(--portal-link-hover);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #06120c;
  background: #c5e293;
  border-radius: var(--portal-radius);
  font-weight: 800;
}

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

.auth-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.auth-card {
  width: min(440px, 100%);
  padding: clamp(28px, 5vw, 42px);
  color: var(--portal-text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 34%, rgba(5, 18, 18, 0.3)),
    var(--portal-panel);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 48px rgba(197, 226, 147, 0.08),
    0 28px 84px rgba(0, 0, 0, 0.62),
    0 0 54px rgba(146, 183, 77, 0.2);
  backdrop-filter: blur(26px) saturate(1.28);
  -webkit-backdrop-filter: blur(26px) saturate(1.28);
}

.brand-logo {
  display: block;
  width: min(380px, 82vw);
  max-height: 86px;
  margin: 0 auto 30px;
  object-fit: contain;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--portal-link);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--portal-text);
  font-size: clamp(1.7rem, 6vw, 2.35rem);
  line-height: 1.18;
}

.lead {
  margin: 16px 0 0;
  color: var(--portal-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.action-row {
  margin-top: 30px;
}

.primary-action {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  color: #06120c;
  background: linear-gradient(135deg, #c5e293, #92b74d 58%, #3a491f);
  border: 0;
  border-radius: var(--portal-radius);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
}

.primary-action:hover,
.primary-action:focus-visible {
  color: #06120c;
  filter: brightness(1.08);
}

.primary-action.is-loading,
.secondary-action.is-loading {
  gap: 9px;
  cursor: wait;
}

.secondary-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--portal-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 248, 255, 0.2);
  border-radius: var(--portal-radius);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  color: var(--portal-text);
  border-color: rgba(197, 226, 147, 0.55);
}

.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.advisor-page .auth-shell {
  gap: 24px;
  justify-items: center;
  place-items: start center;
  padding: 28px 18px 36px;
}

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

.advisor-shell {
  width: min(1320px, 100%);
  display: grid;
  grid-template-columns: minmax(220px, 264px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.advisor-shell > :not(.advisor-header) {
  grid-column: 2;
}

.advisor-shell:not(:has(.advisor-header)) {
  grid-template-columns: minmax(0, 1fr);
}

.advisor-shell:not(:has(.advisor-header)) > :not(.advisor-header) {
  grid-column: 1;
}

.advisor-header {
  position: sticky;
  top: 24px;
  grid-column: 1;
  grid-row: 1 / span 30;
  max-height: calc(100vh - 48px);
  overflow: auto;
  display: grid;
  gap: 18px;
  align-items: start;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(3, 13, 18, 0.72);
  border: 1px solid rgba(223, 248, 255, 0.18);
  border-radius: var(--portal-radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 58px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
}

.advisor-logo {
  justify-self: center;
  width: min(220px, 100%);
  max-height: 72px;
  object-fit: contain;
}

.advisor-brand-link {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.portal-nav-title {
  color: var(--portal-link);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-area-nav__description,
.portal-nav-section__description {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.portal-nav-search input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--portal-text);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(223, 248, 255, 0.2);
  border-radius: var(--portal-radius);
  font: inherit;
}

.portal-nav-search input::placeholder {
  color: rgba(223, 248, 255, 0.62);
}

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

.portal-nav-list--grouped {
  gap: 12px;
}

.portal-nav-group {
  display: grid;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(223, 248, 255, 0.1);
  border-radius: var(--portal-radius);
}

.portal-nav-sublist {
  display: grid;
  gap: 4px;
}

.portal-nav-section {
  display: grid;
  gap: 5px;
  padding: 6px 0 0 8px;
  border-left: 1px solid rgba(223, 248, 255, 0.16);
}

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

.portal-nav-section__heading {
  color: rgba(223, 248, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-nav a,
.portal-nav .portal-nav-action__button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 9px 12px;
  color: var(--portal-text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(223, 248, 255, 0.17);
  border-radius: var(--portal-radius);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.portal-nav-action {
  display: grid;
  margin: 0;
}

.portal-nav .portal-nav-action__button {
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

.portal-nav a.portal-nav-group__link {
  display: grid;
  gap: 3px;
  color: #06120c;
  background: rgba(197, 226, 147, 0.86);
  border-color: rgba(197, 226, 147, 0.86);
}

.portal-nav a.portal-nav-group__link small {
  color: rgba(6, 18, 12, 0.78);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
}

.portal-nav-sublist a {
  min-height: 34px;
  padding: 7px 10px 7px 14px;
  color: var(--portal-muted);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.84rem;
  font-weight: 700;
}

.portal-area-nav__overview {
  min-height: 36px;
}

.portal-area-nav .portal-nav-sublist a {
  min-height: 32px;
  padding-left: 16px;
  font-size: 0.82rem;
}

.portal-nav a.portal-nav-link--danger,
.portal-nav .portal-nav-action__button.portal-nav-link--danger {
  color: #ffd6d2;
  border-color: rgba(255, 132, 118, 0.28);
}

.portal-nav a:hover,
.portal-nav a:focus-visible,
.portal-nav a[aria-current="page"],
.portal-nav .portal-nav-action__button:hover,
.portal-nav .portal-nav-action__button:focus-visible {
  color: #06120c;
  background: linear-gradient(135deg, #c5e293, #92b74d);
  border-color: rgba(197, 226, 147, 0.78);
}

.portal-nav a[hidden],
.portal-nav .portal-nav-action__button[hidden] {
  display: none;
}

.portal-nav-empty {
  margin: 0;
  padding: 10px 12px;
  color: var(--portal-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(223, 248, 255, 0.14);
  border-radius: var(--portal-radius);
  font-size: 0.9rem;
  line-height: 1.4;
}

.portal-context-facts {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 12px;
  color: var(--portal-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(223, 248, 255, 0.14);
  border-radius: var(--portal-radius);
}

.anchor-target {
  display: block;
  height: 0;
  scroll-margin-top: 120px;
}

.portal-context-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.portal-context-facts dt,
.portal-context-facts dd {
  margin: 0;
  font-size: 0.84rem;
}

.portal-context-facts dt {
  color: var(--portal-muted);
  font-weight: 700;
}

.portal-context-facts dd {
  color: var(--portal-link);
  font-weight: 850;
}

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

.portal-cockpit-card {
  align-content: start;
  min-height: 220px;
}

.portal-cockpit-card strong {
  color: var(--portal-link);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.portal-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-muted-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 9px 12px;
  color: var(--portal-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(223, 248, 255, 0.14);
  border-radius: var(--portal-radius);
  font-size: 0.9rem;
  font-weight: 750;
}

.session-actions {
  display: grid;
  gap: 10px;
  align-items: stretch;
}

.session-state {
  color: var(--portal-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.advisor-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(320px, 1.18fr) minmax(260px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.advisor-intro {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 12px;
}

.advisor-intro h1 {
  max-width: 11ch;
}

.advisor-chat,
.advisor-summary {
  min-height: 520px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    var(--portal-panel);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 28px 76px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.advisor-chat {
  display: grid;
  grid-template-rows: minmax(230px, 1fr) auto;
  gap: 18px;
}

.chat-log {
  min-height: 230px;
  max-height: 360px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.chat-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: var(--portal-radius);
  line-height: 1.45;
}

.chat-message--assistant {
  align-self: flex-start;
  color: var(--portal-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 248, 255, 0.13);
}

.chat-message--user {
  align-self: flex-end;
  color: #06120c;
  background: linear-gradient(135deg, #c5e293, #92b74d);
  font-weight: 650;
}

.advisor-form {
  display: grid;
  gap: 12px;
}

.advisor-label {
  color: var(--portal-link);
  font-size: 0.86rem;
  font-weight: 700;
}

.advisor-input {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  padding: 12px;
  color: var(--portal-text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(223, 248, 255, 0.18);
  border-radius: var(--portal-radius);
  font: inherit;
  line-height: 1.45;
}

.advisor-input:focus-visible {
  outline: 2px solid rgba(197, 226, 147, 0.65);
  outline-offset: 2px;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-button {
  min-height: 40px;
  padding: 9px 12px;
  color: var(--portal-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 248, 255, 0.2);
  border-radius: var(--portal-radius);
  font: inherit;
  font-weight: 700;
}

.choice-button:hover,
.choice-button:focus-visible,
.choice-button.is-selected {
  color: #06120c;
  background: linear-gradient(135deg, #c5e293, #92b74d);
  border-color: rgba(197, 226, 147, 0.82);
}

.advisor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary-action--compact {
  width: auto;
}

.advisor-summary {
  display: flex;
  flex-direction: column;
}

.advisor-summary h2 {
  margin: 0;
  color: var(--portal-text);
  font-size: 1.32rem;
  line-height: 1.22;
}

.advisor-summary p {
  margin: 12px 0 0;
  color: var(--portal-muted);
  line-height: 1.5;
}

.advisor-result {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.advisor-result div {
  padding-top: 14px;
  border-top: 1px solid rgba(223, 248, 255, 0.16);
}

.advisor-result dt {
  color: var(--portal-link);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.advisor-result dd {
  margin: 6px 0 0;
  color: var(--portal-text);
  line-height: 1.45;
}

.advisor-summary .primary-action {
  margin-top: auto;
}

.advisor-handoff-note {
  margin-top: 14px;
  font-weight: 800;
}

.advisor-project-form {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(223, 248, 255, 0.16);
}

.advisor-project-form[hidden] {
  display: none;
}

.advisor-handoff-copy {
  display: grid;
  gap: 4px;
  color: var(--portal-text);
  line-height: 1.45;
}

.advisor-handoff-copy span {
  color: var(--portal-muted);
}

.advisor-focus-active .advisor-header,
.advisor-focus-complete .advisor-header {
  opacity: 0.36;
  transition: opacity 160ms ease;
}

.advisor-focus-active .advisor-shell > :not(.advisor-header):not(.advisor-grid),
.advisor-focus-complete .advisor-shell > :not(.advisor-header):not(.advisor-grid) {
  opacity: 0.18;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.portal-page {
  display: grid;
  gap: 24px;
}

.page-hero,
.portal-overview,
.empty-state {
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    var(--portal-panel);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.page-hero h1,
.section-heading h2,
.empty-state h2 {
  margin: 0;
}

.section-heading p,
.empty-state p {
  max-width: 740px;
  margin: 10px 0 0;
  color: var(--portal-muted);
  line-height: 1.55;
}

.portal-overview {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.portal-shortcuts {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-messages {
  display: grid;
  gap: 8px;
}

.portal-message {
  margin: 0;
  padding: 12px 14px;
  color: var(--portal-text);
  background: rgba(3, 13, 18, 0.68);
  border: 1px solid rgba(223, 248, 255, 0.2);
  border-radius: var(--portal-radius);
  line-height: 1.45;
}

.portal-message--success {
  color: #06120c;
  background: #c5e293;
  border-color: rgba(197, 226, 147, 0.86);
}

.portal-message--error {
  border-color: rgba(255, 148, 132, 0.72);
}

.portal-message--warning {
  border-color: rgba(255, 218, 117, 0.72);
}

.domain-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 780px;
  gap: 12px;
  align-items: start;
}

.domain-chat {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin: 0;
}

.domain-chat--menu {
  margin-top: -4px;
}

.domain-assistant-toolbar {
  display: flex;
  justify-content: flex-start;
}

.domain-message {
  display: grid;
  gap: 6px;
  max-width: 680px;
  padding: 14px 16px;
  color: var(--portal-text);
  background: rgba(3, 13, 18, 0.68);
  border: 1px solid rgba(223, 248, 255, 0.18);
  border-radius: 8px;
  line-height: 1.45;
}

.domain-message strong {
  color: var(--portal-link);
}

.domain-message span {
  color: var(--portal-muted);
}

.domain-message--assistant {
  border-color: rgba(126, 232, 255, 0.34);
}

.domain-message--user {
  justify-self: end;
  width: fit-content;
  max-width: min(560px, 86%);
  background:
    linear-gradient(145deg, rgba(197, 226, 147, 0.2), rgba(126, 232, 255, 0.1)),
    rgba(3, 13, 18, 0.76);
  border-color: rgba(197, 226, 147, 0.62);
}

.domain-message--user span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.domain-message--user strong {
  color: var(--portal-text);
}

.domain-message--meta {
  margin-left: min(72px, 8vw);
}

.domain-message--secure {
  border-color: rgba(197, 226, 147, 0.56);
}

.domain-chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.domain-chat-option {
  display: inline-flex;
  flex: 0 1 auto;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--portal-text);
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(126, 232, 255, 0.13), rgba(197, 226, 147, 0.08)),
    rgba(3, 13, 18, 0.7);
  border: 1px solid rgba(126, 232, 255, 0.28);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.domain-chat-option:hover,
.domain-chat-option:focus-visible {
  border-color: rgba(126, 232, 255, 0.72);
  transform: translateY(-1px);
}

.domain-chat-option strong {
  color: var(--portal-link);
  font-size: 0.92rem;
  line-height: 1.25;
}

.domain-chat-option span {
  display: none;
}

.domain-flow {
  display: grid;
  gap: 12px;
}

.domain-step.is-hidden,
.domain-assistant-toolbar[hidden],
[data-domain-selected][hidden] {
  display: none;
}

.domain-flow[hidden],
.domain-suggestion[hidden],
.domain-suggestion .secondary-action[hidden] {
  display: none;
}

.domain-chat-option.is-selected {
  border-color: rgba(197, 226, 147, 0.8);
  background:
    linear-gradient(145deg, rgba(197, 226, 147, 0.18), rgba(126, 232, 255, 0.1)),
    rgba(3, 13, 18, 0.78);
}

.domain-panel--wide {
  grid-column: 1 / -1;
}

.domain-panel {
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    var(--portal-panel);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.domain-step.domain-panel,
.domain-step.empty-state {
  max-width: 720px;
  margin-left: min(72px, 8vw);
  padding: 18px;
  background: rgba(3, 13, 18, 0.7);
  border-color: rgba(126, 232, 255, 0.26);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 34px rgba(0, 0, 0, 0.26);
}

.domain-panel h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.domain-panel-note {
  margin: 8px 0 0;
  color: var(--portal-muted);
  line-height: 1.45;
}

.domain-panel-note--expiry {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: var(--portal-text);
  background: rgba(197, 226, 147, 0.09);
  border: 1px solid rgba(197, 226, 147, 0.32);
  border-radius: 8px;
}

.domain-panel-note--expiry strong {
  color: var(--portal-link);
}

.domain-panel-note--secure {
  font-size: 0.92rem;
}

.domain-form,
.domain-order-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.domain-check-result {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px;
  color: var(--portal-text);
  background: rgba(3, 13, 18, 0.62);
  border: 1px solid rgba(126, 232, 255, 0.32);
  border-radius: var(--portal-radius);
}

.domain-check-result span {
  color: var(--portal-muted);
  line-height: 1.45;
}

.domain-suggestion {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  color: var(--portal-text);
  background: rgba(3, 13, 18, 0.66);
  border: 1px solid rgba(197, 226, 147, 0.44);
  border-radius: var(--portal-radius);
}

.domain-suggestion strong {
  color: var(--portal-link);
}

.domain-suggestion p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.45;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--portal-link);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--portal-text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(223, 248, 255, 0.2);
  border-radius: var(--portal-radius);
  font: inherit;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: rgba(126, 232, 255, 0.8);
}

.form-field textarea {
  min-height: 96px;
  resize: vertical;
}

.form-field--checkbox {
  align-content: start;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
}

.form-field--checkbox label {
  grid-column: 2;
  grid-row: 1;
}

.form-field--checkbox input {
  grid-column: 1;
  grid-row: 1;
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #7ee8ff;
}

.form-field--checkbox .form-errors {
  grid-column: 1 / -1;
}

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

.form-fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: var(--portal-radius);
}

.form-fieldset legend {
  padding: 0 6px;
  color: var(--portal-link);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.radio-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.radio-list label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--portal-text);
  line-height: 1.4;
}

.radio-list input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #7ee8ff;
}

.project-create-form .project-choice-card {
  color: var(--portal-text);
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
}

.project-create-form .project-choice-card input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.project-create-form .project-choice-card__title,
.project-create-form .project-choice-card__text {
  text-transform: none;
}

.form-errors {
  color: #ffd2ca;
  font-size: 0.88rem;
  line-height: 1.4;
}

.form-errors ul {
  margin: 0;
  padding-left: 18px;
}

.domain-order-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: rgba(3, 13, 18, 0.62);
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: var(--portal-radius);
}

.domain-order-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.domain-order-card p {
  margin: 6px 0 0;
  color: var(--portal-muted);
  line-height: 1.45;
}

.domain-handle-card {
  gap: 16px;
}

.domain-handle-form {
  margin-top: 0;
}

.domain-handle-new {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(223, 248, 255, 0.16);
}

.domain-handle-new h3 {
  margin: 0;
  color: var(--portal-text);
  font-size: 1.05rem;
}

.domain-order-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 10px;
  margin: 0;
}

.domain-order-facts div {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(223, 248, 255, 0.13);
}

.domain-order-facts dt {
  color: var(--portal-link);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.domain-order-facts dd {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.45;
}

.domain-nis2-request {
  padding: 12px 14px;
  border: 1px solid rgba(255, 213, 128, 0.36);
  background: rgba(255, 213, 128, 0.08);
  border-radius: 8px;
}

.domain-nis2-request strong {
  color: var(--portal-text);
  font-size: 0.95rem;
}

.domain-nis2-request p {
  margin: 6px 0 0;
  color: var(--portal-muted);
}

.domain-history {
  grid-column: 1 / -1;
  margin-top: 18px;
}

.domain-history summary {
  cursor: pointer;
  width: fit-content;
  color: var(--portal-link);
  font-weight: 800;
  text-transform: uppercase;
}

.domain-history-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  margin-top: 14px;
}

.tariff-group {
  display: grid;
  gap: 14px;
}

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

.tariff-card,
.inventory-card {
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: 18px;
  background: rgba(3, 13, 18, 0.62);
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: var(--portal-radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.tariff-card h3,
.inventory-card h2 {
  margin: 0;
  color: var(--portal-text);
  font-size: 1.15rem;
  line-height: 1.25;
}

.tariff-price {
  margin: 12px 0 0;
  color: var(--portal-text);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.tariff-price span {
  display: block;
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.tariff-facts,
.inventory-facts {
  display: grid;
  gap: 11px;
  margin: 0;
}

.tariff-facts div,
.inventory-facts div {
  display: grid;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid rgba(223, 248, 255, 0.13);
}

.tariff-facts dt,
.inventory-facts dt {
  color: var(--portal-link);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tariff-facts dd,
.inventory-facts dd,
.inventory-card p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.45;
}

.tariff-action {
  align-self: end;
  width: 100%;
}

.inventory-list {
  display: grid;
  gap: 14px;
}

.inventory-card {
  grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 1.2fr) auto;
  align-items: center;
}

.inventory-facts {
  grid-template-columns: repeat(4, minmax(110px, 1fr));
}

.inventory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.inventory-actions form {
  margin: 0;
}

.customer-switch-card,
.publish-card {
  gap: 18px;
}

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

.customer-switch-missing {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(197, 226, 147, 0.08);
  border: 1px solid rgba(197, 226, 147, 0.24);
  border-radius: var(--portal-radius);
}

.customer-switch-missing--neutral {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(223, 248, 255, 0.18);
}

.customer-switch-missing h3 {
  margin: 0;
  color: var(--portal-text);
  font-size: 1rem;
}

.customer-switch-results .project-table {
  min-width: 760px;
}

.customer-switch-inline-form {
  margin: 0;
}

.publish-facts {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.publish-facts code {
  overflow-wrap: anywhere;
  color: var(--portal-link);
  font: 0.86rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.publish-error {
  padding: 12px 14px;
  color: var(--portal-text);
  background: rgba(98, 23, 17, 0.45);
  border: 1px solid rgba(255, 148, 132, 0.72);
  border-radius: var(--portal-radius);
  line-height: 1.45;
}

.publish-hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.publish-refresh {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  max-width: 280px;
  padding: 10px 12px;
  color: var(--portal-text);
  background: rgba(126, 232, 255, 0.12);
  border: 1px solid rgba(126, 232, 255, 0.34);
  border-radius: var(--portal-radius);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.publish-list {
  display: grid;
  gap: 16px;
}

.publish-card-simple {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: rgba(3, 13, 18, 0.64);
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: var(--portal-radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.publish-domain {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.publish-domain-label {
  display: block;
  margin-bottom: 5px;
  color: var(--portal-link);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.publish-domain h2 {
  margin: 0;
  color: var(--portal-text);
  font-size: 1.35rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.publish-badge,
.publish-step-state {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  color: var(--portal-muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 248, 255, 0.18);
  border-radius: var(--portal-radius);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.publish-badge--ready,
.publish-badge--running {
  color: #dff8ff;
  background: rgba(126, 232, 255, 0.13);
  border-color: rgba(126, 232, 255, 0.36);
}

.publish-badge--success {
  color: #06120c;
  background: #c5e293;
  border-color: rgba(197, 226, 147, 0.82);
}

.publish-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.publish-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(223, 248, 255, 0.15);
  border-radius: var(--portal-radius);
}

.publish-step--running {
  border-color: rgba(126, 232, 255, 0.42);
}

.publish-step--success {
  border-color: rgba(197, 226, 147, 0.46);
}

.publish-step--failed {
  border-color: rgba(255, 148, 132, 0.72);
}

.publish-step-number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #06120c;
  background: linear-gradient(135deg, #c5e293, #92b74d);
  border-radius: 50%;
  font-weight: 900;
}

.publish-step-body {
  display: grid;
  gap: 12px;
  align-content: start;
}

.publish-step-heading {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.publish-step-heading h3 {
  margin: 0;
  color: var(--portal-text);
  font-size: 1.05rem;
  line-height: 1.25;
}

.publish-step-body p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.52;
}

.publish-running {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  color: var(--portal-text);
  background: rgba(126, 232, 255, 0.1);
  border: 1px solid rgba(126, 232, 255, 0.28);
  border-radius: var(--portal-radius);
}

.publish-running strong {
  display: block;
  margin-bottom: 4px;
}

.publish-result-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.publish-result-line span {
  min-width: 0;
  color: var(--portal-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.publish-result-line code,
.publish-technical code {
  overflow-wrap: anywhere;
  color: var(--portal-link);
  font: 0.86rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.publish-action-button {
  width: fit-content;
}

.publish-approval {
  display: grid;
  gap: 12px;
}

.publish-approval label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  color: var(--portal-text);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(223, 248, 255, 0.18);
  border-radius: var(--portal-radius);
  line-height: 1.5;
}

.publish-approval input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #c5e293;
}

.publish-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 3px solid rgba(223, 248, 255, 0.28);
  border-top-color: #7ee8ff;
  border-radius: 50%;
  animation: publish-spin 0.85s linear infinite;
}

.publish-technical {
  padding-top: 12px;
  border-top: 1px solid rgba(223, 248, 255, 0.13);
}

.publish-technical summary {
  cursor: pointer;
  color: var(--portal-link);
  font-weight: 850;
}

.publish-technical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.publish-technical-grid div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(223, 248, 255, 0.13);
  border-radius: var(--portal-radius);
}

.publish-technical-grid__wide {
  grid-column: 1 / -1;
}

.publish-technical dt {
  color: var(--portal-link);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.publish-technical dd {
  min-width: 0;
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

.publish-section-heading h2 {
  margin: 4px 0 0;
}

.publish-source-list,
.publish-source-detail {
  display: grid;
  gap: 14px;
}

.publish-source-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: rgba(3, 13, 18, 0.62);
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: var(--portal-radius);
}

.publish-source-card h3 {
  margin: 0;
  color: var(--portal-text);
}

.publish-source-card p {
  margin: 6px 0 0;
  color: var(--portal-muted);
}

.publish-source-wizard {
  max-width: 920px;
}

.publish-wizard-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(223, 248, 255, 0.14);
}

.publish-wizard-step:first-of-type {
  border-top: 0;
}

.publish-wizard-step h2 {
  margin: 0 0 6px;
}

.publish-wizard-step ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.publish-wizard-step li {
  margin: 0;
}

.publish-wizard-step label:has(input[type="radio"]) {
  min-height: 40px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  color: var(--portal-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 248, 255, 0.2);
  border-radius: var(--portal-radius);
  font-weight: 700;
}

.publish-wizard-step label:has(input:checked) {
  color: #06120c;
  background: linear-gradient(135deg, #c5e293, #92b74d);
  border-color: rgba(197, 226, 147, 0.82);
}

.publish-provider-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.publish-checkbox {
  min-height: 40px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 12px 10px 0 0;
  padding: 9px 12px;
  color: var(--portal-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 248, 255, 0.2);
  border-radius: var(--portal-radius);
  font-weight: 700;
}

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

.ops-card {
  gap: 18px;
}

.ops-card-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.ops-facts {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.ops-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--portal-radius);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.ops-status--ok {
  color: #06120c;
  background: #c5e293;
}

.ops-status--danger {
  color: #fff;
  background: rgba(178, 48, 35, 0.78);
}

.ops-status--warning {
  color: #251704;
  background: #ffda75;
}

.ops-status--muted {
  color: var(--portal-muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 248, 255, 0.16);
}

.security-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-check-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(223, 248, 255, 0.16);
  border-radius: var(--portal-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(3, 13, 18, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.security-check-card--ok {
  border-color: rgba(197, 226, 147, 0.46);
}

.security-check-card--warning {
  border-color: rgba(255, 218, 117, 0.54);
}

.security-check-card--failed {
  border-color: rgba(178, 48, 35, 0.6);
}

.security-check-card--running {
  border-color: rgba(126, 232, 255, 0.54);
}

.security-check-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.security-check-icon--ok {
  color: #06120c;
  background: #c5e293;
}

.security-check-icon--warning {
  color: #251704;
  background: #ffda75;
}

.security-check-icon--failed {
  color: #fff;
  background: rgba(178, 48, 35, 0.9);
}

.security-check-icon--running {
  color: #06120c;
  background: #7ee8ff;
}

.security-check-icon--unknown {
  color: var(--portal-muted);
  border: 1px solid rgba(223, 248, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.security-check-body {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.security-check-title {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-width: 0;
}

.security-check-title h2 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.security-check-summary {
  margin: 0;
  color: var(--portal-text);
  line-height: 1.45;
}

.security-check-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  color: var(--portal-muted);
}

.security-check-meta div {
  min-width: 118px;
}

.security-check-meta dt {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.security-check-meta dd {
  margin: 0;
  color: var(--portal-text);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.security-status {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: var(--portal-radius);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.security-status--ok {
  color: #06120c;
  background: #c5e293;
}

.security-status--warning {
  color: #251704;
  background: #ffda75;
}

.security-status--failed {
  color: #fff;
  background: rgba(178, 48, 35, 0.82);
}

.security-status--running {
  color: #06120c;
  background: #7ee8ff;
}

.security-status--unknown {
  color: var(--portal-muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 248, 255, 0.16);
}

.operations-panel {
  display: grid;
  gap: 18px;
}

.operations-form {
  display: grid;
  gap: 18px;
}

.operations-waterfall {
  display: grid;
  gap: 14px;
}

.operations-waterfall-step,
.operations-waterfall-group {
  display: grid;
  gap: 12px;
}

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

.operations-field-row,
.operations-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.operations-field-row__main {
  min-width: 0;
}

.operations-field-row__action {
  min-height: 44px;
  white-space: nowrap;
}

.operations-inline-disclosure {
  display: contents;
}

.operations-inline-disclosure summary {
  list-style: none;
}

.operations-inline-disclosure summary::-webkit-details-marker {
  display: none;
}

.operations-icon-action {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #06120c;
  background: #c5e293;
  border: 1px solid rgba(197, 226, 147, 0.8);
  border-radius: var(--portal-radius);
  cursor: pointer;
}

.operations-icon-action:hover,
.operations-icon-action:focus-visible {
  filter: brightness(1.08);
}

.operations-icon-action__symbol::before {
  content: "+";
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1;
}

.operations-inline-disclosure[open] .operations-icon-action__symbol::before {
  content: "-";
}

.operations-inline-disclosure__content {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.operations-section-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.operations-section-header h3 {
  margin: 0;
}

.operations-subsection {
  padding-top: 4px;
  border-top: 1px solid rgba(223, 248, 255, 0.14);
}

.operations-subsection summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--portal-link);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.operations-subsection summary::-webkit-details-marker {
  display: none;
}

.operations-subsection__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(191, 229, 150, 0.46);
  border-radius: 999px;
  background: rgba(191, 229, 150, 0.08);
}

.operations-subsection__icon::before {
  content: "+";
  font-size: 1.15rem;
  line-height: 1;
}

.operations-subsection[open] .operations-subsection__icon::before {
  content: "-";
}

.operations-subsection__content {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.operations-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.operations-facts div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(223, 248, 255, 0.12);
  border-radius: var(--portal-radius);
  background: rgba(255, 255, 255, 0.04);
}

.operations-facts dt {
  margin: 0 0 4px;
  color: var(--portal-muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.operations-facts dd {
  margin: 0;
  color: var(--portal-text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.operations-table-wrap {
  overflow-x: auto;
}

.operations-runbook {
  display: grid;
  gap: 12px;
}

.operations-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(223, 248, 255, 0.13);
  border-radius: var(--portal-radius);
  background: rgba(255, 255, 255, 0.04);
}

.operations-step--blocked {
  border-color: rgba(255, 113, 113, 0.35);
}

.operations-step--ready,
.operations-step--done {
  border-color: rgba(197, 226, 147, 0.35);
}

.operations-step--manual {
  border-color: rgba(255, 207, 106, 0.35);
}

.operations-step__header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

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

.operations-step p {
  margin: 6px 0 0;
}

.security-threshold-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.security-actions-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.security-run-form {
  align-self: center;
}

.security-form,
.security-form-fields {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.security-panel {
  display: grid;
  gap: 14px;
}

.security-panel h2 {
  margin: 0;
}

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

.security-access-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: rgba(3, 13, 18, 0.62);
  border: 1px solid rgba(223, 248, 255, 0.14);
  border-radius: var(--portal-radius);
}

.security-save-actions {
  justify-content: flex-start;
}

.auth-footer {
  min-height: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  justify-content: center;
  padding: 14px 18px 24px;
  color: var(--portal-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.footer-divider {
  width: 1px;
  height: 0.9em;
  background: rgba(223, 248, 255, 0.36);
}

@media (max-width: 640px) {
  .auth-shell {
    min-height: calc(100vh - 92px);
    padding: 18px 12px;
  }

  .auth-footer {
    min-height: 92px;
    gap: 3px 10px;
  }

  .auth-footer span:first-child {
    flex-basis: 100%;
  }

  .footer-divider {
    display: none;
  }
}

@media (max-width: 980px) {
  .advisor-shell {
    grid-template-columns: 1fr;
  }

  .advisor-shell > :not(.advisor-header),
  .advisor-header {
    grid-column: 1;
  }

  .advisor-header {
    position: static;
    grid-row: auto;
    max-height: none;
  }

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

  .brandkit-token-grid {
    grid-template-columns: 1fr;
  }

  .brandkit-form-layout,
  .brandkit-form-layout--upload,
  .brandkit-asset-grid {
    grid-template-columns: 1fr;
  }

  .domain-workspace {
    grid-template-columns: 1fr;
  }

  .domain-history-grid {
    grid-template-columns: 1fr;
  }

  .domain-chat-options {
    max-width: 720px;
  }

  .advisor-intro,
  .advisor-chat,
  .advisor-summary {
    min-height: auto;
  }

  .advisor-intro {
    padding-right: 0;
  }

  .advisor-intro h1 {
    max-width: 15ch;
  }
}

@media (max-width: 640px) {
  .advisor-page .auth-shell {
    padding: 18px 12px 24px;
  }

  .advisor-header {
    align-items: flex-start;
  }

  .portal-nav {
    width: 100%;
  }

  .session-actions {
    align-items: stretch;
    gap: 6px;
  }

  .advisor-logo {
    width: min(220px, 72vw);
  }

  .advisor-chat,
  .advisor-summary {
    padding: 16px;
  }

  .advisor-actions {
    grid-template-columns: 1fr;
  }

  .domain-order-facts {
    grid-template-columns: 1fr 1fr;
  }

  .domain-message--meta {
    margin-left: 0;
  }

  .domain-message--user,
  .domain-step.domain-panel,
  .domain-step.empty-state {
    max-width: 100%;
    margin-left: 0;
  }

  .domain-chat {
    gap: 10px;
    margin-bottom: 16px;
  }

  .domain-message {
    padding: 12px 14px;
  }

  .domain-chat-options {
    flex-direction: column;
  }

  .domain-chat-option {
    flex-basis: auto;
    max-width: none;
    min-height: 44px;
    padding: 12px;
  }

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

  .operations-waterfall-group,
  .operations-field-row {
    grid-template-columns: 1fr;
  }

  .operations-field-row__action {
    width: 100%;
  }

  .operations-inline-row {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .chat-message {
    max-width: 100%;
  }

  .portal-overview,
  .inventory-card {
    grid-template-columns: 1fr;
  }

  .project-choice-grid--creation_mode,
  .project-choice-grid--project_origin {
    grid-template-columns: 1fr;
  }

  .project-choice-card {
    min-height: 0;
  }

  .security-actions-card,
  .security-access-row {
    grid-template-columns: 1fr;
  }

  .security-run-form,
  .security-run-form .primary-action,
  .security-save-actions .primary-action {
    width: 100%;
  }

  .operations-facts,
  .operations-step {
    grid-template-columns: 1fr;
  }

  .publish-hero,
  .publish-domain,
  .publish-step-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .publish-refresh,
  .publish-action-button,
  .publish-result-line .primary-action {
    width: 100%;
    max-width: none;
  }

  .publish-steps {
    grid-template-columns: 1fr;
  }

  .publish-source-card,
  .publish-section-heading {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .publish-step {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 14px;
  }

  .publish-step-number {
    width: 32px;
    height: 32px;
  }

  .portal-overview {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-facts {
    grid-template-columns: 1fr;
  }

  .domain-order-facts {
    grid-template-columns: 1fr;
  }

  .inventory-actions {
    justify-content: stretch;
  }

  .inventory-actions .secondary-action {
    width: 100%;
  }

  .inventory-actions form {
    width: 100%;
  }
}

/* Design system v1: opt-in application shell and reusable components. */
:root {
  --ds-color-bg: #f7f8fb;
  --ds-color-surface: #ffffff;
  --ds-color-surface-muted: #f1f4f8;
  --ds-color-text: #111827;
  --ds-color-text-muted: #667085;
  --ds-color-border: #e5e7eb;
  --ds-color-primary: #2563eb;
  --ds-color-primary-hover: #1d4ed8;
  --ds-color-primary-soft: #dbeafe;
  --ds-color-brand: #75923e;
  --ds-color-brand-soft: #eef7dc;
  --ds-color-success: #16a34a;
  --ds-color-success-soft: #dcfce7;
  --ds-color-warning: #d97706;
  --ds-color-warning-soft: #fef3c7;
  --ds-color-danger: #dc2626;
  --ds-color-danger-soft: #fee2e2;
  --ds-color-info: #0284c7;
  --ds-color-info-soft: #e0f2fe;
  --ds-color-neutral: #475467;
  --ds-color-neutral-soft: #f2f4f7;
  --ds-radius-sm: 8px;
  --ds-radius-md: 12px;
  --ds-radius-lg: 18px;
  --ds-radius-xl: 24px;
  --ds-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --ds-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --ds-shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
  --ds-space-1: 0.25rem;
  --ds-space-2: 0.5rem;
  --ds-space-3: 0.75rem;
  --ds-space-4: 1rem;
  --ds-space-5: 1.25rem;
  --ds-space-6: 1.5rem;
  --ds-space-8: 2rem;
}

.portal-app-page {
  color: var(--ds-color-text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.1), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--ds-color-bg) 42%, #eef2f7 100%);
}

.portal-app-page a {
  color: var(--ds-color-primary);
}

.portal-app-page .auth-shell {
  min-height: calc(100vh - 64px);
  place-items: stretch center;
  align-content: start;
  gap: var(--ds-space-4);
  padding: var(--ds-space-4);
}

.portal-app-page .portal-topbar {
  position: sticky;
  top: var(--ds-space-4);
  width: min(1320px, 100%);
}

.portal-app-page .project-breadcrumb__menu {
  z-index: 7000;
}

.ds-app-shell {
  width: min(1320px, 100%);
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: var(--ds-space-6);
  align-items: start;
}

.ds-app-main,
.ds-page-stack,
.ds-stack {
  min-width: 0;
  display: grid;
  gap: var(--ds-space-6);
}

.ds-sidebar,
.ds-section,
.ds-card,
.ds-kpi-card,
.ds-compliance-score,
.ds-scan-card,
.ds-website-card,
.ds-risk-card,
.ds-empty-state,
.ds-table-wrap,
.ds-accordion,
.ds-activity-feed {
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-sm);
}

.ds-sidebar {
  position: sticky;
  top: calc(var(--ds-space-4) + 92px);
  padding: var(--ds-space-4);
}

.ds-sidebar__label,
.ds-eyebrow {
  margin: 0 0 var(--ds-space-2);
  color: var(--ds-color-text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ds-sidebar__nav {
  display: grid;
  gap: var(--ds-space-2);
}

.ds-sidebar__link {
  display: grid;
  gap: 2px;
  padding: 0.7rem 0.85rem;
  color: var(--ds-color-text);
  text-decoration: none;
  border-radius: var(--ds-radius-sm);
}

.ds-sidebar__link:hover,
.ds-sidebar__link:focus-visible,
.ds-sidebar__link.is-active {
  color: var(--ds-color-text);
  background: var(--ds-color-primary-soft);
}

.ds-sidebar__link-main {
  font-weight: 800;
}

.ds-sidebar__link-meta {
  color: var(--ds-color-text-muted);
  font-size: 0.78rem;
}

.ds-mobile-nav {
  display: none;
}

.ds-page-header {
  display: flex;
  gap: var(--ds-space-4);
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--ds-space-6);
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-xl);
  box-shadow: var(--ds-shadow-md);
}

.ds-page-header h1,
.ds-section h2,
.ds-card h3,
.ds-kpi-card__value,
.ds-compliance-score h3,
.ds-scan-card h3,
.ds-website-card h3,
.ds-risk-card h3,
.ds-customer-card h3,
.ds-timeline h3 {
  margin: 0;
  color: var(--ds-color-text);
  line-height: 1.15;
  letter-spacing: 0;
}

.ds-page-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.ds-page-header p,
.ds-section__header p,
.ds-card__header p,
.ds-compliance-score p,
.ds-scan-card p,
.ds-website-card p,
.ds-risk-card p,
.ds-empty-state p,
.ds-activity-feed p,
.ds-timeline p {
  margin: var(--ds-space-2) 0 0;
  color: var(--ds-color-text-muted);
  line-height: 1.55;
}

.ds-page-header__actions,
.ds-card__actions,
.ds-website-card__actions,
.ds-form__actions,
.ds-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  align-items: center;
}

.ds-section {
  padding: var(--ds-space-6);
}

.ds-section__header {
  display: flex;
  gap: var(--ds-space-4);
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--ds-space-4);
}

.ds-section--split,
.ds-section--two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-6);
  align-items: start;
}

.ds-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ds-space-4);
}

.ds-kpi-card {
  display: grid;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4);
}

.ds-kpi-card__topline,
.ds-risk-card__header,
.ds-risk-column__header,
.ds-website-card__title {
  display: flex;
  gap: var(--ds-space-3);
  align-items: flex-start;
  justify-content: space-between;
}

.ds-kpi-card__topline {
  color: var(--ds-color-text-muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.ds-kpi-card__value {
  font-size: 2.2rem;
  font-weight: 850;
}

.ds-kpi-card__meta {
  margin: 0;
  color: var(--ds-color-text-muted);
  font-size: 0.9rem;
}

.ds-kpi-card__meta span {
  color: var(--ds-color-success);
  font-weight: 850;
}

.ds-button {
  min-height: 40px;
  display: inline-flex;
  gap: var(--ds-space-2);
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-sm);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.ds-button:hover {
  transform: translateY(-1px);
}

.ds-button--primary {
  color: #ffffff;
  background: var(--ds-color-primary);
  border-color: var(--ds-color-primary);
}

.ds-button--primary:hover,
.ds-button--primary:focus-visible {
  color: #ffffff;
  background: var(--ds-color-primary-hover);
  border-color: var(--ds-color-primary-hover);
}

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

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

.ds-button--ghost {
  color: var(--ds-color-text);
  background: transparent;
}

.ds-button--sm {
  min-height: 34px;
  padding: 0.48rem 0.72rem;
  font-size: 0.9rem;
}

.ds-status-pill,
.ds-badge {
  display: inline-flex;
  gap: 0.38rem;
  align-items: center;
  width: fit-content;
  min-height: 1.65rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.1;
}

.ds-badge {
  min-height: 1.45rem;
}

.ds-status-pill__dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: currentColor;
}

.ds-status-pill--success,
.ds-badge--success {
  color: #067647;
  background: var(--ds-color-success-soft);
}

.ds-status-pill--warning,
.ds-badge--warning {
  color: #92400e;
  background: var(--ds-color-warning-soft);
}

.ds-status-pill--danger,
.ds-badge--danger {
  color: #b42318;
  background: var(--ds-color-danger-soft);
}

.ds-status-pill--info,
.ds-badge--info {
  color: #026aa2;
  background: var(--ds-color-info-soft);
}

.ds-status-pill--neutral,
.ds-badge--neutral {
  color: var(--ds-color-neutral);
  background: var(--ds-color-neutral-soft);
}

.ds-status-pill--muted,
.ds-badge--muted {
  color: #98a2b3;
  background: #f9fafb;
}

.ds-compliance-score,
.ds-scan-card {
  padding: var(--ds-space-5);
}

.ds-compliance-score {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--ds-space-5);
  align-items: center;
}

.ds-compliance-score__ring {
  --ds-score-color: var(--ds-color-neutral);
  width: 9rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--ds-color-surface) 0 58%, transparent 59%),
    conic-gradient(var(--ds-score-color) var(--ds-score), #e6eaf0 0);
}

.ds-compliance-score__ring span {
  color: var(--ds-color-text);
  font-size: 1.7rem;
  font-weight: 900;
}

.ds-compliance-score--success .ds-compliance-score__ring {
  --ds-score-color: var(--ds-color-success);
}

.ds-compliance-score--warning .ds-compliance-score__ring {
  --ds-score-color: var(--ds-color-warning);
}

.ds-compliance-score--danger .ds-compliance-score__ring {
  --ds-score-color: var(--ds-color-danger);
}

.ds-scan-card__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ds-space-3);
  margin: var(--ds-space-4) 0;
}

.ds-scan-card__grid div,
.ds-website-card__facts span,
.ds-risk-card__meta div {
  padding: var(--ds-space-3);
  background: var(--ds-color-surface-muted);
  border-radius: var(--ds-radius-sm);
}

.ds-scan-card__grid span,
.ds-website-card__facts span,
.ds-risk-card__meta dt {
  display: block;
  color: var(--ds-color-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ds-scan-card__grid strong,
.ds-website-card__facts strong,
.ds-risk-card__meta dd {
  color: var(--ds-color-text);
  font-weight: 850;
}

.ds-website-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ds-space-4);
}

.ds-website-card {
  overflow: hidden;
}

.ds-website-card__media {
  min-height: 9rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.14), rgba(117, 146, 62, 0.16)),
    var(--ds-color-surface-muted);
}

.ds-website-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ds-website-card__placeholder {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--ds-color-primary);
  border-radius: var(--ds-radius-lg);
  font-size: 1.4rem;
  font-weight: 900;
}

.ds-website-card__body {
  display: grid;
  gap: var(--ds-space-4);
  padding: var(--ds-space-4);
}

.ds-website-card__title h3 {
  overflow-wrap: anywhere;
}

.ds-website-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ds-space-2);
}

.ds-risk-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ds-space-4);
}

.ds-risk-column {
  display: grid;
  gap: var(--ds-space-3);
  align-content: start;
  padding: var(--ds-space-3);
  background: var(--ds-color-surface-muted);
  border-radius: var(--ds-radius-md);
}

.ds-risk-column__header h3 {
  margin: 0;
}

.ds-risk-card {
  display: grid;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4);
}

.ds-risk-card__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ds-space-2);
  margin: 0;
}

.ds-risk-card__meta dd {
  margin: var(--ds-space-1) 0 0;
}

.ds-tabs {
  display: flex;
  gap: var(--ds-space-2);
  overflow-x: auto;
  padding: var(--ds-space-1);
  background: var(--ds-color-surface-muted);
  border-radius: var(--ds-radius-md);
}

.ds-tabs__item {
  flex: 0 0 auto;
  padding: 0.58rem 0.85rem;
  color: var(--ds-color-text-muted);
  text-decoration: none;
  border-radius: var(--ds-radius-sm);
  font-weight: 800;
}

.ds-tabs__item.is-active,
.ds-tabs__item:hover,
.ds-tabs__item:focus-visible {
  color: var(--ds-color-text);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-sm);
}

.ds-status-demo {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  margin-top: var(--ds-space-4);
}

.ds-timeline {
  display: grid;
  gap: var(--ds-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--ds-space-3);
}

.ds-timeline__marker {
  width: 0.86rem;
  height: 0.86rem;
  margin-top: 0.25rem;
  background: var(--ds-color-primary);
  border: 3px solid var(--ds-color-primary-soft);
  border-radius: 999px;
}

.ds-timeline__content {
  padding-bottom: var(--ds-space-4);
  border-bottom: 1px solid var(--ds-color-border);
}

.ds-timeline time,
.ds-activity-feed time {
  color: var(--ds-color-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ds-activity-feed {
  display: grid;
  overflow: hidden;
}

.ds-activity-feed__item {
  display: flex;
  gap: var(--ds-space-3);
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--ds-space-4);
  border-bottom: 1px solid var(--ds-color-border);
}

.ds-activity-feed__item:last-child {
  border-bottom: 0;
}

.ds-form {
  display: grid;
  gap: var(--ds-space-4);
  padding: var(--ds-space-4);
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg);
}

.ds-form-field {
  display: grid;
  gap: var(--ds-space-2);
}

.ds-form-field label {
  color: var(--ds-color-text);
  font-weight: 850;
}

.ds-form-field input,
.ds-form-field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  color: var(--ds-color-text);
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
  font: inherit;
}

.ds-form-field input:focus,
.ds-form-field textarea:focus {
  border-color: var(--ds-color-primary);
  outline: 3px solid var(--ds-color-primary-soft);
}

.ds-form-field__help,
.ds-form-field__error {
  margin: 0;
  font-size: 0.86rem;
}

.ds-form-field__help {
  color: var(--ds-color-text-muted);
}

.ds-form-field__error,
.ds-form-field.has-error label {
  color: var(--ds-color-danger);
}

.ds-form-field.has-error input,
.ds-form-field.has-error textarea {
  border-color: var(--ds-color-danger);
}

.ds-alert-stack {
  display: grid;
  gap: var(--ds-space-2);
}

.ds-alert {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  padding: var(--ds-space-3) var(--ds-space-4);
  border-radius: var(--ds-radius-md);
  font-weight: 700;
}

.ds-alert--success {
  color: #067647;
  background: var(--ds-color-success-soft);
}

.ds-alert--warning {
  color: #92400e;
  background: var(--ds-color-warning-soft);
}

.ds-alert--danger,
.ds-alert--error {
  color: #b42318;
  background: var(--ds-color-danger-soft);
}

.ds-alert--info {
  color: #026aa2;
  background: var(--ds-color-info-soft);
}

.ds-empty-state {
  display: grid;
  justify-items: start;
  gap: var(--ds-space-3);
  padding: var(--ds-space-6);
}

.ds-empty-state__icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: var(--ds-radius-md);
  background:
    linear-gradient(135deg, var(--ds-color-primary-soft), var(--ds-color-brand-soft));
}

.ds-skeleton {
  display: grid;
  gap: var(--ds-space-2);
  padding: var(--ds-space-4);
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg);
}

.ds-skeleton__line {
  height: 0.78rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #edf1f6 0%, #f8fafc 45%, #edf1f6 100%);
  background-size: 220% 100%;
  animation: ds-skeleton-pulse 1.4s ease-in-out infinite;
}

.ds-skeleton__line--wide {
  width: 82%;
}

.ds-skeleton__line--short {
  width: 42%;
}

@keyframes ds-skeleton-pulse {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

.ds-table-wrap {
  overflow-x: auto;
}

.ds-data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: var(--ds-color-text);
}

.ds-data-table caption {
  padding: var(--ds-space-3) var(--ds-space-4);
  color: var(--ds-color-text-muted);
  text-align: left;
  font-weight: 850;
}

.ds-data-table th,
.ds-data-table td {
  padding: var(--ds-space-3) var(--ds-space-4);
  border-top: 1px solid var(--ds-color-border);
  text-align: left;
}

.ds-data-table th {
  color: var(--ds-color-text-muted);
  background: var(--ds-color-surface-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.ds-accordion {
  display: grid;
  overflow: hidden;
}

.ds-accordion__item {
  padding: var(--ds-space-4);
  border-bottom: 1px solid var(--ds-color-border);
}

.ds-accordion__item:last-child {
  border-bottom: 0;
}

.ds-accordion__item summary {
  cursor: pointer;
  color: var(--ds-color-text);
  font-weight: 850;
}

.ds-modal {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-lg);
}

.ds-modal::backdrop {
  background: rgba(15, 23, 42, 0.48);
}

.ds-modal__panel {
  display: grid;
  gap: var(--ds-space-4);
  padding: var(--ds-space-6);
}

.ds-modal__header,
.ds-modal__actions {
  display: flex;
  gap: var(--ds-space-3);
  align-items: center;
  justify-content: space-between;
}

.ds-icon-button {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-grid;
  place-items: center;
  color: var(--ds-color-text);
  background: var(--ds-color-surface-muted);
  border: 1px solid var(--ds-color-border);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.ds-toast-region {
  position: fixed;
  right: var(--ds-space-4);
  bottom: var(--ds-space-4);
  z-index: 3400;
  display: grid;
  gap: var(--ds-space-2);
}

.ds-toast {
  max-width: min(360px, calc(100vw - 32px));
  padding: var(--ds-space-3) var(--ds-space-4);
  color: #ffffff;
  background: #111827;
  border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-lg);
  font-weight: 800;
}

.ds-customer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--ds-space-3);
  align-items: center;
  padding: var(--ds-space-4);
}

.ds-customer-card__avatar {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--ds-color-brand);
  border-radius: var(--ds-radius-md);
  font-weight: 900;
}

.wp-console,
.wp-report {
  width: min(1800px, 100%);
  gap: var(--ds-space-5);
  color: #172033;
}

.wp-console-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--ds-space-3);
}

.wp-console-summary a,
.wp-console-summary article {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  margin: 0;
  padding: var(--ds-space-4);
  color: #172033;
  background: #ffffff;
  border: 1px solid #c7d0db;
  border-radius: var(--ds-radius-md);
  text-decoration: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.wp-console-summary a:hover,
.wp-console-summary a:focus-visible,
.wp-console-summary a.is-active {
  border-color: var(--ds-color-brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ds-color-brand) 18%, transparent);
}

.wp-console-summary span,
.wp-console-summary small,
.wp-target-card__meta,
.wp-target-facts dt {
  color: #4b5563;
}

.wp-console-summary strong {
  color: var(--ds-color-text);
  font-size: 1.45rem;
  line-height: 1;
}

.wp-console-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  padding-bottom: var(--ds-space-1);
  border-bottom: 1px solid var(--ds-color-border);
}

.wp-console-tabs a {
  padding: 0.45rem 0.7rem;
  color: var(--ds-color-text);
  background: var(--ds-color-surface-muted);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
  text-decoration: none;
  font-weight: 850;
}

.wp-console-filter,
.wp-console-command {
  display: grid;
  gap: var(--ds-space-4);
}

.wp-batch-controls {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) repeat(2, minmax(210px, 1fr));
  gap: var(--ds-space-3);
  align-items: end;
  margin-bottom: var(--ds-space-4);
  padding: var(--ds-space-3);
  color: var(--ds-color-text);
  background: var(--ds-color-surface-muted);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
}

.wp-batch-controls > label:not(.wp-console-select-all) {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: var(--ds-color-text-muted);
  font-weight: 850;
}

.wp-batch-controls input,
.wp-batch-controls select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.58rem 0.7rem;
  color: var(--ds-color-text);
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
  font: inherit;
}

.wp-batch-controls .wp-console-select-all {
  align-self: center;
  color: var(--ds-color-text);
  font-weight: 850;
}

.wp-batch-controls .wp-console-select-all input {
  width: 1.05rem;
  min-height: 0;
  padding: 0;
}

.wp-batch-confirm {
  grid-column: span 2;
}

.wp-batch-feedback {
  grid-column: 1 / -1;
  min-height: 1.25rem;
  margin: 0;
  color: #7f1d1d;
  font-size: 0.86rem;
  font-weight: 800;
}

.wp-console-filter-grid,
.wp-console-command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: var(--ds-space-3);
  align-items: end;
}

.wp-console-command-grid {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.wp-console-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
  min-width: 0;
  margin: 0;
  padding: var(--ds-space-3);
  background: var(--ds-color-surface-muted);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
}

.wp-console-options legend {
  padding: 0 var(--ds-space-1);
  color: var(--ds-color-text-muted);
  font-weight: 900;
}

.wp-console-options label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: var(--ds-space-2);
  color: var(--ds-color-text);
}

.wp-console-options input {
  width: 1rem;
  min-height: auto;
}

.wp-console-filter label,
.wp-console-command label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: var(--ds-color-text-muted);
  font-weight: 850;
}

.wp-console-filter input,
.wp-console-filter select,
.wp-console-command input,
.wp-console-command select,
.wp-visual-profile-form input,
.wp-visual-profile-form textarea,
.wp-visual-profile-form select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.58rem 0.7rem;
  color: var(--ds-color-text);
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
  font: inherit;
}

.wp-console input::placeholder,
.wp-console textarea::placeholder {
  color: #64748b;
  opacity: 1;
}

.wp-console input:focus,
.wp-console select:focus,
.wp-console textarea:focus {
  border-color: var(--ds-color-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-color-brand) 18%, transparent);
  outline: 0;
}

.wp-console-runtime .project-context-export__header {
  align-items: center;
}

.wp-runtime-reason {
  margin: 0.35rem 0 0;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.45;
}

.wp-console .domain-panel-note,
.wp-backstop-config p,
.wp-backstop-config li,
.wp-visual-profile-form small {
  color: #475569;
}

.wp-target-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ds-space-3);
}

.wp-target-card {
  display: grid;
  gap: var(--ds-space-3);
  min-width: 0;
  padding: var(--ds-space-4);
  color: #172033;
  background: #ffffff;
  border: 1px solid #c7d0db;
  border-radius: var(--ds-radius-md);
}

.wp-target-card__head,
.wp-target-card__check,
.wp-target-actions,
.wp-console-select-all,
.wp-pagination,
.wp-batch-bar,
.wp-calendar-list article {
  display: flex;
  gap: var(--ds-space-2);
  align-items: center;
}

.wp-target-card__head {
  justify-content: space-between;
}

.wp-target-statuses,
.wp-target-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  align-items: center;
}

.wp-target-links {
  padding: var(--ds-space-2) 0;
  border-top: 1px solid var(--ds-color-border);
  border-bottom: 1px solid var(--ds-color-border);
}

.wp-target-links a {
  color: #28570d;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.wp-target-links a:hover,
.wp-target-links a:focus-visible {
  text-decoration: underline;
}

.wp-target-card__head h3,
.wp-target-card__check span {
  min-width: 0;
  margin: 0;
  color: var(--ds-color-text);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.wp-target-card__check {
  min-width: 0;
  font-weight: 900;
}

.wp-target-card__check input,
.wp-visual-profile-toggles input {
  width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  padding: 0;
  accent-color: #486523;
}

.wp-target-card__meta {
  margin: 0;
  overflow-wrap: anywhere;
}

.wp-target-health {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #d7dee7;
  border-bottom: 1px solid #d7dee7;
}

.wp-target-health section {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.9rem;
  border-right: 1px solid #e1e6ed;
}

.wp-target-health section:last-child {
  border-right: 0;
}

.wp-target-health span {
  color: #526072;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.wp-target-health strong {
  color: #172033;
  overflow-wrap: anywhere;
}

.wp-target-health small {
  color: #526072;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.wp-health-success {
  color: #166534 !important;
}

.wp-health-warning {
  color: #9a3412 !important;
}

.wp-health-danger {
  color: #991b1b !important;
}

.wp-target-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ds-space-2);
  margin: 0;
}

.wp-target-facts div {
  min-width: 0;
  padding: var(--ds-space-2);
  border-left: 2px solid #d7dee7;
}

.wp-target-facts dt {
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.wp-target-facts dd {
  margin: 0.2rem 0 0;
  color: var(--ds-color-text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.wp-target-fact--wide {
  grid-column: span 2;
}

.wp-text-danger {
  color: #991b1b !important;
}

.wp-backstop-config {
  min-width: 0;
  padding: var(--ds-space-3);
  background: #f6f8fa;
  border: 1px solid #cbd5e1;
  border-radius: var(--ds-radius-sm);
}

.wp-backstop-config summary {
  cursor: pointer;
  color: var(--ds-color-text);
  font-weight: 850;
}

.wp-backstop-config ul,
.wp-backstop-config p {
  margin: var(--ds-space-2) 0 0;
  overflow-wrap: anywhere;
}

.wp-visual-profile-form {
  display: grid;
  gap: var(--ds-space-3);
  margin-top: var(--ds-space-3);
  padding-top: var(--ds-space-3);
  border-top: 1px solid var(--ds-color-border);
}

.wp-visual-profile-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-4);
}

.wp-visual-profile-toggles label {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  color: #172033;
  font-weight: 800;
}

.wp-visual-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-3);
}

.wp-visual-profile-grid label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: #172033;
  font-weight: 800;
}

.wp-visual-profile-grid textarea {
  min-height: 7rem;
  resize: vertical;
}

.wp-visual-profile-wide {
  grid-column: 1 / -1;
}

.wp-form-errors,
.wp-visual-profile-form .errorlist {
  margin: 0;
  padding: var(--ds-space-2) var(--ds-space-3);
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--ds-radius-sm);
  list-style: none;
}

.wp-target-actions {
  flex-wrap: wrap;
}

.wp-target-commandbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  align-items: center;
  padding-top: var(--ds-space-3);
  border-top: 1px solid #d7dee7;
}

.wp-target-commandbar button,
.wp-target-commandbar a {
  min-height: 2.2rem;
  padding: 0.46rem 0.7rem;
  color: #172033;
  background: #ffffff;
  border: 1px solid #aeb8c6;
  border-radius: var(--ds-radius-sm);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.wp-target-commandbar button:hover,
.wp-target-commandbar button:focus-visible,
.wp-target-commandbar a:hover,
.wp-target-commandbar a:focus-visible {
  color: #111827;
  background: #eef2f6;
  border-color: #64748b;
}

.wp-target-commandbar .wp-target-commandbar__primary {
  color: #ffffff;
  background: #486523;
  border-color: #354c19;
}

.wp-target-commandbar .wp-target-commandbar__primary:hover,
.wp-target-commandbar .wp-target-commandbar__primary:focus-visible {
  color: #ffffff;
  background: #354c19;
}

.wp-target-commandbar button:disabled {
  color: #64748b;
  background: #e5e7eb;
  border-color: #cbd5e1;
  cursor: not-allowed;
  opacity: 1;
}

.wp-console .secondary-action,
.wp-report .secondary-action {
  color: #172033;
  background: #ffffff;
  border-color: #aeb8c6;
  text-shadow: none;
}

.wp-console .secondary-action:hover,
.wp-console .secondary-action:focus-visible,
.wp-report .secondary-action:hover,
.wp-report .secondary-action:focus-visible {
  color: #111827;
  background: #eef2f6;
  border-color: #64748b;
}

.wp-console .primary-action,
.wp-report .primary-action {
  color: #ffffff;
  background: #486523;
  border: 1px solid #354c19;
  text-shadow: none;
}

.wp-console .primary-action:hover,
.wp-console .primary-action:focus-visible,
.wp-report .primary-action:hover,
.wp-report .primary-action:focus-visible {
  color: #ffffff;
  background: #354c19;
  border-color: #263711;
  filter: none;
}

.wp-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.wp-component-results {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #cbd5e1;
}

.wp-component-results table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: #172033;
  background: #ffffff;
  font-size: 0.84rem;
}

.wp-component-results th,
.wp-component-results td {
  padding: 0.65rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
}

.wp-component-results th {
  color: #334155;
  background: #f1f5f9;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.wp-component-results tbody tr:last-child td {
  border-bottom: 0;
}

.wp-component-results td:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.wp-component-results a {
  color: #28570d;
  font-weight: 850;
}

.wp-evidence-item {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--portal-border, #ccd3da);
  background: #fff;
}

.wp-evidence-item a {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef1f4;
}

.wp-evidence-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wp-evidence-item figcaption {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem;
  color: #20262d;
  font-size: 0.82rem;
  line-height: 1.35;
}

.wp-evidence-item figcaption span {
  overflow-wrap: anywhere;
  color: #4b5560;
}

.wp-evidence-empty {
  margin: 0.9rem 0 0;
  padding: 0.75rem;
  border-left: 3px solid #77818c;
  background: #f4f6f8;
  color: #343b43;
}

.secondary-action--small {
  min-height: 2rem;
  padding: 0.42rem 0.6rem;
  font-size: 0.82rem;
}

.secondary-action.is-disabled,
.secondary-action:disabled,
.primary-action:disabled {
  color: #64748b !important;
  background: #e5e7eb !important;
  border-color: #cbd5e1 !important;
  opacity: 1;
  pointer-events: none;
}

.wp-status {
  flex: 0 0 auto;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wp-status--success,
.wp-status--ok,
.wp-status--passed,
.wp-status--current,
.wp-status--productive {
  color: #14532d;
  background: #dcfce7;
}

.wp-status--failed,
.wp-status--fehler,
.wp-status--blocked {
  color: #7f1d1d;
  background: #fee2e2;
}

.wp-status--planned,
.wp-status--running,
.wp-status--queued,
.wp-status--available,
.wp-status--staging,
.wp-status--development {
  color: #7c2d12;
  background: #ffedd5;
}

.wp-status--unbekannt,
.wp-status--unknown {
  color: #334155;
  background: #e2e8f0;
}

.wp-pagination {
  justify-content: center;
  margin-top: var(--ds-space-4);
}

.wp-batch-bar {
  position: sticky;
  bottom: var(--ds-space-4);
  z-index: 20;
  justify-content: flex-end;
  padding: var(--ds-space-3);
  color: var(--ds-color-text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.wp-apply-dialog {
  width: min(560px, calc(100vw - 2rem));
  padding: 1.25rem;
  color: #172033;
  background: #ffffff;
  border: 1px solid #aeb8c6;
  border-radius: var(--ds-radius-md);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.wp-apply-dialog::backdrop {
  background: rgba(15, 23, 42, 0.56);
}

.wp-apply-dialog > div,
.wp-apply-dialog > label {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.wp-apply-dialog h2,
.wp-apply-dialog p {
  margin: 0;
}

.wp-apply-dialog label {
  color: #334155;
  font-weight: 850;
}

.wp-apply-dialog input,
.wp-apply-dialog select {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.6rem 0.7rem;
  color: #172033;
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: var(--ds-radius-sm);
  font: inherit;
}

.wp-apply-dialog small {
  color: #475569;
  font-weight: 700;
}

.wp-apply-dialog code {
  color: #7f1d1d;
  background: #fee2e2;
}

.wp-apply-dialog__close {
  display: flex;
  justify-content: flex-end;
  margin: -0.4rem -0.4rem 0;
}

.wp-apply-dialog__close button {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  color: #334155;
  background: transparent;
  border: 0;
  border-radius: var(--ds-radius-sm);
  font-size: 1.5rem;
  cursor: pointer;
}

.wp-apply-dialog__actions {
  display: flex !important;
  justify-content: flex-end;
  gap: var(--ds-space-2);
  margin: 0 !important;
}

.wp-calendar-list {
  display: grid;
  gap: var(--ds-space-2);
}

.wp-calendar-list article {
  justify-content: space-between;
  min-width: 0;
  padding: var(--ds-space-3);
  background: var(--ds-color-surface-muted);
  border-radius: var(--ds-radius-sm);
}

.wp-calendar-list article.is-overdue {
  border-left: 4px solid #b91c1c;
}

.wp-calendar-list time {
  color: var(--ds-color-text-muted);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .ds-kpi-grid,
  .ds-website-grid,
  .ds-risk-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ds-section--split,
  .ds-section--two-columns {
    grid-template-columns: 1fr;
  }

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

  .wp-console-filter-grid,
  .wp-console-command-grid,
  .wp-batch-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .wp-target-health section:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 820px) {
  .portal-cockpit-grid {
    grid-template-columns: 1fr;
  }

  .project-breadcrumb__menu {
    left: auto;
    right: 0;
    width: min(360px, calc(100vw - 24px));
  }

  .portal-app-page .auth-shell {
    padding: var(--ds-space-3);
    padding-bottom: 5rem;
  }

  .portal-app-page .portal-topbar {
    position: static;
  }

  .ds-app-shell {
    grid-template-columns: 1fr;
  }

  .ds-sidebar {
    display: none;
  }

  .ds-mobile-nav {
    position: fixed;
    right: var(--ds-space-3);
    bottom: var(--ds-space-3);
    left: var(--ds-space-3);
    z-index: 3200;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ds-space-1);
    padding: var(--ds-space-2);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-lg);
    box-shadow: var(--ds-shadow-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .ds-mobile-nav__item {
    min-width: 0;
    padding: 0.58rem 0.4rem;
    color: var(--ds-color-text-muted);
    text-align: center;
    text-decoration: none;
    border-radius: var(--ds-radius-sm);
    font-size: 0.78rem;
    font-weight: 850;
  }

  .ds-mobile-nav__item.is-active {
    color: var(--ds-color-text);
    background: var(--ds-color-primary-soft);
  }

  .ds-page-header,
  .ds-section__header,
  .ds-page-header__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ds-kpi-grid,
  .ds-website-grid,
  .ds-risk-board,
  .ds-scan-card__grid,
  .ds-website-card__facts {
    grid-template-columns: 1fr;
  }

  .ds-compliance-score {
    grid-template-columns: 1fr;
  }

  .wp-console-summary,
  .wp-console-filter-grid,
  .wp-console-command-grid,
  .wp-batch-controls,
  .wp-target-grid,
  .wp-target-facts,
  .wp-visual-profile-grid {
    grid-template-columns: 1fr;
  }

  .wp-target-card__head,
  .wp-calendar-list article {
    align-items: flex-start;
    flex-direction: column;
  }

  .wp-target-fact--wide {
    grid-column: auto;
  }

  .wp-target-health {
    grid-template-columns: 1fr;
  }

  .wp-target-health section {
    border-right: 0;
    border-bottom: 1px solid #e1e6ed;
  }

  .wp-target-health section:last-child {
    border-bottom: 0;
  }

  .wp-visual-profile-wide {
    grid-column: auto;
  }

  .wp-batch-confirm {
    grid-column: auto;
  }

  .wp-batch-bar {
    right: var(--ds-space-3);
    bottom: 5.5rem;
    left: var(--ds-space-3);
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

.project-context-health {
  display: grid;
  gap: var(--ds-space-4);
}

.project-context-health__main {
  display: grid;
  gap: var(--ds-space-1);
}

.project-context-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
}

.project-scope-step {
  display: grid;
  gap: var(--ds-space-3);
}

.project-scope-list--compact {
  gap: var(--ds-space-2);
}

.project-context-textarea {
  width: 100%;
}
.denylist-page .ds-app-main {
  gap: var(--ds-space-5);
}

.denylist-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md);
}

.denylist-summary div {
  display: grid;
  gap: var(--ds-space-1);
  min-width: 0;
  padding: var(--ds-space-4);
}

.denylist-summary div + div {
  border-left: 1px solid var(--ds-color-border);
}

.denylist-summary dt {
  color: var(--ds-color-text-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.denylist-summary dd {
  margin: 0;
  color: var(--ds-color-text);
  font-size: 1.6rem;
  font-weight: 900;
}

.denylist-section {
  display: grid;
  gap: var(--ds-space-4);
  padding: var(--ds-space-5);
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md);
}

.denylist-section__header {
  display: flex;
  gap: var(--ds-space-3);
  align-items: flex-start;
  justify-content: space-between;
}

.denylist-section__header h2,
.denylist-section__header p {
  margin: 0;
}

.denylist-section__header h2 {
  color: var(--ds-color-text);
  font-size: 1.15rem;
}

.denylist-section__header p {
  margin-top: var(--ds-space-1);
  color: var(--ds-color-text-muted);
}

.denylist-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(280px, 1.8fr) auto;
  gap: var(--ds-space-3);
  align-items: end;
}

.denylist-form select,
.denylist-form input {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.58rem 0.7rem;
  color: var(--ds-color-text);
  background: var(--ds-color-surface-muted);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
  font: inherit;
}

.denylist-form select:focus,
.denylist-form input:focus {
  border-color: var(--ds-color-primary);
  outline: 3px solid var(--ds-color-primary-soft);
}

.denylist-form .primary-action {
  min-height: 2.65rem;
  white-space: nowrap;
}

.denylist-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
}

.denylist-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.denylist-table th,
.denylist-table td {
  padding: var(--ds-space-3) var(--ds-space-4);
  border-bottom: 1px solid var(--ds-color-border);
  color: var(--ds-color-text);
  text-align: left;
  vertical-align: middle;
}

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

.denylist-table th {
  color: var(--ds-color-text-muted);
  background: var(--ds-color-surface-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.denylist-table code {
  color: var(--ds-color-text);
  overflow-wrap: anywhere;
}

.denylist-table__action {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.denylist-table .secondary-action {
  color: var(--ds-color-text);
  background: var(--ds-color-surface-muted);
  border-color: var(--ds-color-border);
  box-shadow: none;
}

.denylist-table .secondary-action:hover,
.denylist-table .secondary-action:focus-visible {
  color: var(--ds-color-text);
  background: var(--ds-color-primary-soft);
  border-color: var(--ds-color-primary);
}

.denylist-kind {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  color: var(--ds-color-text);
  background: var(--ds-color-surface-muted);
  border-radius: var(--ds-radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .denylist-summary,
  .denylist-form {
    grid-template-columns: 1fr;
  }

  .denylist-summary div + div {
    border-top: 1px solid var(--ds-color-border);
    border-left: 0;
  }

  .denylist-form .primary-action {
    width: 100%;
  }

  .denylist-table-wrap {
    overflow: visible;
    border: 0;
  }

  .denylist-table {
    display: block;
    min-width: 0;
  }

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

  .denylist-table tbody {
    display: grid;
    gap: var(--ds-space-2);
  }

  .denylist-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--ds-space-2);
    padding: var(--ds-space-3);
    background: var(--ds-color-surface-muted);
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-sm);
  }

  .denylist-table td {
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .denylist-table td:nth-child(2) {
    grid-column: 1 / -1;
  }

  .denylist-table__action {
    grid-row: 1;
    grid-column: 2;
    width: auto;
  }

  .denylist-table code {
    display: block;
    width: 100%;
    font-size: 0.72rem;
    overflow-wrap: anywhere;
  }
}
