/*
 * Varadise construction intelligence interface
 * Design variance 6, motion 4, density 5
 * This file is loaded last and is the authoritative visual layer.
 */

:root {
  --ink: #101819;
  --ink-soft: #283537;
  --navy: #101819;
  --navy-2: #283537;
  --surface: #eef2f2;
  --surface-deep: #e5ebea;
  --panel: #fbfcfc;
  --panel-strong: #ffffff;
  --line: #d5dddd;
  --line-strong: #bdc9c8;
  --soft: #e8eeee;
  --muted: #617073;
  --muted-light: #7c898b;
  --brand: #087c6d;
  --brand-hover: #056458;
  --brand-soft: #e0f0ec;
  --brand-line: #a8d3ca;
  --cyan: #087c6d;
  --orange: #94631c;
  --warning: #94631c;
  --warning-soft: #f7efe1;
  --danger: #a23d43;
  --danger-soft: #faeded;
  --info-soft: #e8efef;
  --radius-page: 26px;
  --radius-card: 18px;
  --radius-control: 11px;
  --radius-small: 8px;
  --shadow: 0 24px 70px rgba(31, 56, 57, 0.1);
  --shadow-sm: 0 10px 30px rgba(31, 56, 57, 0.07);
  --shadow-hover: 0 22px 50px rgba(31, 56, 57, 0.12);
  --focus: 0 0 0 3px rgba(8, 124, 109, 0.2);
  --z-nav: 20;
  --z-dialog: 70;
  --z-toast: 90;
  font-family: Ubuntu, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--surface);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: Ubuntu, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 82% 4%, rgba(8, 124, 109, 0.075), transparent 25rem),
    radial-gradient(circle at 22% 96%, rgba(16, 24, 25, 0.045), transparent 30rem);
  content: "";
  pointer-events: none;
}

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

h1,
h2,
h3,
h4,
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
strong {
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  font-family: Ubuntu, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 650;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
  transition:
    transform 180ms cubic-bezier(0.2, 0.75, 0.25, 1),
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 10px 15px;
  font-weight: 650;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 180ms cubic-bezier(0.2, 0.75, 0.25, 1),
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

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

.button-link:active {
  transform: translateY(1px) scale(0.985);
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  box-shadow: var(--focus);
}

button.primary,
.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 124, 109, 0.17);
}

button.primary:hover:not(:disabled),
.primary:hover:not(:disabled) {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
  box-shadow: 0 14px 30px rgba(8, 124, 109, 0.22);
}

button.secondary,
.secondary {
  border-color: var(--line);
  background: var(--panel-strong);
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(31, 56, 57, 0.04);
}

button.secondary:hover:not(:disabled),
.secondary:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: #f5f8f7;
}

button.ghost,
.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
  box-shadow: none;
}

button.ghost:hover:not(:disabled),
.ghost:hover:not(:disabled) {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

button.danger,
.danger {
  border-color: #e6c3c5;
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: none;
}

button.small,
.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 11px;
}

button:disabled,
.button-disabled {
  opacity: 0.46;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  padding: 10px 12px;
  background: var(--panel-strong);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #9faead;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 0;
  box-shadow: var(--focus);
}

input::placeholder,
textarea::placeholder {
  color: #8b9799;
  opacity: 1;
}

textarea {
  min-height: 106px;
  resize: vertical;
  line-height: 1.55;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

label small,
.hint,
.small-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 430;
  line-height: 1.5;
}

details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

summary {
  cursor: pointer;
  color: var(--ink-soft);
  font-weight: 650;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted) !important;
}

.eyebrow {
  margin: 0;
  color: var(--brand) !important;
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.4;
  text-transform: none;
}

.danger-panel .eyebrow,
.wb-danger .eyebrow,
.demo-reset-panel .eyebrow {
  color: var(--danger) !important;
}

.tag,
.wb-state,
.demo-workspace-badge,
.demo-maturity,
.demo-evidence {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: #edf1f1;
  color: #536365;
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
}

