/* Story: #1 | Date: 2026-08-06 | Agent: George | Change: Established reusable DevsOff.ai theme tokens and global components. */
:root {
  color-scheme: light;
  --color-bg: #f7f8fc;
  --color-bg-strong: #eff3fb;
  --color-surface: #ffffff;
  --color-surface-soft: rgba(255, 255, 255, 0.78);
  --color-text: #0b111d;
  --color-heading: #05070b;
  --color-muted: #263a63;
  --color-soft: #66718a;
  --color-border: #cfd6e5;
  --color-border-strong: #b9c4d8;
  --color-primary: #1264f5;
  --color-primary-dark: #0750ce;
  --color-primary-soft: #e8f0ff;
  --color-success: #13a468;
  --color-success-bg: #dff7e9;
  --color-danger: #c5372b;
  --color-danger-bg: #fff1ef;
  --color-info-bg: #eef4ff;
  --shadow-soft: 0 16px 42px rgb(16 28 48 / 14%);
  --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-control: 8px;
  --radius-device: 20px;
  --content-max: 1760px;
  --header-block: 96px;
  --page-gutter: clamp(20px, 3vw, 52px);
  --focus-ring: 0 0 0 3px #ffffff, 0 0 0 6px var(--color-primary);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.95), transparent 30%),
    radial-gradient(circle at 72% 42%, rgba(223, 232, 250, 0.95), transparent 34%),
    var(--color-bg);
  color: var(--color-text);
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

button,
a,
input,
textarea {
  min-height: 44px;
}

:where(a, button, input, textarea):focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.page-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Story: #1 | Date: 2026-08-06 | Agent: George | Change: Added reusable header, brand, button, and footer components. */
.site-header {
  width: min(100%, var(--content-max));
  min-height: var(--header-block);
  margin-inline: auto;
  padding: 26px var(--page-gutter) 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
}

/* Story: #13 | Date: 2026-08-06 | Agent: George | Change: Use the exact DevsOff.com logo file with responsive theme sizing. */
.brand-logo {
  display: block;
  width: clamp(230px, 18vw, 270px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  color: #172c5c;
  font-size: 1rem;
  font-weight: 560;
  padding-top: 16px;
}

.site-nav a {
  border-radius: var(--radius-control);
  padding: 4px 2px;
}

.support-chat-mobile-trigger {
  display: none;
}

.button {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  padding: 0 20px;
  color: var(--color-primary);
  background: transparent;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  min-height: 52px;
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 12px 22px rgba(18, 100, 245, 0.22);
}

.button--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.button--outline,
.button--quiet,
.button--pill {
  border-color: #8cb4ff;
  background: rgba(255, 255, 255, 0.42);
}

.button--quiet {
  color: var(--color-text);
  border-color: var(--color-border);
}

.button--wide {
  width: 100%;
}

.button--pill {
  min-height: 48px;
  border-radius: 999px;
  padding-inline: 22px;
}

/* Story: #1 | Date: 2026-08-06 | Agent: George | Change: Added desktop homepage layout matching the supplied unauthenticated mockup. */
.home-main {
  width: min(100%, var(--content-max));
  height: calc(100svh - var(--header-block) - 58px);
  margin-inline: auto;
  padding: 0 var(--page-gutter);
  display: grid;
  grid-template-columns:
    clamp(350px, 28vw, 470px)
    minmax(360px, 1fr)
    clamp(420px, 30vw, 540px);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "copy product login"
    "caps product login";
  align-items: center;
  column-gap: clamp(28px, 2.2vw, 38px);
  row-gap: 0;
}

.home-main > * {
  min-width: 0;
}

.hero-copy {
  grid-area: copy;
  position: relative;
  z-index: 3;
  align-self: start;
  width: min(100%, 470px);
  max-width: 470px;
  padding-top: clamp(42px, 5vh, 54px);
}

.hero-copy h1 {
  margin: 0;
  color: var(--color-heading);
  font-size: clamp(2.85rem, 3.12vw, 3.55rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
  color: var(--color-primary);
}

.mobile-break {
  display: none;
}

.hero-copy p {
  margin: 54px 0 0;
  color: #1d315e;
  font-size: clamp(1rem, 1.04vw, 1.12rem);
  line-height: 1.72;
  max-width: 370px;
}

/* Story: #10 | Date: 2026-08-06 | Agent: George | Change: Tightened the capability row so the device cluster has a clear, unobstructed desktop edge. */
.capability-strip {
  grid-area: caps;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, 84px);
  gap: 42px;
  max-width: 336px;
  margin-left: -12px;
  padding: 0 0 52px;
}

/* Story: #17 | Date: 2026-08-07 | Agent: George | Change: Keep capability tiles visually informational instead of click-target-like. */
.capability {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 14px;
  text-align: center;
  cursor: default;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 730;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.capability,
.capability * {
  cursor: default;
}

/* Story: #15 | Date: 2026-08-06 | Agent: George | Change: Fit the longer Infrastructure and Security label inside the fixed capability column. */
.capability--infrastructure {
  font-size: 0.76rem;
  line-height: 1.25;
}

.capability:hover {
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.capability__icon {
  width: 64px;
  height: 64px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e1edff;
  border: 1px solid rgba(18, 100, 245, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 10px 22px rgba(18, 100, 245, 0.08);
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.capability:hover .capability__icon {
  background: #eef5ff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.76),
    0 14px 26px rgba(18, 100, 245, 0.13);
}

.capability__svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Story: #10 | Date: 2026-08-06 | Agent: George | Change: Preserved the dashboard-led stage while redistributing its supporting devices around the open lower area. */
.product-showcase {
  grid-area: product;
  position: relative;
  z-index: 2;
  min-height: 0;
  height: 100%;
  margin-left: -130px;
  margin-right: -24px;
  align-self: stretch;
}

/* Story: #10 | Date: 2026-08-06 | Agent: George | Change: Attached the compact system-status card to the dashboard's upper-right edge. */
.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);
}

.status-pill__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-success);
  position: relative;
}

.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);
}

.status-pill strong,
.status-pill small {
  display: block;
}

.status-pill strong {
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.1;
}

.status-pill small {
  color: var(--color-muted);
  margin-top: 4px;
}

.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);
}

.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);
}

.sidebar-logo {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--color-primary);
  font-size: 1.45rem;
  font-weight: 950;
}

/* Story: #4 | Date: 2026-08-06 | Agent: George | Change: Added polished dashboard navigation glyph styling. */
.sidebar-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
}

.sidebar-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-icon:first-of-type {
  color: #ffffff;
  background: rgba(18, 100, 245, 0.16);
}

.dashboard-content {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  padding: 22px 22px 20px;
  color: #ffffff;
}

/* Story: #5 | Date: 2026-08-06 | Agent: George | Change: Added realistic tablet app chrome, business KPIs, and chart scaffolding. */
.dashboard-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
}

.dashboard-appbar span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-appbar small,
.chart-panel__top span small {
  color: #8ca2c6;
  font-size: 0.64rem;
  font-weight: 720;
  line-height: 1;
}

.dashboard-appbar strong {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.05;
}

.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;
}

.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);
}

/* Story: #7 | Date: 2026-08-06 | Agent: George | Change: Added a clipped equal-width tablet tab indicator without changing dashboard geometry. */
.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);
}

.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;
}

.dashboard-tabs .is-active {
  color: #ffffff;
  background: rgba(18, 100, 245, 0.24);
}

/* Story: #8 | Date: 2026-08-06 | Agent: George | Change: Stack equal-size tablet views so contextual content can crossfade without moving dashboard geometry. */
.dashboard-views {
  display: grid;
  min-width: 0;
}

.dashboard-view {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
}

.dashboard-view.is-current {
  opacity: 1;
}

[data-dashboard-view="live"] {
  --dashboard-chart-fill: url("#throughput-fill-live");
}

[data-dashboard-view="deploys"] {
  --dashboard-chart-fill: url("#throughput-fill-deploys");
}

[data-dashboard-view="agents"] {
  --dashboard-chart-fill: url("#throughput-fill-agents");
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Story: #8 | Date: 2026-08-06 | Agent: George | Change: Lock metric-card height so contextual view changes cannot shift the chart. */
.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);
}

.metric-card small,
.metric-card span {
  display: block;
}

.metric-card small {
  color: #dce7f8;
  font-size: 0.69rem;
}

.metric-card strong {
  display: block;
  margin-top: 11px;
  font-size: 1.34rem;
}

