/*
Traceability: Story #0 | Date: 2026-08-22 | Agent: George | Change: Style the DevsOff org tenant shell, release manager, auth entry, admin, and support surfaces.
*/

:root {
  color-scheme: light;
  --canvas: #f6f8fb;
  --surface: #ffffff;
  --subtle: #eef3f8;
  --raised: #ffffff;
  --text: #071437;
  --muted: #566683;
  --tertiary: #77839d;
  --line: #d9e2ef;
  --line-strong: #b7c4d8;
  --primary: #075eea;
  --primary-strong: #064bc0;
  --success: #138a4b;
  --warning: #b56b00;
  --danger: #bf2e2e;
  --info: #1c6e9c;
  --focus: #0a66ff;
  --shadow: 0 12px 32px rgba(24, 39, 75, .08);
  --rail: 272px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

/* Story: #0 | Date: 2026-09-01 | Agent: George | Change: Ensure modal action controls marked hidden cannot remain visibly clickable after completion. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

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

button,
a,
select,
input {
  min-height: 40px;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.15;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 19px;
}

h3 {
  font-size: 15px;
}

p,
small {
  color: var(--muted);
}

code {
  display: inline-block;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 6px;
  background: #eef2f7;
  color: #23314d;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.app-root {
  min-height: 100vh;
}

.noscript {
  max-width: 640px;
  margin: 80px auto;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 28px clamp(20px, 6vw, 122px) 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .94) 48%, rgba(240, 246, 255, .95) 100%),
    var(--canvas);
}

/* Story: #0 | Date: 2026-08-22 | Agent: George | Change: Revamp the unauthenticated tenant homepage into a split command-center login experience. */
.auth-panel {
  width: min(1650px, 100%);
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, .65fr);
  align-items: stretch;
  justify-self: center;
  gap: clamp(28px, 5vw, 64px);
}

.auth-header {
  width: min(1650px, 100%);
  min-height: 68px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-self: center;
  gap: 24px;
}

.auth-logo-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 44px;
}

.brand-logo.auth-logo {
  width: clamp(190px, 16vw, 268px);
}

.auth-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(24px, 4vw, 56px);
}

.auth-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #071a46;
  font-weight: 800;
  text-decoration: none;
}

.auth-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(360px, 1.15fr);
  grid-template-rows: auto 1fr;
  gap: clamp(18px, 3vw, 42px) clamp(18px, 3vw, 34px);
  padding: clamp(28px, 4vh, 48px) 0 clamp(28px, 5vh, 52px);
}

.login-column {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: clamp(34px, 5vh, 64px);
  padding: clamp(44px, 10vh, 96px) 0 clamp(34px, 7vh, 68px) clamp(28px, 4vw, 64px);
  border-left: 1px solid #c9d7ec;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 152px;
  max-width: 100%;
  height: auto;
  display: block;
}

.tenant-chip,
.status-pill,
.badge,
.run-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--subtle);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tenant-chip {
  color: var(--primary);
  background: #edf5ff;
  border-color: #c9ddff;
}

.auth-copy {
  min-width: 0;
  display: grid;
  gap: 28px;
  max-width: 520px;
}

.auth-copy p {
  max-width: 430px;
  color: #1d3566;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.7;
}

.auth-copy h1 {
  color: #020817;
  font-size: clamp(44px, 4vw, 58px);
  font-weight: 900;
  line-height: .94;
}

.auth-copy h1 span {
  display: inline;
  color: #1467f7;
  white-space: nowrap;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f7fb;
}

.auth-tabs button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.auth-tabs button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(20, 35, 70, .1);
}

.auth-card,
.bridge-card,
.preview-window,
.panel,
.metric,
.table-panel,
.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(24, 39, 75, .04);
}

.auth-card,
.bridge-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.login-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-heading h2,
.login-card h2 {
  color: #020817;
  font-size: clamp(34px, 3.3vw, 43px);
  font-weight: 900;
}

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

.method-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 7px;
  border: 1px solid #b7c8e3;
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
}

.method-switch button {
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #001b52;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.method-switch button.is-active {
  background: #e8f1ff;
  color: #055fe9;
  box-shadow: inset 0 0 0 1px #c8ddff;
}

.auth-meta,
.auth-message {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-message {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--subtle);
}

.auth-message.success {
  color: #0f5132;
  background: #e9f7ef;
  border-color: #b8e4ca;
}

.auth-message.error {
  color: #842029;
  background: #fdeced;
  border-color: #f3b8bf;
}

/* Story: #0 | Date: 2026-08-24 | Agent: George | Change: Present authoritative session restoration and shell-level auth errors without layout shift. */
.session-restore-page {
  overflow: auto;
}

.session-restore-panel {
  width: min(520px, 100%);
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(24, 39, 75, .08);
}

.session-restore-panel h1,
.session-restore-panel p {
  margin: 0;
}

.session-restore-panel h1 {
  font-size: 28px;
  line-height: 1.2;
}

.session-restore-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.shell-auth-message {
  margin: 0 0 16px;
}

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

.field span {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.input,
.select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid #b7c8e3;
  border-radius: 8px;
  background: var(--surface);
}

.input::placeholder {
  color: #61708e;
  font-weight: 700;
}

.input:focus,
.select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(10, 102, 255, .24);
  outline-offset: 2px;
}

.button-row,
.actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

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

.login-card .btn.primary {
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 14px 28px rgba(7, 94, 234, .2);
}

.btn.primary:hover {
  background: var(--primary-strong);
}

.btn.secondary {
  background: #edf2f8;
}

.btn.ghost {
  background: transparent;
}

.btn.outline {
  min-height: 52px;
  border: 1px solid #79a9ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, .36);
  color: #075eea;
  font-size: 16px;
  font-weight: 900;
}

.btn.outline:hover {
  background: #edf5ff;
}

.btn.danger {
  color: var(--danger);
  border-color: #f0c2c2;
  background: #fff4f4;
}

.btn.danger:hover {
  background: #ffe8e8;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .58;
}

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

.hint-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.4;
}

.hint-list li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--primary);
}

/* Story: #0 | Date: 2026-08-22 | Agent: George | Change: Scope the DevsOff.ai homepage showcase assets and animation system to the tenant login page. */
.command-visual {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  min-height: 620px;
  --color-bg: #f7f8fc;
  --color-surface: #ffffff;
  --color-text: #0b111d;
  --color-muted: #263a63;
  --color-border: #cfd6e5;
  --color-primary: #1264f5;
  --color-primary-dark: #0750ce;
  --color-primary-soft: #e8f0ff;
  --color-success: #13a468;
  --color-success-bg: #dff7e9;
  --shadow-device: 0 24px 60px rgb(7 18 38 / 24%);
  --shadow-float: 0 16px 32px rgb(12 24 42 / 16%);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-device: 20px;
  --page-gutter: 20px;
}

.command-visual svg {
  display: block;
}

.command-visual.product-showcase {
  grid-area: product;
  position: relative;
  z-index: 2;
  min-height: 0;
  height: 100%;
  margin-left: -130px;
  margin-right: -24px;
  align-self: stretch;
}


.command-visual .status-pill {
  position: absolute;
  z-index: 6;
  top: 2px;
  right: 84px;
  width: 214px;
  max-width: min(214px, calc(100vw - 32px));
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(12px);
}

.command-visual .status-pill__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-success);
  position: relative;
}

.command-visual .status-pill__icon::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  width: 9px;
  height: 17px;
  border: solid #ffffff;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

.command-visual .status-pill strong,
.command-visual .status-pill small {
  display: block;
}

.command-visual .status-pill strong {
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.1;
}

.command-visual .status-pill small {
  color: var(--color-muted);
  margin-top: 4px;
}

.command-visual .dashboard-device {
  position: absolute;
  z-index: 2;
  top: clamp(8px, 1.2vh, 12px);
  left: 18%;
  width: clamp(420px, 75%, 500px);
  height: clamp(350px, 43vh, 398px);
  display: grid;
  grid-template-columns: 78px 1fr;
  overflow: hidden;
  border-radius: var(--radius-device);
  background: #091522;
  box-shadow: var(--shadow-device);
}

.command-visual .dashboard-sidebar {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 26px;
  padding: 26px 0;
  background: linear-gradient(180deg, #07121e, #0d1a2a);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.command-visual .sidebar-logo {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--color-primary);
  font-size: 1.45rem;
  font-weight: 950;
}


.command-visual .sidebar-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
}

.command-visual .sidebar-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.command-visual .sidebar-icon:first-of-type {
  color: #ffffff;
  background: rgba(18, 100, 245, 0.16);
}

.command-visual .dashboard-content {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  padding: 22px 22px 20px;
  color: #ffffff;
}


.command-visual .dashboard-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
}

.command-visual .dashboard-appbar span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.command-visual .dashboard-appbar small,
.command-visual .chart-panel__top span small {
  color: #8ca2c6;
  font-size: 0.64rem;
  font-weight: 720;
  line-height: 1;
}

.command-visual .dashboard-appbar strong {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.05;
}

.command-visual .dashboard-appbar em {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 7px 10px;
  color: #dce7f8;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 780;
}

.command-visual .dashboard-tabs {
  --dashboard-tab-gap: 6px;
  --dashboard-tab-padding: 4px;
  position: relative;
  isolation: isolate;
  display: flex;
  gap: var(--dashboard-tab-gap);
  margin: 10px 0 12px;
  padding: var(--dashboard-tab-padding);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: var(--radius-sm);
  background: rgba(4, 13, 24, 0.48);
}


.command-visual .dashboard-tabs::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: var(--dashboard-tab-padding);
  left: var(--dashboard-tab-padding);
  width: calc(
    (100% - (var(--dashboard-tab-padding) * 2) - (var(--dashboard-tab-gap) * 2)) / 3
  );
  height: calc(100% - (var(--dashboard-tab-padding) * 2));
  border-radius: var(--radius-xs);
  background: rgba(18, 100, 245, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.command-visual .dashboard-tabs span {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
  border-radius: var(--radius-xs);
  padding: 7px 6px;
  color: #9fb0cc;
  font-size: 0.66rem;
  font-weight: 760;
  text-align: center;
}

.command-visual .dashboard-tabs .is-active {
  color: #ffffff;
  background: rgba(18, 100, 245, 0.24);
}


.command-visual .dashboard-views {
  display: grid;
  min-width: 0;
}

.command-visual .dashboard-view {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
}

.command-visual .dashboard-view.is-current {
  opacity: 1;
}

.command-visual [data-dashboard-view="live"] {
  --dashboard-chart-fill: url("#throughput-fill-live");
}

.command-visual [data-dashboard-view="deploys"] {
  --dashboard-chart-fill: url("#throughput-fill-deploys");
}

.command-visual [data-dashboard-view="agents"] {
  --dashboard-chart-fill: url("#throughput-fill-agents");
}

.command-visual .metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}


.command-visual .metric-card {
  height: 88px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.032)),
    rgba(6, 19, 34, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.command-visual .metric-card small,
.command-visual .metric-card span {
  display: block;
}

.command-visual .metric-card small {
  color: #dce7f8;
  font-size: 0.69rem;
}

.command-visual .metric-card strong {
  display: block;
  margin-top: 11px;
  font-size: 1.34rem;
}

.command-visual .metric-card span {
  margin-top: 4px;
  color: #19d179;
  font-size: 0.7rem;
  font-weight: 780;
}

.command-visual .chart-panel {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  min-height: 166px;
  padding: 13px 14px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.028)),
    rgba(6, 19, 34, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.command-visual .chart-panel__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  color: #ffffff;
}

.command-visual .chart-panel__top span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.command-visual .chart-panel__top strong {
  font-size: 0.76rem;
  font-weight: 820;
  line-height: 1.05;
}

.command-visual .chart-panel__top > small {
  color: #cbd7ec;
  border-radius: var(--radius-xs);
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.62rem;
  font-weight: 760;
  white-space: nowrap;
}

.command-visual .chart {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 18px;
  column-gap: 8px;
  height: 98px;
  margin-top: 10px;
  overflow: visible;
}

.command-visual .chart-axis {
  color: #8498b6;
  font-size: 0.54rem;
  font-weight: 720;
  line-height: 1;
}

.command-visual .chart-axis--y {
  display: grid;
  align-content: space-between;
  text-align: right;
}

.command-visual .chart-axis--x {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
}

.command-visual .chart-line {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 100% 33.33%,
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 20% 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.command-visual .chart-fill {
  fill: var(--dashboard-chart-fill);
  stroke: none;
}

.command-visual .chart-line polyline {
  stroke: var(--color-primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(18, 100, 245, 0.32));
}

.command-visual .chart-line circle {
  fill: var(--color-primary);
  stroke: #0b1624;
  stroke-width: 2;
}

.command-visual .dashboard-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.command-visual .dashboard-insights span {
  min-width: 0;
  border-radius: var(--radius-xs);
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.045);
}

.command-visual .dashboard-insights b,
.command-visual .dashboard-insights small {
  display: block;
}

.command-visual .dashboard-insights b {
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
}

.command-visual .dashboard-insights small {
  margin-top: 3px;
  color: #8ca2c6;
  font-size: 0.52rem;
  font-weight: 720;
  line-height: 1.05;
}


.command-visual .phone-device {
  --phone-stage-offset-x: 15px;
  position: absolute;
  z-index: 4;
  left: var(--phone-stage-offset-x);
  bottom: clamp(142px, 16vh, 160px);
  width: clamp(164px, 10.5vw, 190px);
  height: clamp(368px, 23.8vw, 420px);
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 38px;
  padding: 8px;
  color: #ffffff;
  overflow: visible;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(180deg, #1a2433, #0a101a 72%, #222b39);
  box-shadow:
    0 28px 46px rgba(7, 18, 38, 0.3),
    0 5px 0 #05090f,
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.46);
}

.command-visual .phone-device::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 3px 0 0 rgba(255, 255, 255, 0.07),
    inset -4px 0 0 rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.command-visual .phone-device::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -18px;
  height: 16px;
  border-radius: 50%;
  background: rgba(7, 18, 38, 0.26);
  filter: blur(8px);
  z-index: -1;
}

.command-visual .phone-button {
  position: absolute;
  border-radius: 6px;
  background: linear-gradient(180deg, #313b49, #121923);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.18);
}

.command-visual .phone-button--volume {
  left: -4px;
  top: 86px;
  width: 4px;
  height: 42px;
}

.command-visual .phone-button--power {
  right: -4px;
  top: 134px;
  width: 4px;
  height: 54px;
}

.command-visual .phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  padding: 15px 11px 42px;
  background:
    radial-gradient(circle at 78% 0, rgba(18, 100, 245, 0.25), transparent 34%),
    linear-gradient(180deg, #091727, #071321 72%, #06101c);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 0 22px rgba(0, 0, 0, 0.42);
}

.command-visual .phone-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 54px;
  height: 13px;
  border-radius: 0 0 14px 14px;
  background: #0d1320;
  transform: translateX(-50%);
  z-index: 4;
}

.command-visual .phone-screen::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 29px;
  pointer-events: none;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.16), transparent 31%);
  opacity: 0.34;
  z-index: 3;
}

.command-visual .phone-status,
.command-visual .phone-top {
  position: relative;
  z-index: 5;
}

.command-visual .phone-status {
  min-height: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d9e6fb;
  font-size: 0.5rem;
  font-weight: 800;
}

.command-visual .phone-status__icons {
  display: flex;
  align-items: center;
  gap: 3px;
  width: auto;
  height: 10px;
  opacity: 0.9;
}

.command-visual .phone-status__icons i {
  display: block;
  position: relative;
  flex: 0 0 auto;
}