.tag.ok,
.wb-state.positive,
.demo-evidence-live,
.demo-maturity-live_value {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.tag.warn,
.wb-state.warning,
.demo-maturity-expansion_opportunity {
  border-color: #decba7;
  background: var(--warning-soft);
  color: #795019;
}

.wb-state.danger,
.tag.danger {
  border-color: #e3bec0;
  background: var(--danger-soft);
  color: var(--danger);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(8, 124, 109, 0.1);
}

.component-code {
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Brand geometry */

.brand-mark,
.login-mark {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 9px;
  background: var(--ink);
  color: transparent;
}

.brand-mark::before,
.brand-mark::after,
.login-mark::before,
.login-mark::after {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 7px;
  border-radius: 2px;
  content: "";
}

.brand-mark::before,
.login-mark::before {
  left: 8px;
  background: #fff;
  box-shadow: 10px 0 0 var(--brand);
}

.brand-mark::after,
.login-mark::after {
  top: 15px;
  right: 13px;
  bottom: auto;
  width: 8px;
  height: 5px;
  background: var(--ink);
}

/* Login */

#login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  gap: clamp(24px, 5vw, 84px);
  place-items: stretch;
  padding: clamp(18px, 3vw, 38px);
  background: var(--surface);
}

.login-stage {
  position: relative;
  display: flex;
  min-height: calc(100dvh - clamp(36px, 6vw, 76px));
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-page);
  padding: clamp(28px, 4.8vw, 70px);
  background:
    linear-gradient(rgba(16, 24, 25, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 25, 0.04) 1px, transparent 1px),
    linear-gradient(145deg, #f8fafa, #dfe8e6);
  background-size: 64px 64px, 64px 64px, auto;
}

.login-stage::before {
  position: absolute;
  right: -18%;
  bottom: -22%;
  width: min(60vw, 720px);
  height: min(60vw, 720px);
  border: 1px solid rgba(8, 124, 109, 0.24);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgba(8, 124, 109, 0.04),
    0 0 0 130px rgba(8, 124, 109, 0.025);
  content: "";
}

.login-stage::after {
  position: absolute;
  top: 18%;
  right: 12%;
  width: 1px;
  height: 48%;
  background: var(--brand);
  content: "";
  transform: rotate(28deg);
  transform-origin: top;
}

.login-stage > * {
  position: relative;
  z-index: 1;
}

.login-stage-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.login-stage-copy {
  max-width: 760px;
}

.login-index,
.next-tip-index,
.topbar-label {
  display: block;
  color: var(--brand);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.login-stage-copy h2 {
  max-width: 790px;
  margin: 15px 0 22px;
  font-size: clamp(44px, 6.6vw, 94px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.login-stage-copy p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.65;
}

.login-stage-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 10px;
  font-weight: 700;
}

.login-stage-status > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(8, 124, 109, 0.1);
}

.login-card {
  width: min(470px, 100%);
  align-self: center;
  justify-self: center;
  border: 0;
  border-radius: var(--radius-page);
  padding: clamp(30px, 5vw, 52px);
  background: rgba(251, 252, 252, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-mark {
  width: 50px;
  height: 50px;
  margin: 0 0 34px;
  border-radius: 13px;
}

.login-mark::before {
  top: 11px;
  bottom: 11px;
  left: 12px;
  width: 9px;
  box-shadow: 14px 0 0 var(--brand);
}

.login-mark::after {
  top: 22px;
  right: 18px;
  width: 11px;
  height: 7px;
}

.login-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(38px, 4.5vw, 52px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.login-card > p.muted {
  max-width: 40ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.login-card form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.login-card form button {
  width: 100%;
  margin-top: 2px;
}

.login-note {
  display: grid;
  gap: 2px;
  margin-top: 25px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.login-note strong {
  font-size: 11px;
}

.error {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 11px;
}

/* Application shell */

#app {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  z-index: var(--z-nav);
  top: 0;
  display: flex;
  height: 100dvh;
  flex-direction: column;
  gap: 34px;
  border-right: 1px solid var(--line);
  padding: 27px 18px 20px;
  background: rgba(247, 249, 248, 0.94);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.brand {
  padding: 0 8px;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.brand small {
  display: block;
  margin: 7px 0 0 46px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.025em;
}

.nav {
  display: grid;
  gap: 5px;
}

.nav button {
  position: relative;
  display: grid;
  min-height: 49px;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  background: transparent;
  color: #59686a;
  box-shadow: none;
  font-size: 12px;
  font-weight: 560;
  text-align: left;
}

.nav button:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.nav button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 25, 0.14);
}

.nav button.active::after {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
  transform: translateY(-50%);
}

.nav-icon {
  width: auto;
  color: #879294;
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
}

.nav button.active .nav-icon {
  color: #87c7bc;
}

.side-footer {
  display: grid;
  gap: 3px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 10px;
}

.side-footer strong {
  margin-top: 8px;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-footer button {
  justify-self: start;
  min-height: 29px;
  margin-top: 5px;
  padding: 4px 0;
  background: transparent;
  color: var(--brand-hover);
  font-size: 10px;
}

.side-footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-weight: 700;
}

.shell {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  height: 78px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(189, 201, 200, 0.78);
  padding: 0 clamp(22px, 3.1vw, 48px);
  background: rgba(238, 242, 242, 0.84);
  backdrop-filter: blur(20px) saturate(130%);
}

.topbar-label {
  margin-bottom: 2px;
  color: var(--muted);
}

.breadcrumbs {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 560;
}

.admin-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #f8fafa;
  color: var(--brand-hover);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.content {
  width: 100%;
  max-width: 1540px;
  min-height: calc(100dvh - 78px);
  margin: 0 auto;
  padding: clamp(34px, 4.2vw, 66px) clamp(22px, 4vw, 64px) 84px;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: view-enter 360ms cubic-bezier(0.2, 0.72, 0.24, 1) both;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 31px;
}

.page-head > div:first-child {
  max-width: 900px;
}

.page-head h1 {
  max-width: 920px;
  margin: 7px 0 8px;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.page-head p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.top-page-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

/* Shared surfaces */

.card,
.portfolio-panel,
.confidence-card,
body .project-workbench .wb-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(251, 252, 252, 0.94);
  box-shadow: 0 4px 18px rgba(31, 56, 57, 0.035);
}

.card {
  padding: 22px;
}

.card h2,
.card h3,
.portfolio-panel h2,
body .project-workbench .wb-card h2,
body .project-workbench .wb-card h3 {
  letter-spacing: -0.025em;
}

.section-head,
.portfolio-panel-head,
body .project-workbench .wb-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head h2,
.section-head h3,
.portfolio-panel-head h2,
body .project-workbench .wb-card-head h2,
body .project-workbench .wb-card-head h3 {
  margin: 0;
}

.empty,
.portfolio-empty,
.confidence-empty,
body .project-workbench .wb-empty,
.pc-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  padding: 28px;
  background:
    linear-gradient(rgba(16, 24, 25, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 25, 0.025) 1px, transparent 1px),
    rgba(248, 250, 249, 0.8);
  background-size: 28px 28px;
  color: var(--muted);
  text-align: center;
}

.empty strong,
.portfolio-empty strong,
.confidence-empty strong,
body .project-workbench .wb-empty strong,
.pc-empty strong {
  color: var(--ink);
}

.guide {
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: 13px 15px;
  background: var(--brand-soft);
  color: #3d5e59;
  font-size: 11px;
  line-height: 1.55;
}

.danger-panel,
body .project-workbench .wb-danger {
  border: 1px solid #e3bec0;
  border-radius: var(--radius-card);
  padding: 20px;
  background: var(--danger-soft);
}

.simple-form {
  display: grid;
  gap: 17px;
}

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

.span-two {
  grid-column: 1 / -1;
}

.two-col,
.project-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 20px;
}

.inline-list > div,
.assignment,
.project-row,
.file-row,
.connector-row,
.version-line {
  min-height: 66px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.inline-list > div:last-child,
.assignment:last-child,
.project-row:last-child,
.file-row:last-child,
.connector-row:last-child,
.version-line:last-child {
  border-bottom: 0;
}

/* Static overview and portfolio command centre */

.dashboard-hero,
body .portfolio-hero {
  position: relative;
  display: grid;
  min-height: 390px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius-page);
  padding: clamp(32px, 5vw, 72px);
  background:
    linear-gradient(rgba(16, 24, 25, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 25, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #fbfcfc 0%, #e4ecea 100%);
  background-size: 52px 52px, 52px 52px, auto;
  color: var(--ink);
  box-shadow: none;
}

.dashboard-hero::before,
body .portfolio-hero::before {
  position: absolute;
  right: -100px;
  bottom: -190px;
  width: 490px;
  height: 490px;
  border: 1px solid rgba(8, 124, 109, 0.24);
  border-radius: 50%;
  box-shadow:
    0 0 0 56px rgba(8, 124, 109, 0.035),
    0 0 0 116px rgba(8, 124, 109, 0.025);
  content: "";
}

body .portfolio-hero::after {
  position: absolute;
  top: 0;
  right: 24%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(8, 124, 109, 0.35), transparent);
  content: "";
  transform: rotate(24deg);
}

.dashboard-hero > *,
body .portfolio-hero > * {
  position: relative;
  z-index: 1;
}

.dashboard-hero h1,
body .portfolio-hero h1 {
  max-width: 900px;
  margin: 12px 0 16px;
  color: var(--ink);
  font-size: clamp(44px, 5.7vw, 82px);
  font-weight: 650;
  letter-spacing: -0.068em;
  line-height: 0.92;
}

.dashboard-hero p,
body .portfolio-hero p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.dashboard-hero-copy > button {
  margin-top: 25px;
}

.hero-steps {
  display: grid;
  align-content: end;
  gap: 0;
}

.hero-step {
  display: grid;
  min-height: 74px;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid rgba(16, 24, 25, 0.13);
  border-radius: 0;
  padding: 13px 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
}

.hero-step:last-child {
  border-bottom: 0;
}

.hero-step strong {
  color: var(--ink);
}

.step-number {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--brand-hover);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.metric-grid,
body .portfolio-metrics,
.demo-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric,
body .portfolio-metric,
.demo-proof-strip article {
  min-height: 118px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 23px 24px 22px 0;
  background: transparent;
  box-shadow: none;
}

.metric:not(:first-child),
body .portfolio-metric:not(:first-child),
.demo-proof-strip article:not(:first-child) {
  padding-left: 24px;
}

.metric:last-child,
body .portfolio-metric:last-child,
.demo-proof-strip article:last-child {
  border-right: 0;
}

.metric strong,
body .portfolio-metric strong,
.demo-proof-strip strong {
  display: block;
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 46px);
  font-variant-numeric: tabular-nums;
  font-weight: 580;
  letter-spacing: -0.06em;
  line-height: 1;
}

.metric span,
body .portfolio-metric span,
.demo-proof-strip span,
.demo-proof-strip p {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 520;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.journey-grid,
body .portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 20px;
}

.journey-item,
body .portfolio-project,
.portfolio-proof-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.journey-item:last-child,
body .portfolio-project:last-child,
.portfolio-proof-item:last-child {
  border-bottom: 0;
}

.journey-icon,
body .portfolio-proof-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-hover);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.next-tip,
body .portfolio-next {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 27px;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.next-tip::after,
body .portfolio-next::after {
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.025);
  content: "";
}

.next-tip > *,
body .portfolio-next > * {
  position: relative;
  z-index: 1;
}

.next-tip strong,
body .portfolio-next strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.next-tip p,
body .portfolio-next p {
  margin: 8px 0 22px;
  color: #b9c4c4 !important;
}

body .portfolio-next small {
  color: #87c7bc;
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: none;
}

body .portfolio-next button {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.18);
}

body .portfolio-next button:first-child {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

body .portfolio-next .demo-start-button {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

body .portfolio-panel {
  padding: 24px;
}

body .portfolio-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

body .portfolio-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 0;
  background: var(--soft);
}

body .portfolio-progress span {
  background: var(--brand);
}

body .portfolio-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.portfolio-proof-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 13px;
  border-radius: 0;
  background: transparent;
}

/* Expert Library */

.library-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.3fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 17px 0;
  background: transparent;
  box-shadow: none;
}

.library-controls.tenant-search {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.library-result {
  align-self: center;
  color: var(--muted);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

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

.expert-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border-color: var(--line);
  padding: 0;
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1), border-color 180ms ease, box-shadow 220ms ease;
}

.expert-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.expert-art {
  position: relative;
  display: flex;
  min-height: 205px;
  overflow: hidden;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px;
  background:
    linear-gradient(rgba(16, 24, 25, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 25, 0.06) 1px, transparent 1px),
    #dce5e3;
  background-size: 34px 34px;
  color: var(--ink);
}

.expert-art::before {
  position: absolute;
  top: -65px;
  right: -52px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(8, 124, 109, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(8, 124, 109, 0.04);
  content: "";
}

.expert-art::after {
  position: absolute;
  right: 20%;
  bottom: -40%;
  width: 1px;
  height: 150%;
  background: rgba(8, 124, 109, 0.28);
  content: "";
  transform: rotate(27deg);
}

.art-promax {
  background-color: #d9e1e4;
}

.art-dora {
  background-color: #e2e6e4;
}

.art-rafi {
  background-color: #dbe5e6;
}

.art-quinn {
  background-color: #e0e6e1;
}

.art-costy {
  background-color: #e4e5e1;
}

.art-custom {
  background-color: #dce4e2;
}

.expert-registration {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 20px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--brand);
  border-radius: 50%;
}

.expert-registration::before,
.expert-registration::after {
  position: absolute;
  background: var(--brand);
  content: "";
}

.expert-registration::before {
  top: 5px;
  left: -6px;
  width: 23px;
  height: 1px;
}

