:root {
  color-scheme: dark;
  --background: #111211;
  --text: #eeeeea;
  --muted: #a0a39b;
  --quiet: #797e73;
  --green: #80af52;
  --line: #30352b;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.5;
}

button, input, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a { color: #b1d48e; text-underline-offset: 0.2em; }
a:hover { color: #d2ebba; }
button:focus-visible, input:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #b5d98e;
  outline-offset: 5px;
}

.page { width: min(100% - 80px, 1000px); margin: 0 auto; }
.page-header { padding: 58px 0 35px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: #bec8b4;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 2.8rem);
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.intro { margin: 13px 0 0; color: #b8bbb3; font-size: 1.025rem; }
.data-date { margin: 17px 0 0; color: var(--quiet); font-size: 0.82rem; }
.data-date span { margin-left: 5px; color: var(--muted); }

.period-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; margin: 0 0 20px; }
.period-picker label { color: #c2c6bd; font-size: 0.85rem; }
[data-period-select] { max-width: 100%; min-height: 43px; padding: 9px 34px 9px 12px; border: 1px solid #536048; border-radius: 5px; background: #21251d; color: var(--text); font-size: 0.88rem; cursor: pointer; }
.period-note, .period-help { flex: 1 0 100%; margin: 0; color: var(--muted); font-size: 0.74rem; line-height: 1.5; }

.tab-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.tab {
  position: relative;
  padding: 17px 10px 18px;
  border: 0;
  border-radius: 3px 3px 0 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}
.tab:hover { color: var(--text); background: #ffffff04; }
.tab[aria-selected="true"] { color: #b1d58c; }
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: var(--green);
  border-radius: 3px 3px 0 0;
}
[role="tabpanel"] { padding-top: 29px; }
[role="tabpanel"][hidden] { display: none; }
.icon-legend { display: flex; gap: 20px; margin: 18px 0 -7px; color: var(--muted); font-size: 0.74rem; }
.icon-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend-shape { display: inline-block; width: 12px; height: 12px; border: 1.5px solid #a2b18f; background: #80af521a; }
.legend-quest { border-radius: 50%; }
.legend-overlay { border-radius: 2px; }
.panel-heading { margin: 0 0 15px; color: var(--muted); font-size: 1rem; font-weight: 500; }
.js .panel-heading { display: none; }
.summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 27px;
}
.total { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.total-label { color: var(--muted); font-size: 0.87rem; }
.quest-types { margin-left: auto; color: var(--muted); font-size: 0.82rem; }
.quest-list { display: flex; flex-direction: column; gap: 25px; margin: 0; padding: 0; list-style: none; }
.quest-row { position: relative; display: flex; align-items: center; gap: 25px; min-width: 0; }
.quest-icon {
  display: block;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
  object-fit: cover;
}
.quest-icon img, .quest-icon svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.quest-icon.is-overlay, .quest-row.is-overlay .quest-icon, .quest-row[data-kind="overlay"] .quest-icon {
  padding: 4px;
  border: 1px solid #667457;
  border-radius: 5px;
  background: #343d2c;
}
.quest-row[data-kind="overlay"] .quest-icon img { border-radius: 1px; }
.unknown-icon { display: grid; place-items: center; border: 1px solid #51564a; background: #30342b; color: #b9c1ad; font-size: 1.65rem; font-weight: 500; }
.quest-details { flex: 1 1 auto; min-width: 0; }
.quest-name { display: block; margin: 0 0 7px; color: #c2c6bd; font-size: 0.86rem; font-weight: 450; line-height: 1.35; overflow-wrap: anywhere; }
.quest-id { color: var(--quiet); font-size: 0.75rem; }
.quest-kind { display: inline-block; margin-left: 7px; padding: 1px 5px; border: 1px solid #5b6650; border-radius: 3px; color: #b1c69c; font-size: 0.65rem; font-weight: 450; line-height: 1.4; vertical-align: 1px; white-space: nowrap; }
.quest-row[data-kind="other"] .quest-kind { color: #b8b6c0; border-color: #514f59; }
.quest-chart {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding-right: 9.2rem;
}
.quest-bar {
  display: block;
  flex: 0 0 var(--bar-width, 0%);
  min-width: 2px;
  height: 45px;
  padding: 0;
  border: 0;
  border-radius: 3px 15px 15px 3px;
  background: var(--green);
}
.quest-count { flex: 0 0 auto; margin-left: 13px; color: #e2e3de; font-size: 1.6rem; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.has-tooltip { cursor: help; }
a.has-tooltip { cursor: pointer; }
a.quest-icon:hover { filter: brightness(1.1); }
a.quest-bar:hover { background: #97c36a; }
.quest-tooltip {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 10px);
  left: 0;
  width: max-content;
  max-width: min(460px, 100%);
  padding: 11px 14px;
  border: 1px solid #59664c;
  border-radius: 7px;
  background: #293025;
  box-shadow: 0 5px 22px #0006;
  color: #f1f3ec;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.quest-tooltip[hidden] { display: none; }
.quest-tooltip::after { content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 12px; }
.empty-state { margin: 20px 0 35px; padding: 24px 0; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 26px; font-size: 0.88rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.detail-heading { display: flex; align-items: center; gap: 22px; }
.detail-icon { flex: 0 0 auto; }
.detail-icon .quest-icon { width: 90px; height: 90px; }
.detail-title { min-width: 0; }
.detail-title h1 { overflow-wrap: anywhere; }
.detail-kind { margin: 0 0 6px; color: #b1c69c; font-size: 0.77rem; }
.quest-question { max-width: 64ch; margin: 24px 0 0; color: #e0e3da; font-size: clamp(1.05rem, 2.5vw, 1.22rem); line-height: 1.55; }
.detail-quest-id { margin: 8px 0 0; color: var(--quiet); font-size: 0.78rem; overflow-wrap: anywhere; }
.detail-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 38px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-metrics dt { color: var(--muted); font-size: 0.83rem; }
.metric-scope { display: inline-block; margin-top: 5px; color: var(--quiet); font-size: 0.9em; line-height: 1.45; }
.detail-metrics dd { margin: 7px 0 0; color: #e2e3de; font-size: 1.4rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.app-breakdown h2 { margin: 0 0 23px; color: #c2c6bd; font-size: 1rem; font-weight: 550; }
.breakdown-list { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.breakdown-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px 20px; }
.breakdown-name { color: #c2c6bd; font-size: 0.86rem; }
.breakdown-track { grid-column: 1; grid-row: 2; min-width: 0; height: 36px; background: #80af520b; border-radius: 3px 12px 12px 3px; overflow: hidden; }
.breakdown-bar { display: block; width: var(--bar-width, 0%); height: 100%; border-radius: inherit; background: var(--green); }
.breakdown-count { grid-column: 2; grid-row: 2; min-width: 5ch; color: #e2e3de; font-size: 1.4rem; line-height: 1.25; text-align: right; font-variant-numeric: tabular-nums; }
.breakdown-share { grid-column: 2; grid-row: 1; color: var(--muted); font-size: 0.78rem; text-align: right; font-variant-numeric: tabular-nums; }
.notice, .demo-notice, .noscript-notice { margin: 0 0 20px; padding: 13px 17px; border-left: 3px solid #a3bb72; background: #a3bb720c; color: #c7cbbf; font-size: 0.875rem; }
.notice p, .demo-notice p { margin: 0; }
.noscript-notice { margin-top: 20px; }
.page-footer { margin-top: 51px; padding: 0 0 34px; color: var(--muted); font-size: 0.82rem; }
.methodology { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.methodology summary { width: fit-content; color: #bcc6b2; font-weight: 550; cursor: pointer; }
.methodology summary::marker { color: var(--green); }
.methodology-content { max-width: 76ch; padding: 8px 0 1px; line-height: 1.75; }
.methodology-content p { margin: 12px 0; }
.methodology-content ul { padding-left: 20px; }
.methodology-content li { margin-bottom: 8px; }
.methodology-content code { font-size: 0.95em; color: #c3cbbb; overflow-wrap: anywhere; }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 22px; padding-top: 15px; color: var(--quiet); font-size: 0.74rem; }
.footer-meta p { margin: 0; }
.footer-meta a { color: var(--muted); }
.skip-link { position: absolute; z-index: 2; left: 20px; top: -100px; padding: 9px 14px; border-radius: 3px; background: var(--green); color: #111; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 1500px) {
  .page-header { padding-top: 72px; }
}

@media (max-width: 640px) {
  .page { width: calc(100% - 36px); }
  .page-header { padding: 33px 0 24px; }
  .eyebrow { font-size: 0.68rem; margin-bottom: 11px; }
  .intro { font-size: 0.92rem; }
  .data-date { margin-top: 13px; font-size: 0.75rem; }
  .period-picker { gap: 7px 12px; margin-bottom: 14px; }
  [data-period-select] { font-size: 0.82rem; }
  .tab { padding: 16px 4px; font-size: 0.83rem; }
  [role="tabpanel"] { padding-top: 24px; }
  .summary { margin-bottom: 25px; gap: 4px 8px; }
  .total-label { font-size: 0.77rem; }
  .quest-types { width: 100%; margin-left: 0; font-size: 0.75rem; }
  .quest-list { gap: 23px; }
  .quest-row { gap: 15px; }
  .quest-icon { flex-basis: 55px; width: 55px; height: 55px; }
  .quest-name { margin-bottom: 7px; font-size: 0.75rem; }
  .quest-chart { padding-right: 6.1rem; }
  .quest-bar { height: 32px; border-radius: 2px 11px 11px 2px; }
  .quest-count { margin-left: 9px; font-size: 1.1rem; }
  .page-footer { margin-top: 37px; }
  .back-link { margin-bottom: 23px; font-size: 0.8rem; }
  .detail-heading { gap: 16px; }
  .detail-icon .quest-icon { width: 65px; height: 65px; }
  .detail-kind { margin-bottom: 4px; font-size: 0.7rem; }
  .quest-question { margin-top: 20px; }
  .detail-quest-id { font-size: 0.7rem; }
  .detail-metrics { gap: 18px; margin-bottom: 29px; padding: 18px 0; }
  .detail-metrics dt { font-size: 0.76rem; }
  .detail-metrics dd { font-size: 1.2rem; }
  .breakdown-row { gap: 7px 13px; }
  .breakdown-track { height: 30px; }
  .breakdown-count { font-size: 1.1rem; }
  .footer-meta { flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: no-preference) {
  .tab { transition: background-color 120ms ease, color 120ms ease; }
}

/* Public contributor identities and personal publication preferences. */
[hidden] { display: none !important; }
.account-link { display: inline-block; margin-top: 17px; font-size: 0.82rem; }
.contributors-section { margin-top: 45px; padding-top: 25px; border-top: 1px solid var(--line); }
.contributors-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.contributors-heading h2, .account-card h2 { margin: 0; font-size: 1.18rem; font-weight: 600; }
.contributors-demo { padding: 2px 7px; border: 1px solid #687955; border-radius: 3px; color: #b9cb9f; font-size: 0.72rem; }
.contributors-explanation, .contributors-status { margin: 12px 0 0; color: var(--muted); font-size: 0.83rem; }
.contributors-date { margin: 6px 0 0; color: var(--quiet); font-size: 0.74rem; }
.contributors-list { display: grid; gap: 0; margin: 15px 0 0; padding: 0; list-style: none; }
.contributor-row { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 13px 0; border-bottom: 1px solid #ffffff09; }
.contributor-rank { flex: 0 0 2.1em; color: var(--quiet); font-size: 0.8rem; text-align: right; font-variant-numeric: tabular-nums; }
.contributor-flag { flex: 0 0 39px; width: 39px; font-size: 1.6rem; line-height: 1.2; text-align: center; }
.contributor-flag img { display: block; width: 36px; height: 36px; object-fit: contain; }
.contributor-avatar { flex: 0 0 39px; width: 39px; }
.contributor-avatar img, .profile-country .profile-avatar { display: block; width: 36px; height: 36px; object-fit: cover; border-radius: 50%; background: #2b3426; }
.profile-country .profile-avatar { flex: 0 0 36px; }
.contributor-identity { display: grid; gap: 2px; min-width: 0; }
.contributor-name { overflow-wrap: anywhere; color: #dde1d7; font-size: 0.95rem; }
.anonymous-prefix { font-weight: 300; color: var(--muted); }
.anonymous-country { font-weight: 500; }
a.contributor-name { color: #b1d48e; text-decoration-thickness: 1px; }
a.contributor-name:hover { color: #d2ebba; }
.contributor-country { color: var(--muted); font-size: 0.76rem; }
.contributor-count { margin-left: auto; padding-left: 12px; color: #dbe7cf; font-size: 1.12rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-page { max-width: 780px; }
.privacy-intro { max-width: 70ch; color: #bac2b2; font-size: 0.93rem; }
.privacy-intro p { margin: 0 0 15px; }
.account-card { margin-top: 30px; padding: 25px; border: 1px solid var(--line); border-radius: 7px; background: #ffffff02; }
.account-status { margin: 16px 0; color: var(--muted); font-size: 0.9rem; }
.account-status:empty { display: none; }
.signed-in-as { margin: 19px 0 25px; color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.signed-in-as strong { color: #e2e8dc; font-weight: 550; }
.preference-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.country-field { margin-bottom: 24px; }
.country-field label { display: block; margin-bottom: 9px; font-size: 0.92rem; }
.country-field label span { color: var(--muted); font-size: 0.8rem; }
.country-field select { width: min(100%, 410px); padding: 11px 12px; border: 1px solid #536048; border-radius: 4px; background: #21251d; color: var(--text); font: inherit; font-size: 0.92rem; }
.country-field select:focus-visible, .consent-field input:focus-visible { outline: 2px solid #b5d98e; outline-offset: 4px; }
.account-help { max-width: 60ch; margin: 10px 0 0; color: var(--muted); font-size: 0.81rem; line-height: 1.6; }
.consent-field { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 0.95rem; }
.consent-field input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.consent-help { margin-left: 32px; margin-bottom: 24px; }
.privacy-button { display: inline-block; padding: 11px 17px; border: 1px solid var(--green); border-radius: 4px; background: var(--green); color: #11170c; cursor: pointer; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.privacy-button:hover { background: #96c169; border-color: #96c169; color: #11170c; }
.privacy-button:disabled, .preference-fields:disabled .privacy-button { opacity: 0.6; cursor: wait; }
.save-status { min-height: 1.6em; margin: 12px 0; color: #bed6a9; font-size: 0.85rem; }
.logout-button { padding: 4px 0; border: 0; background: transparent; color: #b1d48e; cursor: pointer; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 0.2em; }
.logout-button:disabled { opacity: 0.6; cursor: wait; }
.profile-name { margin: 14px 0 0; color: #dce8d1; font-size: clamp(1.25rem, 3vw, 1.65rem); font-weight: 550; overflow-wrap: anywhere; }
.profile-country { display: flex; align-items: center; gap: 9px; margin: 10px 0 0; color: var(--muted); font-size: 0.82rem; }
.profile-country img { flex: 0 0 28px; object-fit: contain; }
.profile-status { margin: 4px 0 28px; color: var(--muted); font-size: 0.9rem; }
.profile-status:empty { display: none; }
.profile-quest-list .quest-icon > .unknown-icon { width: 100%; height: 100%; border-radius: inherit; }

/* Each app and period is a separate static document. */
.static-header { padding-top: 22px; margin-bottom: 30px; }
.static-app-tabs, .static-period-tabs { display: grid; align-items: stretch; }
.static-app-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.static-period-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.static-tab, .static-period-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-weight: 550;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.static-tab { min-height: 67px; padding: 19px 10px; font-size: 1.18rem; }
.static-period-tab { min-height: 52px; padding: 13px 9px; font-size: 0.8rem; }
.static-tab:hover, .static-period-tab:hover { color: var(--text); background: #ffffff04; }
.static-tab[aria-current="page"], .static-period-tab[aria-current="page"] { color: #b1d58c; }
.static-tab[aria-current="page"]::after, .static-period-tab[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--green);
}
.static-period-tab[aria-current="page"]::after { height: 2px; }
.static-page #statistics:focus { outline: none; }
.static-page .panel-heading { display: none; }
.static-page [role="tabpanel"] { padding-top: 0; }
.static-page .back-link { margin-bottom: 20px; }
.static-page .detail-heading { margin-bottom: 16px; }
.static-page .detail-heading h1 { font-size: clamp(1.55rem, 4vw, 2.15rem); }
.static-page .quest-question { margin: 0 0 24px; }
.static-page .profile-name { margin-top: 0; }
.static-page .profile-country { margin-bottom: 24px; }
.static-page .page-footer { margin-top: 40px; }
.static-page .methodology-content .icon-legend { margin: 12px 0; }
.static-page .footer-meta { color: var(--muted); }
.info-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; color: var(--muted); }
.info-symbol { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 1.5px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-size: 18px; font-weight: 700; line-height: 1; }
.info-link:hover, .info-link:focus-visible { color: var(--text); }
.embed-footer { display: flex; justify-content: flex-end; }
.statistics-info { max-width: 85ch; }
.info-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin: 0 0 32px; }
.info-meta dt { color: var(--muted); font-size: 0.83rem; }
.info-meta dd { margin: 5px 0 0; }
.embed-section { margin: 32px 0; }
.embed-code { display: block; width: 100%; min-height: 9em; margin: 10px 0; padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: #181b16; color: var(--text); font-family: ui-monospace, Consolas, monospace; font-size: 0.82rem; line-height: 1.6; resize: vertical; }
.embed-page .page { width: calc(100% - 32px); max-width: 1000px; }
.embed-heading { padding: 18px 0 22px; }
.embed-heading p { margin: 0 0 5px; }
.embed-heading p:last-child { color: var(--muted); font-size: 0.83rem; }
.embed-heading a { color: var(--text); font-weight: 600; text-decoration: none; }
.embed-footer { padding: 20px 0; }

.account-settings { max-width: 68ch; }
.settings-form { margin-top: 28px; }
.settings-form fieldset { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 5px; }
.settings-form legend { padding: 0 8px; color: #c7d4ba; }
.settings-form input[type="checkbox"] { width: 19px; height: 19px; margin-right: 8px; accent-color: var(--green); vertical-align: text-bottom; }
.settings-form select { max-width: 100%; margin-top: 8px; padding: 10px 12px; border: 1px solid #536048; border-radius: 4px; background: #21251d; color: var(--text); }
.settings-save, .account-login { display: inline-block; padding: 10px 16px; border: 1px solid var(--green); border-radius: 4px; background: var(--green); color: #11170c; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.settings-save:hover, .account-login:hover { background: #96c169; color: #11170c; }
.logout-form button { padding: 5px 0; border: 0; background: transparent; color: #b1d48e; font: inherit; text-decoration: underline; cursor: pointer; }
.account-patreon { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 5px; }
.account-patreon h2 { margin: 0 0 16px; color: #c7d4ba; font-size: 1.1rem; font-weight: 550; }
.patreon-feed-form input[type="url"] { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 10px 12px; border: 1px solid #536048; border-radius: 4px; background: #21251d; color: var(--text); }
.patreon-feed-form p:last-child { margin-bottom: 0; }
.patreon-help { color: var(--muted); font-size: 0.88rem; }
.patreon-dates { display: grid; gap: 12px; margin: 18px 0; }
.patreon-dates dt { color: var(--muted); font-size: 0.82rem; }
.patreon-dates dd { margin: 3px 0 0; }
.patreon-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.patreon-actions form { margin: 0; }
.settings-secondary { padding: 9px 13px; border: 1px solid #536048; border-radius: 4px; background: transparent; color: #b1d48e; cursor: pointer; }
.settings-secondary:hover { background: #21251d; }
.patreon-card-link { margin: 24px 0; }
.card-page .page-header { padding-bottom: 28px; }
.card-builder { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 34px; align-items: start; margin-bottom: 50px; }
.card-form > p:first-of-type { margin-top: 0; }
.card-form label, .card-form legend { color: #c7d4ba; font-size: 0.9rem; }
.card-form select { display: block; width: 100%; margin-top: 8px; padding: 10px 12px; border: 1px solid #536048; border-radius: 4px; background: #21251d; color: var(--text); }
.card-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 24px 0; padding: 0; border: 0; }
.card-themes legend { margin-bottom: 10px; padding: 0; }
.card-theme { display: flex; flex-direction: column; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.card-theme:has(input:checked) { border-color: var(--green); }
.card-theme-swatch { display: block; height: 39px; border-radius: 3px; border-bottom: 7px solid; }
.card-theme-light .card-theme-swatch { background: linear-gradient(125deg, #f3eacc 0 34%, #f3dacd 34% 53%, #ccd6ee 53% 76%, #c6ddaa 76%); border-color: #a8c884; }
.card-theme-dark .card-theme-swatch { background: linear-gradient(125deg, #2e2e48 0 34%, #3d364e 34% 53%, #2a5358 53% 76%, #403962 76%); border-color: #9966cc; }
.card-theme input, .card-name-choice input { accent-color: var(--green); }
.card-name-choice { margin: 24px 0; }
.card-name-choice input { width: 18px; height: 18px; margin: 0 7px 0 0; vertical-align: text-bottom; }
.card-form-actions { display: flex; flex-direction: column; gap: 12px; }
.card-help { margin-top: 18px; color: var(--muted); font-size: 0.83rem; line-height: 1.6; }
.card-preview { margin: 0; }
.card-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 9px; }
.card-preview figcaption { margin-top: 10px; color: var(--muted); font-size: 0.78rem; text-align: center; }
.card-image-link { display: block; border-radius: 9px; }
.card-image-link:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
.card-sharing { grid-column: 1 / -1; margin-top: 12px; padding-top: 25px; border-top: 1px solid var(--line); }
.card-share-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 26px; }
.card-information .card-preview { max-width: 640px; margin: 12px 0 25px; }
.badge-preview-promo { max-width: 405px; justify-self: center; width: 100%; }
.badge-preview-badge { width: 100%; margin-top: 18px; }
.badge-page .card-sharing label { display: block; margin-top: 18px; }
.card-information section { margin: 35px 0; }
@media (max-width: 760px) {
  .card-page .page-header { padding-top: 30px; }
  .card-builder { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .card-preview { grid-row: 1; }
  .card-form-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .static-page .page { width: calc(100% - 24px); }
  .static-header { padding-top: 8px; margin-bottom: 24px; }
  .static-tab { min-height: 58px; padding: 15px 4px; font-size: 0.96rem; }
  .static-period-tab { min-height: 55px; padding: 11px 5px; font-size: 0.7rem; }
  .static-page .page-footer { margin-top: 32px; }
  .static-page .back-link { margin-bottom: 18px; }
}

@media (max-width: 640px) {
  .account-link { margin-top: 14px; font-size: 0.76rem; }
  .contributors-section { margin-top: 34px; padding-top: 22px; }
  .contributor-row { gap: 10px; }
  .contributor-rank { flex-basis: 1.8em; font-size: 0.73rem; }
  .contributor-flag { flex-basis: 30px; width: 30px; font-size: 1.3rem; }
  .contributor-flag img { width: 29px; height: 29px; }
  .contributor-avatar { flex-basis: 29px; width: 29px; }
  .contributor-avatar img { width: 29px; height: 29px; }
  .contributor-name { font-size: 0.86rem; }
  .contributor-count { font-size: 1rem; }
  .account-card { margin-top: 25px; padding: 20px 17px; }
  .privacy-intro { font-size: 0.88rem; }
  .consent-field { font-size: 0.88rem; }
}