.metric-card span {
  margin-top: 4px;
  color: #19d179;
  font-size: 0.7rem;
  font-weight: 780;
}

.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);
}

.chart-panel__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  color: #ffffff;
}

.chart-panel__top span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.chart-panel__top strong {
  font-size: 0.76rem;
  font-weight: 820;
  line-height: 1.05;
}

.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;
}

.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;
}

.chart-axis {
  color: #8498b6;
  font-size: 0.54rem;
  font-weight: 720;
  line-height: 1;
}

.chart-axis--y {
  display: grid;
  align-content: space-between;
  text-align: right;
}

.chart-axis--x {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
}

.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);
}

.chart-fill {
  fill: var(--dashboard-chart-fill);
  stroke: none;
}

.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));
}

.chart-line circle {
  fill: var(--color-primary);
  stroke: #0b1624;
  stroke-width: 2;
}

.dashboard-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.dashboard-insights span {
  min-width: 0;
  border-radius: var(--radius-xs);
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.045);
}

.dashboard-insights b,
.dashboard-insights small {
  display: block;
}

.dashboard-insights b {
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
}

.dashboard-insights small {
  margin-top: 3px;
  color: #8ca2c6;
  font-size: 0.52rem;
  font-weight: 720;
  line-height: 1.05;
}

/* Story: #15 | Date: 2026-08-06 | Agent: George | Change: Shift the stationary desktop phone 15px right while preserving its screen and animation. */
.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);
}

.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;
}

.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;
}

.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);
}

.phone-button--volume {
  left: -4px;
  top: 86px;
  width: 4px;
  height: 42px;
}

.phone-button--power {
  right: -4px;
  top: 134px;
  width: 4px;
  height: 54px;
}

.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);
}

.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;
}

.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;
}

.phone-status,
.phone-top {
  position: relative;
  z-index: 5;
}

.phone-status {
  min-height: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d9e6fb;
  font-size: 0.5rem;
  font-weight: 800;
}

.phone-status__icons {
  display: flex;
  align-items: center;
  gap: 3px;
  width: auto;
  height: 10px;
  opacity: 0.9;
}

.phone-status__icons i {
  display: block;
  position: relative;
  flex: 0 0 auto;
}

.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%);
}

.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);
}

.phone-battery {
  width: 14px;
  height: 7px;
  border: 1.4px solid #d9e6fb;
  border-radius: 2px;
}

.phone-battery::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.2px;
  width: 7px;
  height: 2.8px;
  border-radius: 1px;
  background: #d9e6fb;
}

.phone-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 3px;
  border-radius: 0 2px 2px 0;
  background: #d9e6fb;
}

.phone-top {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.phone-top > span:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.phone-top strong {
  font-size: 0.65rem;
  font-weight: 850;
  line-height: 1.05;
}

.phone-top small {
  color: #93a7c7;
  font-size: 0.46rem;
  font-weight: 720;
  line-height: 1;
}

.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;
}

.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;
}

.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;
}

.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);
}

.phone-summary small,
.phone-summary strong,
.phone-summary b {
  display: block;
}

.phone-summary small {
  color: #93a7c7;
  font-size: 0.43rem;
  font-weight: 720;
}

.phone-summary strong {
  color: #ffffff;
  font-size: 0.84rem;
  line-height: 1;
}

.phone-summary b {
  color: #19d179;
  font-size: 0.47rem;
  line-height: 1;
}

.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);
}

.phone-segmented span {
  border-radius: 999px;
  padding: 4px 2px;
  color: #98a8c3;
  font-size: 0.42rem;
  font-weight: 770;
  line-height: 1;
  text-align: center;
}

.phone-segmented .is-active {
  color: #ffffff;
  background: rgba(18, 100, 245, 0.72);
}

.phone-metrics {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.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;
}

.phone-metrics small {
  display: block;
  margin-top: 1px;
  font-size: 0.4rem;
  color: #cfddf5;
}

.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;
}

.phone-activity > strong {
  color: #f5f8ff;
  font-size: 0.56rem;
  font-weight: 820;
}

/* Story: #6 | Date: 2026-08-06 | Agent: George | Change: Locked phone feed geometry and clipped row rotation to the app screen. */
.phone-activity-window {
  height: calc((var(--phone-activity-row-height) * 3) + (var(--phone-activity-gap) * 2));
  overflow: hidden;
  border-radius: var(--radius-xs);
}

.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;
}

.phone-activity-feed.is-advancing {
  transform: translate3d(0, calc(var(--phone-feed-shift) * -1), 0);
}

.phone-activity-feed.is-resetting {
  transition: none;
}

.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);
}

.phone-activity i {
  grid-row: 1 / 3;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-success);
  position: relative;
}

.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);
}

.phone-activity i.is-muted {
  background: #7b8798;
}

.phone-activity i.is-warning {
  background: #f1a71a;
}

.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;
}

.phone-activity b,
.phone-activity small,
.phone-activity em {
  min-width: 0;
}

.phone-activity b {
  color: #ffffff;
  font-size: 0.5rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-activity small {
  grid-column: 2;
  color: #c8d5e8;
  font-size: 0.43rem;
  line-height: 1.05;
}

.phone-activity em {
  grid-column: 3;
  grid-row: 1 / 3;
  color: #c8d5e8;
  font-size: 0.43rem;
  font-style: normal;
}

.phone-tabs {
  position: absolute;
  z-index: 5;
  left: 14px;
  right: 14px;
  bottom: 9px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.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;
}

.phone-tabs i {
  width: 16px;
  height: 13px;
  display: block;
  position: relative;
  color: currentColor;
}

.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;
}

.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);
}

.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;
}

.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;
}

.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;
}

.phone-tabs .is-active {
  color: #62a0ff;
}

.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;
}

.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;
}

.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;
}

.portal-window span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.portal-window span:nth-child(2) {
  background: #ffbd2e;
}

.portal-window span:nth-child(3) {
  background: #28c840;
}

.portal-window strong {
  margin-left: 14px;
}

.portal-body {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 240px;
}

.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;
}

.portal-body nav span {
  border-radius: var(--radius-xs);
  padding: 8px 10px;
}

.portal-body nav .is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.portal-body > div {
  padding: 20px 20px 18px;
}

/* Story: #5 | Date: 2026-08-06 | Agent: George | Change: Added realistic web portal statistics, table columns, and status badges. */
.portal-body > .portal-content {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 15px 16px 14px;
}

.portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-head span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.portal-head small {
  color: #6a7893;
  font-size: 0.62rem;
  font-weight: 720;
  line-height: 1;
}

.portal-head strong {
  color: #0d111a;
  font-size: 0.98rem;
  line-height: 1.05;
}

.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);
}

.portal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.portal-stats span {
  min-width: 0;
  border: 1px solid #e2e7f1;
  border-radius: var(--radius-xs);
  padding: 8px 9px;
  background: #f8faff;
}

.portal-stats small,
.portal-stats strong {
  display: block;
}

.portal-stats small {
  color: #65738d;
  font-size: 0.56rem;
  font-weight: 760;
  line-height: 1;
}

.portal-stats strong {
  margin-top: 4px;
  color: #0d111a;
  font-size: 0.86rem;
  line-height: 1;
}

.portal-table {
  display: grid;
  border-top: 1px solid var(--color-border);
}

.portal-table__head,
.portal-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1.3fr) minmax(44px, 0.58fr) auto;
  align-items: center;
  gap: 8px;
}

.portal-table__head {
  min-height: 22px;
  color: #6a7893;
  font-size: 0.56rem;
  font-weight: 820;
  text-transform: uppercase;
}

.portal-table__head span:first-child {
  grid-column: 2;
}

.portal-row {
  position: relative;
  min-height: 38px;
  overflow: hidden;
  border-top: 1px solid #e2e7f1;
  color: #15213b;
}

.portal-row > strong {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: #14203a;
  font-size: 0.72rem;
  line-height: 1.05;
}

.portal-row strong small,
.portal-row > small {
  min-width: 0;
  color: #5c6a83;
  font-size: 0.54rem;
  font-weight: 680;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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;
}

.status-badge.is-healthy {
  color: #15824f;
  background: var(--color-success-bg);
}

.status-badge.is-deploying {
  color: #0750ce;
  background: #e8f0ff;
}

.status-badge.is-warning {
  color: #946200;
  background: #fff1c4;
}

/* Story: #6 | Date: 2026-08-06 | Agent: George | Change: Added an absolute portal receipt that animates without changing table dimensions. */
.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;
}

