:root {
  --bg: #f4f7f8;
  --bg-deep: #e8eef1;
  --ink: #142028;
  --muted: #5a6b75;
  --accent: #0b7a72;
  --accent-soft: #d7f0ed;
  --accent-ink: #043530;
  --danger: #b42318;
  --line: #cdd8de;
  --surface: rgba(255, 255, 255, 0.78);
  --radius: 16px;
  --display: "Outfit", sans-serif;
  --font: "Source Sans 3", sans-serif;
  --mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
  --shadow: 0 1px 0 rgba(20, 32, 40, 0.04), 0 18px 40px -28px rgba(20, 32, 40, 0.35);
}

html:not(.i18n-ready) body {
  visibility: hidden;
}

html.i18n-ready body {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.i18n-ready) body {
    visibility: visible;
  }
}

.legal-binding-note {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent-soft) 55%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
}

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

html {
  color-scheme: light;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 8% -10%, rgba(11, 122, 114, 0.15), transparent 58%),
    radial-gradient(900px 480px at 96% 0%, rgba(56, 120, 168, 0.11), transparent 52%),
    linear-gradient(180deg, #f7fafb 0%, var(--bg-deep) 100%);
  animation: atmosphere-drift 18s ease-in-out infinite alternate;
}

@keyframes atmosphere-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(-1.5%, 1%, 0); }
}

.shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1rem;
  flex: 1 0 auto;
}

/* —— Auth: Marke links, Formular rechts —— */
body.is-auth .shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 400px);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-content: center;
  align-items: center;
  justify-items: stretch;
  min-height: 0;
  padding-top: clamp(1rem, 3vh, 2rem);
  padding-bottom: 1rem;
}

body.is-auth .hero {
  margin: 0;
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.is-auth .hero-brand {
  display: grid;
  gap: 1.1rem;
}

body.is-auth .logo {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}

body.is-auth .auth-surface {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  animation: rise-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

/* —— Dashboard: kompakter Header + einheitliche Kartenbreite —— */
body.is-dashboard .shell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  max-width: 720px;
  padding-top: 1.25rem;
  padding-bottom: 0.5rem;
}

body.is-dashboard .shell:has(.dash-grid.has-create-and-list) {
  max-width: 960px;
}

body.is-dashboard .hero {
  margin: 0;
  animation: rise-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.is-dashboard .hero-brand {
  display: flex;
  align-items: baseline;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

body.is-dashboard .logo {
  font-size: clamp(1.55rem, 2.8vw, 1.85rem);
}

body.is-dashboard .headline {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
}

body.is-dashboard .lede {
  display: none;
}

.logo {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--ink);
}

.headline {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lede {
  margin: 0.55rem 0 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.surface {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 70%, white);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.15rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
  padding: 0.25rem;
  background: color-mix(in srgb, var(--bg-deep) 80%, white);
  border-radius: 12px;
}

.tab {
  flex: 1;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  padding: 0.65rem 0.85rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tab:hover { color: var(--ink); }
.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 32, 40, 0.06);
}

button {
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.7rem 1rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

button:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
button:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #f4fffd;
  border-color: transparent;
  font-weight: 600;
  white-space: nowrap;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, black);
  border-color: transparent;
}

.btn-ghost {
  background: transparent;
}

.btn-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0.15rem 0 0;
  color: var(--accent);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.btn-link:hover {
  color: color-mix(in srgb, var(--accent) 80%, black);
}

.auth-info {
  margin: 0.85rem 0 0;
  color: var(--accent);
  font-size: 0.95rem;
}

.btn-ghost.danger,
button.danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 28%, var(--line));
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

.btn-danger:hover {
  background: color-mix(in srgb, var(--danger) 88%, black);
  border-color: transparent;
}

.modal {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(420px, calc(100vw - 2rem));
  width: min(420px, calc(100vw - 2rem));
  overflow: visible;
}

.modal::backdrop {
  background: rgba(20, 32, 40, 0.42);
  backdrop-filter: blur(2px);
}

.modal-panel {
  margin: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 1.35rem 1.4rem 1.2rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--line) 70%, white);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 28px 60px -36px rgba(20, 32, 40, 0.55);
  display: grid;
  gap: 0.85rem;
  animation: modal-in 0.18s ease-out;
}

.modal-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.modal-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
  min-width: 0;
}

.modal-actions button {
  flex: 0 1 auto;
  white-space: nowrap;
}

