:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --ink: #10392d;
  --muted: #67736b;
  --line: #dddfd3;
  --lime: #d7f79a;
  --lime-hover: #caed83;
  --sage: #edf1e2;
  --coral: #b24732;
  --surface: #fffdf7;
  --error: #9d392b;
  --warning: #795a20;
  --space: 24px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  border: 0;
}
/* The page region receives focus after navigation; controls keep visible rings. */
#main:focus {
  outline: none;
}
:where(button, a, input, textarea, select, summary, [contenteditable]):focus-visible {
  outline: 3px solid #4f791a;
  outline-offset: 4px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 1px;
}
button,
a {
  transition:
    background 0.16s ease,
    color 0.16s ease;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
h1,
.intro-title {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
h2 {
  font-size: 29px;
  line-height: 1.17;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 23px;
  line-height: 1.2;
}
svg {
  flex: 0 0 auto;
  vertical-align: middle;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-200%);
  z-index: 100;
  padding: 12px;
  background: var(--lime);
}
.skip-link:focus {
  transform: none;
}
.shell {
  width: min(1120px, calc(100% - 80px));
  margin-inline: auto;
}
.app-header {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}
.wordmark {
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -0.065em;
}
.header-right,
.actions,
.section-head,
.inline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav {
  display: flex;
  gap: 9px;
}
.nav button {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  justify-content: center;
  min-width: 48px;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}
.nav button:hover {
  color: var(--ink);
}
.nav button[aria-current="page"] {
  color: var(--ink);
}
.nav button[aria-current="page"] svg {
  stroke-width: 2.4;
}
.profile {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}
.profile:hover {
  background: var(--sage);
}
.hero {
  padding: 49px 0 38px;
}
.hero p {
  max-width: 440px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}
.overview {
  padding-top: 0;
  transition: padding-top 0.26s ease;
}
.overview.is-compact {
  padding-top: 24px;
}
.overview-intro {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 0.26s ease, opacity 0.18s ease;
}
.intro-clip {
  min-height: 0;
  overflow: hidden;
}
.overview-intro.is-dismissed {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}
.eyebrow {
  margin-bottom: 15px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-banner {
  padding: 12px 20px;
  margin-top: 20px;
  border-radius: 12px;
  background: var(--sage);
  font-size: 12px;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 64px;
  align-items: start;
  padding-bottom: 65px;
}
.section-head {
  justify-content: space-between;
  margin-bottom: 19px;
  gap: 12px;
}
.section-head .text-button {
  flex-shrink: 0;
}
.section-head .count {
  margin-left: 8px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 7px 3px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  text-decoration: none;
}
.text-button:hover {
  color: var(--ink);
  text-decoration: underline;
}
.subscription-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.subscription-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 16px;
  gap: 16px;
  width: 100%;
  min-height: 103px;
  align-items: center;
  text-align: left;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.subscription-row:hover {
  background: #eef1e4;
}
.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sage);
  font-size: 21px;
  font-weight: 600;
}
.service-icon svg {
  width: 28px;
  height: 28px;
}
.service-spotify {
  color: #1ed760;
  background: #161b17;
}
.service-storytel {
  color: #f9672e;
  background: #ffebe1;
}
.service-netflix {
  color: #e50914;
  background: #141414;
}
.service-apple {
  background: #e9e9e5;
  color: #30362f;
}
.service-figma {
  color: #9a492d;
  background: #ece7e0;
}
.row-title {
  display: block;
  margin: 3px 0;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.row-meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.row-date {
  color: var(--muted);
  font-size: 12px;
}
.row-amount {
  font-size: 17px;
  font-weight: 650;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.row-amount .row-meta {
  font-weight: 400;
  font-size: 11px;
  margin-top: 4px;
}
.chevron {
  color: var(--muted);
}
.review-row {
  grid-template-columns: 48px minmax(0, 1fr) 16px;
}
.add-cta {
  display: flex;
  align-items: center;
  gap: 17px;
  width: 100%;
  min-height: 88px;
  padding: 19px 24px;
  margin-top: 28px;
  border-radius: 999px;
  text-align: left;
  background: var(--lime);
}
.add-cta:hover,
.button.primary:hover {
  background: var(--lime-hover);
}
.add-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--lime);
  background: var(--ink);
  flex-shrink: 0;
}
.add-cta strong {
  display: block;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
}
.add-cta small {
  display: block;
  margin-top: 4px;
  color: #526638;
  font-size: 13px;
}
.add-cta > svg {
  margin-left: auto;
}
.review-block {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 50%;
  background: #e7f3cb;
  color: var(--ink);
  font: 13px var(--sans);
}
.review-block .subscription-row {
  min-height: 88px;
}
.quiet-state {
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
}
.summary {
  background: var(--sage);
  border-radius: 24px;
  padding: 27px;
}
.summary h2 {
  font-size: 25px;
}
.summary-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.currency-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 25px;
  margin: 23px 0 15px;
}
.currency-total {
  display: block;
  font-size: 30px;
  letter-spacing: -0.045em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.currency-total small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.summary-note {
  padding-top: 15px;
  border-top: 1px solid #d3d9c5;
  font-size: 12px;
  color: #5f6d59;
}
.calendar {
  width: 100%;
  max-width: 392px;
  margin-top: 28px;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.calendar-label {
  font-size: 15px;
  font-weight: 600;
}
.calendar-controls {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.button.calendar-today {
  min-height: 44px;
  padding: 8px;
  font-size: 12px;
}
.icon-button {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 8px;
  border-radius: 50%;
  background: transparent;
}
.icon-button:hover {
  background: var(--sage);
}
.calendar-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 2px 4px;
  text-align: center;
}
.calendar-grid th,
.calendar-grid td {
  padding: 0;
}
.calendar-grid .weekday {
  height: 24px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
}
.calendar-day {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  height: 44px;
  padding: 0;
  border-radius: 13px;
  background: transparent;
  font: 16px var(--sans);
}
.calendar-day:hover {
  background: var(--sage);
}
.calendar-day[aria-pressed="true"] {
  background: var(--lime);
}
.calendar-day.today {
  box-shadow: inset 0 0 0 1px var(--ink);
}
.calendar-day:focus-visible {
  outline-offset: 0;
}
.calendar-number {
  font-variant-numeric: tabular-nums;
}
.has-payments .calendar-number {
  color: var(--coral);
  font-weight: 750;
}
.calendar-legend {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.management-section {
  margin: 22px 0;
}
.account-home {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.account-home:hover {
  background: var(--sage);
}
.account-home > svg {
  flex-shrink: 0;
}
.account-home > span {
  flex: 1;
  min-width: 0;
}
.account-home strong,
.account-home small {
  display: block;
}
.account-home strong {
  font-size: 16px;
  font-weight: 650;
}
.account-home small {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}
.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.management-button {
  gap: 7px;
  min-width: 0;
}
.button.service-link-edit {
  margin-top: 6px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.management-section .form-help {
  margin-top: 8px;
}
.mobile-calendar {
  display: none;
}
.mobile-summary {
  display: none;
}
.next-change {
  padding: 19px 0 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.next-change strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 14px;
}
.bottom-nav {
  display: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 21px;
  gap: 9px;
  border-radius: 999px;
  background: var(--sage);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}
.button:hover {
  background: #e0e7d2;
}
.button.primary {
  background: var(--lime);
  color: var(--ink);
}
.button.dark {
  background: var(--ink);
  color: var(--paper);
}
.button.danger {
  color: var(--error);
  background: #f5e8df;
}
.button.outline {
  border: 1px solid var(--line);
  background: transparent;
}
.button.text-button {
  border: 0;
  background: transparent;
}
.button.text-button:hover {
  background: rgb(16 57 45 / 5%);
}
.button.wide {
  width: 100%;
}
.filters {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(130px, auto));
  gap: 12px;
  margin-bottom: 18px;
}
.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
}
.field > span {
  font-weight: 550;
}
input,
select,
textarea {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid #c9cfc0;
  border-radius: 10px;
  background: var(--surface);
  font-size: 16px;
}
textarea {
  resize: vertical;
  min-height: 105px;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--ink);
  margin: 0;
  flex-shrink: 0;
}
input[type="file"] {
  padding: 14px;
  font-size: 13px;
}
.checkbox {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 18px;
}
.span-2 {
  grid-column: 1 / -1;
}
.form-section {
  border: 0;
  padding: 22px 0 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}
.form-section legend {
  float: left;
  width: 100%;
  padding: 0 0 18px;
  font: 23px var(--serif);
}
.form-section > .form-grid,
.form-section > .price-rows {
  clear: both;
}
.form-help {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.required-hint {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 24px;
}
.empty-state {
  padding: 31px 24px;
  border-block: 1px solid var(--line);
  text-align: center;
}
.empty-state .empty-symbol {
  margin: 0 auto 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage);
  display: grid;
  place-items: center;
}
.empty-state h3 {
  margin-bottom: 10px;
}
.empty-state p {
  max-width: 340px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}
.empty-state .button {
  margin-top: 20px;
}
.page-content {
  padding-bottom: 70px;
}
.view-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.status {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--sage);
  color: #50634b;
  font-size: 11px;
  font-family: var(--sans);
  font-weight: 500;
}
.status-review,
.status-trial {
  background: #f1ead7;
  color: var(--warning);
}
.status-cancelled,
.status-expired {
  background: #ede9e3;
  color: #6b6b61;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.payment-card {
  padding: 25px;
  border-radius: 20px;
  background: var(--sage);
}
.payment-card h2 {
  margin: 24px 0 10px;
  font-size: 27px;
  overflow-wrap: anywhere;
}
.payment-card p {
  color: var(--muted);
  font-size: 13px;
}
.card-links {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #d6ddca;
}
.card-links button {
  display: block;
  min-height: 44px;
  background: transparent;
  padding: 8px 0;
  text-align: left;
  font-size: 13px;
}
.card-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}
.initial {
  max-width: 640px;
  margin: 14vh auto;
  padding: 24px;
}
.gateway {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 90px;
  min-height: 75vh;
}
.gateway h1 {
  margin-bottom: 24px;
}
.gateway p {
  color: var(--muted);
  max-width: 410px;
  font-size: 17px;
}
.gateway-actions {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gateway-steps {
  margin: 0;
  padding: 28px;
  list-style: none;
  border-radius: 24px;
  background: var(--sage);
}
.gateway-steps li {
  display: flex;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid #d4ddc6;
}
.gateway-steps li:last-child {
  border: 0;
}
.gateway-steps .step-no {
  font: 32px var(--serif);
  color: #718459;
}
.gateway-steps strong {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}
.gateway-steps p {
  font-size: 13px;
}
.error-panel {
  padding: 17px;
  margin: 18px 0;
  border-radius: 10px;
  background: #f6e8df;
  color: var(--error);
  font-size: 13px;
}
.info-panel {
  padding: 16px 18px;
  margin: 18px 0;
  border-radius: 12px;
  background: var(--sage);
  font-size: 13px;
}
.info-panel p + p {
  margin-top: 8px;
}
.loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.notices {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, calc(100% - 32px));
  z-index: 90;
  pointer-events: none;
}
.toast {
  padding: 15px 21px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  box-shadow: 0 5px 20px #10392d1a;
}
dialog {
  width: min(700px, calc(100% - 36px));
  max-height: min(90dvh, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px));
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  inset-block-start: env(safe-area-inset-top);
  inset-block-end: env(safe-area-inset-bottom);
}
dialog::backdrop {
  background: #112c2266;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  z-index: 2;
}
.dialog-head h2 {
  font-size: 27px;
}
.dialog-body {
  padding: 24px 28px 30px;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.dialog-actions .primary {
  margin-left: 0;
}
.subscription-actions {
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  gap: 8px;
}
.subscription-actions > .button {
  min-width: 0;
}
.subscription-actions .secondary-status-action {
  justify-self: end;
  padding-inline: 8px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.recognition-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.recognition-actions > :last-child {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  padding-inline: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.editor-actions {
  position: sticky;
  bottom: -30px;
  padding: 16px 0 22px;
  background: var(--paper);
  z-index: 1;
}
.method-list {
  display: grid;
  gap: 12px;
}
.method {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 88px;
  border-radius: 16px;
  padding: 19px;
  text-align: left;
  background: var(--sage);
}
.method strong {
  display: block;
  font-size: 16px;
}
.method small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.method > svg:last-child {
  margin-left: auto;
}
.method:hover {
  background: #e0e9ce;
}
.upload-preview {
  display: block;
  max-width: 100%;
  max-height: 220px;
  margin: 15px auto;
  border-radius: 12px;
}
.document-preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.recognition-progress {
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr 85px 1.2fr 44px;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}
.details-title {
  display: flex;
  gap: 17px;
  align-items: center;
  margin-bottom: 22px;
}
.details-title h3 {
  font-size: 31px;
}
.detail-price {
  margin: 5px 0;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 13px 20px;
  margin: 22px 0;
  font-size: 14px;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-section {
  padding-top: 22px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.detail-section h3 {
  margin-bottom: 16px;
}
.source-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--muted);
  max-height: 190px;
  overflow: auto;
}
.history-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
}
.history-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.history-list time {
  color: var(--muted);
  font-size: 11px;
}
.history-list p {
  margin-top: 4px;
  white-space: pre-wrap;
}
.source-document {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.source-document a {
  font-size: 13px;
}
.duplicate-box {
  margin-top: 15px;
  padding: 18px;
  border-radius: 13px;
  border: 1px solid #a8b88c;
  background: var(--sage);
}
.duplicate-box .button {
  margin-top: 12px;
  margin-right: 8px;
}
.duplicate-box p {
  font-size: 13px;
}
.section-spacer {
  margin-top: 28px;
}
@media (min-width: 761px) {
  .full-list .subscription-row {
    grid-template-columns: 48px minmax(0, 1fr) auto 20px;
    min-height: 99px;
  }
  .full-list .row-title {
    font-size: 25px;
  }
  .full-list .row-meta {
    font-size: 13px;
  }
}
@media (max-width: 1000px) {
  .shell {
    width: calc(100% - 48px);
  }
  .dashboard {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(338px, 0.85fr);
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-add {
    display: none;
  }
  .gateway {
    gap: 40px;
  }
}
@media (max-width: 760px) {
  body:has(#app > .bottom-nav) {
    overflow: hidden;
  }
  #app:has(> .bottom-nav) {
    height: calc(100dvh - env(safe-area-inset-top));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  #app:has(> .bottom-nav) > main {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
  }
  #app:has(> .bottom-nav) > main::-webkit-scrollbar {
    display: none;
  }
  .shell {
    width: calc(100% - 40px);
  }
  .app-header {
    min-height: 68px;
    border-bottom: 0;
  }
  .wordmark {
    font-size: 25px;
  }
  .profile {
    width: 44px;
    height: 44px;
    border: 0;
  }
  .header-add {
    display: inline-flex;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
  }
  .header-add span {
    display: none;
  }
  .desktop-nav,
  .desktop-aside {
    display: none;
  }
  .hero {
    padding: 18px 0 22px;
  }
  .hero h1,
  .hero .intro-title {
    max-width: 440px;
    font-size: clamp(47px, 13.1vw, 68px);
  }
  .hero p {
    max-width: 310px;
    font-size: 15px;
    margin-top: 12px;
  }
  .overview.is-compact {
    padding-top: 16px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .dashboard {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 112px;
  }
  .dashboard-main {
    width: 100%;
  }
  h2 {
    font-size: 25px;
  }
  .section-head {
    margin-bottom: 10px;
  }
  .section-head .text-button {
    font-size: 12px;
  }
  .subscription-row {
    grid-template-columns: 44px minmax(0, 1fr) auto 12px;
    gap: 12px;
    min-height: 94px;
    padding: 17px 0;
  }
  .review-row {
    grid-template-columns: 44px minmax(0, 1fr) 12px;
  }
  .upcoming-list > li:nth-child(n + 3) {
    display: none;
  }
  .upcoming-head > .all-subscriptions {
    display: none;
  }
  .service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .service-icon svg {
    width: 25px;
    height: 25px;
  }
  .row-title {
    font-size: 21px;
  }
  .row-amount {
    font-size: 15px;
  }
  .row-meta,
  .row-date {
    font-size: 11px;
  }
  .row-amount .row-meta {
    font-size: 10px;
  }
  .add-cta {
    min-height: 80px;
    margin-top: 20px;
    padding: 15px 17px;
    gap: 12px;
  }
  .add-cta strong {
    font-size: 16px;
  }
  .add-cta small {
    font-size: 11px;
  }
  .add-symbol {
    width: 42px;
    height: 42px;
  }
  .review-block {
    padding-top: 26px;
    margin-top: 28px;
  }
  .mobile-calendar {
    display: block;
    margin-top: 16px;
  }
  .calendar {
    margin: 0 auto;
  }
  .calendar-label {
    font-size: 14px;
  }
  .mobile-summary {
    display: block;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .mobile-summary .summary {
    padding: 20px;
  }
  .mobile-summary .summary h2 {
    font-size: 23px;
  }
  .mobile-summary .currency-total {
    font-size: 25px;
  }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: static;
    width: min(348px, calc(100% - 32px));
    margin-inline: auto;
    transform: none;
    z-index: 5;
    min-height: 52px;
    padding: 0 8px calc(8px + env(safe-area-inset-bottom));
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .bottom-nav button {
    min-width: 0;
    min-height: 52px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: transparent;
    color: var(--muted);
    line-height: 1.2;
    border-radius: 14px;
  }
  .bottom-nav button .nav-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
  }
  .bottom-nav button[aria-current="page"] {
    color: var(--ink);
  }
  .bottom-nav button[aria-current="page"] .nav-icon {
    background: transparent;
  }
  .bottom-nav button[aria-current="page"] svg {
    stroke-width: 2.4;
  }
  .bottom-nav button:hover {
    color: var(--ink);
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters > :first-child {
    grid-column: 1 / -1;
  }
  .filters .field {
    font-size: 11px;
  }
  .filters .field select {
    font-size: 13px;
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .page-content {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
  .view-heading {
    align-items: flex-start;
  }
  .view-heading h1 {
    font-size: 42px;
  }
  .view-heading .button {
    font-size: 12px;
    padding: 11px 15px;
    min-height: 44px;
  }
  .gateway {
    display: block;
    min-height: 0;
    padding: 42px 0 60px;
  }
  .gateway h1 {
    font-size: 55px;
  }
  .gateway p {
    font-size: 15px;
  }
  .gateway-actions {
    margin: 25px 0 35px;
  }
  .gateway-steps {
    padding: 5px 24px;
  }
  .gateway-steps p {
    font-size: 12px;
  }
  .notices {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
  .demo-banner {
    margin-top: 0;
    padding: 10px 12px;
    font-size: 10px;
  }
  dialog {
    width: 100%;
    max-height: min(94dvh, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px));
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 23px 23px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dialog-head {
    padding: 16px 20px;
  }
  .dialog-head h2 {
    font-size: 25px;
  }
  .dialog-body {
    padding: 22px 20px 28px;
  }
  .dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .dialog-actions > .button,
  .service-links > .button {
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .subscription-actions .secondary-status-action {
    grid-column: 1 / -1;
    justify-self: start;
    padding-inline: 0;
  }
  .recognition-actions > :last-child {
    padding-inline: 0;
  }
  .service-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-links > :only-child {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .form-grid {
    gap: 16px 12px;
  }
  .form-grid .wide-mobile {
    grid-column: 1 / -1;
  }
  .price-row {
    grid-template-columns: 1fr 85px 40px;
    gap: 8px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
  }
  .price-row .date-field {
    grid-column: 1 / 3;
    grid-row: 2;
  }
  .price-row > button {
    grid-column: 3;
    grid-row: 1 / 3;
  }
  .detail-list {
    grid-template-columns: 1fr 1.3fr;
    gap: 13px 15px;
    font-size: 12px;
  }
  .detail-price {
    font-size: 28px;
  }
}
@media (max-width: 360px) {
  .service-links {
    grid-template-columns: 1fr;
  }
  .shell {
    width: calc(100% - 32px);
  }
  .row-title {
    font-size: 19px;
  }
  .row-amount {
    font-size: 13px;
  }
  .subscription-row {
    gap: 9px;
  }
  .add-cta {
    padding-inline: 13px;
    gap: 9px;
  }
  .add-cta strong {
    font-size: 14px;
  }
  .add-cta small {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
