*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f4f8f7;
  --surface:     #ffffff;
  --header-bg:   #0f2f2c;
  --accent:      #0f766e;
  --accent-dim:  #115e59;
  --accent-dark: #134e4a;
  --warm:        #f59e0b;
  --text:        #10211f;
  --muted:       #4f6661;
  --border:      #d8e3df;
  --surface-muted:#f5faf8;
  --surface-soft:#eef6f3;
  --surface-accent:#e2f4ef;
  --border-strong:#b9cdc7;
  --panel-border: rgba(16, 33, 31, 0.09);
  --panel-radius: 24px;
  --surface-contrast: #113532;
  --workspace-bg-start: #f3f8f7;
  --workspace-bg-end: #ebf3f1;
  --radius-sm:   8px;
  --radius:      18px;
  --shadow-sm:   0 12px 28px rgba(17,53,50,.06), 0 2px 8px rgba(17,53,50,.05);
  --shadow:      0 22px 56px rgba(17,53,50,.12), 0 8px 24px rgba(17,53,50,.08);
  --focus-ring:  rgba(15,118,110,.18);
  --transition:  .18s ease;
  --shell-max-width: 1280px;
  --shell-inline-padding: 1.5rem;
  --shell-block-start: 2rem;
  --shell-block-end: 4rem;
  --shell-gap: 1.5rem;
  --panel-padding: 2rem;
  --shell-sidebar-width: 280px;
  --help-sidebar-width: 320px;
}

@media (max-width: 1200px) {
  :root {
    --shell-inline-padding: 1.375rem;
    --shell-gap: 1.375rem;
    --panel-padding: 1.875rem;
    --shell-sidebar-width: 268px;
    --help-sidebar-width: 300px;
  }
}

@media (max-width: 1024px) {
  :root {
    --shell-inline-padding: 1.25rem;
    --shell-gap: 1.25rem;
    --panel-padding: 1.75rem;
    --shell-sidebar-width: 248px;
    --help-sidebar-width: 280px;
  }
}

@media (max-width: 900px) {
  :root {
    --shell-inline-padding: 1rem;
    --shell-block-start: 1.5rem;
    --shell-block-end: 3rem;
    --shell-gap: 1.125rem;
    --panel-padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --shell-inline-padding: 0.875rem;
    --shell-gap: 1rem;
    --panel-padding: 1.25rem;
  }
}

@media (max-width: 640px) {
  :root {
    --shell-inline-padding: 0.75rem;
    --shell-block-start: 1rem;
    --shell-block-end: 2.5rem;
    --shell-gap: 0.9rem;
    --panel-padding: 1rem;
  }
}

@media (max-width: 420px) {
  :root {
    --shell-inline-padding: 0.625rem;
    --shell-gap: 0.8rem;
    --panel-padding: 0.875rem;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
}

body.app-shell--public {
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f5faf8 22%, #eff7f3 56%, #edf6f2 100%);
}

body.app-shell--authenticated {
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.08), transparent 28%),
    linear-gradient(180deg, var(--workspace-bg-start) 0%, var(--workspace-bg-end) 100%);
}

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

/* ── Internal header ── */
.internal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  padding-inline: var(--shell-inline-padding);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.internal-header .logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
  text-decoration: none;
}
.internal-header .logo span { color: var(--warm); }
.internal-header .subtitle {
  font-size: .78rem;
  color: #94a3b8;
  margin-top: 1px;
}
.internal-header .spacer { flex: 1; }
.internal-header .header-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #cbd5e1;
  padding: .4rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.internal-header > * {
  min-width: 0;
}
.internal-header .header-btn--submit {
  font: inherit;
}
.internal-header .header-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.internal-header .header-btn.active { background: rgba(20,184,166,.18); border-color: rgba(45,212,191,.28); color: #99f6e4; }
.header-form {
  margin: 0;
}

/* ── Product shell ── */
.product-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.app-shell--public .product-header {
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(216, 227, 223, 0.9);
  box-shadow: 0 14px 40px rgba(17, 53, 50, 0.08);
}

.product-header__inner,
.site-footer__inner {
  width: min(100%, var(--shell-max-width));
  margin: 0 auto;
  padding-inline: var(--shell-inline-padding);
}

.product-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.9rem, 2vw, 1.5rem);
}

.product-header__menu-panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.product-header__inner > *,
.site-footer__inner > * {
  min-width: 0;
}

.product-brand {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  flex: 1 1 18rem;
  min-width: 0;
  max-width: 24rem;
}

.product-brand__name {
  color: var(--text);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}

.product-brand__tagline {
  color: var(--muted);
  max-width: 24ch;
  font-size: 0.82rem;
  line-height: 1.28;
  text-wrap: balance;
}

