:root {
  --ui-scale: 1;
  --deep-sea: #061827;
  --blueberry: #0019fe;
  --ocean: #0080a9;
  --raspberry: #c91268;
  --carrot: #f5911e;
  --lime: #c6ff3a;
  --ice: #f0f6ff;
  --sky: #10a4b3;
  --dusk: #061827;
  --line: rgba(16, 164, 179, 0.58);
  --line-soft: rgba(16, 164, 179, 0.28);
  --panel-bg: rgba(6, 24, 39, 0.92);
  --panel-bg-soft: rgba(6, 24, 39, 0.76);
  --panel-border: rgba(16, 164, 179, 0.58);
  --app-max-width: 1220px;
  --section-side-width: 220px;
  --panel-radius: 22px;
  --panel-padding: 18px;
  --panel-min-height: 200px;
  --control-height: 48px;
  --option-pill-height: 50px;
  --button-height: 34px;
  --form-label-col: 240px;
  --form-input-col: 380px;
  --shadow-lg: 0 22px 48px rgba(0, 3, 12, 0.55);
  --shadow-sm: 0 10px 20px rgba(0, 2, 8, 0.4);
}

@media (min-width: 1360px) and (max-width: 1728px) {
  :root {
    --ui-scale: 1.08;
    --app-max-width: 1380px;
    --section-side-width: 246px;
    --panel-padding: 20px;
    --panel-min-height: 220px;
    --control-height: 52px;
    --option-pill-height: 54px;
    --button-height: 38px;
    --form-label-col: 260px;
    --form-input-col: 430px;
  }
}

@font-face {
  font-family: "Telegraf Regular";
  src: url("./assets/fonts/telegraf-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "Telegraf Regular";
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ice);
  background-color: #061827;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(6, 24, 39, 0.82), rgba(6, 24, 39, 0.95)),
    url("./assets/branding/bg-2.avif") center / cover no-repeat;
}

body[data-step="registration"]::before {
  background:
    linear-gradient(180deg, rgba(6, 24, 39, 0.8), rgba(6, 24, 39, 0.94)),
    url("./assets/branding/bg-1.avif") center / cover no-repeat;
}

body[data-step="currentArchitecture"]::before,
body[data-step="futureArchitecture"]::before,
body[data-step="nextSteps"]::before,
body[data-step="final"]::before {
  background:
    linear-gradient(180deg, rgba(6, 24, 39, 0.85), rgba(6, 24, 39, 0.96)),
    url("./assets/branding/bg-3.avif") center / cover no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90rem 38rem at -14% -20%, rgba(16, 164, 179, 0.2), transparent 62%),
    radial-gradient(64rem 24rem at 110% -12%, rgba(198, 255, 58, 0.07), transparent 68%);
}

.bg-glow {
  display: none;
}

.bg-glow-a {
  width: 460px;
  height: 460px;
  background: var(--ocean);
  top: -140px;
  right: -80px;
}

.bg-glow-b {
  width: 420px;
  height: 420px;
  background: var(--blueberry);
  bottom: -180px;
  left: -140px;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(var(--app-max-width), 95vw);
  margin: 14px auto 40px;
  display: grid;
  gap: calc(16px * var(--ui-scale));
}

body[data-step="admin"] .app-shell,
body[data-step="projectManagement"] .app-shell {
  width: min(99vw, 1980px);
  max-width: none;
  margin: 8px auto 14px;
  gap: clamp(10px, 1.1vw, 18px);
}

body[data-step="admin"] .brand-row,
body[data-step="projectManagement"] .brand-row {
  padding: 6px 2px 2px;
}

.brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px;
}

.brand-logo {
  width: clamp(calc(220px * var(--ui-scale)), 26vw, calc(340px * var(--ui-scale)));
  height: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(16, 164, 179, 0.18));
}

.brand-home {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: block;
  cursor: pointer;
}

.brand-caption {
  margin: 8px 0 0 2px;
  color: rgba(240, 246, 255, 0.78);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.brand-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

.btn-admin {
  min-width: 112px;
}

.progress-wrap {
  max-width: min(760px, 62vw);
}

.progress-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-pill {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  color: rgba(240, 246, 255, 0.8);
  background: rgba(1, 22, 40, 0.5);
}

.progress-pill.done {
  border-color: rgba(198, 255, 58, 0.52);
  color: var(--lime);
}

.progress-pill.active {
  border-color: var(--sky);
  color: var(--ice);
  background: rgba(16, 164, 179, 0.2);
}

.screen {
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(6, 24, 39, 0.92), rgba(5, 25, 42, 0.88));
  box-shadow: 0 16px 32px rgba(0, 4, 16, 0.44);
  padding: calc(20px * var(--ui-scale));
}