.expert-registration::after {
  top: -6px;
  left: 5px;
  width: 1px;
  height: 23px;
}

.art-index {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 20px;
  color: var(--ink-soft);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.expert-monogram {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: -13px;
  color: rgba(16, 24, 25, 0.88);
  font-family: "Ubuntu Condensed", Ubuntu, sans-serif;
  font-size: clamp(96px, 10vw, 145px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.78;
}

.art-label {
  position: relative;
  z-index: 3;
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  border: 1px solid rgba(16, 24, 25, 0.14);
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(248, 250, 249, 0.78);
  color: var(--ink);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.expert-art .helmet {
  display: none;
}

.expert-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.expert-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.expert-title h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.expert-role {
  margin: 4px 0 14px;
  color: var(--brand-hover);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.expert-card p {
  min-height: 48px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.expert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.adoption {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 24px;
}

.member-profile {
  position: sticky;
  top: 104px;
  align-self: start;
  overflow: hidden;
  padding: 0;
}

.member-profile .expert-art {
  min-height: 300px;
}

.member-profile .expert-monogram {
  font-size: 180px;
}

.profile-copy {
  padding: 25px;
}

.profile-copy h1 {
  margin: 8px 0 0;
  font-size: 38px;
  letter-spacing: -0.055em;
  line-height: 1;
}

.profile-copy p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.detail-main {
  display: grid;
  gap: 18px;
}

.stat-row,
.tenant-stat-grid,
body .project-workbench .wb-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-row .card,
.tenant-stat,
body .project-workbench .wb-kpi {
  min-height: 104px;
  padding: 18px;
}

.stat-row strong,
.tenant-stat strong,
body .project-workbench .wb-kpi strong {
  display: block;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  font-weight: 580;
  letter-spacing: -0.055em;
  line-height: 1;
}

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

.kit {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  background: #f6f9f8;
}

.kit strong,
.kit span {
  display: block;
}

.kit strong {
  font-size: 11px;
}

.kit span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.version-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
}

/* Component Library */

.tabs,
body .project-workbench .wb-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  padding: 0;
  scrollbar-width: thin;
}

.tabs button,
body .project-workbench .wb-tabs button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 11px 13px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 11px;
  white-space: nowrap;
}

.tabs button:hover,
body .project-workbench .wb-tabs button:hover {
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
}

.tabs button.active,
body .project-workbench .wb-tabs button.active {
  border-bottom-color: var(--brand);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

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

.component-card {
  position: relative;
  display: flex;
  min-height: 266px;
  overflow: hidden;
  flex-direction: column;
  gap: 11px;
}

.component-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.component-assurance,
.component-domain {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.component-assurance {
  color: var(--brand);
  text-transform: uppercase;
}

.component-domain {
  min-height: 28px;
  line-height: 1.45;
}

.component-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 58px;
  border-bottom: 1px solid rgba(8, 124, 109, 0.18);
  border-left: 1px solid rgba(8, 124, 109, 0.18);
  content: "";
}

.component-card .tag {
  align-self: flex-start;
}

.component-card h3 {
  margin: 5px 0 0;
  font-size: 19px;
  letter-spacing: -0.035em;
}

.component-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.component-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.component-card footer > span:last-child {
  display: flex;
  gap: 5px;
}

.component-search {
  margin-bottom: 14px;
}

.component-load-more,
.component-grid > .empty {
  grid-column: 1 / -1;
}

.component-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.component-contract-dialog {
  width: min(1040px, calc(100vw - 32px));
}

.contract-hero,
.contract-facts,
.contract-grid {
  display: grid;
}

.contract-hero {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.contract-hero > div {
  display: grid;
  gap: 3px;
}

.contract-hero span,
.contract-facts span {
  color: var(--muted);
  font-size: 10px;
}

.contract-purpose {
  max-width: 850px;
  margin: 22px 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.contract-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.contract-facts > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #fff;
}

.contract-facts strong {
  font-size: 11px;
  line-height: 1.45;
}

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

.contract-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #fbfcfb;
}

.contract-section h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 12px;
}

.contract-section ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.contract-sources {
  margin-top: 14px;
}

.contract-sources p {
  color: var(--muted);
  font-size: 10px;
}

.contract-sources a {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  color: var(--ink-soft);
  text-decoration: none;
}

.contract-sources a span {
  color: var(--muted);
  font-size: 9px;
}

.production-contract-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.production-contract-fields textarea {
  min-height: 132px;
}

@media (max-width: 760px) {
  .contract-facts,
  .contract-grid,
  .production-contract-fields {
    grid-template-columns: 1fr;
  }
}

.modal-like {
  margin-bottom: 22px;
  border-color: var(--brand-line);
}

/* Organization and project galleries */

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

.org-card,
.project-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  padding: 0;
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 220ms ease, border-color 180ms ease;
}

.org-card:hover,
.project-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.org-banner,
.project-banner {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  padding: 22px;
  background:
    linear-gradient(rgba(16, 24, 25, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 25, 0.045) 1px, transparent 1px),
    linear-gradient(140deg, #e2e9e7, #f5f7f6);
  background-size: 40px 40px;
  color: var(--ink);
}

.org-banner::before,
.project-banner::before {
  position: absolute;
  right: -50px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(8, 124, 109, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(8, 124, 109, 0.035);
  content: "";
}

.org-banner::after,
.project-banner::after {
  position: absolute;
  top: 0;
  right: 30%;
  width: 1px;
  height: 130%;
  border-radius: 0;
  background: rgba(8, 124, 109, 0.25);
  content: "";
  transform: rotate(24deg);
}

.project-banner {
  background-color: #e4e9e9;
}

.tenant-logo {
  position: relative;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 15px;
  font-weight: 700;
}

.project-banner .tenant-logo {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.tenant-region {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(16, 24, 25, 0.13);
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(251, 252, 252, 0.72);
  color: var(--ink-soft);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  backdrop-filter: blur(7px);
}

.tenant-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 21px;
}

.tenant-card-body h2 {
  margin: 0 0 4px;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.tenant-card-body p {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.tenant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.tenant-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.tenant-card-footer > span {
  color: var(--muted);
  font-size: 9px;
}

.tenant-hero,
body .project-workbench .wb-hero,
.environment-hero,
.demo-settings-hero,
.deployment-launchpad {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-page);
  padding: 30px;
  background:
    linear-gradient(rgba(16, 24, 25, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 25, 0.035) 1px, transparent 1px),
    linear-gradient(140deg, #f9fbfa, #e2ebe8);
  background-size: 48px 48px, 48px 48px, auto;
  color: var(--ink);
  box-shadow: none;
}

.tenant-hero::after,
body .project-workbench .wb-hero::after,
.environment-hero::after,
.demo-settings-hero::after,
.deployment-launchpad::after {
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(8, 124, 109, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(8, 124, 109, 0.03);
  content: "";
}

.tenant-hero > *,
body .project-workbench .wb-hero > *,
.environment-hero > *,
.demo-settings-hero > *,
.deployment-launchpad > * {
  position: relative;
  z-index: 2;
}

.tenant-hero .tenant-logo {
  width: 70px;
  height: 70px;
  font-size: 18px;
}

.tenant-hero h1 {
  margin: 6px 0 5px;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.tenant-hero p,
.environment-hero p,
.demo-settings-hero p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
}

.tenant-content {
  display: grid;
  gap: 18px;
}

.wide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-card);
  padding: 22px;
  background: var(--brand-soft);
}

.settings-subtabs,
body .project-workbench .wb-advanced-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.settings-subtabs button.active,
body .project-workbench .wb-advanced-nav button.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-hover);
}

/* Project workbench */

body .project-workbench {
  --wb-ink: var(--ink);
  --wb-muted: var(--muted);
  --wb-blue: var(--brand);
  --wb-cyan: var(--brand);
  --wb-line: var(--line);
  color: var(--ink);
}

body .project-workbench::before {
  display: none;
}

body .project-workbench .wb-hero {
  min-height: 285px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 40px;
  align-items: end;
  padding: clamp(30px, 4vw, 52px);
}

body .project-workbench .wb-hero::before {
  position: absolute;
  top: 0;
  right: 29%;
  width: 1px;
  height: 125%;
  border-radius: 0;
  background: rgba(8, 124, 109, 0.22);
  content: "";
  transform: rotate(24deg);
}

body .project-workbench .wb-hero h1 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

body .project-workbench .wb-hero p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

body .project-workbench .wb-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

body .project-workbench .wb-hero .tag,
body .project-workbench .demo-workspace-badge,
body .project-workbench .demo-maturity,
body .project-workbench .demo-evidence {
  border-color: var(--line);
  background: rgba(251, 252, 252, 0.76);
  color: var(--ink-soft);
}

body .project-workbench .wb-hero-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  padding: 20px;
  background: rgba(224, 240, 236, 0.76);
  backdrop-filter: blur(10px);
}

body .project-workbench .wb-hero-panel strong {
  color: var(--ink);
}

body .project-workbench .wb-hero-panel p {
  font-size: 11px;
}

body .project-workbench .wb-tabs {
  margin: 0 0 22px;
  padding-top: 8px;
}

body .project-workbench .wb-score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  background: var(--brand-soft);
}