.portal-toast > i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-success);
  position: relative;
}

.portal-toast > i::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.portal-toast > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.portal-toast strong,
.portal-toast small {
  display: block;
  line-height: 1;
}

.portal-toast strong {
  font-size: 0.62rem;
  font-weight: 830;
}

.portal-toast small {
  color: #65738d;
  font-size: 0.52rem;
  font-weight: 680;
}

.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);
}

.system-icon::before,
.system-icon::after {
  content: "";
  position: absolute;
  border-color: #ffffff;
}

.system-icon--crm::before {
  width: 11px;
  height: 8px;
  border: 2px solid #ffffff;
  border-radius: 3px;
}

.system-icon--crm::after {
  width: 6px;
  height: 6px;
  right: 5px;
  bottom: 5px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--color-primary);
}

.system-icon--erp::before {
  inset: 7px;
  border: 2px solid #ffffff;
  border-radius: 3px;
}

.system-icon--erp::after {
  left: 7px;
  right: 7px;
  top: 12px;
  border-top: 2px solid #ffffff;
}

.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;
}

.system-icon--analytics::after {
  left: 6px;
  right: 6px;
  bottom: 5px;
  border-bottom: 2px solid #ffffff;
}

.system-icon--helpdesk::before {
  width: 13px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 7px;
  border-bottom-color: transparent;
}

.system-icon--helpdesk::after {
  left: 8px;
  right: 8px;
  bottom: 7px;
  border-bottom: 2px solid #ffffff;
}

/* Story: #10 | Date: 2026-08-06 | Agent: George | Change: Moved the stationary wearable to the lower-right perimeter as the phone's visual counterweight. */
.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);
}

.watch-device::before,
.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;
}

.watch-device::before {
  top: -32px;
  border-radius: 15px 15px 4px 4px;
}

.watch-device::after {
  bottom: -32px;
  border-radius: 4px 4px 15px 15px;
}

.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);
}

.watch-button {
  position: absolute;
  right: -7px;
  top: 90px;
  width: 5px;
  height: 22px;
  border-radius: 0 5px 5px 0;
  background: #202936;
}

.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);
}

.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;
}

.watch-top,
.watch-rings,
.watch-face span {
  position: relative;
  z-index: 1;
}

.watch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.watch-face strong {
  color: #ffffff;
  font-size: 0.58rem;
  line-height: 1;
}

.watch-top small {
  color: #62a0ff;
  font-size: 0.46rem;
  font-weight: 780;
  line-height: 1;
}

.watch-rings {
  width: min(58px, 100%);
  height: min(58px, 100%);
  justify-self: center;
  overflow: visible;
}

.watch-rings .track,
.watch-rings .progress {
  fill: none;
  stroke-width: 5;
}

.watch-rings .track {
  stroke: #1b2a3c;
}

.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));
}

.watch-rings text {
  text-anchor: middle;
  fill: #ffffff;
  font-size: 8px;
  font-weight: 850;
}

.watch-rings text + text {
  fill: #8ca2c6;
  font-size: 5px;
  letter-spacing: 0;
}

.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;
}

.watch-face b {
  color: #62a0ff;
  font-weight: 850;
}

/* Story: #14 | Date: 2026-08-06 | Agent: George | Change: Move the portrait down 30px and tune independent side, top, and bottom fade depths. */
.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%;
}

/* Story: #6 | Date: 2026-08-06 | Agent: George | Change: Added asynchronous screen-only motion; outer devices and the profile portrait remain static anchors. */
@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;
  }
}

/* Story: #7 | Date: 2026-08-06 | Agent: George | Change: Cycle the tablet indicator and labels through Live Ops, Deploys, Agents, then back to Live Ops. */
@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;
  }
}

/* Story: #8 | Date: 2026-08-06 | Agent: George | Change: Synchronize contextual dashboard views to the existing Live Ops, Deploys, Agents tab clock. */
@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;
  }
}

.product-showcase.is-motion-enabled .dashboard-appbar {
  animation: device-screen-reveal 420ms ease-out 650ms 1 both paused;
}

.product-showcase.is-motion-enabled .dashboard-tabs {
  animation: device-screen-reveal 360ms ease-out 760ms 1 both paused;
}

.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;
}

.product-showcase.is-motion-enabled .dashboard-tabs span {
  background: transparent;
}

.product-showcase.is-motion-enabled [data-dashboard-tab="live"] {
  animation: dashboard-tab-live-label 8.4s ease-in-out 2.4s infinite both paused;
}

.product-showcase.is-motion-enabled [data-dashboard-tab="deploys"] {
  animation: dashboard-tab-deploys-label 8.4s ease-in-out 2.4s infinite both paused;
}

.product-showcase.is-motion-enabled [data-dashboard-tab="agents"] {
  animation: dashboard-tab-agents-label 8.4s ease-in-out 2.4s infinite both paused;
}

.product-showcase.is-motion-enabled [data-dashboard-view="live"] {
  animation: dashboard-view-live-cycle 8.4s linear 2.4s infinite both paused;
}

.product-showcase.is-motion-enabled [data-dashboard-view="deploys"] {
  animation: dashboard-view-deploys-cycle 8.4s linear 2.4s infinite both paused;
}

.product-showcase.is-motion-enabled [data-dashboard-view="agents"] {
  animation: dashboard-view-agents-cycle 8.4s linear 2.4s infinite both paused;
}

.product-showcase.is-motion-enabled .metric-card {
  animation: device-screen-reveal 400ms ease-out 850ms 1 both paused;
}

.product-showcase.is-motion-enabled .metric-card:nth-child(2) {
  animation-delay: 940ms;
}

.product-showcase.is-motion-enabled .metric-card:nth-child(3) {
  animation-delay: 1030ms;
}

.product-showcase.is-motion-enabled .chart-panel {
  animation: device-screen-reveal 480ms ease-out 1120ms 1 both paused;
}

.product-showcase.is-motion-enabled .chart-fill {
  animation: dashboard-chart-fill 700ms ease-out 1320ms 1 both paused;
}

.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;
}

.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;
}

.product-showcase.is-motion-enabled .chart-line circle:nth-of-type(2) {
  animation-delay: 1710ms;
}

.product-showcase.is-motion-enabled .chart-line circle:nth-of-type(3) {
  animation-delay: 1780ms;
}

.product-showcase.is-motion-enabled .chart-line circle:nth-of-type(4) {
  animation-delay: 1850ms;
}

.product-showcase.is-motion-enabled .chart-line circle:nth-of-type(5) {
  animation-delay: 1920ms;
}

.product-showcase.is-motion-enabled .chart-line circle:nth-of-type(6) {
  animation-delay: 1990ms;
}

.product-showcase.is-motion-enabled .chart-line circle:nth-of-type(7) {
  animation-delay: 2060ms;
}

.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;
}

.product-showcase.is-motion-enabled .chart-live-cursor {
  animation: dashboard-live-pulse 14.4s ease-in-out 2.4s infinite both paused;
}

.product-showcase.is-motion-enabled .phone-top {
  animation: device-screen-reveal 360ms ease-out 830ms 1 both paused;
}

.product-showcase.is-motion-enabled .phone-summary {
  animation: device-screen-reveal 360ms ease-out 950ms 1 both paused;
}

.product-showcase.is-motion-enabled .phone-segmented {
  animation: device-screen-reveal 320ms ease-out 1050ms 1 both paused;
}

.product-showcase.is-motion-enabled .phone-metrics {
  animation: device-screen-reveal 360ms ease-out 1140ms 1 both paused;
}

.product-showcase.is-motion-enabled .phone-activity > strong {
  animation: device-screen-reveal 300ms ease-out 1240ms 1 both paused;
}

.product-showcase.is-motion-enabled .phone-activity-feed > span {
  animation: device-screen-reveal 340ms ease-out 1340ms 1 both paused;
}

.product-showcase.is-motion-enabled .phone-activity-feed > span:nth-child(2) {
  animation-delay: 1420ms;
}

.product-showcase.is-motion-enabled .phone-activity-feed > span:nth-child(3) {
  animation-delay: 1500ms;
}

.product-showcase.is-motion-enabled .phone-activity-feed > span:nth-child(4) {
  animation-delay: 1580ms;
}

.product-showcase.is-motion-enabled .phone-activity-feed > span:nth-child(5) {
  animation-delay: 1660ms;
}

.product-showcase.is-motion-enabled .phone-alert b {
  animation: phone-badge-tick 10.8s ease-in-out 2.6s infinite both paused;
}

