/* Shared, consistent polish for every public page. */
body:not(.admin-mode) {
  --bg: #f5f6fc;
  --bg-secondary: #f0f2f8;
  --bg-card: #fff;
  --text: #202437;
  --text-secondary: #62687b;
  --text-muted: #73798c;
  --border: #e9ebf2;
  --primary: #6745eb;
  --primary-hover: #5531d5;
  --primary-light: #eee8ff;
  --on-primary: #fff;
  --accent: #8886ed;
  --shadow: 0 1px 2px rgb(28 33 65 / 3%), 0 6px 20px rgb(28 33 65 / 3%);
  --shadow-lg: 0 18px 48px rgb(28 33 65 / 12%);
  --glass: rgb(255 255 255 / 76%);
  --glass-border: rgb(255 255 255 / 88%);
  --glass-shadow: 0 8px 32px rgb(50 53 110 / 5%), inset 0 1px 0 rgb(255 255 255 / 60%);
}
body.dark-theme:not(.admin-mode) {
  --bg: #11131a;
  --bg-secondary: #191c27;
  --bg-card: #1a1d28;
  --text: #f0f0f6;
  --text-secondary: #c1c3d0;
  --text-muted: #969aab;
  --border: #2b2e3a;
  --primary: #a0a0ff;
  --primary-hover: #c0beff;
  --primary-light: #29293f;
  --on-primary: #171728;
  --accent: #b6a7ff;
  --shadow: 0 3px 18px rgb(0 0 0 / 17%);
  --shadow-lg: 0 18px 48px rgb(0 0 0 / 35%);
  --glass: rgb(28 31 47 / 82%);
  --glass-border: rgb(178 184 235 / 15%);
  --glass-shadow: 0 8px 32px rgb(0 0 0 / 14%), inset 0 1px 0 rgb(255 255 255 / 4%);
}
body:not(.admin-mode) { background-image: radial-gradient(ellipse at 8% 0%, rgb(212 201 255 / 65%), transparent 42rem), radial-gradient(ellipse at 98% 18%, rgb(255 216 200 / 50%), transparent 40rem), radial-gradient(ellipse at 30% 90%, rgb(185 235 224 / 40%), transparent 42rem); background-attachment: fixed; }
body.dark-theme:not(.admin-mode) { background-image: radial-gradient(ellipse at 8% 0%, rgb(83 75 163 / 24%), transparent 42rem), radial-gradient(ellipse at 98% 18%, rgb(92 54 136 / 16%), transparent 40rem); }
body:not(.admin-mode) .container, body:not(.admin-mode) .header-inner, body:not(.admin-mode) .category-nav { width: min(1280px, calc(100% - 56px)); }
body:not(.admin-mode) #siteHeader { background: color-mix(in srgb, var(--bg-card) 89%, transparent); backdrop-filter: blur(18px) saturate(155%); -webkit-backdrop-filter: blur(18px) saturate(155%); border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent); }
body:not(.admin-mode) .header-inner { min-height: 76px; padding-block: 11px; gap: 38px; }
body:not(.admin-mode) .brand { gap: 12px; font-size: 19px; font-weight: 750; letter-spacing: -.045em; }
body:not(.admin-mode) .brand-icon { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, #7778ee, #4e4fd1); box-shadow: 0 5px 14px rgb(84 87 218 / 26%); font-size: 22px; }
body:not(.admin-mode) .brand small { font-size: 9px; letter-spacing: .11em; }
.ui-icon { display: block; width: 17px; height: 17px; flex: 0 0 auto; }
body:not(.admin-mode) .global-search { width: min(100%, 460px); max-width: 460px; min-height: 42px; padding: 0 7px 0 14px; border-color: transparent; border-radius: 12px; background: var(--bg-secondary); gap: 11px; }
body:not(.admin-mode) .global-search > span { display: flex; color: var(--text-muted); }
body:not(.admin-mode) .global-search > span .ui-icon { width: 18px; height: 18px; }
body:not(.admin-mode) .global-search input { font-size: 13px; }
body:not(.admin-mode) .global-search button { min-height: 29px; width: 30px; padding: 0; border: 0; border-radius: 8px; color: var(--text-muted); background: transparent; }
body:not(.admin-mode) .header-actions { gap: 11px; font-size: 13px; }
body:not(.admin-mode) .header-actions > a:not(.header-submit) { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 10px; border-radius: 10px; }
body:not(.admin-mode) .header-actions > a:not(.header-submit) .ui-icon { width: 16px; height: 16px; }
body:not(.admin-mode) .header-submit { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding-inline: 15px; border-radius: 11px; box-shadow: 0 4px 12px rgb(84 87 218 / 15%); }
body:not(.admin-mode) .header-actions > .theme-toggle { width: 39px; min-height: 39px; border-radius: 12px; color: var(--text-secondary); background: var(--bg-card); }
body:not(.admin-mode) .theme-toggle .ui-icon, body:not(.admin-mode) .header-submit .ui-icon { width: 16px; height: 16px; }
body:not(.admin-mode) .category-nav { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
body:not(.admin-mode) .category-nav::-webkit-scrollbar { display: none; }
.category-nav-inner { display: flex; min-width: max-content; align-items: center; gap: 28px; }
body:not(.admin-mode) .category-nav a { position: relative; padding-block: 10px 12px; font-size: 12px; white-space: nowrap; }
body:not(.admin-mode) .category-nav a.active::after { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; content: ""; border-radius: 2px; background: var(--primary); }
body:not(.admin-mode) .directory-intro { position: relative; padding: 42px 0 32px; margin: 0; }
body:not(.admin-mode) .directory-intro h1 { max-width: 770px; font-size: clamp(38px, 4.5vw, 56px); line-height: 1.15; letter-spacing: -.065em; }
body:not(.admin-mode) .directory-intro h1 span { background: linear-gradient(110deg, #5457da, #8e80e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.dark-theme:not(.admin-mode) .directory-intro h1 span { background-image: linear-gradient(110deg, #aaa7ff, #dfbdff); }
body:not(.admin-mode) .directory-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 15px; padding: 7px 12px; border: 1px solid #e5e5fb; border-radius: 999px; background: rgb(245 245 255 / 75%); color: var(--primary); font-size: 10px; letter-spacing: .12em; }
body.dark-theme:not(.admin-mode) .directory-kicker { border-color: var(--border); background: var(--bg-secondary); }
body:not(.admin-mode) .directory-intro p { font-size: 15px; }
body:not(.admin-mode) .directory-total { display: grid; gap: 4px; align-content: end; min-width: 172px; padding: 5px 0 6px 23px; text-align: left; border-left-color: var(--border); }
body:not(.admin-mode) .directory-total strong { font-size: 40px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.discovery-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.directory-page .discovery-aside { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.directory-page .discovery-aside > .ad-slot { grid-column: 1 / -1; }
body:not(.admin-mode) .directory-sections .directory-section { margin: 0 0 35px; padding: 22px 0 0; border-top: 1px solid var(--border); }
body:not(.admin-mode) .directory-section .section-heading { margin-bottom: 17px; }
body:not(.admin-mode) .directory-section h2 { font-size: 19px; letter-spacing: -.035em; }
body:not(.admin-mode) .directory-section .resource-grid, body:not(.admin-mode) .list-content .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body:not(.admin-mode) .directory-card { position: relative; overflow: hidden; min-height: 0; border: 1px solid var(--border); border-radius: 17px; background: var(--bg-card); box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
body:not(.admin-mode) .resource-preview { position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--border); background: linear-gradient(140deg, #e9eafe, #f7f2ff 55%, #e4eaf8); }
body:not(.admin-mode) .resource-preview[data-tone="1"] { background: linear-gradient(140deg, #dff2ec, #eef8f3 55%, #dceee9); }
body:not(.admin-mode) .resource-preview[data-tone="2"] { background: linear-gradient(140deg, #f7e7d1, #fff6e8 55%, #f2e4d4); }
body:not(.admin-mode) .resource-preview[data-tone="3"] { background: linear-gradient(140deg, #dce8f8, #f1f5ff 55%, #dfe9f6); }
body.dark-theme:not(.admin-mode) .resource-preview { background: linear-gradient(140deg, #292744, #222231 55%, #292c3c); }
body.dark-theme:not(.admin-mode) .resource-preview[data-tone="1"] { background: linear-gradient(140deg, #203b38, #222f2e 55%, #253a35); }
body.dark-theme:not(.admin-mode) .resource-preview[data-tone="2"] { background: linear-gradient(140deg, #48372c, #342b26 55%, #413329); }
body.dark-theme:not(.admin-mode) .resource-preview[data-tone="3"] { background: linear-gradient(140deg, #29384d, #252d3c 55%, #2d3850); }
.resource-preview-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px 11% 9px; }
.preview-browser { position: relative; width: min(100%, 390px); height: 100%; max-height: 192px; overflow: hidden; border: 1px solid rgb(255 255 255 / 70%); border-radius: 11px 11px 0 0; background: rgb(255 255 255 / 91%); box-shadow: 0 15px 38px rgb(47 48 94 / 13%); transform: translateY(8px); }
.preview-browser-bar { height: 22px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border-bottom: 1px solid #ececf2; background: rgb(255 255 255 / 94%); }
.preview-window-dots { display: inline-flex; gap: 3px; flex: 0 0 auto; }
.preview-window-dots i { width: 5px; height: 5px; border-radius: 50%; background: #f2a29c; }
.preview-window-dots i:nth-child(2) { background: #f1cc78; }
.preview-window-dots i:nth-child(3) { background: #9bcdb1; }
.preview-domain { min-width: 0; overflow: hidden; color: #7e8090; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.preview-lock { margin-left: auto; color: #8f91a1; font-size: 9px; }
.preview-browser-content { position: relative; display: flex; height: calc(100% - 22px); align-items: center; gap: 10px; padding: 10px 9%; overflow: hidden; }
.preview-copy { position: relative; z-index: 1; display: flex; max-width: 67%; flex-direction: column; align-items: flex-start; gap: 5px; }
.preview-category { max-width: 100%; overflow: hidden; padding: 2px 6px; border: 1px solid #edebfb; border-radius: 99px; background: #f6f4ff; color: #6663ad; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.preview-monogram { display: none; }
.preview-site-name { max-width: 100%; overflow: hidden; color: #292b3b; font-size: clamp(11px, 1.2vw, 17px); font-weight: 760; letter-spacing: -.045em; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.preview-description { display: -webkit-box; overflow: hidden; color: #787b8b; font-size: 7px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.preview-art { position: absolute; top: 50%; right: 8%; width: 32%; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgb(97 89 186 / 13%); border-radius: 28% 34% 26% 39%; background: radial-gradient(circle at 34% 30%, rgb(255 255 255 / 96%), rgb(219 218 255 / 87%) 45%, rgb(171 164 239 / 71%)); color: rgb(91 86 168 / 84%); font-size: clamp(19px, 3.3vw, 43px); box-shadow: 12px 14px 28px rgb(80 73 163 / 13%); transform: translateY(-42%) rotate(7deg); }
.preview-art i, .preview-art b { position: absolute; width: 38%; aspect-ratio: 1; border: 1px solid rgb(255 255 255 / 75%); border-radius: 50%; background: linear-gradient(145deg, rgb(255 255 255 / 78%), rgb(173 168 239 / 55%)); box-shadow: 0 5px 14px rgb(74 67 148 / 11%); }
.preview-art i { top: 73%; left: -22%; }
.preview-art b { top: -15%; right: -19%; width: 31%; }
.resource-preview[data-tone="1"] .preview-art { background: radial-gradient(circle at 34% 30%, #fff, #cdece0 48%, #93cfbd); color: #397d6d; }
.resource-preview[data-tone="2"] .preview-art { background: radial-gradient(circle at 34% 30%, #fff, #f7dfb7 48%, #eab679); color: #95652e; }
.resource-preview[data-tone="3"] .preview-art { background: radial-gradient(circle at 34% 30%, #fff, #d2e2fa 48%, #9eb8e7); color: #4b6f9e; }
.preview-generated-note { position: absolute; bottom: 6px; left: 8px; padding: 3px 6px; border: 1px solid rgb(255 255 255 / 78%); border-radius: 5px; background: rgb(255 255 255 / 78%); color: #686b7c; font-size: 8px; line-height: 1.3; backdrop-filter: blur(8px); }
.resource-preview-image { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.directory-card:hover .resource-preview-image { transform: scale(1.035); }
.resource-preview-label { position: absolute; z-index: 3; top: 9px; right: 9px; padding: 4px 7px; border: 1px solid rgb(255 255 255 / 68%); border-radius: 6px; background: rgb(21 23 35 / 52%); color: #fff; font-size: 9px; backdrop-filter: blur(8px); }
.resource-preview.image-unavailable .resource-preview-image, .resource-preview.image-unavailable .resource-preview-label { display: none; }
body.dark-theme:not(.admin-mode) .resource-preview-placeholder { filter: brightness(.82) saturate(.88); }
body.dark-theme:not(.admin-mode) .preview-browser { border-color: rgb(255 255 255 / 15%); background: #f8f8fc; }
body.dark-theme:not(.admin-mode) .preview-browser-bar { background: #fff; }
body:not(.admin-mode) .directory-card .card-top { min-height: 20px; margin-bottom: 8px; }
body:not(.admin-mode) .directory-card .card-category { color: var(--text-muted); font-size: 10px; font-weight: 650; letter-spacing: .06em; }
body:not(.admin-mode) .directory-card .card-body { min-height: 0; padding: 15px 17px 12px; }
body:not(.admin-mode) .directory-card .card-title { min-height: 0; margin-bottom: 5px; font-size: 15px; }
body:not(.admin-mode) .directory-card .card-desc { display: -webkit-box; min-height: 39px; overflow: hidden; margin-bottom: 10px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
body:not(.admin-mode) .directory-card .card-foot { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 7px; padding-top: 9px; }
body:not(.admin-mode) .directory-card .card-tag { margin-right: auto; }
body:not(.admin-mode) .directory-card .card-foot .license-badge { max-width: min(52%, 180px); overflow: hidden; text-overflow: ellipsis; }
body:not(.admin-mode) .directory-card .favorite { flex: 0 0 31px; width: 31px; }
body:not(.admin-mode) .directory-card::before { display: none; }
body:not(.admin-mode) .directory-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); box-shadow: 0 12px 30px rgb(35 39 79 / 9%); }
body:not(.admin-mode) .website-avatar { width: 36px; height: 36px; border: 1px solid color-mix(in srgb, var(--primary) 11%, var(--border)); border-radius: 11px; background: linear-gradient(145deg, var(--primary-light), var(--bg-card)); font-size: 15px; }
body:not(.admin-mode) .card-pick { padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--primary) 9%, var(--border)); border-radius: 999px; font-size: 10px; }
body:not(.admin-mode) .card-direction { color: var(--text-muted); font-size: 14px; }
body:not(.admin-mode) .directory-card .card-title { font-weight: 700; }
body:not(.admin-mode) .directory-card .card-desc { font-size: 12px; line-height: 1.7; }
body:not(.admin-mode) .directory-card .card-tag { padding: 4px 8px; border-radius: 7px; background: var(--bg-secondary); font-size: 10px; }
body:not(.admin-mode) .directory-card .favorite { width: 32px; height: 30px; min-height: 30px; padding: 0; border-radius: 8px; }
body:not(.admin-mode) .directory-card .favorite .ui-icon { width: 15px; height: 15px; }
body:not(.admin-mode) .directory-card .favorite[aria-pressed="true"] { color: #efad57; border-color: transparent; background: transparent; }
.discovery-aside { gap: 13px; }
.discovery-panel, .discovery-submit { padding: 19px; border: 1px solid var(--border); border-radius: 15px; background: var(--bg-card); box-shadow: var(--shadow); }
.discovery-panel:first-child { padding-top: 18px; border-top: 1px solid var(--border); }
.discovery-panel .section-heading { align-items: center; margin-bottom: 9px; }
.discovery-panel h2 { font-size: 14px; }
.pick-list a { gap: 9px; padding-block: 9px; border-bottom-color: color-mix(in srgb, var(--border) 75%, transparent); }
.pick-list a:hover .pick-arrow { transform: translate(2px, -2px); }
.pick-rank { width: 20px; font-variant-numeric: tabular-nums; }
.pick-list .website-avatar { width: 31px; height: 31px; flex-basis: 31px; border-radius: 9px; font-size: 13px; }
.discovery-submit { background: linear-gradient(150deg, var(--primary-light), var(--bg-card) 73%); }
.discovery-submit .submit-spark { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--bg-card); box-shadow: var(--shadow); font-size: 19px; }
.directory-notice { margin-top: 9px; padding: 15px 0; color: var(--text-muted); font-size: 11px; }
body:not(.admin-mode) .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 38px 0 27px; }
body:not(.admin-mode) .page-heading h1 { margin: 4px 0 8px; font-size: clamp(30px, 4vw, 42px); font-weight: 750; letter-spacing: -.05em; }
body:not(.admin-mode) .page-heading .directory-kicker { margin-bottom: 7px; }
.page-heading-stat { display: grid; gap: 1px; flex: 0 0 auto; padding: 5px 0 4px 18px; border-left: 1px solid var(--border); color: var(--text-muted); font-size: 11px; }
.page-heading-stat strong { color: var(--text); font-size: 26px; line-height: 1.25; font-variant-numeric: tabular-nums; }
body:not(.admin-mode) .directory-list { grid-template-columns: 208px minmax(0, 1fr); gap: 28px; }
body:not(.admin-mode) .topic-sidebar { position: sticky; top: 138px; padding: 17px; border: 1px solid var(--border); border-radius: 15px; background: var(--bg-card); box-shadow: var(--shadow); }
body:not(.admin-mode) .topic-options { gap: 4px; }
body:not(.admin-mode) .topic-option { padding: 8px 9px; border-radius: 9px; }
body:not(.admin-mode) .topic-option:has(input:checked) { background: var(--primary-light); }
body:not(.admin-mode) .topic-category { margin-bottom: 10px; }
body:not(.admin-mode) .topic-reset { margin: 12px 0 0; padding-inline: 8px; }
body:not(.admin-mode) .list-toolbar { margin-bottom: 15px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px; background: color-mix(in srgb, var(--bg-card) 85%, var(--bg-secondary)); }
body:not(.admin-mode) .detail-page { padding-top: 28px; }
body:not(.admin-mode) .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 20px; font-size: 11px; }
body:not(.admin-mode) .detail-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 35px; }
body:not(.admin-mode) .detail-layout > article { gap: 14px; }
body:not(.admin-mode) .panel { padding: 25px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); box-shadow: var(--shadow); }
body:not(.admin-mode) .detail-header { position: relative; overflow: hidden; padding: 31px; border-top: 1px solid var(--border); }
body:not(.admin-mode) .detail-header::before { position: absolute; inset: 0 0 auto; height: 3px; content: ""; background: linear-gradient(90deg, var(--primary), #aaa0ef 58%, transparent); }
.detail-heading-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
body:not(.admin-mode) .detail-header h1 { margin: 16px 0 8px; font-size: clamp(31px, 4vw, 42px); letter-spacing: -.055em; }
body:not(.admin-mode) .detail-author { font-size: 13px; }
body:not(.admin-mode) .detail-header .tags { margin: 17px 0 24px; }
body:not(.admin-mode) .detail-header h2 { margin: 23px 0 9px; font-size: 17px; }
body:not(.admin-mode) .detail-aside { top: 108px; gap: 14px; border-left: 1px solid var(--border); }
body:not(.admin-mode) .detail-aside h3 { font-size: 18px; }
body:not(.admin-mode) .detail-aside .button, body:not(.admin-mode) .detail-aside > button { width: 100%; }
body:not(.admin-mode) .detail-aside > button[data-action="favorite"] { background: var(--primary-light); color: var(--primary); border-color: transparent; }
body:not(.admin-mode) .detail-aside > p:last-of-type { padding-top: 4px; }
body:not(.admin-mode) .detail-aside dl { gap: 10px; }
body:not(.admin-mode) .detail-page > .section { margin-top: 33px; }
body:not(.admin-mode) .page-content { margin-top: 43px; overflow: hidden; padding: 0; border: 1px solid var(--border); border-radius: 19px; background: var(--bg-card); box-shadow: var(--shadow); }
.content-page-heading { padding: 30px 39px 24px; border-bottom: 1px solid var(--border); background: linear-gradient(120deg, var(--bg-card), var(--primary-light)); }
.content-page-heading .eyebrow { display: inline-block; margin-bottom: 11px; }
body:not(.admin-mode) .page-content h1 { margin: 0; padding: 0; border: 0; font-size: 33px; }
.content-heading-caption { margin: 7px 0 0 !important; color: var(--text-muted) !important; font-size: 12px; }
.content-prose { max-width: 760px; padding: 22px 39px 36px; }
body:not(.admin-mode) .content-prose h2 { margin-top: 28px; padding-top: 17px; border-top: 1px solid var(--border); font-size: 17px; letter-spacing: -.02em; }
body:not(.admin-mode) .content-prose h3 { margin-top: 17px; font-size: 14px; }
body:not(.admin-mode) .content-prose p { font-size: 13px; line-height: 1.9; }
body:not(.admin-mode) .content-prose form { margin: 19px 0; }
body:not(.admin-mode) .content-prose #submissionForm { padding: 21px; border: 1px solid var(--border); border-radius: 13px; background: var(--bg); }
body:not(.admin-mode) .stack-form { display: grid; gap: 20px; }
body:not(.admin-mode) .stack-form > .section-heading { justify-content: start; margin: 0; }
body:not(.admin-mode) .stack-form fieldset { padding: 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); }
body:not(.admin-mode) .stack-form legend { padding: 0 6px; font-size: 12px; }
body:not(.admin-mode) .submission-submit { gap: 12px; padding-top: 4px; }
body:not(.admin-mode) .submission-lookup { padding: 18px 20px; border: 1px solid var(--border); border-radius: 13px; background: var(--bg); }
body:not(.admin-mode) #siteFooter { margin-top: 58px; padding-block: 31px 24px; background: color-mix(in srgb, var(--bg-card) 80%, transparent); backdrop-filter: blur(10px); }
body:not(.admin-mode) .footer-top nav { gap: 11px 19px; }
body:not(.admin-mode) .footer-bottom { gap: 12px 24px; }
body:not(.admin-mode) .footer-bottom p { line-height: 1.7; }
body:not(.admin-mode) #main-content > .container > .empty { margin-top: 38px; border: 1px solid var(--border); background: var(--bg-card); }
body:not(.admin-mode) .pagination button[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
body:not(.admin-mode) :is(.section-heading, .card-actions, .list-toolbar, .detail-layout, .form-grid) { min-width: 0; }
@media (max-width: 1100px) {
  .discovery-layout { gap: 22px; }
  .category-nav-inner { gap: 23px; }
  body:not(.admin-mode) .header-inner { gap: 22px; }
  body:not(.admin-mode) .directory-sections .resource-grid, body:not(.admin-mode) .list-content .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .discovery-layout { grid-template-columns: minmax(0, 1fr); }
  .directory-page .discovery-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .discovery-submit { grid-column: 1 / -1; }
  body:not(.admin-mode) .detail-layout { grid-template-columns: minmax(0, 1fr); }
  body:not(.admin-mode) .detail-aside { position: static; border-left: 1px solid var(--border); }
  body:not(.admin-mode) .directory-intro { padding-top: 48px; }
  body:not(.admin-mode) .header-inner { flex-wrap: wrap; }
  body:not(.admin-mode) .brand { margin-right: auto; }
  body:not(.admin-mode) .global-search { order: 3; flex-basis: 100%; max-width: none; }
  body:not(.admin-mode) .header-actions { margin-left: 0; }
}
@media (max-width: 640px) {
  body:not(.admin-mode) .container, body:not(.admin-mode) .header-inner, body:not(.admin-mode) .category-nav { width: calc(100% - 32px); }
  body:not(.admin-mode) .header-inner { min-height: 60px; padding: 10px 0 8px; gap: 9px; }
  body:not(.admin-mode) .brand { gap: 9px; font-size: 17px; }
  body:not(.admin-mode) .brand-icon { width: 34px; height: 34px; border-radius: 10px; }
  body:not(.admin-mode) .brand small { font-size: 8px; }
  body:not(.admin-mode) .header-actions { gap: 7px; }
  body:not(.admin-mode) .header-actions > a:not(.header-submit) { width: 38px; min-width: 38px; justify-content: center; padding: 0; }
  body:not(.admin-mode) .header-actions > a:not(.header-submit) > span:not(.ui-icon) { display: none; }
  body:not(.admin-mode) .header-submit { width: 39px; min-width: 39px; justify-content: center; padding: 0; font-size: 0; }
  body:not(.admin-mode) .header-submit .ui-icon { width: 18px; height: 18px; }
  body:not(.admin-mode) .header-actions > .theme-toggle { width: 37px; min-width: 37px; min-height: 37px; }
  body:not(.admin-mode) .global-search { flex-basis: 100%; min-height: 40px; padding-inline: 12px; }
  .category-nav-inner { gap: 20px; }
  body:not(.admin-mode) .category-nav a { padding-block: 9px 11px; }
  body:not(.admin-mode) .directory-intro { padding: 37px 0 27px; margin: 0; gap: 17px; }
  body:not(.admin-mode) .directory-intro h1 { font-size: clamp(36px, 9vw, 49px); }
  body:not(.admin-mode) .directory-intro p { font-size: 13px; }
  body:not(.admin-mode) .directory-total { display: none; }
  .discovery-layout { gap: 12px; }
  body:not(.admin-mode) .directory-sections .directory-section { margin-bottom: 24px; padding-top: 17px; }
  body:not(.admin-mode) .directory-section .section-heading { align-items: start; gap: 8px; }
  body:not(.admin-mode) .directory-section h2 { font-size: 17px; }
  body:not(.admin-mode) .directory-sections .resource-grid, body:not(.admin-mode) .list-content .resource-grid { grid-template-columns: 1fr; gap: 11px; }
  body:not(.admin-mode) .directory-card { min-height: 188px; border-radius: 14px; }
  body:not(.admin-mode) .directory-card .card-body { padding: 16px 16px 13px; }
  .directory-page .discovery-aside { grid-template-columns: 1fr; gap: 10px; }
  .discovery-panel, .discovery-submit { padding: 16px; border-radius: 14px; }
  .discovery-submit { grid-column: auto; }
  body:not(.admin-mode) .page-heading { align-items: start; padding: 28px 0 20px; }
  body:not(.admin-mode) .page-heading h1 { font-size: 32px; }
  .page-heading-stat { margin-top: 22px; }
  body:not(.admin-mode) .directory-list { grid-template-columns: 1fr; gap: 16px; }
  body:not(.admin-mode) .topic-sidebar { position: static; padding: 14px; }
  body:not(.admin-mode) .topic-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.admin-mode) .topic-option { align-items: start; font-size: 11px; }
  body:not(.admin-mode) .list-toolbar { gap: 8px; padding: 9px; }
  body:not(.admin-mode) .result-count { font-size: 11px; }
  body:not(.admin-mode) .detail-page { padding-top: 19px; }
  body:not(.admin-mode) .breadcrumbs { gap: 6px; margin-bottom: 15px; font-size: 10px; }
  body:not(.admin-mode) .panel { padding: 18px; border-radius: 14px; }
  body:not(.admin-mode) .detail-header { padding: 21px 18px; }
  body:not(.admin-mode) .detail-header h1 { font-size: 32px; }
  body:not(.admin-mode) .detail-aside { gap: 12px; }
  .detail-heading-meta .license-badge { max-width: 55%; text-align: right; }
  body:not(.admin-mode) .page-content { margin-top: 22px; border-radius: 15px; }
  .content-page-heading { padding: 23px 20px 19px; }
  body:not(.admin-mode) .page-content h1 { font-size: 27px; }
  .content-heading-caption { font-size: 11px; }
  .content-prose { padding: 12px 20px 24px; }
  body:not(.admin-mode) .content-prose #submissionForm { padding: 14px; }
  body:not(.admin-mode) .form-grid { grid-template-columns: 1fr; gap: 13px; }
  body:not(.admin-mode) .form-grid .full { grid-column: auto; }
  body:not(.admin-mode) #siteFooter { margin-top: 35px; padding-block: 25px 18px; }
  body:not(.admin-mode) .footer-top { gap: 18px; padding-bottom: 18px; }
  body:not(.admin-mode) .footer-top nav { gap: 10px 14px; font-size: 11px; }
  body:not(.admin-mode) .footer-bottom { padding-top: 15px; font-size: 10px; }
  body:not(.admin-mode) .empty { padding: 41px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.admin-mode) *, body:not(.admin-mode) *::before, body:not(.admin-mode) *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
/* Admin workspace surfaces share the same restrained, polished visual language. */
.admin-mode { --primary: #5457da; --primary-light: #eff0ff; --border: #e7e9f0; --bg-secondary: #f7f8fc; }
.admin-mode .admin-workarea { background: radial-gradient(ellipse at 75% 0%, #f5f5fc 0, transparent 38rem), #fff; }
.admin-mode.dark-theme .admin-workarea { background: #fff; }
.admin-mode .admin-page-heading { padding-block: 30px 25px; }
.admin-mode .admin-eyebrow { color: #7778bd; }
.admin-mode .admin-page-heading h1 { letter-spacing: -.04em; }
.admin-mode .admin-content { border-color: var(--border); box-shadow: 0 8px 35px rgb(26 33 58 / 5%); }
.admin-mode .admin-page-heading > p:last-child { max-width: 640px; }
.admin-mode .admin-resource-summary > div, .admin-mode .stat-grid .panel { border-color: var(--border); background: linear-gradient(145deg, #f7f7ff, #fff 77%); }
.admin-mode .admin-resource-summary strong, .admin-mode .stat-grid strong { color: var(--primary); font-variant-numeric: tabular-nums; }
.admin-mode .admin-list-toolbar { background: #f8f8fc; border-color: var(--border); }
.admin-mode .table-wrap, .admin-mode .admin-queue-card, .admin-mode .admin-runtime-grid, .admin-mode .admin-config-section, .admin-mode .admin-content[data-section="licenses"] > article { border-color: var(--border); }
.admin-mode th { background: #f7f8fc !important; }
.admin-mode tbody tr:hover { background: #f9f9ff; }
.admin-mode .admin-config-section { background: linear-gradient(160deg, #fafaff, #fff); }
.admin-mode .admin-save-bar { background: rgb(255 255 255 / 94%); backdrop-filter: blur(12px); }
.admin-mode .admin-login-page { background: radial-gradient(ellipse at 15% 15%, #eeeefe 0, transparent 55%), radial-gradient(ellipse at 90% 90%, #f6f6fb 0, transparent 45%), #fafaff; }
.admin-mode .admin-login-card { border-color: var(--border); box-shadow: 0 24px 80px rgb(37 39 99 / 10%); }
.admin-mode .admin-login-card .login-mark { background: linear-gradient(135deg, #7778ee, #4e4fd1); color: #fff; }
.admin-mode .admin-sidebar .admin-nav-group a[aria-current="page"] { background: linear-gradient(100deg, rgb(129 140 248 / 22%), rgb(129 140 248 / 8%)); }
.admin-mode .admin-sidebar .admin-nav-group a[aria-current="page"]::before { display: block; }
.admin-mode .admin-sidebar .admin-nav-group a[aria-current="page"] .admin-nav-dot { color: #c4bfff; }
.admin-mode .admin-sidebar .admin-live-dot { background: #a5b4fc; }
@media (max-width: 900px) {
  .admin-mode .admin-sidebar { box-shadow: 20px 0 45px rgb(10 14 24 / 20%); }
}
@media (max-width: 640px) {
  body:not(.admin-mode) .page-heading-stat { padding-left: 11px; }
  body:not(.admin-mode) .discovery-panel .pick-list a { padding-block: 8px; }
  body:not(.admin-mode) .detail-page > .section { margin-top: 24px; }
}

/* Frosted surfaces keep an opaque fallback when backdrop filters are unavailable. */
body:not(.admin-mode) :is(.panel, .page-content, .topic-sidebar, .discovery-panel, .discovery-submit, .openverse, dialog) {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: var(--glass-shadow);
}
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  body:not(.admin-mode) :is(.panel, .page-content, .topic-sidebar, .discovery-panel, .discovery-submit, .openverse, dialog) {
    background: var(--glass);
    border-color: var(--glass-border);
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
  }
}
body:not(.admin-mode) .header-inner { padding-inline: 0; }
body:not(.admin-mode) .category-nav { padding-inline: 0; }
body:not(.admin-mode) .category-nav a { border-bottom: 0; }
body:not(.admin-mode) .directory-intro {
  isolation: isolate;
  overflow: hidden;
  min-height: 326px;
  margin: 28px 0 30px;
  padding: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: radial-gradient(ellipse at 90% 90%, #e6a8d2 0, transparent 52%), radial-gradient(ellipse at 75% 0%, #beb5ff 0, transparent 50%), linear-gradient(115deg, #29245e, #5340af 65%, #7862cc);
  box-shadow: 0 18px 48px rgb(77 52 146 / 17%), inset 0 1px 0 rgb(255 255 255 / 22%);
  color: #fff;
}
.directory-intro::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .2; background-image: radial-gradient(rgb(255 255 255 / 65%) .7px, transparent .7px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); }
body:not(.admin-mode) .directory-intro h1 span { background-image: linear-gradient(100deg, #bbf9d5, #e7edaf 60%, #ffe1ab); }
body:not(.admin-mode) .directory-intro .directory-kicker { color: #fff; border-color: rgb(255 255 255 / 20%); background: rgb(255 255 255 / 10%); }
body:not(.admin-mode) .directory-intro p, .directory-intro .intro-actions > span { color: #e2def6; }
.directory-intro .kicker-dot { background: #bcf6c9; box-shadow: 0 0 0 4px rgb(188 246 201 / 12%); }
body:not(.admin-mode) .directory-intro .intro-actions .button.primary { background: #d7f9a8; border-color: #d7f9a8; color: #263826; box-shadow: 0 6px 22px rgb(10 10 40 / 16%); }
body:not(.admin-mode) .directory-intro .intro-actions .button.primary:hover { background: #e5ffc2; border-color: #e5ffc2; color: #263826; transform: translateY(-2px); }
.intro-copy { position: relative; z-index: 2; min-width: 0; max-width: 68%; }
body:not(.admin-mode) .directory-intro h1 { font-size: clamp(34px, 3.45vw, 48px); line-height: 1.3; letter-spacing: -.055em; }
body:not(.admin-mode) .directory-intro h1 span { display: block; }
.kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 9%, transparent); }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.intro-actions .button { min-height: 44px; border-radius: 12px; padding-inline: 19px; }
.intro-actions > span { color: var(--text-muted); font-size: 12px; }
.intro-visual { position: absolute; right: 65px; top: 24px; width: 260px; height: 270px; pointer-events: none; }
.intro-orbit { position: absolute; inset: 10px -22px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 50%; transform: rotate(-25deg); }
.intro-orbit::before { content: ""; position: absolute; inset: 25px -18px; border: inherit; border-radius: inherit; transform: rotate(55deg); }
.intro-glass { position: absolute; width: 194px; height: 222px; border: 1px solid var(--glass-border); border-radius: 24px; box-shadow: 0 20px 45px rgb(77 68 157 / 12%); }
.intro-glass-back { top: 20px; right: 0; display: grid; place-items: center; background: linear-gradient(145deg, #f5bd8b, #f38dba); transform: rotate(15deg); }
.intro-glass-back > span { font-size: 120px; color: rgb(255 255 255 / 38%); }
.intro-glass-front { top: 19px; left: 8px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; background: rgb(255 255 255 / 82%); color: #30235b; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transform: rotate(-9deg); }
.intro-glass-front .eyebrow { font-size: 7px; letter-spacing: .1em; }
.intro-symbol { color: var(--primary); font-size: 52px; line-height: 1.4; }
.intro-glass-front strong { font-size: 21px; line-height: 1.55; letter-spacing: -.04em; }
.intro-visual-caption { margin-top: auto; color: var(--text-muted); font-size: 7px; letter-spacing: .08em; }
.intro-floating { position: absolute; bottom: 10px; right: -20px; padding: 9px 16px; border: 1px solid var(--glass-border); border-radius: 12px; background: var(--glass); color: var(--primary); box-shadow: var(--shadow); font-size: 12px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: rotate(5deg); }
body:not(.admin-mode) .directory-total { position: absolute; right: 29px; bottom: 15px; display: block; min-width: 0; padding: 0; border: 0; color: #e9e2ff; font-size: 10px; }
body:not(.admin-mode) .directory-total strong { margin-right: 5px; color: #d7f9a8; font-size: 16px; }
body:not(.admin-mode) .directory-sections .directory-section { padding: 0; border: 0; background: transparent; }
body:not(.admin-mode) .directory-section .section-heading { margin-bottom: 18px; }
body:not(.admin-mode) .directory-card { border-color: color-mix(in srgb, var(--border) 80%, white); border-radius: 20px; box-shadow: var(--glass-shadow); background: color-mix(in srgb, var(--bg-card) 92%, transparent); }
body:not(.admin-mode) .directory-card .card-body { padding: 18px 20px 15px; }
body:not(.admin-mode) .directory-card .card-title { font-size: 17px; }
body:not(.admin-mode) .directory-card .card-desc { font-size: 13px; line-height: 1.8; min-height: 47px; }
body:not(.admin-mode) .directory-card .card-foot { margin-top: auto; }
body:not(.admin-mode) .directory-card .favorite { min-width: 40px; min-height: 40px; flex-basis: 40px; }
body:not(.admin-mode) .page-heading { padding-block: 34px 28px; }
body:not(.admin-mode) .directory-list { align-items: start; }
body:not(.admin-mode) .topic-sidebar { max-height: calc(100dvh - 162px); overflow-y: auto; scrollbar-width: thin; }
body:not(.admin-mode) .topic-option { min-height: 42px; }
body:not(.admin-mode) .page-content { max-width: 980px; border-radius: 24px; }
.content-page-heading { padding: 34px 40px 28px; background: linear-gradient(120deg, transparent, var(--primary-light)); }
.content-prose { max-width: none; padding: 24px 40px 40px; }
body:not(.admin-mode) .content-prose p { font-size: 14px; line-height: 1.95; }
body:not(.admin-mode) .content-prose :is(#submissionForm, .submission-lookup) { background: color-mix(in srgb, var(--bg-card) 62%, transparent); }
body:not(.admin-mode) .content-prose .submission-lookup + .submission-lookup { margin-top: 18px; }
body:not(.admin-mode) .detail-aside { top: 142px; }
body:not(.admin-mode) .detail-heading-meta { flex-wrap: wrap; }
body:not(.admin-mode) .detail-heading-meta .license-badge { max-width: 100%; white-space: normal; }
body:not(.admin-mode) :is(.page-heading h1, .detail-header h1, .page-content h1, .footer-top strong) { overflow-wrap: anywhere; }
body:not(.admin-mode) :is(button, .button, .topic-option, .category-nav a) { touch-action: manipulation; }
body:not(.admin-mode) .global-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
body:not(.admin-mode) .global-search input:focus { box-shadow: none; }
.admin-mode .admin-workarea { background: radial-gradient(ellipse at 90% 0%, #eaeafb, transparent 42rem), #f5f6fb; }
.admin-mode .admin-workspace-header { background: rgb(245 246 251 / 84%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.admin-mode .admin-content, .admin-mode .admin-login-card { background: rgb(255 255 255 / 86%); border-color: rgb(255 255 255 / 90%); box-shadow: 0 12px 40px rgb(39 43 88 / 6%); }
.admin-mode .admin-login-card { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.admin-mode .admin-save-bar { -webkit-backdrop-filter: blur(12px); }
body:not(.admin-mode) .brand-icon { background: linear-gradient(135deg, #9164fa, #5d3ce0); color: #fff; }
body:not(.admin-mode) .header-submit { background: var(--primary); color: var(--on-primary); border: 1px solid transparent; }
body:not(.admin-mode) .header-submit:hover { background: var(--primary-hover); color: var(--on-primary); }
body:not(.admin-mode) .category-nav a { padding-inline: 12px; margin-block: 5px; border-radius: 10px; transition: background .2s, color .2s; }
body:not(.admin-mode) .category-nav a.active { background: var(--primary-light); }
body:not(.admin-mode) .category-nav a.active::after { display: none; }
.category-nav-inner { gap: 9px; }
body:not(.admin-mode) .directory-card { --card-accent: #7750d8; --card-tint: #f0eaff; }
body:not(.admin-mode) .directory-card[data-tone="1"] { --card-accent: #197e67; --card-tint: #e0f5e9; }
body:not(.admin-mode) .directory-card[data-tone="2"] { --card-accent: #a66320; --card-tint: #fff0db; }
body:not(.admin-mode) .directory-card[data-tone="3"] { --card-accent: #327bc0; --card-tint: #e5f0ff; }
body:not(.admin-mode) .resource-preview { background: radial-gradient(circle at 12% 15%, #f9c8de, transparent 55%), linear-gradient(125deg, #d1bafb, #e9d9ff 60%, #bfbaf6); }
body:not(.admin-mode) .resource-preview[data-tone="1"] { background: radial-gradient(circle at 10% 15%, #eef6b5, transparent 55%), linear-gradient(125deg, #a9dfd2, #c6efdf 60%, #a5d8d4); }
body:not(.admin-mode) .resource-preview[data-tone="2"] { background: radial-gradient(circle at 10% 15%, #fff0bd, transparent 55%), linear-gradient(125deg, #f2bd98, #f9dfb3 60%, #f1c9b9); }
body:not(.admin-mode) .resource-preview[data-tone="3"] { background: radial-gradient(circle at 10% 15%, #caeefa, transparent 55%), linear-gradient(125deg, #a8c8f1, #d3ddff 60%, #b3b9f1); }
body.dark-theme:not(.admin-mode) .resource-preview { background: radial-gradient(ellipse at 10% 10%, color-mix(in srgb, var(--card-accent) 60%, #202234), transparent 90%), #202234; }
body:not(.admin-mode) .directory-card .card-category { color: var(--card-accent); }
body:not(.admin-mode) .directory-card .card-tag { color: var(--card-accent); background: var(--card-tint); }
body.dark-theme:not(.admin-mode) .directory-card .card-category { color: color-mix(in srgb, var(--card-accent) 50%, white); }
body:not(.admin-mode) .directory-card:hover { border-color: color-mix(in srgb, var(--card-accent) 45%, var(--border)); box-shadow: 0 14px 32px color-mix(in srgb, var(--card-accent) 15%, transparent); }
body:not(.admin-mode) .directory-section h2 { display: flex; align-items: center; gap: 10px; }
.directory-section h2::before { content: ""; width: 6px; height: 22px; border-radius: 4px; background: #8c65e7; }
.directory-section:nth-child(4n + 2) h2::before { background: #39ac8b; }
.directory-section:nth-child(4n + 3) h2::before { background: #e4a453; }
.directory-section:nth-child(4n + 4) h2::before { background: #5b9bdf; }
body:not(.admin-mode) .page-heading { position: relative; }
body:not(.admin-mode) .page-heading::after { content: "✳"; margin-left: auto; color: var(--primary); opacity: .16; font-size: 85px; line-height: 1; pointer-events: none; }
.content-page-heading { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 90% 20%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 65%), linear-gradient(110deg, transparent, var(--primary-light)); }
.content-page-heading::after { content: "✳"; position: absolute; right: 36px; top: -36px; z-index: -1; color: var(--primary); opacity: .1; font-size: 200px; line-height: 1.5; transform: rotate(-15deg); }
body:not(.admin-mode) .discovery-submit { background: linear-gradient(140deg, var(--primary-light), color-mix(in srgb, #c4f4cc 28%, var(--bg-card))); }
body:not(.admin-mode) .submit-spark { background: #d7f9a8; color: #38602a; transform: rotate(-8deg); }
body:not(.admin-mode) .detail-header::before { height: 4px; background: linear-gradient(90deg, #8c65e7, #f0a9c4, #e8be70, #75cdb2); }
.intro-glass-front .intro-symbol { color: #6745eb; }
.intro-glass-front .eyebrow { color: #6745eb; }
.intro-glass-front .intro-visual-caption { color: #696079; }
@media (prefers-reduced-motion: no-preference) {
  .intro-glass-front { animation: inspiration-float 6s ease-in-out infinite; }
  .intro-floating { animation: inspiration-tag 7s ease-in-out infinite; }
  body:not(.admin-mode) :is(.page-content, .page-heading, .directory-intro, .detail-header) { animation: surface-enter .45s ease-out both; }
  @media (hover: hover) {
    .directory-card:hover .preview-browser { transform: translateY(3px) rotate(-1deg); }
    .preview-browser { transition: transform .3s ease; }
    .intro-actions .button:hover .ui-icon { transform: translateX(3px); }
    .intro-actions .ui-icon { transition: transform .2s ease; }
  }
}
@keyframes inspiration-float { 0%, 100% { transform: translateY(0) rotate(-9deg); } 50% { transform: translateY(-9px) rotate(-6deg); } }
@keyframes inspiration-tag { 0%, 100% { transform: translateY(0) rotate(5deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
@keyframes surface-enter { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 1101px) and (max-width: 1400px) {
  body:not(.admin-mode) .list-content .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  body:not(.admin-mode) .directory-intro { padding: 32px; }
  .intro-visual { right: 35px; transform: scale(.88); transform-origin: right center; }
  .intro-copy { max-width: 65%; }
  body:not(.admin-mode) .header-inner { gap: 18px; }
  body:not(.admin-mode) .detail-layout { gap: 20px; grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 850px) {
  body:not(.admin-mode) .header-actions { margin-left: auto; }
  body:not(.admin-mode) .detail-layout { grid-template-columns: minmax(0, 1fr); }
  body:not(.admin-mode) .detail-aside { position: static; }
  body:not(.admin-mode) .directory-list { grid-template-columns: 175px minmax(0, 1fr); gap: 18px; }
  body:not(.admin-mode) .list-content .resource-grid { grid-template-columns: minmax(0, 1fr); }
  body:not(.admin-mode) .topic-sidebar { position: static; max-height: none; }
  .intro-visual { right: 20px; opacity: .8; transform: scale(.74); }
  .intro-copy { max-width: 70%; }
}
@media (max-width: 640px) {
  body:not(.admin-mode) .header-actions { gap: 4px; }
  body:not(.admin-mode) .brand { font-size: 15px; gap: 7px; }
  body:not(.admin-mode) .brand-icon { width: 32px; height: 32px; }
  body:not(.admin-mode) .header-actions > :is(a, button) { min-width: 40px; min-height: 40px; }
  body:not(.admin-mode) .directory-intro { min-height: 0; margin: 18px 0 28px; padding: 26px 21px 38px; border-radius: 22px; }
  .intro-copy { max-width: 100%; }
  body:not(.admin-mode) .directory-intro h1 { font-size: clamp(28px, 7.4vw, 42px); line-height: 1.35; }
  body:not(.admin-mode) .directory-intro p { max-width: 29em; line-height: 1.85; }
  body:not(.admin-mode) .directory-kicker { font-size: 9px; letter-spacing: .05em; }
  .intro-visual { display: none; }
  .intro-actions { gap: 12px; margin-top: 20px; }
  .intro-actions > span { font-size: 10px; }
  body:not(.admin-mode) .directory-total { display: block; right: 21px; bottom: 9px; font-size: 9px; }
  body:not(.admin-mode) .directory-total strong { font-size: 12px; }
  body:not(.admin-mode) .directory-card { border-radius: 18px; }
  body:not(.admin-mode) .directory-card .card-body { padding: 17px 18px 13px; }
  body:not(.admin-mode) .directory-list { grid-template-columns: minmax(0, 1fr); }
  body:not(.admin-mode) .topic-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.admin-mode) .topic-option { font-size: 12px; }
  body:not(.admin-mode) .page-heading { flex-wrap: wrap; gap: 12px; }
  body:not(.admin-mode) .page-heading::after { display: none; }
  body:not(.admin-mode) .page-heading-stat { margin-top: 0; }
  body:not(.admin-mode) .list-toolbar { flex-wrap: wrap; }
  body:not(.admin-mode) .sort-control { margin-left: auto; }
  body:not(.admin-mode) input:not([type="checkbox"]):not([type="radio"]), body:not(.admin-mode) select, body:not(.admin-mode) textarea { font-size: 16px; }
  body:not(.admin-mode) .page-content { border-radius: 20px; }
  .content-page-heading { padding: 26px 21px 22px; }
  .content-prose { padding: 16px 20px 28px; }
  body:not(.admin-mode) .content-prose #submissionForm { padding: 15px; }
  body:not(.admin-mode) .inline-form { align-items: stretch; }
  body:not(.admin-mode) .inline-form button { flex: 1 0 auto; }
  body:not(.admin-mode) .footer-bottom { overflow-wrap: anywhere; }
  .admin-mode .admin-resource-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .admin-mode .admin-resource-summary > div { padding: 15px; }
  .admin-mode .admin-content { padding: 17px; }
  .admin-mode .section-heading { flex-wrap: wrap; }
  .admin-mode :is(input:not([type="checkbox"]), select, textarea) { font-size: 16px; }
}
@media (hover: none) {
  body:not(.admin-mode) .directory-card:hover { transform: none; box-shadow: var(--glass-shadow); }
  .directory-card:hover .resource-preview-image { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .admin-mode *, .admin-mode *::before, .admin-mode *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
