:root {
  --bg: #071015;
  --panel: #0d171e;
  --panel-2: #121f28;
  --line: rgba(234, 242, 246, 0.13);
  --text: #f4f8fb;
  --muted: #a8b4bd;
  --muted-2: #7f8d97;
  --green: #20c878;
  --green-2: #0e8f55;
  --cyan: #26c6da;
  --orange: #ff8a1f;
  --danger: #ff6b6b;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

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

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

.auth-layout {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(10, 25, 34, 0.96), rgba(7, 16, 21, 1) 64%),
    repeating-linear-gradient(90deg, rgba(244, 248, 251, 0.045) 0 1px, transparent 1px 96px);
}

.auth-panel {
  display: grid;
  gap: 34px;
  width: min(440px, 100%);
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 23, 30, 0.94);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

.brand-block,
.app-brand {
  display: grid;
  gap: 3px;
  text-decoration: none;
}

.brand-mark,
.app-brand > span {
  color: var(--text);
  font-size: 1.85rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.brand-subtitle,
.app-brand small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-form,
.project-form {
  display: grid;
  gap: 16px;
}

.auth-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.onboarding-panel .eyebrow {
  margin: 0;
}

.onboarding-summary {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(234, 242, 246, 0.12);
  border-radius: 7px;
  background: rgba(4, 10, 14, 0.44);
}

.onboarding-summary div {
  display: grid;
  gap: 4px;
}

.onboarding-summary dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.onboarding-summary dd {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.login-form h1,
.dashboard h1,
.list-heading h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
}

.login-form h1 {
  font-size: 1.45rem;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(234, 242, 246, 0.16);
  border-radius: 6px;
  background: rgba(4, 10, 14, 0.72);
  color: var(--text);
  padding: 0 13px;
  outline: none;
}

select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(234, 242, 246, 0.16);
  border-radius: 6px;
  background: rgba(4, 10, 14, 0.72);
  color: var(--text);
  padding: 0 38px 0 13px;
  outline: none;
}

textarea {
  width: 100%;
  min-height: 320px;
  resize: vertical;
  border: 1px solid rgba(234, 242, 246, 0.16);
  border-radius: 6px;
  background: rgba(4, 10, 14, 0.72);
  color: var(--text);
  padding: 13px;
  outline: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.55;
}

input:focus {
  border-color: rgba(32, 200, 120, 0.88);
  box-shadow: 0 0 0 3px rgba(32, 200, 120, 0.13);
}

textarea:focus {
  border-color: rgba(32, 200, 120, 0.88);
  box-shadow: 0 0 0 3px rgba(32, 200, 120, 0.13);
}

select:focus {
  border-color: rgba(32, 200, 120, 0.88);
  box-shadow: 0 0 0 3px rgba(32, 200, 120, 0.13);
}

.primary-button,
.ghost-button {
  min-height: 42px;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 0.86rem;
  font-weight: 900;
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.primary-button {
  border: 1px solid rgba(32, 200, 120, 0.82);
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #03110a;
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(244, 248, 251, 0.04);
  color: var(--text);
}

.primary-button:hover,
.ghost-button:hover {
  filter: brightness(1.08);
}

.auth-text-button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 2px 0;
  font-size: 0.82rem;
  font-weight: 850;
}

.auth-text-button:hover {
  color: var(--green);
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 107, 107, 0.34);
  border-radius: 7px;
  background: rgba(255, 107, 107, 0.09);
  color: var(--danger);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.danger-button:hover,
.danger-button:focus-visible {
  border-color: rgba(255, 107, 107, 0.7);
  background: rgba(255, 107, 107, 0.15);
  outline: none;
  transform: translateY(-1px);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.form-message.error {
  color: var(--danger);
}

.mfa-setup {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 14px;
  border: 1px solid rgba(234, 242, 246, 0.12);
  border-radius: 7px;
  background: rgba(4, 10, 14, 0.44);
}

.mfa-setup img {
  width: min(190px, 100%);
  height: auto;
  border-radius: 7px;
  background: #fff;
  padding: 8px;
}

.mfa-secret-wrap {
  display: grid;
  gap: 5px;
  max-width: 100%;
}

.mfa-secret-wrap span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mfa-secret-wrap code {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.78rem;
}

.app-shell {
  min-height: 100svh;
  background: #081117;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
  padding: 16px clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 23, 0.94);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-button:hover {
  border-color: rgba(32, 200, 120, 0.72);
  color: var(--green);
  filter: brightness(1.06);
}

.app-brand > span {
  font-size: 1.45rem;
}

.user-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

#user-email {
  overflow: hidden;
  max-width: 280px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 138, 31, 0.1), rgba(32, 200, 120, 0.11)),
    rgba(244, 248, 251, 0.04);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 950;
}

