.resources-page-shell { display: flex; flex-direction: column; gap: 1rem; height: 100%; min-height: 0; }
.resources-page-header, .resources-page-panel { border: 1px solid rgba(148, 163, 184, 0.24); background: rgba(255, 255, 255, 0.96); box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12); }
.resources-page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: 1.25rem; }
.resources-page-header h1, .resources-page-panel-heading h2 { margin: 0; color: #0f172a; font-weight: 800; }
.resources-page-header h1 { font-size: 1.65rem; }
.resources-eyebrow { margin: 0 0 0.2rem; color: #64748b; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.resources-back-button { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #f8fafc; color: #334155; transition: background 0.2s, transform 0.2s; }
.resources-back-button:hover { background: #e2e8f0; transform: translateX(-2px); }
.resources-week-badge, .resources-count-badge { padding: 0.4rem 0.7rem; border: 1px solid #002147; border-radius: 999px; background: #002147; color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.app-dark #page-resources .resources-week-badge,
.app-dark #page-resources .resources-count-badge { border-color: #fff; background: #fff; color: #002147; }
.resources-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid #e2e8f0; }
.resources-tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.resources-tab { padding: 0.6rem 0.85rem; border: 1px solid #e2e8f0; border-radius: 0.7rem; background: #f8fafc; color: #64748b; font-size: 0.78rem; font-weight: 700; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.resources-tab:hover { background: #e2e8f0; color: #334155; }
.resources-tab.is-active { border-color: #2563eb; background: #dbeafe; color: #1d4ed8; }
.resources-tab[data-resource-page-category="school"].is-active { border-color: #7dd3e8; background: #dff7fd; color: #0891b2; }
.resources-tab[data-resource-page-category="internet"].is-active { border-color: #93c5fd; background: #dbeafe; color: #2563eb; }
.resources-tab[data-resource-page-category="sheets"].is-active { border-color: #86efac; background: #dcfce7; color: #15803d; }
.resources-page-search { position: relative; display: block; width: min(20rem, 100%); }
.resources-page-search i { position: absolute; top: 50%; left: 0.85rem; transform: translateY(-50%); color: #94a3b8; font-size: 0.8rem; }
.resources-page-search input { width: 100%; padding: 0.65rem 0.8rem 0.65rem 2.25rem; border: 1px solid #e2e8f0; border-radius: 0.7rem; background: #f8fafc; color: #0f172a; font-size: 0.8rem; outline: none; }
.resources-page-search input:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px #dbeafe; }
.resources-search-controls { display: flex; align-items: center; gap: 0.5rem; width: min(26rem, 100%); }
.resources-type-filter { display: flex; align-items: center; justify-content: space-between; width: 6.5rem; height: 2.65rem; flex-shrink: 0; border: 1px solid #e2e8f0; border-radius: 0.7rem; background: #f8fafc; color: #475569; }
.resources-type-filter button { display: flex; align-items: center; justify-content: center; width: 1.8rem; height: 100%; border: 0; background: transparent; color: #94a3b8; }
.resources-type-filter button:hover { background: #e2e8f0; color: #334155; }
.resources-type-filter span { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; }
.resources-page-panel { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 1.25rem; border-radius: 1.25rem; overflow: hidden; }
.resources-page-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.resources-page-panel-heading h2 { font-size: 1.15rem; }
.resources-page-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); grid-auto-rows: 1fr; gap: 0.8rem; overflow-y: auto; padding: 0.15rem; }
.resources-page-card { position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%; padding: 0.8rem; border: 1px solid #bfdbfe; border-radius: 0.9rem; background: #eff6ff; }
.resources-page-card-school { border-color: #7dd3e8; background: #dff7fd; }
.resources-page-card-internet { border-color: #93c5fd; background: #dbeafe; }
.resources-page-card-sheets { border-color: #bbf7d0; background: #f0fdf4; }
.resources-page-card-thumbnail { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; flex-shrink: 0; border-radius: 0.7rem; background: #dbeafe; color: #2563eb; font-size: 2rem; }
.resources-page-card-school .resources-page-card-thumbnail { background: #bcecf7; color: #27bbec; }
.resources-page-card-internet .resources-page-card-thumbnail { background: #bfdbfe; color: #2563eb; }
.resources-page-card-sheets .resources-page-card-thumbnail { background: #dcfce7; color: #16a34a; }
.resources-page-card-content { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 0.5rem 0.15rem 0.1rem; }
.resources-page-card h3 { min-height: 0; margin: 0 0 0.45rem; color: #0f172a; font-size: 0.9rem; font-weight: 800; line-height: 1.2; }
.resources-page-open { display: flex; align-items: center; justify-content: center; gap: 0.45rem; width: 100%; min-height: 2.2rem; margin-top: 0; border: 1px solid #cbd5e1; border-radius: 0.6rem; background: rgba(255,255,255,0.72); color: #475569; font-size: 0.75rem; font-weight: 800; }
.resources-page-open:hover { background: rgba(255,255,255,0.96); color: #0f172a; }
.resources-page-empty { grid-column: 1 / -1; padding: 2rem; color: #64748b; font-size: 0.85rem; text-align: center; }
@media (max-width: 760px) { .resources-toolbar { align-items: stretch; flex-direction: column; } .resources-search-controls, .resources-page-search { width: 100%; } }
@media (max-width: 520px) { .resources-page-header { align-items: flex-start; padding: 1rem; } .resources-page-header h1 { font-size: 1.35rem; } .resources-page-header, .resources-page-panel-heading { flex-wrap: wrap; } .resources-page-panel { padding: 1rem; } }
