:root {
  --color-bg: #f7f8f3;
  --color-surface: #ffffff;
  --color-ink: #14211f;
  --color-muted: #52635f;
  --color-line: #d7ddd4;
  --color-teal: #155e57;
  --color-teal-soft: #e7f6f3;
  --color-coral: #f05d43;
  --color-coral-soft: #fff3ef;
  --color-amber: #d49018;
  --color-amber-soft: #fff7df;
  --color-blue: #285c9c;
  --color-blue-soft: #e9f1ff;
  --shadow-soft: 0 14px 38px rgba(20, 33, 31, 0.1);
  --radius: 8px;
  --content: 1180px;
  --content-narrow: 820px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.5;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(240, 93, 67, 0.8);
  outline-offset: 3px;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  color: #ffffff;
  background: var(--color-teal);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgba(247, 248, 243, 0.94);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.site-footer__inner,
.tool-shell,
.content-narrow {
  width: min(100% - 32px, var(--content));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
  font-weight: 800;
  text-decoration: none;
}

.brand__mark {
  width: 32px;
  height: 32px;
}

.brand__text {
  font-size: 1.08rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--color-muted);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--color-ink);
  background: #eef2ec;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--color-ink);
}

.tool-band {
  padding: 14px 0 28px;
}

.tool-shell {
  display: grid;
  gap: 8px;
}

.tool-intro {
  display: grid;
  gap: 5px;
  max-width: 760px;
}

.tool-intro h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.05;
}

.eyebrow {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: 0;
}

.lede {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 720px;
}

.review-note {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.search-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  width: min(100%, 960px);
  padding: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 7px 18px rgba(20, 33, 31, 0.05);
}

.search-shell input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--color-ink);
  background: #f8faf7;
  border: 1px solid transparent;
  border-radius: 6px;
}

.search-shell button,
.copy-button,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  background: var(--color-teal);
  border: 0;
  border-radius: var(--radius);
}

.search-shell button {
  color: var(--color-ink);
  background: #eef2ec;
  border: 1px solid var(--color-line);
}

.secondary-action {
  color: var(--color-teal);
  background: var(--color-teal-soft);
  border: 1px solid rgba(21, 94, 87, 0.22);
}

.filter-shell {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0;
  scrollbar-width: thin;
}

.filter-shell > .category-row,
.filter-shell > .view-row {
  flex: 0 0 auto;
  overflow: visible;
  padding-bottom: 0;
}

.category-row,
.view-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.category-chip,
.view-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 30px;
  gap: 6px;
  padding: 0 10px;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
}

.view-chip {
  color: var(--color-muted);
  background: #eef2ec;
}

.category-chip[aria-pressed="true"],
.view-chip[aria-pressed="true"] {
  color: #ffffff;
  background: var(--color-teal);
  border-color: var(--color-teal);
}