body .project-workbench .wb-score-ring {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand) var(--score), rgba(8, 124, 109, 0.12) 0);
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

body .project-workbench .wb-score-ring::before {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f4faf8;
  content: "";
}

body .project-workbench .wb-score-ring span,
body .project-workbench .wb-score-ring strong {
  position: relative;
  z-index: 1;
}

body .project-workbench .wb-grid {
  display: grid;
  gap: 18px;
}

body .project-workbench .wb-grid.two,
body .project-workbench .wb-grid.team {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

body .project-workbench .wb-card {
  padding: 22px;
}

body .project-workbench .wb-checklist,
body .project-workbench .wb-list,
body .confidence-timeline,
.confidence-agent-timeline {
  display: grid;
}

body .project-workbench .wb-check,
body .project-workbench .wb-row,
body .project-workbench .wb-event,
.confidence-event {
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

body .project-workbench .wb-check:last-child,
body .project-workbench .wb-row:last-child,
body .project-workbench .wb-event:last-child,
.confidence-event:last-child {
  border-bottom: 0;
}

body .project-workbench .wb-check-icon,
body .project-workbench .wb-avatar,
body .project-workbench .wb-file-icon,
.confidence-dot,
.pc-agent-avatar,
.pc-agent-avatar-large {
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-hover);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 10px;
  font-weight: 700;
}

body .project-workbench .wb-check.done .wb-check-icon {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

body .project-workbench .wb-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

body .project-workbench .wb-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

body .project-workbench .wb-row-main strong,
body .project-workbench .wb-row-main small {
  display: block;
}

body .project-workbench .wb-row-main small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

body .project-workbench .wb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

body .project-workbench .wb-boundary {
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

body .project-workbench .wb-boundary::after {
  border-color: rgba(8, 124, 109, 0.18);
  box-shadow: 0 0 0 35px rgba(8, 124, 109, 0.035);
}

body .project-workbench .wb-boundary li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  color: transparent;
  content: "";
}

body .project-workbench .wb-file-shelf,
body .project-workbench .wb-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

body .project-workbench .wb-file,
body .project-workbench .wb-service {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  background: #f7f9f8;
}

body .project-workbench .wb-file-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 15px;
}

body .project-workbench .wb-matrix,
.confidence-table,
.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

body .project-workbench .wb-matrix th,
body .project-workbench .wb-matrix td,
.confidence-table th,
.confidence-table td,
.audit-table th,
.audit-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

body .project-workbench .wb-matrix th,
.confidence-table th,
.audit-table th {
  color: var(--muted);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

body .project-workbench .wb-qr,
.qr {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 15px;
  padding: 16px;
  background: var(--brand-soft);
}

.qr {
  display: inline-block;
  margin-top: 10px;
  background: #fff;
}

.qr svg,
body .project-workbench .wb-qr svg {
  display: block;
  width: 132px;
  height: 132px;
}

/* Dialogs and wizards */

.dialog-backdrop {
  position: fixed;
  z-index: var(--z-dialog);
  inset: 0;
  display: grid;
  overflow: auto;
  place-items: start center;
  padding: clamp(18px, 5vh, 50px) 20px;
  background: rgba(16, 24, 25, 0.54);
  backdrop-filter: blur(12px) saturate(105%);
}

.dialog-shell,
.wizard-shell {
  width: min(900px, 100%);
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: var(--panel-strong);
  box-shadow: 0 34px 100px rgba(16, 24, 25, 0.28);
  animation: dialog-enter 260ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wizard {
  width: 100%;
  max-width: 1030px;
  margin: auto;
}

.dialog-head,
.wizard-top {
  border-bottom: 1px solid var(--line);
  padding: 23px 28px;
  background: #f8faf9;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-head h2,
.wizard-content h2 {
  margin: 6px 0 0;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.dialog-body,
.wizard-content {
  padding: 30px;
}

.dialog-body > p,
.wizard-content > p {
  max-width: 67ch;
  margin: 0 0 23px;
  color: var(--muted);
}

.dialog-footer,
.wizard-actions {
  display: flex;
  min-height: 75px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 16px 28px;
  background: #f8faf9;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 7px;
}

.step {
  position: relative;
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.step b {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf1f1;
  color: var(--muted);
  font-size: 9px;
}

.step.active,
.step.complete {
  color: var(--ink);
}

.step.active b,
.step.complete b {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}

.choice-grid,
body .deploy-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice,
body .deploy-choice {
  position: relative;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  cursor: pointer;
  background: #f8faf9;
  transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease, box-shadow 170ms ease;
}

.choice:hover,
body .deploy-choice:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.choice:has(input:checked),
body .deploy-choice:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.choice:focus-within,
body .deploy-choice:focus-within,
.avatar-choice:focus-within,
.component-option:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  box-shadow: var(--focus);
}

.choice input,
body .deploy-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice strong,
.choice span,
body .deploy-choice strong,
body .deploy-choice span {
  display: block;
}

.choice span,
body .deploy-choice span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 430;
  line-height: 1.5;
}

.component-group {
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.component-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--muted);
  font-size: 10px;
  list-style: none;
}

.component-group summary::-webkit-details-marker {
  display: none;
}

.component-group summary > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
}

.component-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.component-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: calc(33.333% - 6px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
  background: #f8faf9;
  font-size: 10px;
}

.component-option > span {
  display: grid;
  gap: 3px;
}

.component-option small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.component-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-hover);
}

@media (max-width: 820px) {
  .component-option {
    width: calc(50% - 4px);
  }
}

@media (max-width: 560px) {
  .component-option {
    width: 100%;
  }
}

.review-box,
.wizard-summary,
body .deploy-summary {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  background: #f8faf9;
}

.expert-reconcile-choice {
  margin-top: 14px;
}

.review-row,
.wizard-summary > div,
body .deploy-summary > div {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  background: transparent;
}

.review-row:last-child,
.wizard-summary > div:last-child,
body .deploy-summary > div:last-child {
  border-bottom: 0;
}

.assist-card,
body .deploy-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: 15px;
  padding: 18px;
  background: var(--brand-soft);
  color: var(--ink);
}

.assist-card h3,
body .deploy-hero h3 {
  margin: 5px 0;
  color: var(--ink);
}

.assist-card p,
body .deploy-hero p {
  color: #45635e;
}

body .deploy-choice .deploy-choice-mark,
body .deploy-trust-icon {
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 9px;
  background: #f4faf8;
  color: var(--brand-hover);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

body .deploy-warning,
body .deploy-unready {
  border: 1px solid #decba7;
  border-radius: 12px;
  padding: 14px;
  background: var(--warning-soft);
  color: #74501d;
  font-size: 11px;
}

body .deploy-ready {
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: 14px;
  background: var(--brand-soft);
  color: var(--brand-hover);
  font-size: 11px;
}

body .deployment-launchpad {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 20px;
}

/* Project Expert Chat */

.project-chat {
  display: grid;
  min-height: 710px;
  overflow: hidden;
  grid-template-columns: 270px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-sm);
}

.pc-loading-shell {
  min-height: 710px;
  color: var(--muted);
}

.pc-loader {
  position: relative;
  width: 170px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 0;
  border-radius: 2px;
  background: var(--soft);
  animation: none;
}

.pc-loader::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(8, 124, 109, 0.45), transparent);
  content: "";
  animation: skeleton-scan 1.2s ease-in-out infinite;
  transform: translateX(-100%);
}

@keyframes skeleton-scan {
  to { transform: translateX(100%); }
}

.pc-agent-rail {
  max-height: 710px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(rgba(16, 24, 25, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 25, 0.025) 1px, transparent 1px),
    #f0f4f3;
  background-size: 34px 34px;
}

.pc-rail-head {
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  color: var(--muted);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: none;
}

.pc-rail-head strong {
  border-color: var(--brand-line);
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.pc-agent-list {
  align-content: start;
  gap: 5px;
  grid-auto-rows: max-content;
  padding: 10px;
}

button.pc-agent {
  min-height: 78px;
  grid-template-columns: 42px minmax(0, 1fr) 12px;
  border-radius: 13px;
  color: var(--ink);
}

button.pc-agent:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

button.pc-agent.active {
  border-color: var(--brand);
  background: var(--panel-strong);
  box-shadow: inset 3px 0 var(--brand), 0 10px 24px rgba(31, 56, 57, 0.08);
}

.pc-agent-avatar {
  width: 42px;
  height: 42px;
}

.pc-agent-avatar-large {
  width: 48px;
  height: 48px;
}

.pc-agent-avatar:has(img) {
  position: relative;
  overflow: hidden;
  border-color: var(--line-strong);
  background: var(--soft);
}

.pc-agent-avatar-fallback {
  display: grid;
  position: absolute;
  inset: 0;
  place-items: center;
}

.pc-agent-avatar img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.72) contrast(0.98);
}