.admin-login-panel {
  max-width: 760px;
  margin: 0 auto;
}

.admin-login-card {
  width: min(620px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 10px 6px 4px;
}

.admin-login-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.admin-login-row label {
  font-weight: 700;
  font-size: 1.05rem;
  color: rgba(240, 246, 255, 0.94);
}

.admin-login-actions {
  justify-content: center;
}

.admin-panel {
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  background: rgba(6, 24, 39, 0.84);
  box-shadow: var(--shadow-sm);
  padding: var(--panel-padding);
}

body[data-step="admin"] .admin-panel,
body[data-step="projectManagement"] .admin-panel {
  min-height: calc(100vh - 118px);
  padding: clamp(14px, 1.2vw, 22px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

body[data-step="admin"] .admin-panel > .admin-table-wrap,
body[data-step="projectManagement"] .admin-panel > .admin-project-shell {
  min-height: 0;
  height: 100%;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-head .section-title {
  margin: 0;
}

.admin-inline-actions {
  display: flex;
  gap: 8px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(5, 30, 50, 0.72);
}

body[data-step="admin"] .admin-table-wrap {
  max-height: calc(100vh - 214px);
  min-height: 0;
  overflow-y: auto;
}

.admin-table {
  width: 100%;
  min-width: 2400px;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(16, 164, 179, 0.2);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 0.87rem;
  line-height: 1.35;
  min-width: 140px;
  max-width: 180px;
}

.admin-table th {
  position: sticky;
  top: 0;
  background: rgba(6, 35, 58, 0.96);
  color: rgba(240, 246, 255, 0.96);
  font-weight: 800;
  z-index: 1;
}

.admin-table td {
  color: rgba(240, 246, 255, 0.92);
}

.admin-cell-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-height: calc(1.35em * 2);
}

.admin-empty {
  text-align: center;
  color: rgba(240, 246, 255, 0.76);
  padding: 22px 12px;
}

.admin-panel-hint {
  margin: 6px 0 0;
  color: rgba(240, 246, 255, 0.76);
  font-size: 0.84rem;
  line-height: 1.4;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-tab {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(6, 35, 58, 0.72);
  color: rgba(240, 246, 255, 0.86);
  padding: 8px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.admin-tab:hover {
  border-color: var(--line);
  background: rgba(7, 52, 82, 0.78);
}

.admin-tab.active {
  border-color: rgba(198, 255, 58, 0.8);
  background: rgba(198, 255, 58, 0.18);
  color: rgba(240, 246, 255, 0.98);
}

.admin-empty-state {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  background: rgba(6, 35, 58, 0.56);
}

.admin-empty-state h3 {
  margin: 0;
}

.admin-empty-state p {
  margin: 10px 0 0;
  color: rgba(240, 246, 255, 0.8);
}

.admin-project-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

body[data-step="projectManagement"] .admin-project-shell {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(10px, 1vw, 16px);
  min-height: 0;
  height: 100%;
}

body[data-step="projectManagement"] .admin-project-list {
  max-height: calc(100vh - 214px);
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.admin-project-list {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(5, 30, 50, 0.72);
  padding: 12px;
  display: grid;
  gap: 10px;
}

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

.admin-project-items {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 280px);
  overflow: auto;
  padding-right: 4px;
}

body[data-step="projectManagement"] .admin-project-items {
  max-height: none;
  min-height: 0;
}

.admin-project-item {
  border: 1px solid rgba(16, 164, 179, 0.32);
  border-radius: 12px;
  background: rgba(7, 46, 74, 0.7);
  color: rgba(240, 246, 255, 0.92);
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.admin-project-item:hover {
  border-color: var(--line);
}

.admin-project-item.active {
  border-color: rgba(198, 255, 58, 0.85);
  box-shadow: 0 0 0 1px rgba(198, 255, 58, 0.25) inset;
}

.admin-project-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.admin-project-item-title {
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-project-item-subtitle {
  margin: 0;
  font-size: 0.77rem;
  color: rgba(240, 246, 255, 0.78);
}

.admin-project-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  color: rgba(240, 246, 255, 0.8);
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-status-badge.is-good {
  border-color: rgba(198, 255, 58, 0.62);
  background: rgba(198, 255, 58, 0.16);
  color: #cfff65;
}

.admin-status-badge.is-neutral {
  border-color: rgba(16, 164, 179, 0.52);
  background: rgba(16, 164, 179, 0.16);
  color: #9ee0e7;
}

.admin-status-badge.is-warn {
  border-color: rgba(245, 145, 30, 0.66);
  background: rgba(245, 145, 30, 0.2);
  color: #ffcf97;
}

.admin-status-badge.is-bad {
  border-color: rgba(201, 18, 104, 0.7);
  background: rgba(201, 18, 104, 0.22);
  color: #ffd5ea;
}

.admin-project-detail {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(5, 30, 50, 0.74);
  padding: 14px;
  display: grid;
  gap: 12px;
}

body[data-step="projectManagement"] .admin-project-detail {
  gap: 10px;
  padding: clamp(12px, 1vw, 16px);
  min-height: 0;
  height: 100%;
  max-height: calc(100vh - 214px);
  overflow: auto;
}

.admin-project-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.admin-project-summary .section-title {
  margin: 0;
}

.admin-progress-stats {
  display: grid;
  justify-items: end;
  gap: 5px;
  font-size: 0.78rem;
  color: rgba(240, 246, 255, 0.82);
}

.admin-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(6, 24, 39, 0.72);
  overflow: hidden;
}

.admin-progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(16, 164, 179, 0.9), rgba(198, 255, 58, 0.92));
}

.admin-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
}

.admin-field {
  display: grid;
  gap: 6px;
}

.admin-field span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(240, 246, 255, 0.78);
  font-weight: 700;
}

.admin-field .input,
.admin-field .select {
  width: 100%;
  max-width: none;
}

.admin-field-customer,
.admin-field-project-name {
  grid-column: 1;
}

.admin-readonly-field .input {
  color: rgba(240, 246, 255, 0.76);
}

.admin-project-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.admin-textarea {
  width: 100%;
  border: 1px solid var(--sky);
  border-radius: 14px;
  background: rgba(7, 47, 76, 0.72);
  color: var(--ice);
  padding: 10px 12px;
  min-height: 98px;
  resize: vertical;
}

.admin-textarea::placeholder {
  color: rgba(240, 246, 255, 0.52);
}

.admin-history-wrap {
  margin-top: 8px;
  border: 1px solid rgba(16, 164, 179, 0.28);
  border-radius: 12px;
  background: rgba(6, 35, 58, 0.42);
  padding: 8px 10px;
  display: grid;
  gap: 8px;
}

.admin-history-title {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(240, 246, 255, 0.76);
  font-weight: 700;
}

.admin-history-empty {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(240, 246, 255, 0.68);
}

.admin-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.admin-history-item {
  border: 1px solid rgba(16, 164, 179, 0.24);
  border-radius: 10px;
  padding: 7px 8px;
  background: rgba(7, 47, 76, 0.6);
}

.admin-history-item.is-active {
  border-color: rgba(16, 164, 179, 0.4);
}

.admin-history-item.is-closed {
  border-color: rgba(201, 18, 104, 0.34);
  background: rgba(201, 18, 104, 0.12);
}

.admin-history-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: rgba(240, 246, 255, 0.9);
}

.admin-history-item.is-closed .admin-history-text {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(240, 246, 255, 0.65);
  color: rgba(240, 246, 255, 0.62);
}

.admin-history-meta {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: rgba(240, 246, 255, 0.7);
}

.admin-stage-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(5, 30, 50, 0.72);
}

