:root {
  --bg: #07090f;
  --bg-elev: #10141f;
  --panel: #161b28;
  --ink: #f4f1ea;
  --muted: #9aa3b5;
  --faint: #6b7386;
  --line: rgba(244, 241, 234, 0.1);
  --accent: #ffb703;
  --accent-ink: #1a1400;
  --accent-2: #3ee0d4;
  --danger: #ff6b6b;
  --ok: #5ee0a0;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Syne", var(--font);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

html[data-theme="light"] {
  --bg: #f3efe6;
  --bg-elev: #fffdf8;
  --panel: #ffffff;
  --ink: #141820;
  --muted: #5b6475;
  --faint: #7a8394;
  --line: rgba(20, 24, 32, 0.1);
  --accent: #c47b00;
  --accent-ink: #fff8e8;
  --accent-2: #0e8f86;
  --shadow: 0 18px 40px rgba(40, 30, 10, 0.1);
}

html[data-palette="cyan"] { --accent: #2ad4ff; --accent-ink: #04202a; --accent-2: #ffb703; }
html[data-palette="magenta"] { --accent: #ff4fa3; --accent-ink: #2a0416; --accent-2: #7af0d0; }
html[data-palette="lime"] { --accent: #c6ff4a; --accent-ink: #142000; --accent-2: #6ea8ff; }

html[data-theme="light"][data-palette="cyan"] { --accent: #007a96; --accent-ink: #f3fcff; }
html[data-theme="light"][data-palette="magenta"] { --accent: #c2186a; --accent-ink: #fff5fa; }
html[data-theme="light"][data-palette="lime"] { --accent: #4a7a00; --accent-ink: #f7ffe8; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: var(--accent); }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }

.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.wrap-narrow { width: min(720px, calc(100% - 32px)); margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer;
  font-weight: 650; letter-spacing: 0.01em; text-decoration: none;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-small { padding: 7px 12px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.field label { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }

.notice { padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.notice.error { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.notice.ok { color: var(--ok); }
.notice.warn {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  margin-bottom: 14px;
}
.notice.danger {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--danger) 50%, var(--line));
  background: color-mix(in srgb, var(--danger) 12%, var(--panel));
  margin-bottom: 16px;
}
.notice[hidden] { display: none !important; }
.deletion-zone {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.deletion-zone p { color: var(--muted); margin: 0 0 12px; }
.deletion-countdown {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--danger);
  margin: 4px 0 14px;
}
.account-deletion-banner {
  background: color-mix(in srgb, var(--danger) 16%, var(--panel));
  border-bottom: 1px solid color-mix(in srgb, var(--danger) 40%, var(--line));
  color: var(--ink);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  text-align: center;
}
.account-deletion-banner[hidden] { display: none !important; }
.account-deletion-banner strong {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--danger);
}
#shareNotice { margin: 0 0 12px; }
.verify-steps {
  margin: 0 0 18px;
  padding: 0 0 0 1.2rem;
  color: var(--muted);
}
.verify-steps li { margin: 6px 0; }
.auth-email { color: var(--ink); font-weight: 650; word-break: break-all; }
.auth-verify-hint {
  margin: 12px 0 0;
  font-size: 0.9rem;
  text-align: center;
}

/* Landing */
.landing-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; gap: 12px;
}
.landing-nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wordmark {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.04em;
  font-size: 1.15rem; color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--accent); }
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px;
  align-items: start; padding: 28px 0 72px;
}
.kicker {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--display); font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 0.95; letter-spacing: -0.045em; margin: 0 0 18px; font-weight: 800;
}
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 38rem; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.points { display: grid; gap: 12px; }
.point { display: flex; gap: 12px; align-items: flex-start; }
.point b { display: block; }
.point span { color: var(--muted); font-size: 0.95rem; }
.dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  margin-top: 8px; flex: none;
}
.auth-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 24px; padding: 22px; box-shadow: var(--shadow);
}
.auth-card h2 { margin: 0 0 6px; font-family: var(--display); letter-spacing: -0.03em; }
.auth-card .sub { color: var(--muted); margin: 0 0 18px; font-size: 0.95rem; }
.auth-links { display: flex; justify-content: space-between; gap: 8px; font-size: 0.9rem; margin-top: 8px; }
.passkey-divider {
  display: flex; align-items: center; gap: 10px; color: var(--faint);
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 14px 0;
}
.passkey-divider::before, .passkey-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.passkey-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0;
}
.passkey-item small { color: var(--muted); display: block; }
.devices {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px;
}
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
  font-size: 0.78rem; color: var(--muted);
}
.footer { padding: 28px 0 48px; color: var(--faint); font-size: 0.85rem; border-top: 1px solid var(--line); }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Pricing */
.pricing-hero {
  text-align: center;
  padding: 12px 0 36px;
}
.pricing-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 14px;
  font-weight: 800;
}
.pricing-hero .lead {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 28px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  min-height: 100%;
}
.price-card.featured {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
}
.price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 4px 9px;
}
.price-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.price-card h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.03em;
  font-size: 1.8rem;
}
.price-amount {
  font-family: var(--display);
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 10px 0 4px;
  line-height: 1;
}
.price-amount small {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
}
.price-blurb {
  color: var(--muted);
  margin: 0 0 8px;
  min-height: 3em;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 8px 0 22px;
  flex: 1;
}
.price-features li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid var(--line);
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.price-features li.muted {
  color: var(--muted);
}
.price-features li.muted::before {
  background: var(--faint);
}
.price-card .btn { margin-top: auto; }
.price-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
.pricing-note {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 40rem;
  margin: 0 auto 36px;
  text-align: center;
}