.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100svh - 76px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: #0a141a;
}

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

.nav-section-label {
  margin: 0 2px 2px;
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 850;
}

.nav-item.active {
  border-color: rgba(32, 200, 120, 0.28);
  background: rgba(32, 200, 120, 0.12);
  color: var(--text);
}

.nav-item:disabled {
  opacity: 0.55;
}

.nav-support-group {
  margin-top: auto;
}

.support-nav {
  border-color: rgba(32, 200, 120, 0.14);
  background: rgba(4, 10, 14, 0.32);
}

.support-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.12);
}

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 22px;
  margin-left: auto;
  border-radius: 999px;
  background: rgba(32, 200, 120, 0.16);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 950;
}

.product-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted-2);
  box-shadow: 0 0 0 3px rgba(244, 248, 251, 0.04);
}

.product-dot-apiq {
  background: var(--orange);
}

.product-dot-liftiq {
  background: var(--cyan);
}

.product-dot-siteiq {
  background: var(--green);
}

.product-dot-fleetiq {
  background: #c8a9ff;
}

.product-dot-rigiq {
  background: #ff414d;
}

.dashboard {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: clamp(18px, 3vw, 34px);
}

.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard h1 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.dashboard-summary {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

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

.status-grid article {
  display: grid;
  gap: 7px;
  min-height: 98px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.status-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status-grid strong {
  overflow: hidden;
  color: var(--text);
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planner-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(32, 200, 120, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 200, 120, 0.11), rgba(38, 198, 218, 0.05)),
    var(--panel);
}

.planner-launch h2,
.planner-launch p {
  margin: 0;
}

.planner-launch h2 {
  color: var(--text);
  font-size: 1.1rem;
}

.planner-launch p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.primary-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(32, 200, 120, 0.82);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #03110a;
  padding: 0 16px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 950;
  white-space: nowrap;
}

.primary-link-button:hover {
  filter: brightness(1.08);
}

.primary-link-button[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.72;
}

.project-control-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.project-control-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(32, 200, 120, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 200, 120, 0.08), rgba(38, 198, 218, 0.035)),
    var(--panel);
}

.project-control-panel h2,
.project-control-panel p {
  margin: 0;
}

.project-control-panel h2 {
  color: var(--text);
  font-size: 1.08rem;
}

.project-control-panel p:not(.eyebrow):not(.form-message) {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.project-band {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.scenario-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.65fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
}

.project-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 18px;
  align-items: start;
}

.overview-summary-panel {
  grid-column: 1 / -1;
}

.project-form,
.project-list-wrap,
.scenario-editor {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.scenario-editor {
  display: grid;
  gap: 16px;
}

.working-file-wrap {
  display: grid;
  gap: 14px;
}

.working-file-card {
  display: grid;
  gap: 7px;
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(234, 242, 246, 0.1);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(32, 200, 120, 0.1), rgba(255, 138, 31, 0.05)),
    var(--panel-2);
}

.working-file-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.working-file-card strong {
  overflow: hidden;
  color: var(--text);
  font-size: 1.12rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.working-file-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}

.list-heading h2 {
  font-size: 1.05rem;
}

.list-heading > span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 26px;
  border-radius: 999px;
  background: rgba(32, 200, 120, 0.12);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 950;
}

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

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(234, 242, 246, 0.1);
  border-radius: 7px;
  background: var(--panel-2);
  color: inherit;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  width: 100%;
}

.project-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.8fr) 86px;
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.project-row:hover,
.project-row:focus-within {
  border-color: rgba(32, 200, 120, 0.44);
  background: #172733;
  outline: none;
  transform: translateY(-1px);
}

.project-row-main:focus-visible {
  outline: none;
}

.project-delete-button {
  min-width: 74px;
}

.confirm-dialog {
  width: min(560px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
}

.confirm-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 35%, rgba(32, 200, 120, 0.14), transparent 34%),
    rgba(1, 6, 9, 0.78);
  backdrop-filter: blur(9px);
}