body[data-step="projectManagement"] .admin-stage-wrap {
  max-height: calc(100vh - 320px);
  min-height: 0;
}

.admin-stage-table {
  width: 100%;
  min-width: 1680px;
  border-collapse: collapse;
}

.admin-stage-table th,
.admin-stage-table td {
  border-bottom: 1px solid rgba(16, 164, 179, 0.2);
  padding: 9px 10px;
  text-align: left;
  vertical-align: middle;
  font-size: 0.83rem;
}

.admin-stage-table th {
  position: sticky;
  top: 0;
  background: rgba(6, 35, 58, 0.96);
  z-index: 1;
}

.admin-stage-table .input,
.admin-stage-table .select {
  width: 100%;
  max-width: none;
  min-width: 140px;
}

.admin-scope-wrap h4 {
  margin: 0;
  font-size: 0.95rem;
}

.admin-scope-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(5, 30, 50, 0.72);
  margin-top: 8px;
}

body[data-step="projectManagement"] .admin-scope-table-wrap {
  max-height: calc(100vh - 430px);
  min-height: 0;
}

.admin-scope-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

.admin-scope-table th,
.admin-scope-table td {
  border-bottom: 1px solid rgba(16, 164, 179, 0.2);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 0.82rem;
}

.admin-scope-table th {
  background: rgba(6, 35, 58, 0.96);
  color: rgba(240, 246, 255, 0.96);
  font-weight: 800;
}

