:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --border: #d8e2f2;
  --text: #1f2d3d;
  --muted: #5f6c7b;
  --accent: #155eef;
  --accent-soft: #dbe8ff;
  --accent-green: #0f766e;
  --ink: #101820;
  --success: #13795b;
  --warning: #a15c00;
  --danger: #a61b1b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

a,
button,
summary,
input,
select,
textarea {
  touch-action: manipulation;
}

button,
summary,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.12);
}

:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.32);
  outline-offset: 3px;
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 3px 10px rgba(18, 34, 56, 0.06);
}

.homepage {
  max-width: 1440px;
  overflow-x: hidden;
  padding: 1rem;
}

.site-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.25rem 1rem;
}

.brand-mark,
.site-nav a,
.system-card {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-symbol {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(15, 118, 110, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(15, 118, 110, 0.34) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(21, 94, 239, 0.28) 45% 55%, transparent 55%),
    #ffffff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
}

.site-nav a:hover {
  background: #e9eef6;
  color: var(--ink);
}

.homepage-hero {
  position: relative;
  min-height: 66vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
  padding: clamp(2rem, 6vw, 5rem);
  background:
    linear-gradient(90deg, rgba(9, 17, 28, 0.86), rgba(9, 17, 28, 0.5) 52%, rgba(9, 17, 28, 0.18)),
    url("future%20consideration/Roller%20Conveyor.jpg") center / cover;
  background-repeat: no-repeat;
  color: #ffffff;
}

.hero-content {
  width: min(680px, 100%);
}

.hero h1 {
  margin: 0.5rem 0;
}

.homepage-hero h1 {
  margin: 0.45rem 0 0.75rem;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.homepage-hero p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.homepage-hero .eyebrow {
  color: #8ee8d8;
}

.button {
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-weight: 600;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.65rem;
}

.homepage-hero .button.primary {
  background: #ffffff;
  color: var(--ink);
}

.homepage-hero .button.secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 1rem;
  background: #ffffff;
}

.overview-strip article {
  min-height: 112px;
  padding: 1.15rem;
}

.overview-strip article + article {
  border-left: 1px solid var(--border);
}

.overview-strip span,
.system-card span {
  display: block;
  color: var(--accent-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.overview-strip strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.25;
}

.section-block {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.workflow-band h2 {
  margin: 0.4rem 0 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

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

.system-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #ffffff;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.system-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 18px 40px rgba(18, 34, 56, 0.1);
}

.system-card-featured {
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(11, 24, 38, 0.04), rgba(11, 24, 38, 0.86)),
    url("future%20consideration/Screenshot%202025-11-30%20at%2010.11.01%E2%80%AFPM.png") center / cover;
  background-repeat: no-repeat;
}

.system-card-featured span,
.system-card-featured p {
  color: rgba(255, 255, 255, 0.82);
}

.system-card h3 {
  max-width: 620px;
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.system-card p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.workflow-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: end;
  border-top: 1px solid var(--border);
  padding: clamp(2rem, 5vw, 4rem) 0 1rem;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.workflow-steps span {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  padding: 1rem;
  text-align: center;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
}

.input-panels {
  display: grid;
  gap: 1rem;
}

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

label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 0.35rem;
  color: var(--muted);
}

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

input,
select,
textarea {
  width: 100%;
  padding: 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

textarea {
  min-height: 70px;
  resize: vertical;
}

.helper {
  color: var(--muted);
  font-size: 0.85rem;
}

.inline-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

button {
  border: none;
  padding: 0.62rem 0.95rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

button.ghost {
  background: #e6edf9;
  color: var(--text);
}

button.warn {
  background: #c25518;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.75rem;
}

.metric {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
}

.metric h3 {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.metric p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.alerts {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.alerts li {
  color: var(--warning);
}

.alerts li.critical {
  color: var(--danger);
}

.alerts li.warning {
  color: var(--warning);
}

.alerts li.note {
  color: #526071;
}

.alerts li.good {
  color: var(--success);
}

.daily-planner-body {
  background: #eef3f8;
}

.daily-planner {
  max-width: none;
  padding: 1rem;
}

.daily-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.9rem;
}

.daily-header h1 {
  margin: 0.25rem 0 0.25rem;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.daily-header .helper {
  max-width: 780px;
  margin: 0;
}

.daily-leader-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.daily-leader-strip article {
  min-height: 82px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.8rem 0.9rem;
}

.daily-leader-strip article.good {
  border-color: rgba(19, 121, 91, 0.35);
}

.daily-leader-strip article.watch {
  border-color: rgba(161, 92, 0, 0.36);
}

.daily-leader-strip article.critical {
  border-color: rgba(166, 27, 27, 0.34);
}

.daily-leader-strip span,
.planner-panel-heading span,
.daily-metric h3,
.category-score span {
  color: #647085;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.daily-leader-strip strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  line-height: 1;
}

.daily-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 1rem;
  align-items: start;
}

.planner-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.planner-panel,
.planner-output-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.9rem;
  box-shadow: 0 3px 10px rgba(18, 34, 56, 0.04);
}

.planner-panel-heading {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
}

.planner-panel-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.15;
}

.planner-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.planner-field-grid label {
  gap: 0.22rem;
  color: #4b5567;
  font-size: 0.78rem;
  font-weight: 800;
}

.planner-field-grid input,
.planner-field-grid select {
  min-height: 34px;
  border-radius: 7px;
  padding: 0.4rem 0.5rem;
}

.planner-outputs {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  display: grid;
  gap: 0.85rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.daily-status {
  display: grid;
  gap: 0.28rem;
  border: 1px solid #ccd8e8;
  border-radius: 8px;
  background: #f8fbff;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.daily-status strong {
  color: var(--ink);
  font-size: 1rem;
}

.daily-status span {
  color: #526071;
  font-size: 0.84rem;
  line-height: 1.4;
}

.daily-status.good {
  border-color: rgba(19, 121, 91, 0.28);
  background: #f1fbf7;
}

.daily-status.watch {
  border-color: rgba(161, 92, 0, 0.32);
  background: #fff8ed;
}

.daily-status.critical {
  border-color: rgba(166, 27, 27, 0.28);
  background: #fff5f5;
}

.daily-output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.daily-metric {
  min-height: 66px;
  border: 1px solid #d7e1ef;
  border-radius: 7px;
  background: #fbfdff;
  padding: 0.52rem 0.6rem;
}

.daily-metric h3 {
  margin: 0 0 0.28rem;
  letter-spacing: 0.03em;
}

.daily-metric p {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.1;
}

.pace-table-wrap {
  max-height: 240px;
  overflow: auto;
  border: 1px solid #d7e1ef;
  border-radius: 7px;
}

.pace-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.pace-table th,
.pace-table td {
  padding: 0.42rem 0.5rem;
  border-bottom: 1px solid #e5ebf5;
  text-align: right;
  white-space: nowrap;
}

.pace-table th:first-child,
.pace-table td:first-child {
  text-align: left;
}

.pace-table th {
  position: sticky;
  top: 0;
  background: #f8fbff;
  color: #526071;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.category-score-grid {
  display: grid;
  gap: 0.5rem;
}

.category-score {
  position: relative;
  display: grid;
  gap: 0.38rem;
  border: 1px solid #d7e1ef;
  border-radius: 7px;
  background: #fbfdff;
  padding: 0.52rem 0.6rem;
}

.category-score > div:first-child {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.category-score-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.category-score .metric-info {
  background: #f5f8fc;
}

.category-score .metric-tooltip {
  top: calc(100% + 0.35rem);
  right: auto;
  left: 0;
  width: min(280px, calc(100vw - 3rem));
}

.category-score:has(.metric-info:hover) .metric-tooltip,
.category-score:has(.metric-info:focus) .metric-tooltip,
.category-score:has(.metric-info:focus-visible) .metric-tooltip {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.category-score:has(.metric-info:hover),
.category-score:has(.metric-info:focus),
.category-score:has(.metric-info:focus-visible) {
  z-index: 5;
}

.category-score strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.score-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf5;
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #155eef;
}

.category-score.good .score-bar span {
  background: #13795b;
}

.category-score.watch .score-bar span {
  background: #a15c00;
}

.category-score.critical .score-bar span {
  background: #a61b1b;
}

.daily-actions {
  font-size: 0.86rem;
  line-height: 1.38;
}

.daily-control-ribbon {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.daily-control-tabs {
  display: flex;
  min-width: max-content;
  gap: 0;
}

.daily-control-tabs button {
  min-height: 42px;
  border-radius: 0;
  background: transparent;
  color: #647085;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.55rem 0.9rem;
  white-space: nowrap;
}

.daily-control-tabs button.is-active {
  box-shadow: inset 0 -3px 0 #155eef;
  color: #155eef;
  background: #f6f9ff;
}

.daily-plan-health {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 2.2fr);
  gap: 0.65rem;
  align-items: stretch;
  border: 1px solid #cfd9e8;
  border-left: 4px solid #647085;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(18, 34, 56, 0.08);
  margin: 0 0 1rem;
  padding: 0.62rem;
}

.daily-plan-health-summary {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 0.28rem;
  border-right: 1px solid #e0e7f1;
  padding-right: 0.65rem;
}

.daily-plan-health-summary span,
.daily-health-metric span {
  color: #647085;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.daily-plan-health-summary strong {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.28rem 0.5rem;
}

.daily-plan-health-summary p {
  margin: 0;
  color: #526071;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}

.daily-plan-health-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  gap: 0.45rem;
}

.daily-health-metric {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 0.22rem;
  border: 1px solid #dbe4f0;
  border-radius: 7px;
  background: #fbfdff;
  padding: 0.46rem 0.5rem;
}

.daily-health-metric strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-health-metric.is-positive strong {
  color: #13795b;
}

.daily-health-metric.is-negative strong {
  color: #a61b1b;
}

.daily-health-metric.is-status strong {
  width: fit-content;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.24rem 0.44rem;
}

.daily-plan-health.is-on-plan {
  border-left-color: #13795b;
}

.daily-plan-health.is-on-plan .daily-plan-health-summary strong,
.daily-plan-health.is-on-plan .daily-health-metric.is-status strong {
  background: #eaf8f1;
  color: #13795b;
}

.daily-plan-health.is-at-risk {
  border-left-color: #a15c00;
}

.daily-plan-health.is-at-risk .daily-plan-health-summary strong,
.daily-plan-health.is-at-risk .daily-health-metric.is-status strong {
  background: #fff3df;
  color: #8a4d00;
}

.daily-plan-health.is-miss {
  border-left-color: #a61b1b;
}

.daily-plan-health.is-miss .daily-plan-health-summary strong,
.daily-plan-health.is-miss .daily-health-metric.is-status strong {
  background: #fff0f0;
  color: #a61b1b;
}

.daily-plan-health.is-overbuilt {
  border-left-color: #155eef;
}

.daily-plan-health.is-overbuilt .daily-plan-health-summary strong,
.daily-plan-health.is-overbuilt .daily-health-metric.is-status strong {
  background: #edf4ff;
  color: #155eef;
}

.daily-plan-health.is-missing-input {
  border-left-color: #647085;
}

.daily-plan-health.is-missing-input .daily-plan-health-summary strong,
.daily-plan-health.is-missing-input .daily-health-metric.is-status strong {
  background: #eef2f7;
  color: #526071;
}

.daily-validation-drawer {
  overflow: hidden;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(18, 34, 56, 0.04);
  margin: -0.35rem 0 1rem;
}

.validation-drawer-toggle {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.7fr) 28px;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 0;
  background: #fbfdff;
  color: #223047;
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.validation-drawer-toggle:hover {
  background: #f4f8fd;
}

.validation-drawer-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.validation-drawer-title span {
  color: #647085;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.validation-drawer-title strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.validation-count-strip {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.validation-count {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8e1ef;
  border-radius: 999px;
  background: #ffffff;
  color: #526071;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.25rem 0.42rem;
}

.validation-count.is-high {
  border-color: #f1b0b0;
  background: #fff5f5;
  color: #a61b1b;
}

.validation-count.is-medium {
  border-color: #f0cf95;
  background: #fff8ed;
  color: #8a4d00;
}

.validation-count.is-low {
  border-color: #c9d7eb;
  background: #f6f9fd;
  color: #526071;
}

.validation-drawer-chevron {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  border: 1px solid #c7d4e6;
  border-radius: 6px;
  background: #f1f6ff;
  color: #155eef;
  font-size: 0.74rem;
  font-weight: 900;
}

.validation-drawer-body {
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid #e5ebf5;
  padding: 0.6rem;
}

.validation-severity-group {
  display: grid;
  gap: 0.38rem;
}

.validation-severity-group h3 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: #526071;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.validation-severity-group h3 span {
  border-radius: 999px;
  background: #eef2f7;
  color: #526071;
  font-size: 0.64rem;
  padding: 0.13rem 0.36rem;
}

.validation-severity-group.is-high h3 {
  color: #a61b1b;
}

.validation-severity-group.is-medium h3 {
  color: #8a4d00;
}

.validation-issue-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}

.validation-issue {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
  border: 1px solid #dbe4f0;
  border-left: 3px solid #c7d4e6;
  border-radius: 7px;
  background: #fbfdff;
  color: #223047;
  padding: 0.46rem 0.52rem;
  text-align: left;
}

.validation-issue:hover {
  border-color: #155eef;
  border-left-color: #155eef;
  background: #f7faff;
}

.validation-severity-group.is-high .validation-issue {
  border-left-color: #a61b1b;
}

.validation-severity-group.is-medium .validation-issue {
  border-left-color: #a15c00;
}

.validation-issue-tab {
  color: #647085;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.validation-issue strong {
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.2;
}

.validation-issue em {
  color: #647085;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.validation-clear-state {
  border: 1px solid #d8e7dd;
  border-radius: 7px;
  background: #f4fbf7;
  color: #13795b;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.6rem;
}

.daily-control-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 1rem;
  align-items: start;
}

.daily-tab-workbench {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(18, 34, 56, 0.04);
  padding: 0.9rem;
}

.daily-panel-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.daily-panel-topline .planner-panel-heading {
  margin-bottom: 0;
}

.daily-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.daily-small-button {
  min-height: 32px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.34rem 0.58rem;
}

.daily-mini-button {
  min-height: 28px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.26rem 0.45rem;
}

.daily-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.daily-icon-button {
  min-width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cfd9e8;
  border-radius: 6px;
  background: #f8fbff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0;
}

.daily-icon-button:hover {
  border-color: #a61b1b;
  color: #a61b1b;
  background: #fff5f5;
}

.daily-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #d7e1ef;
  border-radius: 8px;
}

.daily-control-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.daily-control-table th,
.daily-control-table td {
  border-bottom: 1px solid #e5ebf5;
  padding: 0.42rem;
  text-align: left;
  vertical-align: middle;
}

.daily-control-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fbff;
  color: #526071;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.daily-control-table input,
.daily-control-table select,
.rate-detail-table input,
.rate-detail-table select,
.daily-form-grid input,
.daily-form-grid select {
  width: 100%;
  min-height: 32px;
  border-radius: 6px;
  padding: 0.34rem 0.42rem;
  font-size: 0.78rem;
}

.daily-control-table input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

.daily-drag-handle,
.drag-handle {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #c7d4e6;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff, #f3f7fc);
  color: #526071;
  cursor: grab;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  padding: 0;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.daily-drag-handle:hover,
.drag-handle:hover {
  border-color: #155eef;
  background: #eaf1ff;
  color: #155eef;
  box-shadow: 0 6px 14px rgba(21, 94, 239, 0.12);
  transform: translateY(-1px);
}

.daily-drag-handle:active,
.drag-handle:active {
  cursor: grabbing;
  transform: translateY(0);
}

.rate-row-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.rate-detail-toggle {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #c7d4e6;
  border-radius: 7px;
  background: #f1f6ff;
  color: #155eef;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  padding: 0;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.rate-detail-toggle:hover {
  border-color: #155eef;
  background: #e8f0ff;
  box-shadow: 0 6px 14px rgba(21, 94, 239, 0.12);
  transform: translateY(-1px);
}

body.is-row-dragging,
body.is-row-dragging * {
  cursor: grabbing;
}

.daily-draggable-row > td {
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.daily-draggable-row:hover > td {
  background: #fbfdff;
}

.daily-draggable-row.is-drag-over > td {
  background: #eef5ff;
  box-shadow: inset 0 2px 0 #155eef;
}

.daily-draggable-row.is-drag-over.insert-after > td {
  box-shadow: inset 0 -2px 0 #155eef;
}

.daily-rate-detail-row > td {
  background: #fbfdff;
  padding-top: 0.2rem;
  padding-bottom: 0.72rem;
}

.daily-rate-detail-row > td:first-child {
  border-left: 3px solid #dbe5f2;
}

.rate-detail-panel {
  display: grid;
  gap: 0.45rem;
  border: 1px solid #d7e1ef;
  border-radius: 7px;
  background: #ffffff;
  padding: 0.55rem;
}

.rate-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rate-detail-heading strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.rate-detail-heading span {
  color: #647085;
  font-size: 0.72rem;
  font-weight: 800;
}

.sort-count-warning,
.rate-count-warning {
  margin: 0;
  border: 1px solid #f2aaa5;
  border-radius: 7px;
  background: #fff7f6;
  color: #b42318;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.42rem 0.5rem;
}

.rate-detail-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.rate-detail-table th,
.rate-detail-table td {
  border-top: 1px solid #edf2f8;
  padding: 0.34rem;
  text-align: left;
}

.rate-detail-table th {
  color: #526071;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rate-detail-table tr.is-extra-sort-destination td,
.rate-detail-table tr.is-extra-rate-detail td {
  background: #fff7f6;
  box-shadow: inset 0 0 0 1px #ef7b72;
}

.rate-value-with-unit {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
}

.rate-value-with-unit span {
  min-width: 54px;
  border: 1px solid #d8e1ef;
  border-radius: 6px;
  background: #f6f9fd;
  color: #526071;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.35rem 0.42rem;
  text-align: center;
  white-space: nowrap;
}

.allocation-good {
  color: #13795b;
}

.allocation-watch {
  color: #a15c00;
}

.allocation-critical {
  color: #a61b1b;
}

.shift-parent-row > td {
  border-top: 2px solid #cbd8ea;
  background: #f4f8fd;
}

.shift-parent-row:first-child > td {
  border-top: 0;
}

.shift-parent-row .daily-edit {
  font-weight: 900;
}

.shift-name-cell {
  min-width: 170px;
  display: grid;
  gap: 0.2rem;
}

.shift-name-cell span {
  color: #647085;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shift-name-control {
  display: grid;
  grid-template-columns: 26px minmax(145px, 1fr);
  align-items: center;
  gap: 0.38rem;
}

.shift-name-control > div {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.shift-function-toggle {
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #b8c7dc;
  border-radius: 6px;
  background: #f1f6ff;
  color: #155eef;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0;
}

.shift-function-toggle:hover {
  border-color: #155eef;
  background: #e8f0ff;
}

.shift-breakdown-row > td {
  background: #ffffff;
  padding-top: 0;
  border-bottom: 2px solid #e5ebf5;
}

.shift-breakdown-row > td:first-child {
  border-left: 3px solid #dbe5f2;
}

.shift-job-breakdown {
  position: relative;
  margin: 0 0 0.18rem 0.25rem;
  border: 1px solid #cfd9e8;
  border-left: 4px solid #155eef;
  border-radius: 7px;
  background: #f8fbff;
  overflow: hidden;
}

.shift-job-breakdown::before {
  content: "";
  position: absolute;
  left: -1.08rem;
  top: 1.15rem;
  width: 1.08rem;
  border-top: 2px solid #dbe5f2;
}

.job-function-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.52rem 0.58rem;
}

.job-function-toolbar span {
  color: #647085;
  font-size: 0.74rem;
  font-weight: 800;
}

.job-function-table-wrap {
  overflow: auto;
  border-top: 1px solid #d8e3f2;
}

.job-function-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.job-function-table th,
.job-function-table td {
  border-bottom: 1px solid #edf2f8;
  padding: 0.36rem 0.42rem;
  text-align: left;
}

.job-function-table th {
  background: #fbfdff;
  color: #526071;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.job-function-table input {
  width: 100%;
  min-height: 30px;
  border-radius: 6px;
  padding: 0.32rem 0.4rem;
  font-size: 0.76rem;
}

.daily-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.daily-form-grid.compact {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  margin-bottom: 0.8rem;
}

.daily-form-grid.daily-wide-field {
  grid-template-columns: 1fr;
  margin: 0.7rem 0 0.85rem;
}

.daily-form-grid label {
  display: grid;
  gap: 0.25rem;
  color: #4b5567;
  font-size: 0.78rem;
  font-weight: 800;
}

.daily-form-grid input[readonly] {
  background: #f6f9fd;
  color: #223047;
  font-weight: 900;
}

.daily-table-stack {
  display: grid;
  gap: 0.85rem;
}

.daily-subsection {
  min-width: 0;
  display: grid;
  gap: 0.55rem;
}

.daily-subsection-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.daily-subsection-heading > div:first-child {
  min-width: 0;
}

.daily-subsection-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.15;
}

.daily-subsection-heading p {
  max-width: 620px;
  margin: 0;
  color: #647085;
  font-size: 0.76rem;
  line-height: 1.32;
  text-align: left;
}

.daily-subsection-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.daily-derived-cell {
  color: #223047;
  font-weight: 900;
}

.daily-rate-mode {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #cfd9e8;
  border-radius: 7px;
  overflow: hidden;
  background: #f8fbff;
  margin-bottom: 0.5rem;
}

.daily-rate-mode button {
  min-height: 32px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #526071;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.32rem 0.72rem;
}

.daily-rate-mode button.is-active {
  background: #2456f5;
  color: #ffffff;
}

.daily-panel-note {
  max-width: 860px;
  margin: 0 0 0.75rem;
  color: #526071;
  font-size: 0.84rem;
  line-height: 1.4;
}

.daily-source-note {
  display: grid;
  gap: 0.2rem;
  border: 1px solid #cfd9e8;
  border-left: 4px solid #155eef;
  border-radius: 8px;
  background: #f8fbff;
  margin: 0 0 0.85rem;
  padding: 0.58rem 0.7rem;
}

.daily-source-note strong {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.15;
}

.daily-source-note span {
  color: #526071;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}

.daily-readout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.plan-snapshot-grid {
  margin-top: 0.85rem;
}

.daily-decision-process-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.daily-decision-process-grid article {
  min-height: 66px;
}

.daily-readout-grid article {
  border: 1px solid #d7e1ef;
  border-radius: 8px;
  background: #fbfdff;
  padding: 0.7rem;
}

.daily-readout-grid span {
  color: #647085;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.daily-readout-grid strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1;
}

.daily-process-layout {
  min-height: 620px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #bdc8d8;
  border-radius: 8px;
  background: #ffffff;
  margin: 0 0 0.95rem;
}

.daily-process-layout.has-selection {
  grid-template-columns: 320px minmax(0, 1fr);
}

.daily-process-layout-left {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-right: 1px solid #d7e0ee;
  background: #ffffff;
  overflow: hidden;
  overscroll-behavior: auto;
}

.daily-process-side-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #d7e0ee;
  background: #ffffff;
  min-height: 52px;
}

.daily-process-side-tabs button {
  min-height: 52px;
  border-radius: 0;
  background: transparent;
  color: #647085;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.daily-process-side-tabs button + button {
  border-left: 1px solid #d7e0ee;
}

.daily-process-side-tabs button.is-active {
  box-shadow: inset 0 -2px 0 #155eef;
  background: #ffffff;
  color: #155eef;
}

.daily-process-side-content {
  min-width: 0;
  min-height: 0;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.daily-flow-shapes {
  position: relative;
  min-width: 0;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.65rem;
  overflow: visible;
  overscroll-behavior: auto;
  padding: 0.6rem 0.6rem 0.75rem;
}

.daily-flow-shapes .flow-ribbon-group {
  border-bottom: 0;
  padding-bottom: 0;
}

.daily-flow-shapes .shape-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-block-palette {
  min-height: 0;
  display: grid;
  gap: 0.62rem;
  overflow: visible;
  padding-right: 0;
}

.daily-block-category {
  display: grid;
  gap: 0.34rem;
}

.daily-block-category h3 {
  margin: 0;
  color: #657084;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.daily-block-bottom {
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid #e5ebf5;
  padding-top: 0.6rem;
}

.daily-flow-shapes .shape-tool {
  min-height: 36px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.34rem;
  align-items: center;
  text-align: left;
  font-size: 0.7rem;
  line-height: 1.05;
  padding: 0.32rem 0.42rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.daily-flow-shapes .shape-icon {
  flex: 0 0 auto;
}

.daily-flow-shapes .shape-preset-popup {
  top: auto;
  bottom: 0.75rem;
}

.daily-layout-inspector {
  max-height: none;
  border-right: 0;
  overflow: visible;
  overscroll-behavior: contain;
  padding: 0.7rem;
}

.daily-layout-inspector .editor-grid {
  gap: 0.46rem;
}

.daily-inspector-section {
  display: grid;
  gap: 0.58rem;
  border: 1px solid #d8e1ef;
  border-radius: 7px;
  background: #fbfdff;
  padding: 0.72rem;
}

.daily-inspector-section + .daily-inspector-section {
  margin-top: 0.65rem;
}

.daily-inspector-section h3 {
  margin: 0;
  color: #657084;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.daily-inspector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.daily-inspector-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-inspector-stack {
  display: grid;
  gap: 0.5rem;
}

.daily-inspector-section label {
  min-width: 0;
  gap: 0.24rem;
  font-size: 0.68rem;
  line-height: 1.18;
}

.daily-inspector-section textarea {
  min-height: 74px;
}

.daily-layout-inspector .daily-inspector-grid,
.daily-layout-inspector .daily-inspector-grid.two-up {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.daily-layout-inspector input,
.daily-layout-inspector select,
.daily-layout-inspector textarea {
  min-width: 0;
  min-height: 30px;
  padding: 0.32rem 0.42rem;
  font-size: 0.74rem;
}

.daily-layout-inspector .rate-editor-header {
  gap: 0.34rem;
}

.daily-layout-inspector .rate-unit-tabs button {
  min-height: 22px;
  padding: 0.16rem 0.34rem;
  font-size: 0.62rem;
}

.daily-layout-inspector .editor-row {
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 0.4rem;
}

.daily-layout-inspector .inspector-calculated {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.16rem;
}

.daily-layout-inspector .inspector-calculated strong {
  white-space: normal;
  overflow-wrap: anywhere;
}

.daily-layout-inspector input[readonly] {
  background: #f6f9fd;
  color: #223047;
  font-weight: 900;
}

.daily-process-layout-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.daily-layout-workspace {
  min-height: 0;
  border: 0;
}

.daily-layout-workspace .flow-workspace-header {
  min-height: 52px;
}

.daily-layout-workspace .workspace-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.32rem;
}

.daily-layout-workspace .canvas-tool-button,
.daily-layout-workspace .ghost {
  white-space: nowrap;
}

.daily-layout-canvas {
  position: relative;
  min-height: 540px;
  height: 600px;
  overflow: hidden;
  padding: 0;
}

.daily-layout-canvas #dailyFlowCanvas {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  background: transparent;
  cursor: default;
  touch-action: none;
}

.daily-layout-canvas.is-pan-mode #dailyFlowCanvas {
  cursor: grab;
}

.daily-flow-zoom {
  width: 104px;
  accent-color: #1d5cff;
}

.canvas-icon-button {
  width: 30px;
  min-width: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.canvas-icon-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.process-staffing-editor {
  display: grid;
  gap: 0.38rem;
  border-top: 1px solid #e5ebf5;
  padding-top: 0.4rem;
}

.process-staffing-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.process-staffing-heading span {
  color: #4b5567;
  font-size: 0.72rem;
  font-weight: 800;
}

.process-staffing-lines {
  display: grid;
  gap: 0.42rem;
}

.process-staffing-line {
  display: grid;
  gap: 0.42rem;
  border: 1px solid #d8e1ef;
  border-radius: 6px;
  background: #ffffff;
  padding: 0.45rem;
}

.process-staffing-line-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 0.4rem;
  align-items: end;
}

.process-staffing-line-grid {
  display: grid;
  grid-template-columns: minmax(56px, 0.7fr) repeat(2, minmax(0, 1fr));
  gap: 0.38rem;
  align-items: stretch;
}

.process-staffing-line-grid label {
  min-width: 0;
}

.process-staffing-value {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 0.14rem;
  border: 1px solid #d8e1ef;
  border-radius: 6px;
  background: #f7faff;
  padding: 0.3rem 0.34rem;
}

.process-staffing-value span {
  color: #657084;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.process-staffing-value strong {
  color: #111827;
  font-size: 0.72rem;
  line-height: 1.1;
}

.process-staffing-empty {
  border: 1px dashed #cfd9e8;
  border-radius: 6px;
  color: #657084;
  font-size: 0.72rem;
  line-height: 1.35;
  padding: 0.48rem;
}

.process-staffing-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d8e1ef;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.68rem;
}

.process-staffing-table th,
.process-staffing-table td {
  border-bottom: 1px solid #e5ebf5;
  padding: 0.28rem;
  text-align: left;
  vertical-align: middle;
}

.process-staffing-table th {
  background: #f7faff;
  color: #657084;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.process-staffing-table td {
  color: #334155;
}

.process-staffing-table input,
.process-staffing-table select {
  min-height: 26px;
  padding: 0.22rem 0.3rem;
  font-size: 0.68rem;
}

.daily-shift-dropdown {
  position: relative;
  min-width: 220px;
}

.daily-shift-dropdown-button {
  width: 100%;
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 0.35rem;
  align-items: center;
  border: 1px solid #cfd9e8;
  border-radius: 7px;
  background: #ffffff;
  color: #223047;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.32rem 0.45rem;
  text-align: left;
}

.daily-shift-dropdown-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-shift-dropdown-button strong {
  color: #647085;
  font-size: 0.68rem;
  text-align: center;
}

.daily-shift-dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 40;
  display: none;
  gap: 0.2rem;
  border: 1px solid #b9c7dc;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  padding: 0.35rem;
}

.daily-shift-dropdown.is-open .daily-shift-dropdown-menu {
  display: grid;
}

.daily-shift-dropdown-menu label {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 0.38rem;
  border-radius: 5px;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.28rem 0.32rem;
}

.daily-shift-dropdown-menu input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.daily-shift-checkmark {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #c1ccdb;
  border-radius: 5px;
  background: #ffffff;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.daily-shift-checkmark::before {
  content: "✓";
  opacity: 0;
}

.daily-job-shift-check:checked + .daily-shift-checkmark {
  border-color: #155eef;
  background: #155eef;
}

.daily-job-shift-check:checked + .daily-shift-checkmark::before {
  opacity: 1;
}

.daily-shift-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-shift-empty {
  color: #657084;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.34rem;
}

.daily-shift-dropdown-menu label:hover {
  background: #f3f7fc;
}

.daily-attention-row td {
  background: #fff8ed;
}

.sandbox-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.sandbox-process-layout {
  margin-top: 0.75rem;
}

.sandbox-canvas-wrap {
  height: 600px;
  min-height: 540px;
}

.sandbox-canvas-wrap #sandboxFlowCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
}

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