.pc-agent-copy strong {
  font-size: 12px;
}

.pc-agent-copy small {
  color: var(--muted);
  font-size: 9px;
}

.pc-runtime.is-running span {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(8, 124, 109, 0.12);
}

.pc-conversation {
  background:
    radial-gradient(circle at 80% -25%, rgba(8, 124, 109, 0.075), transparent 27rem),
    var(--panel-strong);
}

.pc-chat-head {
  min-height: 94px;
  border-bottom-color: var(--line);
  padding: 18px 22px;
}

.pc-head-line h2 {
  color: var(--ink);
  font-size: 17px;
}

.pc-chat-agent p {
  color: var(--muted);
}

.pc-channel {
  border-color: var(--line);
  background: #eef2f2;
  color: var(--ink-soft);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  letter-spacing: 0.02em;
  text-transform: none;
}

.pc-channel-whatsapp {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.pc-conversation-control label > span {
  color: var(--muted);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.pc-context-strip {
  border-bottom-color: var(--line);
  background: #f5f8f7;
  color: var(--muted);
}

.pc-context-strip > span,
.pc-empty-icon,
.pc-readonly-icon {
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-hover);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.pc-context-strip > span {
  width: 24px;
  height: 24px;
}

.pc-message-scroll {
  padding: 30px clamp(22px, 4vw, 58px);
  scrollbar-color: var(--line-strong) transparent;
}

.pc-message-content {
  border-color: var(--line);
  border-radius: 5px 16px 16px;
  padding: 13px 15px;
  background: #f0f4f3;
  color: var(--ink-soft);
  box-shadow: 0 7px 20px rgba(31, 56, 57, 0.045);
}

.pc-message-coordinator .pc-message-content {
  border-color: var(--brand);
  border-radius: 16px 5px 16px 16px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 124, 109, 0.17);
}

.pc-message-system .pc-message-content {
  background: var(--warning-soft);
}

.pc-message-actions button {
  border-color: var(--line);
  background: var(--panel-strong);
  color: var(--muted);
}

.pc-message-actions button:hover:not(:disabled) {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.pc-message-actions button.is-complete {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.pc-empty-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 9px;
  border-radius: 14px;
  font-size: 11px;
}

.pc-prompts button {
  border-color: var(--line);
  border-radius: 10px;
  background: var(--panel-strong);
  color: var(--ink-soft);
  box-shadow: none;
}

.pc-composer {
  border-color: var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(31, 56, 57, 0.1);
}

.pc-composer:focus-within {
  border-color: var(--brand);
  box-shadow: var(--focus), 0 18px 42px rgba(31, 56, 57, 0.11);
}

.pc-whatsapp-readonly {
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

.pc-readonly-icon {
  width: 36px;
  height: 36px;
}

/* Settings, confidence, and demonstration */

.environment-hero,
.demo-settings-hero {
  display: flex;
  justify-content: space-between;
  margin-bottom: 17px;
}

.environment-hero h2,
.demo-settings-hero h2 {
  margin: 5px 0;
  color: var(--ink);
  font-size: 30px;
  letter-spacing: -0.045em;
}

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

.environment-grid .card,
.demo-settings-grid .card {
  display: grid;
  gap: 10px;
}

.demo-settings-list > div {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f6f8f7;
}

.demo-workspace-badge {
  border-color: var(--line-strong);
  background: #edf1f1;
  color: var(--ink-soft);
}

.demo-maturity-ready_to_launch,
.demo-evidence-recorded {
  border-color: var(--line-strong);
  background: #edf1f1;
  color: var(--ink-soft);
}

.demo-reset-panel {
  border-color: #e3bec0;
  border-radius: 15px;
}

.demo-reset-panel > summary {
  background: var(--danger-soft);
  color: var(--danger);
}

.demo-presenter-backdrop {
  z-index: var(--z-dialog);
  background: rgba(16, 24, 25, 0.54);
  backdrop-filter: blur(10px);
}

.demo-presenter-panel {
  border-left: 1px solid var(--line);
  background:
    linear-gradient(rgba(16, 24, 25, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 25, 0.025) 1px, transparent 1px),
    #f5f8f7;
  background-size: 36px 36px;
  box-shadow: -28px 0 80px rgba(16, 24, 25, 0.24);
}

.demo-presenter-progress button > span {
  border-radius: 8px;
  background: var(--soft);
}

.demo-presenter-progress button.active,
.demo-presenter-progress button.complete {
  color: var(--brand-hover);
}

.demo-presenter-progress button.active > span,
.demo-presenter-progress button.complete > span {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}

.demo-presenter-proof-live {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.demo-presenter-proof-recorded,
.demo-presenter-project,
.demo-presenter-proof {
  border-color: var(--line);
  background: #f7f9f8;
  color: var(--ink-soft);
}

.confidence-card {
  padding: 20px;
}

.confidence-access.allowed {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-hover);
}

/* Compact, focus-first application shell */

.topbar {
  height: 54px;
  padding-right: clamp(18px, 2.4vw, 36px);
  padding-left: clamp(18px, 2.4vw, 36px);
}

.topbar-label {
  display: none;
}

.content {
  min-height: calc(100dvh - 54px);
  padding-top: clamp(26px, 3vw, 44px);
}

.member-profile {
  top: 72px;
}

.sidebar-toggle {
  position: absolute;
  top: 27px;
  right: 15px;
  display: grid;
  width: 34px;
  min-height: 34px;
  place-items: center;
  border-color: var(--line);
  padding: 0;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-soft);
  box-shadow: none;
}

.sidebar-toggle svg,
.nav-icon svg,
.expert-file-glyph svg,
.expert-policy-lock svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.sidebar-toggle svg {
  transition: transform 180ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.nav-icon {
  display: grid;
  place-items: center;
}

.nav-icon svg {
  width: 19px;
  height: 19px;
}

#app,
.sidebar,
.nav button,
.brand-line,
.side-footer {
  transition:
    grid-template-columns 220ms cubic-bezier(0.2, 0.75, 0.25, 1),
    width 220ms cubic-bezier(0.2, 0.75, 0.25, 1),
    padding 220ms cubic-bezier(0.2, 0.75, 0.25, 1),
    gap 180ms ease;
}

#app.sidebar-collapsed {
  grid-template-columns: 78px minmax(0, 1fr);
}

.sidebar-collapsed .sidebar {
  gap: 30px;
  padding-right: 11px;
  padding-left: 11px;
}

.sidebar-collapsed .brand {
  padding: 0 10px;
}

.sidebar-collapsed .brand-line {
  gap: 0;
}

.sidebar-collapsed .brand-line > span:last-child,
.sidebar-collapsed .brand small,
.sidebar-collapsed .nav button > span:last-child,
.sidebar-collapsed .side-footer > :not(.side-footer-status),
.sidebar-collapsed .side-footer-status > span:last-child {
  display: none;
}

.sidebar-collapsed .sidebar-toggle {
  top: 67px;
  right: 22px;
}

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

.sidebar-collapsed .nav button {
  min-height: 48px;
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 10px;
}

.sidebar-collapsed .nav button.active::after {
  right: 5px;
}

.sidebar-collapsed .side-footer {
  min-height: 52px;
  place-items: center;
  padding: 10px;
}

.sidebar-collapsed .side-footer-status {
  display: grid;
  place-items: center;
}

/* Recognizable specialist portraits */

.expert-art.has-portrait {
  isolation: isolate;
  background: #dce5e3;
}

.expert-art.has-portrait::before {
  z-index: 2;
  border-color: rgba(224, 240, 236, 0.64);
  box-shadow: 0 0 0 34px rgba(8, 124, 109, 0.09);
}

.expert-art.has-portrait::after {
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  background:
    linear-gradient(180deg, rgba(16, 24, 25, 0.04) 20%, rgba(16, 24, 25, 0.72) 100%),
    linear-gradient(115deg, rgba(8, 124, 109, 0.18), transparent 55%);
  content: "";
  transform: none;
}

.expert-portrait {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.68) contrast(0.96) brightness(0.94);
  transform: scale(1.005);
  transition: filter 260ms ease, transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.expert-card:hover .expert-portrait {
  filter: saturate(0.82) contrast(0.98) brightness(0.98);
  transform: scale(1.035);
}

.expert-art.has-portrait .expert-registration,
.expert-art.has-portrait .art-index {
  z-index: 4;
  color: rgba(255, 255, 255, 0.86);
}

.expert-art.has-portrait .expert-portrait-fallback {
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
}

.expert-art.has-portrait .expert-registration {
  border-color: rgba(255, 255, 255, 0.72);
}

.expert-art.has-portrait .expert-registration::before,
.expert-art.has-portrait .expert-registration::after {
  background: rgba(255, 255, 255, 0.72);
}

.expert-art.has-portrait .art-label {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(16, 24, 25, 0.55);
  color: #fff;
}

.member-profile .expert-portrait {
  object-position: center 30%;
}

/* Avatar choice in the guided expert form */

.avatar-picker {
  min-width: 0;
  margin: 3px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
}

.avatar-picker legend {
  padding: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.avatar-picker legend span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.avatar-choice-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(82px, 1fr));
  gap: 9px;
  margin-top: 11px;
}

.avatar-choice {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 8px;
  background: #f7f9f8;
  cursor: pointer;
  text-align: center;
}

.avatar-choice:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: var(--focus);
}