.modal-wide {
  max-width: min(520px, calc(100vw - 2rem));
  width: min(520px, calc(100vw - 2rem));
}

.modal-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.modal-head-row .modal-title {
  min-width: 0;
}

.modal-panel label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
  min-width: 0;
}

.modal-panel input {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.form { display: grid; gap: 0.9rem; }
.form.inline {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.75rem;
}

.create-form {
  display: grid;
  gap: 0.75rem;
}

.create-form .slug-check {
  margin-top: -0.2rem;
}

.create-form #create-btn {
  justify-self: stretch;
  width: 100%;
}

.slug-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.slug-check.is-ok .slug-status {
  color: #0b7a72;
}

.slug-check.is-bad .slug-status {
  color: var(--danger);
}

.slug-suggestions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--muted);
}

.slug-suggestion {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-ink);
  cursor: pointer;
}

.slug-suggestion:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  min-width: 0;
  max-width: 100%;
}

.form {
  min-width: 0;
  max-width: 100%;
}

input {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.currency-field {
  display: grid;
  gap: 0.35rem;
}


input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hidden { display: none !important; }

.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; }
.row.gap { gap: 0.55rem; flex-wrap: wrap; }

.dash {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
  animation: rise-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.dash > .surface,
.dash > .dash-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.session-bar {
  position: relative;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  overflow: visible;
}

.session-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}

.session-identity-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}

.session-identity-main .label {
  flex: 0 0 auto;
  margin: 0;
}

.session-identity-main .strong {
  margin: 0;
  font-size: 1.05rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.session-menu {
  position: relative;
  flex: 0 0 auto;
  margin-left: 0;
}

.session-menu-toggle {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.burger {
  display: grid;
  gap: 0.28rem;
  width: 1.15rem;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.session-menu-list {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 50;
  min-width: 13.5rem;
  padding: 0.4rem;
  display: grid;
  gap: 0.15rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--line) 75%, white);
  border-radius: 12px;
  box-shadow: var(--shadow), 0 18px 40px -28px rgba(20, 32, 40, 0.55);
}

.session-menu-list button {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.session-menu-list button:hover,
.session-menu-list button:focus-visible {
  background: color-mix(in srgb, var(--accent-soft) 80%, white);
  outline: none;
}

.session-menu-list button.danger {
  color: var(--danger);
}

.billing-under {
  margin: 0;
  padding-left: 0;
  border-left: 0;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.dash-grid.has-create-and-list {
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.25fr);
}

.dash-grid > .surface {
  width: 100%;
  min-width: 0;
}

.panel {
  min-width: 0;
  width: 100%;
}

.panel h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel-head {
  margin-bottom: 0.75rem;
}

.instances-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.instance-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--line) 85%, white);
  border-radius: 12px;
  background: color-mix(in srgb, #fff 70%, var(--bg));
  min-width: 0;
}

.instance-url {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.instance-url .label {
  font-size: 0.82rem;
}

.instance-url a,
.copy-value {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: normal;
}

.instance-url a:hover {
  text-decoration: underline;
}

.copy-row {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.copy-row > a,
.copy-row > .copy-value {
  flex: 1 1 auto;
  min-width: 0;
}

.btn-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.btn-icon:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.btn-icon.is-copied {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-soft);
}

.repo-help {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
}

.repo-help a {
  color: var(--muted);
  font-weight: 500;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.repo-help a:hover {
  color: var(--accent);
}

.addon-repo-code {
  margin: 0.35rem 0 0.75rem;
  padding: 0.75rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.4;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent-soft) 70%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 10px;
  overflow-wrap: anywhere;
  user-select: all;
}

.instance-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 2rem;
}

.instance-meta-row > div {
  display: grid;
  gap: 0.2rem;
}

.instance-meta-row .label {
  font-size: 0.82rem;
}

.instance-value {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
}

.instance-item .actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.instance-item .pairing {
  margin-top: 0;
}

.label { margin: 0; color: var(--muted); font-size: 0.9rem; }
.muted { color: var(--muted); margin: 0 0 0.9rem; }
.strong { font-weight: 600; margin: 0.15rem 0 0; font-size: 1.05rem; }
.error { color: var(--danger); margin: 0.25rem 0 0; font-weight: 500; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-transform: lowercase;
}

.status-pill::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--muted);
  flex: 0 0 auto;
}

.status-pill.is-online::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.pairing {
  margin-top: 0;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  animation: rise-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.passkeys-list {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
}

.passkey-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--line) 85%, white);
  border-radius: 12px;
  background: color-mix(in srgb, #fff 70%, var(--bg));
}