.daily-flow-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 1px dashed #b6c5db;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: #5b687b;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 1rem;
}

.flow-card {
  margin-top: 1rem;
  scroll-margin-top: 1rem;
}

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

.studio-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: #fbfcff;
  max-height: 760px;
  overflow: auto;
}

.studio-panel h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.editor-grid {
  display: grid;
  gap: 0.65rem;
}

.hidden {
  display: none;
}

.canvas-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f9fbff;
  height: 760px;
}

#flowCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.flow-tools {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.7rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

@media (max-width: 1180px) {
  .daily-layout,
  .daily-control-layout {
    grid-template-columns: 1fr;
  }

  .planner-outputs {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .daily-leader-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .daily-plan-health {
    grid-template-columns: 1fr;
  }

  .daily-plan-health-summary {
    border-right: 0;
    border-bottom: 1px solid #e0e7f1;
    padding: 0 0 0.55rem;
  }

  .daily-plan-health-grid {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .validation-drawer-toggle {
    grid-template-columns: minmax(180px, 1fr) 28px;
  }

  .validation-count-strip {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .daily-process-layout {
    grid-template-columns: 1fr;
  }

  .daily-process-layout-left {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    border-right: 0;
    border-bottom: 1px solid #d7e0ee;
  }

  .daily-flow-shapes {
    border-right: 0;
    border-bottom: 0;
  }

  .studio-layout {
    grid-template-columns: 1fr;
  }

  .studio-panel {
    max-height: none;
  }

  .canvas-wrap {
    height: 560px;
  }
}

@media (max-width: 980px) {
  main {
    padding: 1rem;
  }

  .top-nav {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .planner-inputs {
    grid-template-columns: 1fr;
  }

  .daily-form-grid,
  .daily-readout-grid {
    grid-template-columns: 1fr;
  }

  .daily-plan-health-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .validation-issue-list {
    grid-template-columns: 1fr;
  }

  .daily-process-layout-left {
    grid-template-columns: 1fr;
  }

  .daily-flow-shapes {
    border-right: 0;
    border-bottom: 1px solid #e5ebf5;
  }
}

@media (max-width: 640px) {
  .daily-planner {
    padding: 0.75rem;
  }

  .daily-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .daily-leader-strip,
  .planner-field-grid,
  .daily-output-grid {
    grid-template-columns: 1fr;
  }

  .daily-plan-health-grid {
    grid-template-columns: 1fr;
  }

  .validation-drawer-toggle {
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .validation-drawer-title {
    display: grid;
    gap: 0.18rem;
  }

  .daily-layout-canvas {
    min-height: 420px;
    height: 480px;
    padding: 0;
  }

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

  .canvas-wrap {
    height: 420px;
  }
}

.flow-map-body {
  background: #eef2f7;
  overflow: hidden;
}

.flow-map-app {
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 0;
}

.flow-ribbon {
  min-width: 0;
  border-bottom: 1px solid #bdc8d8;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
  z-index: 2;
}

.flow-main-area {
  min-height: 0;
  height: auto;
  overflow: hidden;
  display: grid;
  align-items: stretch;
  grid-template-columns: 281px minmax(520px, 1fr) 281px;
}

.flow-tab-rail,
.flow-inspector,
.flow-outputs {
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: #ffffff;
  padding: 0 0.6rem 0.6rem;
}

.flow-tab-rail,
.flow-inspector {
  border-right: 1px solid #d7e0ee;
}

.flow-map-app:not(.has-selection) .flow-inspector {
  display: none;
}

.flow-map-app.has-selection .flow-tab-rail {
  display: none;
}

.flow-outputs {
  border-left: 1px solid #d7e0ee;
}

.flow-product-header {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.32rem 0.65rem;
  border-bottom: 1px solid #d7e0ee;
  background: #f9fbfe;
}

.flow-product-kicker {
  margin: 0;
  color: #1d5cff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-product-header h1 {
  margin: 0.1rem 0 0;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.1;
}

.flow-product-subtitle {
  max-width: 48rem;
  margin: 0.16rem 0 0;
  color: #526173;
  font-size: 0.78rem;
  line-height: 1.25;
}

.flow-home-link {
  border-radius: 6px;
  background: #eaf1ff;
  color: #1d5cff;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.42rem 0.68rem;
  text-decoration: none;
}

.flow-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid #d7e0ee;
  background: #ffffff;
}

.flow-tabs button {
  border-radius: 0;
  background: transparent;
  color: #647085;
  font-size: 0.8rem;
  font-weight: 800;
  min-width: 92px;
  min-height: 34px;
  padding: 0.48rem 0.72rem;
}

.flow-tabs button.is-active {
  box-shadow: inset 0 -2px 0 #1d5cff;
  color: #1d5cff;
  background: #f7faff;
}

.flow-ribbon > .flow-ribbon-panels {
  display: none;
}

.flow-tab-rail .flow-ribbon-panels {
  min-height: 0;
}

.flow-ribbon-panel {
  display: none;
  min-height: 0;
  position: relative;
  gap: 0.65rem;
  padding: 0.52rem 0 1rem;
}

.flow-ribbon-panel.is-active {
  display: grid;
  align-content: start;
  overflow: visible;
}

.flow-ribbon-group {
  min-width: 0;
  display: grid;
  gap: 0.48rem;
  border-bottom: 1px solid #e5ebf5;
  padding: 0 0 0.72rem;
}

.flow-ribbon-group:last-child {
  border-bottom: 0;
}

.ribbon-blocks,
.ribbon-connect,
.ribbon-saved-templates,
.ribbon-templates,
.ribbon-presets,
.ribbon-inputs,
.ribbon-plan,
.ribbon-review,
.ribbon-scenarios {
  min-width: 0;
  max-width: none;
}

.flow-ribbon-group > h2 {
  display: block;
}

.flow-group-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
}

.flow-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.flow-group-heading h2 {
  flex: 1 1 auto;
  margin: 0;
}

.flow-ribbon-group h2,
.flow-inspector h2,
.flow-outputs h2 {
  margin: 0 0 0.75rem;
  color: #657084;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flow-map-active-name {
  color: #334155;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.shape-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34rem;
}

.ribbon-blocks,
.ribbon-connect,
.ribbon-saved-templates,
.ribbon-templates {
  padding-left: 0.08rem;
  padding-right: 0.08rem;
}

.shape-tool {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f0f4fa;
  color: #1f2937;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  padding: 0.34rem 0.42rem;
}

.shape-tool[data-template="storage"] {
  gap: 0.28rem;
  font-size: 0.64rem;
  white-space: nowrap;
}

.shape-tool[data-template="note"] {
  grid-column: 1;
}

.shape-tool.is-selected,
.shape-tool:hover {
  border-color: #1d5cff;
  background: #e9f0ff;
  color: #155eef;
}

.shape-tool:active {
  cursor: grabbing;
}

.shape-drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  pointer-events: none;
  border: 1px solid #1d5cff;
  border-radius: 6px;
  background: rgba(233, 240, 255, 0.95);
  color: #155eef;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 0.65rem;
  box-shadow: 0 10px 24px rgba(21, 94, 239, 0.18);
}

.shape-icon {
  width: 20px;
  height: 14px;
  display: inline-block;
  border: 1.6px solid #334155;
  background: #e8eef7;
}

.shape-start,
.shape-end {
  border-radius: 999px;
}

.shape-end {
  clip-path: polygon(24% 0, 76% 0, 100% 24%, 100% 76%, 76% 100%, 24% 100%, 0 76%, 0 24%);
  border-radius: 0;
}

.shape-merge,
.shape-decision {
  width: 17px;
  height: 17px;
  transform: rotate(45deg);
}

.shape-sort {
  width: 22px;
  height: 16px;
  border: 1.6px solid #334155;
  border-radius: 6px;
  background: #e8eef7;
}

.shape-timer,
.shape-storage {
  border-radius: 50% / 22%;
  background:
    radial-gradient(ellipse at 50% 18%, #f8fbff 0 42%, transparent 43%),
    #e8eef7;
}

.shape-transport {
  width: 22px;
  height: 0;
  border: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 16px solid #334155;
  background: transparent;
}

.shape-data {
  transform: skewX(-12deg);
}

.shape-note {
  border-style: dashed;
  background: transparent;
}

.flow-side-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  align-items: flex-start;
}

.flow-side-actions button {
  border-radius: 7px;
  font-weight: 800;
  min-height: 30px;
  padding: 0.38rem 0.62rem;
}

.saved-template-actions select {
  min-height: 30px;
  border: 1px solid #ccd7e6;
  border-radius: 6px;
  background: #ffffff;
  color: #243244;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.32rem 0.42rem;
}

.flow-ribbon-panel[data-ribbon-panel="shapes"] .flow-side-actions button,
.saved-template-card,
.saved-template-empty {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f0f4fa;
  color: #1f2937;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  padding: 0.34rem 0.42rem;
  text-align: center;
}

.flow-ribbon-panel[data-ribbon-panel="shapes"] .flow-side-actions .template-save-button {
  border-color: rgba(19, 121, 91, 0.26);
  background: #e8f7ef;
  color: #0f684f;
}

.flow-ribbon-panel[data-ribbon-panel="shapes"] .flow-side-actions .template-delete-button {
  border-color: rgba(166, 27, 27, 0.3);
  background: #fff1f1;
  color: #a61b1b;
}

.saved-template-card {
  justify-content: space-between;
  width: 100%;
  border-color: #d7e1ef;
  background: #f0f4fa;
  color: #1f2937;
  cursor: pointer;
  gap: 0.45rem;
  height: 34px;
  min-height: 34px;
}

.flow-ribbon-panel[data-ribbon-panel="shapes"] .flow-side-actions button:hover,
.flow-ribbon-panel[data-ribbon-panel="shapes"] .flow-side-actions button.is-active {
  border-color: #1d5cff;
  background: #e9f0ff;
  color: #155eef;
}

.saved-template-card:hover {
  border-color: #1d5cff;
  background: #e9f0ff;
  color: #155eef;
}

.saved-template-card.is-selected {
  border-color: #d7e1ef;
  background: #f0f4fa;
  color: #1f2937;
}

.saved-template-card.is-selected:hover {
  border-color: #1d5cff;
  background: #e9f0ff;
  color: #155eef;
}

.saved-template-card.is-active {
  border-color: #1d5cff;
  border-width: 1px;
  background: #e9f0ff;
  color: #155eef;
}

.saved-template-name {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-template-check {
  display: none;
  flex: 0 0 auto;
  color: #155eef;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.saved-template-card.is-active .saved-template-check {
  display: inline-flex;
}

.flow-template-actions [data-starter-template].is-active::before {
  content: "✓";
  flex: 0 0 auto;
  color: #155eef;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.saved-template-card-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.flow-ribbon-panel[data-ribbon-panel="shapes"] .flow-side-actions .saved-template-icon {
  position: relative;
  width: 1.5rem;
  min-width: 1.5rem;
  height: 1.5rem;
  min-height: 1.5rem;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #526071;
  padding: 0;
  transition: color 140ms ease, transform 140ms ease;
}

.flow-ribbon-panel[data-ribbon-panel="shapes"] .flow-side-actions .saved-template-icon:hover,
.flow-ribbon-panel[data-ribbon-panel="shapes"] .flow-side-actions .saved-template-icon:focus-visible {
  background: transparent;
  border-color: transparent;
  color: #155eef;
  transform: translateY(-1px) scale(1.08);
}

.flow-ribbon-panel[data-ribbon-panel="shapes"] .flow-side-actions .saved-template-icon.danger:hover,
.flow-ribbon-panel[data-ribbon-panel="shapes"] .flow-side-actions .saved-template-icon.danger:focus-visible {
  color: #a61b1b;
}

.saved-template-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.saved-template-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 50%;
  bottom: calc(100% + 0.38rem);
  z-index: 40;
  min-width: max-content;
  max-width: 9rem;
  padding: 0.22rem 0.42rem;
  border-radius: 5px;
  background: #172033;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 0.18rem);
  transition: opacity 140ms ease, transform 140ms ease;
  visibility: hidden;
  white-space: nowrap;
}

.saved-template-icon::before {
  content: "";
  position: absolute;
  right: 50%;
  bottom: calc(100% + 0.08rem);
  z-index: 39;
  width: 0.42rem;
  height: 0.42rem;
  background: #172033;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 0.18rem) rotate(45deg);
  transition: opacity 140ms ease, transform 140ms ease;
  visibility: hidden;
}

.saved-template-icon:hover::after,
.saved-template-icon:hover::before,
.saved-template-icon:focus-visible::after,
.saved-template-icon:focus-visible::before {
  opacity: 1;
  transform: translate(50%, 0) rotate(0deg);
  visibility: visible;
}

.saved-template-icon:hover::before,
.saved-template-icon:focus-visible::before {
  transform: translate(50%, 0) rotate(45deg);
}

.flow-ribbon-panel[data-ribbon-panel="shapes"] .flow-side-actions .template-save-button:hover,
.flow-ribbon-panel[data-ribbon-panel="shapes"] .flow-side-actions .template-save-button.is-active {
  border-color: #13795b;
  background: #dff3e8;
  color: #0b5f49;
}

.flow-ribbon-panel[data-ribbon-panel="shapes"] .flow-side-actions .template-delete-button:hover,
.flow-ribbon-panel[data-ribbon-panel="shapes"] .flow-side-actions .template-delete-button.is-active {
  border-color: #a61b1b;
  background: #ffe1e1;
  color: #8f1717;
}

.saved-template-empty {
  grid-column: 1 / -1;
  justify-content: flex-start;
  color: #647085;
}

.saved-template-command-grid,
.saved-template-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.36rem;
}

.section-collapse-button {
  width: 1.35rem;
  min-width: 1.35rem;
  height: 1.35rem;
  min-height: 1.35rem;
  border: 1px solid #d7e1ef;
  border-radius: 999px;
  background: #f6f9fd;
  color: #526071;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  padding: 0;
}

.section-collapse-button:hover {
  border-color: #1d5cff;
  background: #e9f0ff;
  color: #155eef;
}

.flow-ribbon-group.is-collapsed {
  gap: 0;
  padding-bottom: 0.46rem;
}

.flow-ribbon-group.is-collapsed > :not(.flow-group-heading) {
  display: none;
}

.flow-ribbon-group.is-collapsed > .shape-preset-popup:not(.hidden) {
  display: block;
}

.preset-gear-button {
  width: auto;
  min-width: 0;
  min-height: 0;
  align-self: center;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 1.125rem;
  line-height: 1;
  padding: 0;
  transform: translateY(-1px);
}

.preset-gear-button:hover {
  background: transparent;
  color: #155eef;
}

.flow-template-actions button {
  min-height: 34px;
  background: #f0f4fa;
  color: #1f2937;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  padding: 0.32rem 0.38rem;
  text-align: center;
}

.flow-template-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.36rem;
}