.confirm-dialog-panel {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(255, 138, 31, 0.26);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(13, 23, 30, 0.98), rgba(7, 16, 21, 0.98)),
    repeating-linear-gradient(90deg, rgba(244, 248, 251, 0.045) 0 1px, transparent 1px 86px);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
}

.account-dialog-panel {
  max-width: min(560px, calc(100vw - 36px));
}

.account-dialog-actions {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
}

.account-dialog-actions .primary-button {
  justify-self: end;
}

.confirm-dialog-brand span {
  font-weight: 950;
  letter-spacing: -0.02em;
}

.confirm-dialog h2 {
  margin: -4px 0 0;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.confirm-dialog-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 780;
}

.delete-warning {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 138, 31, 0.3);
  border-radius: 8px;
  background: rgba(255, 138, 31, 0.09);
}

.delete-warning strong {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.delete-warning span {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 760;
}

.confirm-check {
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.confirm-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
}

.confirm-dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin: 2px 0 0;
  padding: 0;
}

.confirm-dialog-actions .danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

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

.project-row-main strong {
  color: var(--text);
}

.project-row-main span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.status-pill {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(38, 198, 218, 0.12);
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.status-pill.current {
  background: rgba(32, 200, 120, 0.14);
  color: var(--green);
}

.status-pill.valid {
  background: rgba(32, 200, 120, 0.14);
  color: var(--green);
}

.status-pill.warning {
  background: rgba(255, 138, 31, 0.16);
  color: var(--orange);
}

.status-pill.review {
  background: rgba(38, 198, 218, 0.14);
  color: var(--cyan);
}

.status-pill.danger {
  background: rgba(255, 107, 107, 0.16);
  color: var(--danger);
}

.status-pill.muted {
  background: rgba(168, 180, 189, 0.11);
  color: var(--muted);
}

.status-pill.active {
  background: rgba(32, 200, 120, 0.16);
  color: var(--green);
}

.status-pill.recent {
  background: rgba(255, 138, 31, 0.14);
  color: var(--orange);
}

.status-pill.offline {
  background: rgba(168, 180, 189, 0.11);
  color: var(--muted);
}

.product-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-dashboard-card {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 23, 30, 0.88);
}

.product-dashboard-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-dashboard-card strong {
  color: var(--text);
  font-size: 1.04rem;
}

.product-dashboard-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 740;
}

.product-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.product-action-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(32, 200, 120, 0.17);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 200, 120, 0.07), rgba(38, 198, 218, 0.035)),
    var(--panel);
}

.product-launch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  text-decoration: none;
}

.product-action-form {
  display: grid;
  gap: 13px;
}

.product-dashboard-actions > .form-message {
  grid-column: 1 / -1;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding-top: 14px;
}

.metric-tile {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(234, 242, 246, 0.1);
  border-radius: 7px;
  background: var(--panel-2);
}

.metric-tile.warning {
  border-color: rgba(255, 138, 31, 0.32);
  background: linear-gradient(135deg, rgba(255, 138, 31, 0.09), rgba(18, 31, 40, 0.92));
}

.metric-tile.review {
  border-color: rgba(38, 198, 218, 0.28);
  background: linear-gradient(135deg, rgba(38, 198, 218, 0.08), rgba(18, 31, 40, 0.92));
}

.metric-tile.danger {
  border-color: rgba(255, 107, 107, 0.32);
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(18, 31, 40, 0.92));
}

.metric-tile span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-tile strong {
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
}

.metric-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.overview-list {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.overview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(234, 242, 246, 0.1);
  border-radius: 7px;
  background: var(--panel-2);
}

.overview-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.overview-row strong,
.overview-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-row strong {
  color: var(--text);
}

.overview-row span:not(.status-pill) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.overview-more {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.scenario-list {
  display: grid;
  gap: 10px;
  max-height: 540px;
  overflow-y: auto;
  padding-top: 14px;
  padding-right: 6px;
  scrollbar-color: rgba(32, 200, 120, 0.35) rgba(234, 242, 246, 0.06);
  scrollbar-width: thin;
}

.list-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.scenario-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(234, 242, 246, 0.1);
  border-radius: 7px;
  background: var(--panel-2);
}

.scenario-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.scenario-row strong,
.scenario-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.scenario-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.empty-state {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 0.9rem;
  font-weight: 800;
}

