:root {
  color-scheme: light;
  --bg: #f5f7f2;
  --surface: #ffffff;
  --surface-quiet: #eef3ec;
  --ink: #1e2a24;
  --muted: #607069;
  --line: #d9e1da;
  --green: #2f6f57;
  --green-dark: #214f40;
  --blue: #315f8f;
  --amber: #a9672b;
  --red: #a13d3d;
  --shadow: 0 18px 48px rgba(24, 42, 35, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  background: #20382f;
  color: #f7fbf8;
}

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

.brand-mark,
.empty-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #d9ead7;
  color: #20382f;
  font-weight: 800;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
}

.brand-meta {
  margin-top: 2px;
  color: #b9cbc2;
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #eef6f1;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav-item.is-active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.account-panel {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.billing-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.panel-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.billing-plan {
  margin-top: 4px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.quota-line,
.billing-note {
  color: #d6e3dc;
  font-size: 13px;
  line-height: 1.35;
}

.billing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.billing-actions .ghost-button {
  grid-column: 1 / -1;
}

.sidebar-button {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #eef6f1;
  color: #20382f;
  font-weight: 800;
}

.sidebar-icon-button {
  width: 34px;
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar .eyebrow {
  color: #b9cbc2;
}

.session-email {
  margin: 8px 0 12px;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-weight: 650;
}

.main-panel {
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.15;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

.topbar p {
  margin-top: 6px;
  color: var(--muted);
}

.topbar .language-line {
  font-size: 13px;
  font-weight: 700;
}

.health-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber);
}

.health-pill.is-ok .status-dot {
  background: var(--green);
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 420px));
  gap: 18px;
  align-items: start;
}

.auth-panel,
.upload-band,
.admin-users-panel,
.admin-services-panel,
.book-list-panel,
.detail-panel,
.preview-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.form-heading {
  margin-bottom: 2px;
}

.form-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.verification-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-message {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf7;
  color: var(--ink);
  font-weight: 650;
}

.auth-message.success {
  border-color: rgba(47, 124, 93, 0.35);
  background: #eef7f0;
  color: var(--green-dark);
}

.auth-message.error {
  border-color: rgba(184, 72, 72, 0.35);
  background: #fff3f0;
  color: var(--red);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--ink);
}

input:focus {
  outline: 3px solid rgba(49, 95, 143, 0.2);
  border-color: var(--blue);
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--green-dark);
  background: var(--green);
  color: #ffffff;
  padding: 9px 14px;
  font-weight: 750;
}

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

.secondary-button,
.secondary-link {
  border: 1px solid var(--line);
  background: #f7faf7;
  color: var(--ink);
  padding: 9px 14px;
  font-weight: 750;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #ffffff;
  padding: 8px 12px;
}

.icon-button {
  width: 38px;
  border: 1px solid var(--line);
  background: #f7faf7;
  color: var(--ink);
}

.workspace {
  display: grid;
  gap: 18px;
}

.admin-users-panel {
  overflow: hidden;
}

.admin-users-table {
  overflow-x: auto;
}

.admin-users-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 110px 120px 90px 110px 170px 112px;
  gap: 12px;
  align-items: center;
  min-width: 960px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

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