.required-field > span,
.plan-total-field > span,
.required-field em,
.plan-total-field em,
.suggested-field {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.required-field > span,
.plan-total-field > span {
  justify-content: space-between;
}

.required-field em,
.plan-total-field em,
.suggested-field {
  width: fit-content;
  border: 1px solid #e28a8a;
  border-radius: 999px;
  background: #fff1f1;
  color: #b42318;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0.16rem 0.32rem;
  text-transform: uppercase;
}

.required-field.has-value em,
.required-field:has(input:not(:placeholder-shown)) em {
  display: none;
}

.suggested-field {
  border-color: #cdd8e8;
  background: #f1f5fb;
  color: #647085;
}

.required-field input::placeholder,
.flow-plan-grid input::placeholder,
.saved-builds-panel input::placeholder,
.scenario-panel input::placeholder,
.flow-inspector input::placeholder {
  color: #9aa7ba;
  opacity: 1;
}

.field-guidance {
  display: none;
  color: #536176;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.25;
}

.field-guidance.is-visible {
  display: block;
}

.field-guidance.critical {
  color: #a61b1b;
}

.field-guidance.warning {
  color: #8a4d00;
}

.field-guidance.note {
  color: #526071;
}

.saved-builds-panel,
.scenario-panel {
  display: grid;
  gap: 0.42rem;
}

.saved-builds-panel label,
.scenario-panel label {
  display: grid;
  gap: 0.2rem;
  color: #4b5567;
  font-size: 0.7rem;
  font-weight: 800;
}

.saved-builds-panel input,
.saved-builds-panel select,
.scenario-panel input,
.scenario-panel select {
  min-height: 30px;
  border-radius: 6px;
  font-size: 0.76rem;
  padding: 0.3rem 0.4rem;
}

.saved-build-actions,
.scenario-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.scenario-actions button {
  min-height: 28px;
  font-size: 0.66rem;
  padding: 0.28rem 0.32rem;
}

.flow-save-status {
  margin: 0.1rem 0 0;
  color: #647085;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
}

.local-save-banner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #cdd8e7;
  background: #f7faff;
  padding: 0.45rem 0.65rem;
}