.screen-title {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0.01em;
  background: linear-gradient(94deg, #2ac7d5 3%, #70d6a2 45%, #c6ff3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.35px rgba(198, 255, 58, 0.18);
  text-shadow: 0 0 1px rgba(198, 255, 58, 0.18);
}

.screen-subtitle {
  margin: 10px 0 0;
  text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 2.15rem);
  color: rgba(240, 246, 255, 0.95);
  font-weight: 820;
  -webkit-text-stroke: 0.25px rgba(240, 246, 255, 0.24);
  text-shadow: 0 0 1px rgba(240, 246, 255, 0.12);
}

.form-card {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 24px 12px 18px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.form-grid {
  display: grid;
  gap: calc(16px * var(--ui-scale));
  width: fit-content;
  margin: calc(28px * var(--ui-scale)) auto 0;
}

.form-row {
  display: grid;
  grid-template-columns: var(--form-label-col) var(--form-input-col);
  align-items: center;
  gap: calc(12px * var(--ui-scale));
}

.form-row .input,
.form-row .select {
  width: 100%;
  justify-self: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-row label {
  font-weight: 700;
  font-size: 1.07rem;
  color: rgba(240, 246, 255, 0.95);
}

.input,
.select,
.timeline-select,
.stack-select {
  width: 100%;
  min-height: var(--control-height);
  border-radius: 999px;
  border: 1px solid var(--sky);
  background: rgba(7, 38, 64, 0.9);
  color: var(--ice);
  padding: 0 calc(16px * var(--ui-scale));
  font-size: calc(1rem * var(--ui-scale));
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: menulist;
}

.timeline-select {
  font-size: calc(0.84rem * var(--ui-scale));
  padding-left: calc(12px * var(--ui-scale));
  padding-right: calc(30px * var(--ui-scale));
  letter-spacing: 0;
}

.input:focus,
.select:focus,
.timeline-select:focus,
.stack-select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px rgba(198, 255, 58, 0.18);
}

.select option,
.timeline-select option,
.stack-select option {
  background: #072947;
}

.error-message {
  margin-top: 12px;
  color: #ffd3e9;
  font-weight: 600;
  font-size: 0.94rem;
  text-align: center;
}

.form-actions {
  justify-content: center;
  margin-top: 16px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: calc(7px * var(--ui-scale)) calc(15px * var(--ui-scale));
  min-height: var(--button-height);
  font-size: calc(0.98rem * var(--ui-scale));
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(0);
}

.btn-confirm {
  background: var(--lime);
  color: #01233b;
}

.btn-reset {
  background: var(--raspberry);
  color: #ffeaf4;
}

.btn-back,
.btn-secondary {
  background: rgba(6, 43, 70, 0.8);
  border: 1px solid var(--line);
  color: var(--ice);
}

.context-panel,
.decision-panel,
.project-panel,
.stack-panel,
.architecture-panel,
.next-steps-panel,
.final-panel {
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  background: rgba(6, 24, 39, 0.84);
  box-shadow: var(--shadow-sm);
  padding: var(--panel-padding);
}

.context-panel,
.decision-panel {
  min-height: var(--panel-min-height);
}

.context-customers {
  display: grid;
  align-items: center;
}

.context-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.label-rail {
  border: 1px solid var(--sky);
  border-radius: calc(18px * var(--ui-scale));
  width: calc(var(--section-side-width) - calc(10px * var(--ui-scale)));
  min-height: calc(74px * var(--ui-scale));
  padding: calc(8px * var(--ui-scale)) calc(14px * var(--ui-scale));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  font-size: calc(1rem * var(--ui-scale));
  font-weight: 800;
  color: rgba(240, 246, 255, 0.95);
  background: rgba(5, 35, 58, 0.76);
}

.customer-wrap {
  display: grid;
  grid-template-columns: var(--section-side-width) 1fr;
  gap: 14px;
  align-items: center;
  min-height: 100%;
}

.context-customers .label-rail {
  align-self: center;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px 20px;
  align-items: center;
}

.logo-pill {
  min-height: 64px;
  padding: 4px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(240, 246, 255, 0.94);
  font-weight: 700;
  font-size: 0.93rem;
}

.logo-pill img {
  max-width: 100%;
  max-height: 46px;
  object-fit: contain;
  filter: none;
}

.logo-has-image {
  padding: 4px;
}

.insights-wrap {
  display: grid;
  grid-template-columns: var(--section-side-width) 1fr;
  gap: 14px;
  align-items: center;
}

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

.insight-card {
  margin: 0;
  color: rgba(240, 246, 255, 0.9);
  font-size: 0.99rem;
  line-height: 1.45;
}

.insight-card a {
  color: var(--sky);
  font-weight: 700;
  text-decoration: none;
}

.insight-card a:hover {
  text-decoration: underline;
}

.decision-journey {
  display: grid;
  gap: 0;
}

.decision-journey-history {
  margin-bottom: 8px;
}

.decision-panel.is-current-panel {
  border-color: var(--panel-border);
  box-shadow: var(--shadow-sm);
}

.decision-panel.is-previous-panel {
  border-color: var(--panel-border);
  opacity: 1;
}

.journey-connector {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0;
  margin: -1px 0 -1px;
}

.journey-line {
  display: block;
  width: 1px;
  height: 16px;
  background: rgba(16, 164, 179, 0.7);
}

.journey-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.journey-pill {
  border-radius: 999px;
  border: 1px solid rgba(198, 255, 58, 0.72);
  background: rgba(198, 255, 58, 0.94);
  color: #02253d;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 800;
  padding: 5px 12px;
}

.decision-layout,
.project-layout,
.stack-layout,
.architecture-layout,
.next-layout,
.final-layout {
  display: grid;
  grid-template-columns: var(--section-side-width) 1fr;
  gap: 14px;
  align-items: center;
}

.decision-side,
.section-side {
  display: grid;
  align-content: center;
  gap: 12px;
}

.decision-side .choice-hint {
  text-align: center;
}

.decision-side .action-row,
.section-side .action-row {
  width: 100%;
}

.decision-side .side-pair-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 0;
}

