:root {
  color-scheme: light;
  --ink: #18302d;
  --muted: #657774;
  --green-950: #102f2b;
  --green-900: #163f3a;
  --green-700: #257066;
  --green-500: #43a594;
  --green-100: #dff2ed;
  --green-50: #f0f8f6;
  --cream: #f7f3ea;
  --paper: #fffefd;
  --line: #dce5e2;
  --warning: #9a5b12;
  --warning-bg: #fff5df;
  --danger: #a33737;
  --danger-bg: #fff1f1;
  --shadow: 0 18px 48px rgba(20, 54, 49, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shell: min(1180px, calc(100% - 40px));
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(67, 165, 148, 0.16), transparent 24rem),
    linear-gradient(180deg, #f7fbfa 0 650px, #ffffff 650px 100%);
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.drop-zone:focus-within {
  outline: 3px solid rgba(37, 112, 102, 0.26);
  outline-offset: 3px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: #fff;
  background: var(--green-950);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(24, 48, 45, 0.08);
  background: rgba(247, 251, 250, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner,
.site-footer .shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-950);
  font-size: 0.98rem;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green-900);
  border-radius: 11px 11px 11px 4px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: var(--green-700);
  background: var(--green-100);
  border: 1px solid rgba(37, 112, 102, 0.14);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.privacy-dot {
  width: 7px;
  height: 7px;
  background: var(--green-500);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(67, 165, 148, 0.18);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: clamp(44px, 8vw, 112px);
  padding-block: clamp(58px, 9vw, 112px) 68px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 220px;
  height: 220px;
  left: -150px;
  top: 34px;
  border: 1px solid rgba(37, 112, 102, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(37, 112, 102, 0.035), 0 0 0 68px rgba(37, 112, 102, 0.02);
}

.hero-copy-block {
  max-width: 760px;
}

.eyebrow,
.panel-kicker {
  color: var(--green-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin: 16px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.6vw, 6.2rem);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.privacy-note {
  width: fit-content;
  max-width: 100%;
  margin: 30px 0 0;
  padding: 10px 16px 10px 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(22, 63, 58, 0.06);
  font-size: 0.84rem;
  text-align: left;
}

.smart-card {
  position: relative;
  padding: 24px;
  color: #eef8f5;
  background: var(--green-950);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px 28px 28px 8px;
  box-shadow: 0 32px 70px rgba(16, 47, 43, 0.22);
  transform: rotate(1.5deg);
  animation: card-arrive 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.smart-card::after {
  content: "";
  position: absolute;
  inset: 9px -9px -9px 9px;
  z-index: -1;
  border: 1px solid rgba(37, 112, 102, 0.24);
  border-radius: inherit;
}

.smart-card-kicker {
  color: #9ed3c8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.smart-file {
  width: 88px;
  height: 108px;
  margin: 18px 0 22px;
  padding: 18px 14px;
  display: grid;
  align-content: end;
  gap: 7px;
  color: var(--green-950);
  background: var(--cream);
  border-radius: 8px 22px 8px 8px;
  box-shadow: 16px 14px 0 rgba(67, 165, 148, 0.16);
}

.smart-file span {
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.smart-file i {
  height: 2px;
  background: rgba(16, 47, 43, 0.22);
}

.smart-file i:last-child {
  width: 65%;
}

.smart-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.smart-steps li {
  display: grid;
  grid-template-columns: 34px 76px 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.smart-steps span {
  color: #78bbae;
  font-size: 0.7rem;
  font-weight: 800;
}

.smart-steps strong {
  font-size: 0.86rem;
}

.smart-steps small {
  color: #a9beb9;
  font-size: 0.72rem;
  line-height: 1.35;
}

.smart-output {
  margin-top: 14px;
  padding: 12px 14px;
  color: #c8ddd8;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  font-size: 0.76rem;
}

.smart-output span {
  margin-right: 7px;
  padding: 3px 7px;
  color: var(--green-950);
  background: #a9d9cf;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

@keyframes card-arrive {
  from { opacity: 0; transform: translateY(24px) rotate(4deg); }
  to { opacity: 1; transform: translateY(0) rotate(1.5deg); }
}

.privacy-note div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.privacy-note span:last-child {
  color: var(--muted);
}

.shield {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green-700);
  border-radius: 50% 50% 45% 45%;
  font-weight: 900;
}

.upload-section {
  padding-bottom: 92px;
}

.section-heading > div,
.workspace-heading > div:first-child,
.download-card > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 18px;
}

.section-heading h2,
.workspace-heading h2,
.download-card h2 {
  margin-bottom: 3px;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.section-heading p,
.workspace-heading p,
.download-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.step-number {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green-900);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.drop-zone {
  max-width: 780px;
  min-height: 330px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--paper);
  border: 2px dashed #a9c4be;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: 160ms ease;
}

.drop-zone.is-dragging {
  background: var(--green-50);
  border-color: var(--green-500);
  transform: translateY(-2px);
}

.upload-art {
  position: relative;
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
}

.paper-sheet {
  position: absolute;
  inset: 3px 8px 7px 14px;
  background: var(--green-100);
  border: 2px solid var(--green-700);
  border-radius: 9px 9px 9px 3px;
  transform: rotate(-5deg);
}

.upload-arrow {
  position: absolute;
  right: 2px;
  bottom: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green-900);
  border: 4px solid var(--paper);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
}

.drop-zone h3 {
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.drop-zone p {
  margin-bottom: 18px;
  color: var(--muted);
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 760;
  transition: 140ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-primary {
  color: #fff;
  background: var(--green-900);
  box-shadow: 0 8px 18px rgba(22, 63, 58, 0.18);
}

.button-primary:hover:not(:disabled) {
  background: var(--green-700);
}

.button-quiet {
  color: var(--green-900);
  background: #fff;
  border-color: var(--line);
}

.button-small {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.78rem;
}

.button-large {
  min-height: 50px;
  padding-inline: 22px;
}

.file-hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.76rem;
}

.processing-card,
.message {
  max-width: 780px;
  margin: 18px auto 0;
  border-radius: var(--radius-md);
}

.processing-card {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(22, 63, 58, 0.07);
}

.processing-card[hidden],
.message[hidden],
.workspace[hidden] {
  display: none;
}

.file-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: 8px 8px 8px 3px;
  font-size: 0.65rem;
  font-weight: 900;
}

.processing-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.processing-copy strong,
.processing-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.processing-copy > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.progress-track {
  height: 6px;
  margin-block: 6px 2px;
  overflow: hidden;
  background: #e5eeeb;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green-500);
  border-radius: inherit;
  transition: width 180ms ease;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 1.1rem;
}

.icon-button:hover:not(:disabled) {
  color: var(--green-900);
  background: var(--green-50);
  border-color: var(--line);
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

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

.message {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.85rem;
}

.message-error {
  color: #762a2a;
  background: var(--danger-bg);
  border: 1px solid #edcccc;
}

.message-warning {
  color: #74440d;
  background: var(--warning-bg);
  border: 1px solid #efd8ad;
}

.message-success {
  color: var(--green-900);
  background: var(--green-50);
  border: 1px solid #c9e5df;
}

.text-button {
  padding: 3px 0;
  color: var(--green-700);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font-weight: 760;
}

.workspace {
  padding-block: 58px 84px;
  background: #f6f8f7;
  border-top: 1px solid var(--line);
}

.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.schedule-card {
  margin-top: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.7fr) minmax(170px, 0.8fr);
  align-items: end;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 26px rgba(27, 57, 53, 0.05);
}

.schedule-card h3 {
  margin: 2px 0 0;
  font-size: 1.12rem;
}

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

.summary-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.summary-card {
  min-height: 96px;
  padding: 17px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.summary-card span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.summary-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.summary-card-review {
  color: var(--warning);
  background: #fffbf2;
  border-color: #ead7b6;
}

.editor-layout {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: start;
  gap: 22px;
}

.editor-panel,
.preview-panel {
  min-width: 0;
}

.panel-heading {
  min-height: 66px;
  padding: 12px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-heading {
  position: sticky;
  z-index: 4;
  top: 0;
  background: rgba(246, 248, 247, 0.93);
  backdrop-filter: blur(10px);
}

.panel-heading h3 {
  margin: 2px 0 0;
  font-size: 1.12rem;
}

.preview-note {
  color: var(--muted);
  font-size: 0.7rem;
  text-align: right;
}

.driver-editor {
  margin-bottom: 15px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 26px rgba(27, 57, 53, 0.05);
}

.driver-editor-header {
  min-height: 62px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green-50);
  border-bottom: 1px solid var(--line);
}

.driver-number {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green-900);
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.driver-title-wrap {
  min-width: 0;
  flex: 1;
  display: grid;
}

.driver-display-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.driver-member-total {
  color: var(--muted);
  font-size: 0.72rem;
}

.driver-fields,
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.driver-fields {
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

label > span,
.member-editor legend {
  color: #51635f;
  font-size: 0.7rem;
  font-weight: 760;
}

input,
textarea {
  width: 100%;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cddad7;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.35;
}

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

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

.member-list {
  padding: 0 15px;
}

.member-editor {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.member-editor:last-child {
  border-bottom: 0;
}

.member-legend {
  float: left;
  margin-bottom: 10px;
  color: var(--green-700) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.member-editor .remove-member {
  position: absolute;
  top: 9px;
  right: 0;
}

.member-grid {
  clear: both;
}

.field-wide {
  grid-column: 1 / -1;
}

.match-status {
  color: var(--muted);
  font-size: 0.68rem;
}

.match-status.needs-review,
.vehicle-status.needs-review {
  color: var(--warning);
  font-weight: 700;
}

.vehicle-status {
  min-height: 1em;
  color: var(--muted);
  font-size: 0.68rem;
}

.member-grid-simple {
  grid-template-columns: minmax(150px, 0.72fr) minmax(240px, 1.28fr);
}

.add-member {
  margin: 12px 15px 16px;
  font-size: 0.78rem;
}

.preview-stack {
  display: grid;
  gap: 18px;
}

.preview-page {
  position: relative;
  aspect-ratio: 210 / 297;
  padding: 7.5%;
  overflow: hidden;
  color: #253432;
  background: var(--paper);
  border: 1px solid #dce3e1;
  box-shadow: 0 16px 34px rgba(31, 57, 53, 0.12);
}

.preview-page::after {
  content: attr(data-page-label);
  position: absolute;
  right: 5%;
  bottom: 3%;
  color: #86938f;
  font-size: clamp(5px, 0.78vw, 9px);
}

.preview-header {
  padding-bottom: 5%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--green-900);
}

.preview-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--green-700);
  font-size: clamp(5px, 0.75vw, 8px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-driver-name {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 3vw, 30px);
  font-weight: 500;
  line-height: 1;
}

.preview-meta {
  max-width: 42%;
  color: #60706d;
  font-size: clamp(6px, 0.9vw, 9px);
  text-align: right;
}

.preview-date {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: clamp(6px, 0.9vw, 9px);
}

.preview-vehicle {
  padding: 3.5% 4%;
  color: var(--ink);
  background: var(--green-100);
  border-radius: 8px;
  text-align: left;
}

.preview-vehicle strong,
.preview-meta-label {
  display: block;
}

.preview-meta-label {
  margin-bottom: 3px;
  color: var(--green-700);
  font-size: clamp(5px, 0.72vw, 7px);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-collection-table {
  margin-top: 5%;
}

.preview-collection-heading {
  padding: 2.7% 3%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr);
  gap: 5%;
  color: #fff;
  background: var(--green-900);
  font-size: clamp(5px, 0.73vw, 8px);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.preview-member-simple {
  padding-inline: 3%;
}

.preview-member-simple > div:first-child {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 4px;
}

.preview-row-number {
  color: var(--green-700);
  font-size: clamp(5px, 0.75vw, 8px);
  font-weight: 800;
}

.preview-members {
  margin-top: 4%;
  display: grid;
  gap: 0;
}

.preview-member {
  padding-block: 3.2%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr);
  gap: 5%;
  border-bottom: 1px solid #e3e8e6;
}

.preview-member:last-child {
  border-bottom: 0;
}

.preview-member strong {
  display: block;
  font-size: clamp(7px, 1.18vw, 12px);
}

.preview-transport {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 5px;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 99px;
  font-size: clamp(5px, 0.75vw, 8px);
  font-weight: 760;
}

.preview-address,
.preview-notes {
  margin: 0;
  color: #4f605d;
  font-size: clamp(6px, 0.93vw, 9.5px);
  line-height: 1.42;
  white-space: pre-wrap;
}

.preview-notes {
  margin-top: 4px;
  color: #7e581f;
}

.preview-empty {
  padding: 16% 8%;
  color: var(--muted);
  font-size: clamp(7px, 1vw, 10px);
  text-align: center;
}

.download-card {
  margin-top: 34px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #fff;
  background: var(--green-950);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.download-card .step-number {
  color: var(--green-950);
  background: var(--green-100);
}

.download-card p {
  color: #b9cfca;
}

.download-card .button-primary {
  color: var(--green-950);
  background: #fff;
}

.site-footer {
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.noscript-message {
  position: fixed;
  z-index: 100;
  inset: auto 20px 20px;
  padding: 16px;
  color: #762a2a;
  background: var(--danger-bg);
  border: 1px solid #edcccc;
  border-radius: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy-block {
    max-width: 780px;
  }

  .smart-card {
    width: min(100%, 560px);
    justify-self: end;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .preview-panel {
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: min(100% - 24px, 1180px);
  }

  .privacy-pill {
    display: none;
  }

  .hero {
    padding-block: 54px 34px;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.5rem);
  }

  .privacy-note {
    align-items: flex-start;
  }

  .smart-card {
    width: calc(100% - 8px);
    justify-self: center;
    padding: 20px;
  }

  .smart-steps li {
    grid-template-columns: 28px 68px 1fr;
  }

  .privacy-note {
    border-radius: 16px;
  }

  .drop-zone {
    min-height: 290px;
    padding: 28px 18px;
  }

  .workspace-heading,
  .download-card {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-card {
    grid-template-columns: 1fr;
  }

  .heading-actions {
    width: 100%;
  }

  .heading-actions .button,
  .download-card .button {
    flex: 1;
  }

  .driver-fields,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .driver-editor-header {
    flex-wrap: wrap;
  }

  .row-actions {
    margin-left: 46px;
  }

  .site-footer .shell {
    padding-block: 18px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .hero,
  .upload-section,
  .workspace-heading,
  .summary-grid,
  .message,
  .editor-panel,
  .preview-panel > .panel-heading,
  .download-card,
  .site-footer {
    display: none !important;
  }

  .workspace,
  .editor-layout,
  .preview-stack {
    display: block !important;
    padding: 0;
    margin: 0;
    background: #fff;
  }

  .preview-page {
    width: 210mm;
    height: 297mm;
    margin: 0;
    border: 0;
    box-shadow: none;
    break-after: page;
  }
}