.product-showcase.is-motion-enabled .portal-head {
  animation: device-screen-reveal 360ms ease-out 1010ms 1 both paused;
}

.product-showcase.is-motion-enabled .portal-stats > span {
  animation: device-screen-reveal 340ms ease-out 1130ms 1 both paused;
}

.product-showcase.is-motion-enabled .portal-stats > span:nth-child(2) {
  animation-delay: 1200ms;
}

.product-showcase.is-motion-enabled .portal-stats > span:nth-child(3) {
  animation-delay: 1270ms;
}

.product-showcase.is-motion-enabled .portal-row {
  animation: device-screen-reveal 320ms ease-out 1380ms 1 both paused;
}

.product-showcase.is-motion-enabled .portal-row:nth-of-type(3) {
  animation-delay: 1450ms;
}

.product-showcase.is-motion-enabled .portal-row:nth-of-type(4) {
  animation-delay: 1520ms;
}

.product-showcase.is-motion-enabled .portal-row:nth-of-type(5) {
  animation-delay: 1590ms;
}

.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);
}

.status-badge.is-deploying {
  position: relative;
  overflow: hidden;
}

.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);
}

.product-showcase.is-motion-enabled .portal-row.is-updating::after {
  animation: portal-row-sweep 18.6s ease-in-out 3.1s infinite both paused;
}

.product-showcase.is-motion-enabled .status-badge.is-deploying::after {
  animation: portal-badge-shimmer 18.6s ease-in-out 3.4s infinite both paused;
}

.product-showcase.is-motion-enabled .portal-toast {
  animation: portal-toast-cycle 18.6s ease-in-out 4.2s infinite both paused;
}

.product-showcase.is-motion-enabled .watch-top {
  animation: device-screen-reveal 320ms ease-out 1190ms 1 both paused;
}

.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;
}

.product-showcase.is-motion-enabled .watch-face > span {
  animation: device-screen-reveal 300ms ease-out 1530ms 1 both paused;
}

.product-showcase.is-motion-enabled .watch-face > span:last-child {
  animation-delay: 1640ms;
}

.product-showcase.is-motion-enabled.is-motion-active *,
.product-showcase.is-motion-enabled.is-motion-active *::before,
.product-showcase.is-motion-enabled.is-motion-active *::after {
  animation-play-state: running !important;
}

/* Story: #1 | Date: 2026-08-06 | Agent: George | Change: Added reusable login, workspace, form, and secondary-action components. */
.login-panel {
  grid-area: login;
  position: relative;
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: clamp(20px, 2.65vh, 28px);
  padding-top: clamp(112px, 13vh, 124px);
  padding-left: clamp(28px, 4vw, 64px);
}

.login-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

.login-panel h2 {
  margin: 0;
  color: var(--color-heading);
  font-size: clamp(2rem, 2.1vw, 2.42rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.login-mode {
  margin: 0;
  padding: 6px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: rgba(255, 255, 255, 0.6);
}

.login-mode__legend {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.login-mode__option {
  position: relative;
  min-height: 44px;
  display: grid;
  cursor: pointer;
}

.login-mode__option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.login-mode__option span {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--color-muted);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.1;
  text-align: center;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.login-mode__option input:checked + span {
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  box-shadow: inset 0 0 0 1px rgba(18, 100, 245, 0.12);
}

.login-mode__option input:focus-visible + span {
  box-shadow: var(--focus-ring);
}

.login-form [hidden] {
  display: none !important;
}

.login-panel[data-login-busy="true"] .login-mode__option span,
.login-panel[data-login-busy="true"] .workspace-row,
.login-panel[data-login-busy="true"] .workspace-remove {
  opacity: 0.86;
}

.workspace-list {
  display: grid;
  gap: clamp(18px, 2.35vh, 23px);
}

.workspace-list[hidden] {
  display: none;
}

.workspace-list h3 {
  margin: 0;
  color: #1d315e;
  font-size: 1.08rem;
  font-weight: 520;
}

.workspace-list__items {
  display: grid;
  gap: 12px;
}

.workspace-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
}

.workspace-row {
  width: 100%;
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: 64px 1fr 22px;
  align-items: center;
  gap: 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 8px 8px 0;
  color: var(--color-heading);
  background: transparent;
  text-align: left;
  font-size: 1.13rem;
  font-weight: 560;
}

.workspace-row:hover {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.46);
}

.workspace-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 2.1rem;
  font-weight: 860;
  box-shadow: 0 12px 24px rgba(13, 22, 38, 0.12);
}

.workspace-avatar--dark {
  background: #101827;
}

.workspace-avatar--blue {
  color: var(--color-primary);
  background: #ffffff;
}

.chevron {
  width: 14px;
  height: 14px;
  border-top: 3px solid #0f1726;
  border-right: 3px solid #0f1726;
  transform: rotate(45deg);
}