.decision-side .side-pair-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.section-side .side-pair-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 0;
}

.section-side .side-pair-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.panel-back-outside {
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--section-side-width);
  margin-top: 8px;
  margin-left: var(--panel-padding);
}

.panel-back-outside .btn-back {
  min-width: calc(var(--section-side-width) - calc(8px * var(--ui-scale)));
  justify-content: center;
}

.choice-hint {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: rgba(240, 246, 255, 0.72);
}

.capability-focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198, 255, 58, 0.62);
  border-radius: 999px;
  background: rgba(198, 255, 58, 0.12);
  color: rgba(198, 255, 58, 0.96);
  font-weight: 700;
  min-height: 28px;
  padding: 4px 10px;
}

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

.path-strip {
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.path-chip {
  border: 1px solid rgba(16, 164, 179, 0.52);
  background: rgba(8, 43, 71, 0.75);
  border-radius: 999px;
  color: rgba(240, 246, 255, 0.92);
  font-size: 0.79rem;
  font-weight: 700;
  padding: 5px 12px;
}

.option-grid {
  position: relative;
  display: grid;
  gap: 10px 14px;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
}

.option-grid[data-option-grid="economicImpact"] {
  grid-template-columns: repeat(2, minmax(210px, 1fr));
}

.option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  grid-template-rows: auto auto;
  gap: 7px 8px;
  align-items: center;
}

.option-row-readonly {
  grid-template-columns: minmax(0, 1fr) 24px;
}

.option-row-no-info {
  grid-template-columns: minmax(0, 1fr);
}

.option-pill {
  width: 100%;
  min-height: var(--option-pill-height);
  border-radius: 999px;
  border: 1px solid var(--sky);
  background: rgba(6, 40, 66, 0.76);
  color: var(--ice);
  font-size: calc(0.95rem * var(--ui-scale));
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: calc(10px * var(--ui-scale)) calc(14px * var(--ui-scale));
  cursor: pointer;
  transition: transform 0.14s ease, background 0.18s ease, color 0.18s ease;
  grid-column: 1;
  grid-row: 1;
}

.option-pill:hover {
  transform: translateY(-1px);
}

.option-pill.selected {
  background: var(--lime);
  color: #012336;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(198, 255, 58, 0.22);
}

.option-pill.is-readonly {
  cursor: default;
}

.option-pill.is-summary {
  cursor: default;
  pointer-events: none;
}

.option-row-summary {
  grid-template-columns: minmax(0, 1fr);
}

.option-row-summary .option-pill {
  grid-column: 1;
}

.option-grid-summary {
  grid-template-columns: repeat(3, minmax(210px, 1fr));
}

.option-pill.is-required {
  animation: shake 0.42s ease;
}

.option-trend {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.option-trend::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: url("./assets/icons/trend-arrow-teal.svg") center / contain no-repeat;
}

.option-trend.down::before {
  transform: rotate(180deg);
}