.admin-users-row.is-header {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-user-email {
  min-width: 0;
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-user-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reset-quota-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.reset-quota-button:hover,
.reset-quota-button:focus {
  outline: 3px solid rgba(47, 111, 87, 0.16);
  border-color: var(--green);
}

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

.delete-user-button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #e3c2c2;
  border-radius: 8px;
  background: #fff7f7;
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.delete-user-button:hover,
.delete-user-button:focus {
  outline: 3px solid rgba(161, 61, 61, 0.16);
  border-color: var(--red);
}

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

.admin-services-panel {
  overflow: hidden;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
  padding: 14px 18px 18px;
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.service-title {
  font-size: 17px;
  font-weight: 800;
}

.service-detail {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.log-download-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.log-download-band h3 {
  margin: 0;
  font-size: 15px;
}

.log-download-band p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.upload-band {
  padding: 14px;
}

.upload-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.file-drop {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px dashed #9fb1a7;
  border-radius: 8px;
  background: var(--surface-quiet);
  color: var(--ink);
  cursor: pointer;
}

.file-drop input {
  display: none;
}

.upload-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.terms-drop {
  display: inline-grid;
  min-width: 220px;
  min-height: 44px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.terms-drop input {
  display: none;
}

#customTermsLabel {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.book-list-panel,
.detail-panel {
  min-height: 520px;
}

.panel-head,
.detail-head,
.action-row,
.metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head {
  min-height: 62px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.book-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.book-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.book-row-main {
  display: grid;
  min-width: 0;
}

.book-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  flex-shrink: 0;
  gap: 6px;
}

.delete-book-button,
.download-pdf-button {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  padding: 0 7px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.download-pdf-button {
  border: 1px solid var(--line);
  background: #f7fbf8;
  color: var(--green-dark);
}

.download-pdf-button:hover,
.download-pdf-button:focus {
  outline: 3px solid rgba(47, 111, 87, 0.16);
  border-color: var(--green);
}

.delete-book-button {
  width: 28px;
  border: 1px solid #e3c2c2;
  background: #fff7f7;
  color: var(--red);
  font-size: 15px;
}

.delete-book-button:hover,
.delete-book-button:focus {
  outline: 3px solid rgba(161, 61, 61, 0.16);
  border-color: var(--red);
}

.book-row.is-selected {
  border-color: var(--green);
  background: #eef7f1;
}

.book-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.detail-panel {
  padding: 18px;
}

.empty-state {
  display: grid;
  min-height: 480px;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
}

.detail-head {
  align-items: start;
}

.detail-head h2 {
  margin-top: 6px;
  font-size: 24px;
}

.badge.uploaded {
  color: var(--blue);
}

.badge.processing {
  color: var(--amber);
}

.badge.completed {
  color: var(--green);
}

.badge.failed {
  color: var(--red);
}

.metrics {
  margin: 18px 0;
}

.metric {
  flex: 1;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eee8;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 240ms ease;
}

.action-row {
  justify-content: start;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.preview-panel {
  box-shadow: none;
}

.preview-panel pre {
  min-height: 240px;
  max-height: 420px;
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  color: #25352e;
  font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  max-width: min(420px, calc(100vw - 44px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: 160ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
  flex: 0 0 auto;
}

.icon-books {
  border-left-width: 5px;
}

.icon-api {
  border-radius: 999px;
}

.icon-login,
.icon-user,
.icon-upload,
.icon-cloud,
.icon-refresh,
.icon-play {
  position: relative;
}

.icon-login::after,
.icon-refresh::after,
.icon-play::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.icon-play::after {
  inset: 2px 4px;
  border: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: none;
}

.icon-user::after,
.icon-cloud::after,
.icon-upload::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 4px;
  background: currentColor;
  border-radius: 999px;
}

.icon-refresh {
  border-radius: 999px;
}

.landing-body {
  background: #f4f7f4;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.landing-brand strong,
.landing-brand small {
  display: block;
}

.landing-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.landing-nav nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.landing-nav nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.landing-hero,
.landing-section,
.landing-cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 92px);
  padding-bottom: 44px;
}

.landing-hero h1 {
  max-width: 760px;
  margin-top: 14px;
  font-size: 58px;
  line-height: 1;
}

.landing-hero-copy p {
  max-width: 660px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.landing-actions,
.landing-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.landing-facts {
  gap: 10px;
  margin-top: 22px;
}

.landing-facts span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.visual-toolbar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #20382f;
}

.visual-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d9ead7;
}

.visual-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 420px;
}

.visual-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: var(--surface-quiet);
}

.visual-book {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 800;
}

.visual-book.is-active {
  border-color: var(--green);
  background: #eef7f1;
}

.visual-book em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.visual-preview {
  padding: 20px;
}

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

.visual-metrics span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.visual-metrics strong {
  color: var(--ink);
  font-size: 18px;
  text-transform: none;
}

.visual-preview pre {
  min-height: 260px;
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  color: #2e3d36;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.landing-section {
  padding-top: 88px;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.section-heading h2,
.landing-cta h2 {
  font-size: 34px;
}

.section-heading p {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.feature-grid article,
.price-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(24, 42, 35, 0.08);
}

.feature-grid h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.feature-grid p,
.price-card p,
.price-card li {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.price-card.is-featured {
  border-color: var(--green);
  background: #eef7f1;
}

.price-name {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-value {
  margin-top: 8px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 850;
}

.price-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.landing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 88px;
  margin-bottom: 48px;
  padding-top: 28px;
  padding-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.landing-footer {
  display: flex;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 36px;
}

.landing-footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.page-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 28px 80px;
}

.page-shell h1 {
  margin-top: 12px;
  margin-bottom: 28px;
  font-size: 46px;
}

.page-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.page-section h2 {
  margin-bottom: 8px;
  font-size: 21px;
}

.page-section p,
.page-contact {
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.6;
}

.page-shell a {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .content-grid,
  .auth-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .book-list-panel,
  .detail-panel {
    min-height: auto;
  }

  .landing-nav,
  .landing-hero,
  .landing-section,
  .landing-cta,
  .landing-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .landing-nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 32px;
  }

  .landing-hero h1 {
    font-size: 44px;
  }

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

  .landing-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .main-panel,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .metrics,
  .upload-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .health-pill {
    justify-self: start;
  }

  .log-download-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-nav nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .landing-hero h1 {
    font-size: 36px;
  }

  .product-visual {
    display: none;
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