.category-chip span + span,
.view-chip span + span {
  display: inline-flex;
  min-width: 20px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  background: var(--color-teal-soft);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.category-chip[aria-pressed="true"] span + span,
.view-chip[aria-pressed="true"] span + span {
  color: var(--color-teal);
  background: #ffffff;
}

.moment-link-row {
  display: flex;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  padding: 0 0 2px;
  scrollbar-width: thin;
}

.moment-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  color: var(--color-muted);
  background: #f8faf7;
  border: 1px solid rgba(82, 99, 95, 0.18);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.moment-link:hover,
.moment-link:focus-visible {
  color: var(--color-teal);
  background: var(--color-teal-soft);
  border-color: rgba(21, 94, 87, 0.24);
}

.status-strip {
  min-height: 20px;
  padding: 0 2px;
  color: var(--color-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.8rem;
}

.status-strip.is-success {
  color: #15543e;
  padding: 4px 8px;
  background: #e8f6ee;
  border: 1px solid #b8ddcb;
  border-radius: var(--radius);
}

.status-strip.is-warning {
  color: #7a4f04;
  padding: 4px 8px;
  background: #fff7df;
  border: 1px solid #efd38e;
  border-radius: var(--radius);
}

.direct-answer {
  max-width: 760px;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.pack-share-panel {
  display: grid;
  gap: 14px;
  width: min(100%, 900px);
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(20, 33, 31, 0.07);
}

.pack-share-panel h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.pack-share-panel p {
  margin: 0;
  color: var(--color-muted);
}

.pack-share-panel label {
  color: var(--color-ink);
  font-weight: 800;
}

.pack-share-panel textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 12px;
  color: var(--color-ink);
  background: #f8faf7;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font: 0.86rem/1.45 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.pack-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pack-share-actions button,
.pack-share-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  background: #eef2ec;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.pack-share-actions button:first-child {
  color: #ffffff;
  background: var(--color-teal);
  border-color: var(--color-teal);
}

.pack-share-actions a:hover,
.pack-share-actions button:hover {
  color: var(--color-teal);
  background: var(--color-teal-soft);
}

.pack-share-actions button:first-child:hover {
  color: #ffffff;
  background: #104d47;
}

.pack-share-actions .is-busy {
  opacity: 0.75;
  cursor: wait;
}

.pack-share-status {
  min-height: 24px;
  font-size: 0.9rem;
  font-weight: 800;
}

.pack-share-status.is-success {
  color: #15543e;
}

.pack-share-status.is-warning {
  color: #7a4f04;
}

.monetization-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(100%, 900px);
  padding: 14px 16px;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px dashed rgba(82, 99, 95, 0.34);
  border-radius: var(--radius);
}

.monetization-panel__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.monetization-panel__label {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.monetization-panel h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.monetization-panel p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.monetization-panel__disclosure {
  max-width: 680px;
  opacity: 0.86;
}

.monetization-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.monetization-panel__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 11px;
  color: var(--color-ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: #eef2ec;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.monetization-panel__actions a:hover {
  color: var(--color-teal);
  background: var(--color-teal-soft);
}

.shortcut-shell {
  display: grid;
  gap: 10px;
}

.shortcut-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8faf7;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.shortcut-section h2 {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.local-library-tools {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.local-library-tools p {
  margin: 3px 0 0;
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.local-library-tools__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.local-library-tools__actions button {
  min-height: 34px;
  padding: 0 11px;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 700;
}

.local-library-tools__actions button:hover {
  color: var(--color-teal);
  background: var(--color-teal-soft);
}

.shortcut-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-shortcut,
.shortcut-empty {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 800;
}

.asset-shortcut:hover {
  color: var(--color-teal);
  background: var(--color-teal-soft);
}

.shortcut-empty {
  color: var(--color-muted);
  font-weight: 700;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.asset-grid--detail {
  width: min(100%, 960px);
}

.asset-card {
  position: relative;
  z-index: 0;
  display: block;
  min-width: 0;
  overflow: visible;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(20, 33, 31, 0.06);
}

.asset-card.is-previewed {
  z-index: 3;
  border-color: rgba(21, 94, 87, 0.58);
  box-shadow: 0 12px 30px rgba(20, 33, 31, 0.12);
}

.asset-card:focus-within {
  z-index: 6;
}

.asset-card[hidden] {
  display: none;
}

.asset-card__media {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  min-height: 148px;
  background: #f0f3ef;
  border-radius: var(--radius);
  overflow: visible;
}

.asset-card__media::after {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(20, 33, 31, 0.12));
}

.asset-preview-button,
.asset-card__image {
  width: 100%;
  height: 100%;
  color: inherit;
  cursor: zoom-in;
  border: 0;
}

.asset-card__image {
  display: grid;
  place-items: center;
  padding: 34px 10px 52px;
  background: transparent;
}

.asset-card__image svg {
  width: 100%;
  height: 100%;
  max-height: 128px;
  object-fit: contain;
  transition: transform 160ms ease;
}

.asset-card:hover .asset-card__image svg {
  transform: scale(1.04);
}

.asset-card__preview--red,
.asset-card__preview--coral {
  background: var(--color-coral-soft);
}

.asset-card__preview--amber {
  background: var(--color-amber-soft);
}

.asset-card__preview--green,
.asset-card__preview--teal {
  background: var(--color-teal-soft);
}

.asset-card__preview--blue {
  background: var(--color-blue-soft);
}

.asset-card__top-actions {
  position: absolute;
  z-index: 12;
  top: 7px;
  right: 7px;
  display: flex;
  gap: 5px;
  align-items: center;
}

.favorite-toggle,
.asset-menu summary {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(215, 221, 212, 0.58);
  border-radius: 999px;
  box-shadow: 0 5px 12px rgba(20, 33, 31, 0.04);
  backdrop-filter: blur(6px);
}

.favorite-toggle {
  padding: 0;
}

.favorite-toggle::before {
  content: "\2606";
  font-size: 1rem;
  line-height: 1;
}

.favorite-toggle[aria-pressed="true"] {
  color: var(--color-coral);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(240, 93, 67, 0.28);
}

.favorite-toggle[aria-pressed="true"]::before {
  content: "\2605";
}

.asset-menu {
  position: relative;
  z-index: 12;
}

.asset-menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.asset-menu summary::-webkit-details-marker {
  display: none;
}

.asset-menu__chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 140ms ease;
}

.asset-menu[open] summary {
  color: var(--color-teal);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(21, 94, 87, 0.22);
}

.asset-menu[open] .asset-menu__chevron {
  transform: translateY(2px) rotate(225deg);
}

.asset-menu__panel {
  position: absolute;
  z-index: 30;
  top: 38px;
  right: 0;
  display: grid;
  width: 156px;
  padding: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 14px 28px rgba(20, 33, 31, 0.1);
}

.asset-menu__item {
  display: flex;
  min-height: 34px;
  align-items: center;
  padding: 0 9px;
  color: var(--color-ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.asset-menu__item:hover,
.asset-menu__item:focus-visible {
  color: var(--color-teal);
  background: var(--color-teal-soft);
}

.asset-card__label {
  position: absolute;
  z-index: 3;
  top: 7px;
  right: 78px;
  left: 7px;
  display: grid;
  gap: 4px;
  justify-items: start;
}

.asset-card__taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 24px;
  overflow: hidden;
}

.asset-card__taxonomy span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  color: rgba(82, 99, 95, 0.76);
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(215, 221, 212, 0.36);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 500;
}

.asset-card__primary-actions {
  position: absolute;
  z-index: 4;
  right: 7px;
  bottom: 7px;
  left: 7px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.asset-card__primary-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 8px;
  color: var(--color-ink);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(215, 221, 212, 0.56);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(20, 33, 31, 0.045);
  backdrop-filter: blur(6px);
}

.asset-card__primary-actions button:hover {
  color: var(--color-teal);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(21, 94, 87, 0.24);
}

.asset-card__primary-actions button:only-child {
  grid-column: 1 / -1;
}

.copy-button.is-busy,
.asset-card__primary-actions .is-busy,
.asset-menu__item.is-busy {
  opacity: 0.75;
  cursor: wait;
}

.empty-state {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.empty-state[hidden] {
  display: none;
}

.empty-state h2 {
  margin: 0;
  font-size: 1.2rem;
}

.empty-state p {
  margin: 0;
  color: var(--color-muted);
}

.empty-state button {
  min-height: 42px;
  padding: 0 12px;
  color: #ffffff;
  font-weight: 800;
  background: var(--color-teal);
  border: 0;
  border-radius: var(--radius);
}

.content-band,
.page-band {
  padding: 54px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--color-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-teal);
  text-decoration: underline;
}

.content-narrow {
  width: min(100% - 32px, var(--content-narrow));
}

.content-narrow > .breadcrumbs {
  margin-bottom: 18px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.feature-list > div,
.contact-box,
.policy-grid a,
.link-grid a,
.evidence-list a,
.faq-list section {
  padding: 18px;
  background: #f8faf7;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.feature-list p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.contact-box {
  display: grid;
  gap: 6px;
  margin: 24px 0;
}

.contact-box span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.contact-box a {
  font-size: 1.15rem;
  font-weight: 800;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.policy-grid a,
.link-grid a,
.evidence-list a {
  display: grid;
  gap: 6px;
  color: var(--color-ink);
  text-decoration: none;
}

.policy-grid span,
.link-grid span,
.evidence-list span {
  font-weight: 800;
}

.policy-grid small,
.link-grid small,
.evidence-list small {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.link-grid,
.evidence-list,
.faq-list,
.check-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 28px;
}

.link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-grid a:hover,
.evidence-list a:hover {
  color: var(--color-teal);
  background: var(--color-teal-soft);
}

.check-list p {
  margin: 0;
  padding: 14px 16px;
  color: var(--color-muted);
  background: #f8faf7;
  border-left: 4px solid var(--color-teal);
}

.quick-answer-summary {
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
  padding: 20px;
  color: var(--color-ink);
  background: #f8faf7;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.quick-answer-summary h2,
.quick-answer-summary h3,
.quick-answer-summary p,
.quick-answer-summary ul,
.quick-answer-summary ol {
  margin: 0;
}

.quick-answer-summary h2 {
  font-size: 1.35rem;
}

.quick-answer-summary h3 {
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.quick-answer-summary p,
.quick-answer-summary li {
  color: var(--color-muted);
}

.quick-answer-summary ul,
.quick-answer-summary ol {
  display: grid;
  gap: 8px;
  padding-left: 1.25rem;
}

.quick-answer-summary .decision-table {
  margin: 0;
}

.answer-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  color: var(--color-muted);
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.answer-table th,
.answer-table td {
  padding: 10px 12px;
  text-align: left;
  border-top: 1px solid var(--color-line);
}

.answer-table th {
  color: var(--color-ink);
  background: #eef2ec;
  border-top: 0;
}

.decision-table--compact {
  font-size: 0.92rem;
}

.asset-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 28px;
}

.asset-detail-facts div {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: #f8faf7;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.asset-detail-facts span {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.asset-detail-facts strong {
  color: var(--color-ink);
  font-size: 0.98rem;
}

.decision-table {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(0, 1.15fr);
  margin: 18px 0 28px;
  overflow: hidden;
  color: var(--color-muted);
  background: #f8faf7;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.decision-table > div {
  padding: 12px 14px;
  border-top: 1px solid var(--color-line);
}

.decision-table > div:nth-child(2n) {
  border-left: 1px solid var(--color-line);
}

.decision-table > div:nth-child(-n + 2) {
  border-top: 0;
}

.decision-table__head {
  color: var(--color-ink);
  font-weight: 800;
  background: #eef2ec;
}

.number-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 28px;
  padding-left: 1.4rem;
}

.number-list li {
  padding-left: 6px;
}

.faq-list section h2 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.faq-list section p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.site-footer {
  padding: 28px 0;
  color: #dce8e4;
  background: var(--color-ink);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: #ffffff;
}

.cookie-banner {
  position: fixed;
  z-index: 30;
  right: 16px;
  bottom: 16px;
  width: min(calc(100% - 32px), 460px);
  padding: 12px;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.tool-shell > .cookie-banner {
  width: min(calc(100% - 32px), 460px);
  box-shadow: var(--shadow-soft);
}

.cookie-banner p {
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-banner button {
  min-height: 38px;
  padding: 0 12px;
  font-weight: 800;
  border-radius: var(--radius);
  font-size: 0.86rem;
}

.cookie-banner button:first-child {
  color: #ffffff;
  background: var(--color-teal);
  border: 0;
}

.cookie-banner button:last-child {
  color: var(--color-ink);
  background: #eef2ec;
  border: 1px solid var(--color-line);
}

@media (max-width: 760px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 12px;
  }

  .primary-nav.is-open,
  html:not(.js) .primary-nav {
    display: flex;
  }

  .primary-nav a {
    min-height: 48px;
  }

  .search-shell {
    grid-template-columns: 1fr;
  }

  .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
    gap: 8px;
  }

  .monetization-panel {
    grid-template-columns: 1fr;
  }

  .monetization-panel__actions {
    justify-content: flex-start;
  }

  .local-library-tools {
    grid-template-columns: 1fr;
  }

  .local-library-tools__actions {
    justify-content: flex-start;
  }

  .feature-list,
  .policy-grid,
  .link-grid,
  .asset-detail-facts {
    grid-template-columns: 1fr;
  }

  .decision-table {
    grid-template-columns: 1fr;
  }

  .decision-table > div,
  .decision-table > div:nth-child(2n) {
    border-left: 0;
  }

  .decision-table > div:nth-child(2) {
    border-top: 1px solid var(--color-line);
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .site-header__inner,
  .site-footer__inner,
  .tool-shell,
  .content-narrow {
    width: min(100% - 24px, var(--content));
  }

  h1 {
    font-size: 2.25rem;
  }

  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .asset-card__media {
    min-height: 138px;
  }

  .asset-card__label {
    right: 70px;
  }

  .asset-card__taxonomy span:not(:first-child) {
    display: none;
  }

  .asset-card__primary-actions button {
    min-height: 32px;
    padding: 0 6px;
    font-size: 0.72rem;
  }
}

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