:root {
  color-scheme: light;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-muted: #edf4ef;
  --surface-tint: #f8fbf7;
  --border: #d7dfd6;
  --text: #1f2f2a;
  --heading: #123c34;
  --primary: #245f52;
  --primary-dark: #103d34;
  --accent: #b8734d;
  --blue: #3f6f86;
  --gold: #a8832e;
  --coral: #b76a55;
  --ink: #233c46;
  --muted: #64736e;
  --danger: #b42318;
  --danger-bg: #fde8e7;
  --warning: #8a5a00;
  --warning-bg: #fbf1dc;
  --success: #2f695b;
  --success-bg: #f0f5ef;
  --info-bg: #f3f1ea;
  --shadow-soft: 0 1px 2px rgba(24, 63, 54, 0.04);
  --shadow-lifted: 0 14px 30px rgba(18, 60, 52, 0.12);
  --radius-card: 8px;
  --radius-control: 6px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(36, 95, 82, 0.09), transparent 28%),
    linear-gradient(180deg, #f7f8f4 0%, #fbfaf6 44%, #f5f8f3 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(215, 223, 214, 0.9);
  background: rgba(255, 255, 255, 0.94);
  padding: 10px max(16px, calc((100vw - 1180px) / 2));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.app-nav-brand,
.app-nav-links,
.app-nav-back {
  display: inline-flex;
  align-items: center;
}

.app-nav-brand {
  gap: 9px;
  color: var(--heading);
  text-decoration: none;
  white-space: nowrap;
}

.report-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(18, 60, 52, 0.36);
  padding: 24px;
  backdrop-filter: blur(4px);
}

.report-loading-overlay[hidden] {
  display: none;
}

.report-loading-dialog {
  width: min(360px, 100%);
  border: 1px solid rgba(215, 223, 214, 0.95);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lifted);
  padding: 22px;
  text-align: center;
}

.report-loading-spinner {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border: 4px solid var(--surface-muted);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: report-loading-spin 780ms linear infinite;
}

.report-loading-dialog strong {
  display: block;
  color: var(--heading);
  font-size: 1.08rem;
}

.report-loading-dialog p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.is-report-loading {
  cursor: progress;
}

@keyframes report-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.app-nav-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--heading);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

.app-nav-links {
  flex: 1;
  flex-wrap: wrap;
  gap: 6px;
}

.app-nav-links a,
.app-nav-back {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--heading);
  padding: 6px 9px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.app-nav-links a:hover,
.app-nav-back:hover {
  border-color: var(--border);
  background: var(--surface-muted);
  transform: none;
}

.app-nav-back {
  width: auto;
  min-width: auto;
  box-shadow: none;
}

.narrow-shell {
  width: min(760px, calc(100% - 32px));
}

.medium-shell {
  width: min(980px, calc(100% - 32px));
}

.form-shell {
  width: min(860px, calc(100% - 32px));
}

header,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
}

.panel[data-collapsible-ready="true"] {
  padding: 0;
  overflow: hidden;
}

.panel-toggle {
  width: 100%;
  min-height: 58px;
  justify-content: space-between;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--heading);
  padding: 18px;
  box-shadow: none;
  font-size: 1.45rem;
  font-weight: 900;
  text-align: left;
}

.panel-toggle:hover {
  background: var(--surface-tint);
  color: var(--heading);
  transform: none;
}

.panel-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.panel-toggle-icon::before,
.panel-toggle-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.panel-toggle-icon::after {
  transform: rotate(90deg);
}

.panel.is-open .panel-toggle-icon::after {
  transform: rotate(0deg);
}

.collapsible-panel-body {
  padding: 0 18px 18px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-shell {
  width: min(1220px, calc(100% - 32px));
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  position: relative;
  min-height: 250px;
  border: 1px solid rgba(36, 95, 82, 0.22);
  background:
    linear-gradient(135deg, rgba(18, 60, 52, 0.96) 0%, rgba(36, 95, 82, 0.93) 54%, rgba(184, 115, 77, 0.86) 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(18, 60, 52, 0.16);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -72px;
  top: -90px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.dashboard-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.dashboard-hero h1 {
  margin: 26px 0 10px;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 0.95;
}

.dashboard-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  font-weight: 650;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  color: #fff;
  font-size: 1.02rem;
}

.brand-lockup span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.hero-action-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: min(430px, 100%);
}

.hawkin-sync-feedback {
  width: min(430px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-card);
  background: rgba(7, 45, 39, 0.46);
  color: #fff;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(7, 45, 39, 0.16);
  backdrop-filter: blur(8px);
}

.hawkin-sync-feedback[hidden] {
  display: none;
}

.hawkin-sync-feedback-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.hawkin-sync-feedback-header strong,
.hawkin-sync-feedback-header span {
  display: block;
}

.hawkin-sync-feedback-header strong {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.2;
}

.hawkin-sync-feedback-header span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hawkin-sync-feedback time {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.hawkin-sync-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: #fff;
  border-radius: 999px;
  animation: hawkin-sync-spin 850ms linear infinite;
}

.hawkin-sync-feedback.is-complete .hawkin-sync-spinner,
.hawkin-sync-feedback.is-partial .hawkin-sync-spinner,
.hawkin-sync-feedback.is-error .hawkin-sync-spinner {
  animation: none;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.18);
}

