:root {
  color-scheme: light;
  --ink: #162033;
  --muted: #667085;
  --soft: #f4f6f8;
  --paper: #ffffff;
  --line: #e3e7ec;
  --navy: #18283f;
  --blue: #405cf5;
  --blue-dark: #3047d8;
  --mint: #67d4af;
  --mint-soft: #e9f9f3;
  --amber: #f3a742;
  --danger: #b63838;
  --shadow: 0 18px 55px rgba(19, 31, 51, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #f7f8fa;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: var(--navy);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid rgba(64, 92, 245, 0.45);
  outline-offset: 3px;
}

.app-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  border-block-end: 1px solid rgba(227, 231, 236, 0.9);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.app-brand em { color: var(--blue); font-style: normal; }
.brand-glyph {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: linear-gradient(145deg, var(--blue), #7c5cf6);
  box-shadow: 0 8px 18px rgba(64, 92, 245, 0.25);
}
.account-nav { display: flex; align-items: center; gap: 0.35rem; }
.account-nav a, .nav-button {
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 0.7rem;
  color: #4d596b;
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.account-nav a:hover, .nav-button:hover { color: var(--ink); background: var(--soft); }
.account-nav .nav-cta { margin-inline-start: 0.25rem; padding-inline: 1rem; color: white; background: var(--navy); }
.account-nav .nav-cta:hover { color: white; background: #263b58; }
.account-nav form { margin: 0; }

.app-main {
  width: min(1180px, calc(100% - 2rem));
  min-height: calc(100vh - 155px);
  margin-inline: auto;
  padding-block: 2.25rem 4.5rem;
}
.app-footer {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

h1, h2, h3 { margin-block: 0; font-family: "Manrope", sans-serif; letter-spacing: -0.035em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
h3 { font-size: 1.05rem; }
p { margin-block: 0; }
.eyebrow { color: var(--blue); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.muted { color: var(--muted); }

.flash {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid;
  border-radius: 0.8rem;
  font-weight: 600;
}
.flash-success { color: #166c50; border-color: #a9dfcc; background: var(--mint-soft); }
.flash-error { color: #8a2929; border-color: #efb9b9; background: #fff0f0; }
.flash-info { color: #2945a0; border-color: #bec9ff; background: #eef1ff; }

.auth-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(103, 212, 175, 0.16), transparent 28rem),
    radial-gradient(circle at 95% 65%, rgba(64, 92, 245, 0.12), transparent 30rem),
    #f7f8fa;
}
.auth-shell {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}
.auth-shell-compact { min-height: 570px; }
.auth-intro h1 { max-width: 650px; margin-block-start: 0.9rem; }
.auth-intro > p:not(.eyebrow) { max-width: 570px; margin-block-start: 1.25rem; color: var(--muted); font-size: 1.12rem; }
.benefit-list { margin: 2rem 0 0; padding: 0; display: grid; gap: 0.8rem; list-style: none; }
.benefit-list li { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.benefit-list li::before { content: "✓"; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #146f51; background: var(--mint-soft); font-weight: 800; }
.auth-card, .panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.auth-card { padding: clamp(1.5rem, 4vw, 2.4rem); }
.card-lede { margin-block-start: 0.5rem; color: var(--muted); }
.form-stack { margin-block-start: 1.5rem; display: grid; gap: 1.15rem; }
.form-compact { margin-block-start: 0; }
.field { position: relative; display: grid; gap: 0.42rem; }
.field label { color: #344054; font-size: 0.88rem; font-weight: 700; }
.field label span { color: #8992a1; font-weight: 500; }
.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cfd5dd;
  border-radius: 0.7rem;
  color: var(--ink);
  background: white;
  font-size: 1rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field select { appearance: none; padding-inline-end: 2.4rem; background-image: linear-gradient(45deg, transparent 50%, #667085 50%), linear-gradient(135deg, #667085 50%, transparent 50%); background-position: calc(100% - 1rem) 50%, calc(100% - .7rem) 50%; background-size: .35rem .35rem, .35rem .35rem; background-repeat: no-repeat; }
.field input:hover,
.field select:hover { border-color: #aeb7c3; }
.field input:focus,
.field select:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 4px rgba(64, 92, 245, 0.11); }
.field input:disabled { color: #6f7785; background: #f3f4f6; }
.field small { color: var(--muted); font-size: 0.78rem; }
.password-field input { padding-inline-end: 4.5rem; }
.password-toggle {
  position: absolute;
  inset-inline-end: 0.5rem;
  inset-block-start: 2.12rem;
  min-width: 3.4rem;
  min-height: 36px;
  border: 0;
  border-radius: 0.5rem;
  color: var(--blue);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.password-toggle:hover { background: #f0f2ff; }
.check-field { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 0.65rem; color: #4f5b6b; font-size: 0.88rem; }
.check-field input { width: 20px; height: 20px; margin: 0.05rem 0 0; accent-color: var(--blue); }
.check-field label { padding-block: 0.02rem; }

.button {
  min-height: 46px;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 8px 20px rgba(64, 92, 245, 0.2); }
.button-primary:hover { background: var(--blue-dark); }
.button-dark { color: white; background: var(--navy); }
.button-dark:hover { background: #263b58; }
.button-secondary { color: var(--ink); border-color: var(--line); background: white; }
.button-secondary:hover { background: var(--soft); }
.button-danger { color: var(--danger); border-color: #efc7c7; background: white; }
.button-danger:hover { background: #fff1f1; }
.button-wide { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; }
.auth-switch { margin-block-start: 1.3rem; color: var(--muted); text-align: center; font-size: 0.9rem; }
.auth-switch a { color: var(--blue); font-weight: 700; }

.dashboard-hero { padding-block: 1rem 2rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.dashboard-hero h1 { margin-block-start: 0.55rem; font-size: clamp(2rem, 4vw, 3rem); }
.dashboard-hero > div > p:last-child { margin-block-start: 0.6rem; color: var(--muted); font-size: 1.05rem; }
.plan-pill { min-width: 150px; padding: 1rem 1.15rem; border: 1px solid #cbd3ff; border-radius: 1rem; background: #f0f2ff; text-align: right; }
.plan-pill span, .plan-pill small { display: block; color: #69748a; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.plan-pill strong { display: block; margin-block: 0.15rem; color: #3047d8; font-family: "Manrope", sans-serif; font-size: 1.4rem; }
.stat-grid { margin-block-end: 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; box-shadow: 0 10px 35px rgba(19, 31, 51, 0.045); }
.stat-grid article { min-height: 125px; padding: 1.4rem 1.5rem; display: flex; flex-direction: column; justify-content: center; border-inline-end: 1px solid var(--line); }
.stat-grid article:last-child { border-inline-end: 0; }
.stat-grid span, .stat-grid small { color: var(--muted); }
.stat-grid span { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.075em; }
.stat-grid strong { margin-block: 0.2rem; font-family: "Manrope", sans-serif; font-size: 1.85rem; }
.stat-grid small { font-size: 0.78rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 1.4rem; }
.dashboard-main { min-width: 0; display: grid; gap: 2rem; }
.dashboard-aside { display: grid; gap: 1rem; position: sticky; inset-block-start: 96px; }
.panel { padding: 1.35rem; }
.panel-heading, .section-heading, .link-card-head, .link-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-heading h2, .section-heading h2 { margin-block-start: 0.32rem; }
.step-badge { padding: 0.35rem 0.65rem; border-radius: 999px; color: #3047d8; background: #eef0ff; font-size: 0.75rem; font-weight: 800; }
.create-form { margin-block-start: 1.2rem; display: grid; grid-template-columns: minmax(150px, 0.45fr) minmax(220px, 1fr) auto; align-items: end; gap: 0.8rem; }
.links-section { min-width: 0; }
.section-heading { margin-block-end: 0.9rem; }
.section-heading > span { color: var(--muted); font-size: 0.85rem; }
.link-list { display: grid; gap: 0.8rem; }
.link-card { padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: 0.95rem; background: white; box-shadow: 0 6px 20px rgba(19, 31, 51, 0.035); }
.link-card-head { align-items: start; }
.link-card h3 { margin-block-start: 0.5rem; }
.status { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.24rem 0.5rem; border-radius: 999px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-live { color: #167354; background: var(--mint-soft); }
.status-archived { color: #687385; background: #eef0f2; }
.click-count { color: var(--ink); font-family: "Manrope", sans-serif; font-size: 1.2rem; text-align: right; }
.click-count span { display: block; color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }
.short-link { margin-block-start: 0.85rem; display: block; color: var(--blue); font-weight: 700; text-decoration: none; }
.short-link:hover { text-decoration: underline; }
.destination { margin-block-start: 0.25rem; overflow: hidden; color: var(--muted); font-size: 0.84rem; text-overflow: ellipsis; white-space: nowrap; }
.link-meta { margin-block-start: 0.85rem; padding-block-start: 0.8rem; border-block-start: 1px solid #edf0f3; color: var(--muted); font-size: 0.75rem; }
.link-controls { display: flex; align-items: center; gap: .25rem; }
.link-controls a { min-height: 38px; padding-inline: .55rem; display: inline-flex; align-items: center; border-radius: .5rem; color: var(--blue); text-decoration: none; font-weight: 700; }
.link-controls a:hover { background: #f0f2ff; }
.text-button { min-height: 38px; padding-inline: 0.55rem; border: 0; border-radius: 0.5rem; color: var(--blue); background: transparent; font-weight: 700; cursor: pointer; }
.text-button:hover { background: #f0f2ff; }
.edit-panel { margin-block-start: 1rem; padding: 1rem; border-radius: 0.8rem; background: #f8f9fb; }
.edit-panel[hidden] { display: none; }
.archive-form { margin-block-start: 0.65rem; }
.plan-card h2 { margin-block-start: 0.5rem; }
.plan-card > p:not(.eyebrow) { margin-block: 0.85rem 1rem; color: var(--muted); font-size: 0.84rem; }
.usage-track { width: 100%; height: 8px; margin-block-start: 1rem; border: 0; border-radius: 99px; overflow: hidden; background: #e7eaf0; appearance: none; }
.usage-track::-webkit-progress-bar { border-radius: inherit; background: #e7eaf0; }
.usage-track::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, var(--blue), #7c5cf6); }
.usage-track::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, var(--blue), #7c5cf6); }
.tip-card { color: white; border: 0; background: var(--navy); }
.tip-card > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--mint); font-size: 1.35rem; }
.tip-card h2 { margin-block-start: 1rem; font-size: 1.15rem; }
.tip-card p { margin-block-start: 0.65rem; color: #bfc9d7; font-size: 0.84rem; }
.empty-state { padding: 3rem 1.5rem; border: 1px dashed #cbd2db; border-radius: 1rem; background: rgba(255,255,255,0.55); text-align: center; }
.empty-state h3 { margin-block-start: 0.9rem; }
.empty-state p { max-width: 450px; margin: 0.5rem auto 0; color: var(--muted); }
.empty-icon { width: 52px; height: 52px; margin-inline: auto; display: grid; place-items: center; border-radius: 50%; color: #2c9875; background: var(--mint-soft); font-size: 1.45rem; }

.page-heading { padding-block: 1rem 2.25rem; }
.page-heading h1 { margin-block-start: 0.5rem; font-size: clamp(2rem, 4vw, 3rem); }
.page-heading > p:last-child { margin-block-start: 0.7rem; color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 1.4rem; }
.settings-grid .panel { padding: clamp(1.4rem, 3vw, 2rem); }
.billing-card h2 { margin-block-start: 0.55rem; }
.billing-card > p:not(.eyebrow) { margin-block: 0.8rem 1.2rem; color: var(--muted); }
.admin-stats { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.table-panel { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
caption { padding: 1.2rem 1.3rem; color: var(--ink); font-family: "Manrope", sans-serif; font-size: 1.15rem; font-weight: 700; text-align: left; }
th, td { padding: 0.85rem 1.1rem; border-block-start: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
thead th { color: var(--muted); background: #fafbfc; font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.07em; }
tbody th { font-size: 0.9rem; }
tbody th small { display: block; color: var(--muted); font-weight: 400; }
tbody td { color: #4f5a6b; font-size: 0.85rem; }

.analytics-heading { padding-block: 1rem 2rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.analytics-heading h1 { max-width: 780px; margin-block-start: 0.55rem; font-size: clamp(2rem, 4vw, 3rem); }
.analytics-heading p:last-child { max-width: 700px; margin-block-start: 0.7rem; color: var(--muted); }
.analytics-heading > .button { flex: 0 0 auto; }
.analytics-filters { margin-block-end: 0.8rem; padding: 1rem; display: grid; grid-template-columns: minmax(150px, .7fr) minmax(220px, 1.4fr) minmax(150px, .75fr) auto; align-items: end; gap: .75rem; box-shadow: 0 8px 28px rgba(19,31,51,.04); }
.analytics-upgrade-note { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: .75rem; color: #44516a; background: #eef0ff; font-size: .85rem; }
.analytics-upgrade-note a { color: var(--blue); font-weight: 700; }
.analytics-metrics { margin-block: 1.4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.analytics-metrics article { min-height: 145px; padding: 1.15rem; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 8px 28px rgba(19,31,51,.045); }
.analytics-metrics article > span:first-child { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.analytics-metrics article > strong { margin-block: .35rem; font-family: "Manrope", sans-serif; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.analytics-metrics article > small { color: var(--muted); font-size: .74rem; }
.metric-change { width: fit-content; padding: .2rem .42rem; border-radius: 999px; font-size: .7rem; font-weight: 700; }
.metric-change.positive { color: #137152; background: var(--mint-soft); }
.metric-change.negative { color: #9b3434; background: #fff0f0; }
.metric-change.neutral { color: #657083; background: #f0f2f4; }
.trend-panel { padding: clamp(1rem, 3vw, 1.5rem); }
.lifetime-counter { text-align: right; }
.lifetime-counter span { display: block; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.lifetime-counter strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.45rem; }
.trend-chart { margin: 1rem 0 0; }
.trend-chart svg { width: 100%; height: 260px; display: block; overflow: visible; }
.chart-grid { stroke: #dfe4ea; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-area { fill: rgba(64, 92, 245, .1); }
.chart-line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-axis-label { fill: #7a8494; font: 11px "DM Sans", sans-serif; }
.chart-axis-end { text-anchor: end; }
.trend-chart figcaption { margin-block-start: .5rem; color: var(--muted); font-size: .78rem; }
.chart-data { margin-block-start: .7rem; }
.chart-data summary { width: fit-content; min-height: 40px; padding: .55rem .7rem; border-radius: .55rem; color: var(--blue); font-size: .8rem; font-weight: 700; cursor: pointer; }
.chart-data summary:hover { background: #f0f2ff; }
.chart-data .table-scroll { max-height: 360px; margin-block-start: .5rem; border: 1px solid var(--line); border-radius: .75rem; }
.breakdown-grid { margin-block-start: 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.breakdown-card { box-shadow: 0 8px 28px rgba(19,31,51,.04); }
.breakdown-card h2 { font-size: 1.1rem; }
.breakdown-card ol { margin: 1rem 0 0; padding: 0; display: grid; gap: .8rem; list-style: none; }
.breakdown-card li { display: grid; gap: .35rem; }
.breakdown-label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: .84rem; }
.breakdown-label > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breakdown-label strong { flex: 0 0 auto; font-size: .8rem; }
.breakdown-label small { color: var(--muted); font-weight: 500; }
.breakdown-card progress { width: 100%; height: 7px; border: 0; border-radius: 99px; overflow: hidden; background: #e9ecf1; appearance: none; }
.breakdown-card progress::-webkit-progress-bar { border-radius: inherit; background: #e9ecf1; }
.breakdown-card progress::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, var(--blue), #7c5cf6); }
.breakdown-card progress::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, var(--blue), #7c5cf6); }
.breakdown-card .no-data { padding-block: 1rem; color: var(--muted); font-size: .84rem; }
.analytics-tables-grid { margin-block-start: 1rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 1rem; }
.analytics-table { box-shadow: 0 8px 28px rgba(19,31,51,.04); }
.analytics-table table { min-width: 520px; }
.analytics-table tbody th a { color: var(--blue); text-decoration: none; }
.analytics-table tbody th a:hover { text-decoration: underline; }
.recent-table { margin-block-start: 1rem; }
.recent-table table { min-width: 760px; }
.analytics-privacy-note { max-width: 90ch; margin: 1rem auto 0; color: var(--muted); font-size: .76rem; text-align: center; }
.visually-hidden:where(:not(:focus-within, :active)) { position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; white-space: nowrap !important; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; min-height: 0; gap: 2.25rem; padding-block: 1rem; }
  .auth-intro { max-width: 680px; }
  .auth-card { max-width: 580px; width: 100%; }
  .dashboard-grid, .settings-grid { grid-template-columns: 1fr; }
  .dashboard-aside { grid-template-columns: repeat(2, 1fr); position: static; }
  .create-form { grid-template-columns: 1fr 1fr; }
  .create-form .button { grid-column: 1 / -1; }
  .analytics-filters { grid-template-columns: repeat(2, 1fr); }
  .analytics-filters .button { width: 100%; }
  .analytics-metrics { grid-template-columns: repeat(2, 1fr); }
  .analytics-tables-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .header-inner, .app-main, .app-footer { width: min(100% - 1.25rem, 1180px); }
  .header-inner { min-height: 64px; }
  .account-nav { gap: 0; }
  .account-nav a { padding-inline: 0.55rem; font-size: 0.82rem; }
  .account-nav a:first-child { display: none; }
  .nav-button { min-width: 44px; padding-inline: 0.5rem; font-size: 0.78rem; }
  .brand-glyph { width: 34px; height: 34px; }
  .app-main { padding-block-start: 1.35rem; }
  .app-footer { flex-direction: column; gap: 0.35rem; }
  .dashboard-hero { align-items: start; }
  .plan-pill { display: none; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid article { min-height: 95px; border-inline-end: 0; border-block-end: 1px solid var(--line); }
  .stat-grid article:last-child { border-block-end: 0; }
  .create-form, .dashboard-aside { grid-template-columns: 1fr; }
  .link-card { padding-inline: 1rem; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row form, .button-row .button { width: 100%; }
  .analytics-heading { align-items: start; flex-direction: column; gap: 1rem; }
  .analytics-heading > .button { width: 100%; }
  .analytics-filters, .analytics-metrics, .breakdown-grid { grid-template-columns: 1fr; }
  .analytics-metrics article { min-height: 110px; }
  .trend-chart svg { height: 210px; }
  .lifetime-counter { display: none; }
}

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