.workspace-remove {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  align-self: center;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(15, 23, 38, 0.72);
  background: rgba(255, 255, 255, 0.54);
  font-size: 1.9rem;
  line-height: 1;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.workspace-remove:hover {
  color: var(--color-heading);
  border-color: rgba(207, 214, 229, 0.9);
  background: rgba(255, 255, 255, 0.9);
}

.workspace-remove:focus-visible {
  outline: none;
  border-color: rgba(18, 100, 245, 0.34);
  box-shadow: var(--focus-ring);
}

.workspace-item[hidden] {
  display: none;
}

.workspace-empty-state {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.login-panel__message {
  min-height: 28px;
  margin: -10px 0 -4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--color-primary-dark);
  font-weight: 720;
  border-radius: var(--radius-control);
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.login-panel__message:not([data-state="idle"]) {
  padding: 10px 12px;
}

.login-panel__message[data-state="info"] {
  color: var(--color-primary-dark);
  background: var(--color-info-bg);
}

.login-panel__message[data-state="success"] {
  color: var(--color-success);
  background: var(--color-success-bg);
}

.login-panel__message[data-state="error"] {
  color: var(--color-danger);
  background: var(--color-danger-bg);
}

.login-panel__undo {
  min-width: 44px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 780;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.login-panel__undo[hidden] {
  display: none;
}

.login-form,
.customer-links {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.login-form {
  gap: 16px;
}

.login-form__support {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.login-form__field {
  display: grid;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 780;
}

.login-form__field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  padding: 0 14px;
  color: var(--color-text);
  background: #ffffff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.login-form__field input::placeholder {
  color: #748096;
}

.login-form__field input:disabled,
.login-form__field input[readonly] {
  color: var(--color-muted);
  background: rgba(247, 248, 252, 0.96);
}

.login-form__field--otp input {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 760;
}

.login-account {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.login-account[hidden] {
  display: none;
}

.login-account__eyebrow,
.login-account__meta {
  margin: 0;
}

.login-account__eyebrow {
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-account__summary {
  display: grid;
  gap: 4px;
}

.login-account__summary strong {
  color: var(--color-heading);
  font-size: 1.06rem;
  line-height: 1.25;
}

.login-account__summary span,
.login-account__meta {
  color: var(--color-muted);
  line-height: 1.45;
}

.login-panel[data-login-state="authenticated"] .workspace-list {
  margin-top: -6px;
}

.customer-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-links .button {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  padding-inline: 16px;
  white-space: normal;
  text-align: center;
}

.login-panel__divider {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 32px;
}

.login-panel__divider::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 50%;
  border-top: 1px solid var(--color-border);
}

.login-panel__divider::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  left: 50%;
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: rgba(18, 100, 245, 0.82);
  transform: translateX(-50%);
}

.login-panel__divider span {
  position: relative;
  padding: 0 14px;
  color: #1d315e;
  background: var(--color-bg);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: rgba(247, 248, 252, 0.8);
}

/* Story: #18 | Date: 2026-08-07 | Agent: George | Change: Keep footer utility content and issue reporting in one stable footer row. */
.site-footer__inner {
  box-sizing: border-box;
  width: min(100%, var(--content-max));
  overflow: hidden;
  min-height: 58px;
  margin-inline: auto;
  padding: 0 var(--page-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  color: #1d315e;
}

/* Story: #2 | Date: 2026-08-07 | Agent: Codex | Change: Replace the language scroller with quiet DevsOff company information in the footer. */
.site-footer__company-info {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 0.3em;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

.site-footer__company-info strong,
.site-report-link {
  display: inline-flex;
  align-items: center;
}

.site-footer__company-info strong {
  font-weight: 700;
}

/* Story: #0 | Date: 2026-08-16 | Agent: George | Change: Give the official business address a quiet, readable hierarchy without crowding the footer action. */
.site-footer__address {
  display: block;
  min-width: 0;
  margin: 0;
  padding-inline-start: clamp(14px, 1.4vw, 22px);
  border-inline-start: 1px solid var(--color-border);
  color: var(--color-soft);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.35;
  white-space: nowrap;
}

.site-report-link {
  flex: 0 0 auto;
  min-height: 44px;
  color: #1d315e;
  font-size: 0.85rem;
  font-weight: 400;
  white-space: nowrap;
}

.site-report-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Story: #0 | Date: 2026-08-16 | Agent: George | Change: Move the address below the company copy before the footer reaches mobile widths. */
@media (min-width: 768px) and (max-width: 1280px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 2px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-footer__company-info {
    min-height: 0;
  }

  .site-footer__address {
    grid-column: 1;
    padding-inline-start: 0;
    border-inline-start: 0;
    white-space: normal;
  }

  .site-report-link {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* Story: #19 | Date: 2026-08-07 | Agent: George | Change: Add the DevsOff-style issue report modal without changing the footer row layout. */
/* Story: #30 | Date: 2026-08-11 | Agent: Codex | Change: Add restrained inline validation styling to the shared issue-report modal without changing its dimensions or focus ring. */
.site-report-modal[hidden] {
  display: none !important;
}

.site-report-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  color: #0b1c44;
}

.site-report-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 32, 0.68);
  backdrop-filter: blur(5px);
}

.site-report-dialog {
  position: relative;
  inline-size: min(760px, calc(100% - 2rem));
  max-block-size: calc(100dvh - 2rem);
  margin: 1rem auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #d7dfef;
  border-radius: 20px;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 28px 90px rgba(4, 20, 58, 0.32);
}

.site-report-open {
  overflow: hidden;
}

/* Story: #33 | Date: 2026-08-11 | Agent: Codex | Change: Raise mobile report and support modal controls to 44px touch targets without changing their visual density. */
.site-report-close {
  position: absolute;
  inset-block-start: 0.8rem;
  inset-inline-end: 0.9rem;
  inline-size: 44px;
  block-size: 44px;
  min-inline-size: 44px;
  min-block-size: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #26375d;
  background: #eef3ff;
  font-size: 1.7rem;
  cursor: pointer;
}

.site-report-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-report-dialog h2 {
  margin: 0;
  color: #081a43;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
}

.site-report-intro {
  margin: 0.55rem 2.5rem 1.25rem 0;
  color: #52658e;
  line-height: 1.55;
}

.site-report-form,
.site-report-form label {
  display: grid;
  gap: 0.45rem;
}

.site-report-form {
  gap: 1rem;
}

.site-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.site-report-form label,
.site-report-details-label {
  color: #142750;
  font-size: 0.86rem;
  font-weight: 700;
}

.site-report-field-error {
  margin: 0;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.site-report-field-error[hidden] {
  display: none;
}

.site-report-form :is(input:not([type="checkbox"]), select) {
  inline-size: 100%;
  min-block-size: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #becbea;
  border-radius: 10px;
  color: #0b1c44;
  background: #fff;
  font: inherit;
}

.site-report-identity-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  margin-top: -0.2rem;
}

.site-report-identity-row--static {
  align-items: start;
}

.site-report-identity-label {
  color: #52627f;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-report-identity-card {
  min-width: 0;
  display: grid;
  flex: 1 1 240px;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d0d8e8;
  border-radius: 10px;
  background: #f8faff;
}

.site-report-identity-card strong {
  color: #0b1c44;
  font-size: 0.95rem;
  line-height: 1.2;
}

.site-report-identity-card span {
  color: #17315f;
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-report-auth-state {
  margin: 0;
  color: #a53c3c;
  font-size: 0.88rem;
  line-height: 1.45;
}

.site-report-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-block-size: 44px;
  color: #17315f;
  font-size: 0.82rem;
  font-weight: 600;
}

.site-report-remember input[type="checkbox"] {
  flex: 0 0 auto;
  inline-size: 18px;
  block-size: 18px;
  min-block-size: 0;
  margin: 0;
  accent-color: var(--color-primary);
}

.site-report-inline-action {
  min-block-size: 44px;
  padding: 0;
  border: 0;
  color: #17346e;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  cursor: pointer;
}

.site-report-inline-action:hover {
  color: #1458ff;
}

.site-report-toolbar {
  display: flex;
  gap: 4px;
  margin-block-end: -1rem;
  padding: 4px;
  border: 1px solid #becbea;
  border-block-end: 0;
  border-radius: 10px 10px 0 0;
  background: #f6f8fe;
}

.site-report-toolbar button {
  min-inline-size: 44px;
  min-block-size: 44px;
  display: grid;
  place-items: center;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 6px;
  color: #17346e;
  background: transparent;
  cursor: pointer;
}

.site-report-toolbar button:hover {
  background: #e7edfc;
}

.site-report-editor {
  min-block-size: 160px;
  padding: 0.85rem;
  border: 1px solid #becbea;
  border-radius: 0 0 10px 10px;
  color: #122650;
  overflow-wrap: anywhere;
  background: #fff;
  line-height: 1.55;
}

.site-report-editor:empty::before {
  color: #7a89a8;
  content: attr(data-placeholder);
  pointer-events: none;
}

.site-report-form :is(input:not([type="checkbox"]), select)[aria-invalid="true"],
.site-report-editor[aria-invalid="true"] {
  border-color: #d0685f;
  background: #fff7f6;
}

/* Story: #4 | Date: 2026-08-08 | Agent: Codex | Change: Add a compact removable screenshot rail below the issue report editor. */
.site-report-attachments {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid #d7dfef;
  border-radius: 10px;
  background: #f8faff;
}

.site-report-attachments[hidden] {
  display: none;
}

.site-report-attachments__header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #17346e;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-report-attachments__header span {
  color: #64769b;
  font-weight: 600;
}

.site-report-attachments__list {
  display: grid;
  gap: 0.5rem;
}

.site-report-attachment {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-block-size: 72px;
  padding: 0.35rem;
  border: 1px solid #d7dfef;
  border-radius: 8px;
  background: #fff;
}

.site-report-attachment__preview {
  inline-size: 72px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  color: #7a89a8;
  background: #eef3ff;
  object-fit: cover;
}

.site-report-attachment__metadata {
  display: grid;
  min-inline-size: 0;
  gap: 0.15rem;
}

.site-report-attachment__name,
.site-report-attachment__details {
  overflow-wrap: anywhere;
}

.site-report-attachment__name {
  color: #17346e;
  font-size: 0.82rem;
}

.site-report-attachment__details {
  color: #64769b;
  font-size: 0.76rem;
}

.site-report-attachment.is-error .site-report-attachment__details {
  color: #b42318;
}

.site-report-attachment__remove {
  inline-size: 44px;
  block-size: 44px;
  min-inline-size: 44px;
  min-block-size: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #52658e;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.site-report-attachment__remove:hover {
  color: #b42318;
  background: #fff0ef;
}

.site-report-hint {
  margin: -0.65rem 0 0;
  color: #64769b;
  font-size: 0.78rem;
}

.site-report-status {
  min-block-size: 1.3em;
  margin: 0;
  color: #176b3b;
  font-size: 0.86rem;
}

.site-report-status.is-error {
  color: #b42318;
}

.site-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}

.site-report-actions button {
  min-block-size: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.site-report-secondary {
  border: 1px solid #becbea;
  color: #17315f;
  background: #fff;
}

.site-report-primary {
  border: 1px solid var(--color-primary);
  color: #fff;
  background: var(--color-primary);
}

.site-report-primary:disabled {
  cursor: wait;
  opacity: 0.65;
}

.site-report-form :focus-visible,
.site-report-close:focus-visible,
.site-report-link:focus-visible {
  outline: 3px solid #1458ff;
  outline-offset: 2px;
}

/* Story: #32 | Date: 2026-08-11 | Agent: Codex | Change: Add distinct minimized and end-chat confirmation states to the public Support chat shell. */
.support-chat-modal[hidden] {
  display: none !important;
}

.support-chat-modal {
  --support-chat-vv-top: 0px;
  --support-chat-vv-height: 100dvh;
  position: fixed;
  z-index: 10020;
  inset: 0;
  color: #0b1c44;
  pointer-events: none;
}

.support-chat-modal[data-support-chat-state="expanded"],
.support-chat-modal[data-support-chat-state="confirming"] {
  pointer-events: auto;
}

.support-chat-modal[data-support-chat-state="minimized"] {
  inset: auto;
}

.support-chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 32, 0.62);
  backdrop-filter: blur(5px);
}

.support-chat-dialog {
  position: absolute;
  inset-inline-end: 24px;
  inset-block-end: 24px;
  inline-size: min(440px, calc(100% - 2rem));
  max-block-size: min(680px, calc(100dvh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #d7dfef;
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: var(--shadow-float);
}

.support-chat-modal[data-support-chat-state="confirming"] .support-chat-thread,
.support-chat-modal[data-support-chat-state="confirming"] .support-chat-form {
  display: none;
}

.support-chat-open {
  overflow: hidden;
}

.support-chat-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-block-end: 1px solid #e1e7f4;
}

.support-chat-mark {
  inline-size: 42px;
  block-size: 42px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(18, 100, 245, 0.16), rgba(19, 164, 104, 0.18)),
    #f7faff;
  border: 1px solid #d9e3f7;
}

.support-chat-mark::before {
  content: "";
  display: block;
  inline-size: 18px;
  block-size: 14px;
  margin: 13px auto 0;
  border: 2px solid #1264f5;
  border-block-start-width: 3px;
  border-radius: 5px 5px 6px 6px;
  box-shadow: 7px 6px 0 -3px #13a468;
}

.support-chat-eyebrow {
  display: block;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.support-chat-dialog h2 {
  margin: 0.1rem 0 0;
  color: #081a43;
  font-size: 1.25rem;
  line-height: 1.15;
}

.support-chat-icon-button {
  inline-size: 44px;
  block-size: 44px;
  min-inline-size: 44px;
  min-block-size: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #d9e3f7;
  border-radius: var(--radius-sm);
  color: #26375d;
  background: #eef3ff;
  font-size: 1.35rem;
}

.support-chat-icon-button:hover {
  background: #dfe8fb;
}

.support-chat-thread {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  min-block-size: 0;
  padding: 1rem;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.support-chat-message {
  max-inline-size: min(86%, 420px);
  padding: 0.72rem 0.85rem;
  border: 1px solid #d7dfef;
  border-radius: 12px;
  color: #10234c;
  background: #ffffff;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.support-chat-message--assistant {
  justify-self: start;
  border-start-start-radius: 4px;
  background: #f6f8fe;
}

.support-chat-message--user {
  justify-self: end;
  border-color: #1264f5;
  border-start-end-radius: 4px;
  color: #ffffff;
  background: #1264f5;
}

.support-chat-form {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 1rem 1rem;
  border-block-start: 1px solid #e1e7f4;
  background: #ffffff;
}

.support-chat-form label {
  color: #142750;
  font-size: 0.82rem;
  font-weight: 760;
}

.support-chat-form textarea {
  inline-size: 100%;
  min-block-size: 92px;
  max-block-size: 180px;
  resize: vertical;
  padding: 0.75rem 0.85rem;
  border: 1px solid #becbea;
  border-radius: 10px;
  color: #0b1c44;
  background: #ffffff;
  line-height: 1.45;
}

.support-chat-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.support-chat-status {
  min-block-size: 1.3rem;
  margin: 0;
  color: #52658e;
  font-size: 0.84rem;
  line-height: 1.35;
}

.support-chat-status.is-error {
  color: #a53c3c;
}

.support-chat-send {
  min-inline-size: 92px;
  min-block-size: 44px;
  border-radius: var(--radius-control);
  color: #ffffff;
  background: var(--color-primary);
  font-weight: 760;
}

.support-chat-send:hover {
  background: var(--color-primary-dark);
}

.support-chat-send:disabled {
  background: #8aaef8;
}

.support-chat-close-confirmation {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1rem;
}

.support-chat-close-confirmation h3 {
  margin: 0;
  color: #081a43;
  font-size: 1.15rem;
}

.support-chat-close-confirmation p {
  margin: 0;
  color: #41506e;
  line-height: 1.5;
}

.support-chat-close-confirmation__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.support-chat-close-confirmation__actions .button {
  min-block-size: 44px;
}

.support-chat-resume {
  position: fixed;
  inset-inline-end: 24px;
  inset-block-end: 24px;
  z-index: 10021;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-block-size: 52px;
  padding: 0.5rem 0.9rem;
  border: 1px solid #d7dfef;
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: var(--shadow-float);
  color: #0b1c44;
  pointer-events: auto;
}

.support-chat-resume:hover {
  background: #f7faff;
}

.support-chat-mark--resume {
  inline-size: 36px;
  block-size: 36px;
}

.support-chat-mark--resume::before {
  margin-top: 10px;
}

.support-chat-resume__label {
  font-weight: 700;
}

.support-chat-resume__badge {
  inline-size: 10px;
  block-size: 10px;
  border-radius: 999px;
  background: #e14c4c;
  box-shadow: 0 0 0 3px rgba(225, 76, 76, 0.16);
}

/* Story: #3 | Date: 2026-08-06 | Agent: George | Change: Locked the full desktop home composition to the first viewport like the supplied mockup. */
@media (min-width: 1281px) {
  .page-shell {
    min-height: 100svh;
    overflow: visible;
    grid-template-rows: var(--header-block) auto 58px;
  }

  /* Story: #39 | Date: 2026-08-11 | Agent: Codex | Change: Let compact-height desktops scroll instead of clipping the login customer links into the footer. */
  .home-main {
    height: auto;
    min-height: max(730px, calc(100svh - var(--header-block) - 58px));
  }

  .login-panel {
    padding-bottom: 20px;
  }

  .site-header {
    height: var(--header-block);
  }

  .site-footer,
  .site-footer__inner,
  .site-footer__company-info {
    min-height: 58px;
  }
}

/* Story: #10 | Date: 2026-08-06 | Agent: George | Change: Scaled the selected device arrangement for compact desktop viewports. */
@media (min-width: 1281px) and (max-width: 1500px) {
  .hero-copy p {
    max-width: 320px;
  }

  .product-showcase {
    margin-left: -84px;
    margin-right: -16px;
  }

  .status-pill {
    width: 214px;
    right: 72px;
  }

  .dashboard-device {
    left: 16%;
  }

  .phone-device {
    left: var(--phone-stage-offset-x);
  }

  .portal-card {
    left: 24%;
    right: 8%;
  }

  .watch-device {
    right: 50px;
    bottom: 84px;
  }

  /* Story: #13 | Date: 2026-08-06 | Agent: George | Change: Enlarged the portrait within the compact desktop device clearance. */
  .profile-orbit {
    left: 50%;
    bottom: 100px;
    width: 210px;
    height: 210px;
  }
}

/* Story: #39 | Date: 2026-08-11 | Agent: Codex | Change: Pull the compact desktop phone back to the stage edge so it clears the centered portrait. */
@media (min-width: 1281px) and (max-width: 1500px) and (max-height: 820px) {
  .phone-device {
    --phone-stage-offset-x: 0px;
  }
}

@media (max-width: 1280px) {
  .home-main {
    height: auto;
    grid-template-columns: minmax(300px, 0.72fr) minmax(440px, 1fr);
    grid-template-areas:
      "copy login"
      "product product"
      "caps caps";
  }

  .product-showcase {
    min-height: 640px;
  }

  .login-panel {
    padding-left: 36px;
  }

  .login-panel::before {
    top: 0;
    bottom: 0;
  }

  .dashboard-device {
    left: 21%;
  }

  .phone-device {
    left: 8%;
  }

  .portal-card {
    left: 27%;
    right: 12%;
  }

  .profile-orbit {
    left: 24%;
  }

  .capability-strip {
    max-width: 520px;
    margin-left: 0;
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 22px;
  }

  .site-nav {
    display: none;
  }

  .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;
  }

  .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;
  }

  .home-main {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-copy h1 {
    max-width: 620px;
    font-size: clamp(3rem, 8.2vw, 4.7rem);
  }

  .hero-copy p {
    max-width: 600px;
    margin-top: 24px;
  }

  .login-panel {
    order: 2;
    align-content: start;
    gap: 24px;
    padding: 0;
  }

  .login-panel::before {
    display: none;
  }

  .product-showcase {
    order: 3;
    min-height: 640px;
  }

  .capability-strip {
    order: 4;
    width: 100%;
    max-width: 520px;
    justify-self: start;
    padding-top: 4px;
  }

}

/* Story: #10 | Date: 2026-08-06 | Agent: George | Change: Kept the dashboard centered and distributed the supporting devices symmetrically across tablet widths. */
@media (min-width: 768px) and (max-width: 1280px) {
  .product-showcase {
    min-height: 640px;
    margin-inline: 0;
  }

  .status-pill {
    top: 0;
    left: calc(50% + 36px);
    right: auto;
    width: 214px;
  }

  .dashboard-device {
    top: 12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .phone-device {
    --phone-stage-offset-x: 0px;
    left: max(0px, calc(50% - 330px));
    bottom: 24px;
    width: clamp(146px, 16vw, 164px);
    height: clamp(328px, 36vw, 368px);
  }

  .watch-device {
    right: max(0px, calc(50% - 330px));
    bottom: 68px;
    width: clamp(90px, 11vw, 104px);
    height: clamp(136px, 16vw, 156px);
  }

  /* Story: #13 | Date: 2026-08-06 | Agent: George | Change: Enlarged the portrait while preserving tablet device clearance. */
  .profile-orbit {
    left: 50%;
    bottom: 42px;
    width: clamp(186px, 19.35vw, 198px);
    height: clamp(186px, 19.35vw, 198px);
  }
}

/* Story: #1 | Date: 2026-08-06 | Agent: George | Change: Added mobile-first header, login template, and small-screen product preview rules. */
@media (max-width: 767px) {
  :root {
    --header-block: 76px;
    --page-gutter: 20px;
  }

  body {
    background:
      radial-gradient(circle at 84% 22%, rgba(223, 232, 250, 0.92), transparent 34%),
      var(--color-bg);
  }

  /* Story: #34 | Date: 2026-08-11 | Agent: Codex | Change: Keep mobile homepage gutters inside classic scrollbar content bounds. */
  .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;
  }

  .brand {
    min-height: 44px;
  }

  /* Story: #13 | Date: 2026-08-06 | Agent: George | Change: Keep the shared DevsOff.com logo proportional in the compact header. */
  .brand-logo {
    width: clamp(160px, 48vw, 190px);
  }

  .site-nav {
    justify-self: start;
    padding-top: 0;
  }

  .home-main {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-bottom: 34px;
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 10.8vw, 2.85rem);
    line-height: 0.99;
  }

  .mobile-break {
    display: block;
  }

  .hero-copy,
  .hero-copy p,
  .login-panel,
  .login-account,
  .workspace-list,
  .login-form,
  .login-mode,
  .customer-links {
    max-width: 100%;
    min-width: 0;
  }

  .hero-copy p {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-copy {
    order: 2;
    padding-top: 0;
  }

  .login-panel {
    order: 1;
    gap: 20px;
    width: 100%;
  }

  .login-panel h2 {
    font-size: clamp(1.8rem, 8vw, 2.3rem);
  }

  .workspace-list {
    gap: 14px;
  }

  .workspace-list h3 {
    font-size: 1.08rem;
  }

  .workspace-item {
    gap: 10px;
  }

  .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);
  }

  .workspace-name {
    font-size: 1rem;
  }

  .workspace-remove {
    align-self: stretch;
    min-height: 66px;
    background: rgba(255, 255, 255, 0.48);
    border-color: rgba(207, 214, 229, 0.72);
  }

  .workspace-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .login-form {
    gap: 12px;
  }

  .login-form__support {
    justify-content: stretch;
  }

  .login-form__support .button {
    width: 100%;
  }

  .login-account {
    padding: 16px;
  }

  .login-panel__divider span {
    padding-inline: 12px;
  }

  /* Story: #11 | Date: 2026-08-06 | Agent: George | Change: Tightened the mobile stage while keeping both devices below the dashboard chart. */
  .product-showcase {
    order: 3;
    min-height: 646px;
    margin-inline: calc(-1 * var(--page-gutter));
  }

  .status-pill {
    top: 0;
    left: 50%;
    right: auto;
    width: calc(100% - 48px);
    max-width: 342px;
    min-width: 0;
    transform: translateX(-50%);
  }

  .dashboard-device {
    top: 72px;
    left: 24px;
    right: 24px;
    width: auto;
    height: 292px;
    grid-template-columns: 50px 1fr;
    border-radius: 18px;
    transform: none;
  }

  .dashboard-sidebar {
    gap: 18px;
    padding-top: 20px;
  }

  .sidebar-icon {
    width: 20px;
    height: 20px;
  }

  .sidebar-icon svg {
    width: 15px;
    height: 15px;
    stroke-width: 2;
  }

  .dashboard-content {
    padding: 14px 12px 12px;
  }

  /* Story: #5 | Date: 2026-08-06 | Agent: George | Change: Scaled the realistic app mockups for small-screen previews. */
  .dashboard-appbar {
    min-height: 28px;
  }

  .dashboard-appbar small {
    display: none;
  }

  .dashboard-appbar strong {
    font-size: 0.7rem;
  }

  .dashboard-appbar em {
    padding: 5px 7px;
    font-size: 0.5rem;
  }

  .dashboard-tabs {
    --dashboard-tab-gap: 3px;
    --dashboard-tab-padding: 3px;
    margin: 6px 0 7px;
  }

  .dashboard-tabs span {
    padding: 5px 3px;
    font-size: 0.48rem;
  }

  .metric-grid {
    gap: 7px;
  }

  /* Story: #8 | Date: 2026-08-06 | Agent: George | Change: Compress tablet metric spacing so all contextual values fit the fixed mobile card height. */
  .metric-card {
    height: 62px;
    padding: 6px 8px;
  }

  .metric-card small {
    font-size: 0.56rem;
  }

  .metric-card strong {
    margin-top: 3px;
    font-size: 0.96rem;
  }

  .metric-card span {
    margin-top: 2px;
    font-size: 0.5rem;
  }

  .chart-panel {
    min-height: 106px;
    margin-top: 8px;
    padding: 8px;
  }

  .chart-panel__top strong {
    font-size: 0.54rem;
  }

  .chart-panel__top small {
    display: none;
  }

  .chart {
    grid-template-columns: 22px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 14px;
    column-gap: 5px;
    height: 70px;
    margin-top: 7px;
  }

  .chart-axis {
    font-size: 0.42rem;
  }

  .chart-axis--x {
    padding-top: 4px;
  }

  .dashboard-insights {
    display: none;
  }

  /* Story: #11 | Date: 2026-08-06 | Agent: George | Change: Raised the phone into the compact mobile shelf while preserving dashboard clearance. */
  .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;
  }

  .phone-device::before {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: inherit;
  }

  .phone-device::after {
    bottom: -12px;
    height: 12px;
  }

  .phone-button--volume {
    left: -3px;
    top: 64px;
    width: 3px;
    height: 30px;
  }

  .phone-button--power {
    right: -3px;
    top: 102px;
    width: 3px;
    height: 38px;
  }

  .phone-screen {
    border-radius: 23px;
    padding: 10px 7px 30px;
  }

  .phone-screen::before {
    width: 40px;
    height: 9px;
  }

  .phone-screen::after {
    border-radius: 22px;
  }

  .phone-status {
    font-size: 0.42rem;
  }

  .phone-status__icons {
    gap: 2px;
    transform: scale(0.78);
    transform-origin: right center;
  }

  .phone-top {
    margin-top: 8px;
  }

  .phone-top strong {
    font-size: 0.47rem;
  }

  .phone-top small {
    display: none;
  }

  .phone-alert {
    width: 18px;
    height: 18px;
  }

  .phone-alert::before {
    inset: 5px 6px 6px;
  }

  .phone-alert b {
    min-width: 10px;
    height: 10px;
    font-size: 0.34rem;
  }

  .phone-summary,
  .phone-segmented {
    display: none;
  }

  .phone-metrics {
    gap: 4px;
    margin-top: 9px;
  }

  .phone-metrics span {
    min-height: 28px;
    font-size: 0.66rem;
  }

  .phone-metrics small {
    font-size: 0.31rem;
  }

  .phone-activity {
    --phone-activity-row-height: 24px;
    --phone-activity-gap: 4px;
    margin-top: 9px;
  }

  .phone-activity > strong {
    font-size: 0.46rem;
  }

  .phone-activity-feed > span {
    grid-template-columns: 12px minmax(0, 1fr) auto;
    column-gap: 5px;
    padding: 4px;
  }

  .phone-activity i {
    width: 10px;
    height: 10px;
  }

  .phone-activity i::after {
    left: 3px;
    top: 1px;
    width: 3px;
    height: 5px;
    border-width: 0 1.5px 1.5px 0;
  }

  .phone-activity b {
    font-size: 0.4rem;
  }

  .phone-activity small {
    font-size: 0.34rem;
  }

  .phone-activity em {
    display: block;
    font-size: 0.31rem;
  }

  .phone-activity i.is-warning::after {
    left: 4px;
    top: 2px;
    width: 2px;
    height: 5px;
    box-shadow: 0 6px 0 #ffffff;
  }

  .phone-action {
    margin-top: 5px;
    font-size: 0.36rem;
  }

  .phone-tabs {
    left: 9px;
    right: 9px;
    bottom: 7px;
  }

  .phone-tabs span {
    gap: 2px;
    font-size: 0.32rem;
  }

  .phone-tabs i {
    width: 12px;
    height: 10px;
  }

  .portal-card {
    display: none;
  }

  /* Story: #11 | Date: 2026-08-06 | Agent: George | Change: Aligned and optically centered the smaller watch against the phone. */
  .watch-device {
    top: 447px;
    right: 44px;
    bottom: auto;
    width: 82px;
    height: 126px;
    border-width: 5px;
    border-radius: 23px;
    padding: 5px;
  }

  .watch-device::before,
  .watch-device::after {
    left: 19%;
    right: 19%;
    height: 20px;
  }

  .watch-device::before {
    top: -24px;
  }

  .watch-device::after {
    bottom: -24px;
  }

  .watch-crown {
    right: -8px;
    top: 38px;
    width: 6px;
    height: 25px;
  }

  .watch-button {
    right: -5px;
    top: 74px;
    width: 4px;
    height: 16px;
  }

  .watch-face {
    border-radius: 16px;
    gap: 2px;
    padding: 6px;
  }

  .watch-face::before {
    border-radius: 15px;
  }

  .watch-top small {
    display: none;
  }

  .watch-rings {
    width: 42px;
    height: 42px;
  }

  .watch-rings .track,
  .watch-rings .progress {
    stroke-width: 5;
  }

  .watch-rings text {
    font-size: 7px;
  }

  .watch-rings text + text {
    font-size: 4.5px;
  }

  .watch-face span {
    min-height: 12px;
    padding: 2px 4px;
    font-size: 0.42rem;
  }

  .watch-face span:last-child {
    display: none;
  }

  .profile-orbit {
    display: none;
  }

  .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;
  }

  .capability {
    min-width: 0;
    font-size: 0.82rem;
  }

  .capability__icon {
    width: 54px;
    height: 54px;
  }

  .site-footer__inner {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .site-footer__company-info {
    min-height: 56px;
    font-size: 0.9rem;
  }
}