.hawkin-sync-feedback.is-error {
  border-color: rgba(255, 214, 210, 0.74);
  background: rgba(91, 21, 16, 0.5);
}

.hawkin-sync-feedback.is-partial {
  border-color: rgba(255, 232, 184, 0.76);
  background: rgba(88, 58, 6, 0.42);
}

.hawkin-sync-track {
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.hawkin-sync-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width 260ms ease;
}

.hawkin-sync-feedback.is-complete .hawkin-sync-track span {
  background: #cceadc;
}

.hawkin-sync-feedback.is-partial .hawkin-sync-track span {
  background: #ffe2a6;
}

.hawkin-sync-feedback.is-error .hawkin-sync-track span {
  background: #ffc8c3;
}

.hawkin-sync-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.hawkin-sync-steps li {
  position: relative;
  min-width: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.hawkin-sync-steps li::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin-bottom: 4px;
  border-radius: 999px;
  background: currentColor;
}

.hawkin-sync-steps li.is-current,
.hawkin-sync-steps li.is-done {
  color: #fff;
}

.hawkin-sync-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.hawkin-sync-summary[hidden] {
  display: none;
}

.hawkin-sync-summary div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-control);
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.hawkin-sync-summary dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.62rem;
}

.hawkin-sync-summary dd {
  margin-top: 2px;
  color: #fff;
  font-size: 1rem;
}

.hawkin-sync-notes {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
}

.hawkin-sync-notes[hidden] {
  display: none;
}

.hawkin-sync-notes li + li {
  margin-top: 4px;
}

@keyframes hawkin-sync-spin {
  to {
    transform: rotate(360deg);
  }
}

.detail-header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 22px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--heading);
  letter-spacing: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.08;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1.18;
}

h3 {
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.22;
}

p {
  margin-top: 0;
}

a {
  color: var(--primary);
  font-weight: 700;
}

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

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

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.compact-actions {
  margin-top: 0;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.button,
.button-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--heading);
  border-radius: var(--radius-control);
  background: var(--heading);
  color: #fff;
  padding: 8px 12px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.button-link:hover,
button:hover {
  border-color: var(--primary);
  background: var(--primary);
  transform: translateY(-1px);
}

.button:disabled,
.button-link:disabled,
button:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.button.primary,
button.primary {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.button.secondary,
.button-link.secondary,
button.secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--heading);
}

.button.secondary:hover,
.button-link.secondary:hover,
button.secondary:hover {
  background: var(--surface-muted);
  color: var(--heading);
}

.button.danger,
button.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.button.danger:hover,
button.danger:hover {
  border-color: #8f1c13;
  background: #8f1c13;
}

.button.light,
button.light {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.button.light:hover,
button.light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.button:focus-visible,
.button-link:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 105, 91, 0.18);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dashboard-panel {
  padding: 24px;
}

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

.section-heading h2 {
  margin-bottom: 3px;
}

.section-heading p {
  margin: 0;
}

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

.dashboard-link {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  min-height: 188px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  background: linear-gradient(180deg, #fff 0%, var(--surface-tint) 100%);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-link:hover {
  border-color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow-lifted);
  transform: translateY(-2px);
}

.dashboard-link strong,
.dashboard-link span,
.dashboard-link em {
  display: block;
}

.dashboard-link strong {
  color: var(--heading);
  font-size: 1.12rem;
}

.dashboard-link span {
  color: var(--muted);
  font-weight: 500;
}

.dashboard-link em {
  justify-self: start;
  min-width: 78px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 7px 11px;
  color: var(--primary-dark);
  font-style: normal;
  font-weight: 850;
  text-align: center;
}

.module-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.dashboard-link .module-logo,
.stat-card .module-logo {
  color: #fff;
}

.module-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.module-logo-green {
  background: var(--primary);
}

.module-logo-blue {
  background: var(--blue);
}

.module-logo-gold {
  background: var(--gold);
}

.module-logo-coral {
  background: var(--coral);
}

.module-logo-ink {
  background: var(--ink);
}

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

.stat-card {
  min-height: 132px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px;
  background: var(--surface-tint);
}

.stat-card .module-logo {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
}

.stat-card .module-icon {
  width: 19px;
  height: 19px;
}

.stat-card dd {
  font-size: 1.85rem;
  line-height: 1.05;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--heading);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

tbody tr:hover {
  background: rgba(237, 244, 239, 0.45);
}

.raw-datetime {
  white-space: nowrap;
}

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

.app-list-table {
  min-width: 860px;
  table-layout: fixed;
}

.app-list-table th,
.app-list-table td {
  padding: 6px 8px;
  vertical-align: middle;
}

.app-list-table tbody tr {
  min-height: 44px;
}

.table-primary {
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.18;
}

.table-primary a {
  color: var(--heading);
  text-decoration: none;
}

.table-primary a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.table-secondary,
.table-inline-meta {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
}

.table-secondary {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.table-inline-meta {
  display: inline;
}

.table-chip-row,
.table-action-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-chip-row {
  flex-wrap: wrap;
}

.table-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-tint);
  color: var(--heading);
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}

.table-action-row {
  flex-wrap: nowrap;
}

.icon-action,
button.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  flex: 0 0 28px;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--heading);
  padding: 0;
  box-shadow: none;
  font: inherit;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-action:hover,
