:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif; background: #fffaf0; color: #362718; }
* { box-sizing: border-box; }
body { margin: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
header, main { width: min(100%, 740px); margin: auto; padding-inline: 16px; }
header { padding-top: 18px; }
.eyebrow { margin: 0; color: #a1630d; font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
h1 { margin: 2px 0 9px; font-size: 1.55rem; }
.notice { margin: 0; padding: 9px 11px; border-radius: 10px; background: #fff0ce; color: #69440b; font-size: .78rem; line-height: 1.45; }
main { padding-top: 15px; }
.search { display: block; font-size: .8rem; font-weight: 700; }
.search span { display: block; margin-bottom: 5px; }
input { width: 100%; border: 1px solid #d9c5a4; border-radius: 12px; padding: 12px; background: #fff; color: inherit; font: inherit; }
.filters { display: grid; gap: 10px; margin: 15px 0; } .filters h2 { margin: 0 0 6px; font-size: .8rem; }
.chips, .quick { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
button, .download { border: 0; border-radius: 999px; padding: 9px 12px; background: #f2e5cc; color: inherit; font: inherit; font-size: .8rem; font-weight: 650; white-space: nowrap; text-decoration: none; cursor: pointer; }
.chips button.selected, .tab.active { background: #b86b10; color: white; }
.quick { margin: 3px 0 12px; }
.count { margin: 0 0 10px; color: #755e42; font-size: .78rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 24px; }
.card { min-width: 0; } .image-button { position: relative; width: 100%; aspect-ratio: 1; padding: 4px; border: 1px solid #eadac0; border-radius: 14px; background: white; }
.image-button img { width: 100%; height: 100%; object-fit: contain; } .favorite-mark { display: none; position: absolute; top: 4px; right: 4px; color: #d87200; text-shadow: 0 1px white; font-size: 1rem; }
.card.favorited .favorite-mark { display: block; } .label { margin: 4px 2px 0; overflow: hidden; font-size: .74rem; line-height: 1.25; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
dialog { width: min(94vw, 460px); max-height: 92vh; border: 0; border-radius: 20px; padding: 15px; box-shadow: 0 12px 44px #3c240a66; } dialog::backdrop { background: #321d0988; }
.dialog-header { display: flex; justify-content: space-between; margin-bottom: 6px; } #closePreview { padding: 2px 9px; font-size: 1.6rem; line-height: 1; } #previewImage { display: block; width: min(100%, 330px); max-height: 48vh; margin: 0 auto; object-fit: contain; }
#previewLabel { margin: 10px 0 3px; font-size: 1.2rem; text-align: center; } #previewMeta, .share-hint { margin: 0 0 11px; color: #705a40; font-size: .8rem; text-align: center; }
.share, .download { display: block; width: 100%; margin-top: 8px; padding: 13px; background: #b86b10; color: white; text-align: center; font-size: .95rem; } .download { background: #f2e5cc; color: #362718; }
.share-hint { margin-top: 10px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