.command-visual .phone-signal {
  width: 11px;
  height: 8px;
  background:
    linear-gradient(90deg, #d9e6fb 0 2px, transparent 2px 4px, #d9e6fb 4px 6px, transparent 6px 8px, #d9e6fb 8px 11px);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 58%);
}

.command-visual .phone-wifi {
  width: 10px;
  height: 8px;
  background:
    radial-gradient(circle at 50% 100%, #d9e6fb 0 1.4px, transparent 1.8px),
    radial-gradient(circle at 50% 100%, transparent 0 4px, #d9e6fb 4.2px 5.4px, transparent 5.7px);
}

.command-visual .phone-battery {
  width: 14px;
  height: 7px;
  border: 1.4px solid #d9e6fb;
  border-radius: 2px;
}

.command-visual .phone-battery::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.2px;
  width: 7px;
  height: 2.8px;
  border-radius: 1px;
  background: #d9e6fb;
}

.command-visual .phone-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 3px;
  border-radius: 0 2px 2px 0;
  background: #d9e6fb;
}

.command-visual .phone-top {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.command-visual .phone-top > span:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.command-visual .phone-top strong {
  font-size: 0.65rem;
  font-weight: 850;
  line-height: 1.05;
}

.command-visual .phone-top small {
  color: #93a7c7;
  font-size: 0.46rem;
  font-weight: 720;
  line-height: 1;
}

.command-visual .phone-alert {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(18, 100, 245, 0.18);
  position: relative;
}

.command-visual .phone-alert::before {
  content: "";
  position: absolute;
  inset: 6px 7px 7px;
  border: 1.6px solid rgba(255, 255, 255, 0.86);
  border-radius: 7px 7px 4px 4px;
}

.command-visual .phone-alert b {
  position: absolute;
  top: -3px;
  right: -2px;
  min-width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #e34a5c;
  font-size: 0.42rem;
  line-height: 1;
  z-index: 1;
}

.command-visual .phone-summary {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  margin-top: 11px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: var(--radius-sm);
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.055);
}

.command-visual .phone-summary small,
.command-visual .phone-summary strong,
.command-visual .phone-summary b {
  display: block;
}

.command-visual .phone-summary small {
  color: #93a7c7;
  font-size: 0.43rem;
  font-weight: 720;
}

.command-visual .phone-summary strong {
  color: #ffffff;
  font-size: 0.84rem;
  line-height: 1;
}

.command-visual .phone-summary b {
  color: #19d179;
  font-size: 0.47rem;
  line-height: 1;
}

.command-visual .phone-segmented {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 9px;
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.command-visual .phone-segmented span {
  border-radius: 999px;
  padding: 4px 2px;
  color: #98a8c3;
  font-size: 0.42rem;
  font-weight: 770;
  line-height: 1;
  text-align: center;
}

.command-visual .phone-segmented .is-active {
  color: #ffffff;
  background: rgba(18, 100, 245, 0.72);
}

.command-visual .phone-metrics {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.command-visual .phone-metrics span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xs);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.045)),
    rgba(8, 21, 36, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.command-visual .phone-metrics small {
  display: block;
  margin-top: 1px;
  font-size: 0.4rem;
  color: #cfddf5;
}

.command-visual .phone-activity {
  --phone-activity-row-height: 34px;
  --phone-activity-gap: 6px;
  position: relative;
  z-index: 5;
  display: grid;
  gap: var(--phone-activity-gap);
  margin-top: 12px;
}

.command-visual .phone-activity > strong {
  color: #f5f8ff;
  font-size: 0.56rem;
  font-weight: 820;
}


.command-visual .phone-activity-window {
  height: calc((var(--phone-activity-row-height) * 3) + (var(--phone-activity-gap) * 2));
  overflow: hidden;
  border-radius: var(--radius-xs);
}

.command-visual .phone-activity-feed {
  --phone-feed-shift: calc(var(--phone-activity-row-height) + var(--phone-activity-gap));
  display: grid;
  gap: var(--phone-activity-gap);
  transform: translate3d(0, 0, 0);
  transition: transform 620ms cubic-bezier(0.22, 0.72, 0.2, 1);
  will-change: transform;
}

.command-visual .phone-activity-feed.is-advancing {
  transform: translate3d(0, calc(var(--phone-feed-shift) * -1), 0);
}

.command-visual .phone-activity-feed.is-resetting {
  transition: none;
}

.command-visual .phone-activity-feed > span {
  min-height: var(--phone-activity-row-height);
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 7px;
  border-radius: var(--radius-xs);
  padding: 6px 7px;
  background: rgba(255, 255, 255, 0.055);
}

.command-visual .phone-activity i {
  grid-row: 1 / 3;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-success);
  position: relative;
}

.command-visual .phone-activity i::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 4px;
  height: 7px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.command-visual .phone-activity i.is-muted {
  background: #7b8798;
}

.command-visual .phone-activity i.is-warning {
  background: #f1a71a;
}

.command-visual .phone-activity i.is-warning::after {
  left: 6px;
  top: 3px;
  width: 2px;
  height: 6px;
  border: 0;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 8px 0 #ffffff;
  transform: none;
}

.command-visual .phone-activity b,
.command-visual .phone-activity small,
.command-visual .phone-activity em {
  min-width: 0;
}

.command-visual .phone-activity b {
  color: #ffffff;
  font-size: 0.5rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-visual .phone-activity small {
  grid-column: 2;
  color: #c8d5e8;
  font-size: 0.43rem;
  line-height: 1.05;
}

.command-visual .phone-activity em {
  grid-column: 3;
  grid-row: 1 / 3;
  color: #c8d5e8;
  font-size: 0.43rem;
  font-style: normal;
}

.command-visual .phone-tabs {
  position: absolute;
  z-index: 5;
  left: 14px;
  right: 14px;
  bottom: 9px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.command-visual .phone-tabs span {
  min-width: 0;
  height: auto;
  display: grid;
  justify-items: center;
  gap: 3px;
  border-radius: var(--radius-xs);
  color: #7d8ca6;
  background: transparent;
  font-size: 0.4rem;
  font-weight: 760;
  line-height: 1;
}

.command-visual .phone-tabs i {
  width: 16px;
  height: 13px;
  display: block;
  position: relative;
  color: currentColor;
}

.command-visual .phone-tabs span:nth-child(1) i::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 10px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 3px 3px 2px 2px;
}

.command-visual .phone-tabs span:nth-child(1) i::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 8px;
  height: 8px;
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.command-visual .phone-tabs span:nth-child(2) i::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 7px 7px 4px 4px;
}

.command-visual .phone-tabs span:nth-child(2) i::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 0;
  width: 4px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}

.command-visual .phone-tabs span:nth-child(3) i {
  background:
    linear-gradient(currentColor 0 0) 3px 2px / 4px 4px no-repeat,
    linear-gradient(currentColor 0 0) 10px 2px / 4px 4px no-repeat,
    linear-gradient(currentColor 0 0) 3px 9px / 4px 4px no-repeat,
    linear-gradient(currentColor 0 0) 10px 9px / 4px 4px no-repeat;
}

.command-visual .phone-tabs .is-active {
  color: #62a0ff;
}

.command-visual .phone-action {
  position: relative;
  z-index: 5;
  display: inline-flex;
  margin-top: 7px;
  color: #62a0ff;
  font-size: 0.47rem;
  font-weight: 800;
  line-height: 1;
}

.command-visual .portal-card {
  position: absolute;
  z-index: 5;
  left: 25%;
  right: 12%;
  bottom: clamp(70px, 9.4vh, 92px);
  min-height: clamp(262px, 30.5vh, 296px);
  overflow: hidden;
  border: 1px solid rgba(180, 193, 214, 0.8);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 18px 34px rgba(15, 27, 48, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.command-visual .portal-window {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  color: #263a63;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #ffffff, #f4f6fb);
  font-size: 0.82rem;
  font-weight: 700;
}

.command-visual .portal-window span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.command-visual .portal-window span:nth-child(2) {
  background: #ffbd2e;
}

.command-visual .portal-window span:nth-child(3) {
  background: #28c840;
}

.command-visual .portal-window strong {
  margin-left: 14px;
}

.command-visual .portal-body {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 240px;
}

.command-visual .portal-body nav {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 12px;
  border-right: 1px solid var(--color-border);
  background: #f5f7fb;
  color: #263a63;
  font-size: 0.78rem;
  font-weight: 700;
}

.command-visual .portal-body nav span {
  border-radius: var(--radius-xs);
  padding: 8px 10px;
}

.command-visual .portal-body nav .is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.command-visual .portal-body > div {
  padding: 20px 20px 18px;
}


.command-visual .portal-body > .portal-content {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 15px 16px 14px;
}

.command-visual .portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.command-visual .portal-head span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.command-visual .portal-head small {
  color: #6a7893;
  font-size: 0.62rem;
  font-weight: 720;
  line-height: 1;
}

.command-visual .portal-head strong {
  color: #0d111a;
  font-size: 0.98rem;
  line-height: 1.05;
}

.command-visual .portal-head b {
  flex: 0 0 auto;
  border-radius: var(--radius-xs);
  padding: 7px 9px;
  color: #ffffff;
  background: var(--color-primary);
  font-size: 0.66rem;
  font-weight: 820;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(18, 100, 245, 0.2);
}

.command-visual .portal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.command-visual .portal-stats span {
  min-width: 0;
  border: 1px solid #e2e7f1;
  border-radius: var(--radius-xs);
  padding: 8px 9px;
  background: #f8faff;
}

.command-visual .portal-stats small,
.command-visual .portal-stats strong {
  display: block;
}

.command-visual .portal-stats small {
  color: #65738d;
  font-size: 0.56rem;
  font-weight: 760;
  line-height: 1;
}

.command-visual .portal-stats strong {
  margin-top: 4px;
  color: #0d111a;
  font-size: 0.86rem;
  line-height: 1;
}

.command-visual .portal-table {
  display: grid;
  border-top: 1px solid var(--color-border);
}

.command-visual .portal-table__head,
.command-visual .portal-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1.3fr) minmax(44px, 0.58fr) auto;
  align-items: center;
  gap: 8px;
}

.command-visual .portal-table__head {
  min-height: 22px;
  color: #6a7893;
  font-size: 0.56rem;
  font-weight: 820;
  text-transform: uppercase;
}

.command-visual .portal-table__head span:first-child {
  grid-column: 2;
}

.command-visual .portal-row {
  position: relative;
  min-height: 38px;
  overflow: hidden;
  border-top: 1px solid #e2e7f1;
  color: #15213b;
}

.command-visual .portal-row > strong {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: #14203a;
  font-size: 0.72rem;
  line-height: 1.05;
}

.command-visual .portal-row strong small,
.command-visual .portal-row > small {
  min-width: 0;
  color: #5c6a83;
  font-size: 0.54rem;
  font-weight: 680;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-visual .status-badge {
  justify-self: end;
  border-radius: var(--radius-xs);
  padding: 5px 7px;
  font-size: 0.58rem;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.command-visual .status-badge.is-healthy {
  color: #15824f;
  background: var(--color-success-bg);
}

.command-visual .status-badge.is-deploying {
  color: #0750ce;
  background: #e8f0ff;
}

.command-visual .status-badge.is-warning {
  color: #946200;
  background: #fff1c4;
}


.command-visual .portal-toast {
  position: absolute;
  z-index: 4;
  right: 58px;
  bottom: 10px;
  min-width: 154px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid #d7e1f2;
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  color: #14203a;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 24px rgba(15, 27, 48, 0.16);
  opacity: 0;
  pointer-events: none;
}

.command-visual .portal-toast > i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-success);
  position: relative;
}

.command-visual .portal-toast > i::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.command-visual .portal-toast > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.command-visual .portal-toast strong,
.command-visual .portal-toast small {
  display: block;
  line-height: 1;
}

.command-visual .portal-toast strong {
  font-size: 0.62rem;
  font-weight: 830;
}

.command-visual .portal-toast small {
  color: #65738d;
  font-size: 0.52rem;
  font-weight: 680;
}

.command-visual .system-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--color-primary);
  position: relative;
  box-shadow: 0 6px 12px rgba(18, 100, 245, 0.16);
}

.command-visual .system-icon::before,
.command-visual .system-icon::after {
  content: "";
  position: absolute;
  border-color: #ffffff;
}

.command-visual .system-icon--crm::before {
  width: 11px;
  height: 8px;
  border: 2px solid #ffffff;
  border-radius: 3px;
}

.command-visual .system-icon--crm::after {
  width: 6px;
  height: 6px;
  right: 5px;
  bottom: 5px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--color-primary);
}

.command-visual .system-icon--erp::before {
  inset: 7px;
  border: 2px solid #ffffff;
  border-radius: 3px;
}

.command-visual .system-icon--erp::after {
  left: 7px;
  right: 7px;
  top: 12px;
  border-top: 2px solid #ffffff;
}

.command-visual .system-icon--analytics::before {
  left: 7px;
  bottom: 6px;
  width: 3px;
  height: 8px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow:
    6px -5px 0 #ffffff,
    12px -9px 0 #ffffff;
}

.command-visual .system-icon--analytics::after {
  left: 6px;
  right: 6px;
  bottom: 5px;
  border-bottom: 2px solid #ffffff;
}

.command-visual .system-icon--helpdesk::before {
  width: 13px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 7px;
  border-bottom-color: transparent;
}

.command-visual .system-icon--helpdesk::after {
  left: 8px;
  right: 8px;
  bottom: 7px;
  border-bottom: 2px solid #ffffff;
}


.command-visual .watch-device {
  position: absolute;
  z-index: 7;
  right: 77px;
  bottom: 95px;
  width: clamp(94px, 6.2vw, 112px);
  height: clamp(142px, 9.4vw, 166px);
  border: 7px solid #202936;
  border-radius: 28px;
  padding: 7px;
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #29313e, #141b26 70%, #303846);
  box-shadow:
    0 18px 30px rgba(12, 24, 42, 0.22),
    0 4px 0 #0d1219,
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(0, 0, 0, 0.48);
}

.command-visual .watch-device::before,
.command-visual .watch-device::after {
  content: "";
  position: absolute;
  left: 17%;
  right: 17%;
  height: 27px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #252e3b, #111923);
  z-index: -1;
}

.command-visual .watch-device::before {
  top: -32px;
  border-radius: 15px 15px 4px 4px;
}

.command-visual .watch-device::after {
  bottom: -32px;
  border-radius: 4px 4px 15px 15px;
}

.command-visual .watch-crown {
  position: absolute;
  right: -11px;
  top: 46px;
  width: 8px;
  height: 34px;
  border-radius: 0 6px 6px 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 4px),
    #202936;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.16);
}

.command-visual .watch-button {
  position: absolute;
  right: -7px;
  top: 90px;
  width: 5px;
  height: 22px;
  border-radius: 0 5px 5px 0;
  background: #202936;
}

.command-visual .watch-face {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  border-radius: 20px;
  padding: 7px 8px;
  background:
    radial-gradient(circle at 75% 18%, rgba(18, 100, 245, 0.24), transparent 36%),
    linear-gradient(180deg, #071626, #050d17);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 18px rgba(0, 0, 0, 0.46);
}

.command-visual .watch-face::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 38%);
  opacity: 0.32;
}

.command-visual .watch-top,
.command-visual .watch-rings,
.command-visual .watch-face span {
  position: relative;
  z-index: 1;
}

.command-visual .watch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.command-visual .watch-face strong {
  color: #ffffff;
  font-size: 0.58rem;
  line-height: 1;
}

.command-visual .watch-top small {
  color: #62a0ff;
  font-size: 0.46rem;
  font-weight: 780;
  line-height: 1;
}

.command-visual .watch-rings {
  width: min(58px, 100%);
  height: min(58px, 100%);
  justify-self: center;
  overflow: visible;
}

.command-visual .watch-rings .track,
.command-visual .watch-rings .progress {
  fill: none;
  stroke-width: 5;
}

.command-visual .watch-rings .track {
  stroke: #1b2a3c;
}

.command-visual .watch-rings .progress {
  stroke: #1264f5;
  stroke-linecap: round;
  stroke-dasharray: 102 113;
  transform: rotate(-90deg);
  transform-origin: center;
  filter: drop-shadow(0 0 5px rgba(18, 100, 245, 0.42));
}

.command-visual .watch-rings text {
  text-anchor: middle;
  fill: #ffffff;
  font-size: 8px;
  font-weight: 850;
}

.command-visual .watch-rings text + text {
  fill: #8ca2c6;
  font-size: 5px;
  letter-spacing: 0;
}

.command-visual .watch-face span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  min-height: 14px;
  border-radius: 6px;
  padding: 3px 5px;
  color: #d9e5f9;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.48rem;
  font-weight: 720;
  line-height: 1;
}

.command-visual .watch-face b {
  color: #62a0ff;
  font-weight: 850;
}