button.icon-action:hover {
  border-color: var(--primary);
  background: var(--surface-muted);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.danger-icon-action,
button.danger-icon-action {
  border-color: rgba(180, 35, 24, 0.28);
  background: var(--surface);
  color: var(--danger);
  padding: 0;
}

.danger-icon-action:hover,
button.danger-icon-action:hover {
  border-color: var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
}

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

.app-list-table .badge {
  min-height: 20px;
  padding: 2px 7px;
  font-size: 0.7rem;
}

.test-list-table,
.test-library-table {
  min-width: 1120px;
}

.test-image-cell {
  width: 112px;
}

.test-thumb,
.test-thumb-placeholder {
  width: 88px;
  height: 64px;
  border-radius: var(--radius-control);
}

.test-thumb {
  display: block;
  object-fit: cover;
  border: 1px solid var(--border);
}

.test-thumb-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.test-actions-cell,
.icon-action-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.test-actions-cell {
  min-width: 320px;
}

.test-actions-cell .test-row-action {
  min-height: 32px;
  padding: 6px 10px;
}

.test-image-upload-form {
  margin: 0;
}

.test-image-action svg {
  width: 16px;
  height: 16px;
}

.metric-detail-group {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  margin-top: 12px;
}

.metric-detail-group summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  color: var(--heading);
  cursor: pointer;
  font-weight: 800;
}

.metric-detail-group summary span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.metric-detail-group table {
  min-width: 860px;
  border-top: 1px solid var(--border);
}

.trial-picker-list {
  display: grid;
  gap: 10px;
}

.trial-picker {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.trial-picker[open] {
  border-color: rgba(47, 105, 91, 0.36);
  box-shadow: 0 14px 36px rgba(18, 60, 52, 0.08);
}

.trial-picker-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) minmax(90px, auto);
  align-items: center;
  gap: 18px;
  padding: 15px 16px;
  cursor: pointer;
  list-style-position: inside;
}

.trial-picker-summary::-webkit-details-marker {
  margin-right: 8px;
}

.trial-picker-test,
.trial-picker-current {
  min-width: 0;
}

.trial-picker-test strong,
.trial-picker-test em,
.trial-picker-current small,
.trial-picker-current strong {
  display: block;
}

.trial-picker-test strong {
  color: var(--heading);
  font-size: 1.05rem;
  line-height: 1.2;
}

.trial-picker-test strong small {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(47, 105, 91, 0.1);
  color: var(--primary);
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 900;
  vertical-align: middle;
  white-space: nowrap;
}

.trial-picker-test em {
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.trial-picker-current small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trial-picker-current strong {
  color: var(--heading);
  font-size: 0.98rem;
}

.trial-picker-count {
  justify-self: end;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.trial-picker-body {
  border-top: 1px solid var(--border);
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, #fbfcfa 0%, #fff 100%);
}

.trial-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.trial-picker-toolbar p {
  margin: 0;
  max-width: 780px;
}

.trial-picker-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.trial-save-state {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.trial-save-state.is-success {
  color: var(--success);
}

.trial-save-state.is-error {
  color: var(--danger);
}

.trial-picker-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-tint);
  color: var(--muted);
  padding: 10px 12px;
  font-weight: 700;
}

.trial-comparison-scroller {
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.trial-comparison-scroller:focus {
  outline: 2px solid rgba(47, 105, 91, 0.18);
  outline-offset: 2px;
}

.trial-comparison-grid {
  display: flex;
  gap: 12px;
  min-width: min-content;
}

.trial-comparison-card {
  flex: 0 0 clamp(270px, calc((100% - 36px) / 4), 330px);
  min-width: 270px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  padding: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.trial-comparison-card:hover,
.trial-comparison-card:focus {
  border-color: rgba(47, 105, 91, 0.46);
  box-shadow: 0 12px 26px rgba(18, 60, 52, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.trial-comparison-card[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.76;
  transform: none;
}

.trial-comparison-card.is-selected {
  border-color: var(--primary);
  background: var(--surface-tint);
  box-shadow: inset 0 0 0 2px rgba(47, 105, 91, 0.13);
}

.trial-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.trial-card-header strong,
.trial-card-header em {
  display: block;
}

.trial-card-header strong {
  color: var(--heading);
  line-height: 1.1;
}

.trial-card-header em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.trial-card-header b {
  border-radius: 999px;
  background: #f3f1ea;
  color: var(--muted);
  padding: 4px 8px;
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.trial-comparison-card.is-selected .trial-card-header b {
  background: var(--heading);
  color: #fff;
}

.trial-preview-plot {
  position: relative;
  margin: 0 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 9px;
}

.trial-preview-plot figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 900;
}

.trial-preview-plot figcaption em {
  color: var(--muted);
  font-style: normal;
}

.trial-preview-plot figcaption small,
.forcetime-plot figcaption small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.trial-preview-plot svg {
  display: block;
  width: 100%;
  aspect-ratio: 640 / 220;
  overflow: visible;
}

.trial-preview-empty {
  display: grid;
  place-items: center;
  min-height: 122px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 12px;
  background: #fbfcfa;
  text-align: center;
}

.trial-preview-empty strong {
  color: var(--heading);
}

.trial-preview-empty span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.trial-value-list {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 2px;
}

.trial-value-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(197, 210, 196, 0.72);
  padding-bottom: 8px;
}

.trial-value-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.trial-value-row.is-missing {
  opacity: 0.62;
}

.trial-value-row > span:first-child {
  min-width: 0;
}

.trial-value-row strong,
.trial-value-row em {
  display: block;
}

.trial-value-row strong {
  color: var(--heading);
  font-size: 0.9rem;
  line-height: 1.2;
}

.trial-value-row em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.trial-value-number {
  display: grid;
  justify-items: end;
  color: var(--heading);
  font-weight: 900;
  white-space: nowrap;
}

.trial-value-number small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.trial-delta {
  margin-top: 2px;
  border-radius: 999px;
  background: #f3f1ea;
  color: var(--muted);
  padding: 2px 6px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.trial-delta.is-reference {
  background: rgba(18, 60, 52, 0.1);
  color: var(--heading);
}

.trial-delta.is-better {
  background: var(--success-bg);
  color: var(--success);
}

.trial-delta.is-worse {
  background: var(--danger-bg);
  color: var(--danger);
}

.trial-delta.is-positive {
  background: #eef6f8;
  color: #285b68;
}

.trial-delta.is-negative {
  background: #f3f1ea;
  color: var(--muted);
}

.forcetime-list {
  display: grid;
  gap: 12px;
}

.forcetime-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.forcetime-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
}

.forcetime-card summary strong,
.forcetime-card summary em {
  display: block;
}

.forcetime-card summary strong {
  color: var(--heading);
}

.forcetime-card summary em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 700;
}

.forcetime-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  background: #f3f1ea;
  color: var(--muted);
  padding: 3px 9px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.forcetime-badge.is-selected {
  background: #edf4ef;
  color: var(--primary);
}

.forcetime-plot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.forcetime-plot {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.forcetime-plot figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--heading);
  font-weight: 800;
}

.forcetime-plot figcaption em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.forcetime-plot svg {
  display: block;
  width: 100%;
  aspect-ratio: 640 / 220;
  overflow: visible;
}

.chart-zoom-button {
  position: absolute;
  top: 42px;
  right: 12px;
  width: 34px;
  min-height: 34px;
  height: 34px;
  border: 1px solid rgba(18, 60, 52, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--heading);
  padding: 0;
  box-shadow: 0 8px 18px rgba(18, 60, 52, 0.12);
  z-index: 2;
}

.chart-zoom-button:hover,
.chart-zoom-button:focus {
  border-color: var(--primary);
  background: #fff;
  color: var(--primary);
  outline: 2px solid rgba(47, 105, 91, 0.18);
  transform: translateY(-1px);
}

.chart-zoom-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.chart-zoom-icon::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  content: "";
}

.chart-zoom-icon::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: center;
}