@media (max-width: 767px) {
  .site-footer {
    min-height: 0;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-footer__company-info {
    min-height: 0;
    display: block;
    font-size: 0.88rem;
  }

  /* Story: #0 | Date: 2026-08-16 | Agent: George | Change: Stack the address as an unadorned secondary line for narrow screens and assistive zoom. */
  .site-footer__address {
    padding-inline-start: 0;
    border-inline-start: 0;
    white-space: normal;
  }

  .site-report-dialog {
    inline-size: calc(100% - 1rem);
    max-block-size: calc(100dvh - 1rem);
    margin: 0.5rem auto;
    border-radius: 15px;
  }

  .site-report-grid {
    grid-template-columns: 1fr;
  }

  .site-report-attachment {
    grid-template-columns: 56px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .site-report-attachment__preview {
    inline-size: 56px;
  }

  .site-report-actions {
    flex-direction: column-reverse;
  }

  .site-report-actions button {
    inline-size: 100%;
  }

  /* Story: #41 | Date: 2026-08-11 | Agent: Codex | Change: Pin mobile Support chat to the live visual viewport so the keyboard cannot cover the composer. */
  .support-chat-modal[data-support-chat-state="expanded"],
  .support-chat-modal[data-support-chat-state="confirming"] {
    inset-block-start: var(--support-chat-vv-top, 0px);
    inset-block-end: auto;
    block-size: var(--support-chat-vv-height, 100dvh);
  }

  .support-chat-dialog {
    inset-inline: 0;
    inset-block-end: 0;
    inline-size: 100%;
    block-size: min(86%, 680px);
    max-block-size: 100%;
    border-end-start-radius: 0;
    border-end-end-radius: 0;
  }

  .support-chat-modal[data-support-chat-keyboard="open"] .support-chat-dialog,
  .support-chat-modal[data-support-chat-compact="true"] .support-chat-dialog {
    block-size: 100%;
  }

  .support-chat-header {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 8px;
    padding-inline: 0.85rem;
  }

  .support-chat-close-confirmation {
    min-block-size: 0;
    overflow-y: auto;
    padding-inline: 0.85rem;
    padding-block-end: max(1rem, env(safe-area-inset-bottom));
  }

  .support-chat-thread {
    min-block-size: 0;
    padding-inline: 0.85rem;
  }

  .support-chat-message {
    max-inline-size: 92%;
  }

  .support-chat-form {
    padding-inline: 0.85rem;
    padding-block-end: max(1rem, env(safe-area-inset-bottom));
  }

  .support-chat-form textarea {
    resize: none;
  }

  .support-chat-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-chat-send {
    inline-size: 100%;
  }

  .support-chat-modal[data-support-chat-compact="true"] .support-chat-header {
    padding-block: 0.7rem;
  }

  .support-chat-modal[data-support-chat-compact="true"] .support-chat-mark {
    inline-size: 36px;
    block-size: 36px;
  }

  .support-chat-modal[data-support-chat-compact="true"] .support-chat-mark::before {
    margin-block-start: 10px;
  }

  .support-chat-modal[data-support-chat-compact="true"] .support-chat-thread {
    padding-block: 0.75rem;
  }

  .support-chat-modal[data-support-chat-compact="true"] .support-chat-form {
    gap: 0.45rem;
    padding-block-start: 0.7rem;
  }

  .support-chat-modal[data-support-chat-compact="true"] .support-chat-form textarea {
    min-block-size: 56px;
    max-block-size: 92px;
  }

  .support-chat-modal[data-support-chat-compact="true"] .support-chat-actions {
    grid-template-columns: minmax(0, 1fr) minmax(86px, auto);
  }

  .support-chat-modal[data-support-chat-compact="true"] .support-chat-status {
    min-block-size: 0;
  }

  .support-chat-modal[data-support-chat-compact="true"] .support-chat-send {
    inline-size: auto;
    min-inline-size: 86px;
  }

  .support-chat-close-confirmation__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-chat-resume {
    inset-inline-end: 16px;
    inset-block-end: max(16px, env(safe-area-inset-bottom));
    min-block-size: 52px;
  }
}

/* Story: #11 | Date: 2026-08-06 | Agent: George | Change: Preserved full dashboard width and the aligned device shelf at the narrowest supported viewport. */
@media (max-width: 360px) {
  .workspace-item {
    gap: 8px;
  }

  .customer-links {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.28rem;
  }

  .product-showcase {
    min-height: 646px;
  }

  .dashboard-device {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .phone-device {
    left: 20px;
  }

  .watch-device {
    right: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  /* Story: #6 | Date: 2026-08-06 | Agent: George | Change: Freeze every device at a readable final state when reduced motion is requested. */
  .product-showcase .chart-line polyline {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }

  .product-showcase .chart-line circle:not(.chart-live-cursor),
  .product-showcase .watch-rings .progress {
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }

  .product-showcase .chart-live-cursor,
  .product-showcase .portal-toast,
  .product-showcase .portal-row.is-updating::after,
  .product-showcase .status-badge.is-deploying::after {
    display: none !important;
  }

  /* Story: #7 | Date: 2026-08-06 | Agent: George | Change: Keep Live Ops selected and disable the tablet tab cycle for reduced motion. */
  .product-showcase .dashboard-tabs::before,
  .product-showcase .dashboard-tabs span {
    animation: none !important;
  }

  .product-showcase .dashboard-tabs::before {
    opacity: 0 !important;
  }

  .product-showcase .dashboard-tabs .is-active {
    color: #ffffff !important;
    background: rgba(18, 100, 245, 0.24) !important;
  }

  /* Story: #8 | Date: 2026-08-06 | Agent: George | Change: Keep only the Live Ops dashboard content visible when motion is reduced. */
  .product-showcase .dashboard-view {
    animation: none !important;
    opacity: 0 !important;
  }

  .product-showcase [data-dashboard-view="live"] {
    opacity: 1 !important;
  }
}