.passkey-meta {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
}

#passkey-login-btn {
  width: 100%;
}

.code {
  font-family: var(--mono);
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  letter-spacing: 0.28em;
  margin: 0.45rem 0;
  color: var(--accent-ink);
  font-weight: 600;
}

code {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.95em;
}

.check-label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
}

.check-label input {
  width: auto;
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.check-label a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.check-label a:hover { text-decoration: underline; }

.onboarding .steps {
  margin: 0.35rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--ink);
}

.onboarding .steps li {
  margin: 0.45rem 0;
}

.disclaimer-inline,
.create-note {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
}

.create-example {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.92rem;
}

.create-example code {
  font-size: 0.9em;
}

.legal-disclaimer {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  max-width: 72ch;
}

.legal-disclaimer a,
.site-footer a,
.legal-doc a,
.legal-back a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legal-disclaimer a:hover,
.site-footer a:hover,
.legal-doc a:hover,
.legal-back a:hover {
  text-decoration: underline;
}

.site-footer {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

body.is-dashboard .site-footer {
  max-width: 720px;
}

body.is-dashboard:has(.dash-grid.has-create-and-list) .site-footer {
  max-width: 960px;
}

.footer-locale {
  display: flex;
  justify-content: center;
}

.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.locale-switcher-label {
  white-space: nowrap;
}

.locale-switcher select {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  min-width: 8.5rem;
}

.locale-switcher select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.footer-nav a {
  padding: 0.2rem 0.15rem;
  letter-spacing: 0.01em;
}

.footer-sep {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
  user-select: none;
}

body.is-legal .shell,
.legal-shell {
  width: 100%;
  max-width: 760px;
  display: block;
  min-height: auto;
  padding: 1.5rem 1.25rem 0.75rem;
  margin-left: auto;
  margin-right: auto;
  flex: 1 0 auto;
}

.legal-back {
  margin: 0 0 1rem;
}

.legal-doc h1 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.legal-doc h2 {
  margin: 1.6rem 0 0.45rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--ink);
}

.legal-doc ul {
  padding-left: 1.2rem;
}

@media (max-width: 860px) {
  body.is-auth .shell {
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-items: stretch;
    min-height: auto;
    gap: 1.15rem;
    padding-top: 1.15rem;
  }

  body.is-auth .hero {
    text-align: left;
  }

  body.is-auth .hero-brand {
    gap: 0.65rem;
  }

  body.is-auth .logo {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  body.is-auth .headline {
    font-size: clamp(1.15rem, 4.6vw, 1.4rem);
  }

  body.is-auth .lede {
    margin-top: 0.35rem;
    max-width: none;
    font-size: 1rem;
  }

  body.is-auth .hero-copy {
    max-width: none;
  }

  body.is-auth .auth-surface {
    width: 100%;
    padding: 1rem 1rem 1.05rem;
  }

  body.is-auth .form {
    gap: 0.8rem;
  }

  body.is-auth .btn-primary,
  body.is-auth .btn-ghost {
    width: 100%;
  }

  .dash-grid,
  .dash-grid.has-create-and-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
  }

  body.is-dashboard .shell {
    gap: 0.75rem;
    max-width: none;
  }

  body.is-dashboard .shell:has(.dash-grid.has-create-and-list) {
    max-width: none;
  }

  body.is-dashboard .site-footer,
  body.is-dashboard:has(.dash-grid.has-create-and-list) .site-footer {
    max-width: none;
  }

  .surface {
    padding: 1rem 0.95rem 1.05rem;
    border-radius: 14px;
  }

  .dash {
    gap: 0.75rem;
  }

  .session-bar {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .session-identity-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }

  .session-identity-main .strong {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .session-menu-toggle {
    width: 2.75rem;
    height: 2.75rem;
  }

  .billing-under {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .panel h2 {
    font-size: 1.12rem;
  }

  .onboarding .steps {
    padding-left: 1.2rem;
  }

  .onboarding .steps li {
    margin: 0.55rem 0;
  }

  .form.inline,
  .create-form {
    grid-template-columns: 1fr;
  }

  .create-form #create-btn,
  .btn-primary {
    width: 100%;
    justify-self: stretch;
  }

  body.is-dashboard .hero-brand {
    flex-direction: column;
    gap: 0.2rem;
  }

  body.is-dashboard .headline {
    font-size: 0.98rem;
  }

  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.55rem;
  }
}