.avatar-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-choice img,
.avatar-choice-monogram {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  filter: saturate(0.72);
}

.avatar-choice-monogram {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 20px;
}

.avatar-choice strong,
.avatar-choice small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-choice strong {
  font-size: 10px;
}

.avatar-choice small {
  color: var(--muted);
  font-size: 8px;
}

/* Hermes expert profile editor */

.expert-profile-files {
  padding: 0;
  overflow: hidden;
}

.expert-profile-files > .section-head {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px;
}

.expert-file-conflict {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr) auto;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid #decba7;
  padding: 14px 22px;
  background: var(--warning-soft);
  color: #795019;
  font-size: 11px;
}

.expert-file-conflict strong,
.expert-file-conflict span {
  display: block;
}

.expert-file-conflict span {
  margin-top: 2px;
  line-height: 1.5;
}

.expert-file-conflict details {
  border: 0;
  padding: 0;
}

.expert-file-conflict summary {
  color: #795019;
  font-size: 10px;
}

.expert-file-conflict pre {
  max-height: 170px;
  overflow: auto;
  margin: 8px 0 0;
  border: 1px solid #decba7;
  border-radius: 9px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 9px;
  white-space: pre-wrap;
}

.expert-file-workspace {
  display: grid;
  min-height: 510px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.expert-file-tree {
  display: grid;
  align-content: start;
  gap: 3px;
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  background: #f3f6f5;
}

.expert-file-nav {
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid transparent;
  padding: 9px 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  white-space: normal;
}

.expert-file-nav:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.expert-file-nav.active {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 7px 18px rgba(31, 56, 57, 0.06);
}

.expert-file-nav > span:nth-child(2) {
  min-width: 0;
}

.expert-file-nav strong,
.expert-file-nav small,
.expert-file-nav em {
  display: block;
}

.expert-file-nav strong {
  overflow: hidden;
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expert-file-nav small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.expert-file-nav em {
  display: none;
}

.expert-file-editor {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
}

.expert-file-editor > header,
.expert-file-editor > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 17px;
}

.expert-file-editor > header {
  border-bottom: 1px solid var(--line);
}

.expert-file-editor > header strong,
.expert-file-editor > header span {
  display: block;
}

.expert-file-editor > header strong {
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 11px;
}

.expert-file-editor > header div > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.expert-file-field {
  min-height: 0;
}

.expert-file-field textarea {
  width: 100%;
  height: 100%;
  min-height: 365px;
  border: 0;
  border-radius: 0;
  padding: 22px 24px;
  background: #fbfcfc;
  color: var(--ink-soft);
  font-family: Ubuntu, "Noto Sans", sans-serif;
  font-size: 12px;
  line-height: 1.75;
  resize: vertical;
}

.expert-file-field textarea.code-editor {
  background: #182021;
  color: #dfe9e7;
  caret-color: #8bd0c4;
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 11px;
  line-height: 1.65;
  tab-size: 2;
}

.expert-file-editor > footer {
  align-items: flex-end;
  border-top: 1px solid var(--line);
  background: #f7f9f8;
}

.expert-file-editor > footer p {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.expert-memory-policy {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 42px;
  background:
    radial-gradient(circle at center, rgba(8, 124, 109, 0.08), transparent 18rem),
    #fbfcfc;
  text-align: center;
}

.expert-policy-lock {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.expert-policy-lock svg {
  width: 24px;
  height: 24px;
}

.expert-memory-policy h3 {
  margin: 18px 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.expert-memory-policy p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.expert-policy-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.expert-policy-flow span {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 9px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 9px;
}

.expert-policy-flow b {
  color: var(--brand);
}

/* Toast */

.toast {
  position: fixed;
  z-index: var(--z-toast);
  right: 22px;
  bottom: 22px;
  max-width: min(430px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 13px 16px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 22px 60px rgba(16, 24, 25, 0.27);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.error-state {
  background: var(--danger);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (min-width: 1181px) {
  .expert-card:first-child,
  .org-card:first-child,
  .project-card:first-child {
    grid-column: span 2;
  }

  .expert-card:first-child .expert-art,
  .org-card:first-child .org-banner,
  .project-card:first-child .project-banner {
    min-height: 245px;
  }

  .expert-card:first-child .expert-monogram {
    right: 34px;
    font-size: 190px;
  }
}

@media (max-width: 1180px) {
  #app {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .sidebar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .expert-grid,
  .org-gallery,
  .project-gallery,
  .component-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero,
  body .portfolio-hero {
    min-height: 360px;
  }

  .avatar-choice-grid {
    grid-template-columns: repeat(4, minmax(82px, 1fr));
  }
}

@media (max-width: 1000px) {
  #login {
    grid-template-columns: 1fr;
  }

  .login-stage {
    min-height: 430px;
  }

  .login-card {
    width: min(620px, 100%);
  }

  .dashboard-hero,
  body .portfolio-hero,
  .journey-grid,
  body .portfolio-layout,
  body .project-workbench .wb-hero,
  body .project-workbench .wb-grid.two,
  body .project-workbench .wb-grid.team,
  .detail-layout,
  .project-page-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .member-profile {
    position: static;
  }

  .expert-file-workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  body .project-workbench .wb-hero-panel {
    min-height: 150px;
  }
}

@media (max-width: 860px) {
  #app {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 11px 14px 9px;
  }

  .sidebar-toggle {
    display: none;
  }

  #app.sidebar-collapsed {
    display: block;
  }

  .sidebar-collapsed .brand-line > span:last-child,
  .sidebar-collapsed .nav button > span:last-child {
    display: inline;
  }

  #app.sidebar-collapsed .sidebar {
    gap: 10px;
    padding: 11px 14px 9px;
  }

  #app.sidebar-collapsed .brand {
    padding: 0 2px;
  }

  #app.sidebar-collapsed .brand-line {
    gap: 12px;
  }

  #app.sidebar-collapsed .nav button {
    min-height: 39px;
    grid-template-columns: 24px auto;
    justify-items: stretch;
    padding: 8px 11px;
  }

  .brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand small,
  .side-footer {
    display: none;
  }

  .nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    margin: 0 -3px;
    padding: 0 3px 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav button {
    min-height: 39px;
    grid-template-columns: 24px auto;
    flex: 0 0 auto;
    padding: 8px 11px;
    white-space: nowrap;
  }

  .nav button.active::after {
    display: none;
  }

  .topbar {
    position: static;
    height: 50px;
  }

  .content {
    min-height: calc(100dvh - 123px);
    padding: 32px 18px 66px;
  }

  .expert-file-workspace {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .expert-file-conflict {
    grid-template-columns: 1fr;
  }

  .expert-file-tree {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .expert-file-nav {
    min-width: 170px;
    flex: 0 0 auto;
  }

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

  .top-page-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .metric-grid,
  body .portfolio-metrics,
  .demo-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:nth-child(2),
  body .portfolio-metric:nth-child(2),
  .demo-proof-strip article:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2),
  body .portfolio-metric:nth-child(-n + 2),
  .demo-proof-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .library-controls,
  .library-controls.tenant-search {
    grid-template-columns: 1fr 1fr;
  }

  .library-result {
    grid-column: 1 / -1;
  }

  .dialog-backdrop {
    align-items: end;
    padding: 12px;
  }

  .dialog-shell {
    max-height: calc(100dvh - 24px);
    overflow: auto;
    border-radius: 20px;
  }

  .dialog-footer,
  .wizard-actions {
    position: sticky;
    z-index: 2;
    bottom: 0;
  }

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

  .pc-agent-rail {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .login-stage {
    min-height: 340px;
    padding: 28px;
  }

  .login-stage-copy h2 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .login-stage-copy p {
    display: none;
  }

  .page-head h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .dashboard-hero,
  body .portfolio-hero {
    min-height: 0;
    gap: 32px;
    padding: 30px 24px;
  }

  .dashboard-hero h1,
  body .portfolio-hero h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .expert-grid,
  .org-gallery,
  .project-gallery,
  .component-grid,
  .environment-grid,
  .demo-settings-grid,
  .stat-row,
  .tenant-stat-grid,
  body .project-workbench .wb-kpis,
  body .project-workbench .wb-file-shelf,
  body .project-workbench .wb-service-grid,
  .choice-grid,
  body .deploy-choice-grid,
  .form-grid,
  .kit-grid {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: auto;
  }

  .library-controls,
  .library-controls.tenant-search {
    grid-template-columns: 1fr;
  }

  .library-result {
    grid-column: auto;
  }

  .tenant-hero,
  .environment-hero,
  .demo-settings-hero,
  .deployment-launchpad {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .tenant-hero {
    padding: 25px;
  }

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

  .step {
    display: none;
  }

  .step.active {
    display: flex;
  }

  .step.active::after {
    margin-left: auto;
    color: var(--muted);
    content: "Current step";
    font-size: 8px;
  }

  .avatar-choice-grid {
    grid-template-columns: repeat(2, minmax(92px, 1fr));
  }

  .expert-file-editor > header,
  .expert-file-editor > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .expert-file-editor > footer button {
    width: 100%;
  }

  .expert-memory-policy {
    padding: 34px 20px;
  }

  .wide-cta,
  .connector-row,
  .file-row,
  .project-row,
  .assignment,
  body .project-workbench .wb-row,
  body .project-workbench .wb-check {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-head,
  .wizard-top,
  .dialog-body,
  .wizard-content,
  .dialog-footer,
  .wizard-actions {
    padding-right: 20px;
    padding-left: 20px;
  }

  .dialog-footer,
  .wizard-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .dialog-footer > button,
  .dialog-footer > div,
  .dialog-footer > div button,
  .wizard-actions > button,
  .wizard-actions > div,
  .wizard-actions > div button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  #login {
    padding: 12px;
  }

  .login-stage {
    min-height: 300px;
    border-radius: 20px;
  }

  .login-stage-brand .brand-mark {
    width: 30px;
    height: 30px;
  }

  .login-card {
    border-radius: 20px;
    padding: 30px 24px;
  }

  .top-actions .tag,
  .admin-chip > span:last-child,
  .topbar-label {
    display: none;
  }

  .metric-grid,
  body .portfolio-metrics,
  .demo-proof-strip {
    grid-template-columns: 1fr;
  }

  .metric,
  body .portfolio-metric,
  .demo-proof-strip article,
  .metric:not(:first-child),
  body .portfolio-metric:not(:first-child),
  .demo-proof-strip article:not(:first-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }

  .metric:last-child,
  body .portfolio-metric:last-child,
  .demo-proof-strip article:last-child {
    border-bottom: 0;
  }

  body .portfolio-project,
  .review-row,
  .wizard-summary > div,
  body .deploy-summary > div {
    grid-template-columns: 1fr;
    display: grid;
  }

  body .portfolio-project button,
  .top-page-actions button,
  .page-head > button {
    width: 100%;
  }

  body .project-workbench .wb-hero {
    padding: 26px 22px;
  }

  body .project-workbench .wb-hero h1 {
    font-size: 42px;
  }
}

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

.connector-preflight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .72fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}

.connector-preflight h3,
.it-request-layout h3,
.it-request-preview-head h3 {
  margin: 0 0 6px;
}

.connector-preflight p,
.it-request-fields > p,
.it-request-preview-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.connector-preflight-actions,
.it-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.connector-secure-note {
  border: 1px solid #c8dbd5;
  border-radius: 12px;
  padding: 13px;
  background: #f8fbfa;
  color: #3c5a52 !important;
}

.connector-secret-area {
  min-height: 138px;
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 10px;
  line-height: 1.45;
}

.it-request-dialog {
  width: min(1120px, 100%);
}

.it-request-layout {
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
  gap: 0;
  padding: 0;
}

.it-request-fields,
.it-request-preview {
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 28px;
}

.it-request-fields {
  border-right: 1px solid var(--line);
  background: #f7faf9;
}

.it-request-preview {
  background: #fff;
}

.it-request-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.it-request-trust {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.it-request-trust strong {
  color: var(--brand-hover);
  font-size: 11px;
}

.it-request-trust span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

#it-request-subject,
#it-request-body {
  background: #f8faf9;
}

#it-request-body {
  min-height: min(51vh, 510px);
  resize: vertical;
  font-family: "Ubuntu Mono", "Noto Sans Mono", monospace;
  font-size: 10px;
  line-height: 1.55;
}

.it-request-dialog .dialog-footer {
  align-items: center;
}

.it-request-dialog .it-request-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.project-service-dialog .stepper {
  grid-template-columns: repeat(var(--wizard-steps, 4), minmax(0, 1fr));
}

.sharepoint-setup-grid {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.35fr);
  gap: 24px;
  align-items: start;
}