.chart-zoom-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0;
  box-shadow: 0 26px 70px rgba(18, 60, 52, 0.28);
}

.chart-zoom-dialog::backdrop {
  background: rgba(18, 60, 52, 0.48);
}

.chart-zoom-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.chart-zoom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chart-zoom-header strong,
.chart-zoom-header span {
  display: block;
}

.chart-zoom-header strong {
  color: var(--heading);
  font-size: 1.15rem;
}

.chart-zoom-header span {
  color: var(--muted);
  font-weight: 800;
}

.chart-zoom-close {
  flex: 0 0 auto;
}

.chart-zoom-canvas {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 16px;
  overflow: auto;
}

.chart-zoom-canvas svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: min(62vh, 560px);
}

.chart-zoom-legend .forcetime-legend {
  margin-top: 0;
}

.forcetime-axis {
  stroke: #8fa099;
  stroke-width: 1;
}

.forcetime-grid-line {
  stroke: #dbe4dd;
  stroke-width: 1;
}

.forcetime-axis-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.forcetime-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.forcetime-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.forcetime-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.forcetime-legend i {
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

code {
  color: var(--heading);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

.danger-panel {
  border-color: rgba(180, 35, 24, 0.28);
  background: #fffafa;
}

.mapping-form-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.mapping-form-grid .field {
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--heading);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c5d2c4;
  border-radius: var(--radius-control);
  min-height: 36px;
  padding: 8px 10px;
  color: var(--text);
  font: inherit;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(47, 105, 91, 0.18);
}

input[type="file"] {
  display: block;
  margin: 12px 0;
}

input[type="checkbox"] {
  width: auto;
  min-height: auto;
  accent-color: var(--primary);
}

input[type="radio"] {
  width: auto;
  min-height: auto;
  accent-color: var(--primary);
}

.field {
  min-width: 0;
  margin-bottom: 14px;
}

.session-notes-form textarea {
  min-height: 118px;
  resize: vertical;
}

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

.help-text {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.messages {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.messages li {
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-control);
  margin-bottom: 8px;
  padding: 10px 12px;
  background: var(--surface);
}

.messages .success {
  border-left-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
}

.messages .warning {
  border-left-color: var(--accent);
  background: var(--warning-bg);
  color: var(--warning);
}

.messages .error,
.errors,
.errorlist {
  color: var(--danger);
}

.messages .error {
  border-left-color: var(--danger);
  background: var(--danger-bg);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--primary);
  padding: 2px 8px;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.badge.inactive {
  background: var(--info-bg);
  color: var(--muted);
}

.errorlist {
  margin: 6px 0;
  padding-left: 18px;
}

pre {
  margin: 0;
  color: var(--danger);
  white-space: pre-wrap;
}

.wizard-create-shell,
.guided-shell {
  width: min(1240px, calc(100% - 32px));
}

.wizard-create-hero,
.guided-header {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border-color: rgba(36, 95, 82, 0.24);
  background:
    linear-gradient(135deg, rgba(18, 60, 52, 0.97) 0%, rgba(35, 60, 70, 0.94) 58%, rgba(184, 115, 77, 0.88) 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(18, 60, 52, 0.14);
}

.wizard-create-hero h1,
.guided-header h1,
.wizard-create-hero .muted,
.guided-header .muted {
  color: #fff;
}

.wizard-create-hero h1,
.guided-header h1 {
  margin-bottom: 8px;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 0.98;
}

.wizard-create-hero p,
.guided-header p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
}

.wizard-roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(86px, 1fr));
  gap: 8px;
  min-width: min(540px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-roadmap li {
  display: grid;
  gap: 7px;
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 850;
}

.wizard-roadmap li.is-active {
  background: #fff;
  color: var(--heading);
}

.wizard-roadmap span,
.guided-stepper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 950;
}

.wizard-roadmap span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.wizard-roadmap .is-active span {
  background: var(--heading);
  color: #fff;
}

.wizard-create-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(420px, 1.08fr);
  gap: 18px;
  align-items: start;
}