.command-visual .profile-orbit {
  --portrait-side-fade: 75px;
  --portrait-top-fade: 60px;
  --portrait-bottom-fade: 50px;
  --portrait-corner-fade: 75px;
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 120px;
  width: 256px;
  height: 256px;
  border: 0;
  border-radius: 0;
  background: transparent url("img/operator-avatar.jpg") center / contain no-repeat;
  box-shadow: none;
  transform: translate(-50%, 30px);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000000 var(--portrait-side-fade), #000000 calc(100% - var(--portrait-side-fade)), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000000 var(--portrait-top-fade), #000000 calc(100% - var(--portrait-bottom-fade)), transparent 100%),
    radial-gradient(circle at top left, transparent 0, #000000 var(--portrait-corner-fade)),
    radial-gradient(circle at top right, transparent 0, #000000 var(--portrait-corner-fade));
  -webkit-mask-composite: source-in, source-in, source-in;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image:
    linear-gradient(to right, transparent 0, #000000 var(--portrait-side-fade), #000000 calc(100% - var(--portrait-side-fade)), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000000 var(--portrait-top-fade), #000000 calc(100% - var(--portrait-bottom-fade)), transparent 100%),
    radial-gradient(circle at top left, transparent 0, #000000 var(--portrait-corner-fade)),
    radial-gradient(circle at top right, transparent 0, #000000 var(--portrait-corner-fade));
  mask-composite: intersect, intersect, intersect;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}


@keyframes device-screen-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes dashboard-chart-draw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dashboard-chart-fill {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes dashboard-point-in {
  from {
    opacity: 0;
    transform: scale(0.45);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dashboard-live-pulse {
  0%,
  76%,
  100% {
    opacity: 0;
    transform: scale(0.7);
  }

  83% {
    opacity: 0.72;
  }

  91% {
    opacity: 0;
    transform: scale(1.75);
  }
}

@keyframes phone-badge-tick {
  0%,
  82%,
  100% {
    transform: scale(1);
  }

  86% {
    transform: scale(1.18);
  }

  90% {
    transform: scale(0.96);
  }
}

@keyframes portal-row-sweep {
  0%,
  78%,
  100% {
    opacity: 0;
    transform: translate3d(-105%, 0, 0);
  }

  82% {
    opacity: 1;
  }

  91% {
    opacity: 0;
    transform: translate3d(105%, 0, 0);
  }
}

@keyframes portal-badge-shimmer {
  0%,
  80%,
  100% {
    transform: translate3d(-120%, 0, 0);
  }

  90% {
    transform: translate3d(120%, 0, 0);
  }
}

@keyframes portal-toast-cycle {
  0%,
  68%,
  100% {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }

  73%,
  88% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  94% {
    opacity: 0;
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes watch-ring-sync {
  0% {
    opacity: 0.45;
    stroke-dashoffset: 102;
  }

  18%,
  84% {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  100% {
    opacity: 0.45;
    stroke-dashoffset: 102;
  }
}


@keyframes dashboard-tab-cycle {
  0%,
  29% {
    transform: translate3d(0, 0, 0);
  }

  33%,
  62% {
    transform: translate3d(calc(100% + var(--dashboard-tab-gap)), 0, 0);
  }

  66%,
  95% {
    transform: translate3d(calc(200% + (var(--dashboard-tab-gap) * 2)), 0, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes dashboard-tab-live-label {
  0%,
  29%,
  100% {
    color: #ffffff;
  }

  33%,
  95% {
    color: #9fb0cc;
  }
}

@keyframes dashboard-tab-deploys-label {
  0%,
  29%,
  66%,
  100% {
    color: #9fb0cc;
  }

  33%,
  62% {
    color: #ffffff;
  }
}

@keyframes dashboard-tab-agents-label {
  0%,
  62%,
  100% {
    color: #9fb0cc;
  }

  66%,
  95% {
    color: #ffffff;
  }
}


@keyframes dashboard-view-live-cycle {
  0%,
  29%,
  100% {
    opacity: 1;
  }

  33%,
  95% {
    opacity: 0;
  }
}

@keyframes dashboard-view-deploys-cycle {
  0%,
  29%,
  66%,
  100% {
    opacity: 0;
  }

  33%,
  62% {
    opacity: 1;
  }
}

@keyframes dashboard-view-agents-cycle {
  0%,
  62%,
  100% {
    opacity: 0;
  }

  66%,
  95% {
    opacity: 1;
  }
}

.command-visual.product-showcase.is-motion-enabled .dashboard-appbar {
  animation: device-screen-reveal 420ms ease-out 650ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .dashboard-tabs {
  animation: device-screen-reveal 360ms ease-out 760ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .dashboard-tabs::before {
  opacity: 1;
  animation: dashboard-tab-cycle 8.4s cubic-bezier(0.4, 0, 0.2, 1) 2.4s infinite both paused;
}

.command-visual.product-showcase.is-motion-enabled .dashboard-tabs span {
  background: transparent;
}

.command-visual.product-showcase.is-motion-enabled [data-dashboard-tab="live"] {
  animation: dashboard-tab-live-label 8.4s ease-in-out 2.4s infinite both paused;
}

.command-visual.product-showcase.is-motion-enabled [data-dashboard-tab="deploys"] {
  animation: dashboard-tab-deploys-label 8.4s ease-in-out 2.4s infinite both paused;
}

.command-visual.product-showcase.is-motion-enabled [data-dashboard-tab="agents"] {
  animation: dashboard-tab-agents-label 8.4s ease-in-out 2.4s infinite both paused;
}

.command-visual.product-showcase.is-motion-enabled [data-dashboard-view="live"] {
  animation: dashboard-view-live-cycle 8.4s linear 2.4s infinite both paused;
}

.command-visual.product-showcase.is-motion-enabled [data-dashboard-view="deploys"] {
  animation: dashboard-view-deploys-cycle 8.4s linear 2.4s infinite both paused;
}

.command-visual.product-showcase.is-motion-enabled [data-dashboard-view="agents"] {
  animation: dashboard-view-agents-cycle 8.4s linear 2.4s infinite both paused;
}

.command-visual.product-showcase.is-motion-enabled .metric-card {
  animation: device-screen-reveal 400ms ease-out 850ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .metric-card:nth-child(2) {
  animation-delay: 940ms;
}

.command-visual.product-showcase.is-motion-enabled .metric-card:nth-child(3) {
  animation-delay: 1030ms;
}

.command-visual.product-showcase.is-motion-enabled .chart-panel {
  animation: device-screen-reveal 480ms ease-out 1120ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .chart-fill {
  animation: dashboard-chart-fill 700ms ease-out 1320ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .chart-line polyline {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: dashboard-chart-draw 900ms cubic-bezier(0.22, 0.72, 0.2, 1) 1360ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .chart-line circle:not(.chart-live-cursor) {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: dashboard-point-in 360ms ease-out 1640ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .chart-line circle:nth-of-type(2) {
  animation-delay: 1710ms;
}

.command-visual.product-showcase.is-motion-enabled .chart-line circle:nth-of-type(3) {
  animation-delay: 1780ms;
}

.command-visual.product-showcase.is-motion-enabled .chart-line circle:nth-of-type(4) {
  animation-delay: 1850ms;
}

.command-visual.product-showcase.is-motion-enabled .chart-line circle:nth-of-type(5) {
  animation-delay: 1920ms;
}

.command-visual.product-showcase.is-motion-enabled .chart-line circle:nth-of-type(6) {
  animation-delay: 1990ms;
}

.command-visual.product-showcase.is-motion-enabled .chart-line circle:nth-of-type(7) {
  animation-delay: 2060ms;
}

.command-visual .chart-line .chart-live-cursor {
  fill: rgba(18, 100, 245, 0.18);
  stroke: #62a0ff;
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.command-visual.product-showcase.is-motion-enabled .chart-live-cursor {
  animation: dashboard-live-pulse 14.4s ease-in-out 2.4s infinite both paused;
}

.command-visual.product-showcase.is-motion-enabled .phone-top {
  animation: device-screen-reveal 360ms ease-out 830ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .phone-summary {
  animation: device-screen-reveal 360ms ease-out 950ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .phone-segmented {
  animation: device-screen-reveal 320ms ease-out 1050ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .phone-metrics {
  animation: device-screen-reveal 360ms ease-out 1140ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .phone-activity > strong {
  animation: device-screen-reveal 300ms ease-out 1240ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .phone-activity-feed > span {
  animation: device-screen-reveal 340ms ease-out 1340ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .phone-activity-feed > span:nth-child(2) {
  animation-delay: 1420ms;
}

.command-visual.product-showcase.is-motion-enabled .phone-activity-feed > span:nth-child(3) {
  animation-delay: 1500ms;
}

.command-visual.product-showcase.is-motion-enabled .phone-activity-feed > span:nth-child(4) {
  animation-delay: 1580ms;
}

.command-visual.product-showcase.is-motion-enabled .phone-activity-feed > span:nth-child(5) {
  animation-delay: 1660ms;
}

.command-visual.product-showcase.is-motion-enabled .phone-alert b {
  animation: phone-badge-tick 10.8s ease-in-out 2.6s infinite both paused;
}

.command-visual.product-showcase.is-motion-enabled .portal-head {
  animation: device-screen-reveal 360ms ease-out 1010ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .portal-stats > span {
  animation: device-screen-reveal 340ms ease-out 1130ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .portal-stats > span:nth-child(2) {
  animation-delay: 1200ms;
}

.command-visual.product-showcase.is-motion-enabled .portal-stats > span:nth-child(3) {
  animation-delay: 1270ms;
}

.command-visual.product-showcase.is-motion-enabled .portal-row {
  animation: device-screen-reveal 320ms ease-out 1380ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .portal-row:nth-of-type(3) {
  animation-delay: 1450ms;
}

.command-visual.product-showcase.is-motion-enabled .portal-row:nth-of-type(4) {
  animation-delay: 1520ms;
}

.command-visual.product-showcase.is-motion-enabled .portal-row:nth-of-type(5) {
  animation-delay: 1590ms;
}

.command-visual .portal-row.is-updating::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(18, 100, 245, 0.08), transparent);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-105%, 0, 0);
}

.command-visual .status-badge.is-deploying {
  position: relative;
  overflow: hidden;
}

.command-visual .status-badge.is-deploying::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.76) 50%, transparent 82%);
  transform: translate3d(-120%, 0, 0);
}

.command-visual.product-showcase.is-motion-enabled .portal-row.is-updating::after {
  animation: portal-row-sweep 18.6s ease-in-out 3.1s infinite both paused;
}

.command-visual.product-showcase.is-motion-enabled .status-badge.is-deploying::after {
  animation: portal-badge-shimmer 18.6s ease-in-out 3.4s infinite both paused;
}

.command-visual.product-showcase.is-motion-enabled .portal-toast {
  animation: portal-toast-cycle 18.6s ease-in-out 4.2s infinite both paused;
}

.command-visual.product-showcase.is-motion-enabled .watch-top {
  animation: device-screen-reveal 320ms ease-out 1190ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .watch-rings .progress {
  animation: watch-ring-sync 9.8s cubic-bezier(0.22, 0.72, 0.2, 1) 1.32s infinite both paused;
}

.command-visual.product-showcase.is-motion-enabled .watch-face > span {
  animation: device-screen-reveal 300ms ease-out 1530ms 1 both paused;
}

.command-visual.product-showcase.is-motion-enabled .watch-face > span:last-child {
  animation-delay: 1640ms;
}

.command-visual.product-showcase.is-motion-enabled.is-motion-active *,
.command-visual.product-showcase.is-motion-enabled.is-motion-active *::before,
.command-visual.product-showcase.is-motion-enabled.is-motion-active *::after {
  animation-play-state: running !important;
}



.auth-hero > .command-visual.product-showcase {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 620px;
  margin-left: -96px;
}

@media (min-width: 1181px) {
  .command-visual .phone-device {
    --phone-stage-offset-x: 64px;
  }
}

@media (min-width: 1281px) and (max-width: 1500px) {
  .command-visual .hero-copy p {
    max-width: 320px;
  }

  .command-visual.product-showcase {
    margin-left: -84px;
    margin-right: -16px;
  }

  .command-visual .status-pill {
    width: 214px;
    right: 72px;
  }

  .command-visual .dashboard-device {
    left: 16%;
  }

  .command-visual .phone-device {
    left: var(--phone-stage-offset-x);
  }

  .command-visual .portal-card {
    left: 24%;
    right: 8%;
  }

  .command-visual .watch-device {
    right: 50px;
    bottom: 84px;
  }


  .command-visual .profile-orbit {
    left: 50%;
    bottom: 100px;
    width: 210px;
    height: 210px;
  }
}

@media (min-width: 1281px) and (max-width: 1500px) and (max-height: 820px) {
  .command-visual .phone-device {
    --phone-stage-offset-x: 0px;
  }
}

@media (max-width: 1280px) {
  .command-visual .home-main {
    height: auto;
    grid-template-columns: minmax(300px, 0.72fr) minmax(440px, 1fr);
    grid-template-areas:
      "copy login"
      "product product"
      "caps caps";
  }

  .command-visual.product-showcase {
    min-height: 640px;
  }

  .command-visual .login-panel {
    padding-left: 36px;
  }

  .command-visual .login-panel::before {
    top: 0;
    bottom: 0;
  }

  .command-visual .dashboard-device {
    left: 21%;
  }

  .command-visual .phone-device {
    left: 8%;
  }

  .command-visual .portal-card {
    left: 27%;
    right: 12%;
  }

  .command-visual .profile-orbit {
    left: 24%;
  }

  .command-visual .capability-strip {
    max-width: 520px;
    margin-left: 0;
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .command-visual .site-header {
    align-items: center;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 22px;
  }

  .command-visual .site-nav {
    display: none;
  }

  .command-visual .support-chat-mobile-trigger {
    justify-self: end;
    inline-size: 44px;
    block-size: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #d5deef;
    border-radius: 50%;
    color: #17346e;
    background: #ffffff;
  }

  .command-visual .support-chat-mobile-trigger svg {
    inline-size: 22px;
    block-size: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .command-visual .home-main {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
  }

  .command-visual .hero-copy {
    max-width: 680px;
  }

  .command-visual .hero-copy h1 {
    max-width: 620px;
    font-size: clamp(3rem, 8.2vw, 4.7rem);
  }

  .command-visual .hero-copy p {
    max-width: 600px;
    margin-top: 24px;
  }

  .command-visual .login-panel {
    order: 2;
    align-content: start;
    gap: 24px;
    padding: 0;
  }

  .command-visual .login-panel::before {
    display: none;
  }

  .command-visual.product-showcase {
    order: 3;
    min-height: 640px;
  }

  .command-visual .capability-strip {
    order: 4;
    width: 100%;
    max-width: 520px;
    justify-self: start;
    padding-top: 4px;
  }

}

@media (min-width: 768px) and (max-width: 1280px) {
  .command-visual .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 2px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .command-visual .site-footer__company-info {
    min-height: 0;
  }

  .command-visual .site-footer__address {
    grid-column: 1;
    padding-inline-start: 0;
    border-inline-start: 0;
    white-space: normal;
  }

  .command-visual .site-report-link {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 767px) {
  .command-visual {
    --header-block: 76px;
    --page-gutter: 20px;
  }

  .command-visual {
    background:
      radial-gradient(circle at 84% 22%, rgba(223, 232, 250, 0.92), transparent 34%),
      var(--color-bg);
  }


  .command-visual .site-header {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    min-height: var(--header-block);
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 8px;
    justify-items: start;
  }

  .command-visual .brand {
    min-height: 44px;
  }


  .command-visual .brand-logo {
    width: clamp(160px, 48vw, 190px);
  }

  .command-visual .site-nav {
    justify-self: start;
    padding-top: 0;
  }

  .command-visual .home-main {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-bottom: 34px;
    gap: 28px;
  }

  .command-visual .hero-copy h1 {
    font-size: clamp(2.4rem, 10.8vw, 2.85rem);
    line-height: 0.99;
  }

  .command-visual .mobile-break {
    display: block;
  }

  .command-visual .hero-copy,
  .command-visual .hero-copy p,
  .command-visual .login-panel,
  .command-visual .login-account,
  .command-visual .workspace-list,
  .command-visual .login-form,
  .command-visual .login-mode,
  .command-visual .customer-links {
    max-width: 100%;
    min-width: 0;
  }

  .command-visual .hero-copy p {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.62;
  }

  .command-visual .hero-copy {
    order: 2;
    padding-top: 0;
  }

  .command-visual .login-panel {
    order: 1;
    gap: 20px;
    width: 100%;
  }

  .command-visual .login-panel h2 {
    font-size: clamp(1.8rem, 8vw, 2.3rem);
  }

  .command-visual .workspace-list {
    gap: 14px;
  }

  .command-visual .workspace-list h3 {
    font-size: 1.08rem;
  }

  .command-visual .workspace-item {
    gap: 10px;
  }

  .command-visual .workspace-row {
    width: 100%;
    min-height: 66px;
    grid-template-columns: 48px 1fr 18px;
    gap: 14px;
    padding: 8px;
    border-color: rgba(207, 214, 229, 0.72);
    background: rgba(255, 255, 255, 0.48);
  }

  .command-visual .workspace-name {
    font-size: 1rem;
  }

  .command-visual .workspace-remove {
    align-self: stretch;
    min-height: 66px;
    background: rgba(255, 255, 255, 0.48);
    border-color: rgba(207, 214, 229, 0.72);
  }

  .command-visual .workspace-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .command-visual .login-form {
    gap: 12px;
  }

  .command-visual .login-form__support {
    justify-content: stretch;
  }

  .command-visual .login-form__support .button {
    width: 100%;
  }

  .command-visual .login-account {
    padding: 16px;
  }

  .command-visual .login-panel__divider span {
    padding-inline: 12px;
  }


  .command-visual.product-showcase {
    order: 3;
    min-height: 646px;
    margin-inline: calc(-1 * var(--page-gutter));
  }

  .command-visual .status-pill {
    top: 0;
    left: 50%;
    right: auto;
    width: calc(100% - 48px);
    max-width: 342px;
    min-width: 0;
    transform: translateX(-50%);
  }

  .command-visual .dashboard-device {
    top: 72px;
    left: 24px;
    right: 24px;
    width: auto;
    height: 292px;
    grid-template-columns: 50px 1fr;
    border-radius: 18px;
    transform: none;
  }

  .command-visual .dashboard-sidebar {
    gap: 18px;
    padding-top: 20px;
  }

  .command-visual .sidebar-icon {
    width: 20px;
    height: 20px;
  }

  .command-visual .sidebar-icon svg {
    width: 15px;
    height: 15px;
    stroke-width: 2;
  }

  .command-visual .dashboard-content {
    padding: 14px 12px 12px;
  }


  .command-visual .dashboard-appbar {
    min-height: 28px;
  }

  .command-visual .dashboard-appbar small {
    display: none;
  }

  .command-visual .dashboard-appbar strong {
    font-size: 0.7rem;
  }

  .command-visual .dashboard-appbar em {
    padding: 5px 7px;
    font-size: 0.5rem;
  }

  .command-visual .dashboard-tabs {
    --dashboard-tab-gap: 3px;
    --dashboard-tab-padding: 3px;
    margin: 6px 0 7px;
  }

  .command-visual .dashboard-tabs span {
    padding: 5px 3px;
    font-size: 0.48rem;
  }

  .command-visual .metric-grid {
    gap: 7px;
  }


  .command-visual .metric-card {
    height: 62px;
    padding: 6px 8px;
  }

  .command-visual .metric-card small {
    font-size: 0.56rem;
  }

  .command-visual .metric-card strong {
    margin-top: 3px;
    font-size: 0.96rem;
  }

  .command-visual .metric-card span {
    margin-top: 2px;
    font-size: 0.5rem;
  }

  .command-visual .chart-panel {
    min-height: 106px;
    margin-top: 8px;
    padding: 8px;
  }

  .command-visual .chart-panel__top strong {
    font-size: 0.54rem;
  }

  .command-visual .chart-panel__top small {
    display: none;
  }

  .command-visual .chart {
    grid-template-columns: 22px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 14px;
    column-gap: 5px;
    height: 70px;
    margin-top: 7px;
  }

  .command-visual .chart-axis {
    font-size: 0.42rem;
  }

  .command-visual .chart-axis--x {
    padding-top: 4px;
  }

  .command-visual .dashboard-insights {
    display: none;
  }


  .command-visual .phone-device {
    --phone-stage-offset-x: 0px;
    top: 382px;
    left: 24px;
    bottom: auto;
    width: 122px;
    height: 256px;
    border-width: 1px;
    border-radius: 29px;
    padding: 6px;
  }

  .command-visual .phone-device::before {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: inherit;
  }

  .command-visual .phone-device::after {
    bottom: -12px;
    height: 12px;
  }

  .command-visual .phone-button--volume {
    left: -3px;
    top: 64px;
    width: 3px;
    height: 30px;
  }

  .command-visual .phone-button--power {
    right: -3px;
    top: 102px;
    width: 3px;
    height: 38px;
  }

  .command-visual .phone-screen {
    border-radius: 23px;
    padding: 10px 7px 30px;
  }

  .command-visual .phone-screen::before {
    width: 40px;
    height: 9px;
  }

  .command-visual .phone-screen::after {
    border-radius: 22px;
  }

  .command-visual .phone-status {
    font-size: 0.42rem;
  }

  .command-visual .phone-status__icons {
    gap: 2px;
    transform: scale(0.78);
    transform-origin: right center;
  }

  .command-visual .phone-top {
    margin-top: 8px;
  }

  .command-visual .phone-top strong {
    font-size: 0.47rem;
  }

  .command-visual .phone-top small {
    display: none;
  }

  .command-visual .phone-alert {
    width: 18px;
    height: 18px;
  }

  .command-visual .phone-alert::before {
    inset: 5px 6px 6px;
  }

  .command-visual .phone-alert b {
    min-width: 10px;
    height: 10px;
    font-size: 0.34rem;
  }

  .command-visual .phone-summary,
  .command-visual .phone-segmented {
    display: none;
  }

  .command-visual .phone-metrics {
    gap: 4px;
    margin-top: 9px;
  }

  .command-visual .phone-metrics span {
    min-height: 28px;
    font-size: 0.66rem;
  }

  .command-visual .phone-metrics small {
    font-size: 0.31rem;
  }

  .command-visual .phone-activity {
    --phone-activity-row-height: 24px;
    --phone-activity-gap: 4px;
    margin-top: 9px;
  }

  .command-visual .phone-activity > strong {
    font-size: 0.46rem;
  }

  .command-visual .phone-activity-feed > span {
    grid-template-columns: 12px minmax(0, 1fr) auto;
    column-gap: 5px;
    padding: 4px;
  }

  .command-visual .phone-activity i {
    width: 10px;
    height: 10px;
  }

  .command-visual .phone-activity i::after {
    left: 3px;
    top: 1px;
    width: 3px;
    height: 5px;
    border-width: 0 1.5px 1.5px 0;
  }

  .command-visual .phone-activity b {
    font-size: 0.4rem;
  }

  .command-visual .phone-activity small {
    font-size: 0.34rem;
  }

  .command-visual .phone-activity em {
    display: block;
    font-size: 0.31rem;
  }

  .command-visual .phone-activity i.is-warning::after {
    left: 4px;
    top: 2px;
    width: 2px;
    height: 5px;
    box-shadow: 0 6px 0 #ffffff;
  }

  .command-visual .phone-action {
    margin-top: 5px;
    font-size: 0.36rem;
  }

  .command-visual .phone-tabs {
    left: 9px;
    right: 9px;
    bottom: 7px;
  }

  .command-visual .phone-tabs span {
    gap: 2px;
    font-size: 0.32rem;
  }

  .command-visual .phone-tabs i {
    width: 12px;
    height: 10px;
  }

  .command-visual .portal-card {
    display: none;
  }


  .command-visual .watch-device {
    top: 447px;
    right: 44px;
    bottom: auto;
    width: 82px;
    height: 126px;
    border-width: 5px;
    border-radius: 23px;
    padding: 5px;
  }

  .command-visual .watch-device::before,
  .command-visual .watch-device::after {
    left: 19%;
    right: 19%;
    height: 20px;
  }

  .command-visual .watch-device::before {
    top: -24px;
  }

  .command-visual .watch-device::after {
    bottom: -24px;
  }

  .command-visual .watch-crown {
    right: -8px;
    top: 38px;
    width: 6px;
    height: 25px;
  }

  .command-visual .watch-button {
    right: -5px;
    top: 74px;
    width: 4px;
    height: 16px;
  }

  .command-visual .watch-face {
    border-radius: 16px;
    gap: 2px;
    padding: 6px;
  }

  .command-visual .watch-face::before {
    border-radius: 15px;
  }

  .command-visual .watch-top small {
    display: none;
  }

  .command-visual .watch-rings {
    width: 42px;
    height: 42px;
  }

  .command-visual .watch-rings .track,
  .command-visual .watch-rings .progress {
    stroke-width: 5;
  }

  .command-visual .watch-rings text {
    font-size: 7px;
  }

  .command-visual .watch-rings text + text {
    font-size: 4.5px;
  }

  .command-visual .watch-face span {
    min-height: 12px;
    padding: 2px 4px;
    font-size: 0.42rem;
  }

  .command-visual .watch-face span:last-child {
    display: none;
  }

  .command-visual .profile-orbit {
    display: none;
  }

  .command-visual .capability-strip {
    order: 4;
    width: 100%;
    max-width: none;
    align-self: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-left: 0;
    overflow-x: visible;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .command-visual .capability {
    min-width: 0;
    font-size: 0.82rem;
  }

  .command-visual .capability__icon {
    width: 54px;
    height: 54px;
  }

  .command-visual .site-footer__inner {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .command-visual .site-footer__company-info {
    min-height: 56px;
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .command-visual .workspace-item {
    gap: 8px;
  }

  .command-visual .customer-links {
    grid-template-columns: 1fr;
  }

  .command-visual .hero-copy h1 {
    font-size: 2.28rem;
  }

  .command-visual.product-showcase {
    min-height: 646px;
  }

  .command-visual .dashboard-device {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .command-visual .phone-device {
    left: 20px;
  }

  .command-visual .watch-device {
    right: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .command-visual *,
  .command-visual *::before,
  .command-visual *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }


  .command-visual.product-showcase .chart-line polyline {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }

  .command-visual.product-showcase .chart-line circle:not(.chart-live-cursor),
  .command-visual.product-showcase .watch-rings .progress {
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }

  .command-visual.product-showcase .chart-live-cursor,
  .command-visual.product-showcase .portal-toast,
  .command-visual.product-showcase .portal-row.is-updating::after,
  .command-visual.product-showcase .status-badge.is-deploying::after {
    display: none !important;
  }


  .command-visual.product-showcase .dashboard-tabs::before,
  .command-visual.product-showcase .dashboard-tabs span {
    animation: none !important;
  }

  .command-visual.product-showcase .dashboard-tabs::before {
    opacity: 0 !important;
  }

  .command-visual.product-showcase .dashboard-tabs .is-active {
    color: #ffffff !important;
    background: rgba(18, 100, 245, 0.24) !important;
  }


  .command-visual.product-showcase .dashboard-view {
    animation: none !important;
    opacity: 0 !important;
  }

  .command-visual.product-showcase [data-dashboard-view="live"] {
    opacity: 1 !important;
  }
}

.auth-capabilities {
  align-self: end;
  grid-column: 1;
  grid-row: 2;
  width: min(430px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 60px);
}

.capability-tile {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #020817;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.capability-icon {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid #c7ddff;
  border-radius: 999px;
  background: #eef6ff;
  box-shadow: 0 10px 28px rgba(20, 103, 247, .1);
}

.capability-icon::before,
.capability-icon::after {
  content: "";
  position: absolute;
}

.capability-icon.apps::before {
  width: 24px;
  height: 24px;
  background:
    linear-gradient(#1467f7 0 0) left top / 9px 9px no-repeat,
    linear-gradient(#1467f7 0 0) right top / 9px 9px no-repeat,
    linear-gradient(#1467f7 0 0) left bottom / 9px 9px no-repeat,
    linear-gradient(#1467f7 0 0) right bottom / 9px 9px no-repeat;
}

.capability-icon.apps::after {
  width: 30px;
  height: 30px;
  border: 3px solid #1467f7;
  border-radius: 6px;
}

.capability-icon.agents::before {
  width: 30px;
  height: 22px;
  border: 4px solid #1467f7;
  border-radius: 9px;
}

.capability-icon.agents::after {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #1467f7;
  box-shadow: -9px 0 0 #1467f7, 9px 0 0 #1467f7, 0 -18px 0 #1467f7;
}

.capability-icon.security::before {
  width: 31px;
  height: 24px;
  border: 4px solid #1467f7;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom: 0;
}

.capability-icon.security::after {
  bottom: 17px;
  width: 34px;
  height: 22px;
  border-radius: 9px 9px 12px 12px;
  background: #1467f7;
}

.customer-links {
  display: grid;
  gap: 24px;
}

.customer-links-heading {
  display: grid;
  grid-template-columns: minmax(32px, 1fr) auto minmax(32px, 1fr);
  align-items: center;
  gap: 0;
  color: #071a46;
  font-size: 16px;
  text-align: center;
}

.customer-links-heading span {
  height: 1px;
  background: #c9d7ec;
}

.customer-links-heading strong {
  position: relative;
  padding: 0 14px 5px;
  background: rgba(255, 255, 255, .72);
}

.customer-links-heading strong::after {
  content: "";
  position: absolute;
  left: 28%;
  right: 28%;
  bottom: 0;
  height: 2px;
  background: #1467f7;
}

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

.auth-footer {
  width: min(1650px, 100%);
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  justify-self: center;
  gap: 28px;
  border-top: 1px solid #c9d7ec;
  color: #092253;
}

.auth-footer p,
.auth-footer address {
  color: #092253;
  font-size: 13px;
  font-style: normal;
}

.auth-footer address {
  padding-left: 22px;
  border-left: 1px solid #c9d7ec;
  color: #566683;
}

.auth-footer a {
  color: #071a46;
  font-size: 13px;
  text-decoration: none;
}

.preview-window {
  overflow: hidden;
  min-height: 560px;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.preview-body {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-height: 500px;
}

.preview-nav {
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #fbfcff;
}

.preview-nav span {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
}

.preview-nav .is-active {
  color: var(--primary);
  background: #edf5ff;
}

.preview-content {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
}

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

.mini-stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mini-stat strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.mini-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) .7fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.mini-row:first-child {
  border-top: 0;
}

.bridge-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.bridge-card {
  width: min(760px, 100%);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 14px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow: auto;
}

.rail-brand {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.rail-brand .brand-logo {
  width: 166px;
}

.rail-collapse {
  position: absolute;
  top: -2px;
  right: 0;
  width: 34px;
  height: 34px;
  min-height: 34px;
  color: var(--muted);
}

.tenant-switcher {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.tenant-switcher strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-avatar {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #e9f2ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.rail-section {
  display: grid;
  gap: 5px;
  margin: 16px 0;
}

.rail-title {
  padding: 0 10px 5px;
  color: var(--tertiary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.nav-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-main > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  color: #46617f;
  font-size: 10px;
  font-weight: 900;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
  background: #edf5ff;
}

.nav-link.is-active .nav-icon {
  color: var(--primary);
}

.nav-count {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2f8;
  color: var(--tertiary);
  font-size: 12px;
}

.rail-user {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.rail-user .btn {
  width: 100%;
}

.user-menu {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 30px;
  height: 30px;
  min-height: 30px;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 999px;
  background: #e7f0ff;
  color: var(--primary);
  font-weight: 800;
}

.user-meta {
  min-width: 0;
}

.user-meta strong,
.user-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 26px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar-breadcrumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2d4265;
  font-size: 13px;
  font-weight: 700;
}

.topbar-breadcrumbs a {
  min-height: 0;
  color: #526684;
  text-decoration: none;
}

.topbar-breadcrumbs strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-right {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.topbar-search {
  position: relative;
  display: block;
}

.topbar-search > span {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid #587096;
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
}

.topbar-search > span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #587096;
  transform: rotate(45deg);
}

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

.search-box {
  width: min(420px, 34vw);
  padding-left: 38px;
}

.topbar-icon,
.topbar-avatar {
  width: 38px;
  height: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #24405f;
  cursor: pointer;
}

.topbar-icon::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 8px 8px 5px 5px;
}

.topbar-icon.help::before {
  content: "?";
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.topbar-avatar {
  background: #eaf2ff;
  color: var(--primary);
  font-weight: 900;
}

.content {
  width: min(1480px, calc(100vw - var(--rail) - 44px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.page-kicker {
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-head p {
  max-width: 760px;
  margin-top: 8px;
  line-height: 1.5;
}

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

.metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 16px;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: #edf5ff;
  color: var(--primary);
  font-weight: 900;
}

.metric strong {
  display: block;
  margin-top: 3px;
  font-size: 26px;
}

.panel {
  padding: 18px;
  margin-bottom: 16px;
}

.panel-head,
.table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 16px;
  align-items: start;
}

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

/* Story: #0 | Date: 2026-08-22 | Agent: George | Change: Style project detail, GitHub repository, timeline, and project tool surfaces. */
.project-detail-head {
  align-items: stretch;
}

.detail-meta,
.detail-list,
.repo-summary,
.schedule-preview-list,
.project-schedule-panel,
.schedule-board,
.project-tools {
  min-width: 0;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.text-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.detail-list {
  display: grid;
  gap: 8px;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(120px, .55fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.detail-row:first-child {
  border-top: 0;
}

.detail-row span {
  color: var(--muted);
  font-weight: 700;
}

.detail-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.repo-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.repo-summary strong,
.repo-summary small {
  display: block;
  overflow-wrap: anywhere;
}

.repo-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.archived-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-color: #ebd09a;
  background: #fffaf0;
}

.schedule-preview-list {
  display: grid;
  gap: 10px;
}

.schedule-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.schedule-preview-item strong,
.schedule-preview-item small {
  display: block;
  overflow-wrap: anywhere;
}

.project-schedule-head {
  align-items: stretch;
}

.project-schedule-panel {
  overflow: hidden;
}

.schedule-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.schedule-toolbar h2 {
  margin: 0 0 4px;
}

.schedule-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.schedule-zoom {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f9fc;
}

.schedule-zoom .is-active {
  border-color: var(--primary);
  color: var(--primary);
  background: #eaf2ff;
}

.schedule-board {
  display: grid;
  grid-template-columns: minmax(430px, .9fr) minmax(0, 1.6fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.schedule-board.is-columns-collapsed {
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
}

.schedule-table {
  position: relative;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #fff;
}

.schedule-column-toggle {
  position: absolute;
  top: 10px;
  right: -1px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  color: var(--primary);
  background: #fff;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(24, 39, 75, .08);
}

.schedule-board.is-columns-collapsed .schedule-column-toggle {
  right: -30px;
  border-right: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 6px 6px 0;
}

.schedule-table-head,
.schedule-table-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(88px, .7fr) minmax(96px, .7fr) minmax(70px, .45fr) minmax(72px, .45fr);
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
}

.schedule-board.is-columns-collapsed .schedule-table-head,
.schedule-board.is-columns-collapsed .schedule-table-row {
  grid-template-columns: minmax(0, 1fr);
  padding-right: 38px;
}

.schedule-board.is-columns-collapsed .schedule-meta-cell {
  display: none;
}

.schedule-table-head {
  min-height: 70px;
  border-top: 0;
  color: var(--muted);
  background: #f7f9fc;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-table-row.phase {
  background: #f8fbff;
  font-weight: 800;
}

.schedule-task-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.schedule-task-name strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.schedule-phase-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--primary);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.schedule-task-indent {
  flex: 0 0 34px;
}

.schedule-chart-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
}

.schedule-chart-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--schedule-days), minmax(var(--schedule-day-width), 1fr));
  grid-auto-rows: 42px;
  min-width: calc(var(--schedule-days) * var(--schedule-day-width));
}

.schedule-scale-major,
.schedule-scale-minor {
  display: grid;
  place-items: center;
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.schedule-scale-major {
  grid-row: 1;
  color: #1d2d4a;
  background: #eef4ff;
}

.schedule-scale-minor {
  grid-row: 2;
  font-size: 11px;
}

.schedule-chart-row {
  border-top: 1px solid var(--line);
  background-image: linear-gradient(to right, rgba(213, 224, 239, .65) 1px, transparent 1px);
  background-size: var(--schedule-day-width) 100%;
}

.schedule-chart-row.phase {
  background-color: #f8fbff;
}

.schedule-bar {
  align-self: center;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 20px;
  height: 18px;
  overflow: hidden;
  border-radius: 3px;
  background: #2b7bdc;
  color: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .12);
}

.schedule-bar.phase {
  height: 10px;
  border-radius: 0;
  background: #111827;
}

.schedule-bar.warning {
  background: #d89423;
}

.schedule-bar.danger {
  background: #c0393f;
}

.schedule-bar.success {
  background: #128a52;
}

.schedule-bar-progress {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(255, 255, 255, .28);
}

.schedule-bar strong {
  position: relative;
  z-index: 1;
  padding: 0 6px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-milestone {
  align-self: center;
  justify-self: center;
  position: relative;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  border: 2px solid #111827;
  background: #2b7bdc;
}

.schedule-milestone.success {
  background: #128a52;
}

.schedule-milestone.warning {
  background: #d89423;
}

.schedule-milestone.danger {
  background: #c0393f;
}

.schedule-milestone span {
  position: absolute;
  left: 18px;
  top: -12px;
  width: max-content;
  max-width: 190px;
  transform: rotate(-45deg);
  color: #1d2d4a;
  font-size: 11px;
  font-weight: 800;
}

.schedule-today-marker {
  z-index: 3;
  width: 0;
  border-left: 2px solid #db2777;
  pointer-events: none;
}

.schedule-today-marker span {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #db2777;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.schedule-legend {
  display: grid;
  gap: 10px;
}

.schedule-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.legend-bar {
  width: 34px;
  height: 10px;
  border-radius: 3px;
  background: #2b7bdc;
}

.legend-bar.success {
  background: #128a52;
}

.legend-bar.warning {
  background: #d89423;
}

.legend-bar.danger {
  background: #c0393f;
}

.legend-diamond {
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border: 2px solid #111827;
  background: #2b7bdc;
}

.project-tool {
  min-height: 112px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.project-tool:hover {
  border-color: var(--primary);
}

.project-tool strong,
.project-tool small {
  display: block;
}

.table-panel {
  overflow: hidden;
  margin-bottom: 16px;
}

.table-head {
  padding: 16px 18px 0;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  background: #f7f9fc;
  font-size: 12px;
  text-transform: uppercase;
}

.data-table td {
  color: #22314c;
}

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

.row-title small {
  margin-top: 3px;
}

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

.data-table tr.is-archived td {
  background: #f9fbfe;
  color: var(--muted);
}

.badge.success,
.run-status.complete,
.run-status.dry_run_complete,
.run-status.branch_created {
  color: var(--success);
  background: #eff9f2;
  border-color: #bee5cb;
}

.badge.warning,
.run-status.queued,
.run-status.running,
.run-status.resolving,
.run-status.proposal_created {
  color: var(--warning);
  background: #fff8e8;
  border-color: #ebd09a;
}

.badge.danger,
.run-status.failed,
.run-status.blocked {
  color: var(--danger);
  background: #fff1f1;
  border-color: #efbaba;
}

.badge.info {
  color: var(--info);
  background: #edf8fc;
  border-color: #bde0ef;
}

.environment-map {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.env-row {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(180px, .9fr) minmax(170px, .8fr) minmax(120px, .5fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.env-row:first-child {
  border-top: 0;
}

.env-row.head {
  min-height: 38px;
  color: var(--muted);
  background: #f7f9fc;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.deployment-line {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, .7fr) 112px minmax(420px, 1.4fr);
  gap: 13px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.deployment-line:first-child {
  border-top: 0;
}

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

.deployment-actions .select {
  width: 186px;
}

.capacity-list,
.attention-list,
.audit-list,
.support-list,
.system-list {
  display: grid;
  gap: 10px;
}

.capacity-item,
.attention-item,
.audit-item,
.support-item,
.system-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.capacity-item {
  grid-template-columns: minmax(0, 1fr) minmax(120px, .7fr);
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebf4;
}

.progress-fill {
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width .25s ease;
}

.run-list {
  display: grid;
}

.run-line {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) 140px minmax(180px, 1fr) minmax(240px, 1.1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.run-line:first-child {
  border-top: 0;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fbfcff;
}

/* Story: #0 | Date: 2026-08-31 | Agent: George | Change: Style the PurePlay configuration roster and local agent request form. */
.pureplay-page-head .actions {
  flex: 0 0 auto;
}

.pureplay-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
}

.pureplay-table {
  min-width: 920px;
}

.pureplay-agent-cell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.pureplay-agent-cell strong,
.pureplay-agent-cell small,
.pureplay-detail strong,
.pureplay-detail small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pureplay-agent-cell small,
.pureplay-detail small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pureplay-avatar {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.pureplay-detail {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pureplay-config-list .attention-item {
  align-items: start;
}

.pureplay-form textarea {
  min-height: 96px;
}

/* Story: #0 | Date: 2026-09-01 | Agent: George | Change: Style the workspace Chat route for direct read-only org Codex CLI access. */
.codex-chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 16px;
  align-items: start;
}

.codex-chat-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(24, 39, 75, .04);
}

.codex-chat-transcript {
  min-height: min(540px, calc(100dvh - 310px));
  max-height: min(640px, calc(100dvh - 260px));
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.codex-chat-message {
  width: fit-content;
  min-width: min(260px, 100%);
}

.codex-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.codex-chat-composer textarea {
  min-height: 96px;
  resize: vertical;
}

.codex-chat-side {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.codex-chat-run-card {
  min-width: 0;
}

.codex-chat-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.codex-chat-facts div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.codex-chat-facts div:first-child {
  padding-top: 0;
  border-top: 0;
}

.codex-chat-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.codex-chat-facts dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 800;
}

.codex-chat-error {
  margin: 0;
}

/* Story: #0 | Date: 2026-09-19 | Agent: George | Change: Style the tenant Codex CLI authentication monitor and device-login control surface. */
.page-inline-link {
  margin: -4px 0 16px;
}

.codex-auth-page {
  display: grid;
  gap: 16px;
}

.codex-auth-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.codex-auth-header-status {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.codex-auth-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.codex-auth-status-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(24, 39, 75, .04);
}

.codex-auth-status-card span,
.codex-auth-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.codex-auth-status-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 20px;
}

.codex-auth-control {
  display: grid;
  gap: 14px;
}

.codex-auth-actions {
  flex-wrap: wrap;
}

.codex-auth-device {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(17, 100, 252, .22);
  border-radius: var(--radius);
  background: #f4f8ff;
}

.codex-auth-device span {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.codex-auth-device code {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0;
}

.codex-auth-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}

.codex-auth-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.codex-auth-details div,
.codex-auth-event {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.codex-auth-details div:first-child,
.codex-auth-event:first-child {
  padding-top: 0;
  border-top: 0;
}

.codex-auth-details dd {
  min-width: 0;
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.codex-auth-events {
  display: grid;
  gap: 10px;
}

.codex-auth-event span:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.codex-auth-event small {
  color: var(--muted);
  font-weight: 700;
}

.codex-auth-state-panel {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(196, 107, 0, .35);
  border-radius: var(--radius);
  background: #fffaf1;
}

.btn.danger {
  color: var(--danger);
  border-color: rgba(220, 38, 38, .35);
  background: #fff;
}

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

.route-tile {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
}

.route-tile strong {
  color: var(--primary);
}

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

.board-lane {
  min-height: 420px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfe;
}

.board-lane.is-over-limit {
  border-color: rgba(196, 107, 0, .45);
  background: #fffaf1;
}

.board-lane.is-drag-over {
  border-color: var(--primary);
  background: #eef6ff;
  box-shadow: inset 0 0 0 1px rgba(10, 100, 240, .22);
}

.board-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.board-lane-head > div {
  display: grid;
  gap: 4px;
}

.board-lane-head small {
  color: var(--muted);
  font-size: 12px;
}

.board-cards {
  display: grid;
  gap: 10px;
  align-content: start;
}

.board-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(24, 39, 75, .04);
}

.board-card.is-dragging {
  opacity: .58;
}

.board-card.is-blocked {
  border-color: rgba(197, 48, 48, .35);
  background: #fff8f8;
}

.board-card h3 {
  font-size: 14px;
  line-height: 1.3;
}

.board-toolbar,
.board-bulk,
.board-filters,
.card-actions,
.card-counts,
.card-tags,
.label-checks {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.board-toolbar {
  justify-content: space-between;
  margin-bottom: 12px;
}

.board-filters {
  align-items: end;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field.compact {
  min-width: 150px;
  flex: 1 1 150px;
}

.board-message {
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(196, 107, 0, .32);
  border-radius: var(--radius);
  color: #7a4200;
  background: #fff8e8;
  font-weight: 700;
}

.board-result-line {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.board-card-top,
.card-meta-grid {
  display: grid;
  gap: 8px;
}

.board-card-top {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.check-inline,
.check-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.check-inline input,
.check-field input,
.label-checks input {
  inline-size: 16px;
  block-size: 16px;
}

.board-card-title {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  line-height: 1.3;
  cursor: pointer;
}

.board-card-title:hover,
.board-card-title:focus-visible {
  color: var(--primary);
  outline: none;
}

.card-tags span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f8fbff;
  font-size: 11px;
  font-weight: 700;
}

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

.card-meta-grid span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.card-meta-grid strong {
  display: block;
  color: var(--text);
  font-size: 11px;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #39a56a);
}

.card-counts {
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.board-support {
  margin-top: 16px;
}

.mini-card-list,
.board-note-grid,
.work-item-history,
.board-column-editor {
  display: grid;
  gap: 10px;
}

.mini-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
  text-align: left;
  cursor: pointer;
}

.mini-card strong {
  color: var(--primary);
}

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

.board-note-grid > div {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.board-note-grid small,
.work-item-history small {
  display: block;
  color: var(--muted);
}

.work-item-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.work-item-modal-grid .full-span,
.label-fieldset {
  grid-column: 1 / -1;
}

.label-fieldset {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.label-fieldset legend {
  padding: 0 4px;
  color: var(--text);
  font-weight: 800;
}

.label-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcff;
  font-size: 12px;
  font-weight: 700;
}

.work-item-history {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.board-column-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 90px 110px auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 20, 55, .5);
}

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

.modal {
  width: min(940px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.modal-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.confirm-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

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

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

/* Story: #0 | Date: 2026-08-22 | Agent: George | Change: Style URL-only GitHub authorization and repository sync states. */
.repo-sync-panel {
  display: grid;
  gap: 14px;
}

.repo-sync-actions {
  justify-content: flex-start;
  margin: 0;
}

.repo-access-card,
.repo-auth-card,
.repo-device-config-card,
.repo-sync-status,
.repo-derived-grid {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.repo-access-card {
  display: grid;
  gap: 10px;
}

.repo-auth-card {
  display: grid;
  gap: 12px;
  border-color: #f0cd8b;
  background: #fffaf0;
}

/* Story: #0 | Date: 2026-08-23 | Agent: George | Change: Style the in-modal GitHub OAuth device-flow setup state. */
.repo-device-config-card {
  display: grid;
  gap: 12px;
  border-color: #f0cd8b;
  background: #fffaf0;
}

.repo-auth-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

.repo-auth-actions {
  align-items: stretch;
}

.repo-device-config-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .75fr);
  gap: 10px;
}

.repo-device-config-actions {
  align-items: stretch;
  justify-content: flex-start;
  margin: 0;
}

.repo-access-card p,
.repo-device-config-card small,
.repo-sync-status small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.repo-access-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.repo-access-list span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.repo-access-list small {
  color: var(--muted);
  line-height: 1.35;
}

.repo-sync-status {
  display: grid;
  gap: 4px;
  border-color: #b7d7ff;
  background: #f5f9ff;
}

.repo-sync-status.synced {
  border-color: #a9dfbd;
  background: #f2fbf6;
}

.repo-sync-status.authorization-required {
  border-color: #f0cd8b;
  background: #fffaf0;
}

.repo-sync-status.authentication-required,
.repo-sync-status.device-not-configured,
.repo-sync-status.device-authorization-required,
.repo-sync-status.device-authorization-pending,
.repo-sync-status.device-authorization-wait {
  border-color: #f0cd8b;
  background: #fffaf0;
}

.repo-sync-status.blocked {
  border-color: #efbaba;
  background: #fff6f6;
}

.repo-device-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #f0cd8b;
  border-radius: var(--radius);
  background: #fffaf0;
}

.repo-device-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

.repo-device-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.repo-device-code {
  min-width: 140px;
  padding: 10px 12px;
  border: 1px solid #e0b76e;
  border-radius: 6px;
  background: #fff;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.repo-device-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.repo-device-meta span {
  padding: 6px 8px;
  border: 1px solid #ead5aa;
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.repo-derived-grid {
  display: grid;
  gap: 0;
}

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

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

.project-confirm-summary {
  display: grid;
  gap: 4px;
}

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

.danger-note {
  padding: 12px;
  color: var(--danger);
  border: 1px solid #efbaba;
  border-radius: var(--radius);
  background: #fff6f6;
  line-height: 1.45;
}

.target-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.target-row {
  display: grid;
  grid-template-columns: 120px minmax(160px, 1fr) 112px auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcff;
}

/* Story: #0 | Date: 2026-09-01 | Agent: George | Change: Surface target-level Release Manager runner errors in progress rows. */
.target-error {
  grid-column: 1 / -1;
  color: var(--danger);
  font-weight: 700;
  line-height: 1.35;
}

.modal-log {
  max-height: 290px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.log-line {
  display: grid;
  grid-template-columns: 190px 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcff;
}

.log-line.error {
  border-color: #efbaba;
  background: #fff6f6;
}

.log-line pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.drawer-toggle {
  display: none;
}

/* Story #0 | Date: 2026-09-19 | Agent: George | Change: Style the tenant Codex CLI authentication monitor, controls, audit feed, and responsive states. */
.page-inline-link {
  margin: -8px 0 16px;
}

.codex-auth-page {
  display: grid;
  gap: 16px;
}

.codex-auth-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.codex-auth-header h2 {
  margin: 0 0 4px;
}

.codex-auth-header-status {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
}

.codex-auth-header-status small {
  color: var(--muted);
  text-align: right;
}

.codex-auth-state-panel {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #cdd9ea;
  border-radius: var(--radius);
  color: var(--text);
  background: #f6f9fd;
}

.codex-auth-state-panel small {
  color: var(--muted);
}

.codex-auth-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.codex-auth-status-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.codex-auth-status-card > span,
.codex-auth-status-card > small {
  color: var(--muted);
}

.codex-auth-status-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 21px;
}

.codex-auth-status-card small {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.codex-auth-actions {
  align-items: center;
}

.codex-auth-device {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #f1d48d;
  border-radius: var(--radius);
  background: #fffaf0;
}

.codex-auth-device span {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.codex-auth-device code {
  padding: 4px 7px;
  border-radius: 4px;
  color: #6b4b00;
  background: #fff1c9;
  font-weight: 800;
  letter-spacing: .08em;
}

.codex-auth-device small {
  color: var(--muted);
}

.codex-auth-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.codex-auth-details,
.codex-auth-events {
  display: grid;
  gap: 0;
  margin: 0;
}

.codex-auth-details > div,
.codex-auth-event {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.codex-auth-details > div:first-child,
.codex-auth-event:first-child {
  border-top: 0;
}

.codex-auth-details dt,
.codex-auth-event small {
  color: var(--muted);
}

.codex-auth-details dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.codex-auth-event > span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.codex-auth-event strong {
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .codex-auth-status-grid,
  .codex-auth-lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .codex-auth-header,
  .codex-auth-event {
    align-items: stretch;
    flex-direction: column;
  }

  .codex-auth-header-status {
    justify-items: start;
  }

  .codex-auth-header-status small {
    text-align: left;
  }

  .codex-auth-status-grid,
  .codex-auth-lower-grid {
    grid-template-columns: 1fr;
  }

  .codex-auth-details > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .codex-auth-details dd {
    text-align: left;
  }

  .codex-auth-actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 1180px) {
  .auth-page {
    overflow: auto;
    padding-inline: 28px;
  }

  .auth-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .auth-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(390px, auto) auto;
    padding-bottom: 22px;
  }

  .auth-copy {
    width: 100%;
    max-width: 760px;
  }

  .command-visual {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    max-width: 820px;
    justify-self: center;
  }

  .auth-hero > .command-visual.product-showcase {
    grid-column: 1;
    grid-row: auto;
    margin-inline: 0;
  }

  .auth-capabilities {
    grid-column: 1;
    grid-row: auto;
  }

  .login-column {
    padding: 28px 0 46px;
    border-top: 1px solid #c9d7ec;
    border-left: 0;
  }

  .login-card,
  .customer-links {
    width: min(620px, 100%);
    max-width: 100%;
    justify-self: center;
  }

  .auth-footer {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .auth-footer address {
    padding-left: 0;
    border-left: 0;
  }

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

  .grid-two,
  .grid-three,
  .codex-chat-layout,
  .codex-auth-lower-grid {
    grid-template-columns: 1fr;
  }

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

  .schedule-board {
    grid-template-columns: minmax(360px, .8fr) minmax(0, 1.2fr);
  }

  .schedule-board.is-columns-collapsed {
    grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  }

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

  .deployment-line,
  .run-line {
    grid-template-columns: 1fr;
  }

  .deployment-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .codex-auth-header,
  .codex-auth-details div,
  .codex-auth-event {
    display: grid;
    justify-items: start;
    text-align: left;
  }

  .codex-auth-header-status,
  .codex-auth-details dd {
    justify-items: start;
    text-align: left;
  }

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

  .codex-auth-actions .btn {
    width: 100%;
  }

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

  .codex-chat-transcript {
    min-height: 360px;
  }

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

@media (max-width: 860px) {
  .auth-page {
    grid-template-columns: 1fr;
    padding: 18px 18px 0;
  }

  .auth-header,
  .auth-panel,
  .auth-footer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .auth-header {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: start;
  }

  .auth-nav {
    justify-content: flex-start;
    gap: 24px;
  }

  .auth-hero {
    grid-template-rows: auto auto auto;
    gap: 24px;
    padding-top: 24px;
  }

  .auth-copy h1 {
    font-size: 42px;
  }

  .auth-copy p {
    font-size: 16px;
  }

  .command-visual {
    min-height: 640px;
    transform-origin: top left;
  }

  .desktop-console {
    position: relative;
    right: auto;
    width: min(100%, 520px);
  }

  .active-toast {
    right: 10px;
  }

  .phone-console {
    left: 0;
    bottom: 0;
  }

  .operator-tile {
    right: 74px;
    bottom: 20px;
    width: 250px;
  }

  .watch-console {
    right: 0;
    bottom: 14px;
  }

  .auth-capabilities {
    width: 100%;
    gap: 14px;
  }

  .customer-link-grid {
    grid-template-columns: 1fr;
  }

  .shell,
  .preview-body {
    grid-template-columns: 1fr;
  }

  .auth-preview {
    padding: 18px;
  }

  .rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .rail-section {
    margin: 0;
  }

  .rail-title,
  .rail-user {
    grid-column: 1 / -1;
  }

  .topbar,
  .page-head,
  .panel-head,
  .table-head,
  .schedule-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .content {
    width: min(100%, calc(100vw - 28px));
    padding-top: 18px;
  }

  .search-box {
    width: 100%;
  }

  .env-row,
  .target-row,
  .log-line,
  .project-form-grid,
  .repo-device-config-grid,
  .repo-access-list,
  .detail-row,
  .repo-summary,
  .capacity-item,
  .attention-item,
  .audit-item,
  .support-item,
  .system-item {
    grid-template-columns: 1fr;
  }

  .row-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .row-actions .btn {
    width: 100%;
  }

  .archived-banner,
  .schedule-preview-item {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-actions {
    justify-content: flex-start;
  }

  .schedule-board {
    grid-template-columns: 1fr;
  }

  .schedule-board.is-columns-collapsed {
    grid-template-columns: 1fr;
  }

  .schedule-table {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }

  .schedule-table-head,
  .schedule-table-row {
    min-width: 620px;
  }

  .schedule-board.is-columns-collapsed .schedule-table-head,
  .schedule-board.is-columns-collapsed .schedule-table-row {
    min-width: 0;
  }

  .schedule-chart-wrap {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .auth-logo {
    width: min(230px, 100%);
  }

  .auth-copy h1 {
    font-size: 36px;
    line-height: 1;
  }

  .auth-copy p {
    line-height: 1.58;
  }

  .command-visual {
    width: 100%;
    max-width: 100%;
    min-height: 646px;
  }

  .desktop-console {
    min-height: 312px;
    grid-template-columns: 52px minmax(0, 1fr);
    border-radius: 16px;
  }

  .console-rail {
    gap: 24px;
  }

  .console-main {
    padding: 22px 14px 18px;
  }

  .console-stats {
    grid-template-columns: 1fr;
  }

  .console-chart {
    display: none;
  }

  .active-toast {
    display: none;
  }

  .phone-console {
    display: none;
  }

  .operator-tile {
    display: none;
  }

  .watch-console {
    display: none;
  }

  .metric-grid,
  .mini-grid,
  .route-grid,
  .board-grid,
  .board-note-grid,
  .work-item-modal-grid,
  .method-switch,
  .rail nav {
    grid-template-columns: 1fr;
  }

  .board-toolbar,
  .board-bulk,
  .board-filters {
    align-items: stretch;
  }

  .field.compact {
    min-width: 100%;
  }

  .card-meta-grid,
  .board-column-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 18px;
  }

  .preview-window {
    min-height: auto;
  }

  h1 {
    font-size: 25px;
  }

  .deployment-actions .select {
    width: 100%;
  }

  .btn,
  .button-row .btn,
  .deployment-actions .btn {
    width: 100%;
  }

  .schedule-actions,
  .schedule-zoom {
    width: 100%;
  }

  .schedule-zoom .btn {
    width: 100%;
  }

  .schedule-chart-grid {
    grid-auto-rows: 48px;
  }

  .schedule-milestone span {
    max-width: 140px;
  }
}

/* Story: #0 | Date: 2026-08-23 | Agent: George | Change: Upgrade project boards toward Azure Boards-style scanning, filtering, quick-add, and split work-item editing. */
.segmented-control {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(74px, 1fr);
  gap: 4px;
  align-self: end;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #eef3f8;
}

.segmented-control button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.segmented-control button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(24, 39, 75, .1);
}

.board-querybar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) minmax(150px, 190px) auto auto;
  gap: 10px;
  align-items: end;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(24, 39, 75, .04);
}

.board-search-field {
  min-width: min(420px, 100%);
}

.board-filter-panel {
  position: relative;
  align-self: end;
}

.board-filter-panel summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbff;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.board-filter-panel summary::-webkit-details-marker {
  display: none;
}

.board-filter-panel[open] .board-filters {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(760px, calc(100vw - 64px));
  margin: 0;
  box-shadow: var(--shadow);
}

.board-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 32px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.board-filter-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #bdd0eb;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--text);
  cursor: pointer;
}

.board-filter-chip strong,
.board-filter-chip b {
  color: var(--primary);
}

.board-filter-chip b {
  font-size: 12px;
  line-height: 1;
}

.board-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 18px rgba(24, 39, 75, .06);
}

.board-toolbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.board-toolbar-main > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.board-toolbar-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.board-metrics {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

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

.board-lane {
  min-height: 500px;
  gap: 10px;
  padding: 10px;
  border-radius: 7px;
  background: #f3f6fa;
}

.board-lane-head strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.board-lane-head strong span {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.lane-quick-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px auto;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px dashed #bccbe0;
  border-radius: 7px;
  background: rgba(255, 255, 255, .72);
}

.lane-quick-add label {
  display: grid;
  gap: 4px;
}

.lane-quick-add label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.lane-quick-add .input,
.lane-quick-add .select,
.lane-quick-add .btn {
  min-height: 34px;
  font-size: 13px;
}

.lane-drop-cue {
  display: none;
  min-height: 44px;
  place-items: center;
  border: 1px dashed var(--primary);
  border-radius: 7px;
  background: #eef6ff;
  color: var(--primary);
  font-weight: 800;
}

.board-lane.is-drag-over .lane-drop-cue {
  display: grid;
}

.board-card {
  gap: 10px;
  border-radius: 7px;
}

.board-card:hover,
.board-card:focus-within {
  border-color: #b8c9e2;
  box-shadow: 0 8px 20px rgba(24, 39, 75, .08);
}

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

.work-type {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #b9c7da;
  border-radius: 5px;
  background: #f4f7fb;
  color: #23314d;
  font-size: 12px;
  font-weight: 900;
}

.card-primary-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.avatar.compact {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  font-size: 12px;
}

.card-primary-meta strong,
.card-primary-meta small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-blocker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(191, 46, 46, .22);
  border-radius: 6px;
  background: #fff3f3;
  color: var(--danger);
  font-size: 12px;
}

.card-maturation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #bcd8ff;
  border-radius: 6px;
  background: #f0f7ff;
  color: #0a4faf;
  font-size: 12px;
  font-weight: 800;
}

/* Story: #0 | Date: 2026-08-25 | Agent: George | Change: Surface Ready-work implementation outcomes on board cards without exposing runner logs. */
.card-implementation {
  display: grid;
  gap: 4px;
  padding: 8px 9px;
  border: 1px solid #cfd7e6;
  border-radius: 6px;
  background: #f7f9fc;
  color: #23314d;
  font-size: 12px;
}

.card-implementation strong,
.card-implementation span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-implementation.review {
  border-color: rgba(22, 160, 93, .24);
  background: #effbf5;
  color: #0d6a3d;
}

.card-implementation.blocked {
  border-color: rgba(191, 46, 46, .22);
  background: #fff3f3;
  color: var(--danger);
}

.card-implementation.running {
  border-color: rgba(255, 138, 0, .28);
  background: #fff8ed;
  color: #8a4b00;
}

.card-menu {
  position: relative;
}

.card-menu summary {
  width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbff;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.card-menu summary::-webkit-details-marker {
  display: none;
}

.card-menu[open] > div {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 6;
  min-width: 150px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.card-menu button:hover,
.card-menu button:focus-visible {
  background: #eef6ff;
  outline: none;
}

.board-support-details {
  margin-top: 16px;
}

.board-support-details > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.board-support-details > summary::-webkit-details-marker {
  display: none;
}

.board-support-details[open] > summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.board-list-panel .table-title-button,
.table-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.table-title-button {
  display: grid;
  gap: 3px;
}

.modal[data-modal-mode="work-item"] {
  width: min(1180px, calc(100vw - 28px));
  max-height: min(900px, calc(100vh - 24px));
}

.work-item-editor {
  display: grid;
  gap: 14px;
}

.work-item-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.work-item-editor-head > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.work-item-editor-head small {
  overflow-wrap: anywhere;
  text-align: right;
}

.work-item-editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 14px;
  align-items: start;
}

.work-item-main,
.work-item-rail,
.work-item-section {
  display: grid;
  gap: 12px;
}

.work-item-section {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.section-subhead {
  display: grid;
  gap: 3px;
}

.section-subhead h3 {
  font-size: 15px;
}

.section-subhead p {
  font-size: 12px;
}

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

.work-item-rail .work-item-evidence-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal[data-modal-mode="story-maturation"] {
  width: min(980px, calc(100vw - 28px));
  max-height: min(880px, calc(100dvh - 24px));
}

/* Story: #0 | Date: 2026-08-25 | Agent: George | Change: Present Ready-work implementation progress and outcomes in plain operational language. */
.modal[data-modal-mode="work-implementation"] {
  width: min(980px, calc(100vw - 28px));
  max-height: min(880px, calc(100dvh - 24px));
}

.work-implementation {
  display: grid;
  gap: 16px;
}

.implementation-run-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d9e2ef;
  border-radius: 7px;
  background: #f8fafc;
}

.implementation-run-card strong,
.implementation-run-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.implementation-run-card small {
  margin-top: 3px;
  color: var(--muted);
}

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

.implementation-evidence-grid section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e1e8f4;
  border-radius: 7px;
  background: #fff;
}

.implementation-evidence-grid ul {
  margin: 0;
  padding-left: 18px;
  color: #4d5c73;
}

.implementation-evidence-grid li + li {
  margin-top: 5px;
}

/* Story: #0 | Date: 2026-08-24 | Agent: George | Change: Present story creation as a focused chat modal without visible planner status or draft side panels. */
.story-maturation {
  display: grid;
  gap: 14px;
}

.story-chat-panel {
  display: grid;
  gap: 12px;
}

.story-chat-transcript {
  min-height: 320px;
  max-height: 48vh;
  overflow: auto;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.story-chat-message {
  max-width: 86%;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.story-chat-message.user {
  justify-self: end;
  background: #eef6ff;
  border-color: #c7dcff;
}

.story-chat-message.assistant {
  justify-self: start;
}

.story-chat-message.system {
  justify-self: start;
  color: #7a2e0c;
  border-color: #efc18d;
  background: #fff8ec;
}

.story-chat-message.is-busy {
  border-color: #f0cd8b;
  background: #fffaf0;
}

/* Story: #0 | Date: 2026-08-24 | Agent: George | Change: Animate the read-only story planner busy indicator. */
.story-busy-line {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.story-busy-dots {
  display: inline-flex;
  gap: 4px;
  min-width: 34px;
  align-items: center;
}

.story-busy-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #b06d12;
  opacity: 0.35;
  animation: storyBusyWave 1.15s ease-in-out infinite;
}

.story-busy-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.story-busy-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes storyBusyWave {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-busy-dots span {
    animation: none;
    opacity: 0.8;
  }
}

.story-chat-message strong {
  font-size: 12px;
}

.story-chat-message p {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.story-maturation-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.story-maturation-composer textarea {
  min-height: 92px;
  resize: vertical;
}

/* Story: #0 | Date: 2026-08-24 | Agent: George | Change: Present retry and server-confirmed creation as compact chat states. */
.story-planner-error,
.story-created-confirmation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e6b980;
  border-radius: 7px;
  background: #fff8ec;
}

.story-created-confirmation {
  color: #155b38;
  border-color: #9fd7ba;
  background: #f1fbf6;
}

.story-created-confirmation span {
  font-size: 13px;
  font-weight: 700;
}

.token-input {
  background:
    linear-gradient(90deg, rgba(7, 94, 234, .08), rgba(255, 255, 255, 0) 34%),
    var(--surface);
}

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

  .board-search-field,
  .board-filter-panel {
    grid-column: 1 / -1;
  }

  .board-filter-panel[open] .board-filters {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  .board-toolbar-main,
  .board-message,
  .work-item-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .work-item-editor-shell {
    grid-template-columns: 1fr;
  }

  .work-item-editor-head small {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .board-querybar,
  .board-metrics,
  .story-maturation-composer,
  .implementation-evidence-grid,
  .work-item-evidence-grid,
  .work-item-rail .work-item-evidence-grid {
    grid-template-columns: 1fr;
  }

  .segmented-control {
    width: 100%;
  }

  .board-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 88vw);
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
  }

  .board-lane {
    scroll-snap-align: start;
  }

  .lane-quick-add,
  .card-primary-meta {
    grid-template-columns: 1fr;
  }

  .card-primary-meta .badge {
    justify-self: start;
  }

  .modal[data-modal-mode="work-item"] {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
  }

  .modal[data-modal-mode="story-maturation"] {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
  }

  .story-chat-transcript {
    min-height: 240px;
    max-height: 42vh;
  }

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

/* Story: #0 | Date: 2026-08-23 | Agent: George | Change: Match the project board shell, sprint card, metrics, and lanes to the provided mockup while preserving existing board actions. */
.board-page-head {
  align-items: center;
  margin-bottom: 22px;
}

.board-page-head h1 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
}

.board-page-head h1::after {
  content: "Planning";
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 3px 10px;
  border: 1px solid #bcd8ff;
  border-radius: 999px;
  background: #ecf5ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.board-page-head .actions {
  align-items: center;
}

.board-sprint-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(220px, .8fr) minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(24, 39, 75, .05);
}

.sprint-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #60718d;
  border-radius: 6px;
}

.sprint-icon::before,
.sprint-icon::after {
  content: "";
  display: block;
  width: 12px;
  height: 2px;
  background: #60718d;
}

.sprint-icon::after {
  width: 16px;
  margin-top: 3px;
}

.sprint-copy {
  display: grid;
  gap: 5px;
}

.sprint-copy strong,
.sprint-copy small {
  display: block;
}

.sprint-copy small b {
  padding: 0 8px;
  color: #8a9ab3;
}

.sprint-progress {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 44px;
  gap: 18px;
  align-items: center;
}

.sprint-progress span {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebf4;
}

.sprint-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d66ff, #0062e6);
}

.sprint-progress b {
  color: #334463;
  font-size: 13px;
}

.sprint-actions {
  display: inline-flex;
  gap: 18px;
  justify-content: flex-end;
}

.board-querybar {
  grid-template-columns: auto minmax(260px, 1.35fr) repeat(4, minmax(116px, .7fr));
  padding: 10px 14px;
  margin-bottom: 14px;
}

.board-querybar > *,
.board-querybar .field,
.board-querybar .input,
.board-querybar .select {
  min-width: 0;
}

.board-querybar .input,
.board-querybar .select {
  width: 100%;
}

.board-search-field {
  min-width: 0;
}

.board-querybar .field > span {
  font-size: 0;
}

.board-querybar .field > span::first-letter {
  font-size: 0;
}

.board-filter-chips {
  margin-bottom: 14px;
}

.board-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.board-metric {
  min-height: 96px;
  padding: 18px;
  border-radius: var(--radius);
}

.board-metric .metric-icon {
  border-radius: 999px;
}

.board-metric .metric-icon::before {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 22px;
  font-weight: 900;
}

.board-metric.progress .metric-icon {
  background: #e9f2ff;
  color: #0d66ff;
}

.board-metric.progress .metric-icon::before {
  content: "/";
}

.board-metric.velocity .metric-icon {
  background: #eaf8ef;
  color: #16894a;
}

.board-metric.velocity .metric-icon::before {
  content: "~";
}

.board-metric.blocked .metric-icon {
  background: #fff0f0;
  color: #dc2f3a;
}

.board-metric.blocked .metric-icon::before {
  content: "!";
}

.board-metric.readiness .metric-icon {
  background: #f3ecff;
  color: #7c4dff;
}

.board-metric.readiness .metric-icon::before {
  content: ">";
}

.board-metric em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.board-toolbar {
  position: static;
  margin-bottom: 14px;
  box-shadow: none;
}

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

.board-lane {
  min-height: 500px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 14px 8px 16px;
  border-top: 3px solid var(--lane-color, var(--primary));
  background: #fbfcff;
}

.board-lane-head {
  padding: 0 4px 6px;
}

.board-lane-head strong {
  color: var(--text);
  font-size: 15px;
}

.board-lane-head strong span {
  color: #52637d;
  background: #f5f8fc;
}

.lane-add-button {
  width: 42px;
  min-width: 42px;
  padding-inline: 0;
  font-size: 20px;
  line-height: 1;
}

.board-cards {
  gap: 10px;
}

.board-card {
  gap: 11px;
  padding: 14px 12px 12px;
  border-color: #dce5f1;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(24, 39, 75, .04);
}

/* Story: #0 | Date: 2026-08-24 | Agent: George | Change: Make a newly created canonical story easy to locate without changing board geometry. */
.board-card.is-new {
  border-color: #0b6e4f;
  box-shadow: 0 0 0 3px rgba(11, 110, 79, .16), 0 1px 2px rgba(24, 39, 75, .04);
  animation: boardStoryCreated 1.4s ease-out 2;
}

@keyframes boardStoryCreated {
  50% {
    box-shadow: 0 0 0 6px rgba(11, 110, 79, .08), 0 1px 2px rgba(24, 39, 75, .04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .board-card.is-new {
    animation: none;
  }
}

.board-card-top {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  padding-right: 34px;
}

.card-title-stack {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.card-title-stack small {
  font-size: 12px;
}

.board-card-title {
  display: block;
  min-height: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.board-card .card-menu {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
}

.board-card:hover .card-menu,
.board-card:focus-within .card-menu {
  opacity: 1;
  visibility: visible;
}

.work-type {
  color: #825ee9;
  border-color: #dccdff;
  background: #f3edff;
}

.work-type.feature {
  color: #0d66ff;
  border-color: #bfd7ff;
  background: #edf5ff;
}

.work-type.improvement {
  color: #16894a;
  border-color: #bfe8ce;
  background: #ecf9f0;
}

.card-priority-line,
.card-footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-priority-line {
  color: #263a59;
  font-size: 13px;
  font-weight: 800;
}

.priority-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.priority-mark.warning {
  color: #d23b3b;
}

.priority-mark.danger {
  color: #bf2e2e;
}

.priority-mark.info {
  color: #e07812;
}

.priority-mark.success {
  color: #178348;
}

.card-footer-line {
  min-height: 28px;
}

.card-select {
  position: relative;
  display: inline-grid;
  min-height: 30px;
}

.card-select input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.card-select input:checked + .avatar {
  box-shadow: 0 0 0 2px var(--primary);
}

.card-tags {
  justify-content: flex-end;
  margin-left: auto;
}

.card-tags span {
  border: 0;
  border-radius: 5px;
  background: #eaf2ff;
  color: var(--primary);
}

.card-tags span:nth-child(2n) {
  background: #e9f8ef;
  color: #16894a;
}

.card-mini-counts {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.lane-quick-add-shell {
  padding-top: 8px;
}

.lane-quick-add-shell > summary {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.lane-quick-add-shell > summary::-webkit-details-marker {
  display: none;
}

.lane-quick-add {
  margin-top: 8px;
}

.lane-encouragement {
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 14px 10px;
  color: #5d6d89;
  text-align: center;
}

.lane-encouragement strong,
.lane-encouragement small {
  display: block;
}

.lane-illustration {
  width: 74px;
  height: 56px;
  display: block;
  border: 2px solid #b4c1d5;
  border-radius: 9px;
  opacity: .75;
}

.lane-illustration.done {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  transform: rotate(-24deg);
}

@media (max-width: 1180px) {
  .board-sprint-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sprint-progress,
  .sprint-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .board-querybar {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 860px) {
  .topbar-right {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-search,
  .search-box {
    width: 100%;
  }

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

  .board-sprint-card {
    grid-template-columns: 1fr;
  }

  .sprint-progress,
  .sprint-actions {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .board-page-head .actions,
  .sprint-actions,
  .topbar-right {
    align-items: stretch;
    flex-direction: column;
  }

  .board-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 88vw);
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
  }

  .board-lane {
    scroll-snap-align: start;
  }

  .topbar-icon,
  .topbar-avatar {
    display: none;
  }
}

/* Story: #0 | Date: 2026-08-23 | Agent: George | Change: Revamp the project overview page to match the compact mockup with tabs, readiness, risk, activity, and copyable truncated SHA controls. */
.project-overview-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.project-scoped-hero {
  margin-bottom: 10px;
}

.project-avatar-large {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 7px;
  background: linear-gradient(135deg, #0d66ff, #0952d8);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(13, 102, 255, .22);
}

.project-hero-copy {
  min-width: 0;
}

.project-hero-copy h1 {
  margin: 0 0 4px;
  font-size: 30px;
  line-height: 1.08;
}

.project-hero-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.project-overview-tabs {
  display: flex;
  gap: 28px;
  align-items: center;
  min-width: 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.project-overview-tabs a {
  flex: 0 0 auto;
  padding: 12px 0 13px;
  border-bottom: 3px solid transparent;
  color: #334463;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.project-overview-tabs a.is-active {
  border-color: var(--primary);
  color: var(--primary);
}

.project-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.project-kpi {
  position: relative;
  min-height: 76px;
  padding: 16px;
  border-radius: 7px;
}

.project-kpi .metric-icon {
  border-radius: 999px;
}

.project-kpi .metric-icon::before {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  font-weight: 900;
}

.project-kpi.github .metric-icon {
  background: #f2f4f8;
  color: #101828;
}

.project-kpi.github .metric-icon::before {
  content: "GH";
}

.project-kpi.work .metric-icon {
  background: #eaf2ff;
  color: #0d66ff;
}

.project-kpi.work .metric-icon::before {
  content: "W";
}

.project-kpi.milestones .metric-icon {
  background: #f3ecff;
  color: #7c4dff;
}

.project-kpi.milestones .metric-icon::before {
  content: "M";
}

.project-kpi.attention .metric-icon {
  background: #fff4df;
  color: #d97900;
}

.project-kpi.attention .metric-icon::before {
  content: "!";
}

.project-kpi em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #18a957;
  transform: translateY(-50%);
}

.project-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.project-summary-panel,
.project-repo-panel {
  min-width: 0;
}

.project-detail-row {
  grid-template-columns: minmax(138px, .45fr) minmax(0, 1fr);
  padding: 9px 0;
}

.project-detail-row strong {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.project-repo-panel .repo-summary {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border: 0;
  padding: 8px 0 14px;
  background: transparent;
}

.project-repo-panel .repo-mark {
  width: 46px;
  height: 46px;
  border-radius: 999px;
}

.sha-copy-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.sha-copy-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-sha-button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbff;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.project-timeline-strip-panel {
  margin-bottom: 14px;
}

.project-timeline-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.project-timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.project-timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(100% + 2px);
  width: 10px;
  height: 2px;
  background: #b9c7d9;
}

.timeline-step-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #b9c7d9;
  border-radius: 999px;
  background: #fff;
  color: #52637d;
  font-weight: 900;
}

.project-timeline-step.success .timeline-step-mark {
  border-color: #18a957;
  color: #18a957;
}

.project-timeline-step.warning .timeline-step-mark {
  border-color: #d97900;
  color: #d97900;
}

.project-timeline-step.info .timeline-step-mark {
  border-color: #0d66ff;
  color: #0d66ff;
}

.project-timeline-step strong,
.project-timeline-step small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-timeline-step small {
  color: var(--muted);
  font-size: 12px;
}

.project-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.project-side-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.readiness-progress {
  display: grid;
  gap: 6px;
  min-width: 190px;
  color: #52637d;
  font-size: 12px;
  font-weight: 900;
}

.readiness-progress span {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf3;
}

.readiness-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #19a95b;
}

.readiness-list,
.compact-summary-list {
  display: grid;
}

.readiness-item,
.compact-summary-item,
.project-quick-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.readiness-item:first-child,
.compact-summary-item:first-child {
  border-top: 0;
}

.readiness-icon,
.summary-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #eaf2ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.summary-icon.success {
  background: #eaf8ef;
  color: #16894a;
}

.summary-icon.warning {
  background: #fff4df;
  color: #d97900;
}

.summary-icon.info {
  background: #eaf2ff;
  color: #0d66ff;
}

.readiness-item strong,
.readiness-item small,
.compact-summary-item strong,
.compact-summary-item small,
.project-quick-link strong,
.project-quick-link small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.readiness-item small,
.compact-summary-item small,
.project-quick-link small {
  color: var(--muted);
  font-size: 12px;
}

.readiness-item b,
.compact-summary-item b,
.project-quick-link b {
  color: #52637d;
}

.project-panel-link {
  display: inline-flex;
  margin-top: 12px;
}

.compact-project-panel {
  min-width: 0;
}

.activity-summary-list .compact-summary-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.activity-summary-list time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.project-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.project-quick-link {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(24, 39, 75, .04);
}

@media (max-width: 1180px) {
  .project-overview-hero,
  .project-overview-grid,
  .project-lower-grid {
    grid-template-columns: 1fr;
  }

  .project-overview-hero .actions {
    justify-content: flex-start;
  }

  .project-kpi-grid,
  .project-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-timeline-step::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .shell,
  .main,
  .topbar,
  .content {
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
  }

  .content {
    width: 100%;
    padding-inline: 12px;
  }

  .project-overview-hero {
    align-items: start;
  }

  .project-avatar-large {
    width: 48px;
    height: 48px;
    font-size: 23px;
  }

  .project-hero-copy h1 {
    font-size: 24px;
  }

  .project-kpi-grid,
  .project-quick-links,
  .project-timeline-strip {
    grid-template-columns: 1fr;
  }

  .project-repo-panel .repo-summary,
  .readiness-item,
  .compact-summary-item,
  .project-quick-link {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .project-overview-tabs {
    gap: 18px;
    max-width: 100%;
  }

  .project-timeline-step {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .project-timeline-step .badge {
    grid-column: 2;
    justify-self: start;
  }

  .project-repo-panel .repo-summary .badge,
  .readiness-item .badge,
  .compact-summary-item .badge,
  .readiness-item b,
  .compact-summary-item b,
  .project-quick-link b,
  .activity-summary-list time {
    grid-column: 2;
    justify-self: start;
  }

  .readiness-progress {
    width: 100%;
  }

  .sha-copy-line {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Story: #0 | Date: 2026-08-23 | Agent: George | Change: Style the mockup-aligned Release Manager promotion path and Timeline Gantt workspace revamps. */
.release-manager-head,
.timeline-page-head {
  align-items: center;
}

.release-manager-head h1,
.timeline-page-head h1 {
  display: flex;
  gap: 10px;
  align-items: center;
}

.release-manager-metrics,
.timeline-summary-bar {
  margin-bottom: 14px;
}

.release-gate-dot {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  transform: translateY(-50%);
}

.release-gate-dot.success {
  color: #18a957;
}

.release-gate-dot.warning {
  color: #d97900;
}

.release-ref-strip {
  display: grid;
  grid-template-columns: minmax(170px, .9fr) auto minmax(170px, .9fr) minmax(220px, 1.1fr) minmax(210px, .9fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.release-ref-item {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.release-ref-item small,
.release-flow-meta small,
.release-selected-env small,
.release-change-summary small,
.timeline-summary-item small,
.timeline-drawer-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.release-selected-env small,
.release-selected-env strong,
.release-selected-env em,
.timeline-summary-item small,
.timeline-summary-item strong {
  display: block;
}

.release-ref-item strong,
.release-flow-meta code,
.release-selected-env strong,
.release-change-summary strong,
.timeline-summary-item strong,
.timeline-drawer-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.release-ref-arrow,
.release-flow-arrow {
  color: #8391a8;
  font-size: 24px;
  font-weight: 900;
}

.release-ref-sha .sha-copy-line {
  justify-content: flex-start;
}

.release-manager-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.release-flow-card {
  --release-env-accent: var(--primary);
  --release-env-surface: #f2f7ff;
  --release-env-ring: rgba(11, 99, 206, .14);
  --release-env-action: var(--primary);
  --release-env-text: #0757b8;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--release-env-accent);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(24, 39, 75, .05);
}

.release-flow-card.dev,
.release-flow-card.uat,
.deployment-control-panel.release-env-dev,
.deployment-control-panel.release-env-uat {
  --release-env-accent: #19a95b;
  --release-env-surface: #f1fbf5;
  --release-env-ring: rgba(25, 169, 91, .16);
  --release-env-action: #087f45;
  --release-env-text: #076f3d;
}

.release-flow-card.staging,
.deployment-control-panel.release-env-staging {
  --release-env-accent: #d97900;
  --release-env-surface: #fff8ed;
  --release-env-ring: rgba(217, 121, 0, .16);
  --release-env-action: #b76100;
  --release-env-text: #9c5600;
}

.release-flow-card.prod,
.deployment-control-panel.release-env-prod {
  --release-env-accent: #f2a400;
  --release-env-surface: #fff9e8;
  --release-env-ring: rgba(242, 164, 0, .18);
  --release-env-action: #a86500;
  --release-env-text: #8b5600;
}

.release-flow-card.is-selected {
  border-color: var(--release-env-accent);
  border-left-color: var(--release-env-accent);
  background: var(--release-env-surface);
  box-shadow: 0 0 0 3px var(--release-env-ring), 0 8px 18px rgba(24, 39, 75, .12);
}

.release-flow-hitbox {
  display: block;
  min-height: 100%;
  margin: -14px;
  padding: 14px;
  border-radius: 7px;
  color: inherit;
  cursor: pointer;
}

.release-flow-hitbox:focus-visible {
  outline: 3px solid var(--release-env-accent);
  outline-offset: 3px;
}

.release-flow-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.release-flow-card.is-selected .release-flow-head {
  border-bottom-color: color-mix(in srgb, var(--release-env-accent) 35%, var(--line));
}

.release-flow-selected-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--release-env-accent) 35%, #ffffff);
  border-radius: 999px;
  background: #ffffff;
  color: var(--release-env-text);
  font-size: 11px;
  font-weight: 900;
}

.release-flow-head strong,
.release-flow-head small,
.release-selected-env em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-flow-head small,
.release-selected-env em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.release-flow-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.release-flow-meta > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.release-flow-health {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  color: #334463;
  font-size: 12px;
  font-weight: 800;
}

.release-flow-health span {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.release-flow-health .progress-track {
  flex: 1 1 64px;
  max-width: 84px;
  height: 7px;
}

.release-flow-meta code,
.release-flow-card .sha-copy-line code {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-flow-card .sha-copy-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.release-command-grid,
.release-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .85fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.deployment-control-panel,
.release-admission-panel,
.compact-run-panel,
.release-safety-panel {
  min-width: 0;
}

.deployment-control-panel {
  --release-env-accent: var(--primary);
  --release-env-surface: #f2f7ff;
  --release-env-ring: rgba(11, 99, 206, .14);
  --release-env-action: var(--primary);
  --release-env-text: #0757b8;
}

.deployment-control-panel[class*="release-env-"] {
  border-color: var(--release-env-accent);
  border-left: 4px solid var(--release-env-accent);
  background: linear-gradient(180deg, var(--release-env-surface), #ffffff 72%);
  box-shadow: 0 0 0 3px var(--release-env-ring), 0 8px 18px rgba(24, 39, 75, .1);
}

.deployment-control-panel .release-control-badge {
  border-color: color-mix(in srgb, var(--release-env-accent) 35%, #ffffff);
  background: #ffffff;
  color: var(--release-env-text);
}

.deployment-control-panel .deployment-target-field .select,
.deployment-control-panel .release-change-summary {
  border-color: color-mix(in srgb, var(--release-env-accent) 32%, var(--line));
}

.deployment-control-panel .btn.primary {
  border-color: var(--release-env-action);
  background: var(--release-env-action);
}

.deployment-control-panel .btn.primary:hover {
  background: color-mix(in srgb, var(--release-env-action) 88%, #000000);
}

.deployment-control-grid {
  display: grid;
  grid-template-columns: minmax(200px, .7fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: end;
}

.release-selected-env {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.deployment-target-field {
  margin: 0;
}

.release-change-summary {
  grid-column: 1 / -1;
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcff;
}

.release-change-summary strong {
  flex: 1 1 100%;
}

.release-change-summary span {
  color: #334463;
  font-size: 12px;
  font-weight: 800;
}

/* Story: #0 | Date: 2026-08-24 | Agent: George | Change: Style dynamic release compare metrics and detail rows for Deployment Control. */
.release-change-summary .release-change-metric,
.release-change-detail-metrics .release-change-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #334463;
  font-size: 12px;
  font-weight: 800;
}

.release-change-metric b {
  color: var(--text);
  font-size: 13px;
}

.release-change-summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.release-change-link {
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.release-change-details {
  display: grid;
  gap: 14px;
}

.release-change-detail-head,
.release-change-detail-metrics {
  display: grid;
  gap: 10px;
}

.release-change-detail-head {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.release-change-detail-head span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.release-change-detail-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.release-change-detail-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.release-change-detail-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.release-change-detail-metrics .release-change-metric {
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcff;
}

.release-change-message {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d6e5fb;
  border-radius: 6px;
  background: #f5f9ff;
  color: #263a63;
  font-weight: 700;
}

.release-change-message.unavailable {
  border-color: #f0cd8b;
  background: #fffaf0;
}

.release-change-section {
  display: grid;
  gap: 10px;
}

.release-change-list {
  display: grid;
  gap: 8px;
}

.release-change-row {
  display: grid;
  grid-template-columns: minmax(86px, .28fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.release-change-row > code,
.release-change-row > .text-link {
  justify-self: start;
}

.release-change-row span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.release-change-row strong,
.release-change-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.release-change-row small {
  color: var(--muted);
  font-size: 12px;
}

.release-action-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 2px;
}

.release-action-row .rollback-action {
  color: var(--danger);
  border-color: #efbaba;
  background: #fff6f6;
}

.release-admission-list .attention-item,
.release-safety-panel .attention-item {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 0;
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
}

.release-admission-list .attention-item:first-child,
.release-safety-panel .attention-item:first-child {
  border-top: 0;
}

.compact-run-table {
  min-width: 100%;
  table-layout: fixed;
}

.compact-run-table td,
.compact-run-table th {
  padding: 11px 14px;
  font-size: 12px;
}

.compact-run-table td {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-summary-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 1fr));
  gap: 0;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.timeline-summary-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 4px 18px;
  border-left: 1px solid var(--line);
}

.timeline-summary-item:first-child {
  border-left: 0;
}

.timeline-summary-item.progress .summary-icon {
  background: conic-gradient(var(--primary) 0 48%, #e4ebf4 48% 100%);
  color: #10264f;
}

.timeline-workspace-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.timeline-gantt-panel {
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.timeline-gantt-toolbar {
  align-items: center;
  margin-bottom: 0;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.timeline-nav-group {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  flex-wrap: wrap;
}

.timeline-date-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #10264f;
  font-weight: 800;
}

.timeline-gantt-workspace {
  grid-template-columns: minmax(440px, .95fr) minmax(0, 1.65fr);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.timeline-gantt-workspace.is-columns-collapsed {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
}

.timeline-chart-grid {
  grid-auto-rows: 46px;
}

.schedule-progress-cell {
  display: flex;
  gap: 8px;
  align-items: center;
}

.schedule-row-progress {
  flex: 1 1 42px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebf4;
}

.schedule-row-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.schedule-table-row.warning .schedule-row-progress span {
  background: #d97900;
}

.schedule-table-row.success .schedule-row-progress span {
  background: #19a95b;
}

.schedule-connector {
  z-index: 4;
  position: relative;
  align-self: stretch;
  justify-self: stretch;
  margin: 22px 0 22px 10px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  color: #3478f6;
  pointer-events: none;
}

.schedule-connector.warning {
  color: #d97900;
}

.schedule-connector.success {
  color: #18a957;
}

.schedule-connector.danger {
  color: var(--danger);
}

.schedule-connector::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.schedule-bar {
  gap: 6px;
}

.schedule-bar-value {
  position: relative;
  z-index: 1;
  margin-left: auto;
  padding-right: 6px;
  color: inherit;
  font-size: 11px;
  font-weight: 900;
}

.timeline-compact-legend {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}

.timeline-compact-legend .schedule-legend {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.timeline-compact-legend .schedule-legend span {
  font-size: 12px;
}

.timeline-dependency-count {
  flex: 0 0 auto;
  font-size: 12px;
}

.timeline-task-drawer {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
}

.timeline-drawer-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.timeline-drawer-head h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
}

.timeline-drawer-list {
  display: grid;
  gap: 12px;
}

.timeline-drawer-row {
  display: grid;
  gap: 5px;
}

.timeline-drawer-row strong {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #10264f;
  line-height: 1.35;
}

.timeline-progress-detail {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.full-width {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1280px) {
  .release-manager-flow {
    grid-template-columns: 1fr;
  }

  .release-flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .timeline-workspace-shell,
  .release-command-grid,
  .release-lower-grid {
    grid-template-columns: 1fr;
  }

  .timeline-task-drawer {
    grid-template-rows: auto;
  }
}

@media (max-width: 980px) {
  .release-ref-strip,
  .deployment-control-grid,
  .timeline-summary-bar {
    grid-template-columns: 1fr;
  }

  .release-ref-arrow {
    justify-self: start;
  }

  .timeline-summary-item {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 10px 0;
  }

  .timeline-summary-item:first-child {
    border-top: 0;
  }

  .timeline-gantt-workspace,
  .timeline-gantt-workspace.is-columns-collapsed {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .release-manager-head h1,
  .timeline-page-head h1,
  .release-action-row,
  .timeline-compact-legend {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-manager-head h1,
  .timeline-page-head h1 {
    display: grid;
  }

  .release-flow-meta,
  .release-flow-health {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .release-flow-health span,
  .release-action-row .btn,
  .timeline-nav-group .btn,
  .timeline-date-pill,
  .timeline-task-drawer .btn {
    width: 100%;
  }

  .timeline-gantt-toolbar,
  .timeline-nav-group,
  .schedule-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .release-change-detail-head,
  .release-change-detail-metrics,
  .release-change-row {
    grid-template-columns: 1fr;
  }

}

/* Story: #0 | Date: 2026-08-23 | Agent: George | Change: Simplify Project and downstream pages into spacious, customer-readable work surfaces. */
.project-index-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.project-index-summary > div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(24, 39, 75, .04);
}

.project-index-summary small,
.release-focus-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-index-summary strong {
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.project-index-panel .table-head {
  padding: 18px;
}

.project-card-list {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.project-index-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcff;
}

.project-index-card.is-archived {
  color: var(--muted);
  background: #f8fafc;
}

.project-index-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.project-avatar-large.small {
  width: 42px;
  height: 42px;
  font-size: 20px;
  box-shadow: none;
}

.project-index-title {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.project-index-title:hover,
.project-index-title:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.project-index-card-main small,
.project-index-meta small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.project-index-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.action-menu {
  position: relative;
}

.action-menu summary {
  width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbff;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.action-menu summary::-webkit-details-marker {
  display: none;
}

.action-menu[open] > div {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 8;
  min-width: 140px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.action-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.action-menu button:hover,
.action-menu button:focus-visible {
  background: #eef6ff;
  outline: none;
}

.archived-projects-details,
.project-more-context,
.board-status-details,
.release-evidence-details,
.release-flow-details,
.release-history-details,
.timeline-task-details {
  margin-bottom: 16px;
}

.archived-projects-details > summary,
.project-more-context > summary,
.board-status-details > summary,
.release-evidence-details > summary,
.release-flow-details > summary,
.release-history-details > summary,
.timeline-task-details > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.archived-projects-details > summary::-webkit-details-marker,
.project-more-context > summary::-webkit-details-marker,
.board-status-details > summary::-webkit-details-marker,
.release-evidence-details > summary::-webkit-details-marker,
.release-flow-details > summary::-webkit-details-marker,
.release-history-details > summary::-webkit-details-marker,
.timeline-task-details > summary::-webkit-details-marker {
  display: none;
}

.archived-projects-details[open],
.project-more-context[open],
.board-status-details[open],
.release-evidence-details[open],
.release-flow-details[open],
.release-history-details[open],
.timeline-task-details[open] {
  display: grid;
  gap: 12px;
}

.archived-project-list {
  padding: 0;
}

.project-overview-tabs {
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.project-overview-tabs a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.project-overview-tabs a.is-active {
  border-color: #bdd0eb;
  background: #edf5ff;
}

.project-simple-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.project-plain-summary,
.project-next-panel {
  min-width: 0;
}

.project-status-stack {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.project-next-panel .project-quick-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-next-panel .project-quick-link {
  min-height: 86px;
  padding: 14px;
}

.project-timeline-summary {
  margin-bottom: 16px;
}

.project-timeline-list {
  grid-template-columns: 1fr;
  gap: 0;
}

.project-timeline-list .project-timeline-step {
  min-height: 62px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.project-timeline-list .project-timeline-step:first-child {
  border-top: 0;
}

.project-timeline-list .project-timeline-step::after {
  display: none;
}

.board-querybar-simple {
  grid-template-columns: auto minmax(280px, 1fr) auto auto;
}

.board-status-details .board-metrics,
.release-history-details .release-lower-grid {
  margin-bottom: 0;
}

.timeline-summary-bar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.timeline-task-details .timeline-task-drawer {
  margin-top: 0;
}

.release-focus-card {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.2fr) minmax(160px, .7fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.release-focus-card > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.release-focus-card strong {
  overflow-wrap: anywhere;
}

.release-evidence-details .release-ref-strip,
.release-flow-details .release-manager-flow,
.release-history-details .release-lower-grid {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .project-index-summary,
  .project-index-card,
  .project-simple-layout,
  .release-focus-card,
  .timeline-summary-bar {
    grid-template-columns: 1fr;
  }

  .project-index-meta {
    justify-content: flex-start;
  }

  .project-next-panel .project-quick-links,
  .board-querybar-simple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .project-card-list,
  .project-index-panel .table-head {
    padding-inline: 12px;
  }

  .project-index-card {
    align-items: stretch;
  }

  .project-index-card .row-actions {
    justify-content: flex-start;
  }

  .project-next-panel .project-quick-links {
    grid-template-columns: 1fr;
  }
}