.empty-state[hidden] {
  display: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.admin-list {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(234, 242, 246, 0.1);
  border-radius: 7px;
  background: var(--panel-2);
}

.admin-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-row strong,
.admin-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row span:not(.status-pill) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.user-directory-list {
  max-height: 620px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: rgba(32, 200, 120, 0.35) rgba(234, 242, 246, 0.06);
  scrollbar-width: thin;
}

.user-directory-row {
  min-height: 88px;
}

.user-directory-detail {
  color: var(--muted-2) !important;
}

.admin-support-panel {
  grid-column: 1 / -1;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(340px, 0.92fr) minmax(440px, 1.18fr);
  gap: 18px;
  align-items: start;
}

.support-ticket-form,
.support-reply-form {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.support-ticket-form textarea,
.support-reply-form textarea {
  min-height: 128px;
  font-family: inherit;
  font-size: 0.9rem;
}

.support-ticket-list {
  display: grid;
  gap: 10px;
  max-height: 620px;
  overflow-y: auto;
  padding: 14px 6px 0 0;
  scrollbar-color: rgba(32, 200, 120, 0.35) rgba(234, 242, 246, 0.06);
  scrollbar-width: thin;
}

.support-ticket-row {
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 118px;
  border: 1px solid rgba(234, 242, 246, 0.1);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text);
  padding: 13px;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.support-ticket-row:hover,
.support-ticket-row:focus-visible,
.support-ticket-row.active {
  border-color: rgba(32, 200, 120, 0.44);
  background: #172733;
  outline: none;
  transform: translateY(-1px);
}

.support-ticket-row > span:not(.support-ticket-pills) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.support-ticket-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-ticket-detail {
  display: grid;
  gap: 12px;
  min-height: 300px;
  max-height: 620px;
  overflow-y: auto;
  padding: 14px 6px 0 0;
  scrollbar-color: rgba(32, 200, 120, 0.35) rgba(234, 242, 246, 0.06);
  scrollbar-width: thin;
}

.support-ticket-summary,
.support-message {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(234, 242, 246, 0.1);
  border-radius: 7px;
  background: rgba(4, 10, 14, 0.44);
  padding: 13px;
}

.support-ticket-summary span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.support-message.admin {
  border-color: rgba(32, 200, 120, 0.24);
  background: rgba(32, 200, 120, 0.08);
}

.support-message.internal {
  border-color: rgba(255, 138, 31, 0.26);
  background: rgba(255, 138, 31, 0.08);
}

.support-message-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.support-message-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.support-message p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.support-admin-controls {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(170px, 0.8fr);
  gap: 12px;
  align-items: end;
}

.support-internal-note {
  min-height: 46px;
  align-content: center;
  padding: 0 10px;
  border: 1px solid rgba(234, 242, 246, 0.12);
  border-radius: 6px;
  background: rgba(4, 10, 14, 0.36);
}

.support-status-open,
.support-status-in_progress {
  background: rgba(38, 198, 218, 0.12);
  color: var(--cyan);
}

.support-status-waiting_on_user {
  background: rgba(255, 138, 31, 0.14);
  color: var(--orange);
}

.support-status-resolved,
.support-status-closed {
  background: rgba(32, 200, 120, 0.14);
  color: var(--green);
}

.support-priority-urgent,
.support-priority-blocked {
  background: rgba(255, 107, 107, 0.16);
  color: var(--danger);
}

@media (max-width: 900px) {
  .workspace,
  .project-band,
  .project-overview-grid,
  .project-control-grid,
  .scenario-band,
  .product-dashboard-grid,
  .product-dashboard-actions,
  .admin-grid,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .planner-launch {
    align-items: stretch;
    flex-direction: column;
  }

  .sidebar {
    flex-direction: row;
    align-items: start;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-support-group {
    margin-top: 0;
  }

  .nav-group {
    min-width: 150px;
  }

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

@media (max-width: 620px) {
  .app-header,
  .dashboard-head,
  .user-bar {
    align-items: start;
    flex-direction: column;
  }

  .brand-cluster {
    width: 100%;
  }

  #user-email {
    max-width: calc(100vw - 40px);
  }

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

  .account-dialog-actions .primary-button {
    justify-self: stretch;
  }

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

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

  .project-delete-button {
    width: 100%;
  }

  .scenario-row,
  .scenario-controls,
  .overview-row,
  .admin-row {
    align-items: start;
    flex-direction: column;
  }

  .overview-row,
  .admin-row {
    display: flex;
  }

  textarea {
    min-height: 260px;
  }
}
