:root {
  color-scheme: light;
  --paper: #f4f6f4;
  --card: #fcfdfb;
  --ink: #1d3028;
  --green: #184c3c;
  --green-dark: #123b30;
  --muted: #5e6b61;
  --line: #dfe7e1;
  --sage: #e5eee8;
  --gold: #e9dcc0;
  --rust: #a24530;
  --shadow: 0 10px 30px #2939230a;
  --font: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --heading: 'STSong', 'Songti SC', 'Noto Serif CJK SC', 'SimSun', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 300px; scroll-padding-top: 95px; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font: 15px/1.65 var(--font); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .52; cursor: not-allowed; }
:focus-visible { outline: 3px solid #b66d3e; outline-offset: 3px; }
main:focus { outline: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { letter-spacing: -.015em; line-height: 1.25; }
h1 { font-family: var(--heading); font-size: clamp(32px, 5vw, 54px); }
h2 { font-size: clamp(22px, 3vw, 29px); }
h3 { line-height: 1.35; font-size: 18px; }
img, video { display: block; max-width: 100%; }
audio { display: block; width: 100%; }
.icon { flex: 0 0 auto; vertical-align: middle; }
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
#main { min-height: 66vh; padding-block: 28px 72px; }
#header { position: sticky; top: 0; z-index: 10; background: #fcfdfbf0; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: minmax(152px,1fr) auto minmax(152px,1fr); align-items: center; min-height: 73px; gap: 16px; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 10px; font-size: 23px; font-weight: 760; letter-spacing: .04em; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #eaf0ec; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.desktop-nav, .header-account { display: flex; align-items: center; gap: 6px; }
.header-account { justify-content: flex-end; }
.nav-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 10px; color: var(--muted); white-space: nowrap; font-weight: 610; }
.nav-link .icon { width: 17px; height: 17px; }
.nav-link:hover, .nav-link.current { background: var(--sage); color: var(--green); }
.account-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; max-width: 145px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); white-space: nowrap; font-weight: 630; }
.account-button span { overflow: hidden; text-overflow: ellipsis; }
.account-button .icon { width: 18px; height: 18px; }
.account-button:hover, .btn-outline:hover { background: var(--sage); border-color: #b9cfbd; }
.ops-link { color: var(--green); font-size: 13px; white-space: nowrap; margin-right: 5px; }
#mobile-nav { display: none; }
#footer { border-top: 1px solid var(--line); color: var(--muted); background: #edf1ed; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 18px; font-size: 13px; }
.footer-inner .brand { color: var(--green); font-size: 17px; }
.footer-inner .brand-mark { width: 31px; height: 31px; }
.footer-inner > a:last-child { color: var(--green); white-space: nowrap; }
.footer-inner > a:last-child .icon { width: 15px; }
.skip-link, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { z-index: 20; inset: 8px auto auto 8px; width: auto; height: auto; padding: 10px; clip-path: none; background: var(--card); }
.card { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.btn, .text-link, .back-link, .text-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; }
.btn { min-height: 43px; padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; text-align: center; line-height: 1.35; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { color: #fffdf7; background: var(--green); border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline, .btn-secondary { color: var(--green); background: var(--card); border-color: #cdd9cc; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--sage); }
.btn-danger { background: #fff3ed; border-color: #e9c5b8; color: #963c29; }
.btn-danger:hover { background: #fbe5db; }
.btn-small, .btn-sm { padding: 6px 11px; min-height: 34px; font-size: 13px; }
.btn-gold { background: var(--gold); color: #213b2d; }
.btn-gold:hover { background: #f0e6d1; }
.btn-glass { color: #fff8e8; background: #214c42ae; border-color: #d9e9d179; }
.btn-glass:hover { background: #335c4e; }
.btn-liked { background: #f7e9e2; border-color: #e7c7b8; color: var(--rust); }
.btn-liked .icon { fill: currentColor; }
.text-link, .text-button, .back-link { color: var(--green); }
.text-link, .back-link { width: fit-content; }
.text-link:hover, .text-button:hover, .back-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.text-button, .icon-button { border: 0; background: transparent; padding: 6px 0; }
.icon-button { padding: 8px; border-radius: 9px; }
.icon-button:hover { background: var(--sage); }
.back-link { margin-bottom: 15px; font-size: 13px; }
.back-link .icon, .text-link .icon { width: 16px; height: 16px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.split { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.stack { display: grid; gap: 15px; align-content: start; }
.align-start { justify-self: start; }
.muted { color: var(--muted); }
.eyebrow, .card-kicker { color: var(--green); font-size: 13px; font-weight: 720; letter-spacing: .095em; }
.pill { display: inline-flex; align-items: center; width: fit-content; gap: 5px; border-radius: 999px; padding: 4px 9px; background: var(--sage); color: var(--green); font-size: 12px; font-weight: 650; white-space: nowrap; }
.pill.status-pending, .pill-pending, .pill-amber { color: #765415; background: #fbefcd; }
.pill.status-rejected, .pill.status-removed, .pill-red { color: #983f2f; background: #fae9e3; }
.pill.status-draft, .pill-neutral { color: #535e55; background: #ebeee7; }
.page-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin: 3px 0 23px; }
.page-head:has(> h1) { display: grid; justify-content: start; gap: 7px; }
.page-head p { color: var(--muted); margin-top: 3px; }
.page-head .eyebrow { display: block; margin-bottom: 7px; }
.page-lede { max-width: 70ch; color: var(--muted); margin-top: 7px; }
.inset, .notice { border-radius: 12px; background: #edf1e6; border: 1px solid #dce5d7; padding: 13px 16px; color: #3d5344; }
.notice { background: #fff1d9; border-color: #eed6a8; color: #745321; }
.loading, .empty-state { padding: 48px 22px; text-align: center; margin: 20px 0; }
.empty-state { display: grid; justify-items: center; gap: 12px; }
.empty-state h1 { font-size: clamp(26px,5vw,38px); }
.empty-state p { color: var(--muted); }
.field { display: grid; gap: 6px; align-content: start; color: #344d40; font-weight: 650; min-width: 0; }
.field small, .field-hint { color: var(--muted); font-weight: 400; }
input:not([type=checkbox], [type=radio], [type=file]), select, textarea { width: 100%; border: 1px solid #d0d8cb; border-radius: 9px; padding: 9px 11px; color: var(--ink); background: #fffffb; min-height: 42px; }
textarea { min-height: 74px; resize: vertical; }
input[type=checkbox] { accent-color: var(--green); width: 17px; height: 17px; flex: 0 0 auto; }
.check-field, .checkbox-field { display: flex; align-items: flex-start; gap: 7px; }
.form-grid, .content-grid { display: grid; gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-grid .form-wide, .form-grid .span-2, .form-grid .full-width { grid-column: 1 / -1; }
.form-error { color: var(--rust); font-weight: 650; }
.form-error:empty { display: none; }
.prose { white-space: pre-line; overflow-wrap: anywhere; color: #344c40; line-height: 1.95; }
.round-icon, .empty-state-mark, .login-prompt-mark, .dropzone-icon, .quick-card-icon, .certificate-mark, .registration-icon { display: inline-grid; place-items: center; flex: 0 0 auto; color: var(--green); background: var(--sage); width: 44px; height: 44px; border-radius: 12px; }
.hero { min-height: 388px; border-radius: 26px; overflow: hidden; display: flex; align-items: center; position: relative; color: #f4f6ef;
  background: linear-gradient(90deg,#122f2cee 1%,#143c35b8 36%,#143c3524 69%,transparent 100%), url('/assets/hero.webp') center 53% / cover no-repeat, #194838; }
.hero-copy { position: relative; padding: 45px 58px 50px; max-width: 620px; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; color: #e4e8d9; letter-spacing: .12em; font-size: 14px; margin-bottom: 16px; }
.hero .eyebrow span { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.hero h1 { font-size: clamp(47px, 6.5vw, 78px); font-weight: 800; line-height: 1.06; letter-spacing: .025em; text-shadow: 0 3px 16px #183b3350; }
.hero-description { margin: 19px 0 23px; color: #eaf0de; font-size: 16px; }
.hero-actions { gap: 11px; }
.home-section { margin-top: 34px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 15px; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.section-head > a { white-space: nowrap; padding-bottom: 2px; font-size: 14px; }
.ethnicity-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 13px; }
.ethnicity-card { position: relative; display: flex; align-items: flex-end; min-height: 145px; aspect-ratio: 1.1; overflow: hidden; border-radius: 15px; isolation: isolate; color: #fff8ea; background: var(--green); }
.ethnicity-card img, .ethnicity-card::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.ethnicity-card img { object-fit: cover; z-index: -2; transition: transform .25s ease; }
.ethnicity-card::after { content: ''; z-index: -1; background: linear-gradient(180deg, transparent 20%, #182a2377 56%, #14271ff2 100%); }
.ethnicity-card:hover img { transform: scale(1.05); }
.ethnicity-copy { padding: 11px 13px; display: grid; gap: 0; }
.ethnicity-copy strong { font-size: 18px; }
.ethnicity-copy small { color: #fbefda; font-size: 12px; }
.ethnicity-card > .icon { margin: 0 10px 17px auto; width: 16px; height: 16px; opacity: .85; }
.story-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.story-card { padding: 0; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.story-card:hover { box-shadow: 0 9px 22px #1c36241b; border-color: #b9cbbb; }
.story-card > img { width: 100%; aspect-ratio: 2.05; object-fit: cover; }
.story-card-body { padding: 15px 18px 17px; display: grid; gap: 5px; }
.story-card-body p { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-card-link { color: var(--green); font-weight: 650; margin-top: 7px; font-size: 13px; }
.story-card-link .icon { margin-left: 3px; width: 16px; height: 16px; }
.event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.event-card { display: flex; align-items: center; gap: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 9px 15px 9px 9px; }
.event-card:hover { border-color: #aac4b4; }
.event-card img { width: 98px; height: 72px; object-fit: cover; border-radius: 10px; }
.event-card span { display: grid; gap: 3px; }
.event-card small { color: var(--muted); }
.event-card > .icon { margin-left: auto; color: var(--green); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filter-chip, .section-tab { background: var(--card); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; color: var(--muted); font-weight: 640; white-space: nowrap; }
.filter-chip.active, .filter-chip:hover, .section-tab.active, .section-tab.is-active, .section-tab[aria-current], .section-tab:hover { background: var(--sage); color: var(--green); border-color: #bad0bf; }
.pagination { justify-content: center; margin: 24px 0; }
.story-detail, .detail-hero { display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; }
.story-detail-copy, .detail-hero-copy { padding: 31px 35px; align-self: center; }
.story-detail-copy h1, .detail-hero-copy h1 { margin: 9px 0 10px; }
.story-detail-copy p, .detail-hero-copy p { color: var(--muted); margin-bottom: 15px; }
.story-detail > img, .detail-hero > img { width: 100%; height: 100%; min-height: 215px; max-height: 380px; object-fit: cover; }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 17px; margin-top: 17px; align-items: start; }
.story-article h2 { margin-bottom: 12px; font-size: 21px; }
.mini-work-list { display: grid; }
.mini-work-list a, .ranking-list a { display: flex; align-items: center; gap: 13px; padding: 11px 0; }
.mini-work-list a + a, .ranking-list a + a { border-top: 1px solid var(--line); }
.mini-work-list a > span:nth-child(2), .ranking-name { display: grid; flex: 1; overflow-wrap: anywhere; }
.mini-work-list a small, .ranking-name small { color: var(--muted); }
.mini-work-list a:hover strong, .ranking-list a:hover strong { color: var(--green); text-decoration: underline; }
.submit-grid { margin-top: 0; }
.upload-zone, .dropzone { border: 1px dashed #9fbaa8; border-radius: 14px; background: #f0f4eb; padding: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.upload-zone > div { flex: 1; min-width: 170px; }
.upload-zone p, .form-note { font-size: 13px; }
.upload-feedback { color: var(--green); font-size: 13px; overflow-wrap: anywhere; }
.upload-feedback:empty { display: none; }
.file-button { position: relative; overflow: hidden; cursor: pointer; }
.file-button input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.file-button:focus-within { outline: 3px solid #b66d3e; outline-offset: 3px; }
.upload-progress, progress { width: 100%; accent-color: var(--green); }
.mix-button { justify-self: start; }
.work-media { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.work-media img, .work-media video { max-height: 420px; border-radius: 12px; object-fit: contain; }
.work-audio { display: grid; grid-template-columns: 1fr auto; width: 100%; gap: 10px; align-items: center; }
.report summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.report summary .icon { width: 16px; height: 16px; }
.report form { margin-top: 8px; }
.report input { flex: 1; }
.history { margin-top: 17px; }
.history ul { margin: 0; padding-left: 18px; }
.history li { padding: 4px; }
.history li span { color: var(--muted); margin-left: 10px; font-size: 13px; }
.rank-hero { display: flex; align-items: center; gap: 20px; padding: 24px 28px; border-radius: 20px; background: var(--green); color: #f4f6ef; margin-bottom: 17px; }
.rank-hero .round-icon { width: 65px; height: 65px; color: #f5ce80; background: #ffffff20; }
.rank-hero .round-icon .icon { width: 33px; height: 33px; }
.rank-hero p { color: #e0ecd9; margin-top: 5px; }
.ranking-list { padding-block: 5px; }
.rank-number { display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: var(--sage); color: var(--green); font-weight: 750; }
.rank-1 { color: #755017; background: #f7e0ae; }
.rank-2 { color: #425c5b; background: #e2eceb; }
.rank-3 { color: #834c38; background: #f6e1d8; }
.rank-votes { color: var(--rust); white-space: nowrap; }
.rank-votes .icon { width: 17px; height: 17px; }
.dialog { width: min(100% - 28px, 460px); padding: 23px; border: 1px solid var(--line); border-radius: 21px; color: var(--ink); background: var(--card); box-shadow: 0 20px 50px #152d2558; }
.dialog::backdrop { background: #14292080; backdrop-filter: blur(3px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dialog h2 { margin-bottom: 14px; }
.role-list { display: grid; gap: 6px; }
.role-option { display: flex; justify-content: space-between; align-items: center; text-align: left; width: 100%; padding: 8px 12px; border: 1px solid var(--line); background: #fbfcf5; border-radius: 10px; }
.role-option span { display: grid; }
.role-option small { color: var(--muted); }
.role-option:hover { background: var(--sage); }
.dialog > .text-button { margin-top: 8px; }
#toast { position: fixed; z-index: 30; max-width: calc(100% - 30px); width: max-content; inset: auto 0 26px; margin: auto; opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none; color: #fff; background: #1e4539; padding: 9px 16px; border-radius: 10px; box-shadow: 0 7px 24px #172a2340; }
#toast.visible { opacity: 1; transform: translateY(0); }
.avatar, .avatar-fallback { width: 52px; height: 52px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--sage); object-fit: cover; flex: 0 0 auto; }
.detail-actions, .detail-meta, .card-meta, .form-actions, .page-head-actions, .section-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.detail-meta, .card-meta { color: var(--muted); font-size: 13px; }
.detail-actions { margin-top: 12px; }
.detail-line { padding-block: 8px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }
.content-card:has(> img), .product-card, .plaza-card, .work-card { padding: 0; overflow: hidden; }
.product-card > img, .plaza-card > img, .work-card-media > img, .content-card > img { width: 100%; object-fit: cover; aspect-ratio: 2.1; }
.product-card-body, .plaza-card-body, .work-card-body { padding: 17px 19px; display: grid; gap: 7px; }
.product-price { color: var(--rust); font-size: 22px; font-weight: 760; }
.profile-header, .creator-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.profile-header { background: #e7eee3; margin-bottom: 16px; }
.profile-header .avatar { width: 65px; height: 65px; }
.profile-header-copy { flex: 1; }
.profile-nav, .profile-overview-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(148px,1fr)); gap: 10px; margin-bottom: 16px; }
.profile-nav-item, .row-link { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.profile-nav-item:hover, .row-link:hover { background: var(--sage); color: var(--green); }
.quick-card-icon, .certificate-mark, .registration-icon { margin-right: 5px; }
.work-thumb-placeholder, .image-placeholder { background: var(--sage); color: var(--green); min-height: 100px; display: grid; place-items: center; }
.section-tabs { margin: 13px 0 16px; }
.certificate-copy, .registration-copy { flex: 1; }
.uploaded-list { display: grid; gap: 5px; margin: 0; }
.uploaded-item, .work-reason { padding: 8px; background: #eff3eb; border-radius: 8px; overflow-wrap: anywhere; }
@media (max-width: 930px) {
  .wrap { width: calc(100% - 42px); }
  .header-inner { gap: 10px; grid-template-columns: 1fr auto 1fr; }
  .nav-link { padding: 8px 10px; }
  .ops-link { display: none; }
  .hero { min-height: 350px; }
  .hero-copy { padding: 37px 42px; }
  .ethnicity-grid { gap: 9px; }
  .ethnicity-card { min-height: 118px; }
  .ethnicity-copy { padding: 9px; }
  .ethnicity-copy strong { font-size: 16px; }
  .ethnicity-card > .icon { display: none; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 66px; }
  body { padding-bottom: calc(63px + env(safe-area-inset-bottom)); font-size: 14px; }
  .wrap { width: calc(100% - 30px); }
  #main { padding-block: 15px 43px; }
  .header-inner { display: flex; justify-content: space-between; min-height: 56px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .desktop-nav { display: none; }
  .account-button { min-height: 36px; padding: 4px 10px; font-size: 13px; }
  #mobile-nav { position: fixed; z-index: 12; inset: auto 0 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; padding: 5px 9px calc(5px + env(safe-area-inset-bottom)); background: #fcfdfbf5; backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .nav-link { flex-direction: column; gap: 2px; min-height: 47px; font-size: 11px; padding: 4px 0; border-radius: 9px; }
  .nav-link .icon { width: 19px; height: 19px; }
  .hero { min-height: 330px; border-radius: 18px; background-position: 59% center; background-image: linear-gradient(90deg,#122f2cee 1%,#143c35a0 52%,#143c3526 100%),url('/assets/hero.webp'); }
  .hero-copy { padding: 26px 20px; }
  .hero .eyebrow { margin-bottom: 12px; font-size: 12px; }
  .hero h1 { font-size: clamp(40px, 11vw, 60px); }
  .hero-description { margin: 14px 0 17px; font-size: 13px; max-width: 225px; }
  .hero-actions { gap: 7px; }
  .hero-actions .btn { padding-inline: 10px; font-size: 12px; }
  .hero-actions .icon { width: 15px; height: 15px; }
  .home-section { margin-top: 24px; }
  .section-head { gap: 8px; margin-bottom: 11px; }
  .section-head p, .section-head > a { font-size: 12px; }
  .ethnicity-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ethnicity-card { min-height: 96px; aspect-ratio: 1.15; border-radius: 11px; }
  .ethnicity-copy strong { font-size: 15px; }
  .ethnicity-copy small { font-size: 11px; }
  .story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .story-card { border-radius: 13px; }
  .story-card-body { padding: 10px; }
  .story-card-body h3 { font-size: 15px; }
  .story-card-body p, .story-card-link { font-size: 12px; }
  .story-card-body .eyebrow { font-size: 11px; }
  .event-grid, .detail-grid, .detail-hero, .story-detail, .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .card:not(.story-card,.story-detail,.detail-hero,.product-card,.plaza-card,.work-card) { padding: 16px; border-radius: 15px; }
  .detail-hero > img, .story-detail > img { grid-row: 1; height: 165px; min-height: 0; }
  .detail-hero-copy, .story-detail-copy { padding: 8px 16px 16px; }
  .detail-grid { margin-top: 12px; }
  .content-grid { gap: 11px; }
  .work-audio { grid-template-columns: 1fr; }
  .footer-inner { min-height: 65px; gap: 8px; font-size: 11px; }
  .footer-inner .brand { font-size: 14px; }
  .footer-inner .brand-mark { display: none; }
  #toast { bottom: calc(66px + env(safe-area-inset-bottom)); }
}
@media (max-width: 385px) {
  .content-grid { grid-template-columns: 1fr; }
  .ethnicity-card { min-height: 85px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.form-card, .prose-card, .settings-links, .creator-list { margin-top: 16px; }
.form-card form, form.form-card, .creator-card { display: grid; gap: 15px; }
.form-card .btn[type=submit], .form-card form .btn[type=submit] { justify-self: start; }
.field-span-2 { grid-column: 1 / -1; }
.track-card, .quick-card, .profile-nav-item { transition: background .15s, border-color .15s; }
.track-card:hover, .quick-card:hover { border-color: #b3c9ba; }
.track-card > img { width: 100%; aspect-ratio: 2.1; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.media-hero { background: var(--sage); }
.certificate-card, .registration-card { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.settings-links .row-link { justify-content: space-between; }
.settings-links .row-link > span { display: grid; }
.settings-links .row-link + .row-link { margin-top: 8px; }
.settings-avatar { display: flex; align-items: center; gap: 12px; }
.avatar-image { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.field-link { width: fit-content; color: var(--green); font-size: 13px; }
.field-link:hover { text-decoration: underline; }
.content-grid:has(.track-card) { grid-template-columns: repeat(3,minmax(0,1fr)); }
@media (max-width: 680px) {
  .content-grid:has(.track-card) { grid-template-columns: 1fr; }
}

.dialog-head .brand-mark { width: 64px; height: 64px; border-radius: 15px; }
.dialog-head .brand-mark img { padding: 4px; }
.profile-nav-item.is-active { background: var(--sage); color: var(--green); font-weight: 700; border-color: #bdd0c1; }
.quick-card { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 6px 8px; }
.quick-card .muted { grid-column: 1 / -1; }
.quick-card-count { color: var(--green); font-weight: 740; }
.profile-tip { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.contest-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.contest-card { display: grid; gap: 10px; align-content: start; }
.contest-card .btn { justify-self: start; }
.contest-card h2, .work-card h2 { font-size: clamp(17px, 2.1vw, 23px); }
@media (max-width: 800px) {
  .contest-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .quick-card { grid-template-columns: 1fr auto; }
  .quick-card .quick-card-icon { grid-column: 1 / -1; }
}

.event-grid > article.event-card { display: grid; align-content: start; gap: 8px; padding: 18px; }
.event-grid > article.event-card .btn { justify-self: start; }
.sample-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-block: 5px; }
.upload-field .upload-progress { height: 7px; border-radius: 5px; overflow: hidden; background: var(--sage); }
.upload-field .upload-progress span { display: block; width: var(--upload-progress, 0%); height: 100%; background: var(--green); }
