:root {
  color-scheme: light;
  --ink: #252c28;
  --muted: #848b83;
  --forest: #2d654d;
  --forest-dark: #244f3d;
  --sage: #eaf0e5;
  --border: #e9ece5;
  --sidebar: #f8f9f6;
  --surface: #ffffff;
  --sidebar-width: 232px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select, textarea { color: inherit; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--forest); }
button, a { touch-action: manipulation; }
img, svg { display: block; }
img { max-width: 100%; }
svg { flex-shrink: 0; }
.icon { display: inline-block; width: 18px; height: 18px; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
button svg, a svg { pointer-events: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 120; top: 10px; left: 10px; padding: 12px 16px; background: var(--forest); border-radius: 5px; color: white; transform: translateY(-160%); font-size: 12px; }
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: var(--sidebar-width); background: var(--sidebar); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 34px 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; width: fit-content; padding: 0 14px; margin-bottom: 52px; }
.brand-mark { display: grid; place-items: center; color: var(--forest); }
.brand-mark svg { width: 33px; height: 33px; }
.brand-name { display: block; font-size: 27px; font-weight: 650; letter-spacing: -1.6px; line-height: 1; }
.brand-period { color: #7e9870; }
.brand-sub { display: block; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 1.15px; text-transform: uppercase; margin-top: 5px; }
.nav-label { margin: 0 14px 13px; color: #87907f; font-size: 10px; font-weight: 650; letter-spacing: 1.6px; text-transform: uppercase; }
.nav-label:not(:first-child) { margin-top: 31px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 11px 14px; margin: 4px 0; border-radius: 7px; text-align: left; color: #747d73; background: transparent; font-size: 13px; font-weight: 500; transition: color .18s ease, background .18s ease; }
.nav-item:hover { background: #eff2eb; color: var(--forest); }
.nav-item.is-active { background: #e8eee3; color: var(--forest); font-weight: 650; }
.nav-icon, .nav-icon svg { width: 17px; height: 17px; }
.nav-icon { display: inline-flex; align-items: center; }
.nav-count { margin-left: auto; min-width: 22px; padding: 2px 5px; border-radius: 4px; color: #778371; background: #edf0e9; font-size: 10px; text-align: center; }
.nav-item.is-active .nav-count { color: var(--forest); background: #dce6d5; }
.sidebar-bottom { margin-top: auto; padding-top: 32px; }
.contribute-card { padding: 18px 15px 15px; border: 1px solid #e3e8dc; border-radius: 9px; background: linear-gradient(135deg, #f1f4e9, #f6f7f0); }
.contribute-card > svg { width: 19px; height: 19px; color: #748768; margin-bottom: 11px; }
.contribute-symbol { display: block; width: fit-content; margin-bottom: 10px; color: #84976f; font-size: 23px; line-height: 1; }
.contribute-card h3 { font-size: 13px; font-weight: 650; letter-spacing: -.2px; margin-bottom: 7px; }
.contribute-card p { font-size: 11px; line-height: 1.8; color: #828b78; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0; background: transparent; color: var(--forest); font-size: 12px; font-weight: 600; }
.text-button svg { width: 13px; height: 13px; }
.contribute-card .text-button { margin-top: 16px; }
.sidebar-foot { display: flex; align-items: center; gap: 9px; margin-top: 26px; padding: 19px 1px 23px; border-top: 1px solid var(--border); }
.avatar { height: 31px; width: 31px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 650; color: #718363; background: #e5eadb; border: 3px solid white; box-shadow: 0 0 0 1px #e4e8df; }
.profile-info { min-width: 0; }
.profile-info strong, .profile-info span { display: block; }
.profile-info strong { font-size: 11px; font-weight: 600; }
.profile-info span { font-size: 10px; color: #939a90; margin-top: 3px; }
.role-badge { margin-left: auto; padding: 4px 6px; color: #8b947f; border: 1px solid #e1e6d9; border-radius: 4px; font-size: 8px; text-transform: capitalize; }
.sidebar-foot > .status-dot { margin-left: auto; width: 5px; height: 5px; background: #9bb88b; border-radius: 50%; }
.workspace { margin-left: var(--sidebar-width); min-height: 100vh; }
.topbar { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 40px; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #8a9284; font-size: 12px; white-space: nowrap; }
.breadcrumb svg { width: 13px; height: 13px; }
.breadcrumb .current, .breadcrumb strong { color: #555e52; font-weight: 500; }
.breadcrumb .separator { color: #c8cdc3; }
.breadcrumb-divider { color: #c5ccbf; }
#breadcrumb-current { color: #6f7966; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.topbar-divider { height: 16px; width: 1px; background: var(--border); }
.role-control { display: flex; align-items: center; gap: 8px; }
.role-control-label { color: #909b82; font-size: 11px; }
.topbar-avatar { width: 27px; height: 27px; font-size: 9px; }
.language-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 5px; background: #f4f5f1; }
.language-switch > span { color: #c4ccb9; font-size: 8px; }
.language-switch button { padding: 4px 6px; border-radius: 3px; background: transparent; color: #8c9580; font-size: 10px; line-height: 1.3; }
.language-switch button.is-active { background: #fff; box-shadow: 0 1px 3px #2739210a; color: #5d6858; }
.role-select, .sort-select { appearance: none; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237c8577' stroke-width='1.4'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E") no-repeat right 11px center; border: 1px solid var(--border); border-radius: 6px; font-size: 11px; color: #6f7969; padding: 8px 28px 8px 11px; cursor: pointer; }
.auth-button { white-space: nowrap; }
.mobile-menu { display: none; }
.main-content { width: 100%; max-width: 1180px; padding: 36px 40px 26px; margin: 0 auto; }

.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr; min-height: 268px; border: 1px solid #e7eddf; border-radius: 12px; background: #f0f4e9; padding: 35px 36px; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .2; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23858d78' opacity='.13' filter='url(%23noise)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.hero-copy { position: relative; z-index: 3; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 7px; color: #6d8760; font-size: 10px; font-weight: 650; letter-spacing: 1.3px; text-transform: uppercase; }
.eyebrow svg { width: 12px; height: 12px; }
.hero-title { max-width: 480px; font-size: clamp(30px, 3vw, 44px); font-weight: 500; line-height: 1.12; letter-spacing: -1.7px; margin-top: 15px; color: #303d2d; }
.serif-word { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; color: #4d714a; letter-spacing: -.8px; }
.hero-description { max-width: 365px; margin-top: 15px; color: #7d8a70; font-size: 12px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 21px; }
.primary-button, .secondary-button, .danger-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 5px; padding: 9px 14px; font-size: 12px; font-weight: 550; line-height: 1.5; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.primary-button { background: var(--forest); border: 1px solid var(--forest); color: white; box-shadow: 0 2px 3px #2345340a; }
.primary-button:hover { background: var(--forest-dark); box-shadow: 0 3px 8px #23453420; }
.secondary-button { background: #ffffffb3; border: 1px solid #dce3d5; color: #65765b; }
.secondary-button:hover { background: #fff; border-color: #b8c9af; }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.primary-button svg, .secondary-button svg, .danger-button svg { width: 13px; height: 13px; }
.danger-button { background: #fcf0ed; border: 1px solid #eed5cf; color: #a7594b; }
.danger-button:hover { background: #f6dfd9; }
.small-button { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: transparent; color: #85907d; }
.icon-button:hover { background: #eef2e9; }
.icon-button svg { width: 17px; height: 17px; }

.hero-art { position: relative; min-width: 0; min-height: 190px; }
.hero-art::before { content: ''; position: absolute; width: 230px; height: 230px; border: 1px solid #dfe6d5; border-radius: 50%; left: 15%; top: -15px; }
.hero-art::after { content: ''; position: absolute; width: 290px; height: 290px; border: 1px solid #e4eadb; border-radius: 50%; left: 7%; top: -44px; z-index: -1; }
.art-window { position: absolute; width: 218px; height: 145px; left: 22%; top: 39px; border: 1px solid #d6ddcc; border-radius: 8px; background: #fffef8; box-shadow: 0 12px 25px #5e77520d; overflow: hidden; transform: rotate(-7deg); }
.art-window.back, .art-window:nth-child(1) { top: 17px; left: 31%; transform: rotate(8deg); background: #e4eace; border-color: #d5dec5; }
.art-window.front { top: 50px; left: 13%; transform: rotate(-8deg); }
.art-window-top { height: 27px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border-bottom: 1px solid #e8ecdf; background: #f6f7ef; font-size: 7px; color: #91a17e; }
.window-dots { display: flex; gap: 4px; }
.window-dots i, .window-dots span { display: block; width: 4px; height: 4px; border-radius: 50%; background: #cbd6b9; }
.window-dots i:first-child, .window-dots span:first-child { background: #cfaf9b; }
.window-dots i:nth-child(2), .window-dots span:nth-child(2) { background: #ded0a0; }
.art-code { padding: 16px 18px; font-family: Consolas, monospace; font-size: 9px; line-height: 1.85; color: #82936d; }
.art-code div { display: flex; gap: 8px; }
.art-code .line-number { color: #ced5c1; min-width: 12px; }
.art-code .code-purple { color: #9b87af; }
.art-code .code-green { color: #749568; }
.art-code .code-orange { color: #c39b6a; }
.art-code span { color: inherit; }
.floating-badge { position: absolute; z-index: 3; right: -3px; top: 22px; display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #fdfdf8; border: 1px solid #e3e8d7; border-radius: 7px; box-shadow: 0 5px 12px #57664a09; color: #8a987a; font-size: 8px; transform: rotate(7deg); }
.floating-badge svg { width: 13px; height: 13px; color: #90a977; }
.floating-badge.bottom { top: auto; bottom: 3px; right: 27px; transform: rotate(-4deg); }
.orbit-star { position: absolute; color: #9db089; font-family: Georgia, serif; font-size: 27px; }
.orbit-star.one { left: 8%; top: 12px; }
.orbit-star.two { right: 9px; bottom: 24px; font-size: 20px; }

.browse-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 37px 0 21px; }
.section-kicker { color: #929d85; font-size: 10px; letter-spacing: 1.5px; margin-bottom: 7px; }
.browse-header h2, .section-heading h2 { font-size: 21px; font-weight: 550; letter-spacing: -.75px; }
.resource-total { font-size: 11px; color: #919d84; padding-bottom: 3px; white-space: nowrap; }
.toolbar { display: flex; align-items: center; gap: 12px; }
.search-box { min-height: 40px; display: flex; align-items: center; gap: 10px; flex: 1; padding: 0 12px; border: 1px solid #e5e9df; border-radius: 7px; color: #9ba593; background: #fff; transition: border-color .18s, box-shadow .18s; }
.search-box:focus-within { border-color: #9fb494; box-shadow: 0 0 0 3px #eaf0e580; }
.search-box > svg { width: 15px; height: 15px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 0; font-size: 12px; color: #4c5946; }
.search-box input::placeholder { color: #a5ac9d; }
.search-box kbd { flex-shrink: 0; border: 1px solid #e7eae1; border-radius: 4px; min-width: 28px; padding: 3px 5px; background: #fafbf8; color: #abb29f; font-family: inherit; font-size: 8px; text-align: center; }
.sort-select { min-height: 40px; width: 148px; font-size: 11px; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 17px 0 23px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 31px; padding: 7px 11px; border: 1px solid #e8ebe3; border-radius: 5px; background: #fff; color: #849373; font-size: 11px; font-weight: 450; transition: all .16s ease; }
.filter-chip:hover { border-color: #bbcbb0; background: #f7f9f3; }
.filter-chip.is-active { background: #eaf0e3; border-color: #dce7d1; color: #647c51; font-weight: 600; }
.filter-chip svg { width: 11px; height: 11px; }
.filter-chip .chip-count { font-size: 8px; color: #aab49f; }
.filter-chip.is-active .chip-count { color: #829571; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 25px; color: #87927d; font-size: 11px; }
.pagination .secondary-button { min-width: 88px; justify-content: center; }
.pagination .secondary-button:disabled { cursor: not-allowed; opacity: .45; }
.submission-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.submission-overview > div { display: flex; flex-direction: column; gap: 7px; padding: 14px 15px; border: 1px solid #e7ebe1; border-radius: 7px; background: #fafbf8; color: #8d9784; font-size: 10px; }
.submission-overview strong { color: #56634f; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.submission-controls { margin-bottom: 18px; }
.submission-controls .filter-row { margin-bottom: 0; }
.submission-search { max-width: 430px; margin-bottom: 12px; }
.audit-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; color: #919d84; font-size: 10px; }
.audit-toolbar .search-box { max-width: 480px; }
.audit-list { display: grid; gap: 10px; }
.audit-entry { display: flex; align-items: flex-start; gap: 13px; padding: 15px 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.audit-entry-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid #e1e8d9; border-radius: 7px; background: #f3f6ed; color: #7e906e; }
.audit-entry-icon svg { width: 15px; height: 15px; }
.audit-entry-body { min-width: 0; flex: 1; }
.audit-entry-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.audit-entry-heading strong { color: #5f7053; font-size: 13px; font-weight: 600; }
.audit-entry-heading time { color: #9ba593; font-size: 9px; white-space: nowrap; }
.audit-entry-meta { display: grid; grid-template-columns: minmax(120px, .6fr) minmax(220px, 1.4fr) minmax(180px, 1fr); gap: 8px 16px; color: #88947f; font-size: 10px; line-height: 1.6; }
.audit-entry-meta span { min-width: 0; overflow-wrap: anywhere; }
.audit-entry-meta b { display: block; margin-bottom: 2px; color: #a0a999; font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.audit-entry-meta code { color: #7d8d72; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 8px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.resource-card { min-width: 0; overflow: hidden; border: 1px solid #e7ebe2; border-radius: 9px; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.resource-card:hover { transform: translateY(-3px); box-shadow: 0 9px 24px #364b2510; border-color: #d4dfca; }
.card-cover { position: relative; overflow: hidden; aspect-ratio: 1.92 / 1; background: #f1f3ed; border-bottom: 1px solid #e9ece4; }
.card-cover > svg, .card-cover > img, .card-cover > a, .card-cover > a > svg, .card-cover > a > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-cover-label { position: absolute; left: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #ffffff99; border-radius: 4px; padding: 4px 6px; background: #ffffffb8; backdrop-filter: blur(8px); color: #6c7960; font-size: 7px; font-weight: 500; }
.card-cover-label svg { height: 9px; width: 9px; }
.save-button { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 27px; height: 27px; padding: 0 7px; border-radius: 6px; background: #ffffffd4; color: #8d9982; border: 1px solid #ffffffd9; box-shadow: 0 1px 4px #34422a06; backdrop-filter: blur(4px); transition: background .16s, color .16s, transform .16s; }
.save-button svg { width: 13px; height: 13px; }
.save-button span { min-width: 1ch; font-size: 10px; font-weight: 700; }
.save-button:hover { color: var(--forest); background: #fff; transform: translateY(-1px); }
.save-button.is-saved, .save-button[aria-pressed='true'] { color: var(--forest); background: #e6eedf; border-color: #dbe6d2; }
.save-button.is-saved svg, .save-button[aria-pressed='true'] svg { fill: #aac09c66; }
.card-body { padding: 16px 15px 13px; }
.card-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-heading h3 { min-width: 0; font-size: 15px; font-weight: 600; letter-spacing: -.25px; line-height: 1.4; }
.resource-icon { display: grid; place-items: center; flex-shrink: 0; width: 23px; height: 23px; border: 1px solid #e7eae1; border-radius: 5px; background: #f7f9f3; color: #7b8b6b; }
.resource-icon svg { width: 14px; height: 14px; }
.card-description { min-height: 42px; font-size: 12px; color: #87917b; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-list { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 14px; min-height: 19px; }
.tag { padding: 4px 7px; border-radius: 3px; color: #839171; background: #f4f6ee; font-size: 9px; line-height: 1.4; }
.tag:nth-child(2n) { background: #f5f4ed; color: #a09a83; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 15px; padding-top: 11px; border-top: 1px solid #eef0e9; }
.tiny-avatar { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #ecf0e4; color: #839274; font-size: 6px; font-weight: 600; }
.card-link { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 500; color: #7c8e6b; }
.card-link svg { width: 11px; height: 11px; }
.card-link:hover { color: var(--forest); }
.card-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.edit-button { background: #f1f5eb; color: #728563; border: 1px solid #e3ebd9; border-radius: 4px; padding: 5px 8px; font-size: 9px; }
.edit-button:hover { background: #e3edd9; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 35px 0 17px; }
.section-heading h2 { font-size: 17px; }
.section-heading > a, .section-heading > button { color: #839571; font-size: 11px; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.tool-row { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 14px 13px; border: 1px solid #e7ebe1; border-radius: 7px; background: #fff; transition: border-color .18s, background .18s; }
.tool-row:hover { background: #fafbf7; border-color: #cad8be; }
.tool-icon { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; color: #81906f; background: #f1f4e9; border: 1px solid #e7ecdf; border-radius: 7px; font-size: 17px; }
.tool-icon svg { width: 18px; height: 18px; }
.tool-info { min-width: 0; flex: 1; }
.tool-info h3, .tool-info strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.4; }
.tool-info p, .tool-info span { display: block; margin-top: 3px; font-size: 10px; color: #95a086; line-height: 1.6; }
.tool-arrow { color: #b1bbaa; }
.tool-arrow svg, svg.tool-arrow { width: 13px; height: 13px; }
.demo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin-top: 33px; padding: 15px 10px 0; border-top: 1px solid #eef0e9; color: #97a189; font-size: 10px; line-height: 1.8; }
.demo-strip .status-dot { width: 5px; height: 5px; border-radius: 50%; background: #96aa83; }
.demo-strip a { text-decoration: underline; text-underline-offset: 3px; }

.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 4px 0 29px; }
.page-intro h1 { font-size: 30px; font-weight: 550; letter-spacing: -1px; line-height: 1.25; }
.page-intro p { margin-top: 10px; color: #95a087; font-size: 11px; line-height: 1.8; }
.page-intro .section-kicker { margin-bottom: 9px; }
.review-card { overflow: hidden; margin-bottom: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 9px; }
.review-card h3 { margin: 9px 0 8px; font-size: 17px; font-weight: 550; letter-spacing: -.4px; }
.review-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #96a087; font-size: 10px; }
.review-meta > div { display: flex; align-items: center; gap: 8px; }
.review-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.review-image { width: 150px; max-height: 94px; object-fit: cover; float: right; margin: 0 0 12px 20px; border-radius: 6px; border: 1px solid #e4e9dc; }
.review-description { font-size: 12px; line-height: 1.8; color: #929c85; }
.review-card a { color: var(--forest); font-size: 10px; word-break: break-all; }
.status-badge { display: inline-flex; align-items: center; border-radius: 4px; padding: 4px 7px; background: #f3efe0; color: #a9975d; font-size: 9px; }
.status-badge.approved { background: #eaf1e3; color: #698253; }
.status-badge.rejected { background: #f6e8e2; color: #b2846f; }
.empty-state { grid-column: 1 / -1; padding: 65px 25px; text-align: center; border: 1px dashed #dce4d3; background: #fafbf7; border-radius: 10px; color: #a3ad97; }
.empty-state > svg { width: 30px; height: 30px; margin: 0 auto 16px; color: #9aae86; }
.empty-state h2, .empty-state h3 { font-size: 18px; font-weight: 550; color: #78896a; margin-bottom: 9px; }
.empty-state p { max-width: 330px; margin: 0 auto 17px; font-size: 11px; line-height: 1.8; }

.modal { width: min(580px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid #e4eadc; border-radius: 13px; color: var(--ink); background: #fff; box-shadow: 0 30px 100px #26351a26; overflow-y: auto; }
.modal::backdrop { background: #25351c55; backdrop-filter: blur(5px); }
.modal[open] { animation: modal-enter .2s ease both; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 26px 18px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 21px; font-weight: 550; letter-spacing: -.6px; }
.modal-header p { margin-top: 5px; font-size: 10px; color: #9ba68f; line-height: 1.6; }
.modal form { padding: 23px 26px 0; }
.modal .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.full-width { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 11px; font-weight: 550; color: #6a7c5d; }
.field label span { font-weight: 400; color: #a8b09f; }
.field input, .field textarea, .field select { display: block; width: 100%; min-width: 0; min-height: 39px; border: 1px solid #e1e7d9; border-radius: 5px; padding: 10px 11px; font-size: 11px; background: #fff; color: #617255; outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder { color: #b1b9a8; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #97af87; }
.field textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.field-hint { font-size: 9px; line-height: 1.65; color: #a1ac94; }
.upload-zone { position: relative; padding: 20px 15px; border: 1px dashed #d6e1ca; border-radius: 6px; background: #fafcf7; text-align: center; }
.upload-zone input[type='file'] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-zone:focus-within { outline: 2px solid var(--forest); outline-offset: 3px; }
.upload-zone label { display: flex; align-items: center; flex-direction: column; gap: 7px; cursor: pointer; color: #82966f; font-size: 11px; }
.upload-zone label svg { width: 24px; height: 24px; margin-bottom: 2px; color: #a4b494; }
.upload-zone label span, .upload-zone p { font-size: 9px; line-height: 1.6; color: #a8b49b; }
.upload-zone .field-hint { margin-top: 5px; }
.image-preview { margin-top: 10px; overflow: hidden; border-radius: 6px; border: 1px solid #e0e7d7; }
.image-preview img { width: 100%; max-height: 180px; object-fit: cover; }
.image-preview button { display: block; width: 100%; padding: 7px; background: #f4f7ee; color: #8b9d77; font-size: 9px; }
.form-error { margin-top: 15px; padding: 10px 12px; border: 1px solid #f0d8cf; border-radius: 5px; background: #fcf2ed; color: #b47c65; font-size: 11px; line-height: 1.6; }
.form-error:empty { display: none; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding: 18px 0 23px; border-top: 1px solid var(--border); }
.toast { position: fixed; z-index: 100; bottom: 26px; right: 26px; display: flex; align-items: center; gap: 9px; max-width: min(390px, calc(100vw - 40px)); padding: 13px 17px; border: 1px solid #d8e3ce; border-radius: 8px; background: #fafff5; color: #587449; box-shadow: 0 8px 30px #22371616; font-size: 11px; line-height: 1.6; opacity: 0; transform: translateY(12px); visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; pointer-events: none; }
.toast.visible, .toast.is-visible { opacity: 1; transform: translateY(0); visibility: visible; }
.toast svg { width: 16px; height: 16px; }
.sidebar-scrim { display: none; }

/* Shared artwork wrappers keep SVG previews inside their intended surfaces. */
.cover-open { display: block; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: transparent; text-align: left; }
.cover-art, .custom-cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-art { overflow: hidden; }
.cover-art > svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.custom-cover { object-fit: cover; }
.card-cover-label { pointer-events: none; font-size: 8px; }
.card-heading { justify-content: space-between; }
.card-heading h3 button { display: block; padding: 0; font: inherit; text-align: left; color: inherit; background: transparent; }
.card-heading h3 button:hover { color: var(--forest); }
.resource-icon { width: 21px; height: 21px; background: transparent; border: 0; color: #9ba68f; }
.edit-button { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; }
.edit-button .icon { width: 12px; height: 12px; }
.category-tag { background: #eef3e8; color: #798e67; }
.tiny-avatar { width: 19px; height: 19px; font-size: 8px; }
.results-count { margin-left: auto; color: #97a18b; font-size: 10px; }
.count-pill { display: inline-block; min-width: 17px; padding: 1px 4px; border-radius: 4px; font-size: 9px; line-height: 1.3; text-align: center; background: #eff3e8; color: #99a78a; }
.filter-chip.is-active .count-pill { color: #6e845e; background: #dfead5; }
.tiny-star { color: #819b6d; font-size: 16px; line-height: 1; }
.hero-note { max-width: 140px; color: #96a086; font-size: 9px; line-height: 1.6; }
.art-window.window-back { top: 6px; left: 30%; width: 235px; height: 152px; transform: rotate(8deg); background: #f7f8ed; border-color: #d9e1cd; }
.art-window.window-front { top: 107px; left: 7%; width: 243px; height: 115px; transform: rotate(-7deg); background: #fffefa; }
.art-window-top > .icon { width: 9px; height: 9px; margin-left: auto; }
.art-code .code-yellow { color: #b89c60; }
.art-code .code-pink { color: #ba8a94; }
.art-code .code-comment { color: #abb69a; }
.art-mini-content { display: flex; align-items: center; gap: 10px; padding: 14px 15px 11px; }
.art-mini-icon { width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid #e2e9d7; border-radius: 7px; background: #eff3e7; color: #8caa75; font-size: 22px; }
.art-mini-content strong { display: block; color: #71845d; font-size: 9px; font-weight: 550; }
.art-mini-content div > span { display: block; margin-top: 4px; font-size: 7px; color: #b0b7a2; }
.art-mini-tags { display: flex; gap: 5px; padding: 0 15px; }
.art-mini-tags span { background: #f4f5ec; color: #a0ad8f; padding: 3px 6px; border-radius: 3px; font-size: 6px; }
.orbit-star.star-one { left: 7%; top: 5px; }
.orbit-star.star-two { right: 8px; bottom: 0; font-size: 24px; }
.hero-art .floating-badge { right: 1%; top: 175px; transform: rotate(6deg); font-size: 8px; padding: 8px 10px; }
.floating-badge > span { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #edf3e3; }
.floating-badge > span .icon { width: 11px; height: 11px; }
.tool-row { text-align: left; }
.tool-info span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tool-icon.tone-1 { background: #f5f0e6; color: #a89a76; border-color: #ede6d8; }
.tool-icon.tone-2 { background: #eeedf6; color: #9a92b3; border-color: #e4e1ed; }
.demo-strip > span:first-child { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e6ecde; background: #fafcf6; padding: 2px 7px; border-radius: 20px; font-size: 9px; }
.footer-mark { margin-left: auto; font-family: Georgia, serif; font-style: italic; font-size: 10px; color: #a3ad96; }
.empty-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 18px; color: #9aad86; background: #f0f5e8; border: 1px solid #e2ead8; border-radius: 50%; }
.empty-icon .icon { width: 22px; height: 22px; }
.content-language-note { margin: 20px 0; font-size: 11px; line-height: 1.7; color: #9ba68f; }
.review-card { display: flex; gap: 21px; padding: 20px; }
.review-image { position: relative; width: 170px; height: 113px; max-height: none; flex-shrink: 0; float: none; margin: 0; overflow: hidden; background: #f0f4e9; }
.review-body { flex: 1; min-width: 0; }
.review-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 8px; }
.review-heading h3 { margin: 0; }
.status-badge { gap: 5px; font-size: 10px; }
.status-badge .icon { width: 12px; height: 12px; }
.status-approved { background: #eaf1e3; color: #698253; }
.status-rejected { background: #f6e8e2; color: #b2846f; }
.review-description { color: #849374; }
.review-meta { justify-content: flex-start; gap: 15px; margin-top: 12px; font-size: 10px; }
.review-meta strong { color: #849574; font-weight: 500; }
.review-actions { justify-content: space-between; gap: 12px; margin-top: 17px; }
.review-actions > div { display: flex; align-items: center; gap: 8px; }
.review-actions a { font-size: 11px; }
.review-note { padding: 10px 12px; background: #faf7ef; color: #9d9176; border-radius: 5px; font-size: 11px; line-height: 1.7; margin-top: 12px; }
.modal-intro { margin: 18px 26px 0; color: #8f9c80; font-size: 12px; line-height: 1.85; }
.modal .field label { font-size: 12px; }
.modal .field input, .modal .field select, .modal .field textarea { font-size: 12px; }
.modal .field-hint { font-size: 10px; }
.upload-zone { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; text-align: left; padding: 16px; }
.upload-icon { display: grid; place-items: center; width: 37px; height: 37px; color: #94a97f; background: #eef4e5; border-radius: 8px; }
.upload-icon .icon { width: 19px; height: 19px; }
.upload-zone > div { flex: 1; min-width: 0; }
.upload-zone label.upload-button { display: block; width: fit-content; font-size: 12px; color: var(--forest); font-weight: 550; }
.upload-zone .field-hint { display: block; margin-top: 4px; }
.upload-zone > p { width: 100%; font-size: 10px; }
.image-preview:empty { display: none; }
.image-preview .text-button { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 11px; }
.form-note { display: flex; align-items: center; gap: 7px; margin-top: 20px; padding: 11px 12px; border-radius: 6px; font-size: 10px; line-height: 1.7; background: #f6f8f0; color: #97a187; }
.form-note .icon { width: 14px; height: 14px; }
.reject-resource-title { display: block; color: #748667; font-size: 13px; font-weight: 550; margin-bottom: 21px; }
.detail-cover { position: relative; aspect-ratio: 2 / 1; overflow: hidden; margin: 22px 26px 18px; border-radius: 8px; border: 1px solid #e4eadb; background: #f0f4e9; }
.detail-status { display: flex; align-items: center; gap: 6px; margin: 0 26px 12px; color: #7d9269; font-size: 10px; }
.detail-status .icon { width: 14px; height: 14px; }
.detail-description { margin: 0 26px; color: #768b64; font-size: 13px; line-height: 1.85; }
#dialog-content > .tag-list { margin: 15px 26px; }
.detail-credit { margin: 18px 26px; color: #a0ac91; font-size: 11px; }
#dialog-content > .modal-footer { margin: 20px 26px 0; }
.account-choices { display: grid; gap: 11px; padding: 22px 26px 26px; }
.account-choice { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 13px; min-height: 68px; padding: 12px 15px; color: var(--ink); text-decoration: none; background: #fbfcf8; border: 1px solid var(--border); border-radius: 9px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.account-choice:hover { border-color: #9baa8e; transform: translateY(-1px); box-shadow: 0 8px 24px #3145260c; }
.account-choice:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.account-choice.primary-account { background: #f4f7ed; border-color: #cbd4be; }
.account-choice-icon { display: grid; place-items: center; width: 38px; height: 38px; color: #f7f8f2; background: var(--ink); border-radius: 50%; }
.account-choice-icon .icon { width: 19px; height: 19px; }
.account-choice > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.account-choice strong { overflow: hidden; font-size: 13px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.account-choice small { color: #7a8671; font-size: 10px; }
.account-choice > .icon { width: 17px; height: 17px; color: #849079; }
.account-choice-note { display: flex; align-items: flex-start; gap: 8px; margin: 4px 2px 0; color: #77816e; font-size: 10px; line-height: 1.65; }
.account-choice-note .icon { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 1px; }

@keyframes modal-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1500px) {
  .main-content { padding-top: 42px; }
  .hero { min-height: 292px; padding: 41px; }
  .hero-title { font-size: 46px; }
  .hero-art { margin-right: 20px; }
  .art-window { width: 236px; height: 157px; }
  .hero-description { font-size: 12px; }
  .card-description { font-size: 12px; min-height: 42px; }
  .card-body { padding: 18px; }
}

@media (max-width: 1100px) {
  :root { --sidebar-width: 200px; }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .brand { padding: 0 10px; }
  .topbar { padding: 0 28px; }
  .main-content { padding: 28px; }
  .hero { padding: 29px 27px; grid-template-columns: 1.2fr 1fr; min-height: 257px; }
  .hero-title { font-size: 35px; }
  .hero-description { max-width: 295px; }
  .hero-art { transform: scale(.87); transform-origin: right center; margin-left: -22px; }
  .art-window { width: 190px; }
  .floating-badge { right: -10px; }
  .resource-grid { gap: 15px; }
  .card-body { padding: 13px 12px 11px; }
  .card-description { min-height: 42px; font-size: 12px; }
  .card-heading h3 { font-size: 15px; }
  .featured-grid { gap: 9px; }
  .tool-row { padding: 11px; gap: 8px; }
}

@media (max-width: 900px) {
  .hero { display: block; min-height: 255px; padding: 30px; }
  .hero-copy { max-width: 420px; }
  .hero-art { display: none; }
  .hero-title { max-width: 400px; font-size: 39px; }
  .hero-description { max-width: 340px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
  .card-body { padding: 16px 15px 13px; }
  .card-heading h3 { font-size: 15px; }
  .card-description { font-size: 12px; }
  .featured-grid { grid-template-columns: 1fr; gap: 9px; }
  .tool-row { padding: 12px 14px; }
  .tool-info h3, .tool-info strong { font-size: 12px; }
  .tool-info p, .tool-info span { font-size: 10px; }
  .topbar-actions { gap: 11px; }
  .role-control-label { display: none; }
  .review-card { gap: 15px; }
  .review-image { width: 120px; height: 90px; }
  .review-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  .submission-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-toolbar { align-items: stretch; flex-direction: column; }
  .audit-toolbar .search-box { max-width: none; }
  .audit-entry-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .audit-entry-meta { grid-template-columns: 1fr; }
  :root { --sidebar-width: 232px; }
  .sidebar { transform: translateX(-100%); transition: transform .23s ease; padding: 29px 20px 0; box-shadow: 8px 0 35px #23301915; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-scrim { display: block; position: fixed; z-index: 25; inset: 0; background: #26321b4d; backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .23s, visibility .23s; }
  .sidebar-scrim.is-visible, .sidebar-scrim.visible { opacity: 1; visibility: visible; }
  .workspace { margin-left: 0; }
  .topbar { height: 65px; gap: 10px; padding: 0 20px; }
  .mobile-menu { display: inline-grid; width: 29px; height: 29px; padding: 5px; margin-left: -5px; }
  .mobile-menu svg { width: 19px; height: 19px; }
  .breadcrumb { margin-right: auto; gap: 7px; font-size: 10px; }
  .breadcrumb > svg, .breadcrumb .home-label { display: none; }
  .topbar-actions { gap: 8px; }
  .topbar-divider, .role-control-label, .topbar-avatar { display: none; }
  .role-select { max-width: 103px; font-size: 10px; padding: 7px 24px 7px 8px; background-position: right 7px center; }
  .language-switch button { font-size: 9px; padding: 4px 5px; }
  .main-content { padding: 20px; }
  .hero { padding: 27px 24px; min-height: 269px; border-radius: 10px; }
  .hero-title { font-size: 38px; letter-spacing: -1.4px; max-width: 370px; }
  .hero-description { font-size: 12px; max-width: 330px; }
  .hero-actions { gap: 8px; }
  .eyebrow { font-size: 9px; }
  .browse-header { margin-top: 30px; gap: 10px; }
  .browse-header h2 { font-size: 22px; }
  .resource-total { font-size: 10px; }
  .toolbar { gap: 9px; }
  .search-box { min-height: 42px; }
  .search-box input { font-size: 12px; }
  .search-box kbd { display: none; }
  .sort-select { width: 124px; min-height: 42px; font-size: 10px; }
  .filter-row { gap: 7px; margin: 15px 0 21px; }
  .filter-chip { min-height: 33px; font-size: 10px; padding: 7px 10px; }
  .resource-grid { grid-template-columns: 1fr; gap: 20px; }
  .card-cover { aspect-ratio: 2 / 1; }
  .card-body { padding: 19px; }
  .card-heading h3 { font-size: 16px; }
  .resource-icon { width: 27px; height: 27px; }
  .resource-icon svg { width: 16px; height: 16px; }
  .card-description { font-size: 12px; min-height: 42px; line-height: 1.75; }
  .tag { font-size: 10px; padding: 4px 7px; }
  .card-link { font-size: 10px; }
  .card-footer { padding-top: 13px; }
  .save-button { top: 13px; right: 13px; min-width: 31px; height: 31px; }
  .save-button svg { width: 15px; height: 15px; }
  .card-cover-label { left: 15px; bottom: 13px; font-size: 8px; padding: 5px 7px; }
  .page-intro { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 25px; }
  .page-intro h1 { font-size: 29px; }
  .review-card { padding: 17px; flex-direction: column; }
  .review-image { width: 100%; height: auto; aspect-ratio: 2 / 1; margin: 0; }
  .review-actions { justify-content: flex-start; }
  .modal { max-height: calc(100dvh - 24px); }
  .modal-header { padding: 20px; }
  .modal form { padding: 20px 20px 0; }
  .modal .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .modal .field input, .modal .field select, .modal .field textarea { font-size: 16px; }
  .modal-footer { padding-bottom: 20px; }
  .toast { right: 20px; bottom: 20px; }
  .demo-strip { margin-top: 27px; padding-top: 17px; font-size: 10px; }
  .footer-mark { width: 100%; margin-left: 0; text-align: center; }
  .modal-intro { margin-left: 20px; margin-right: 20px; }
  .account-choices { padding: 20px; }
  .detail-cover { margin-left: 20px; margin-right: 20px; }
  .detail-status, .detail-description, .detail-credit, #dialog-content > .tag-list { margin-left: 20px; margin-right: 20px; }
  #dialog-content > .modal-footer { margin-left: 20px; margin-right: 20px; flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .main-content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .breadcrumb { font-size: 9px; }
  .hero { padding: 25px 20px; }
  .hero-title { font-size: 34px; }
  .hero-description { font-size: 12px; }
  .hero-actions .primary-button, .hero-actions .secondary-button { padding-left: 10px; padding-right: 10px; font-size: 11px; }
  .sort-select { width: 110px; padding-left: 8px; font-size: 9px; }
  .review-image { float: none; width: 100%; max-height: 160px; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .resource-card:hover { transform: none; }
}

/* Keep secondary copy readable against the pale surfaces. */
.hero-description, .page-intro p, .card-description, .review-description,
.modal-intro, .detail-description { color: #697663; }
.nav-item { color: #687460; }
.section-kicker, .resource-total, .results-count, .hero-note,
.card-link, .field-hint, .content-language-note,
.contribute-card p, .tool-info span { color: #77816e; }
.tag { color: #6e7964; }
.field input::placeholder, .field textarea::placeholder,
.search-box input::placeholder { color: #88927f; }
.demo-strip, .role-control-label { color: #78836f; }
.card-heading h3, .review-heading h3, .detail-description,
.review-note { overflow-wrap: anywhere; }