.app-shell--public .product-brand__name {
  color: var(--text);
}

.app-shell--public .product-brand__tagline {
  color: var(--muted);
}

.product-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1 1 auto;
  min-width: 0;
}

.product-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.product-header__menu-toggle-icon {
  width: 0.72rem;
  height: 0.72rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition);
}

.product-header__menu-toggle[aria-expanded="true"] .product-header__menu-toggle-icon {
  transform: rotate(225deg);
}

.product-nav__link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  transition: color var(--transition);
}

.product-nav__link.active,
.product-nav__link:hover {
  color: var(--accent-dim);
}

.product-header__actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.product-header__form {
  margin: 0;
  position: relative;
  z-index: 1;
}

.product-header__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.2);
  border: 0;
  font: inherit;
  cursor: pointer;
  position: relative;
  z-index: 1;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.product-header__button,
.product-header__menu-toggle,
.product-nav__link,
.user-menu__trigger,
.action-btn,
.ui-chip,
.ui-stat-card,
.ui-note {
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.app-shell--public .product-header__button {
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.22);
}

.product-header__button:hover {
  background: var(--accent-dim);
}

.product-header__button--secondary {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 33, 31, 0.08);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.product-header__button--secondary:hover {
  background: var(--surface-muted);
}

.user-menu {
  position: relative;
}

.user-menu__trigger {
  min-width: 44px;
  padding: 0.7rem;
}

.user-menu__trigger-label {
  display: none;
}

.user-menu__trigger svg {
  width: 20px;
  height: 20px;
}

.user-menu__panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  min-width: 220px;
  padding: 0.5rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 33, 31, 0.08);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.25rem;
}

.user-menu__panel[hidden] {
  display: none !important;
}