.wizard-protocol-panel,
.wizard-data-panel,
.guided-panel {
  padding: 22px;
}

.protocol-choice-grid {
  display: grid;
  gap: 10px;
}

.protocol-choice {
  display: grid;
  justify-content: stretch;
  min-height: 132px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff 0%, #f7fbf8 100%);
  color: var(--text);
  padding: 14px;
  text-align: left;
  box-shadow: none;
}

.protocol-choice:hover,
.protocol-choice.is-selected {
  border-color: var(--primary);
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 24px rgba(18, 60, 52, 0.11);
}

.protocol-choice.is-selected {
  outline: 3px solid rgba(47, 105, 91, 0.16);
}

.protocol-choice-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.protocol-choice-topline strong {
  color: var(--primary);
}

.protocol-choice-name {
  display: block;
  color: var(--heading);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.16;
}

.protocol-choice-meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
}

.protocol-select-field {
  margin-top: 14px;
  margin-bottom: 0;
}

.guided-protocol-picker-panel,
.guided-protocol-confirm-panel {
  min-height: 100%;
}

.guided-form-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.wizard-next-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(36, 95, 82, 0.2);
  border-radius: 8px;
  margin-top: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #f3f8f3 0%, #fff 100%);
}

.wizard-next-preview strong,
.wizard-next-preview span,
.wizard-empty-state strong,
.wizard-empty-state span {
  display: block;
}

.wizard-next-preview strong {
  color: var(--heading);
}

.wizard-next-preview span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.guided-operation-progress,
.guided-import-progress {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(36, 95, 82, 0.18);
  border-radius: 8px;
  margin-top: 10px;
  padding: 12px 14px;
  background: #fbfdfb;
}

.guided-operation-progress[hidden],
.guided-import-progress[hidden] {
  display: none;
}

.guided-operation-progress-meta,
.guided-import-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--heading);
}

.guided-operation-progress-meta strong,
.guided-import-progress-meta strong {
  font-size: 0.95rem;
}

.guided-operation-progress-meta span,
.guided-operation-progress p,
.guided-import-progress-meta span,
.guided-import-progress p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.guided-operation-progress p,
.guided-import-progress p {
  margin: 0;
}

.guided-progress-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ece6;
}

.guided-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 180ms ease;
}

.guided-operation-progress.is-error,
.guided-import-progress.is-error {
  border-color: rgba(184, 36, 28, 0.24);
  background: #fff8f8;
}