.option-trend.neutral::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10a4b3;
}

.info-button {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(16, 164, 179, 0.24);
  background: rgba(6, 35, 58, 0.9);
  color: rgba(240, 246, 255, 0.94);
  border-radius: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
  grid-column: 2;
  grid-row: 1;
}

.info-button:hover {
  background: rgba(16, 164, 179, 0.16);
  border-color: rgba(16, 164, 179, 0.5);
}

.info-button::before {
  content: "";
  width: 12px;
  height: 12px;
  background: url("./assets/icons/tooltip-doc-white.svg") center / contain no-repeat;
  display: block;
}

.info-button::after {
  display: none;
}

.tooltip {
  position: absolute;
  z-index: 20;
  max-width: min(420px, 85vw);
  border: 1px solid rgba(240, 246, 255, 0.52);
  background: rgba(5, 31, 54, 0.98);
  border-radius: 14px;
  padding: 12px 13px;
  font-size: 0.95rem;
  line-height: 1.34;
  white-space: pre-line;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.5);
}

.option-source {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  color: rgba(198, 255, 58, 0.88);
  font-weight: 700;
  margin-left: 4px;
}

.tooltip::after {
  content: "";
  position: absolute;
  left: 16px;
  top: -7px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(240, 246, 255, 0.52);
  border-left: 1px solid rgba(240, 246, 255, 0.52);
  transform: rotate(45deg);
  background: rgba(5, 31, 54, 0.98);
}

.section-title {
  margin: 0;
  font-size: clamp(1.14rem, 2vw, 1.45rem);
  color: rgba(240, 246, 255, 0.95);
  font-weight: 700;
}

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

.project-header,
.project-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(8, minmax(90px, 1fr));
}