.local-save-banner.hidden {
  display: none;
}

.local-save-banner strong,
.local-save-banner span {
  display: block;
}

.local-save-banner strong {
  color: #1f2937;
  font-size: 0.82rem;
}

.local-save-banner span {
  color: #536176;
  font-size: 0.72rem;
  line-height: 1.35;
}

.local-save-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.local-save-actions button {
  min-height: 28px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 0.32rem 0.56rem;
}

.shape-preset-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 80;
  width: min(620px, calc(100vw - 2rem));
  max-height: min(620px, calc(100vh - 2rem));
  overflow-y: auto;
  border: 1px solid #b9c7dc;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 0.72rem;
  transform: translate(-50%, -50%);
}

.shape-preset-popup.hidden,
.preset-extra-grid.hidden {
  display: none;
}

.shape-preset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.62rem;
}

.shape-preset-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 0.9rem;
  line-height: 1.15;
}

.shape-preset-header span {
  color: #657084;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-button {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cfd9e8;
  border-radius: 6px;
  background: #f8fbff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0;
}

.icon-button:hover {
  border-color: #1d5cff;
  color: #155eef;
  background: #f2f6ff;
}

.icon-button.preset-gear-button {
  width: auto;
  min-width: 0;
  min-height: 0;
  align-self: center;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 1.125rem;
  line-height: 1;
  padding: 0;
  transform: translateY(-1px);
}

.icon-button.preset-gear-button:hover {
  border: 0;
  background: transparent;
  color: #155eef;
}

.shape-preset-layout {
  display: grid;
  grid-template-columns: minmax(126px, 0.42fr) minmax(0, 1fr);
  gap: 0.58rem;
}

.shape-preset-list {
  display: grid;
  align-content: start;
  gap: 0.32rem;
}

.shape-preset-list button {
  min-height: 32px;
  border: 1px solid #d7e1ef;
  border-radius: 6px;
  background: #f0f4fa;
  color: #1f2937;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.32rem 0.42rem;
  text-align: left;
}

.shape-preset-list button:hover,
.shape-preset-list button.is-active {
  border-color: #1d5cff;
  background: #e9f0ff;
  color: #155eef;
}

.shape-preset-editor {
  display: grid;
  gap: 0.48rem;
}

.preset-section {
  display: grid;
  gap: 0.36rem;
  border: 1px solid #dbe4f0;
  border-radius: 7px;
  background: #f8fbff;
  padding: 0.48rem;
}

.preset-metrics-grid,
.preset-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.36rem;
}

.preset-extra-grid {
  grid-column: 1 / -1;
}

.preset-field {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(58px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.34rem;
  color: #4b5567;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
}

.preset-field-wide {
  grid-template-columns: minmax(72px, 0.35fr) minmax(0, 1fr);
}

.preset-field span {
  overflow: hidden;
  color: #526071;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shape-preset-grid input,
.shape-preset-grid select,
.preset-extra-grid input {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 0.28rem 0.42rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
}

.shape-preset-grid input:disabled {
  background: #edf2f7;
  color: #7a8494;
  cursor: not-allowed;
}

.shape-preset-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.66rem;
  padding-top: 0.58rem;
  border-top: 1px solid #e5ebf5;
}

.shape-preset-footer button {
  min-height: 30px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.34rem 0.72rem;
}

.shape-preset-footer button.primary {
  border-color: #155eef;
  background: #155eef;
  color: #ffffff;
}

.plan-current-time-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
}

.plan-current-time-value span:last-child {
  color: #647085;
}

.time-setup-feedback {
  display: block;
  color: #b42318;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.3;
}

.time-setup-feedback.hidden {
  display: none;
}

#planCurrentTime {
  min-height: 24px;
  padding: 0;
}

.flow-input-grid,
.flow-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.44rem;
}

.plan-time-group {
  display: grid;
  gap: 0.44rem;
  border: 1px solid #e0e7f2;
  border-radius: 7px;
  background: #fbfdff;
  padding: 0.52rem;
}

.plan-time-group h3 {
  margin: 0 0 0.05rem;
  color: #657084;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mapped-headcount-readout,
.shift-details-panel {
  display: grid;
  gap: 0.22rem;
  border: 1px solid #e0e7f2;
  border-radius: 7px;
  background: #ffffff;
  padding: 0.48rem;
}

.mapped-headcount-readout span,
.shift-details-panel h4 {
  margin: 0;
  color: #657084;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mapped-headcount-readout strong {
  color: #172033;
  font-size: 1rem;
  line-height: 1;
}

.mapped-headcount-readout small,
.shift-details-panel small {
  color: #647085;
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1.3;
}

.shift-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.shift-details-panel.hidden,
.shift-detail-grid label.hidden,
.flow-plan-grid label.simple-shift-field.hidden {
  display: none;
}

.flow-input-grid label,
.flow-plan-grid label,
.flow-plan-grid .plan-current-time-field,
.flow-inspector label {
  display: grid;
  gap: 0.22rem;
  color: #4b5567;
  font-size: 0.72rem;
  font-weight: 700;
}

.flow-input-grid label,
.flow-plan-grid label,
.flow-plan-grid .plan-current-time-field {
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  line-height: 1.18;
}

.flow-input-grid input,
.flow-plan-grid input,
.flow-plan-grid select {
  min-height: 30px;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  font-size: 0.76rem;
}

.plan-total-field input[readonly],
.labor-hours-field input[readonly] {
  background: #f5f8fc;
  color: #526173;
  font-weight: 800;
}

.plan-completed-input-wrap {
  position: relative;
  display: block;
}

.plan-completed-input-wrap input {
  padding-right: 7.8rem;
}

.plan-remaining-inline {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  max-width: 7.1rem;
  overflow: hidden;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.plan-remaining-inline.is-empty {
  display: none;
}

.plan-remaining-inline.is-remaining {
  color: #b42318;
}

.plan-remaining-inline.is-covered {
  color: #13795b;
}

.plan-current-time-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.plan-current-time-header > span {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.28rem;
  min-width: 0;
}

.plan-current-time-tabs button {
  min-width: 34px;
}

.rate-editor {
  display: grid;
  gap: 0.25rem;
}

.rate-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.rate-unit-tabs {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #cfd9e8;
  border-radius: 6px;
}

.rate-unit-tabs button {
  min-height: 24px;
  border-radius: 0;
  background: #ffffff;
  color: #536176;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.18rem 0.42rem;
}

.rate-unit-tabs button + button {
  border-left: 1px solid #cfd9e8;
}

.rate-unit-tabs button.is-active {
  background: #1d5cff;
  color: #ffffff;
}

.flow-inspector select {
  width: 100%;
}

.flow-inspector input[type="color"] {
  min-height: 36px;
  padding: 0.2rem;
}

.sort-editor {
  display: grid;
  gap: 0.3rem;
  border-top: 1px solid #e5ebf5;
  padding-top: 0.38rem;
}

.storage-editor {
  display: grid;
  gap: 0.32rem;
  border-top: 1px solid #e5ebf5;
  padding-top: 0.38rem;
}

.sort-editor.hidden,
.storage-editor.hidden {
  display: none;
}

.sort-config-grid,
.storage-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
}

.sort-count-hint {
  display: none;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff1f2;
  color: #991b1b;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  padding: 0.38rem 0.45rem;
}

#sortCount.is-invalid {
  border-color: #dc2626;
  background: #fff7f7;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.sort-editor.has-invalid-sort-count .sort-count-hint,
.sort-editor:has(#sortCount.is-invalid) .sort-count-hint {
  display: block;
}

.sort-routes {
  display: grid;
  gap: 0.28rem;
}

.sort-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 0.22rem 0.32rem;
  border: 1px solid #d8e1ef;
  border-radius: 6px;
  background: #fbfdff;
  padding: 0.28rem;
}

.sort-route-name {
  grid-column: 1 / -1;
}

.sort-route-basis {
  grid-column: 1;
}

.sort-route-value {
  grid-column: 2;
}

.sort-route label {
  gap: 0.14rem;
  font-size: 0.64rem;
}

.sort-route select,
.sort-route input,
.sort-editor input,
.storage-editor input {
  min-height: 26px;
  padding: 0.24rem 0.34rem;
}

.storage-editor .inspector-calculated {
  align-items: center;
  font-size: 0.72rem;
  line-height: 1.25;
}

.inspector-calculated {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  border: 1px solid #c9d7eb;
  border-radius: 6px;
  background: #f7faff;
  padding: 0.34rem 0.45rem;
}

.inspector-calculated.hidden {
  display: none;
}

.inspector-calculated span {
  color: #657084;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inspector-calculated strong {
  color: #111827;
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: nowrap;
}

.inspector-calculated small {
  color: #64748b;
  display: none;
  font-size: 0.68rem;
}

.editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 0.5rem;
}

.flow-workspace {
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #f8fbff;
}

.flow-workspace-header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #d7e0ee;
  background: #ffffff;
}

.flow-workspace-header h2 {
  margin: 0;
  color: #1f2937;
  font-size: 1.12rem;
  line-height: 1.1;
}

.flow-workspace-header p {
  margin: 0.16rem 0 0;
  color: #536176;
  font-size: 0.73rem;
}

.workspace-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.canvas-tool-button {
  min-height: 28px;
  border: 1px solid #cfd9e8;
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.3rem 0.58rem;
}

.canvas-tool-button:hover,
.canvas-tool-button.is-active {
  border-color: #1d5cff;
  color: #155eef;
  background: #f2f6ff;
}

.canvas-tool-button.is-active {
  background: #1d5cff;
  color: #ffffff;
}

.canvas-tool-button:disabled {
  border-color: #d8e1ef;
  background: #f5f7fb;
  color: #9aa7ba;
  cursor: not-allowed;
}

.flow-outputs-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.34rem;
  margin: 0 -0.6rem 0.48rem;
  padding: 0.52rem 0.6rem 0.5rem;
  border-bottom: 1px solid #e5ebf5;
  background: #ffffff;
}

.flow-outputs-header h2 {
  margin: 0;
}

.icon-action-button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #cfd9e8;
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  padding: 0;
}

.icon-action-button:hover,
.icon-action-button:focus-visible {
  border-color: #155eef;
  background: #f2f6ff;
  color: #155eef;
}

.icon-action-button:focus-visible {
  outline: 2px solid #155eef;
  outline-offset: 2px;
}

.icon-action-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.flow-plan-status,
.flow-result-card,
.bottleneck-drilldown,
.model-warning-summary,
.model-disclaimer {
  border: 1px solid #d8e1ef;
  border-radius: 7px;
  background: #fbfdff;
}

.flow-plan-status {
  display: grid;
  gap: 0.18rem;
  margin-bottom: 0.45rem;
  padding: 0.52rem 0.58rem;
}

.flow-plan-status.is-good {
  border-color: rgba(19, 121, 91, 0.35);
  background: #f1fbf7;
}

.flow-plan-status.is-critical {
  border-color: rgba(166, 27, 27, 0.32);
  background: #fff5f5;
}

.flow-plan-status.is-warning,
.local-save-warning {
  border-color: rgba(161, 92, 0, 0.36);
  background: #fff8ed;
}

.flow-plan-status.is-info {
  border-color: #c9d7eb;
  background: #f7faff;
}

.flow-plan-status span,
.flow-result-card span,
.bottleneck-drilldown span,
.model-warning-heading span,
.model-disclaimer strong {
  color: #657084;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flow-plan-status strong {
  color: #111827;
  font-size: 0.9rem;
  line-height: 1.1;
}

.flow-plan-status p,
.flow-result-card p,
.bottleneck-drilldown p,
.model-disclaimer p {
  margin: 0;
  color: #536176;
  font-size: 0.68rem;
  line-height: 1.35;
}

.severity-counters {
  color: #526071;
  font-size: 0.64rem;
  font-weight: 800;
}

.flow-primary-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.flow-result-card {
  display: grid;
  gap: 0.16rem;
  min-height: 74px;
  padding: 0.45rem 0.5rem;
  position: relative;
}

.flow-result-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.23rem;
}

.flow-result-card strong {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottleneck-drilldown {
  display: grid;
  gap: 0.22rem;
  margin-bottom: 0.45rem;
  padding: 0.5rem 0.56rem;
}

.bottleneck-drilldown strong {
  color: #111827;
  font-size: 0.88rem;
}

.model-warning-summary {
  display: grid;
  gap: 0.36rem;
  margin-bottom: 0.45rem;
  padding: 0.5rem 0.56rem;
}

.model-warning-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
}

.model-warning-heading strong {
  color: #111827;
  font-size: 0.78rem;
}

.input-completeness-status,
.flow-next-step,
.comment-helper {
  margin: 0.28rem 0 0;
  color: #526071;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.35;
}

.flow-next-step {
  color: #155eef;
}

.comment-helper {
  border: 1px solid #e6dcae;
  border-radius: 6px;
  background: #fffdf2;
  padding: 0.42rem 0.5rem;
}

.inspector-action-button {
  width: 100%;
  min-height: 30px;
  justify-content: center;
}

.model-warning-list {
  display: grid;
  gap: 0.32rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-warning-list li,
.network-alerts li {
  display: grid;
  gap: 0.12rem;
}

.model-warning-list li {
  border-left: 3px solid #c8d5e6;
  padding-left: 0.42rem;
}

.model-warning-list li.critical {
  border-left-color: #a61b1b;
}

.model-warning-list li.warning {
  border-left-color: #a15c00;
}

.model-warning-list li.info {
  border-left-color: #155eef;
}

.model-warning-list li.note {
  border-left-color: #647085;
}

.model-warning-list li.is-clickable,
.network-alerts li.is-clickable,
.constraint-table tr.is-clickable {
  cursor: pointer;
}

.model-warning-list li.is-clickable:hover,
.network-alerts li.is-clickable:hover,
.model-warning-list li.is-clickable:focus,
.network-alerts li.is-clickable:focus,
.constraint-table tr.is-clickable:hover,
.constraint-table tr.is-clickable:focus {
  background: #f5f8fc;
  outline: 1px solid #c9d7eb;
  outline-offset: 2px;
}

.model-warning-list li strong,
.network-alerts li strong {
  color: #1f2937;
  font-size: 0.72rem;
  line-height: 1.2;
}

.model-warning-list li span,
.network-alerts li span {
  color: #536176;
  font-size: 0.68rem;
  line-height: 1.3;
}

.model-warning-list li .warning-detail,
.network-alerts li .warning-detail {
  color: #647085;
  font-size: 0.64rem;
}

.model-disclaimer {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
  padding: 0.48rem 0.54rem;
  background: #ffffff;
}

.scenario-active-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-top: 0.1rem;
  border: 1px solid #d8e1ef;
  border-radius: 999px;
  background: #f7faff;
  color: #536176;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.16rem 0.42rem;
}

