:root {
  --paper: #f4f5f0;
  --paper-deep: #e9ece6;
  --ink: #142023;
  --ink-soft: #344346;
  --muted: #687579;
  --line: #d8dfda;
  --line-strong: #bdc9c4;
  --accent: #04a9c7;
  --accent-deep: #087f95;
  --mint: #8fd9c5;
  --lime: #d4e989;
  --coral: #d86f5c;
  --white: #fff;
  --shadow: 0 16px 40px rgba(20, 32, 35, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

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

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.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;
}

.site-header {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px max(24px, calc((100vw - 1440px) / 2 + 24px));
}

.brand { align-items: center; display: inline-flex; gap: 12px; text-decoration: none; }

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 11px;
  color: var(--ink);
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  letter-spacing: -1px;
  width: 42px;
}

.brand-mark span { color: var(--paper); font-size: 12px; margin: 0 -1px; }

.brand-copy { display: grid; gap: 2px; }

.brand-copy strong { font-size: 16px; letter-spacing: -.02em; }

.brand-copy small { color: #9eaead; font-size: 9px; font-weight: 800; letter-spacing: .16em; }

.header-nav { align-items: center; display: flex; gap: 24px; }

.header-nav a { color: #bac6c2; font-size: 12px; font-weight: 700; text-decoration: none; }

.header-nav a:hover, .header-nav a:focus-visible { color: var(--white); }

.site-shell { margin: 0 auto; max-width: 1440px; padding: 0 24px 96px; }

.hero { max-width: 780px; padding: 76px 0 58px; }

.eyebrow { color: var(--accent-deep); font-size: 10px; font-weight: 850; letter-spacing: .18em; line-height: 1.4; }

h1, h2, p { margin: 0; }

h1 { font-size: clamp(48px, 6.2vw, 88px); font-weight: 760; letter-spacing: -.075em; line-height: .96; margin: 20px 0 24px; }

h1 em { color: var(--accent-deep); font-style: normal; }

.hero-copy { color: var(--ink-soft); font-size: 16px; line-height: 1.65; max-width: 650px; }

.search-box {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(20, 32, 35, .04);
  display: flex;
  gap: 12px;
  margin-top: 30px;
  max-width: 720px;
  min-height: 64px;
  padding: 0 18px;
  transition: border-color .2s, box-shadow .2s;
}

.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(4, 169, 199, .12); }

.search-glyph { color: var(--accent-deep); font-size: 28px; line-height: 1; transform: translateY(-2px) rotate(-16deg); }

.search-box input { background: transparent; border: 0; color: var(--ink); flex: 1; font-size: 16px; min-width: 0; outline: 0; }

.search-box input::placeholder { color: #8d9a98; }

.clear-search { background: var(--paper-deep); border: 0; border-radius: 7px; color: var(--ink-soft); cursor: pointer; font-size: 11px; font-weight: 800; padding: 7px 9px; }

.clear-search:hover { background: var(--line); }

.search-hint { color: var(--muted); font-size: 12px; margin-top: 10px; min-height: 18px; }

.summary-band { align-items: stretch; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; gap: 32px; grid-template-columns: minmax(250px, 1.2fr) 2fr; padding: 26px 0; }

.summary-lead h2 { font-size: 22px; letter-spacing: -.04em; line-height: 1.15; margin-top: 8px; }

.summary-lead p { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 8px; }

.summary-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }

.summary-stats div { border-left: 1px solid var(--line); display: grid; gap: 7px; padding: 4px 20px; }

.summary-stats dt { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; }

.summary-stats dd { font-size: 28px; font-weight: 770; letter-spacing: -.06em; margin: 0; }

.controls { border-bottom: 1px solid var(--line); padding: 24px 0 20px; }

.control-row { align-items: end; display: flex; flex-wrap: wrap; gap: 22px; }

.control-row-secondary { align-items: end; margin-top: 19px; }

.filter-group { display: grid; gap: 8px; }

.filter-group-wide { flex: 1 1 620px; }

.filter-label { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .16em; }

.segmented { background: var(--paper-deep); border: 1px solid var(--line); border-radius: 8px; display: inline-flex; padding: 3px; }

.segmented-wrap { flex-wrap: wrap; }

.segmented button { background: transparent; border: 0; border-radius: 5px; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 750; padding: 8px 11px; white-space: nowrap; }

.segmented button:hover { color: var(--ink); }

.segmented button[aria-pressed="true"] { background: var(--white); box-shadow: 0 1px 4px rgba(20, 32, 35, .1); color: var(--ink); }

.workshop-select-wrap { display: grid; gap: 8px; min-width: 220px; }

.workshop-select-wrap select { background: var(--white); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink-soft); font-size: 11px; max-width: 290px; min-height: 35px; padding: 0 30px 0 10px; }

