:root {
  color-scheme: light;
  --pine: #174b40;
  --ink: #192e28;
  --muted: #50655b;
  --line: #d9e0d9;
  --bg: #f7f8f5;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2578ae; outline-offset: 3px; }
.wrap { width: min(1192px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -80px; padding: 12px; background: #fff; z-index: 5; }
.skip:focus { top: 10px; }
header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 27px; font-weight: 750; letter-spacing: -.065em; text-decoration: none; }
.brand-mark { display: grid; gap: 3px; width: 30px; transform: skewY(-8deg); }
.brand-mark i { height: 5px; border-radius: 1px; background: var(--pine); }
.brand-mark i:nth-child(2) { width: 80%; }
.brand-mark i:nth-child(3) { width: 61%; }
.help-button { display: flex; gap: 8px; align-items: center; border: 0; padding: 10px 0 10px 10px; color: var(--muted); background: transparent; font-size: 14px; font-weight: 550; }
.help-button:hover { color: var(--pine); text-decoration: underline; }
.help-sign { display: grid; place-items: center; height: 17px; width: 17px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 650; }
.hero { margin: 28px 0 32px; display: grid; grid-template-columns: 50% 50%; background: #173f36; color: #fafcf5; border-radius: 17px; overflow: hidden; }
.hero-text { padding: clamp(28px, 3.6vw, 49px); align-self: center; }
.hero h1 { font-size: clamp(43px, 4.8vw, 70px); letter-spacing: -.056em; line-height: .99; margin: 0; font-weight: 590; }
.hero p { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.5; color: #e0ebe3; margin: 20px 0 0; max-width: 410px; }
.hero img { height: 100%; width: 100%; min-height: 0; max-height: 315px; object-fit: cover; object-position: 50% 53%; display: block; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter, #reset { background: #fff; border: 1px solid var(--line); padding: 10px 15px; border-radius: 24px; font-size: 14px; line-height: 1.35; font-weight: 550; white-space: nowrap; }
.filter[aria-pressed="true"], #reset { background: var(--pine); border-color: var(--pine); color: white; }
.filter:hover:not([aria-pressed="true"]) { background: #eaf0e9; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #c8d3ca; border-radius: 9px; height: 41px; width: min(280px, 100%); background: #fff; color: var(--muted); }
.search:focus-within { outline: 2px solid var(--pine); }
.search input { border: 0; outline: 0; min-width: 0; width: 100%; background: transparent; color: var(--ink); font-size: 15px; }
.search input::placeholder { color: #65736b; }
.search-icon,.zoom-icon { border: 1.5px solid currentColor; border-radius: 50%; width: 14px; height: 14px; position: relative; flex: none; margin-right: 2px; }
.search-icon::after,.zoom-icon::after { content:""; width: 6px; height: 1.5px; position: absolute; background: currentColor; bottom: -2px; right: -4px; transform: rotate(45deg); }
.count { font-size: 14px; color: var(--muted); margin: 22px 0 13px; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.cover { display: block; position: relative; border: 0; overflow: hidden; width: 100%; height: clamp(155px,14vw,189px); text-align: left; isolation: isolate; }
.cover:focus-visible { outline-offset: -4px; }
.sage { background: #d4e3d5; }
.peach { background: #efddca; }
.blue { background: #d5e4e8; }
.filetag,.zoom-label { position: absolute; z-index: 1; display: inline-flex; align-items: center; padding: 5px 9px; font-size: 12px; line-height: 1.3; font-weight: 650; border-radius: 5px; background: #ffffffee; color: #263d35; }
.filetag { top: 13px; left: 14px; letter-spacing: .05em; }
.zoom-label { bottom: 12px; right: 12px; gap: 5px; font-size: 13px; box-shadow: 0 1px 4px #203d291f; }
.zoom-icon { width: 10px; height: 10px; }
.zoom-icon::after { width: 4px; right: -3px; bottom: -1px; }
.paper { display: block; position: absolute; height: auto; max-width: none; width: 73%; left: 15%; top: 20%; transform: rotate(-6deg); box-shadow: 2px 5px 12px #21433639; transition: transform .18s; }
.csv .paper { width: 91%; left: 10%; top: 24%; transform: rotate(4deg); }
.cover:hover .paper { transform: translateY(-4px) rotate(-4deg); }
.csv:hover .paper { transform: translateY(-4px) rotate(2deg); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 19px 20px 16px; }
.category { color: #526b60; font-size: 13px; margin: 0 0 6px; font-weight: 600; }
.card h2 { margin: 0; font-size: clamp(20px,1.8vw,25px); line-height: 1.22; letter-spacing: -.035em; }
.summary { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 8px 0 18px; }
.card-footer { margin-top: auto; border-top: 1px solid #e5e9e4; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.download { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--pine); text-decoration: none; font-size: 14px; font-weight: 700; min-height: 30px; }
.download:hover { text-decoration: underline; }
.down-icon { height: 13px; width: 14px; border-bottom: 1.5px solid currentColor; position: relative; }
.down-icon::before { content:""; height: 9px; border-left: 1.5px solid currentColor; position: absolute; left: 6px; }
.down-icon::after { content:""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; position: absolute; transform: rotate(45deg); left: 3px; top: 1px; }
.file-info { color: var(--muted); font-size: 13px; }
.empty { padding: 45px 20px; border: 1px dashed #b4c2b8; border-radius: 12px; text-align: center; }
.empty h2 { margin: 0 0 8px; }.empty p { color: var(--muted); }
footer { border-top: 1px solid var(--line); color: var(--muted); padding-block: 22px; margin-top: 50px; font-size: 13px; }
footer span { margin-inline: 8px; }
dialog { width: min(780px,calc(100% - 24px)); max-height: min(90vh,960px); max-height: min(90dvh,960px); padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: 0 18px 90px #05191045; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #0a211ab3; }
.dialog-head,.dialog-foot { padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex: none; }
.dialog-head small { color: var(--muted); font-size: 13px; }.dialog-head h2 { margin: 3px 0 0; font-size: 23px; letter-spacing: -.035em; }
.close { border-radius: 50%; background: #eef2ec; border: none; width: 38px; height: 38px; flex: none; font-size: 25px; line-height: 1; }
.preview-content { overflow: auto; background: #e8ede7; padding: 18px; }
.preview-content img { width: min(100%,650px); height: auto; display: block; margin: auto; box-shadow: 0 2px 9px #14382a25; }
.dialog-foot { border-top: 1px solid var(--line); }.dialog-foot p { font-size: 14px; line-height: 1.4; color: var(--muted); margin: 0; }
.primary { background: var(--pine); color: white; padding: 11px 16px; border-radius: 8px; flex: none; }
.table-scroll { overflow: auto; }
table { width: 100%; background: white; border-collapse: collapse; font-size: 14px; }
th,td { border: 1px solid #cad6cd; padding: 9px; text-align: left; vertical-align: top; min-width: 85px; line-height: 1.35; } th { background: #dce7de; }
#help { max-width: 510px; }
.help-body { padding: 0 22px 20px; overflow: auto; line-height: 1.55; }
.help-body p { margin: 8px 0 16px; color: var(--muted); }.help-body h3 { font-size: 16px; margin-bottom: 4px; }
@media(max-width:900px) {
  .wrap { width: calc(100% - 44px); }.grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cover { height: 170px; }.search { width: 220px; }.hero { grid-template-columns: 52% 48%; }.hero-text { padding: 30px; }
}
@media(max-width:710px) {
  .toolbar { flex-direction: column-reverse; align-items: stretch; gap: 12px; }.search { width: 100%; }
  .filter { padding: 9px 13px; }.hero h1 { font-size: clamp(37px,6.4vw,47px); }.hero p { font-size: 15px; }
}
@media(max-width:540px) {
  .wrap { width: calc(100% - 32px); }.header-inner { height: 57px; }.brand { font-size: 24px; }
  .hero { margin: 17px 0 22px; grid-template-columns: 1fr; }.hero-text { padding: 24px; }.hero h1 { font-size: 40px; }
  .hero p { margin-top: 12px; max-width: 360px; }.hero img { height: 127px; object-position: 50% 53%; }
  .grid { grid-template-columns: 1fr; gap: 14px; }.cover { height: 165px; }.card-body { padding: 16px; }.count { margin-top: 15px; }
  .filters { gap: 5px; }.filter { font-size: 13px; padding: 9px 10px; }
  .dialog-head,.dialog-foot { padding: 12px 15px; }.dialog-foot { flex-wrap: wrap; }.preview-content { padding: 9px; }
}
@media(prefers-reduced-motion:reduce){.paper { transition: none; }}