.scenario-active-badge.is-saved {
  border-color: rgba(19, 121, 91, 0.28);
  background: #f1fbf7;
  color: #13795b;
}

.scenario-active-badge.is-baseline {
  border-color: rgba(21, 94, 239, 0.25);
  background: #edf4ff;
  color: #155eef;
}

.scenario-active-badge.is-dirty,
.scenario-active-badge.is-temporary {
  border-color: rgba(161, 92, 0, 0.34);
  background: #fff8ed;
  color: #8a4d00;
}

.scenario-active-badge.is-unsaved {
  border-color: #c9d7eb;
  background: #f7faff;
  color: #526071;
}

.recommended-actions-panel,
.flow-detail-panel {
  border: 1px solid #d8e1ef;
  border-radius: 7px;
  background: #ffffff;
  margin-bottom: 0.62rem;
  padding: 0.58rem 0.62rem;
}

.recommended-actions-panel span {
  color: #657084;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recommended-actions-panel ol {
  display: grid;
  gap: 0.32rem;
  margin: 0.35rem 0 0;
  padding-left: 1.05rem;
}

.recommended-actions-panel li,
.flow-empty-note {
  color: #536176;
  font-size: 0.68rem;
  line-height: 1.35;
}

.flow-detail-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  color: #1f2937;
  font-size: 0.72rem;
  font-weight: 900;
  list-style-position: outside;
}

.flow-detail-panel[open] summary {
  margin-bottom: 0.56rem;
}

.summary-open {
  display: none;
}

.outline-detail.is-open .summary-collapsed {
  display: none;
}

.outline-detail.is-open .summary-open {
  display: inline;
}

.scenario-compare-summary {
  display: grid;
  gap: 0.34rem;
  margin-top: 0.18rem;
}

.scenario-compare-summary p,
.flow-detail-panel .flow-save-status {
  margin: 0;
}

.calculation-transparency {
  display: grid;
  gap: 0.65rem;
}

.calc-section {
  display: grid;
  gap: 0.34rem;
}

.calc-section h3 {
  margin: 0;
  color: #657084;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calc-section dl {
  display: grid;
  gap: 0.22rem;
  margin: 0;
}

.calc-row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.45fr) 1fr;
  gap: 0.45rem;
  padding: 0.18rem 0;
  border-bottom: 1px solid #eef3f9;
}

.calc-row dt {
  color: #657084;
  font-size: 0.66rem;
  font-weight: 900;
}

.calc-row dd {
  margin: 0;
  color: #1f2937;
  font-size: 0.67rem;
  line-height: 1.32;
}

.comparison-table-wrap,
.constraint-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.outline-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.comparison-table,
.constraint-table,
.outline-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.45rem;
  font-size: 0.66rem;
}

.comparison-table th,
.comparison-table td,
.constraint-table th,
.constraint-table td,
.outline-table th,
.outline-table td {
  border-bottom: 1px solid #e5ebf5;
  padding: 0.34rem 0.36rem;
  text-align: left;
  vertical-align: top;
}

.comparison-table th,
.constraint-table th,
.outline-table th {
  color: #657084;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.constraint-table {
  min-width: 760px;
}

.what-if-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.1rem;
}

.what-if-actions button {
  min-height: 28px;
  font-size: 0.66rem;
  padding: 0.28rem 0.35rem;
}

.what-if-actions .what-if-reset-button {
  border-color: rgba(161, 92, 0, 0.42);
  background: #fff8ed;
  color: #8a4d00;
}

.what-if-actions .what-if-save-button {
  border-color: #155eef;
  background: #155eef;
  color: #ffffff;
}

.what-if-actions .what-if-save-button.hidden {
  display: none;
}

.what-if-summary {
  display: grid;
  gap: 0.34rem;
  margin-top: 0.5rem;
  border: 1px solid #d8e1ef;
  border-radius: 7px;
  background: #fbfdff;
  padding: 0.5rem;
}

.what-if-summary-heading {
  display: grid;
  gap: 0.08rem;
}

.what-if-summary-heading span {
  color: #657084;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.what-if-summary-heading strong {
  color: #111827;
  font-size: 0.78rem;
}

.what-if-summary p,
.what-if-summary li {
  color: #536176;
  font-size: 0.68rem;
  line-height: 1.32;
}

.what-if-summary p,
.what-if-summary ul {
  margin: 0;
}

.what-if-summary ul {
  display: grid;
  gap: 0.22rem;
  padding-left: 1rem;
}

.what-if-summary li strong {
  color: #1f2937;
}

.output-mode-tabs {
  display: inline-flex;
  width: 100%;
  border: 1px solid #cfd9e8;
  border-radius: 7px;
  overflow: hidden;
}

.output-mode-tabs button {
  flex: 1 1 0;
  min-height: 27px;
  border-radius: 0;
  background: #ffffff;
  color: #526071;
  font-size: 0.63rem;
  font-weight: 900;
  padding: 0.28rem 0.18rem;
}

.output-mode-tabs button + button {
  border-left: 1px solid #cfd9e8;
}

.output-mode-tabs button.is-active {
  background: #1d5cff;
  color: #ffffff;
}

.canvas-output-mode-tabs {
  width: auto;
  min-width: 174px;
  flex: 0 0 auto;
}

.canvas-output-mode-tabs button {
  min-height: 28px;
  min-width: 54px;
  padding: 0.28rem 0.34rem;
}

.flow-metrics {
  display: grid;
  grid-template-columns: repeat(13, minmax(78px, 1fr));
  gap: 0.3rem;
  min-width: 1120px;
}

.flow-metrics .metric {
  position: relative;
  min-height: 38px;
  border: 1px solid #d8e1ef;
  border-radius: 6px;
  background: #fbfdff;
  padding: 0.34rem 0.42rem;
}

.flow-metrics .metric h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 0.15rem;
  color: #637188;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.05;
}

.metric-info {
  position: relative;
  width: 12px;
  height: 12px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #b8c6d9;
  border-radius: 50%;
  color: #536176;
  cursor: help;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
}

.metric-tooltip {
  position: absolute;
  top: calc(100% + 0.28rem);
  right: 0.4rem;
  z-index: 30;
  width: min(245px, calc(100% - 0.8rem));
  display: block;
  border: 1px solid #c3cfdf;
  border-radius: 6px;
  background: #111827;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  padding: 0.5rem 0.55rem;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  transform: translateY(-2px);
  transition: opacity 60ms ease, transform 60ms ease, visibility 60ms ease;
  visibility: hidden;
  white-space: normal;
}

.metric:has(.metric-info:hover) .metric-tooltip,
.metric:has(.metric-info:focus) .metric-tooltip,
.metric:has(.metric-info:focus-visible) .metric-tooltip,
.flow-result-card:has(.metric-info:hover) .metric-tooltip,
.flow-result-card:has(.metric-info:focus) .metric-tooltip,
.flow-result-card:has(.metric-info:focus-visible) .metric-tooltip,
.metric.show-tooltip .metric-tooltip,
.flow-result-card.show-tooltip .metric-tooltip {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.metric:has(.metric-info:hover),
.metric:has(.metric-info:focus),
.metric:has(.metric-info:focus-visible),
.metric.show-tooltip,
.flow-result-card:has(.metric-info:hover),
.flow-result-card:has(.metric-info:focus),
.flow-result-card:has(.metric-info:focus-visible),
.flow-result-card.show-tooltip {
  z-index: 5;
}

.flow-metrics .metric p {
  color: #111827;
  font-size: 0.76rem;
  line-height: 1;
}

.flow-outputs .flow-metrics {
  grid-template-columns: 1fr;
  gap: 0.32rem;
  min-width: 0;
}

.flow-outputs .flow-metrics .metric {
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  row-gap: 0.16rem;
  padding: 0.38rem 0.45rem;
}

.flow-outputs .flow-metrics .metric h3 {
  margin: 0;
  font-size: 0.55rem;
  line-height: 1.1;
}

.flow-outputs .flow-metrics .metric p {
  font-size: 0.78rem;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}

.flow-canvas-wrap {
  min-height: 0;
  overflow: hidden;
  background-color: #f7fbff;
  background-image:
    linear-gradient(#e5edf7 1px, transparent 1px),
    linear-gradient(90deg, #e5edf7 1px, transparent 1px),
    linear-gradient(#f0f5fb 1px, transparent 1px),
    linear-gradient(90deg, #f0f5fb 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}

.outline-detail {
  border-top: 1px solid #d8e1ef;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  margin: 0;
  max-height: none;
  overflow: hidden;
  background: #ffffff;
  padding: 0;
}

.outline-detail.is-open {
  display: flex;
  flex-direction: column;
  height: var(--outline-height, 280px);
  max-height: 520px;
  min-height: 150px;
  overflow: hidden;
}

.outline-toggle {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0.58rem 0.62rem;
  border-bottom: 1px solid #d8e1ef;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  color: #1f2937;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: left;
}

.outline-toggle:focus-visible {
  outline: 2px solid #155eef;
  outline-offset: -2px;
}

.outline-panel {
  min-height: 0;
  display: none;
  flex: 1 1 0;
  flex-direction: column;
}

.outline-detail.is-open .outline-panel {
  display: flex;
}

.outline-resize-handle {
  display: block;
  flex: 0 0 auto;
  position: relative;
  justify-self: stretch;
  margin: 0.08rem 0;
  height: 12px;
  min-height: 12px;
  pointer-events: all;
  cursor: ns-resize;
  touch-action: none;
}

.outline-resize-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: #c7d4e6;
  transform: translate(-50%, -50%);
}

.outline-resize-handle:hover::after {
  background: #155eef;
}

body.is-resizing-outline {
  cursor: ns-resize;
  user-select: none;
}

.model-outline {
  display: grid;
  gap: 0.75rem;
  margin-top: 0;
  flex: 1 1 0;
  height: 0;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-color: #97a9c3 #edf2f8;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  padding: 0.56rem 0.62rem 0.62rem;
  -webkit-overflow-scrolling: touch;
}

.model-outline::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.model-outline::-webkit-scrollbar-track {
  background: #edf2f8;
}

.model-outline::-webkit-scrollbar-thumb {
  border: 3px solid #edf2f8;
  border-radius: 999px;
  background: #97a9c3;
}

.model-outline::-webkit-scrollbar-thumb:hover {
  background: #647895;
}

.outline-table-wrap h3 {
  margin: 0.45rem 0 0;
  color: #657084;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.outline-table {
  min-width: 0;
  table-layout: fixed;
}

.outline-table th,
.outline-table td {
  overflow-wrap: anywhere;
}

.outline-table tr[data-outline-node],
.outline-table tr[data-outline-link] {
  cursor: pointer;
}

.outline-table tr[data-outline-node]:hover,
.outline-table tr[data-outline-link]:hover,
.outline-table tr[data-outline-node]:focus,
.outline-table tr[data-outline-link]:focus {
  background: #f2f6fc;
  outline: none;
}

.flow-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.34);
  padding: 1rem;
}

.flow-confirm-overlay.hidden {
  display: none;
}

.flow-confirm-dialog {
  width: min(360px, 100%);
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  padding: 1rem;
}

.flow-confirm-dialog h2 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  line-height: 1.2;
}

.flow-confirm-dialog p {
  margin: 0.55rem 0 0;
  color: #536176;
  font-size: 0.86rem;
  line-height: 1.45;
}

.flow-confirm-input {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.72rem;
  color: #4b5567;
  font-size: 0.72rem;
  font-weight: 800;
}

.flow-confirm-input.hidden {
  display: none;
}

.flow-confirm-input input {
  min-height: 34px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.flow-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.flow-page-nav {
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-left: 0;
}

.flow-page-nav {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.flow-page-nav .aislewise-brand,
.flow-page-nav .aislewise-nav-actions,
.flow-page-nav .aislewise-link-button {
  border-color: #111111;
}

.flow-page-nav .aislewise-brand {
  height: 100%;
  border-right: 0;
  padding: 0 0.45rem 0 0;
}

.flow-page-nav-center {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.flow-page-menu {
  position: relative;
  z-index: 40;
}

.flow-page-menu > summary {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-content: center;
  gap: 0.22rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  list-style: none;
}

.flow-page-menu > summary::-webkit-details-marker {
  display: none;
}

.flow-page-menu > summary span {
  width: 1rem;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: #111111;
}

.flow-page-menu > summary:hover,
.flow-page-menu[open] > summary {
  border-color: #111111;
  background: #eeeeee;
}

.flow-page-menu-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  min-width: 13.5rem;
  display: none;
  overflow: hidden;
  border: 1px solid #111111;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%);
}

.flow-page-menu[open] .flow-page-menu-panel,
.flow-page-menu:hover .flow-page-menu-panel {
  display: grid;
}

.flow-page-menu-panel a {
  color: #111111;
  font-size: 0.9rem;
  font-weight: 750;
  padding: 0.78rem 1rem;
  text-decoration: none;
}

.flow-page-menu-panel > a + a,
.flow-page-menu-panel > a + .flow-menu-group,
.flow-page-menu-panel > .flow-menu-group + a,
.flow-page-menu-panel > .flow-menu-group + .flow-menu-group {
  border-top: 1px solid #dddddd;
}

.flow-page-menu-panel a:hover,
.flow-page-menu-panel a:focus-visible {
  background: #eeeeee;
}

.flow-menu-group {
  display: grid;
}

.flow-menu-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 1rem;
  color: #111111;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

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

.flow-menu-group summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}

.flow-menu-group[open] summary::after {
  transform: translateY(0.12rem) rotate(225deg);
}

.flow-menu-group summary:hover,
.flow-menu-group summary:focus-visible {
  background: #eeeeee;
}

.flow-menu-submenu {
  display: grid;
  padding: 0.35rem 0;
  border-top: 1px solid #dddddd;
  background: #f7f7f7;
}

.flow-page-menu-panel .flow-menu-submenu a {
  padding-left: 1.45rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.flow-page-menu-panel .flow-menu-submenu a + a {
  border-top: 1px solid #e4e4e4;
}

.flow-canvas-wrap #flowCanvas {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.flow-inspector section + section {
  margin-top: 0.72rem;
}

.flow-inspector h2 {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -0.6rem 0.48rem;
  padding: 0.52rem 0.6rem 0.5rem;
  border-bottom: 1px solid #e5ebf5;
  background: #ffffff;
}

.inspector-empty {
  border: 1px dashed #b6c5db;
  border-radius: 8px;
  color: #5b687b;
  padding: 0.75rem;
}

.flow-inspector .editor-grid {
  gap: 0.32rem;
}

.flow-inspector textarea {
  min-height: 44px;
}

.flow-inspector input,
.flow-inspector select,
.flow-inspector textarea {
  min-height: 28px;
  padding: 0.28rem 0.38rem;
}

.flow-inspector section,
.flow-outputs section {
  padding-bottom: 1rem;
}

.flow-inspector .alerts {
  padding-left: 1.05rem;
}

.node-connections {
  position: sticky;
  bottom: -0.6rem;
  z-index: 15;
  border-top: 1px solid #e5ebf5;
  background: #ffffff;
  margin: 0 -0.6rem -0.6rem;
  padding: 0.45rem 0.6rem 0.55rem;
}

.node-connections h3 {
  margin: 0 0 0.32rem;
  color: #657084;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.node-connections ul {
  display: grid;
  gap: 0.26rem;
  margin: 0;
  padding-left: 1rem;
}

.node-connections li {
  display: grid;
  gap: 0.12rem;
  color: #334155;
  font-size: 0.82rem;
}

.node-connections li span {
  color: #657084;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.node-connections li strong {
  color: #1f2937;
  font-size: 0.8rem;
}

.daily-layout-inspector .node-connections {
  position: static;
  margin: 0.1rem 0 0;
}

.daily-process-layout .daily-layout-inspector {
  overflow: visible;
  overflow-y: visible;
  overscroll-behavior: auto;
  overscroll-behavior-y: auto;
}

.network-alerts {
  margin-top: 0.45rem;
}

@media (max-width: 1200px) {
  .flow-main-area {
    grid-template-columns: 258px minmax(420px, 1fr) 258px;
  }
}

@media (max-width: 820px) {
  .flow-map-body {
    overflow: auto;
  }

  .flow-map-app {
    height: auto;
    max-height: none;
    min-height: 100vh;
    min-height: 100dvh;
  }

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

  .flow-tab-rail,
  .flow-inspector,
  .flow-outputs {
    max-height: 420px;
  }

  .flow-canvas-wrap {
    min-height: 520px;
  }

  .ribbon-blocks,
  .ribbon-plan,
  .ribbon-inputs,
  .ribbon-review {
    min-width: 0;
  }
}

/* Aislewise homepage and Operations Flow header refresh */
body:has(.homepage) {
  background:
    radial-gradient(circle at 16% 12%, rgba(21, 94, 239, 0.15), transparent 28rem),
    radial-gradient(circle at 88% 6%, rgba(15, 118, 110, 0.14), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4f9 100%);
}

.homepage {
  padding: 1rem;
}

.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 10;
  border: 1px solid rgba(207, 217, 232, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(18, 34, 56, 0.08);
  backdrop-filter: blur(14px);
  padding: 0.6rem 0.7rem;
}

.brand-symbol {
  border-color: rgba(21, 94, 239, 0.34);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(21, 94, 239, 0.18), transparent 42%),
    linear-gradient(90deg, transparent 45%, rgba(15, 118, 110, 0.34) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(21, 94, 239, 0.25) 45% 55%, transparent 55%),
    #ffffff;
}

.site-nav a {
  border-radius: 999px;
}

.site-nav a:hover {
  background: #eef5ff;
}

.homepage-hero {
  min-height: min(690px, calc(100vh - 120px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.55fr);
  align-items: end;
  gap: clamp(1rem, 4vw, 3rem);
  border: 1px solid rgba(205, 216, 231, 0.45);
  border-radius: 28px;
  margin-top: 1rem;
  background:
    linear-gradient(115deg, rgba(8, 16, 28, 0.9), rgba(12, 28, 44, 0.58) 52%, rgba(12, 31, 44, 0.24)),
    radial-gradient(circle at 78% 22%, rgba(142, 232, 216, 0.24), transparent 18rem),
    url("future%20consideration/Roller%20Conveyor.jpg") center / cover;
  box-shadow: 0 30px 90px rgba(18, 34, 56, 0.18);
}

.homepage-hero::before,
.homepage-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.homepage-hero::before {
  inset: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
}

.homepage-hero::after {
  right: -5rem;
  bottom: -6rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 94, 239, 0.24), transparent 68%);
}

.hero-content,
.hero-signal-panel {
  position: relative;
  z-index: 1;
}

.homepage-hero h1 {
  letter-spacing: -0.06em;
}

.button {
  border-radius: 999px;
}

.homepage-hero .button.primary {
  box-shadow: 0 14px 30px rgba(8, 16, 28, 0.22);
}

.homepage-hero .button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.hero-signal-panel {
  display: grid;
  gap: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(8, 19, 32, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 50px rgba(8, 16, 28, 0.24);
  backdrop-filter: blur(14px);
  padding: 1.15rem;
}

.hero-signal-panel > span {
  color: #8ee8d8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-signal-panel > strong {
  color: #ffffff;
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-signal-grid {
  display: grid;
  gap: 0.55rem;
}

.hero-signal-grid div {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.65rem;
}

.hero-signal-grid em {
  color: #8ee8d8;
  font-style: normal;
  font-weight: 900;
}

.hero-signal-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.overview-strip {
  overflow: hidden;
  border-color: rgba(207, 217, 232, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(18, 34, 56, 0.07);
}

.system-grid {
  grid-template-columns: 1.15fr repeat(2, minmax(0, 0.9fr));
}

.system-card {
  border-color: rgba(207, 217, 232, 0.9);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
    radial-gradient(circle at 82% 12%, rgba(21, 94, 239, 0.09), transparent 9rem);
  box-shadow: 0 16px 40px rgba(18, 34, 56, 0.06);
}

.system-card-featured {
  background:
    linear-gradient(180deg, rgba(11, 24, 38, 0.08), rgba(11, 24, 38, 0.9)),
    url("future%20consideration/Screenshot%202025-11-30%20at%2010.11.01%E2%80%AFPM.png") center / cover;
}

.workflow-steps span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
}

.flow-product-header {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-bottom: 1px solid rgba(199, 212, 230, 0.92);
  background:
    radial-gradient(circle at 12% 18%, rgba(21, 94, 239, 0.14), transparent 20rem),
    radial-gradient(circle at 90% 10%, rgba(15, 118, 110, 0.13), transparent 18rem),
    linear-gradient(135deg, #ffffff 0%, #f3f8ff 58%, #edf6f3 100%);
}

.flow-product-header::after {
  content: "";
  position: absolute;
  right: 24rem;
  bottom: 0;
  width: 18rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21, 94, 239, 0.38), transparent);
}

.flow-product-copy,
.flow-product-panel {
  position: relative;
  z-index: 1;
}

.flow-product-kicker {
  font-size: 0.68rem;
}

.flow-product-header h1 {
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  letter-spacing: -0.04em;
}

.flow-product-subtitle {
  max-width: 54rem;
  margin-top: 0.34rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.38;
}

.flow-product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.72rem;
}

.flow-product-pills span {
  border: 1px solid rgba(201, 215, 235, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #334155;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.32rem 0.52rem;
}

.flow-product-panel {
  display: grid;
  gap: 0.34rem;
  justify-items: start;
  border: 1px solid rgba(199, 212, 230, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 36px rgba(18, 34, 56, 0.08);
  padding: 0.78rem;
}

.flow-product-panel span {
  color: #0f766e;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-product-panel strong {
  color: #172033;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
}

.flow-product-panel p {
  margin: 0;
  color: #536176;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.35;
}

.flow-home-link {
  width: fit-content;
  border: 1px solid rgba(21, 94, 239, 0.16);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 0.34rem 0.68rem;
}

.flow-tabs {
  gap: 0.42rem;
  padding: 0.46rem 0.65rem;
}

.flow-tabs button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f3f6fb;
  font-weight: 900;
  min-height: 32px;
  padding: 0.42rem 0.78rem;
}

.flow-tabs button.is-active {
  border-color: rgba(21, 94, 239, 0.22);
  box-shadow: 0 8px 18px rgba(21, 94, 239, 0.13);
  background: #eef5ff;
}

@media (max-width: 1100px) {
  .homepage-hero,
  .system-grid,
  .flow-product-header {
    grid-template-columns: 1fr;
  }

  .homepage-hero {
    min-height: auto;
  }

  .hero-signal-panel {
    max-width: 620px;
  }

  .flow-product-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .flow-product-panel p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    border-radius: 16px;
  }

  .homepage-hero {
    border-radius: 20px;
    padding: 1.4rem;
  }

  .homepage-hero::before {
    inset: 0.6rem;
    border-radius: 16px;
  }

  .flow-product-header {
    min-height: auto;
    padding: 0.85rem;
  }

  .flow-product-pills {
    gap: 0.32rem;
  }

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

  .flow-tabs {
    overflow-x: auto;
  }
}

/* Aislewise reference-inspired homepage refresh */
body:has(.homepage) {
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 216, 77, 0.28), transparent 26rem),
    radial-gradient(circle at 88% 6%, rgba(188, 171, 255, 0.28), transparent 28rem),
    linear-gradient(180deg, #fffaf0 0%, #f7f3ff 56%, #f8fbff 100%);
}