.project-header {
  color: rgba(240, 246, 255, 0.75);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.project-header-cell {
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.14;
  min-height: 44px;
}

.project-goals-side .action-row {
  justify-content: center;
}

.project-cell {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  min-height: 44px;
  padding: 8px 10px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.89rem;
  line-height: 1.2;
  background: rgba(6, 35, 59, 0.7);
}

.project-cell.active {
  background: rgba(198, 255, 58, 0.9);
  border-color: transparent;
  color: #02263d;
  font-weight: 800;
}

.stack-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.stack-card {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(6, 35, 59, 0.72);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.stack-label {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(240, 246, 255, 0.78);
}

.architecture-shell {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  background: rgba(4, 30, 50, 0.66);
}

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

.metric-chip {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  text-align: center;
  background: rgba(6, 25, 45, 0.85);
  overflow: hidden;
}

.metric-block {
  padding: 8px 8px;
  display: grid;
  gap: 4px;
  justify-items: center;
}

.metric-block + .metric-block {
  border-top: 1px solid rgba(16, 164, 179, 0.3);
}

.metric-block h4 {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(240, 246, 255, 0.78);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.metric-value {
  margin: 0;
  font-size: 1.27rem;
  font-weight: 800;
  line-height: 1.08;
}

.metric-block.metric-latency .metric-value {
  color: var(--raspberry);
}

.metric-block.metric-availability .metric-value {
  color: var(--sky);
}

.metric-block.metric-total-cost .metric-value {
  color: var(--lime);
}

.metric-throughput {
  display: block;
  margin-top: 0;
  border-top: 1px solid rgba(16, 164, 179, 0.28);
  padding: 8px 8px 9px;
  color: rgba(240, 246, 255, 0.85);
  font-size: 0.83rem;
  font-weight: 700;
}

.diagram-board {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 12px;
  background: rgba(6, 28, 47, 0.72);
}

.architecture-diagram {
  display: grid;
  gap: 12px;
}

.arch-zone-grid {
  display: grid;
  gap: 10px;
}

.arch-zone {
  border: 1px solid rgba(16, 164, 179, 0.42);
  border-radius: 12px;
  background: rgba(4, 28, 48, 0.55);
  padding: 10px;
}

.arch-zone h4 {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 800;
  color: rgba(240, 246, 255, 0.9);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.arch-zone-nodes {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.arch-component-node {
  --arch-comp-color: rgba(240, 246, 255, 0.45);
  border: 1px solid var(--arch-comp-color);
  border-radius: 11px;
  min-height: 54px;
  padding: 6px 8px;
  background: rgba(8, 42, 67, 0.65);
  display: grid;
  gap: 3px;
  place-items: center;
  text-align: center;
  min-width: 0;
}

.arch-component-node.compact {
  min-height: 46px;
  padding: 5px 6px;
  min-width: 0;
}

.arch-component-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(240, 246, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.arch-component-value {
  font-size: 0.83rem;
  font-weight: 800;
  color: rgba(240, 246, 255, 0.96);
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.comp-deployment {
  --arch-comp-color: rgba(16, 164, 179, 0.95);
}

.comp-primary-db {
  --arch-comp-color: rgba(0, 25, 254, 0.95);
}

.comp-kv-store {
  --arch-comp-color: rgba(198, 255, 58, 0.92);
}

.comp-streaming {
  --arch-comp-color: rgba(0, 128, 169, 0.95);
}

.comp-search {
  --arch-comp-color: rgba(201, 18, 104, 0.95);
}

.comp-vector {
  --arch-comp-color: rgba(245, 145, 30, 0.92);
}

.comp-framework {
  --arch-comp-color: rgba(180, 196, 214, 0.92);
}

.comp-runtime {
  --arch-comp-color: rgba(106, 222, 162, 0.9);
}

.comp-hazelcast {
  --arch-comp-color: rgba(198, 255, 58, 0.98);
}

.comp-hazelcast .arch-component-value {
  color: rgba(198, 255, 58, 0.98);
}

.arch-flow {
  border: 1px solid rgba(16, 164, 179, 0.4);
  border-radius: 12px;
  background: rgba(4, 28, 48, 0.45);
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.arch-flow > * {
  min-width: 0;
}

.arch-flow-node {
  border: 1px solid rgba(240, 246, 255, 0.36);
  border-radius: 10px;
  min-height: 38px;
  padding: 4px 6px;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(10, 40, 65, 0.6);
  font-size: 0.73rem;
  line-height: 1.15;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.arch-flow-static {
  color: rgba(240, 246, 255, 0.9);
}

.arch-flow-arrow {
  text-align: center;
  color: rgba(16, 164, 179, 0.9);
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1;
}

.arch-flow .arch-component-node.compact .arch-component-label {
  font-size: 0.6rem;
}

.arch-flow .arch-component-node.compact .arch-component-value {
  font-size: 0.72rem;
  line-height: 1.12;
}

.arch-flow-note {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(240, 246, 255, 0.78);
  line-height: 1.3;
}

.arch-legend {
  border-top: 1px solid rgba(16, 164, 179, 0.35);
  padding-top: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.arch-legend-item {
  --arch-comp-color: rgba(240, 246, 255, 0.42);
  border: 1px solid rgba(16, 164, 179, 0.36);
  border-radius: 10px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 31, 52, 0.58);
}

.arch-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid var(--arch-comp-color);
  background: var(--arch-comp-color);
  opacity: 0.45;
  flex: 0 0 12px;
}

.arch-legend-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.arch-legend-label {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(240, 246, 255, 0.75);
  font-weight: 700;
}

.arch-legend-value {
  font-size: 0.8rem;
  color: rgba(240, 246, 255, 0.95);
  font-weight: 700;
  line-height: 1.2;
}

.arch-notes {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(240, 246, 255, 0.88);
  font-size: 0.94rem;
  line-height: 1.35;
}

.arch-notes-selectable {
  padding-left: 0;
}

.arch-note-option {
  list-style: none;
}

.arch-note-choice {
  border: 1px solid rgba(16, 164, 179, 0.36);
  border-radius: 10px;
  background: rgba(6, 31, 52, 0.58);
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
  cursor: pointer;
}

.arch-note-choice input {
  margin-top: 2px;
  accent-color: var(--lime);
}

.arch-note-option.selected .arch-note-choice {
  border-color: rgba(198, 255, 58, 0.72);
  background: rgba(198, 255, 58, 0.1);
}

.arch-note-good {
  color: rgba(198, 255, 58, 0.94);
}

.next-grid {
  display: grid;
  gap: 14px;
}

.comparison-wrap {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr) minmax(260px, 1.2fr);
  gap: 14px;
}

.compare-card,
.narrative-card {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px;
  background: rgba(6, 35, 59, 0.72);
}

.compare-card h3,
.narrative-card h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  color: rgba(240, 246, 255, 0.96);
}

.narrative-card p {
  margin: 0;
  line-height: 1.42;
  color: rgba(240, 246, 255, 0.88);
}

.cta-grid {
  display: grid;
  gap: 10px;
}

.cta-option {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 35, 59, 0.72);
  color: var(--ice);
  padding: 14px;
  text-align: center;
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.cta-option.active {
  background: rgba(198, 255, 58, 0.9);
  color: #02253c;
  border-color: transparent;
}

.next-followup-card {
  border: 1px solid var(--sky);
  border-radius: 14px;
  background: rgba(5, 33, 56, 0.76);
  min-height: 72px;
  display: grid;
  gap: 8px;
  padding: 10px 14px;
}

.next-followup-title {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(240, 246, 255, 0.82);
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.next-followup-input {
  width: 100%;
}

.final-note {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.final-note h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.final-note p {
  margin: 16px 0 0;
  line-height: 1.46;
  font-size: 1.06rem;
  color: rgba(240, 246, 255, 0.9);
}

.summary-grid {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.summary-item {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(6, 35, 59, 0.72);
  padding: 12px;
}

.summary-item h4 {
  margin: 0;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(240, 246, 255, 0.78);
}

.summary-item p {
  margin: 8px 0 0;
  font-weight: 700;
  color: rgba(240, 246, 255, 0.96);
}

.screen-error {
  margin: 0;
  color: #ffd3e9;
  font-weight: 700;
  font-size: 0.94rem;
}

.hidden {
  display: none !important;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

@media (max-width: 1560px) {
  body[data-step="projectManagement"] .admin-project-shell {
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  }

  .admin-stage-table {
    min-width: 1540px;
  }

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

@media (max-width: 1180px) {
  .logo-grid {
    grid-template-columns: repeat(5, minmax(100px, 1fr));
    gap: 10px 14px;
  }

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

  .option-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  .project-header,
  .project-row {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
  }

  .comparison-wrap {
    grid-template-columns: 1fr;
  }

  .arch-zone-nodes {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .arch-legend {
    grid-template-columns: 1fr;
  }

  body[data-step="admin"] .app-shell,
  body[data-step="projectManagement"] .app-shell {
    width: 99vw;
    max-width: none;
  }
}

@media (max-width: 940px) {
  .form-grid {
    width: 100%;
    margin-top: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-row .input,
  .form-row .select {
    width: 100%;
    max-width: 100%;
  }

  .customer-wrap,
  .insights-wrap,
  .decision-layout,
  .project-layout,
  .stack-layout,
  .architecture-layout,
  .next-layout,
  .final-layout,
  .architecture-shell {
    grid-template-columns: 1fr;
  }

  .decision-side,
  .section-side {
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-items: center;
  }

  .panel-back-outside {
    width: 100%;
    margin-left: 0;
  }

  .action-row {
    margin-top: 0;
  }

  .stack-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

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

  .admin-login-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .admin-project-items {
    max-height: 320px;
  }

  body[data-step="projectManagement"] .admin-project-items {
    max-height: 320px;
  }

  .admin-project-summary {
    flex-direction: column;
  }

  .admin-progress-stats {
    justify-items: start;
  }

  .admin-project-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

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

  body[data-step="admin"] .admin-panel,
  body[data-step="projectManagement"] .admin-panel {
    min-height: auto;
  }

  body[data-step="projectManagement"] .admin-stage-wrap,
  body[data-step="projectManagement"] .admin-scope-table-wrap,
  body[data-step="admin"] .admin-table-wrap {
    max-height: none;
  }

  body[data-step="projectManagement"] .admin-project-list,
  body[data-step="projectManagement"] .admin-project-detail {
    max-height: none;
  }

  body[data-step="projectManagement"] .admin-project-detail {
    overflow: visible;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(96vw, 560px);
    margin-top: 10px;
  }

  body[data-step="admin"] .app-shell,
  body[data-step="projectManagement"] .app-shell {
    width: 96vw;
    margin-top: 10px;
  }

  .screen,
  .context-panel,
  .decision-panel,
  .project-panel,
  .stack-panel,
  .architecture-panel,
  .next-steps-panel,
  .final-panel,
  .form-card {
    padding: 14px;
    border-radius: 18px;
  }

  .insights-grid,
  .option-grid,
  .stack-grid,
  .arch-zone-nodes {
    grid-template-columns: 1fr;
  }

  .arch-flow {
    grid-template-columns: 1fr;
  }

  .arch-flow-arrow {
    display: none;
  }

  .logo-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 8px 12px;
  }

  .admin-tabs {
    width: 100%;
  }

  .admin-tab {
    width: 100%;
    text-align: center;
  }

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

  .decision-side,
  .section-side {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .label-rail {
    justify-self: center;
  }

  .tooltip {
    position: static;
    margin-top: 8px;
  }

  .tooltip::after {
    display: none;
  }

  .project-header,
  .project-row {
    grid-template-columns: 1fr;
  }

  .brand-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-actions {
    width: 100%;
    justify-content: flex-start;
    padding-top: 2px;
  }

  .progress-wrap {
    max-width: 100%;
  }
}