.workshop-select-wrap select:disabled { color: #9ba6a4; }

.text-button { background: transparent; border: 0; color: var(--accent-deep); cursor: pointer; font-size: 11px; font-weight: 800; padding: 8px 0; }

.text-button:hover { text-decoration: underline; }

.active-filters { color: var(--muted); font-size: 11px; min-height: 18px; padding-top: 15px; }

.active-filter { align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 99px; display: inline-flex; gap: 6px; margin: 0 5px 5px 0; padding: 5px 9px; }

.active-filter strong { color: var(--ink); font-weight: 800; }

.library-section { padding-top: 42px; }

.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 20px; }

.section-heading h2 { font-size: 30px; letter-spacing: -.055em; margin-top: 6px; }

.loaded-count { color: var(--muted); font-size: 11px; font-weight: 700; }

.asset-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); min-height: 120px; }

.asset-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; min-width: 0; overflow: hidden; position: relative; transition: border-color .2s, box-shadow .2s, transform .2s; }

.asset-card:hover, .asset-card:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); outline: 0; transform: translateY(-2px); }

.asset-preview { aspect-ratio: 1; background-color: #f8f9f5; background-image: linear-gradient(45deg, #edf0eb 25%, transparent 25%), linear-gradient(-45deg, #edf0eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #edf0eb 75%), linear-gradient(-45deg, transparent 75%, #edf0eb 75%); background-position: 0 0, 0 7px, 7px -7px, -7px 0; background-size: 14px 14px; display: grid; overflow: hidden; place-items: center; position: relative; }

.asset-preview img { display: block; height: 100%; object-fit: contain; padding: 12%; width: 100%; }

.asset-preview.exception-preview { background: var(--ink); background-image: radial-gradient(circle at 80% 15%, rgba(143, 217, 197, .18), transparent 34%), linear-gradient(135deg, transparent 0 49%, rgba(255,255,255,.06) 50% 51%, transparent 52%); background-size: auto, 16px 16px; }

.exception-symbol { color: var(--lime); font-size: 46px; font-weight: 200; line-height: 1; }

.preview-state { background: rgba(20, 32, 35, .78); border-radius: 99px; bottom: 9px; color: var(--white); font-size: 8px; font-weight: 850; left: 9px; letter-spacing: .1em; padding: 5px 7px; position: absolute; }

.preview-state.reviewed { background: var(--accent-deep); }

.preview-state.exception { background: var(--coral); }

.asset-body { display: grid; gap: 8px; padding: 13px 13px 11px; }

.asset-name { font-size: 13px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.asset-subline { align-items: center; color: var(--muted); display: flex; font-size: 10px; gap: 5px; min-width: 0; }

.asset-subline span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.asset-dot { background: var(--line-strong); border-radius: 50%; flex: 0 0 auto; height: 3px; width: 3px; }

.asset-actions { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 4px; padding: 7px 9px; }

.card-action { background: transparent; border: 0; border-radius: 5px; color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 800; padding: 5px 4px; }

.card-action:hover, .card-action:focus-visible { background: var(--paper-deep); color: var(--ink); outline: 0; }

.card-open { color: var(--accent-deep); margin-left: auto; }

.skeleton-card { aspect-ratio: .82; background: linear-gradient(105deg, #e8ece8 20%, #f4f5f0 35%, #e8ece8 50%); background-size: 200% 100%; border-radius: 12px; animation: shimmer 1.4s infinite; }

@keyframes shimmer { to { background-position: -200% 0; } }

.message-panel { align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; display: grid; justify-items: center; margin: 24px 0; padding: 46px 24px; text-align: center; }

.message-panel-error { align-items: start; justify-items: start; text-align: left; }

.message-panel strong { font-size: 15px; }

.message-panel p { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 7px; }

.empty-mark { color: var(--accent); font-size: 36px; margin-bottom: 10px; }

.button { border: 0; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 800; min-height: 37px; padding: 0 14px; }

.button-dark { background: var(--ink); color: var(--paper); margin-top: 18px; }

.button-dark:hover { background: var(--accent-deep); }

.button-outline { background: var(--white); border: 1px solid var(--line-strong); color: var(--ink); }

.button-outline:hover { border-color: var(--accent); color: var(--accent-deep); }

.load-more-row { display: flex; justify-content: center; min-height: 78px; padding: 26px 0; }

.detail-backdrop { align-items: center; background: rgba(20, 32, 35, .58); display: flex; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 20; }

.detail-dialog { background: var(--paper); border: 1px solid rgba(255,255,255,.4); border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.28); max-height: min(860px, calc(100vh - 48px)); max-width: 900px; overflow: auto; position: relative; width: 100%; }

.detail-close { align-items: center; background: rgba(244,245,240,.86); border: 1px solid var(--line); border-radius: 50%; color: var(--ink); cursor: pointer; display: flex; font-size: 24px; height: 36px; justify-content: center; line-height: 1; position: absolute; right: 16px; top: 16px; width: 36px; z-index: 1; }

.detail-close:hover { background: var(--white); border-color: var(--accent); }

.detail-layout { display: grid; grid-template-columns: minmax(280px, 1.05fr) minmax(260px, .95fr); }

.detail-media { align-items: center; aspect-ratio: 1; background-color: #f8f9f5; background-image: linear-gradient(45deg, #edf0eb 25%, transparent 25%), linear-gradient(-45deg, #edf0eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #edf0eb 75%), linear-gradient(-45deg, transparent 75%, #edf0eb 75%); background-position: 0 0, 0 20px, 20px -20px, -20px 0; background-size: 40px 40px; display: flex; justify-content: center; max-height: 640px; overflow: hidden; }

.detail-media img { height: 100%; object-fit: contain; padding: 12%; width: 100%; }

.detail-media.exception-preview { background-color: var(--ink); background-image: radial-gradient(circle at 80% 15%, rgba(143, 217, 197, .18), transparent 34%); }

.detail-info { display: flex; flex-direction: column; padding: 48px 36px 32px; }

.detail-info h2 { font-size: clamp(27px, 4vw, 42px); letter-spacing: -.07em; line-height: 1; margin: 10px 0 12px; overflow-wrap: anywhere; }

.detail-state { align-self: start; border-radius: 99px; color: var(--ink); display: inline-flex; font-size: 9px; font-weight: 850; letter-spacing: .1em; padding: 6px 9px; }

.detail-state.ready { background: var(--mint); }

.detail-state.reviewed { background: var(--accent); }

.detail-state.exception { background: #f2b19f; }

.detail-description { color: var(--muted); font-size: 12px; line-height: 1.55; margin-bottom: 20px; }

.fact-list { border-top: 1px solid var(--line); margin: 0; }

.fact { border-bottom: 1px solid var(--line); display: grid; gap: 14px; grid-template-columns: 92px 1fr; padding: 10px 0; }

.fact dt { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.fact dd { font-size: 11px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }

.fact code { color: var(--accent-deep); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }

.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }

.detail-actions .button { flex: 1 1 120px; }

.toast { background: var(--ink); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; bottom: 22px; box-shadow: var(--shadow); color: var(--paper); font-size: 12px; font-weight: 700; left: 50%; padding: 11px 14px; position: fixed; transform: translateX(-50%); z-index: 30; }

.noscript-note { background: var(--lime); color: var(--ink); font-size: 13px; line-height: 1.5; padding: 18px 24px; text-align: center; }

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .summary-band { grid-template-columns: 1fr; }
  .summary-stats { margin-top: 8px; }
  .summary-stats div:first-child { border-left: 0; padding-left: 0; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-media { max-height: 54vh; }
  .detail-info { padding: 28px 28px 26px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 66px; padding: 12px 16px; }
  .brand-mark { border-radius: 9px; height: 36px; width: 36px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 8px; }
  .header-nav { gap: 10px; }
  .header-nav a { font-size: 10px; }
  .header-nav a:first-child { display: none; }
  .site-shell { padding: 0 16px 60px; }
  .hero { padding: 56px 0 42px; }
  h1 { font-size: clamp(43px, 14vw, 70px); }
  .hero-copy { font-size: 14px; }
  .search-box { min-height: 58px; padding: 0 14px; }
  .summary-stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .summary-stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .summary-stats div { padding: 0 12px; }
  .summary-stats dd { font-size: 24px; }
  .control-row { gap: 16px; }
  .filter-group, .filter-group-wide { width: 100%; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding-left: 5px; padding-right: 5px; }
  .segmented-wrap button { flex: 0 1 auto; }
  .workshop-select-wrap { min-width: 0; width: 100%; }
  .workshop-select-wrap select { max-width: none; width: 100%; }
  .text-button { margin-left: 1px; }
  .section-heading { align-items: start; display: grid; gap: 8px; }
  .asset-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-body { padding: 11px 10px 9px; }
  .asset-actions { padding-left: 6px; padding-right: 6px; }
  .card-action { font-size: 8px; }
  .detail-backdrop { padding: 10px; }
  .detail-dialog { max-height: calc(100vh - 20px); }
  .detail-info { padding: 24px 20px 22px; }
  .fact { gap: 9px; grid-template-columns: 78px 1fr; }
}

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