.user-menu__link,
.user-menu__logout {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.user-menu__link:hover,
.user-menu__logout:hover {
  background: var(--surface-muted);
}

.user-menu__form {
  margin: 0;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.user-menu__logout {
  color: #b42318;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  flex-shrink: 0;
}

.app-shell--public .site-footer {
  border-top: 1px solid rgba(216, 227, 223, 0.9);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.12), transparent 26%),
    linear-gradient(180deg, #f6faf8 0%, #edf6f2 100%);
}

.site-footer__inner {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.app-shell--public .site-footer__inner {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.site-footer__title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.45rem;
  line-height: 1.15;
  text-wrap: balance;
}

.site-footer__copy {
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
}

.app-shell--public .site-footer__copy {
  max-width: 34rem;
  line-height: 1.7;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.site-footer__links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.site-footer__form {
  margin: 0;
}

.site-footer__form button {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.site-footer__links a:hover,
.site-footer__form button:hover {
  color: var(--accent-dim);
}

/* ── Header nav + hamburger ── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(15, 118, 110, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.action-btn:disabled,
.action-btn[aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.action-btn--create {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #fff;
}

.action-btn--create:hover {
  background: linear-gradient(135deg, #115e59 0%, #134e4a 100%);
}

.action-btn--edit {
  background: linear-gradient(135deg, #0f2f2c 0%, #10211f 100%);
  color: #fff;
}

.action-btn--edit:hover {
  background: linear-gradient(135deg, #10211f 0%, #0b1817 100%);
}

.action-btn--secondary {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 33, 31, 0.12);
  color: #27423d;
}

.action-btn--secondary:hover {
  background: var(--surface-muted);
  border-color: rgba(15, 118, 110, 0.24);
}

.action-btn--success {
  background: linear-gradient(135deg, #0f766e 0%, #0f766e 100%);
  color: #fff;
}

.action-btn--success:hover {
  background: linear-gradient(135deg, #115e59 0%, #134e4a 100%);
}

.action-btn--destructive {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
}

.action-btn--destructive:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

.action-btn--soft {
  box-shadow: none;
}

.action-btn--soft.action-btn--destructive {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.2);
  color: #b42318;
}

.action-btn--soft.action-btn--destructive:hover {
  background: rgba(220, 38, 38, 0.14);
}

.action-btn--soft.action-btn--secondary {
  background: rgba(15, 118, 110, 0.06);
}

.app-toast-stack {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: 0.75rem;
  width: min(30rem, calc(100vw - 2rem));
  pointer-events: none;
}

.app-toast {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid transparent;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
  transform: translateY(-0.4rem);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.page-title {
  font-size: clamp(1.6rem, 2.1vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.55rem;
  text-wrap: balance;
}

.page-subtitle {
  max-width: 64ch;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.ui-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ui-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.ui-note {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 1));
  line-height: 1.6;
}

.ui-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0.9rem;
}

.ui-stat-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f5faf8 100%);
  box-shadow: var(--shadow-sm);
}

.ui-stat-card__label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ui-stat-card strong {
  font-size: 1.02rem;
  line-height: 1.25;
}

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

.app-toast--success {
  background: #f0fdf4;
  border-color: rgba(22, 101, 52, 0.18);
  color: #166534;
}

.app-toast--warning {
  background: #fffbeb;
  border-color: rgba(180, 83, 9, 0.18);
  color: #b45309;
}

.app-toast--error {
  background: #fef2f2;
  border-color: rgba(185, 28, 28, 0.18);
  color: #b91c1c;
}

.app-toast__title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-toast__message {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.45;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: .45rem .55rem;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 480px) {
  .internal-header {
    flex-wrap: wrap;
    height: auto;
    padding: .6rem 1rem;
    gap: .5rem;
  }
  .internal-header > div:first-child { flex: 1; }
  .hamburger { display: flex; }
  .header-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .4rem;
    padding-bottom: .4rem;
  }
  .header-nav.open { display: flex; }
  .header-nav .header-btn { justify-content: center; }
}

@media (max-width: 900px) {
  .product-header__inner,
  .site-footer__inner {
    padding-inline: var(--shell-inline-padding);
  }

  .product-header__inner {
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .product-header__menu-panel {
    flex-wrap: wrap;
    width: 100%;
    gap: 1rem;
  }

  .product-nav {
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    width: auto;
    flex: 1 1 18rem;
  }

  .product-header__actions {
    width: auto;
  }

  .product-header__form {
    width: auto;
  }

  .product-header__button {
    width: auto;
  }

  .site-footer__inner {
    flex-direction: column;
  }

  .site-footer__links {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .product-brand__tagline {
    display: none;
  }

  .product-header__inner {
    gap: 0.875rem;
  }

  .product-nav {
    gap: 0.7rem 0.8rem;
  }
}

@media (max-width: 920px) {
  .product-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(216, 227, 223, 0.92);
    box-shadow: 0 14px 34px rgba(17, 53, 50, 0.08);
  }

  .product-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .product-brand__name,
  .product-brand__tagline {
    color: inherit;
  }

  .product-header__menu-toggle {
    display: inline-flex;
    min-height: 40px;
    padding: 0.58rem 0.82rem;
    background: rgba(15, 118, 110, 0.06);
    border-color: rgba(15, 118, 110, 0.12);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  }

  .product-header__menu-panel {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 110, 0.12);
    background:
      radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 42%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 248, 0.98) 100%);
    box-shadow: var(--shadow-sm);
  }

  .product-header__menu-panel.is-open {
    display: grid;
    gap: 0.7rem;
  }

  .product-nav {
    display: grid;
    gap: 0.45rem;
    width: 100%;
    flex: none;
  }

  .product-nav__link {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0.62rem 0.78rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 118, 110, 0.08);
    background: rgba(15, 118, 110, 0.04);
  }

  .product-header__actions,
  .product-header__form,
  .user-menu {
    width: 100%;
  }

  .product-header__button,
  .user-menu__trigger {
    width: 100%;
    justify-content: flex-start;
    gap: 0.55rem;
    min-height: 40px;
    padding: 0.62rem 0.78rem;
    border-radius: 10px;
    box-shadow: none;
  }

  .user-menu__trigger {
    background: rgba(15, 118, 110, 0.04);
    color: var(--text);
  }

  .user-menu__trigger-label {
    display: inline;
  }

  .user-menu__panel {
    position: static;
    top: auto;
    right: auto;
    margin-top: 0.65rem;
    min-width: 0;
    padding: 0.45rem;
    box-shadow: none;
    border-radius: 14px;
  }

  .site-footer {
    border-top: 1px solid rgba(216, 227, 223, 0.92);
    background:
      radial-gradient(circle at top left, rgba(45, 212, 191, 0.1), transparent 26%),
      linear-gradient(180deg, #f6faf8 0%, #edf6f2 100%);
  }

  .site-footer__inner {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    gap: 0.85rem;
  }

  .site-footer__title,
  .site-footer__copy,
  .site-footer__links a,
  .site-footer__form button {
    color: inherit;
  }

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

  .site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
  }

  .site-footer__links a,
  .site-footer__form button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .site-footer__form {
    margin: 0;
  }
}

/* ── Main layout ── */
main {
  flex: 1 0 auto;
  width: min(100%, var(--shell-max-width));
  margin: 0 auto;
  padding: var(--shell-block-start) var(--shell-inline-padding) var(--shell-block-end);
}

main > * {
  min-width: 0;
}