.sharepoint-guide {
  margin: 0;
  background: #f3f8f6;
  border-color: #cbded8;
}

.sharepoint-guide ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
  padding-left: 21px;
  color: #476158;
  font-size: 12px;
  line-height: 1.55;
}

.sharepoint-discovery,
.sharepoint-browser-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 25px;
  border: 1px dashed #a9c9c0;
  background: #f7fbfa;
  color: var(--muted);
}

.sharepoint-discovery {
  border-radius: 14px;
}

.sharepoint-discovery strong,
.sharepoint-browser-empty strong {
  color: var(--navy);
}

.sharepoint-site-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 0 18px;
}

.sharepoint-site-summary strong,
.sharepoint-site-summary small,
.sharepoint-browser-bar strong,
.sharepoint-browser-bar small,
.sharepoint-item strong,
.sharepoint-item small {
  display: block;
}

.sharepoint-site-summary small,
.sharepoint-browser-bar small,
.sharepoint-item small {
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.sharepoint-library-picker {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.sharepoint-library-picker legend {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.sharepoint-library {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.sharepoint-library:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.sharepoint-library:focus-within {
  outline: 3px solid color-mix(in srgb, var(--brand) 24%, transparent);
  outline-offset: 2px;
}

.sharepoint-library input {
  width: auto;
}

.sharepoint-library strong,
.sharepoint-library small {
  display: block;
}

.sharepoint-library small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 400;
}

.sharepoint-browser-dialog {
  width: min(900px, 100%);
}

.sharepoint-browser-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 25px;
  border-bottom: 1px solid var(--line);
  background: #f7faf9;
}

.sharepoint-browser-list {
  display: grid;
  gap: 8px;
  min-height: 320px;
  max-height: min(58vh, 620px);
  overflow: auto;
}

.sharepoint-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.sharepoint-item-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d4e3de;
  background: #edf6f3;
  color: var(--brand);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

@media (max-width: 760px) {
  .connector-preflight,
  .it-request-layout {
    grid-template-columns: 1fr;
  }

  .it-request-fields {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .it-request-dialog .dialog-footer,
  .it-request-preview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .it-request-actions > button {
    flex: 1 1 100%;
  }

  .sharepoint-setup-grid {
    grid-template-columns: 1fr;
  }

  .project-service-dialog .stepper {
    grid-template-columns: 1fr 1fr;
  }

  .sharepoint-browser-bar {
    padding: 12px 16px;
  }

  .sharepoint-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .sharepoint-item-icon {
    width: 36px;
    height: 36px;
  }

  .sharepoint-item .wb-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .sharepoint-browser-dialog .dialog-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Users and accountable access */

.invitation-setup { align-self: center; }

.invitation-context {
  display: grid;
  gap: 3px;
  min-height: 58px;
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #eef7f4;
  color: var(--ink);
}

.invitation-context:empty {
  background: linear-gradient(90deg, #eef3f2 25%, #f8fbfa 50%, #eef3f2 75%);
  background-size: 220% 100%;
  animation: invitation-loading 1.35s ease-in-out infinite;
}

.invitation-context strong { font-size: 13px; overflow-wrap: anywhere; }
.invitation-context span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

@keyframes invitation-loading {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .invitation-context:empty { animation: none; }
}

.access-command {
  display: flex;
  min-height: 168px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(26px, 4vw, 46px);
  border-radius: 18px;
  background: var(--ink);
  color: #f6fbfa;
  box-shadow: 0 24px 64px rgba(16, 24, 25, 0.17);
}

.access-command h2 {
  max-width: 720px;
  margin: 0 0 12px;
  color: inherit;
  font-size: clamp(28px, 3.7vw, 48px);
  font-weight: 610;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.access-command p { max-width: 68ch; margin: 0; color: #c8d6d3; line-height: 1.65; }
.access-command .primary { flex: 0 0 auto; background: #f6fbfa; color: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); }

.access-summary-line { display: flex; flex-wrap: wrap; margin: 26px 0 20px; border-block: 1px solid var(--line); }
.access-summary-line span { display: flex; min-height: 62px; align-items: baseline; gap: 7px; padding: 17px clamp(18px, 2.3vw, 32px); color: var(--muted); font-size: 12px; }
.access-summary-line span:first-child { padding-left: 0; }
.access-summary-line span + span { border-left: 1px solid var(--line); }
.access-summary-line strong { color: var(--ink); font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }

.access-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: clamp(22px, 3vw, 40px); align-items: start; }
.access-roster { min-width: 0; }
.access-roster-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.access-roster-head label { width: min(440px, 100%); }
.access-roster-head > span { padding-bottom: 10px; color: var(--muted); font-family: "Ubuntu Mono", "Noto Sans Mono", monospace; font-size: 10px; }
.access-user-list { border-top: 1px solid var(--line-strong); }

.access-user-row {
  display: grid;
  grid-template-columns: 42px minmax(160px, 0.8fr) minmax(220px, 1.25fr) minmax(150px, 0.7fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.access-user-row:hover { background: rgba(8, 124, 109, 0.035); }
.access-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand-hover); font-family: "Ubuntu Mono", "Noto Sans Mono", monospace; font-size: 10px; font-weight: 700; }
.access-user-identity, .access-user-role, .access-user-evidence { display: grid; min-width: 0; gap: 3px; }
.access-user-identity strong, .access-user-role strong, .access-user-identity span, .access-user-role span, .access-user-evidence small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-user-identity span, .access-user-role span, .access-user-evidence small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.access-user-role strong { font-size: 12px; }
.access-status { width: max-content; border-radius: 999px; padding: 3px 8px; background: var(--soft); color: var(--ink-soft); font-size: 10px; font-weight: 700; text-transform: capitalize; }
.access-status.active { background: var(--brand-soft); color: var(--brand-hover); }
.access-status.invited { background: #fff2df; color: #935312; }
.access-status.suspended { background: #f9e7e7; color: #983d3d; }

.access-principles { position: sticky; top: 78px; padding: 26px; border-radius: 16px; background: #eef4f2; }
.access-principle-icon, .access-result-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: var(--brand); color: #fff; }
.access-principle-icon svg, .access-result-mark svg, .access-principle svg, .access-role-choice svg, .access-full-scope svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.access-principles h3 { margin: 22px 0 8px; font-size: 21px; letter-spacing: -0.03em; }
.access-principles > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.access-principle { display: grid; grid-template-columns: 28px 1fr; gap: 11px; margin-top: 22px; }
.access-principle > span { color: var(--brand-hover); }
.access-principle div { display: grid; gap: 3px; }
.access-principle small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.access-footnote { margin-top: 24px !important; border-top: 1px solid rgba(16, 24, 25, 0.11); padding-top: 17px; }

.access-invite-dialog { width: min(940px, 100%); }
.access-stepper { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); padding: 0 28px; background: #f8faf9; }
.access-stepper span { display: flex; min-height: 56px; align-items: center; gap: 8px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 11px; font-weight: 650; }
.access-stepper span.active { border-bottom-color: var(--brand); color: var(--ink); }
.access-stepper span.complete { color: var(--brand-hover); }
.access-stepper b { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: var(--soft); font-family: "Ubuntu Mono", "Noto Sans Mono", monospace; font-size: 9px; }
.access-stepper .active b, .access-stepper .complete b { background: var(--brand); color: #fff; }
.access-invite-dialog .dialog-body > h3 { margin: 0 0 8px; font-size: 25px; letter-spacing: -0.035em; }
.access-invite-dialog .dialog-body > p { margin-bottom: 25px; }
.access-role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.access-role-choice { position: relative; display: grid; min-height: 154px; grid-template-columns: 32px 1fr; gap: 5px 11px; align-content: start; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; cursor: pointer; }
.access-role-choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 10px 28px rgba(8, 124, 109, 0.08); }
.access-role-choice input { position: absolute; top: 15px; right: 15px; width: auto; }
.access-role-choice > span { grid-row: 1 / span 2; color: var(--brand-hover); }
.access-role-choice strong { padding-right: 24px; font-size: 14px; }
.access-role-choice small { grid-column: 2; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.55; }

.access-scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.access-scope-grid fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.access-scope-grid legend { padding: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.access-scope-grid fieldset > p, .access-scope-note { min-height: 39px; margin: 5px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.access-check-list { max-height: 290px; overflow: auto; border-block: 1px solid var(--line); scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
.access-check-list label { display: grid; grid-template-columns: 19px 1fr; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 5px; cursor: pointer; }
.access-check-list label:last-child { border-bottom: 0; }
.access-check-list input { width: auto; }
.access-check-list span { display: grid; gap: 2px; }
.access-check-list small { color: var(--muted); font-size: 10px; font-weight: 400; }
.access-full-scope { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; border-radius: 14px; padding: 24px; background: var(--brand-soft); }
.access-full-scope > span { color: var(--brand-hover); }
.access-full-scope p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.access-review { border-block: 1px solid var(--line); }
.access-review > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 3px 22px; border-bottom: 1px solid var(--line); padding: 17px 0; }
.access-review > div:last-child { border-bottom: 0; }
.access-review span { grid-row: 1 / span 2; color: var(--muted); font-size: 11px; }
.access-review small { color: var(--muted); font-size: 11px; }
.access-invite-ack { margin-top: 18px; }

.access-invite-result { width: min(760px, 100%); }
.access-invite-result .dialog-body { display: grid; gap: 24px; }
.access-copy-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.access-copy-field input { font-family: "Ubuntu Mono", "Noto Sans Mono", monospace; font-size: 11px; }
.access-result-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.access-result-facts > div { display: grid; gap: 4px; padding: 16px; }
.access-result-facts > div + div { border-left: 1px solid var(--line); }
.access-result-facts span { color: var(--muted); font-size: 10px; }
.access-result-facts strong { overflow-wrap: anywhere; font-size: 12px; }
.access-invite-result .dialog-footer p { margin: 0; color: var(--muted); font-size: 11px; }

.access-editor-dialog { width: min(1080px, 100%); }
.access-editor-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr); gap: 32px; }
.access-editor-form { display: grid; gap: 18px; }
.access-editor-form > label { max-width: 520px; }
.access-activity-panel { border-left: 1px solid var(--line); padding-left: 25px; }
.access-activity-panel h3 { margin: 0 0 4px; }
.access-activity-panel > p { margin: 0 0 15px; color: var(--muted); font-size: 11px; }
.access-activity-panel > div:not(.empty) { display: grid; gap: 2px; border-top: 1px solid var(--line); padding: 11px 0; }
.access-activity-panel strong { font-size: 11px; text-transform: capitalize; }
.access-activity-panel span, .access-activity-panel small { color: var(--muted); font-size: 9px; }
.access-editor-footer > div { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 1100px) {
  .access-user-row { grid-template-columns: 42px minmax(150px, 1fr) minmax(180px, 1.1fr) auto; }
  .access-user-evidence { grid-column: 2 / 4; grid-row: 2; }
}

@media (max-width: 860px) {
  .access-command, .access-roster-head { align-items: stretch; flex-direction: column; }
  .access-layout, .access-editor-body { grid-template-columns: 1fr; }
  .access-principles { position: static; }
  .access-activity-panel { border-top: 1px solid var(--line); border-left: 0; padding-top: 22px; padding-left: 0; }
}

@media (max-width: 620px) {
  .access-command { padding: 24px; }
  .access-summary-line span, .access-summary-line span:first-child { width: 50%; border: 0; border-bottom: 1px solid var(--line); padding: 13px 10px 13px 0; }
  .access-user-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .access-user-role, .access-user-evidence { grid-column: 2 / 4; }
  .access-user-role { grid-row: 2; }
  .access-user-evidence { grid-row: 3; }
  .access-role-grid, .access-scope-grid, .access-result-facts { grid-template-columns: 1fr; }
  .access-stepper { overflow-x: auto; grid-template-columns: repeat(4, minmax(115px, 1fr)); padding-inline: 18px; }
  .access-review > div { grid-template-columns: 1fr; }
  .access-review span { grid-row: auto; }
  .access-copy-field { grid-template-columns: 1fr; }
  .access-result-facts > div + div { border-top: 1px solid var(--line); border-left: 0; }
}

.account-settings-layout { display: grid; grid-template-columns: minmax(230px, 0.65fr) minmax(0, 1.35fr); gap: 18px; align-items: start; }
.account-identity { display: flex; align-items: center; gap: 16px; }
.account-identity .access-avatar { width: 52px; height: 52px; font-size: 12px; }
.account-identity h2 { margin: 0 0 3px; }
.account-identity p { margin: 0 0 9px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .account-settings-layout { grid-template-columns: 1fr; }
}

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

  .view.active,
  .pc-loader::after,
  .demo-presenter-progress,
  .expert-portrait {
    animation: none !important;
    transition: none !important;
  }

  button,
  .expert-card,
  .org-card,
  .project-card,
  #app,
  .sidebar,
  .nav button,
  .brand-line,
  .side-footer,
  .sidebar-toggle svg {
    transition-duration: 0ms !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  button,
  .dialog-backdrop,
  .toast {
    display: none !important;
  }

  #app {
    display: block;
  }

  .content {
    max-width: none;
    padding: 0;
  }

  .card,
  .portfolio-panel,
  body .project-workbench .wb-card,
  .project-chat {
    box-shadow: none !important;
  }
}
