.town-resource-icon { background:#ffe993; color:#715000; }
.town-resource-filters { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 9px; }
.town-resource-filters .town-button { min-height:33px; padding:4px 10px; }
.town-resource-filters [aria-pressed="true"] { background:var(--town-yellow); }
.town-resource-list { display:grid; gap:7px; margin:0; padding:0; list-style:none; }
.town-resource-row {
    display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px;
    min-height:53px; padding:7px 10px; border-radius:10px; background:#f4f5f7;
}
.town-resource-badge {
    display:grid; place-items:center; width:34px; height:34px; border-radius:8px;
    color:#545b69; background:#e6e9ef; font-size:.65rem; font-weight:850;
}
.town-resource-badge[data-kind="doc"] { color:#18529b; background:#e0edff; }
.town-resource-badge[data-kind="sheet"] { color:#186744; background:#ddf4e7; }
.town-resource-badge[data-kind="pdf"] { color:#9d3528; background:#ffe8e3; }
.town-resource-badge[data-kind="slides"] { color:#934517; background:#ffecd9; }
.town-resource-name { display:block; color:var(--town-ink); font-size:.86rem; line-height:1.35; overflow-wrap:anywhere; }
.town-resource-meta { display:block; margin-top:3px; color:var(--town-muted); font-size:.72rem; }
.town-resource-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; }
.town-resource-row .town-button { min-height:36px; padding-inline:11px; }
.town-resource-form { gap:12px; border:0; }
.town-resource-form select {
    min-height:38px; max-width:100%; min-width:0; padding:8px;
    border:1px solid #d4d6dd; border-radius:6px; background:#fff; color:var(--town-ink); font:inherit;
}
@media (max-width:820px) {
    .town-resources { grid-row:3; }
    .town-resources ~ .town-gifts { grid-row:6; }
}
@media (max-width:410px) {
    .town-resource-filters { gap:4px; }
    .town-resource-filters .town-button { padding-inline:7px; font-size:.74rem; }
    .town-resource-row { gap:7px; padding-inline:8px; }
    .town-resource-badge { width:30px; height:30px; }
    .town-resource-actions { flex-direction:column; }
}