.guided-operation-progress.is-error .guided-progress-track span,
.guided-import-progress.is-error .guided-progress-track span {
  background: var(--danger, #b8241c);
}

.guided-operation-progress.is-done .guided-progress-track span {
  background: linear-gradient(90deg, var(--success), var(--primary));
}

.wizard-empty-state {
  border: 1px dashed #bdd0bc;
  border-radius: 8px;
  padding: 18px;
  background: #fbfdfb;
  color: var(--muted);
  font-weight: 650;
}

.wizard-empty-state strong {
  color: var(--heading);
  margin-bottom: 4px;
}

.guided-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.guided-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.guided-sidebar {
  position: sticky;
  top: 72px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.guided-stepper {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guided-stepper a,
.guided-status-card,
.guided-mini-stats div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.guided-stepper a {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  row-gap: 2px;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
}

.guided-stepper span {
  grid-row: span 2;
  background: var(--surface-muted);
  color: var(--primary-dark);
}

.guided-stepper strong,
.guided-stepper em {
  display: block;
}

.guided-stepper strong {
  color: var(--heading);
  font-size: 0.94rem;
}

.guided-stepper em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 750;
}

.guided-stepper .is-active a {
  border-color: var(--primary);
  background: var(--primary-dark);
  color: #fff;
}

.guided-stepper .is-active strong,
.guided-stepper .is-active em {
  color: #fff;
}

.guided-stepper .is-active span {
  background: #fff;
  color: var(--primary-dark);
}

.guided-stepper .is-done a {
  border-color: rgba(47, 105, 91, 0.26);
}

.guided-stepper .is-done span {
  background: var(--success-bg);
  color: var(--success);
}

.guided-status-card {
  padding: 16px;
}

.guided-status-card .module-logo {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 8px;
}

.guided-status-card strong {
  display: block;
  color: var(--heading);
  font-size: 1.25rem;
}

.guided-status-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.guided-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.guided-mini-stats div {
  padding: 12px;
}

.guided-mini-stats dd {
  color: var(--heading);
  font-size: 1.35rem;
}

.guided-stage {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.guided-panel {
  margin-bottom: 0;
  min-width: 0;
}

.guided-hero-panel,
.guided-toolbar,
.guided-results-header,
.guided-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guided-hero-panel {
  background:
    linear-gradient(135deg, #ffffff 0%, #f5faf7 58%, #eef5f7 100%);
}

.guided-hero-panel h2 {
  margin-bottom: 6px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.guided-hero-panel p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 650;
}

.guided-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 8px;
  margin: 0;
  min-width: 330px;
}

.guided-kpi-row div {
  border: 1px solid rgba(36, 95, 82, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.guided-kpi-row dd {
  color: var(--heading);
  font-size: 1.45rem;
  line-height: 1.05;
}

.guided-toolbar h3,
.guided-toolbar p {
  margin-bottom: 0;
}

.guided-hawkin-actions {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) repeat(3, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 14px;
  align-items: stretch;
}

.guided-hawkin-actions form {
  min-width: 0;
}

.guided-action-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 82px;
  border: 1px solid rgba(36, 95, 82, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--heading);
  padding: 12px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.guided-action-button:hover,
.guided-action-button:focus-visible {
  border-color: rgba(36, 95, 82, 0.42);
  background: #fbfdfb;
}

.guided-action-button:disabled {
  opacity: 0.68;
  cursor: wait;
}

.guided-action-button strong,
.guided-action-button em {
  display: block;
}

.guided-action-button strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.guided-action-button em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

.guided-info-dot {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(36, 95, 82, 0.22);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.guided-info-dot::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  display: none;
  width: min(280px, 70vw);
  border: 1px solid rgba(18, 60, 52, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  box-shadow: 0 8px 22px rgba(18, 60, 52, 0.12);
  content: attr(data-tooltip);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.guided-info-dot:hover::after,
.guided-info-dot:focus::after {
  display: block;
}

.guided-hawkin-actions > .guided-operation-progress {
  grid-column: 1 / -1;
}

.guided-auto-sync-status {
  display: grid;
  border: 1px solid rgba(36, 95, 82, 0.16);
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
  background: var(--surface-tint);
}

.guided-auto-sync-status span {
  color: var(--heading);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.15;
}

.guided-auto-sync-status em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.guided-filter-grid {
  grid-template-columns: 1.2fr 0.9fr 1.1fr 0.55fr;
}

.guided-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.guided-date-all-toggle input {
  flex: 0 0 auto;
}

.guided-search-form {
  border: 1px solid rgba(36, 95, 82, 0.15);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-tint);
}

.guided-alert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(184, 115, 77, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #fff 0%, #fff8f2 100%);
}

.guided-alert-card strong,
.guided-alert-card span {
  display: block;
}

.guided-alert-card strong {
  color: var(--heading);
  font-size: 1rem;
}

.guided-alert-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.guided-results-form {
  margin-top: 16px;
}

.guided-results-region {
  transition: opacity 160ms ease;
}

.guided-results-region.is-loading {
  opacity: 0.58;
}

.guided-upload-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.guided-upload-form input[type="file"] {
  max-width: 320px;
  margin: 0;
}

.guided-results-header {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding: 16px 0 10px;
}

.guided-results-header strong {
  color: var(--heading);
}

.guided-table-scroll {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.guided-results-window {
  max-height: 430px;
  overflow: auto;
}

.guided-select-table {
  min-width: 780px;
}

.guided-select-table th,
.guided-select-table td {
  padding: 10px 12px;
  font-size: 0.95rem;
  line-height: 1.25;
  vertical-align: middle;
}

.guided-select-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

.guided-select-table th:first-child,
.guided-select-table td:first-child {
  width: 42px;
  text-align: center;
}

.guided-select-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.guided-report-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.guided-report-search {
  display: grid;
  gap: 4px;
  margin-right: auto;
  min-width: min(360px, 100%);
}

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

.guided-report-search input {
  margin: 0;
  min-height: 40px;
}

.guided-report-metric-panel .guided-report-search {
  margin: 12px 14px;
  min-width: 0;
}

.guided-autosave-status {
  min-width: 110px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  text-align: right;
}

.guided-slot-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 14px;
  background: #fff;
}

.guided-slot-grid {
  display: grid;
  gap: 10px;
}

.guided-slot-grid-kpi {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guided-slot-grid-asymmetry {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.guided-report-slot {
  display: grid;
  gap: 4px;
}

.guided-report-slot label {
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 900;
}

.guided-report-slot select {
  min-width: 0;
  margin: 0;
}

.guided-report-table {
  min-width: 760px;
}

.guided-report-table th,
.guided-report-table td {
  padding: 12px;
  vertical-align: middle;
}

.guided-report-table td strong,
.guided-report-table td span {
  display: block;
}

.guided-report-table select {
  min-width: 150px;
  margin: 0;
}

.guided-report-builder {
  display: grid;
  gap: 10px;
}

.guided-report-test-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.guided-report-test-card.dragging,
.guided-report-metric-row.dragging {
  opacity: 0.55;
}

.guided-report-test-toggle {
  width: 100%;
  appearance: none;
  border: 0;
  background: var(--surface-tint);
  color: var(--heading);
  cursor: pointer;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  font-family: inherit;
  text-align: left;
}

.guided-report-test-toggle strong,
.guided-report-test-toggle em {
  display: block;
}

.guided-report-test-toggle strong {
  font-size: 1rem;
  font-weight: 900;
}

.guided-report-test-toggle em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 750;
}

.guided-toggle-icon {
  justify-self: end;
  font-size: 1.1rem;
  font-weight: 900;
}

.drag-handle {
  color: var(--muted);
  cursor: grab;
  font-weight: 900;
  line-height: 1;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.guided-report-metric-panel {
  border-top: 1px solid var(--border);
  background: #fff;
}

.guided-report-metric-head,
.guided-report-metric-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 96px minmax(150px, 220px) 128px minmax(150px, 210px);
  gap: 12px;
  align-items: center;
}

.protocol-wizard-threshold-badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  text-align: left;
  white-space: normal;
  line-height: 1.2;
}

.protocol-wizard-threshold-badge.is-missing {
  border-color: var(--warning);
  color: var(--warning);
}

.protocol-wizard-threshold-badge.is-set {
  border-color: var(--success);
  color: var(--success);
}

.guided-report-metric-head {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--heading);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.guided-report-metric-row {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.guided-report-metric-row.is-filtered-out {
  display: none;
}

.guided-report-metric-row:last-child {
  border-bottom: 0;
}

.guided-report-metric-name {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.guided-report-metric-name strong,
.guided-report-metric-name em {
  display: block;
}

.guided-report-metric-name strong {
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.2;
}

.guided-report-metric-name em {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 750;
}

.guided-report-metric-row select {
  min-width: 0;
  margin: 0;
}

.guided-report-test-row th {
  border-top: 1px solid var(--border);
  background: var(--surface-tint);
  color: var(--heading);
  padding: 12px;
  text-transform: none;
}

.guided-report-test-row strong,
.guided-report-test-row span {
  display: block;
}

.guided-report-test-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.guided-check-cell {
  text-align: center;
}

.guided-check-cell input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--heading);
}

.guided-mapping-list,
.manual-card-grid {
  display: grid;
  gap: 10px;
}

.guided-mapping-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(140px, 0.7fr) minmax(150px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.guided-mapping-card strong {
  align-self: center;
  color: var(--heading);
}

.guided-mapping-card label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

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

.guided-imported-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.guided-imported-list strong,
.guided-imported-list span {
  display: block;
}

.guided-imported-list strong {
  color: var(--heading);
}

.guided-imported-list span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

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

.manual-card {
  display: grid;
  gap: 12px;
  min-height: 156px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.manual-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lifted);
  transform: translateY(-2px);
}

.manual-card.is-complete {
  background: linear-gradient(180deg, #fff 0%, #f1f7f1 100%);
}

.manual-card-main {
  display: block;
  color: inherit;
  text-decoration: none;
}

.manual-card-status {
  justify-self: start;
  border-radius: 6px;
  background: var(--warning-bg);
  color: var(--warning);
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.manual-card.is-complete .manual-card-status {
  background: var(--success-bg);
  color: var(--success);
}

.manual-card strong {
  display: block;
  margin-top: 12px;
  color: var(--heading);
  font-size: 1.08rem;
}

.manual-card span:not(.manual-card-status),
.manual-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.manual-requirement-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(130px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.manual-requirement-form label {
  display: grid;
  gap: 4px;
}

.manual-requirement-form label span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.manual-requirement-form select {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  background: #fff;
  color: var(--heading);
  font: inherit;
  font-weight: 800;
}

.manual-requirement-status {
  align-self: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  min-width: 78px;
}

.manual-requirement-status[data-state="success"] {
  color: var(--success);
}

.manual-requirement-status[data-state="error"] {
  color: var(--danger);
}

.manual-requirement-status[data-state="dirty"],
.manual-requirement-status[data-state="queued"],
.manual-requirement-status[data-state="saving"] {
  color: var(--warning);
}

.manual-test-dialog {
  width: min(860px, calc(100% - 32px));
}

.guided-modal {
  width: min(720px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.guided-modal::backdrop {
  background: rgba(13, 37, 32, 0.42);
}

.guided-modal-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(13, 37, 32, 0.24);
}

.guided-modal-header,
.guided-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guided-modal-header h3,
.guided-modal-header p {
  margin-bottom: 0;
}

.guided-scope-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  margin: 0;
  padding: 0;
}

.guided-scope-choice legend,
.guided-metric-picker-head > strong {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 900;
}

.guided-scope-choice label,
.guided-metric-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--heading);
  font-weight: 800;
}

.guided-scope-choice label:has(input:checked),
.guided-metric-group label:has(input:checked) {
  border-color: var(--primary);
  background: var(--surface-tint);
}

.guided-scope-choice input,
.guided-metric-group input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.guided-metric-picker {
  display: grid;
  gap: 8px;
}

.guided-metric-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guided-metric-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.9rem;
}

.guided-metric-group {
  display: grid;
  gap: 8px;
  max-height: 230px;
  overflow: auto;
  padding-right: 2px;
}

.guided-metric-group[hidden] {
  display: none;
}

.guided-metric-group label span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.guided-metric-group em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 750;
}

.guided-modal-actions {
  justify-content: flex-end;
}

.protocol-preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.protocol-preview-strip span,
.protocol-preview-strip button {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-tint);
  padding: 7px 10px;
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 800;
}

.protocol-preview-strip button {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
}

.protocol-preview-strip button:hover {
  border-color: var(--brand);
  background: var(--surface);
}

.guided-footer-nav {
  margin-top: 2px;
}

@media (max-width: 800px) {
  body {
    overflow-x: hidden;
  }

  main,
  .dashboard-shell {
    width: 100%;
    max-width: 100%;
    padding: 24px 20px 40px;
  }

  .page-header,
  .dashboard-hero,
  .detail-header,
  .meta-grid,
  .dashboard-grid,
  .stat-grid,
  .mapping-form-grid,
  .field-grid,
  .wizard-create-hero,
  .guided-header,
  .wizard-create-layout,
  .guided-workspace,
  .guided-filter-grid,
  .guided-mapping-card,
  .guided-scope-choice,
  .manual-requirement-form,
  .manual-card-grid,
  .guided-slot-grid-kpi,
  .guided-slot-grid-asymmetry,
  .guided-kpi-row,
  .guided-mini-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 16px;
  }

  .app-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .app-nav-links a,
  .app-nav-back {
    min-width: 0;
    padding-inline: 7px;
    overflow-wrap: anywhere;
  }

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

  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 22px 18px;
  }

  .dashboard-hero-copy,
  .brand-lockup {
    max-width: 100%;
    min-width: 0;
  }

  .dashboard-hero h1 {
    font-size: 2.45rem;
    line-height: 1;
  }

  .dashboard-hero p {
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
  }

  .hero-action-stack {
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }

  .hero-actions .inline-form,
  .hero-actions .button,
  .hero-actions button {
    width: 100%;
    max-width: 100%;
    padding-inline: 10px;
    white-space: normal;
  }

  .hero-actions .inline-form {
    display: flex;
  }

  .hawkin-sync-feedback {
    width: 100%;
  }

  .hawkin-sync-steps,
  .hawkin-sync-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-panel .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .dashboard-panel .section-heading h2,
  .dashboard-panel .section-heading p {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .dashboard-link {
    min-width: 0;
  }

  .dashboard-link span {
    overflow-wrap: anywhere;
  }

  .wizard-roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    width: 100%;
  }

  .guided-sidebar {
    order: 2;
    position: static;
  }

  .guided-stage {
    order: 1;
  }

  .guided-hero-panel,
  .guided-alert-card,
  .guided-import-progress-meta,
  .guided-toolbar,
  .trial-picker-toolbar,
  .guided-results-header,
  .guided-footer-nav,
  .guided-modal-header,
  .guided-modal-actions,
  .guided-imported-list div,
  .forcetime-card summary,
  .wizard-next-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .guided-kpi-row {
    min-width: 0;
    width: 100%;
  }

  .guided-hawkin-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .guided-action-button {
    min-height: 74px;
  }

  .trial-picker-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .trial-picker-current,
  .trial-picker-count {
    justify-self: start;
  }

  .trial-picker-actions {
    align-items: stretch;
    width: 100%;
  }

  .trial-picker-actions button {
    flex: 1 1 auto;
  }

  .trial-comparison-card {
    flex-basis: min(304px, calc(100vw - 88px));
    min-width: min(304px, calc(100vw - 88px));
  }

  .trial-value-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .trial-value-number {
    justify-items: start;
  }

  .chart-zoom-shell {
    padding: 14px;
  }

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

  .chart-zoom-close {
    width: 100%;
  }

  .chart-zoom-canvas {
    padding: 10px;
  }

  .chart-zoom-canvas svg {
    min-width: 640px;
    height: 420px;
  }

  .guided-info-dot::after {
    right: auto;
    left: 0;
  }

  .guided-header-actions,
  .guided-toolbar .actions,
  .guided-footer-nav,
  .guided-modal-actions,
  .wizard-next-preview button,
  .guided-upload-form {
    width: 100%;
  }

  .guided-header-actions .button,
  .guided-toolbar .actions .button,
  .guided-toolbar .actions .guided-auto-sync-status,
  .guided-toolbar .actions form,
  .guided-toolbar .actions button,
  .guided-hawkin-actions form,
  .guided-footer-nav .button,
  .guided-modal-actions .button,
  .guided-modal-actions button,
  .wizard-next-preview button,
  .guided-upload-form button,
  .guided-upload-form input[type="file"] {
    width: 100%;
    max-width: none;
  }

  .guided-report-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .guided-report-search {
    margin-right: 0;
    min-width: 0;
    width: 100%;
  }

  .guided-autosave-status {
    min-width: 0;
    text-align: left;
  }

  .guided-report-metric-head {
    display: none;
  }

  .guided-report-metric-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .guided-report-metric-row select {
    width: 100%;
  }
}
