:root {
  --paper: #f3efe7;
  --paper-deep: #e8e1d5;
  --ink: #1b1b1f;
  --muted: #726c63;
  --faint: #9a9389;
  --line: #e7e0d5;
  --accent: #ef5b2a;
  --accent-dark: #d84a1b;
  --track-color: #d81e06;
  --track-color-soft: rgba(216, 30, 6, 0.16);
  --panel: rgba(255, 253, 249, 0.95);
  --shadow: 0 10px 34px rgba(40, 32, 22, 0.12);
  --radius: 14px;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

#map {
  position: absolute;
  inset: 0;
  background: var(--paper);
}

/* ---------- panel ---------- */

.panel {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 18px;
  width: 316px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  background: var(--panel);
  border: 1px solid rgba(40, 32, 22, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transform-origin: top left;
  transition:
    transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.18s ease;
}

.panel.is-minimizing {
  transform: scale(0.18);
  opacity: 0;
  pointer-events: none;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.panel.is-dragging .panel-head {
  cursor: grabbing;
}

.drag-grip {
  color: #b4aa9d;
  font-size: 13px;
  line-height: 1;
  letter-spacing: -2px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.panel h1 {
  margin: 6px 0 2px;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.panel-title {
  min-width: 0;
  flex: 1;
}

.name-input {
  display: block;
  width: 100%;
  margin: 6px 0 2px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  outline: none;
  text-overflow: ellipsis;
  cursor: text;
  touch-action: auto;
  user-select: text;
}

.name-input:hover {
  border-bottom-color: var(--line);
}

.name-input:focus {
  border-bottom-color: var(--accent);
}

.name-input::selection {
  background: rgba(239, 91, 42, 0.22);
}

.range {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.panel-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  place-items: center;
  cursor: pointer;
}

.panel-launcher {
  position: fixed;
  z-index: 30;
  top: 18px;
  left: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(40, 32, 22, 0.1);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  font-size: 18px;
  line-height: 1;
+  transform-origin: top left;
+  transition:
+    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
+    opacity 0.16s ease;
   place-items: center;
   cursor: pointer;
}

.panel-launcher.is-popping {
  transform: scale(0.62);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .panel-launcher {
    transition: none;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat strong {
  font-size: 18px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.stat span {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.control {
  margin-top: 14px;
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.label-row .value {
  color: var(--faint);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 11px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

select {
  width: 100%;
  height: 36px;
  padding: 0 30px 0 10px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  outline: none;
}

select:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(239, 91, 42, 0.55);
  outline-offset: 1px;
}

.base-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 4px;
}

.base-btn {
  height: 32px;
  padding: 0 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.base-btn:hover {
  border-color: #d6cdbf;
  color: var(--ink);
}

.base-btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.label-toggle {
  margin-top: 7px;
  font-size: 11px;
}

.range-hint {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

input[type="range"] {
  width: 100%;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 2px 0;
}

.color-swatch {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(40, 32, 22, 0.16);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.color-swatch:hover {
  transform: scale(1.08);
}

.color-swatch.is-active {
  box-shadow: 0 0 0 2px var(--ink);
}

.color-swatch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 18px;
}

.data-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
  margin-left: -8px;
}

.link-btn {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  padding: 4px 8px;
  transition: background 0.15s, color 0.15s;
}

.link-btn:hover {
  background: rgba(27, 27, 31, 0.05);
  color: var(--ink);
}

.link-btn.danger {
  color: #b42318;
}

.link-btn.danger:hover {
  background: rgba(180, 35, 24, 0.07);
}

.btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover:not(:disabled) {
  background: var(--accent-dark);
}

.btn.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn.ghost:hover:not(:disabled) {
  border-color: #d6cdbf;
}

.hint {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.5;
}

.updated {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 9.5px;
}

/* ---------- map overlay ---------- */

.legend {
  position: fixed;
  z-index: 10;
  left: 18px;
  bottom: 46px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px 7px;
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(40, 32, 22, 0.07);
  border-radius: 9px;
  color: var(--muted);
  font-size: 10px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.legend-bar {
  width: 92px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--track-color-soft), var(--track-color));
}

.attribution {
  position: fixed;
  z-index: 10;
  right: 10px;
  bottom: 8px;
  max-width: calc(100vw - 140px);
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255, 253, 249, 0.78);
  color: #6d665c;
  font-size: 9.5px;
  line-height: 1.3;
  text-align: right;
  pointer-events: none;
}

/* map controls */

.maplibregl-ctrl-top-right {
  top: 12px;
  right: 12px;
}

.maplibregl-ctrl-group {
  overflow: hidden;
  border-radius: 9px;
  background: rgba(255, 253, 249, 0.95);
  box-shadow: 0 3px 12px rgba(40, 32, 22, 0.14);
}

.maplibregl-ctrl-group button {
  width: 34px;
  height: 34px;
}

.maplibregl-ctrl-scale {
  border-color: rgba(40, 32, 22, 0.35);
  border-top: 0;
  background: rgba(255, 253, 249, 0.8);
  color: var(--ink);
  font-size: 9px;
}

/* popup */

.trail-popup .maplibregl-popup-content {
  min-width: 150px;
  padding: 10px 13px 11px;
  border: 1px solid rgba(40, 32, 22, 0.08);
  border-radius: 10px;
  background: #fffdf9;
  box-shadow: 0 8px 26px rgba(40, 32, 22, 0.16);
}

.trail-popup .maplibregl-popup-tip {
  border-top-color: #fffdf9;
}

.trail-popup .p-date {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.trail-popup .p-title {
  margin-top: 3px;
  max-width: 230px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.trail-popup .p-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

/* ---------- loading ---------- */

.loading {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(243, 239, 231, 0.9);
  backdrop-filter: blur(3px);
  transition: opacity 0.25s ease;
}

.loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 30px;
  text-align: center;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(239, 91, 42, 0.22);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
}

.loading-sub {
  margin: 0;
  max-width: 300px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- onboarding ---------- */

.onboarding {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.onboarding-card {
  width: min(470px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(40, 32, 22, 0.08);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 22px 70px rgba(40, 32, 22, 0.18);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.onboarding-card h2 {
  margin: 12px 0 10px;
  font-size: 32px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.onboarding-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 22px;
}

.example-link {
  display: inline-block;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11.5px;
  text-decoration: underline;
  text-decoration-color: rgba(114, 108, 99, 0.35);
  text-underline-offset: 3px;
}

.example-link:hover {
  color: var(--ink);
}

.privacy-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.7;
}

.privacy-note a,
.modal-note a {
  color: var(--accent-dark);
  text-underline-offset: 2px;
}

/* ---------- drag & drop ---------- */

.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(243, 239, 231, 0.82);
  backdrop-filter: blur(3px);
  pointer-events: none;
}

.drop-card {
  padding: 34px 46px;
  border: 2px dashed var(--accent);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

/* ---------- modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(27, 23, 18, 0.34);
  backdrop-filter: blur(3px);
}

.modal {
  width: min(380px, 100%);
  padding: 20px;
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 20px 60px rgba(20, 16, 12, 0.28);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
}

.field {
  margin-bottom: 16px;
}

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

.export-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.ratio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ratio-grid .scope-option span,
.quality-grid .scope-option span {
  padding: 8px 9px;
  font-size: 11.5px;
}

.ratio-grid .scope-option span em,
.quality-grid .scope-option span em {
  font-size: 9.5px;
}

.scope-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scope-option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.scope-option span em {
  font-style: normal;
  font-size: 10px;
  color: var(--faint);
}

.scope-option input:checked + span {
  border-color: var(--accent);
  background: rgba(239, 91, 42, 0.07);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12.5px;
  cursor: pointer;
}

.check-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.modal-note {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.6;
}

.sync-modal {
  width: min(500px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.risk-box {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid #efc9b6;
  border-radius: 10px;
  background: #fff5ee;
  color: #7a3b22;
  font-size: 11.5px;
  line-height: 1.65;
}

.risk-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.risk-box ul {
  margin: 0;
  padding-left: 16px;
}

.risk-box li + li {
  margin-top: 3px;
}

.sync-range {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.sync-range .scope-option span {
  padding: 8px 9px;
  font-size: 11.5px;
}

.sync-range .scope-option span em {
  font-size: 9.5px;
}

.tutorial {
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbf8f2;
}

.tutorial summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.tutorial[open] summary {
  margin-bottom: 6px;
}

.tutorial .steps {
  margin: 0;
  padding-left: 17px;
  font-size: 11.5px;
  line-height: 1.7;
}

.tutorial .modal-note {
  margin: 6px 0 0;
}

.sync-actions {
  position: sticky;
  bottom: -20px;
  z-index: 2;
  align-items: center;
  margin: 14px -20px 0;
  padding: 10px 20px 20px;
  border-top: 1px solid var(--line);
  background: #fffdf9;
}

.sync-actions .link-btn {
  margin-right: auto;
  white-space: nowrap;
}

.steps {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.steps li + li {
  margin-top: 4px;
}

.steps a {
  color: var(--accent-dark);
  text-underline-offset: 2px;
}

.steps code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #f2ece2;
  color: var(--ink);
  font-size: 11px;
}

.cookie-input {
  width: 100%;
  min-height: 86px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.cookie-input:focus {
  border-color: rgba(239, 91, 42, 0.6);
}

.consent {
  align-items: flex-start;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.consent input {
  margin-top: 2px;
}

.sync-status {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 12.5px;
}

.progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #eee7dc;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.2s ease;
}

.sync-log {
  max-height: 190px;
  margin: 10px 0 0;
  padding: 8px 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f4ed;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.sync-log:empty {
  display: none;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  max-width: min(90vw, 520px);
  padding: 10px 14px;
  border-radius: 9px;
  background: #24211d;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-size: 14px;
}

/* ---------- legal page ---------- */

.legal-page {
  overflow: auto;
  background: var(--paper);
}

.legal {
  width: min(680px, calc(100% - 40px));
  margin: 48px auto 80px;
  padding: 34px 38px;
  border: 1px solid rgba(40, 32, 22, 0.08);
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.legal h1 {
  margin: 12px 0 6px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.legal h2 {
  margin: 28px 0 8px;
  font-size: 15px;
}

.legal p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.legal a {
  color: var(--accent-dark);
  text-underline-offset: 2px;
}

.legal-updated {
  font-size: 11px !important;
  color: var(--faint) !important;
}

.legal-warning {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fbf0eb;
  color: #8a3a21 !important;
}

.legal-back {
  margin-top: 30px !important;
}

.legal-page .eyebrow {
  margin-bottom: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .panel {
    top: 10px;
    left: 10px;
    right: auto;
    width: calc(100vw - 20px);
    max-height: 62vh;
    padding: 14px;
  }

  .panel h1 {
    font-size: 25px;
  }

  .name-input {
    font-size: 25px;
  }

  .panel-launcher {
    top: 10px;
    left: 10px;
  }

  .panel-body {
    padding-top: 2px;
  }

  .stats {
    margin-top: 12px;
    padding: 10px 0;
  }

  .stat strong {
    font-size: 16px;
  }

  .legend {
    display: none;
  }

  .attribution {
    left: 10px;
    right: auto;
    bottom: 7px;
    max-width: calc(100vw - 110px);
    text-align: left;
  }

  .maplibregl-ctrl-top-right {
    top: auto;
    right: 10px;
    bottom: 96px;
  }

  .maplibregl-ctrl-bottom-left {
    bottom: 6px;
    left: 10px;
  }

  .toast {
    bottom: 16px;
  }

  .onboarding {
    padding: 12px;
    align-items: end;
  }

  .onboarding-card {
    padding: 20px;
    margin-bottom: 12px;
  }

  .onboarding-card h2 {
    font-size: 25px;
  }

  .onboarding-actions {
    margin-top: 16px;
  }

  .modal.sync-modal {
    width: 100%;
    max-height: calc(100vh - 24px);
  }

  .sync-range {
    grid-template-columns: 1fr;
  }

  .sync-actions {
    flex-wrap: wrap;
  }

  .sync-actions .link-btn {
    width: 100%;
    margin-right: 0;
    text-align: left;
    padding-left: 0;
  }
}

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