@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-blurb { min-height: 0; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
}

/* App chrome */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 8px; }
.credits {
  font-variant-numeric: tabular-nums; font-size: 0.82rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px;
  text-decoration: none;
}
a.credits:hover { color: var(--ink); }
.app-main {
  display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 58px);
}
.sidebar {
  border-right: 1px solid var(--line); padding: 16px 12px; background: var(--bg-elev);
}
.sidebar h3 { margin: 0 12px 10px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.project-list { display: flex; flex-direction: column; gap: 4px; }
.project-item {
  text-align: left; width: 100%; background: transparent; border: 0;
  color: var(--ink); padding: 10px 12px; border-radius: 12px; cursor: pointer;
}
.project-item:hover, .project-item.active { background: var(--panel); }
.project-item small { display: block; color: var(--faint); font-size: 0.75rem; }
.editor { padding: 20px 20px 80px; }
.editor-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
.editor-head h1 {
  margin: 0; font-family: var(--display); letter-spacing: -0.04em; font-size: clamp(1.6rem, 3vw, 2.3rem);
}
.title-input {
  font: inherit; font-family: var(--display); font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(1.6rem, 3vw, 2.3rem); background: transparent; border: 0; width: min(100%, 40rem);
  padding: 0; outline: none; color: var(--ink);
}
.title-input::placeholder { color: var(--faint); font-weight: 700; }

.section-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 0 0 14px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.section-card.is-fresh {
  animation: section-in 0.28s ease;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}
.section-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.section-title {
  flex: 1 1 14rem; min-width: 0; background: transparent; border: 0;
  border-bottom: 1px solid transparent; font-weight: 750; font-size: 1.15rem;
  outline: none; padding: 4px 0; color: var(--ink);
}
.section-title::placeholder { color: var(--faint); font-weight: 650; }
.section-title:focus { border-bottom-color: var(--accent); }
.section-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.blocks { display: flex; flex-direction: column; gap: 10px; }
.section-editor {
  width: 100%; min-height: 120px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; resize: vertical;
}

.url-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 12px 12px 14px; flex-wrap: wrap;
}
.url-card .meta { flex: 1; min-width: 0; }
.url-card .host { font-weight: 700; }
.url-card .href {
  display: block; color: var(--muted); font-size: 0.85rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--mono); text-decoration: none;
}
.url-card .href:hover { color: var(--accent); }
.url-card-actions {
  display: flex; gap: 6px; flex-wrap: wrap; flex: none;
}
.url-card .copy {
  flex: none; min-width: 72px;
}
.sidebar-sub {
  margin: 16px 12px 6px; font-size: 0.78rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.contrib-banner {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
}
.locked-note { margin: 0 0 10px; color: var(--muted); font-size: 0.9rem; }
.section-card.is-locked { opacity: 0.96; }
.invite-row, .request-row {
  display: flex; gap: 12px; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.check-row {
  display: flex; gap: 8px; align-items: center; margin: 0 0 8px; color: var(--ink);
}

.empty {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px;
  color: var(--muted); text-align: center;
}
.empty-cta {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.empty-cta p { margin: 0; max-width: 36rem; }

.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); display: inline-block; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* Settings */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.settings-panel {
  width: min(860px, 100%); height: min(720px, 92vh); background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: var(--shadow);
}
.settings-title { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.settings-body { display: flex; flex: 1; min-height: 0; }
.settings-menu { width: 200px; border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.settings-menu button {
  text-align: left; background: transparent; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--ink);
}
.settings-menu button.active, .settings-menu button:hover { background: var(--panel); }
.settings-content { flex: 1; overflow: auto; padding: 18px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.theme-chip { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 12px; cursor: pointer; }
.theme-chip.active { border-color: var(--accent); }

.share-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.share-url {
  font-family: var(--mono); font-size: 0.9rem; word-break: break-all;
  background: var(--bg); padding: 10px 12px; border-radius: 10px;
}
.qr-wrap { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-top: 12px; }
.qr-wrap img { width: 180px; height: 180px; background: #fff; border-radius: 12px; padding: 8px; }

.dialog {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.dialog-card {
  width: min(440px, 100%); background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; box-shadow: var(--shadow);
  animation: dialog-pop 0.16s ease;
}
.dialog-card h3 {
  font-family: var(--display); letter-spacing: -0.03em;
  margin: 0 0 8px; font-size: 1.25rem;
}
.dialog-card p { margin: 0; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.dialog-copy { margin-top: 14px; }
.dialog-copy input {
  width: 100%; font-family: var(--mono); font-size: 0.85rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; outline: none; color: var(--ink);
}
.dialog-copy input:focus { border-color: var(--accent); }

.toast-stack {
  position: fixed; right: 16px; bottom: 16px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px;
  width: min(340px, calc(100% - 24px)); pointer-events: none;
}
.toast {
  pointer-events: auto; padding: 12px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  box-shadow: var(--shadow); animation: toast-in 0.2s ease;
}
.toast.error {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
}
.toast.ok { color: var(--ok); }

@keyframes section-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes dialog-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .section-card.is-fresh, .toast, .dialog-card { animation: none; }
}

/* Share (crew) page */
.crew {
  min-height: 100vh; background: #07090f; color: #f4f1ea;
  font-family: var(--font);
}
.crew-top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(7,9,15,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 14px 16px 12px;
}
.crew-top .show {
  font-family: var(--display); font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: -0.04em; font-weight: 800; margin: 0;
}
.crew-top .updated { color: #9aa3b5; font-size: 0.88rem; margin: 4px 0 0; }
.crew-nav {
  display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 12px;
  -webkit-overflow-scrolling: touch;
}
.crew-nav a {
  flex: none; color: #f4f1ea; text-decoration: none; border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 8px 12px; font-size: 0.9rem; background: #10141f;
}
.crew-body { width: min(780px, calc(100% - 24px)); margin: 0 auto; padding: 12px 0 64px; }
.crew-section { margin: 0 0 22px; scroll-margin-top: 96px; }
.crew-section h2 { font-size: 1.35rem; margin: 0 0 10px; letter-spacing: -0.03em; }
.crew-text { font-size: 1.05rem; line-height: 1.55; }
.crew-text h1, .crew-text h2, .crew-text h3 { font-size: 1.1em; }
.crew-text ul, .crew-text ol { padding-left: 1.2em; }
.crew-url {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #161b28; border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 14px; margin: 10px 0;
}
.crew-url .href {
  color: #9aa3b5; word-break: break-all; font-size: .9rem; text-decoration: none;
}
.crew-url .href:hover { color: #ffb703; }
.crew-url-actions { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
.crew-url .click-link, .crew-url button {
  min-height: 44px; min-width: 72px; border-radius: 12px; border: 0;
  background: #ffb703; color: #1a1400; font-weight: 750; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 12px; text-decoration: none;
}
.crew-url button {
  background: #10141f; color: #f4f1ea; border: 1px solid rgba(255,255,255,.12);
}
.crew-text a { color: #ffb703; }
.crew-gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.crew-gate .card { width: min(420px, 100%); background: #10141f; border-radius: 20px; padding: 22px; border: 1px solid rgba(255,255,255,.1); }

@media (max-width: 800px) {
  .app-main { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .settings-body { flex-direction: column; }
  .settings-menu { width: 100%; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .dialog {
    padding: 10px;
    align-items: flex-end;
  }
  .dialog-card {
    width: 100%;
    padding: 20px 16px 16px;
  }
  .dialog-actions {
    width: 100%;
  }
  .dialog-actions .btn {
    flex: 1;
    min-height: 44px;
  }
  .toast-stack {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 12px;
  }
}