.site-header {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.brand-mark {
  font-weight: 950;
}

.brand-symbol {
  overflow: hidden;
  position: relative;
  border-color: #0f172a;
  background: #0f172a;
  color: #ffe35b;
}

.brand-symbol::before {
  content: "A";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffe35b;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.site-nav a {
  color: #293241;
}

.site-nav a:hover {
  background: #fff0a8;
  color: #0f172a;
}

.homepage-hero {
  min-height: min(720px, calc(100vh - 112px));
  align-items: center;
  border-color: rgba(15, 23, 42, 0.12);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.72), transparent 16rem),
    radial-gradient(circle at 22% 88%, rgba(188, 171, 255, 0.38), transparent 24rem),
    linear-gradient(135deg, #fff4c6 0%, #ffe35b 48%, #f4dcff 100%);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.12);
  color: #0b0f18;
}

.homepage-hero::before {
  border-color: rgba(15, 23, 42, 0.1);
}

.homepage-hero::after {
  background:
    radial-gradient(circle, rgba(15, 23, 42, 0.08), transparent 68%);
}

.homepage-hero .eyebrow {
  color: #4d2b00;
}

.homepage-hero h1 {
  max-width: 9ch;
  color: #09090b;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.82;
  letter-spacing: -0.095em;
}

.homepage-hero p:not(.eyebrow) {
  color: rgba(15, 23, 42, 0.78);
  font-weight: 650;
}

.homepage-hero .button.primary {
  background: #09090b;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.homepage-hero .button.secondary {
  border-color: rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.58);
  color: #0f172a;
}

.hero-signal-panel {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14);
}

.hero-signal-panel > span,
.hero-signal-grid em {
  color: #6b3f00;
}

.hero-signal-panel > strong {
  color: #0f172a;
}

.hero-signal-grid div {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.68);
}

.hero-signal-grid p {
  color: rgba(15, 23, 42, 0.82);
}

.overview-strip,
.system-card,
.workflow-steps span {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.system-card {
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.08);
}

