/* Figma Frame 4 (33:807). Glass is intentionally limited to category buttons. */
:root {
  --paper: #f5f5f5;
  --ink: #1c1e21;
  --muted: #515c69;
  --card: #fafbfd;
  --line: #d4dbe4;
  --night: #252b33;
  --lime: #dce8f5;
  --glass-text: #253545;
  --rail-width: clamp(250px, 16.66vw, 254px);
  --ease-glass: cubic-bezier(.22, 1, .36, 1);
  --glass-motion: 260ms var(--ease-glass);
}

button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
body { touch-action: pan-y; }
.shell, .public-home, .landing-main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #526e91;
  outline-offset: 3px;
}

/* The category controls stay fixed at the left on the reference viewport. */
.shell .topbar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-width);
  height: 100dvh;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  padding: 23px 20px 22px;
  border: 0;
  border-left: 0;
  border-radius: 0 14px 14px 0;
  background:
    radial-gradient(ellipse 90% 78% at 100% 0%, #c1ceda 0%, #c1cedad4 38%, transparent 100%),
    linear-gradient(180deg, #94b4d0 0%, #94b4d0 12%, #aac0d4 29%, #bcc9d8 45%, #c8d1db 56%, #d3d6dc 73%, #d5d4d5 100%);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow-y: auto;
}

.topbar .wordmark {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 36px;
  padding: 1px;
  color: #fff;
  font-size: clamp(24px, 2vw, 31px) !important;
  letter-spacing: -.065em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: none;
  transition: none;
}
.topbar .wordmark:hover, .topbar .wordmark:active {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.topbar .wordmark span, .public-home .landing-brand span {
  display: inline-block;
  background: #fff;
  color: #1b2026;
  text-shadow: none;
  box-shadow: none;
}
.topbar .wordmark span { padding: 9px 9px; transform: rotate(-3deg); }
.public-home .landing-brand span { transform: rotate(-4deg); }

.topbar .filters, .topbar .desktop-nav {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 2px;
  overflow: visible;
}

.topbar .filters button, .topbar .desktop-nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font: 600 16px/1.1 Manrope, system-ui, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.topbar .filters svg, .topbar .desktop-nav svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar [data-filter="all"] svg { fill: currentColor; stroke: none; }
.topbar .filters button b, .topbar .filters button.active b {
  display: none;
}

.topbar .filters button {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.topbar .filters button.active {
  background:
    linear-gradient(100deg, #ffffff1f, #dce7f02b 46%, #b7c9db45),
    #a9c0d529;
  border-color: #ffffffd4;
  box-shadow: inset 0 1px 1px #ffffff6b, inset 0 -1px 2px #6d849818;
}
.topbar .desktop-nav button.active { background: transparent; border-color: transparent; box-shadow: none; }
.topbar .desktop-nav { display: none; }

.topbar .header-actions {
  display: grid;
  grid-template-columns: 79px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 12px;
}

.landing-topbar .language-control, .landing-topbar .landing-login {
  background: #eef1f5;
  border: 1px solid #b6c1cd;
  border-radius: 9px;
  box-shadow: none;
  color: var(--glass-text);
}
.landing-topbar .landing-faq { margin-left: 0; }

.topbar .account-button, .topbar .language-control, .topbar .support-button {
  border: 1px solid #ffffffa8;
  border-radius: 9px;
  background: #ffffff12;
  box-shadow: none;
  color: #fff;
  font: 600 15px/1 Manrope, system-ui, sans-serif;
}

.topbar .account-button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 61px;
  padding: 7px 10px;
  gap: 8px;
  text-align: left;
}

.topbar .account-button .avatar {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  background: #fff;
  color: #202226;
  border-radius: 7px;
  font: 800 14px Manrope, sans-serif;
}

.topbar .account-label {
  display: inline !important;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 15px;
}

.topbar .language-control { height: 52px; padding: 0 9px; }
.topbar .language-control > span { display: none; }
.topbar .language-control .language-select {
  width: 100%;
  height: 100%;
  padding: 0 19px 0 10px;
  appearance: none;
  border: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='15' viewBox='0 0 9 15'%3E%3Cpath d='m2 5 2.5-3L7 5M2 10l2.5 3L7 10' fill='none' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px center;
  color: #fff;
  font: 500 15px Manrope, system-ui, sans-serif;
}
.topbar .support-button {
  min-width: 0;
  height: 52px;
  padding: 0 12px;
  white-space: nowrap;
  cursor: pointer;
}
.landing-topbar .language-control .language-select,
.topbar .language-control > span, .landing-topbar .language-control > span {
  color: var(--glass-text);
  box-shadow: none;
}
.language-control .language-select option { background: #f8faff; color: #253545; }

/* Intro, flat link input, and the six-column shelf from the frame. */
.shell > main {
  max-width: none;
  min-width: 0;
  margin-left: var(--rail-width);
  padding: clamp(32px, 3.7vw, 57px) clamp(24px, 2.75vw, 44px) 70px;
  background: none;
}
.hero, .library-view { animation: glass-view 380ms var(--ease-glass) both; }
.hero h1, .hero .lead {
  text-align: center;
  margin-inline: auto;
}
@media (min-width: 1000px) {
  .hero h1, .hero .lead, .capture { position: relative; left: clamp(-36px, -2.4vw, -24px); }
}
.hero h1 {
  margin-block: 0 16px;
  color: var(--ink);
  font: 800 clamp(39px, 4.15vw, 64px)/1.02 Manrope, system-ui, sans-serif;
  letter-spacing: -.054em;
}
.hero h1 em, .library-view h1 em { color: inherit; }
.hero .lead {
  max-width: 570px;
  margin-block: 0;
  color: #39404a;
  font-size: clamp(14px, 1.12vw, 17px);
  line-height: 1.45;
  text-wrap: balance;
}
.capture {
  max-width: min(100%, clamp(620px, 52.75vw, 804px));
  margin: clamp(38px, 4.2vw, 64px) auto clamp(64px, 5.8vw, 88px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.capture > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.capture-row {
  height: clamp(62px, 4.9vw, 75px);
  gap: 10px;
  padding: 8px 9px 8px 22px;
  border: 1px solid #f2f4f8;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 38% 140% at 0% 50%, #b8c8d8 0%, #c0cbd8 34%, transparent 76%),
    linear-gradient(96deg, #c0cbd7 0%, #cfd0d7 45%, #d3cfcc 100%);
  box-shadow: inset 0 1px 2px #ffffff8f, inset 0 -1px 2px #76869a17;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.capture .link-icon { display: none; }
.capture input { color: var(--ink); font-size: 16px; }
.capture input::placeholder { color: #fff; opacity: 1; }
.capture-row:focus-within { border-color: #8da5c3; box-shadow: 0 0 0 3px #7899c22b; }
.capture input:focus-visible { outline: 0; }
.capture .send {
  flex: none;
  border: 1px solid #fff;
  border-radius: 9px;
  width: clamp(44px, 3.55vw, 54px);
  height: clamp(44px, 3.55vw, 54px);
  color: #1e2630;
  background: #ffffffeb;
  font-size: clamp(21px, 1.65vw, 25px);
  box-shadow: 0 1px 3px #354a6214;
}
.capture-actions { margin: 2px 0 0; }
.capture-actions .text-btn {
  min-height: 43px;
  padding: 6px 4px;
  color: var(--ink);
  font-size: 15px;
}
.capture .capture-hint {
  max-width: 675px;
  margin: 7px auto 0;
  color: #d5d7da;
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
  text-wrap: balance;
}
.capture .ai-availability, .capture .trial-status, .capture .demo-link { display: none; }
.section-head { align-items: center; gap: 12px; margin-bottom: clamp(17px, 2.1vw, 29px); }
.section-head h2 {
  margin: 0;
  font: 800 clamp(24px, 2.15vw, 34px)/1.12 Manrope, system-ui, sans-serif;
  letter-spacing: -.038em;
}
.section-head .text-btn { color: var(--muted); min-height: 40px; }
#savedHeading { scroll-margin-top: 26px; }

.saved-list, .library-list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.mini-card {
  --card-top: 38%;
  --tile-glass:
    radial-gradient(ellipse at 75% 36%, #f4fbff 0 9%, #d7e3ef 17%, #8299b3 25%, #aebfd2 34%, transparent 45%),
    radial-gradient(ellipse at 12% 57%, #dbeafa 0 10%, #91a8c3 24%, #cbd7e7 39%, transparent 56%),
    linear-gradient(120deg, #9bb3d1, #e8f3fd 52%, #9aaec6);
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 18px 18px 10px 10px;
  height: clamp(190px, 14.2vw, 225px);
  background: #202122;
  color: #f5f7fa;
  box-shadow: 0 2px 7px #24324315;
}
.mini-card:nth-child(3n + 1) {
  --tile-glass:
    radial-gradient(ellipse at 70% 34%, #f2f8ff 0 14%, #a2b6cf 29%, #869cb4 42%, transparent 55%),
    radial-gradient(ellipse at 4% 42%, #e8f4ff 9%, #a2b8d0 43%, transparent 58%),
    linear-gradient(130deg, #c3d6ed, #f1f7ff 60%, #9eafc0);
}
.mini-card:nth-child(3n + 2) {
  --tile-glass:
    conic-gradient(from 227deg at 71% 26%, #9fb5d0 12%, #e3f0fd 22%, #adbed3 40%, #f0f6fd 50%, #9aafc9 62%, #dfeafa 73%, #9fb5d0);
}
.mini-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: var(--card-top) 0 0;
  border-radius: 14px 14px 0 0;
  background: #202122;
  clip-path: polygon(0 0, 39% 0, 41% .3%, 43% 1.2%, 45% 3.2%, 47% 7%, 49% 11%, 51% 14%, 52% 16%, 54% 17.5%, 57% 18%, 100% 18%, 100% 100%, 0 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%20100%20100' preserveAspectRatio='none'%3E%3Cpath%20fill='white'%20d='M0%200H39%20Q43%200%2045%204%20L51%2014%20Q53%2018%2057%2018%20H100V100H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%20100%20100' preserveAspectRatio='none'%3E%3Cpath%20fill='white'%20d='M0%200H39%20Q43%200%2045%204%20L51%2014%20Q53%2018%2057%2018%20H100V100H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}
@supports (mask-image: url("")) {
  .mini-card::after { clip-path: none; }
}
.mini-art {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 57%;
  display: block;
  border-radius: 0;
  background: var(--tile-glass);
}
.mini-art::before {
  content: "";
  position: absolute;
  inset: -5px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: var(--tile-glass);
  box-shadow: none;
  filter: blur(3px);
}
.mini-art::after { content: none; }
.mini-art img, .mini-art .artwork-with-credit {
  object-fit: cover;
  object-position: center 38%;
  background: transparent;
  transition: opacity var(--glass-motion);
}
.mini-art .artwork-with-credit { object-fit: cover; object-position: center 38%; background: transparent; }
.mini-card-copy {
  position: absolute;
  z-index: 2;
  inset: calc(var(--card-top) + 8px) 10px 28px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 4px;
}
.mini-card-category {
  max-width: 46%;
  color: #d2dae4;
  font-size: 10px;
  font-weight: 600;
  text-transform: none;
}
.mini-card-copy strong {
  align-self: end;
  max-height: 2.4em;
  font-size: clamp(12px, 1.05vw, 16px);
  line-height: 1.2;
  -webkit-line-clamp: 2;
}
.mini-card-note { color: #bbc4ce; font-size: 10px; line-height: 1.2; margin: 0; }
.mini-card-footer {
  position: absolute;
  z-index: 2;
  inset: auto 10px 8px;
  gap: 5px;
  border: 0;
  padding: 0;
}
.mini-card-status, .mini-card-year, .mini-card-plan { color: #d8e0e9; font-size: 9px; white-space: nowrap; }
.mini-card.is-done .mini-card-status { color: #bce5db; }
.mini-card-year { margin-left: auto; }
.mini-card-plan { margin-left: 0; }
.mini-card-arrow { margin-left: auto; color: #d6e2f3; font-size: 11px; }
.mini-card-year + .mini-card-arrow { margin-left: 1px; }
.mini-card.is-done { background: #202122; }
.mini-card:hover { box-shadow: 0 8px 19px #364b6435; }
.mini-card:focus-visible { outline: 3px solid #526e91; }

.library-view h1 {
  font: 800 clamp(35px, 4.15vw, 61px)/1.04 Manrope, sans-serif;
  letter-spacing: -.05em;
}
.library-view .back { min-height: 44px; margin-bottom: 20px; color: var(--glass-text); }
.search {
  padding-inline: 15px;
  border: 1px solid #cbd1d9;
  border-radius: 11px;
  background: #fff;
  box-shadow: none;
  color: var(--glass-text);
}
.search input { color: var(--ink); min-width: 0; }
.library-toolbar select { border-radius: 8px; background: #fff; }
.library-toolbar .text-btn { min-height: 42px; }
.empty-state { border-radius: 12px; background: #fff; }

/* Other views stay flat: the category buttons are the only glass surface. */
.landing-topbar {
  background: #e8edf4;
  border-color: #d0d7df;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.landing-topbar .landing-brand, .landing-nav a { color: var(--ink); }
.landing-hero {
  color: var(--ink);
  border-color: var(--line);
  background: #eff2f6;
}
.landing-copy h1 {
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 800;
}
.landing-copy h1 em, .landing-hero .spark, .landing-secondary, .landing-secondary:hover { color: #344c68; }
.landing-copy > p, .landing-hero .eyebrow, .landing-tags span { color: #35465b; }
.landing-hero .eyebrow, .landing-tags span {
  border-color: #fafdffe3;
  background: #f7f8fa;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.landing-primary, .landing-primary:hover { background: #222933; color: #fff; box-shadow: none; }
.landing-topbar .landing-login:hover { background: #fff; }
.preview-list, .public-home .auth-card {
  border: 1px solid #d0d7df;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.preview-list-heading { background: #bbcbe35e; border-color: var(--line); }
.preview-list-heading strong, .landing-section-head h2, .inside-section h2, .login-copy h2, .steps-grid h3 {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 800;
}
.preview-list-heading > span, .preview-list-heading small, .preview-list-row > span, .preview-list-row small, .preview-list-row i {
  color: #475a72;
}
.preview-list-row { border-color: var(--line); }
.preview-list-row:hover { background: #f6f8fa; }
.landing-how, .inside-section, .login-section { background-image: none; }
.steps-grid, .steps-grid article { border-color: var(--line); }
.steps-grid article, .device-list > div {
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.device-list > div:first-child { background: #e5edf8; border-color: #c9d7ea; box-shadow: none; }
.landing-footer { background: #262b32; }

.sheet {
  border: 1px solid #cbd3dc;
  background: #f7f9fb;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.sheet h2 { font-family: Manrope, system-ui, sans-serif; font-weight: 800; }
.sheet::backdrop {
  background: #1f2e4264;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.sheet .primary { background: #232a34; }
.edit-form input, .edit-form select, .edit-form textarea {
  border-color: #cbd5e2;
  background: #fff;
}
.found-list label, .billing-plans section, .done-toggle {
  border: 1px solid #cbd5e2;
  border-radius: 10px;
  background: #fff;
}
.found-list label:hover { background: #f3f5f7; }
.done-toggle[aria-pressed=true] { background: #dce9f8; }
.account-sheet .profile-username {
  border-color: #c2d0e4;
  background: #e3ecf9;
  box-shadow: none;
  font-family: Manrope, system-ui, sans-serif;
}
.account-sheet .faq-profile-link {
  width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 14px 0 18px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #f7f8fa;
  color: var(--ink); font: 700 13px/1.25 Manrope, system-ui, sans-serif; text-align: left; cursor: pointer;
}
.account-sheet .faq-profile-link:hover { border-color: #c6d4e2; background: #eef3f8; }
.account-sheet .email-panel-head .text-btn { color: #425978; }
.credits-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  margin: 18px 0 4px;
  padding: 17px;
  border: 1px solid #d8dce2;
  border-radius: 12px;
  background: #f5f6f7;
}
.credits-panel-copy { min-width: 0; display: grid; gap: 4px; }
.credits-kicker { color: #657080; font-size: 11px; font-weight: 800; }
.credits-amount { color: #232a34; font-size: clamp(24px, 6vw, 30px); line-height: 1.15; }
.credits-panel-copy p, .credits-note { margin: 0; color: #697382; font-size: 11px; line-height: 1.5; }
.credits-buy { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }
.credits-note { grid-column: 1 / -1; }
.owner-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 18px;
  padding: 14px 17px;
  border: 1px solid #d8dce2;
  border-radius: 12px;
  background: #fff;
}
.owner-stats-copy { display: grid; gap: 5px; }
.owner-stats-copy > strong { color: #303641; font-size: 13px; }
.owner-count { color: #232a34; font-size: 24px; line-height: 1.1; }
.capture-file-input { display: none !important; }
.capture-actions .upload-screenshot { white-space: nowrap; }
#uploadScreenshot:disabled { opacity: .45; cursor: not-allowed; }
.email-verified { color: #326758; }
.primary { box-shadow: none; }
.saved-row {
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.modal { backdrop-filter: none; -webkit-backdrop-filter: none; }
.modal-card { box-shadow: none; }

/* Restrained motion, with a discrete close transition for native dialogs. */
.topbar button, .language-control, .capture-row, .capture .send, .capture-actions .text-btn,
.primary, .landing-login, .landing-primary, .bottom-nav button, .mini-card {
  transition: transform var(--glass-motion), box-shadow var(--glass-motion),
              background-color var(--glass-motion), border-color var(--glass-motion), color var(--glass-motion);
}
@media (hover: hover) {
  .topbar .filters button:hover {
    background:
      linear-gradient(100deg, #ffffff1f, #dce7f02b 46%, #b7c9db45),
      #a9c0d529;
    border-color: #ffffffd4;
    box-shadow: inset 0 1px 1px #ffffff6b, inset 0 -1px 2px #6d849818;
    transform: none;
  }
  .topbar .desktop-nav button:hover { background: transparent; transform: none; }
  .capture .send:hover { background-color: #fff; transform: none; box-shadow: 0 1px 3px #354a6214; }
  .mini-card:hover { transform: translateY(-3px); }
}
.topbar button:not(.wordmark):active, .capture .send:active, .mini-card:active { transform: scale(.98); }
@keyframes glass-view { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes glass-tile { from { opacity: .55; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.saved-list .mini-card:nth-child(-n+12) { animation: glass-tile 240ms var(--ease-glass) backwards; }
.saved-list .mini-card:nth-child(3n + 2) { animation-delay: 25ms; }
.saved-list .mini-card:nth-child(3n) { animation-delay: 50ms; }
.sheet {
  opacity: 0;
  scale: .984;
  translate: 0 9px;
  transition: opacity var(--glass-motion), scale var(--glass-motion), translate var(--glass-motion),
              display var(--glass-motion) allow-discrete, overlay var(--glass-motion) allow-discrete;
}
.sheet[open] { opacity: 1; scale: 1; translate: none; }
.sheet::backdrop {
  opacity: 0;
  transition: opacity var(--glass-motion), display var(--glass-motion) allow-discrete, overlay var(--glass-motion) allow-discrete;
}
.sheet[open]::backdrop { opacity: 1; }
@starting-style {
  .sheet[open] { opacity: 0; scale: .984; translate: 0 9px; }
  .sheet[open]::backdrop { opacity: 0; }
}

@media (max-width: 1139px) { .saved-list, .library-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 979px) { .saved-list, .library-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .shell .topbar {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 8px 14px 6px;
    border: 0;
    border-bottom: 1px solid #f9fbff;
    border-radius: 0;
    background: #c8d1dc;
    box-shadow: none;
    max-width: 100%;
    overflow: hidden;
  }
  .topbar .wordmark { align-self: center; margin: 0; font-size: 18px !important; }
  .topbar .wordmark span { padding: 6px 6px !important; }
  .topbar .header-actions {
    grid-area: 1 / 2;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
  }
  .topbar .account-button { width: auto; min-height: 44px; height: 44px; }
  .topbar .account-button .avatar { width: 26px; height: 26px; font-size: 11px; }
  .topbar .account-label { display: none !important; }
  .topbar .language-control { width: auto; height: 44px; padding-inline: 6px; }
  .topbar .language-control .language-select { min-width: 50px; height: 42px; padding-left: 6px; font-size: 12px; }
  .topbar .support-button { display: none; }
  .topbar .desktop-nav { display: none; }
  .topbar .filters {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    overflow: visible;
    gap: 4px;
    padding: 4px 2px 6px;
  }
  .topbar .filters button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    padding: 5px 8px;
    gap: 5px;
    overflow: hidden;
    font-size: 11px;
    touch-action: manipulation;
  }
  .topbar .filters button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .topbar .filters button b { min-width: auto; font-size: 9px; }
  .topbar .filters svg { width: 13px; height: 13px; }
  .shell > main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 28px 16px calc(96px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-x: clip;
  }
  #savedHeading { scroll-margin-top: 16px; }
  .hero, .library-view, .capture, .capture-row, .section-head, .saved-list, .library-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hero h1 { font-size: clamp(31px, 8.1vw, 49px); }
  .hero .lead { font-size: 14px; }
  .capture { margin: 28px 0 31px; }
  .capture-row { padding-left: 13px; }
  .capture input { width: 1%; min-width: 0; }
  .capture .send { width: 45px; height: 45px; }
  .capture-actions { gap: 8px; }
  .capture-actions .text-btn { min-height: 44px; font-size: 11px; background: none; border-color: transparent; }
  .capture .capture-hint { margin-top: 4px; }
  .capture .demo-link { min-height: 38px; padding-block: 4px; }
  .bottom-nav {
    position: fixed;
    inset: auto max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    z-index: 30;
    isolation: isolate;
    height: 66px;
    padding: 5px;
    border: 1px solid #ffffff42;
    border-radius: 24px;
    background: #1b1b1b;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-width: calc(100% - 16px);
    overflow: hidden;
  }
  .bottom-nav button {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    padding: 3px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #dedede;
    font: 750 clamp(9px, 2.55vw, 11px)/1.15 Manrope, sans-serif;
    white-space: nowrap;
  }
  .bottom-nav button svg {
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .bottom-nav .account-nav { color: #dedede; }
  .bottom-nav button[aria-current="page"] { background: #ffffff26; color: #fff; }
  .bottom-nav button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
  .bottom-nav button:active { transform: scale(.94); }
  @supports selector(:has(*)) {
    .bottom-nav button[aria-current="page"] { background: transparent; }
    .bottom-nav::before {
      content: "";
      position: absolute;
      z-index: -1;
      inset: 5px auto 5px 5px;
      width: calc((100% - 10px) / 5);
      border: 0;
      border-radius: 18px;
      background: #343434;
      box-shadow: none;
      pointer-events: none;
      transition: transform var(--glass-motion);
    }
    .bottom-nav:has([data-view="library"][aria-current="page"])::before { transform: translateX(100%); }
  }
  .bottom-nav .add-mobile {
    justify-self: center;
    transform: none;
    width: 47px;
    height: 47px;
    min-height: 47px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: #fff;
    color: #181818;
    box-shadow: none;
  }
  .bottom-nav .add-mobile svg { width: 23px; height: 23px; stroke-width: 1.9; }
  .bottom-nav .add-mobile:focus-visible { outline-color: #181818; }
  .toast { bottom: 88px; }
}
@media (max-width: 620px) {
  .saved-list, .library-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-card { height: clamp(170px, 42vw, 198px); }
  .mini-card-copy strong { font-size: 13px; }
  .sheet { scale: 1; translate: 0 13px; }
  @starting-style { .sheet[open] { scale: 1; translate: 0 13px; } }
}
@media (max-width: 380px) {
  .shell .topbar { padding-inline: 9px; }
  .topbar .wordmark { font-size: 15px !important; }
  .topbar .account-button { padding-inline: 4px; gap: 4px; }
  .topbar .account-label { font-size: 9px; }
  .shell > main { padding-inline: 12px; }
  .section-head h2 { font-size: 22px; }
  .section-head .text-btn { font-size: 10px; }
  .bottom-nav button { font-size: 8px; }
}
@media (max-width: 620px) {
  .credits-panel { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .credits-buy { grid-column: 1; grid-row: auto; width: 100%; min-height: 46px; }
  .credits-note { grid-column: 1; }
  .capture-actions { grid-template-areas: "manual analyze" "upload upload"; }
  #addManual { grid-area: manual; }
  #aiButton { grid-area: analyze; }
  #uploadScreenshot { grid-area: upload; justify-self: center; width: min(100%, 260px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
#aiButton:disabled { opacity: .45; cursor: not-allowed; }

/* Mobile navigation keeps categories compact and the bottom bar aligned to the viewport. */
.mobile-category-bar { display: none; }
.mobile-category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 19px; }
.category-choice {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--glass-text);
  font: 700 13px/1.2 Manrope, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background var(--glass-motion), border-color var(--glass-motion), color var(--glass-motion);
}
.category-choice svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.category-choice[data-filter="all"] svg { fill: currentColor; stroke: none; }
.category-choice b { color: #647487; font-size: 11px; }
.category-choice.active {
  border-color: #ffffffd4;
  background: linear-gradient(100deg, #ffffff30, #dce7f045 48%, #b7c9db5c), #a9c0d536;
  box-shadow: inset 0 1px 1px #ffffff70, inset 0 -1px 2px #6d849818;
}
@media (hover: hover) {
  .category-choice:hover {
    border-color: #ffffffd4;
    background: linear-gradient(100deg, #ffffff30, #dce7f045 48%, #b7c9db5c), #a9c0d536;
    box-shadow: inset 0 1px 1px #ffffff70, inset 0 -1px 2px #6d849818;
  }
}
.category-choice:active { background: #e9edf2; }
.quick-actions-list { display: grid; gap: 9px; margin-top: 20px; }
.quick-actions-list > button {
  width: 100%; min-width: 0; min-height: 61px;
  display: flex; align-items: center; gap: 13px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: #f7f8fa; color: var(--ink); text-align: left; cursor: pointer;
}
.quick-actions-list > button:active { background: #e9edf2; }
.quick-actions-list > button:disabled { opacity: .48; cursor: not-allowed; }
.quick-actions-list > button > span:last-child { display: grid; gap: 3px; min-width: 0; }
.quick-actions-list b { font-size: 13px; }
.quick-actions-list small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.quick-action-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #e7edf4; color: #3e536b; font-size: 21px; }

.faq-dialog { width: min(680px, calc(100% - 32px)); max-height: min(90dvh, 760px); padding: 28px 30px 24px; overflow-y: auto; overscroll-behavior: contain; }
.faq-dialog > .kicker { display: block; padding-right: 45px; margin-bottom: 3px; }
.faq-dialog h2 { margin: 5px 0 7px; font-size: 26px; }
.faq-intro { margin: 0; color: var(--muted); font-size: 13px !important; line-height: 1.5 !important; }
.faq-carousel { margin-top: 14px; }
.faq-carousel-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.faq-carousel-toolbar > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.faq-carousel-nav { display: flex; gap: 6px; }
.faq-carousel-nav button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font: 700 15px Manrope, system-ui, sans-serif; cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
.faq-carousel-nav button:hover:not(:disabled) { background: #eaf0f6; border-color: #bdcbd9; }
.faq-carousel-nav button:disabled { opacity: .38; cursor: default; }
.faq-carousel-track { display: flex; width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; touch-action: pan-x; scrollbar-width: none; border-radius: 13px; }
.faq-carousel-track::-webkit-scrollbar { display: none; }
.faq-carousel-track:focus-visible { outline: 2px solid #526e91; outline-offset: 2px; }
.faq-slide { flex: 0 0 100%; min-width: 0; display: grid; align-content: start; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: #f7f9fb; scroll-snap-align: start; }
.faq-screen { height: 128px; min-width: 0; overflow: hidden; padding: 10px; border: 1px solid #d8e0e9; border-radius: 10px; background: #fff; color: var(--ink); }
.faq-screen-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.faq-mini-brand { display: inline-flex; align-items: center; gap: 5px; font: 800 10px/1 Manrope, system-ui, sans-serif; white-space: nowrap; }
.faq-mini-brand b { padding: 4px 5px; border-radius: 3px; background: var(--ink); color: #fff; font-size: 9px; }
.faq-mini-label { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.faq-mini-count { padding: 4px 7px; border-radius: 999px; background: #e9eef5; color: #52657b; font-size: 9px; font-weight: 800; white-space: nowrap; }
.faq-mini-input { height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 5px 4px 12px; border-radius: 8px; background: linear-gradient(100deg, #c4d1df, #d6d5d5); color: #fff; font-size: 11px; font-weight: 700; }
.faq-mini-input b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: #fff; color: var(--ink); font-size: 17px; }
.faq-mini-actions { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 5px; margin-top: 8px; color: var(--ink); font-size: 8px; font-weight: 800; text-align: center; }
.faq-mini-actions span { padding: 5px 3px; border-radius: 6px; background: #f1f3f6; white-space: nowrap; }
.faq-screen-results { padding: 8px 9px; }
.faq-screen-results .faq-screen-head { margin-bottom: 4px; }
.faq-mini-result { min-width: 0; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 7px; padding: 3px 2px; border-bottom: 1px solid #edf0f4; }
.faq-mini-result i { width: 15px; height: 15px; display: grid; place-items: center; border-radius: 4px; background: #344354; color: white; font: 700 9px Manrope, sans-serif; font-style: normal; }
.faq-mini-result span { min-width: 0; display: grid; gap: 1px; }
.faq-mini-result small { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.faq-mini-result b { overflow: hidden; color: var(--ink); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.faq-mini-save { height: 24px; display: flex; align-items: center; justify-content: space-between; margin-top: 5px; padding: 0 9px; border-radius: 6px; background: #242b34; color: #fff; font-size: 9px; font-weight: 800; }
.faq-screen-library { padding: 8px 9px; }
.faq-screen-library .faq-screen-head { margin-bottom: 6px; }
.faq-mini-tabs { display: flex; gap: 5px; margin-bottom: 7px; overflow: hidden; }
.faq-mini-tabs > * { padding: 4px 7px; border-radius: 999px; background: #eef1f5; color: #536174; font-size: 8px; font-weight: 700; white-space: nowrap; }
.faq-mini-tabs b { background: #29313b; color: #fff; }
.faq-mini-library-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.faq-mini-library-cards > div { min-width: 0; min-height: 59px; display: grid; align-content: space-between; gap: 3px; padding: 7px; border: 1px solid #e0e5ec; border-radius: 7px; background: linear-gradient(150deg, #dce7f1, #fff 52%); }
.faq-mini-library-cards i { color: #657283; font-size: 7px; font-style: normal; font-weight: 800; letter-spacing: .08em; }
.faq-mini-library-cards b { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.faq-mini-library-cards small { overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.faq-slide-copy { min-width: 0; }
.faq-slide-kicker { color: #6a7888; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.faq-slide-copy h3 { margin: 3px 0 2px; color: var(--ink); font: 800 14px/1.25 Manrope, system-ui, sans-serif; }
.faq-slide-copy p { margin: 0; color: var(--muted); font-size: 11px !important; line-height: 1.4 !important; }
.faq-carousel-dots { display: flex; justify-content: center; gap: 7px; margin: 9px 0 0; }
.faq-carousel-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: #cbd3dc; cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.faq-carousel-dots button.active { width: 20px; background: #516a86; }
.faq-more { display: grid; gap: 5px; margin-top: 12px; }
.faq-more > h3 { margin: 0 0 2px; color: var(--ink); font: 800 12px Manrope, system-ui, sans-serif; }
.faq-answer { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #f7f8fa; }
.faq-answer summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; color: var(--ink); font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-answer summary::-webkit-details-marker { display: none; }
.faq-answer summary::after { content: '+'; color: #64768a; font-size: 15px; font-weight: 500; }
.faq-answer[open] summary::after { content: '−'; }
.faq-answer p { margin: 0; padding: 0 10px 9px; color: var(--muted); font-size: 11px !important; line-height: 1.45 !important; }
.faq-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.faq-contact { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 14px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f7f8fa; color: var(--ink); font: 700 13px/1.25 Manrope, system-ui, sans-serif; text-align: center; transition: background-color .18s ease, border-color .18s ease; }
.faq-contact svg { width: 19px; height: 19px; fill: #229ed9; }
.faq-contact { cursor: pointer; }
@media (hover: hover) { .faq-contact:hover { border-color: #c6d4e2; background: #eef3f8; } }
.support-dialog { width: min(540px, calc(100% - 32px)); max-height: min(90dvh, 720px); padding: 28px 30px 24px; overflow-y: auto; overscroll-behavior: contain; }
.support-dialog > .kicker { display: block; padding-right: 45px; margin-bottom: 3px; }
.support-dialog h2 { margin: 5px 0 7px; font-size: 26px; }
.support-intro { margin: 0; color: var(--muted); font-size: 13px !important; line-height: 1.5 !important; }
.support-dialog .edit-form { gap: 12px; margin-top: 18px; }
.support-dialog .edit-form label { gap: 6px; }
.support-dialog .edit-form input, .support-dialog .edit-form select, .support-dialog .edit-form textarea { border-radius: 9px; }
.support-dialog .edit-form textarea { min-height: 112px; resize: vertical; }
.support-dialog .primary { min-height: 48px; }
.support-dialog .form-error, .support-dialog .form-success { margin: 0; }
.support-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
@media (max-width: 620px) {
  .faq-dialog { width: calc(100% - 20px); max-height: 92dvh; padding: 23px 16px calc(14px + env(safe-area-inset-bottom)); }
  .faq-dialog h2 { font-size: 23px; }
  .faq-intro { font-size: 12px !important; }
  .faq-screen { height: 116px; padding: 8px; }
  .faq-screen-results, .faq-screen-library { padding: 7px; }
  .faq-mini-actions { gap: 3px; font-size: 7px; }
  .faq-mini-actions span { padding: 5px 2px; }
  .faq-slide { padding: 8px; gap: 7px; }
  .faq-slide-copy h3 { font-size: 13px; }
  .faq-slide-copy p { font-size: 10px !important; }
  .faq-more { margin-top: 9px; }
  .faq-contact { min-height: 44px; margin-top: 10px; padding: 9px 11px; }
  .support-dialog { width: calc(100% - 20px); max-height: 92dvh; padding: 23px 16px calc(14px + env(safe-area-inset-bottom)); }
  .support-dialog h2 { font-size: 23px; }
  .support-dialog .edit-form { gap: 10px; margin-top: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-carousel-track { scroll-behavior: auto; }
  .faq-carousel-nav button, .faq-carousel-dots button { transition: none; }
}

.filters [hidden], .mobile-category-list [hidden] { display: none !important; }
.detail-sheet {
  width: min(500px, calc(100% - 32px));
  max-height: calc(100dvh - 24px);
  padding: 34px 32px 22px;
}
.sheet .close {
  width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none;
}
.sheet .close:hover { background: transparent; }
.sheet .close:focus-visible { outline: none; color: #526e91; text-decoration: underline; text-underline-offset: 3px; }
.detail-action-group {
  width: 100%; min-height: 44px; display: flex; align-items: stretch; gap: 0;
  margin-top: 10px; overflow: hidden; border-radius: 10px; background: #a32822;
}
.detail-done-action {
  min-width: 0; min-height: 44px; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 14px; border: 0; border-radius: 0; background: transparent;
  color: #fff; font: 800 13px/1.3 Manrope, system-ui, sans-serif; text-align: left; cursor: pointer;
  transition: background-color var(--glass-motion);
}
.detail-done-action:hover, .detail-delete-action:hover { background: #8f241f; }
.detail-done-action[aria-pressed="true"] { background: #7f201c; }
.detail-done-action:disabled { opacity: .55; cursor: progress; }
.detail-done-action svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.detail-action-separator { display: flex; align-items: center; padding: 0 2px; color: #ffffffa6; font: 700 13px Manrope, system-ui, sans-serif; }
.detail-delete-action {
  flex: none; padding: 9px 14px 9px 8px; border: 0; border-radius: 0; background: transparent;
  color: #fff; font: 800 13px/1.3 Manrope, system-ui, sans-serif; cursor: pointer; transition: background-color var(--glass-motion);
}
.detail-sheet > .kicker { display: block; padding-right: 92px; margin-bottom: 4px; }
.detail-sheet h2 { margin: 6px 0 8px; font-size: 24px; line-height: 1.22; }
.detail-sheet #detailDescription { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 5px 0 8px; font-size: 13px; line-height: 1.45; }
.detail-sheet .source-link { display: inline-block; margin-bottom: 4px; font-size: 12px; }
.detail-sheet .edit-form { gap: 10px; margin-top: 10px; }
.detail-sheet .edit-form label { gap: 5px; font-size: 11px; }
.detail-sheet .plan-heading { margin-bottom: -3px; }
.detail-sheet .plan-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.detail-sheet .plan-fields label { min-width: 0; }
.detail-sheet .plan-fields input { min-height: 42px; padding: 8px; font-size: 13px; }
.detail-sheet #detailNote { min-height: 64px; padding: 8px 10px; }
.detail-sheet .edit-form .primary { min-height: 44px; padding: 9px 14px; }
@media (max-width: 620px) {
  .detail-sheet { max-height: 90dvh; padding: 23px 18px calc(9px + env(safe-area-inset-bottom)); }
  .detail-sheet > .close { top: 8px; right: 10px; }
  .detail-sheet h2 { padding-right: 78px; font-size: 21px; }
}

@media (max-width: 760px) {
  .topbar .filters { display: none !important; }
  .mobile-category-bar {
    display: block;
    padding: 8px 14px 10px;
    border-bottom: 1px solid #f9fbff;
    background: #c8d1dc;
  }
  #mobileCategoryButton {
    width: 100%; min-height: 42px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 7px 12px; border: 1px solid #ffffffb8; border-radius: 10px;
    background: transparent; box-shadow: none; color: #fff; font: 700 13px Manrope, sans-serif; text-align: left;
  }
  #mobileCategoryButton svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .shell > main { padding-bottom: calc(91px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    inset: auto 0 0 0;
    width: 100%; max-width: none;
    height: calc(70px + env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 60px minmax(0, 1fr) minmax(0, 1fr);
    padding: 5px 8px env(safe-area-inset-bottom);
    border: 0; border-top: 1px solid #ffffff42;
    border-radius: 20px 20px 0 0;
  }
  .bottom-nav button[aria-current="page"] { background: #343434; color: #fff; }
  .bottom-nav button { transition: background 200ms var(--ease-glass), color 200ms var(--ease-glass); }
  .bottom-nav::before { display: none !important; }
  .bottom-nav .account-nav { grid-column: 5; }
  .bottom-nav .buy-generations-nav { grid-column: 4; color: var(--lime); }
  .bottom-nav .buy-generations-nav svg { width: 20px; height: 20px; }
  .bottom-nav .buy-generations-nav span { font-size: inherit; line-height: inherit; }
  .bottom-nav .add-mobile { grid-column: 3; justify-self: center; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (max-width: 620px) {
  .mobile-category-sheet, .mobile-quick-actions { max-height: min(88dvh, 680px); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-category-sheet .kicker, .mobile-quick-actions .kicker { display: block; margin: 5px 0 8px; }
  .mobile-category-sheet h2, .mobile-quick-actions h2 { margin-top: 4px; }
  .mobile-category-sheet::backdrop, .mobile-quick-actions::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .category-choice { min-height: 52px; padding-inline: 10px; font-size: 12px; }
}
@media (max-width: 380px) {
  .bottom-nav button { font-size: 9px; }
}