.system-card:hover {
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.system-card-featured {
  background:
    linear-gradient(180deg, rgba(9, 9, 11, 0.04), rgba(9, 9, 11, 0.9)),
    url("future%20consideration/Screenshot%202025-11-30%20at%2010.11.01%E2%80%AFPM.png") center / cover;
}

.section-heading h2,
.workflow-band h2 {
  letter-spacing: -0.07em;
}

/* Aislewise startup brand skin: visual polish only, no workspace layout changes */
:root {
  --bg: #f6f9fc;
  --panel: #ffffff;
  --border: #d7e4f1;
  --text: #1d2b3a;
  --muted: #667488;
  --accent: #2563eb;
  --accent-soft: #e7f0ff;
  --accent-green: #0d9488;
  --ink: #0f172a;
}

body {
  background:
    radial-gradient(circle at 8% -4%, rgba(37, 99, 235, 0.1), transparent 24rem),
    radial-gradient(circle at 92% -8%, rgba(13, 148, 136, 0.08), transparent 26rem),
    var(--bg);
}

.homepage .button.primary {
  background: linear-gradient(135deg, #2563eb, #155eef);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.homepage .button.secondary {
  border: 1px solid rgba(37, 99, 235, 0.13);
  background: #eef5ff;
  color: #1e4fd8;
  box-shadow: none;
}

.brand-mark {
  color: #0f172a;
  letter-spacing: -0.02em;
}

.brand-symbol {
  border-color: rgba(37, 99, 235, 0.38);
  background:
    radial-gradient(circle at 72% 24%, rgba(20, 184, 166, 0.48), transparent 35%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(13, 148, 136, 0.74));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.homepage-hero {
  background:
    linear-gradient(115deg, rgba(7, 15, 28, 0.92), rgba(11, 28, 48, 0.64) 52%, rgba(11, 35, 42, 0.28)),
    radial-gradient(circle at 78% 22%, rgba(20, 184, 166, 0.28), transparent 18rem),
    url("future%20consideration/Roller%20Conveyor.jpg") center / cover;
}

.homepage-hero .eyebrow,
.hero-signal-panel > span,
.hero-signal-grid em {
  color: #9ff3e8;
}

.system-card:hover {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.12);
}

/* Rebuilt Aislewise homepage inspired by Vareto-style SaaS landing structure */
.aislewise-home-body {
  background:
    linear-gradient(180deg, #fbfbff 0%, #efeaff 56%, #ffffff 100%);
  color: #08080a;
}

.aislewise-homepage {
  max-width: none;
  width: min(1440px, calc(100vw - 2rem));
  padding: 0;
}

.aislewise-nav {
  position: relative;
  z-index: 1000;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  overflow: visible;
  border-right: 1px solid #191919;
  border-bottom: 1px solid #191919;
  border-left: 1px solid #191919;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.aislewise-brand,
.aislewise-nav-links,
.aislewise-nav-actions {
  display: flex;
  align-items: center;
}

.aislewise-brand {
  gap: 0.68rem;
  padding: 0 1.55rem;
  border-right: 1px solid #191919;
  color: #050505;
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.aislewise-mark {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #050505;
  color: #dcd4ff;
  font-size: 1.1rem;
  font-weight: 950;
}

.aislewise-nav-links {
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
  padding: 0 1rem;
}

.aislewise-nav-links a,
.aislewise-link-button,
.aislewise-cta-button {
  color: #222225;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.aislewise-nav-actions {
  border-left: 1px solid #191919;
}

.aislewise-link-button,
.aislewise-cta-button {
  height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 1.25rem;
}

.aislewise-link-button {
  border-right: 1px solid #191919;
}

.aislewise-cta-button {
  background: #d8cdfd;
}

.aislewise-hero {
  min-height: 520px;
  display: grid;
  justify-items: center;
  align-content: center;
  border-right: 1px solid #191919;
  border-left: 1px solid #191919;
  padding: clamp(4rem, 9vw, 8.5rem) 1.5rem 3.5rem;
  text-align: center;
}

.aislewise-eyebrow {
  margin: 0 0 1rem;
  color: #211833;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aislewise-hero h1 {
  max-width: 13ch;
  margin: 0;
  color: #050505;
  font-size: clamp(4.2rem, 9.6vw, 8.8rem);
  font-weight: 430;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.aislewise-hero-copy {
  max-width: 680px;
  margin: 1.8rem 0 1.45rem;
  color: #191919;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 500;
  line-height: 1.42;
}

.aislewise-demo-form {
  display: flex;
  justify-content: center;
  gap: 0.62rem;
  margin-bottom: 1.2rem;
}

.aislewise-demo-form input {
  width: min(280px, 54vw);
  height: 38px;
  border: 1px solid #9c9c9c;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  padding: 0 0.75rem;
}

.aislewise-demo-form button {
  height: 40px;
  min-width: 150px;
  border: 0;
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  font-weight: 750;
  box-shadow: none;
}

.aislewise-hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.aislewise-hero-links a {
  border: 1px solid rgba(25, 25, 25, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  color: #151515;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.34rem 0.66rem;
  text-decoration: none;
}

.aislewise-product-frame {
  border-right: 1px solid #191919;
  border-left: 1px solid #191919;
  padding: 0 1.5rem 5rem;
}

.aislewise-app-preview {
  width: min(1180px, 100%);
  min-height: 500px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  overflow: hidden;
  margin: 0 auto;
  border: 8px solid rgba(255, 255, 255, 0.64);
  background: #ffffff;
  box-shadow: 0 36px 90px rgba(77, 62, 153, 0.22);
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 1rem;
  border-right: 1px solid #dfe0e6;
  background: #f4f4f7;
  padding: 1.2rem;
}

.preview-logo {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
  background: #060606;
  color: #d8cdfd;
  font-weight: 900;
}

.preview-sidebar strong {
  margin-bottom: 0.25rem;
  color: #0d0d0f;
  font-size: 1.12rem;
}

.preview-sidebar-items {
  display: grid;
  grid-template-rows: repeat(3, auto);
  gap: 0.82rem;
  margin-top: 0.5rem;
}

.preview-sidebar-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #33363d;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.76rem 0.82rem;
  cursor: default;
}

.preview-sidebar-item.is-active {
  background: #d8cdfd;
  color: #0c0718;
}

.preview-table-wrap {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
  padding: 22px;
}

.preview-toolbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e5e5eb;
  border-radius: 18px;
  background: #ffffff;
  padding: 1rem 1.15rem;
}

.preview-toolbar span {
  display: block;
  color: #777984;
  font-size: 0.76rem;
  font-weight: 700;
}

.preview-toolbar strong {
  color: #101114;
  font-size: 1.05rem;
}

.preview-avatars {
  display: flex;
}

.preview-avatars span {
  width: 1.65rem;
  height: 1.65rem;
  display: block;
  margin-left: -0.35rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8cdfd, #ffe4a3);
}

.preview-grid {
  display: grid;
  padding: 0.85rem;
}

.preview-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.65fr 0.9fr 0.75fr;
  min-width: 680px;
  border-bottom: 1px solid #e8e8ee;
}

.preview-row span {
  min-height: 48px;
  display: flex;
  align-items: center;
  border-right: 1px solid #ececf2;
  color: #292b31;
  font-size: 0.88rem;
  padding: 0 0.74rem;
}

.preview-head span {
  min-height: 38px;
  background: #f8f8fa;
  color: #6c6f79;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-row .pill-good,
.preview-row .pill-watch,
.preview-row .pill-risk {
  width: fit-content;
  min-height: 0;
  align-self: center;
  justify-self: start;
  border: 0;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.28rem 0.56rem;
}

.pill-good { background: #e7f7ec; color: #13795b; }
.pill-watch { background: #fff4d8; color: #8a5a00; }
.pill-risk { background: #ffe5ea; color: #9d1738; }

.aislewise-proof-strip,
.aislewise-products,
.aislewise-workflow {
  border-right: 1px solid #191919;
  border-left: 1px solid #191919;
  background: #ffffff;
}

.aislewise-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #191919;
  border-bottom: 1px solid #191919;
}

.aislewise-proof-strip article {
  min-height: 230px;
  display: grid;
  align-content: end;
  gap: 0.75rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.aislewise-proof-strip article + article {
  border-left: 1px solid #191919;
}

.aislewise-proof-strip span,
.aislewise-product-cards span {
  color: #6e56cf;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aislewise-proof-strip strong,
.aislewise-product-cards strong {
  color: #050505;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.aislewise-proof-strip p,
.aislewise-product-cards p {
  margin: 0;
  color: #52545d;
  line-height: 1.5;
}

.aislewise-products {
  padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 4vw, 3rem);
}

.aislewise-section-heading {
  max-width: 740px;
  margin-bottom: 1.6rem;
}

.aislewise-section-heading h2,
.aislewise-workflow h2 {
  margin: 0;
  color: #050505;
  font-size: clamp(2.4rem, 5.8vw, 5.8rem);
  font-weight: 520;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.aislewise-product-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.aislewise-product-cards a {
  min-height: 280px;
  display: grid;
  align-content: end;
  gap: 0.7rem;
  border: 1px solid #d9d9e3;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8f7ff);
  padding: 1.3rem;
  text-decoration: none;
}

.aislewise-product-cards a:hover {
  border-color: #6e56cf;
  box-shadow: 0 24px 60px rgba(74, 54, 139, 0.12);
  transform: translateY(-2px);
}

.aislewise-workflow {
  display: grid;
  justify-items: center;
  border-top: 1px solid #191919;
  padding: clamp(3rem, 7vw, 6rem) 1.5rem;
  text-align: center;
}

.aislewise-workflow h2 {
  max-width: 12ch;
}

.aislewise-workflow-lines {
  display: grid;
  gap: 0.45rem;
  width: min(760px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
  color: #050505;
  font-size: clamp(2.1rem, 4.2vw, 4.4rem);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.aislewise-workflow-lines li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.aislewise-workflow div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.aislewise-workflow span {
  border: 1px solid #191919;
  border-radius: 999px;
  color: #111111;
  font-weight: 800;
  padding: 0.72rem 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .aislewise-nav {
    grid-template-columns: 1fr;
  }

  .aislewise-brand,
  .aislewise-nav-links,
  .aislewise-nav-actions {
    min-height: 52px;
    border-right: 0;
    border-bottom: 1px solid #191919;
    justify-content: center;
  }

  .aislewise-nav-actions {
    border-left: 0;
    border-bottom: 0;
  }

  .aislewise-app-preview,
  .aislewise-proof-strip,
  .aislewise-product-cards {
    grid-template-columns: 1fr;
  }

  .aislewise-proof-strip article + article {
    border-top: 1px solid #191919;
    border-left: 0;
  }

  .preview-sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  .aislewise-homepage {
    width: 100%;
  }

  .aislewise-hero {
    min-height: auto;
    padding: 4rem 1rem 2rem;
  }

  .aislewise-hero h1 {
    font-size: clamp(3.1rem, 18vw, 5rem);
  }

  .aislewise-demo-form {
    width: min(340px, 100%);
    flex-direction: column;
  }

  .aislewise-demo-form input,
  .aislewise-demo-form button {
    width: 100%;
  }

  .aislewise-product-frame {
    padding: 0 0.7rem 2.5rem;
  }
}

/* Aislewise homepage monochrome pass: white/black/grey with subtle red shading only */
.aislewise-home-body {
  background:
    radial-gradient(circle at 10% 8%, rgba(190, 38, 38, 0.1), transparent 26rem),
    radial-gradient(circle at 92% 0%, rgba(20, 20, 20, 0.06), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f4f4f4 58%, #ffffff 100%);
  color: #050505;
}

.aislewise-nav {
  background: rgba(255, 255, 255, 0.9);
  border-color: #111111;
}

.aislewise-brand,
.aislewise-nav-actions,
.aislewise-link-button {
  border-color: #111111;
}

.aislewise-mark {
  background: #050505;
  color: #ffffff;
}

.aislewise-nav-links a,
.aislewise-link-button,
.aislewise-cta-button {
  color: #111111;
}

.aislewise-cta-button {
  background: #e9e9e9;
}

.aislewise-hero {
  border-color: #111111;
  background:
    radial-gradient(circle at 20% 18%, rgba(190, 38, 38, 0.09), transparent 24rem),
    radial-gradient(circle at 78% 70%, rgba(0, 0, 0, 0.055), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}

.aislewise-eyebrow,
.aislewise-proof-strip span,
.aislewise-product-cards span {
  color: #515151;
}

.aislewise-hero-copy,
.aislewise-proof-strip p,
.aislewise-product-cards p {
  color: #555555;
}

.aislewise-demo-form input {
  border-color: #9b9b9b;
  background: #ffffff;
}

.aislewise-demo-form button,
.homepage .button.primary,
.aislewise-hero .button.primary {
  background: #050505;
  color: #ffffff;
}

.aislewise-hero-links a,
.homepage .button.secondary,
.aislewise-hero .button.secondary {
  border-color: rgba(17, 17, 17, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #111111;
}

.aislewise-product-frame,
.aislewise-proof-strip,
.aislewise-products,
.aislewise-workflow {
  border-color: #111111;
  background: #ffffff;
}

.aislewise-app-preview {
  border-color: #ffffff;
  background: #ffffff;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.12),
    0 18px 70px rgba(190, 38, 38, 0.08);
}

.preview-sidebar {
  background: #f2f2f2;
  border-color: #d7d7d7;
}

.preview-logo {
  background: #050505;
  color: #ffffff;
}

.preview-sidebar-item.is-active {
  background: #111111;
  color: #ffffff;
}

.preview-toolbar,
.preview-row,
.preview-row span {
  border-color: #e1e1e1;
}

.preview-head span {
  background: #f5f5f5;
  color: #666666;
}

.preview-row .pill-good,
.preview-row .pill-watch,
.preview-row .pill-risk {
  background: #eeeeee;
  color: #222222;
}

.aislewise-proof-strip article + article,
.aislewise-workflow,
.aislewise-workflow span {
  border-color: #111111;
}

.aislewise-product-cards a {
  border-color: #d8d8d8;
  background:
    radial-gradient(circle at 90% 8%, rgba(190, 38, 38, 0.055), transparent 10rem),
    linear-gradient(180deg, #ffffff, #f6f6f6);
}

.aislewise-product-cards a:hover {
  border-color: #111111;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.11),
    0 12px 44px rgba(190, 38, 38, 0.06);
}

/* Strict Aislewise homepage palette: white, black, grey, red only */
.aislewise-home-body {
  background:
    radial-gradient(circle at 12% 8%, rgba(180, 24, 24, 0.09), transparent 28rem),
    radial-gradient(circle at 86% 4%, rgba(0, 0, 0, 0.055), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f3f3f3 58%, #ffffff 100%) !important;
}

.aislewise-nav,
.aislewise-hero,
.aislewise-product-frame,
.aislewise-proof-strip,
.aislewise-products,
.aislewise-workflow {
  border-color: #111111 !important;
}

.aislewise-mark,
.preview-logo,
.preview-sidebar-item.is-active,
.aislewise-demo-form button,
.aislewise-hero .button.primary,
.homepage .button.primary {
  background: #050505 !important;
  color: #ffffff !important;
}

.aislewise-cta-button,
.preview-sidebar,
.preview-head span,
.aislewise-product-cards a,
.aislewise-hero-links a,
.aislewise-hero .button.secondary,
.homepage .button.secondary {
  background: #eeeeee !important;
  color: #111111 !important;
}

.aislewise-hero {
  background:
    radial-gradient(circle at 16% 18%, rgba(180, 24, 24, 0.08), transparent 25rem),
    radial-gradient(circle at 80% 72%, rgba(0, 0, 0, 0.055), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%) !important;
}

.aislewise-product-cards a {
  background:
    radial-gradient(circle at 92% 10%, rgba(180, 24, 24, 0.055), transparent 10rem),
    linear-gradient(180deg, #ffffff, #f4f4f4) !important;
}

.aislewise-eyebrow,
.aislewise-proof-strip span,
.aislewise-product-cards span,
.hero-signal-panel > span,
.hero-signal-grid em,
.homepage-hero .eyebrow {
  color: #555555 !important;
}

.aislewise-hero h1,
.aislewise-section-heading h2,
.aislewise-workflow h2,
.aislewise-proof-strip strong,
.aislewise-product-cards strong,
.aislewise-brand,
.aislewise-nav-links a,
.aislewise-link-button,
.aislewise-cta-button {
  color: #050505 !important;
}

.aislewise-hero-copy,
.aislewise-proof-strip p,
.aislewise-product-cards p,
.preview-toolbar span,
.preview-row span {
  color: #555555 !important;
}

.aislewise-app-preview,
.aislewise-product-cards a:hover {
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.12),
    0 16px 70px rgba(180, 24, 24, 0.07) !important;
}

.preview-row .pill-good,
.preview-row .pill-watch,
.preview-row .pill-risk {
  background: #e7e7e7 !important;
  color: #222222 !important;
}

/* Operations Flow header centering fix */
.flow-page-nav.aislewise-nav {
  min-height: 58px !important;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  padding: 0 !important;
  border-right: 0 !important;
  border-left: 0 !important;
}

.flow-page-nav .flow-page-nav-center {
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  height: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.18rem !important;
  transform: translateX(-50%) !important;
}

.flow-page-nav .aislewise-brand {
  min-height: 58px !important;
  height: 58px !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  padding: 0 0.38rem 0 0 !important;
}

.flow-page-nav .flow-page-menu {
  height: 58px;
  display: inline-flex;
  align-items: center;
}

.flow-page-nav .flow-page-menu-panel {
  left: auto;
  right: 0;
  transform: none;
}

.aislewise-homepage .aislewise-nav {
  grid-template-columns: auto minmax(0, 1fr);
}

.aislewise-homepage {
  position: relative;
  isolation: isolate;
}

.aislewise-homepage .aislewise-nav-links {
  gap: 0;
  justify-content: flex-end;
}

.aislewise-homepage .aislewise-nav-links > a,
.aislewise-homepage .aislewise-nav-dropdown-trigger {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 1.45rem !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0;
  white-space: nowrap;
}

.aislewise-nav-dropdown {
  position: relative;
  z-index: 1001;
  display: inline-flex;
  align-items: stretch;
}

.aislewise-nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 16px;
}

.aislewise-nav-dropdown-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 0 1.45rem;
  font: inherit;
  font-weight: 800;
  color: #050505;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.aislewise-nav-dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.48rem;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-0.16rem) rotate(45deg);
}

.aislewise-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1002;
  min-width: max-content;
  padding: 8px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.15), 0 18px 56px rgba(160, 20, 20, 0.07);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.aislewise-nav-dropdown:hover .aislewise-nav-dropdown-menu,
.aislewise-nav-dropdown-trigger[aria-expanded="true"] + .aislewise-nav-dropdown-menu,
.aislewise-nav-dropdown.is-open .aislewise-nav-dropdown-menu {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.aislewise-nav-dropdown-menu a {
  display: block;
  min-height: auto;
  padding: 0.92rem 1rem;
  color: #111111 !important;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  border-radius: 12px;
}

.aislewise-nav-dropdown-menu a:hover,
.aislewise-nav-dropdown-menu a:focus {
  background: #eeeeee;
}

.aislewise-homepage .aislewise-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(76px, 8vw, 122px) !important;
  padding-bottom: clamp(34px, 5vw, 70px) !important;
}

.aislewise-homepage .aislewise-hero > *:not(.homepage-flow-backdrop) {
  position: relative;
  z-index: 2;
}

.aislewise-homepage .aislewise-hero h1 {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(2.8rem, 5.9vw, 6.25rem) !important;
  font-weight: 850;
  line-height: 0.98 !important;
  letter-spacing: -0.025em !important;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
}

.aislewise-homepage .aislewise-hero-copy {
  max-width: 720px;
  margin-top: 1.4rem !important;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem) !important;
  line-height: 1.55 !important;
}

.aislewise-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1040px, calc(100% - 36px));
  margin: clamp(34px, 4.5vw, 56px) auto 0;
  overflow: hidden;
  text-align: left;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.08), 0 20px 70px rgba(140, 20, 20, 0.055);
}

.aislewise-hero-stats article {
  display: grid;
  gap: 0.68rem;
  padding: clamp(1.25rem, 2.4vw, 1.9rem);
  background: rgba(255, 255, 255, 0.94);
}

.aislewise-hero-stats span {
  color: #777777;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aislewise-hero-stats strong {
  color: #050505;
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  letter-spacing: -0.035em;
}

.aislewise-hero-stats p {
  margin: 0;
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.48;
}

.aislewise-homepage .aislewise-product-frame {
  padding-top: clamp(16px, 2.5vw, 34px) !important;
  padding-bottom: 0 !important;
}

.aislewise-homepage .aislewise-app-preview {
  border-radius: 24px !important;
}

.aislewise-homepage .aislewise-proof-strip {
  margin-top: 0 !important;
}

.aislewise-homepage .aislewise-proof-strip article {
  padding: clamp(1.35rem, 2.2vw, 2rem) !important;
}

.aislewise-homepage .aislewise-proof-strip strong {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem) !important;
  letter-spacing: -0.035em;
}

.aislewise-homepage .aislewise-products {
  padding-top: clamp(40px, 5vw, 56px) !important;
  padding-bottom: 0 !important;
}

.aislewise-homepage .aislewise-section-heading {
  max-width: 920px;
}

.aislewise-homepage .aislewise-section-heading h2,
.aislewise-homepage .aislewise-workflow h2 {
  font-size: clamp(2.1rem, 4.4vw, 4.6rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.065em !important;
}

.aislewise-homepage .aislewise-workflow-lines {
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.aislewise-homepage .aislewise-product-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

.aislewise-homepage .aislewise-product-cards a {
  min-height: 230px;
  padding: clamp(1.35rem, 2.4vw, 2rem) !important;
  border-radius: 24px !important;
}

.aislewise-homepage .aislewise-product-cards span {
  color: #6b6b6b !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aislewise-homepage .aislewise-product-cards strong {
  font-size: clamp(1.55rem, 2.8vw, 2.45rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.055em;
}

.aislewise-homepage .aislewise-product-cards p {
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.55;
}

.aislewise-homepage .aislewise-workflow {
  margin-top: 0 !important;
  padding-top: clamp(34px, 4vw, 52px) !important;
  padding-bottom: clamp(68px, 9vw, 112px) !important;
}

.aislewise-homepage .aislewise-workflow > div {
  gap: 0.7rem !important;
  max-width: 920px;
}

.aislewise-homepage .aislewise-workflow > div span {
  padding: 0.95rem 1.1rem !important;
  color: #111111;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
}


.preview-flow-studio {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  background: #f7f7f7;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.preview-flow-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  color: #141414;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.preview-flow-toolbar span,
.preview-flow-toolbar em {
  color: #6b6b6b;
  font-size: 0.82rem;
  font-style: normal;
}

.preview-flow-toolbar strong {
  font-size: 0.98rem;
}

.preview-flow-canvas {
  position: relative;
  min-height: 386px;
  background:
    radial-gradient(circle at 80% 18%, rgba(148, 18, 18, 0.09), transparent 24%),
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    #fbfbfb;
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.preview-grid-line {
  position: absolute;
  background: rgba(0, 0, 0, 0.06);
}

.preview-grid-line.line-v-1,
.preview-grid-line.line-v-2,
.preview-grid-line.line-v-3 {
  top: 0;
  bottom: 0;
  width: 1px;
}

.preview-grid-line.line-v-1 {
  left: 22%;
}

.preview-grid-line.line-v-2 {
  left: 50%;
}

.preview-grid-line.line-v-3 {
  left: 76%;
}

.preview-grid-line.line-h-1,
.preview-grid-line.line-h-2 {
  left: 0;
  right: 0;
  height: 1px;
}

.preview-grid-line.line-h-1 {
  top: 36%;
}

.preview-grid-line.line-h-2 {
  top: 68%;
}

.preview-flow-line {
  position: absolute;
  top: 184px;
  height: 2px;
  background: #4f4f4f;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.preview-flow-line-1 {
  left: 16.8%;
  width: 6.2%;
}

.preview-flow-line-2 {
  left: 37.4%;
  width: 5.5%;
}

.preview-flow-line-3 {
  left: 58.1%;
  width: 5.1%;
}

.preview-flow-line-4 {
  left: 77.5%;
  width: 4.8%;
}

.preview-flow-node {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 5px;
  place-items: center;
  min-width: 118px;
  padding: 15px 16px;
  color: #111111;
  text-align: center;
  background: #ffffff;
  border: 2px solid #1a1a1a;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.preview-flow-node small {
  color: #565656;
  font-size: 0.74rem;
}

.preview-node-start {
  top: 148px;
  left: 4%;
  border-radius: 999px;
}

.preview-node-dock {
  top: 148px;
  left: 23%;
}

.preview-node-quality {
  top: 148px;
  left: 43%;
  border-color: #7f1717;
  box-shadow: 0 18px 34px rgba(127, 23, 23, 0.12);
}

.preview-node-storage {
  top: 148px;
  left: 63%;
  border-radius: 999px;
}

.preview-node-finish {
  top: 148px;
  left: 82%;
  right: auto;
  border-radius: 8px 24px 24px 8px;
}

.preview-results-panel {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 5px;
  width: 206px;
  padding: 16px;
  color: #111111;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.12);
}

.preview-results-panel span {
  color: #6b6b6b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-results-panel small {
  color: #565656;
}

@media (max-width: 900px) {
  .aislewise-homepage .aislewise-nav {
    grid-template-columns: 1fr;
  }

  .aislewise-homepage .aislewise-nav-links {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    width: 100%;
    padding: 0;
  }

  .aislewise-homepage .aislewise-nav-links > a,
  .aislewise-homepage .aislewise-nav-dropdown-trigger {
    width: 100%;
    min-height: 48px;
    padding: 0.82rem 1rem !important;
  }

  .aislewise-nav-dropdown {
    width: 100%;
  }

  .aislewise-nav-dropdown-trigger {
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-left: 0;
  }

  .aislewise-nav-dropdown-menu {
    left: 0;
    right: auto;
    min-width: 100%;
    transform: translate(0, -6px);
  }

  .aislewise-nav-dropdown:hover .aislewise-nav-dropdown-menu,
  .aislewise-nav-dropdown-trigger[aria-expanded="true"] + .aislewise-nav-dropdown-menu,
  .aislewise-nav-dropdown.is-open .aislewise-nav-dropdown-menu {
    transform: translate(0, 0);
  }

  .aislewise-hero-stats,
  .aislewise-homepage .aislewise-product-cards {
    grid-template-columns: 1fr !important;
  }

  .preview-flow-canvas {
    min-height: 620px;
  }

  .preview-flow-line {
    display: none;
  }

  .preview-flow-node {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .preview-node-start {
    top: 32px;
  }

  .preview-node-dock {
    top: 130px;
  }

  .preview-node-quality {
    top: 228px;
  }

  .preview-node-storage {
    top: 326px;
  }

  .preview-node-finish {
    top: 424px;
  }

  .preview-results-panel {
    right: 50%;
    bottom: 20px;
    transform: translateX(50%);
  }
}

.omniplan-page {
  background:
    radial-gradient(circle at 88% 12%, rgba(155, 22, 22, 0.08), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
}

.omniplan-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(78px, 9vw, 132px) 0 clamp(38px, 5vw, 74px);
  text-align: center;
}

.omniplan-hero h1 {
  max-width: 1080px;
  margin: 0 auto;
  color: #050505;
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(2.75rem, 5.8vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
}

.omniplan-hero p:last-child {
  max-width: 760px;
  margin: 1.45rem auto 0;
  color: #555555;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.56;
}

.omniplan-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 28px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.1), 0 18px 70px rgba(160, 20, 20, 0.06);
}

.omniplan-overview article {
  display: grid;
  gap: 0.72rem;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  background: rgba(255, 255, 255, 0.94);
}

.omniplan-overview span,
.omniplan-preview-header span,
.omniplan-metrics span {
  color: #6b6b6b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.omniplan-overview strong {
  color: #050505;
  font-size: clamp(1.15rem, 1.8vw, 1.48rem);
  letter-spacing: -0.035em;
}

.omniplan-overview p {
  margin: 0;
  color: #555555;
  line-height: 1.52;
}

.omniplan-preview {
  width: min(1120px, calc(100% - 36px));
  margin: clamp(48px, 7vw, 86px) auto 0;
}

.omniplan-preview-card {
  padding: clamp(1.15rem, 2vw, 1.6rem);
  background:
    radial-gradient(circle at 86% 8%, rgba(155, 22, 22, 0.1), transparent 17rem),
    #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.13), 0 18px 70px rgba(155, 22, 22, 0.06);
}

.omniplan-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.4rem 1.3rem;
  color: #111111;
}

.omniplan-preview-header strong {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.omniplan-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.omniplan-metrics article {
  display: grid;
  gap: 0.35rem;
  padding: clamp(1rem, 2vw, 1.45rem);
  background: #f2f2f2;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

.omniplan-metrics strong {
  color: #050505;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.omniplan-metrics small {
  color: #555555;
}

.omniplan-capacity-bar {
  height: 22px;
  margin: 1.25rem 0;
  overflow: hidden;
  background: #e4e4e4;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}

.omniplan-capacity-bar span {
  display: block;
  width: 82%;
  height: 100%;
  background:
    linear-gradient(90deg, #111111 0%, #3b3b3b 72%, rgba(155, 22, 22, 0.72) 100%);
  border-radius: inherit;
}

.omniplan-callout {
  display: grid;
  gap: 0.4rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  color: #111111;
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
}

.omniplan-callout p {
  margin: 0;
  color: #555555;
}

.omniplan-roadmap {
  width: min(1040px, calc(100% - 36px));
  margin: clamp(72px, 9vw, 112px) auto 0;
  padding-bottom: clamp(70px, 9vw, 112px);
  text-align: center;
}

.omniplan-roadmap h2 {
  max-width: 820px;
  margin: 0 auto;
  color: #050505;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.omniplan-roadmap div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.omniplan-roadmap span {
  padding: 0.9rem 1.05rem;
  color: #111111;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
}

@media (max-width: 900px) {
  .omniplan-overview,
  .omniplan-metrics {
    grid-template-columns: 1fr;
  }

  .omniplan-preview-header {
    display: grid;
  }
}

.content-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 12%, rgba(155, 22, 22, 0.07), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.content-hero {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 124px) 0 clamp(34px, 5vw, 68px);
  text-align: center;
}

.content-hero h1 {
  max-width: 980px;
  margin: 0 auto;
  color: #050505;
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(2.75rem, 5.8vw, 6.1rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
}

.content-hero p:last-child {
  max-width: 720px;
  margin: 1.35rem auto 0;
  color: #555555;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.55;
}

.blog-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 1rem;
  align-items: end;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto clamp(28px, 4vw, 46px);
  padding: clamp(1rem, 2vw, 1.35rem);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.08), 0 16px 60px rgba(155, 22, 22, 0.05);
}

.blog-controls label,
.contact-form label {
  display: grid;
  gap: 0.48rem;
}

.blog-controls label span,
.contact-form label span {
  color: #555555;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-controls input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  color: #111111;
  font: inherit;
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  outline: none;
}

.blog-controls input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #111111;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.blog-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-filter-buttons button,
.contact-form button {
  min-height: 44px;
  padding: 0.72rem 1rem;
  color: #111111;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  background: #eeeeee;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
}

.blog-filter-buttons button.is-active,
.contact-form button {
  color: #ffffff;
  background: #050505;
}

.blog-controls > p {
  margin: 0;
  color: #555555;
  font-weight: 800;
  white-space: nowrap;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.blog-card {
  display: grid;
  gap: 0.82rem;
  min-height: 250px;
  padding: clamp(1.2rem, 2vw, 1.55rem);
  color: #111111;
  text-decoration: none;
  background:
    radial-gradient(circle at 92% 8%, rgba(155, 22, 22, 0.075), transparent 12rem),
    #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
}

.blog-card:hover,
.blog-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12), 0 18px 60px rgba(155, 22, 22, 0.06);
}

.blog-card span,
.contact-aside span {
  color: #6b6b6b;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-card strong {
  color: #050505;
  font-size: clamp(1.22rem, 2vw, 1.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.blog-card p,
.blog-card small {
  margin: 0;
  color: #555555;
  line-height: 1.48;
}

.blog-posts {
  display: grid;
  gap: 1rem;
  width: min(900px, calc(100% - 36px));
  margin: clamp(52px, 7vw, 86px) auto 0;
  padding-bottom: clamp(72px, 9vw, 112px);
}

.blog-post {
  padding: clamp(1.35rem, 2.4vw, 2rem);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 26px;
}

.blog-post h2 {
  margin: 0;
  color: #050505;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.blog-post p:not(.aislewise-eyebrow) {
  color: #555555;
  font-size: 1.03rem;
  line-height: 1.62;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
  padding-bottom: clamp(72px, 9vw, 112px);
}

.contact-form,
.contact-aside {
  padding: clamp(1.2rem, 2.4vw, 2rem);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1), 0 18px 70px rgba(155, 22, 22, 0.05);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-status {
  min-height: 1.4rem;
  margin: 0;
  color: #555555;
  font-weight: 800;
}

.contact-aside {
  align-self: start;
  display: grid;
  gap: 0.85rem;
}

.contact-aside strong {
  color: #050505;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.contact-aside p {
  margin: 0;
  color: #555555;
  line-height: 1.58;
}

.contact-aside a {
  color: #111111;
  font-weight: 900;
}

.service-page {
  background:
    radial-gradient(circle at 14% 18%, rgba(155, 22, 22, 0.06), transparent 22rem),
    radial-gradient(circle at 86% 12%, rgba(0, 0, 0, 0.045), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.service-hero h1 {
  max-width: 920px;
}

.service-offerings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 28px;
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.1), 0 18px 70px rgba(155, 22, 22, 0.05);
}

.service-offerings article {
  display: grid;
  align-content: start;
  gap: 0.72rem;
  min-height: 255px;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  background: rgba(255, 255, 255, 0.94);
}

.service-offerings span {
  color: #6b6b6b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-offerings strong {
  color: #050505;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.service-offerings p {
  margin: 0;
  color: #555555;
  line-height: 1.56;
}

.service-cta {
  display: grid;
  gap: 0.85rem;
  width: min(880px, calc(100% - 36px));
  margin: clamp(42px, 6vw, 76px) auto 0;
  padding: clamp(1.35rem, 2.6vw, 2rem);
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 28px;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.09), 0 16px 60px rgba(155, 22, 22, 0.05);
}

.service-cta strong {
  color: #050505;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.service-cta p {
  max-width: 620px;
  margin: 0 auto;
  color: #555555;
  line-height: 1.58;
}

.service-cta a {
  justify-self: center;
  margin-top: 0.35rem;
  padding: 0.86rem 1.15rem;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  background: #050505;
  border-radius: 999px;
}

@media (max-width: 1050px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-controls,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .blog-grid,
  .contact-field-grid,
  .service-offerings {
    grid-template-columns: 1fr;
  }
}

.aislewise-product-frame,
.aislewise-proof-strip,
.aislewise-products,
.aislewise-workflow,
.blog-controls,
.blog-grid,
.blog-posts,
.contact-layout,
.omniplan-overview,
.omniplan-preview,
.omniplan-roadmap,
.service-offerings,
.service-cta {
  content-visibility: auto;
  contain-intrinsic-size: 1px 520px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Readable page title scale */
.homepage-hero h1,
.aislewise-homepage .aislewise-hero h1,
.omniplan-hero h1,
.content-hero h1 {
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
}

.homepage-hero h1,
.aislewise-homepage .aislewise-hero h1 {
  font-size: 3.75rem !important;
}

.omniplan-hero h1 {
  font-size: 3.6rem;
}

.content-hero h1 {
  font-size: 3.35rem;
}

.aislewise-homepage .aislewise-section-heading h2,
.aislewise-homepage .aislewise-workflow h2,
.omniplan-roadmap h2 {
  font-size: 2.55rem !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.aislewise-homepage .aislewise-workflow-lines {
  font-size: 2.55rem !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.daily-header h1 {
  font-size: 2rem;
  line-height: 1.08;
}

@media (max-width: 900px) {
  .homepage-hero h1,
  .aislewise-homepage .aislewise-hero h1 {
    font-size: 2.75rem !important;
  }

  .omniplan-hero h1,
  .content-hero h1 {
    font-size: 2.6rem;
  }

  .aislewise-homepage .aislewise-section-heading h2,
  .aislewise-homepage .aislewise-workflow h2,
  .omniplan-roadmap h2 {
    font-size: 2.2rem !important;
  }

  .aislewise-homepage .aislewise-workflow-lines {
    font-size: 2.2rem !important;
  }
}

@media (max-width: 640px) {
  .homepage-hero h1,
  .aislewise-homepage .aislewise-hero h1 {
    font-size: 2.15rem !important;
  }

  .omniplan-hero h1,
  .content-hero h1 {
    font-size: 2.05rem;
  }

  .aislewise-homepage .aislewise-section-heading h2,
  .aislewise-homepage .aislewise-workflow h2,
  .omniplan-roadmap h2 {
    font-size: 1.85rem !important;
  }

  .aislewise-homepage .aislewise-workflow-lines {
    font-size: 1.85rem !important;
  }

  .daily-header h1 {
    font-size: 1.55rem;
  }
}
