@font-face {
  font-family: "Geist";
  src: url("/vendor/aipm/geist-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Playfair Display";
  src: url("/vendor/aipm/playfair-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 900;
}

:root {
  --canvas: #fafaf8;
  --surface: #fafaf8;
  --surface-soft: #f0efe9;
  --ink: #1a1a1a;
  --body: #666666;
  --muted: #999999;
  --line: #e5e3dc;
  --accent: #8b7355;
  --accent-soft: #f1ecde;
  --danger: #a34037;
  --sans: "Geist", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --display: "Playfair Display", "Songti SC", "STSong", serif;
  --shell: 1024px;
  --card-radius: 8px;
  --control-radius: 0px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--canvas); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--ink); }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; border-radius: var(--control-radius); background: var(--ink); color: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(calc(100% - 64px), var(--shell)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 40; height: 72px; border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 18%); background: color-mix(in srgb, var(--canvas), transparent 5%); backdrop-filter: blur(18px); }
.header-inner { width: min(calc(100% - 64px), 1380px); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-symbol { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 10px; font-size: 18px; }
.brand > span:last-child { display: flex; align-items: baseline; gap: 7px; }
.brand strong { font-size: 14px; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.header-nav, .nav-button { display: flex; align-items: center; }
.header-nav { gap: 8px; }
.header-nav a, .nav-button { gap: 7px; min-height: 38px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--body); font-size: 11px; font-weight: 600; cursor: pointer; transition: background 180ms ease, color 180ms ease, transform 120ms ease; }
.header-nav a:hover, .nav-button:hover { background: var(--surface-soft); color: var(--accent); }
.header-nav a:active, .nav-button:active { transform: scale(.98); }
.header-nav i { font-size: 15px; }
.header-nav a:focus-visible, .nav-button:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.hero { position: relative; min-height: 720px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; top: 54px; right: 0; bottom: 54px; width: 42%; pointer-events: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); opacity: .65; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: clamp(48px, 8vw, 116px); align-items: center; padding: 88px 0 58px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow i { font-size: 15px; }
.hero h1, .login-copy h1 { margin: 0; max-width: 760px; font-family: var(--display); font-size: clamp(54px, 6.8vw, 88px); font-stretch: condensed; font-weight: 800; letter-spacing: -.055em; line-height: .96; }
.hero h1 span, .login-copy h1 span { color: var(--accent); }
.hero-description { max-width: 560px; margin: 28px 0 0; color: var(--body); font-size: 15px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.hero-actions > span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.hero-actions > span i { color: var(--accent); font-size: 16px; }
.hero-gallery { position: relative; display: grid; grid-template-columns: 1fr .82fr; grid-template-rows: 185px 222px; gap: 14px; min-height: 421px; }
.hero-tile { display: grid; place-items: center; min-width: 0; margin: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line), var(--ink) 8%); border-radius: var(--card-radius); background: var(--surface); color: var(--accent); }
.hero-tile i { font-size: 34px; }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile-a { grid-row: 1 / 3; }
.hero-tile-b { background: var(--accent-soft); }
.hero-tile-c { background: var(--ink); color: var(--surface); }
.hero-tile.has-error img { display: none; }
.gallery-stamp { position: absolute; right: -18px; bottom: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid var(--ink); border-radius: 999px; background: var(--canvas); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-4deg); }
.gallery-stamp i { font-size: 15px; }
.hero-metrics { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.hero-metrics > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 22px 26px 24px 0; border-right: 1px solid var(--line); }
.hero-metrics > div:not(:first-child) { padding-left: 26px; }
.hero-metrics > div:last-child { padding-right: 0; border-right: 0; }
.hero-metrics span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.hero-metrics strong { font-family: var(--display); font-size: 25px; letter-spacing: -.02em; }

.primary-button, .secondary-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 18px; border: 1px solid var(--ink); border-radius: var(--control-radius); background: transparent; color: var(--ink); font-size: 11px; font-weight: 750; line-height: 1; white-space: nowrap; cursor: pointer; transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 120ms ease; }
.primary-button { background: var(--ink); color: var(--surface); }
.primary-button:hover:not(:disabled) { border-color: var(--accent); background: var(--accent); }
.primary-button:active:not(:disabled), .secondary-button:active:not(:disabled), .danger-button:active:not(:disabled), .icon-button:active:not(:disabled) { transform: scale(.98); }
.primary-button:disabled { border-color: var(--line); background: var(--surface-soft); color: var(--muted); cursor: not-allowed; }
.primary-button i, .secondary-button i, .danger-button i { font-size: 16px; }
.secondary-button { border-color: var(--line); background: var(--surface); color: var(--body); }
.secondary-button:hover { border-color: var(--ink); color: var(--ink); }
.danger-button { border-color: color-mix(in srgb, var(--danger), transparent 55%); color: var(--danger); }
.danger-button:hover { border-color: var(--danger); background: var(--danger); color: white; }

.vote-section { padding: 112px 0 132px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 60px; padding-bottom: 46px; }
.section-heading h2, .rule-intro h2 { margin: 0; font-family: var(--display); font-size: clamp(38px, 4.5vw, 58px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.section-heading > p { max-width: 360px; margin: 0; color: var(--body); font-size: 12px; line-height: 1.75; text-align: right; }
.zone-list { border-top: 1px solid var(--ink); }
.zone { padding: 64px 0 78px; border-bottom: 1px solid var(--line); animation: reveal 480ms ease-out var(--zone-delay, 0ms) both; }
.zone-header { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 28px; align-items: start; margin-bottom: 34px; }
.zone-order { padding-top: 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.zone-heading-copy h3 { margin: 0; font-family: var(--display); font-size: clamp(28px, 3vw, 42px); letter-spacing: -.035em; line-height: 1.1; }
.zone-heading-copy p { max-width: 680px; margin: 12px 0 0; color: var(--body); font-size: 13px; line-height: 1.7; }
.status-label { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.status-label i { font-size: 14px; }
.status-label[data-state="active"], .status-label[data-state="voted"] { border-color: color-mix(in srgb, var(--accent), transparent 62%); background: var(--accent-soft); color: var(--accent); }
.masonry-grid { columns: 3 280px; column-gap: 20px; }
.vote-card { position: relative; display: inline-block; width: 100%; margin: 0 0 20px; overflow: hidden; break-inside: avoid; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); text-align: left; vertical-align: top; cursor: pointer; transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.vote-card:not(:disabled):hover { border-color: var(--accent); box-shadow: 0 14px 34px rgba(0, 0, 0, .08); }
.vote-card:active:not(:disabled) { transform: scale(.99); }
.vote-card:disabled { cursor: default; }
.vote-card.is-selected, .vote-card.is-voted { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.vote-media { position: relative; display: grid; place-items: center; width: 100%; min-height: 170px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); }
.vote-media img { width: 100%; height: auto; }
.vote-media.is-empty { aspect-ratio: 4 / 5; gap: 8px; align-content: center; }
.vote-card:nth-child(3n + 2) .vote-media.is-empty { aspect-ratio: 1 / 1; }
.vote-card:nth-child(3n) .vote-media.is-empty { aspect-ratio: 3 / 2; }
.vote-media.is-empty i { color: var(--accent); font-size: 32px; }
.vote-media.is-empty span, .image-fallback span { font-size: 10px; }
.image-fallback { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 8px; background: var(--surface-soft); }
.image-fallback i { font-size: 28px; }
.vote-media.has-error img { display: none; }
.vote-media.has-error .image-fallback { display: grid; }
.selection-mark { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: white; opacity: 0; transform: scale(.75); transition: opacity 160ms ease, transform 160ms ease; }
.vote-card.is-selected .selection-mark, .vote-card.is-voted .selection-mark { opacity: 1; transform: scale(1); }
.selection-mark i { font-size: 18px; }
.vote-card-body { display: flex; flex-direction: column; padding: 18px 18px 20px; }
.vote-card-index { margin-bottom: 9px; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.vote-card-title { font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.vote-card-description { margin-top: 8px; color: var(--body); font-size: 11px; line-height: 1.65; }
.vote-result { display: flex; align-items: baseline; gap: 5px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.vote-result strong { color: var(--ink); font-family: var(--display); font-size: 20px; }
.vote-result span { margin-left: auto; color: var(--accent); font-size: 11px; font-weight: 800; }
.zone-actions { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 22px; padding-top: 24px; border-top: 1px dashed var(--line); }
.zone-actions p { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.zone-actions p i { flex: 0 0 auto; color: var(--accent); font-size: 15px; }

.loading-gallery { columns: 3 280px; column-gap: 20px; padding: 48px 0; }
.loading-gallery span { display: inline-block; width: 100%; height: 280px; margin-bottom: 20px; border-radius: var(--card-radius); background: var(--surface-soft); animation: pulse 1.2s ease-in-out infinite alternate; }
.loading-gallery span:nth-child(2), .loading-gallery span:nth-child(5) { height: 380px; }
.loading-gallery span:nth-child(3) { height: 230px; }
.empty-state, .error-state { min-height: 320px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); text-align: center; }
.empty-state i, .error-state > i { color: var(--accent); font-size: 34px; }
.empty-state strong, .error-state strong { color: var(--ink); font-family: var(--display); font-size: 22px; }
.empty-state span { font-size: 11px; }
.empty-state.compact { min-height: 180px; }

.rule-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); color: var(--surface); }
.rule-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 90px; padding: 110px 0; }
.rule-intro .eyebrow { color: var(--accent); }
.rule-cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.rule-cards article { position: relative; min-height: 270px; padding: 26px 22px; border-right: 1px solid var(--line); }
.rule-cards article:last-child { border-right: 0; }
.rule-cards article > i { color: var(--accent); font-size: 28px; }
.rule-cards article > span { position: absolute; top: 30px; right: 22px; color: #ccc; font-size: 9px; letter-spacing: .12em; }
.rule-cards h3 { margin: 74px 0 0; font-family: var(--display); font-size: 20px; }
.rule-cards p { margin: 12px 0 0; color: var(--body); font-size: 11px; line-height: 1.75; }
.site-footer { padding: 46px 0; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 10px; text-align: center; }
.footer-inner > div { display: flex; gap: 22px; }
.footer-inner > div a { color: var(--muted); font-size: 10px; }
.footer-inner > div a:hover { color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 90; max-width: min(460px, calc(100% - 32px)); padding: 13px 18px; border: 1px solid #333; border-radius: var(--control-radius); background: var(--ink); color: var(--surface); font-size: 11px; line-height: 1.5; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 180ms ease, transform 180ms ease; box-shadow: 0 14px 40px rgba(0, 0, 0, .18); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Admin */
.admin-main { min-height: calc(100vh - 72px); }
.login-view { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: clamp(60px, 10vw, 150px); padding: 82px 0; }
.login-copy > p:last-child { max-width: 540px; margin: 28px 0 0; color: var(--body); font-size: 13px; line-height: 1.8; }
.login-form { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); box-shadow: 0 22px 60px rgba(0, 0, 0, .06); }
.form-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 32px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 25px; }
label { display: block; margin: 0 0 8px; color: var(--body); font-size: 10px; font-weight: 750; letter-spacing: .04em; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: var(--control-radius); padding: 12px 13px; background: white; color: var(--ink); font-size: 12px; transition: border-color 180ms ease, box-shadow 180ms ease; }
input:hover, textarea:hover, select:hover { border-color: var(--muted); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; line-height: 1.55; }
.login-form input { margin-bottom: 16px; }
.full-button { width: 100%; }
.form-error { min-height: 18px; margin: 12px 0 0; color: var(--danger); font-size: 11px; }
.dashboard-view { padding: 64px 0 110px; }
.admin-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 34px; }
.admin-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(42px, 5vw, 60px); letter-spacing: -.04em; line-height: 1; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 40px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); overflow: hidden; }
.admin-metrics > div { display: flex; align-items: center; gap: 15px; padding: 20px; border-right: 1px solid var(--line); }
.admin-metrics > div:last-child { border-right: 0; }
.admin-metrics > div > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 18px; }
.admin-metrics dt { color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.admin-metrics dd { margin: 4px 0 0; font-family: var(--display); font-size: 24px; font-weight: 800; }
.admin-workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 680px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); overflow: hidden; }
.zone-sidebar { border-right: 1px solid var(--line); background: #f4f7f2; }
.sidebar-heading { display: flex; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.sidebar-heading small { font-size: 10px; }
.admin-zone-item { width: 100%; padding: 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; transition: background 180ms ease; }
.admin-zone-item:hover { background: var(--surface); }
.admin-zone-item.is-active { background: var(--surface); box-shadow: inset 3px 0 var(--accent); }
.admin-zone-kicker { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.admin-zone-kicker span:last-child { display: inline-flex; align-items: center; gap: 4px; }
.admin-zone-title { display: block; margin-top: 9px; font-size: 13px; font-weight: 750; line-height: 1.4; }
.admin-zone-votes { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }
.zone-editor { min-width: 0; padding: 34px; }
.empty-editor { min-height: 560px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); text-align: center; }
.empty-editor i { color: var(--accent); font-size: 28px; }
.empty-editor p { margin: 0; font-size: 12px; }
.editor-heading { display: flex; align-items: start; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.editor-heading h2 { margin: 4px 0 0; font-family: var(--display); font-size: 32px; letter-spacing: -.03em; }
.editor-meta { margin: 8px 0 0; color: var(--muted); font-size: 9px; letter-spacing: .05em; }
.editor-actions { display: flex; gap: 9px; }
.project-lifecycle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.lifecycle-symbol { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); color: var(--accent); font-size: 20px; }
.project-lifecycle[data-lifecycle-state="active"] .lifecycle-symbol { border-color: var(--ink); background: var(--ink); color: var(--canvas); }
.project-lifecycle[data-lifecycle-state="closed"] .lifecycle-symbol { color: var(--muted); }
.lifecycle-copy { min-width: 0; }
.lifecycle-copy p { margin: 0 0 5px; color: var(--accent); font-size: 8px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.lifecycle-copy h3 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.lifecycle-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.lifecycle-confirmation { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; color: #47624b; font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.lifecycle-confirmation i { color: #5f8064; font-size: 14px; }
.lifecycle-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.editor-form { padding: 28px 0; border-bottom: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-wide { grid-column: 1 / -1; }
.switch-row { display: flex; align-items: center; gap: 10px; min-height: 42px; margin: 0; cursor: pointer; }
.switch-row input, .remove-image input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.switch-row span, .remove-image span { color: var(--body); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.option-editor-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 38px 0 20px; }
.option-editor-heading .eyebrow { margin-bottom: 9px; }
.option-editor-heading h3 { margin: 0; font-family: var(--display); font-size: 27px; }
.option-editor-heading div > span { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.option-editor-heading > strong { color: var(--accent); font-family: var(--display); font-size: 36px; }
.option-editor-actions { display: flex; align-items: center; gap: 14px; }
.option-editor-actions > strong { color: var(--accent); font-family: var(--display); font-size: 36px; }
.secondary-button:disabled { border-color: var(--line); color: var(--muted); cursor: not-allowed; opacity: .62; }
.batch-upload-form { margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--card-radius); background: #f5f4f0; }
.batch-upload-trigger { display: flex; align-items: center; gap: 14px; margin: 0; padding: 18px; color: var(--ink); cursor: pointer; }
.batch-upload-trigger > i { flex: 0 0 auto; color: var(--accent); font-size: 28px; }
.batch-upload-trigger > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; margin-right: auto; }
.batch-upload-trigger strong { font-size: 13px; }
.batch-upload-trigger small { color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.5; }
.batch-upload-trigger .secondary-button { flex: 0 0 auto; }
#batch-option-images { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.batch-upload-summary { margin: 0; padding: 11px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.batch-upload-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 18px; }
.batch-upload-preview:empty { display: none; }
.batch-draft { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); }
.batch-draft-preview { position: relative; display: grid; min-height: 150px; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.batch-draft-preview img { width: 100%; height: auto; max-height: 300px; object-fit: contain; }
.batch-draft-preview > span { position: absolute; top: 9px; left: 9px; padding: 5px 7px; background: rgba(26, 26, 26, .86); color: white; font-size: 8px; letter-spacing: .12em; }
.batch-draft-fields { display: grid; gap: 11px; padding: 14px; }
.batch-draft-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; align-items: center; gap: 9px; color: var(--muted); font-size: 8px; }
.batch-draft-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-draft-meta .icon-button { width: 34px; height: 34px; font-size: 15px; }
.batch-upload-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 18px 18px; }
.batch-upload-actions[hidden] { display: none; }
.admin-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-option { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--card-radius); background: #f8faf6; }
.admin-option-preview { position: relative; display: grid; place-items: center; align-content: center; gap: 8px; min-height: 190px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); }
.admin-option-preview > i { color: var(--accent); font-size: 30px; }
.admin-option-preview > span { font-size: 10px; }
.admin-option-preview img { width: 100%; max-height: 340px; object-fit: cover; }
.preview-note { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 9px; background: var(--ink); color: white; font-size: 9px; }
.admin-option-fields { display: grid; gap: 14px; padding: 18px; }
.material-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; }
.upload-button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; margin: 0; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); cursor: pointer; }
.upload-button:hover { border-color: var(--accent); color: var(--accent); }
.upload-button input, .upload-panel input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-button i { font-size: 15px; }
.remove-image { display: inline-flex; align-items: center; gap: 7px; margin: 0; cursor: pointer; }
.material-tools small { flex-basis: 100%; color: var(--muted); font-size: 8px; }
.admin-option-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 13px 18px; border-top: 1px solid var(--line); }
.option-vote-count { display: inline-flex; align-items: baseline; gap: 5px; }
.option-vote-count strong { font-family: var(--display); font-size: 22px; }
.option-vote-count small { color: var(--muted); font-size: 9px; }
.option-inline-actions { display: flex; gap: 7px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--body); font-size: 18px; cursor: pointer; transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 120ms ease; }
.icon-button:hover { border-color: var(--ink); color: var(--ink); }
.danger-icon:hover { border-color: var(--danger); background: var(--danger); color: white; }
.add-option-form { margin-top: 20px; padding: 22px; border: 1px dashed color-mix(in srgb, var(--accent), transparent 42%); border-radius: var(--card-radius); background: var(--accent-soft); }
.add-option-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.add-option-heading > i { font-size: 28px; color: var(--accent); }
.add-option-heading h4 { margin: 0; font-size: 15px; }
.add-option-heading p { margin: 4px 0 0; color: var(--body); font-size: 9px; }
.add-option-fields { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 12px; margin-bottom: 14px; }
.upload-panel { position: relative; display: grid; place-items: center; align-content: center; gap: 5px; min-height: 110px; margin: 0; overflow: hidden; border: 1px dashed color-mix(in srgb, var(--accent), transparent 35%); border-radius: var(--control-radius); background: color-mix(in srgb, white, transparent 32%); color: var(--accent); text-align: center; cursor: pointer; }
.upload-panel > i { font-size: 24px; }
.upload-panel > strong { font-size: 10px; }
.upload-panel > span { color: var(--body); font-size: 8px; font-weight: 500; letter-spacing: 0; }
.upload-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-panel .preview-note { z-index: 2; }
.modal { width: min(560px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgba(0, 0, 0, .14); }
.modal::backdrop { background: rgba(26, 26, 26, .32); backdrop-filter: blur(5px); }
.modal form { padding: 30px; }
.modal-heading { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.modal-heading h2 { margin: 0; font-family: var(--display); font-size: 30px; }
.modal textarea, .modal > form > input { margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }

.reveal { animation: reveal 260ms ease-out both; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { from { opacity: .45; } to { opacity: .9; } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .hero h1 { font-size: clamp(52px, 8.5vw, 76px); }
  .rule-layout { grid-template-columns: 1fr; gap: 48px; }
  .admin-workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .admin-option-grid { grid-template-columns: 1fr; }
  .add-option-fields { grid-template-columns: 1fr 1fr; }
  .upload-panel { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .page-shell, .header-inner { width: min(calc(100% - 32px), var(--shell)); }
  .site-header { height: 66px; }
  .header-nav a span, .nav-button span, .brand small { display: none; }
  .header-nav a, .nav-button { width: 38px; justify-content: center; padding: 8px; }
  .hero { min-height: auto; }
  .hero::before { opacity: .25; }
  .hero-grid { grid-template-columns: 1fr; gap: 54px; padding: 76px 0 46px; }
  .hero-gallery { width: min(100%, 620px); }
  .hero-metrics { margin-top: 10px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; text-align: left; }
  .vote-section { padding: 84px 0 96px; }
  .zone-header { grid-template-columns: 1fr auto; }
  .zone-order { grid-column: 1 / -1; }
  .rule-cards { grid-template-columns: 1fr; }
  .rule-cards article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .rule-cards article:last-child { border-bottom: 0; }
  .rule-cards h3 { margin-top: 42px; }
  .login-view { grid-template-columns: 1fr; gap: 50px; padding: 64px 0; }
  .login-form { width: min(100%, 520px); }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .admin-metrics > div:nth-child(2) { border-right: 0; }
  .admin-metrics > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .admin-workspace { grid-template-columns: 1fr; }
  .zone-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-zone-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 70%); overflow-x: auto; }
  .admin-zone-item { border-right: 1px solid var(--line); border-bottom: 0; }
  .zone-editor { padding: 26px; }
  .batch-upload-preview { grid-template-columns: 1fr; }
  .project-lifecycle { grid-template-columns: auto minmax(0, 1fr); }
  .lifecycle-actions { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 560px) {
  .hero h1, .login-copy h1 { font-size: clamp(48px, 15vw, 64px); }
  .hero-description { font-size: 13px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-actions .primary-button { width: 100%; }
  .hero-gallery { grid-template-rows: 142px 175px; min-height: 331px; gap: 10px; }
  .gallery-stamp { right: -6px; bottom: 22px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-metrics > div, .hero-metrics > div:not(:first-child) { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-metrics > div:last-child { border-bottom: 0; }
  .section-heading h2, .rule-intro h2 { font-size: 38px; }
  .zone { padding: 50px 0 62px; }
  .zone-header { grid-template-columns: 1fr; gap: 12px; }
  .status-label { justify-self: start; }
  .masonry-grid, .loading-gallery { columns: 1; }
  .zone-actions { align-items: stretch; flex-direction: column; }
  .zone-actions .primary-button { width: 100%; }
  .rule-layout { padding: 82px 0; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; }
  .footer-inner p { text-align: left; }
  .admin-hero { align-items: stretch; flex-direction: column; }
  .admin-metrics { grid-template-columns: 1fr; }
  .admin-metrics > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-metrics > div:nth-child(2) { border-right: 0; }
  .admin-metrics > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .admin-metrics > div:last-child { border-bottom: 0; }
  .zone-editor { padding: 20px 16px; }
  .editor-heading { flex-direction: column; }
  .editor-actions { width: 100%; }
  .editor-actions > * { flex: 1; }
  .project-lifecycle { grid-template-columns: 1fr; align-items: start; }
  .lifecycle-symbol { width: 40px; height: 40px; }
  .lifecycle-actions { grid-column: auto; align-items: stretch; flex-direction: column; }
  .lifecycle-actions > * { width: 100%; }
  .form-grid, .add-option-fields { grid-template-columns: 1fr; }
  .field-wide, .upload-panel { grid-column: auto; }
  .option-editor-heading { align-items: start; }
  .option-editor-heading, .batch-upload-trigger { align-items: stretch; flex-direction: column; }
  .option-editor-actions { width: 100%; justify-content: space-between; }
  .option-editor-actions .secondary-button, .batch-upload-trigger .secondary-button { width: 100%; }
  .batch-upload-preview { padding-inline: 12px; }
  .batch-upload-actions { align-items: stretch; flex-direction: column-reverse; padding-inline: 12px; }
  .batch-upload-actions > * { width: 100%; }
  .modal form { padding: 22px; }
}

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

/* AIPM Club visual alignment: shared with the main site's warm editorial language. */
body {
  background:
    radial-gradient(circle at 92% 4%, rgba(139, 115, 85, .04), transparent 34rem),
    radial-gradient(circle at 4% 88%, rgba(102, 102, 102, .025), transparent 30rem),
    var(--canvas);
}

.page-shell { width: min(calc(100% - 64px), var(--shell)); }
.site-header { position: fixed; top: 0; right: 0; left: 0; width: 100%; height: 72px; border-bottom-color: rgba(229, 227, 220, .82); background: rgba(250, 250, 248, .98); backdrop-filter: none; }
.header-inner { width: min(calc(100% - 64px), 1280px); }
.brand { gap: 12px; }
.brand strong { color: var(--ink); font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: .03em; transition: color 300ms ease; }
.brand:hover strong { color: var(--accent); }
.brand-divider { color: var(--line); font-family: var(--sans); font-size: 16px; }
.brand small { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.brand > span:last-child { display: initial; }
.brand-symbol { display: none; }
.header-nav { gap: 4px; }
.header-nav a, .nav-button { min-height: 32px; padding: 7px 13px; border-radius: 999px; color: #888; font-size: 12px; font-weight: 400; white-space: nowrap; }
.header-nav a:hover, .header-nav a.is-current, .nav-button:hover { background: var(--surface-soft); color: #555; }
.header-nav .login-link { margin-left: 8px; padding-inline: 16px; border: 1px solid var(--line); background: transparent; color: var(--body); }
.header-nav .login-link:hover { border-color: var(--accent); background: transparent; color: var(--ink); }
main { padding-top: 72px; }

.hero { min-height: 690px; border-bottom-color: var(--line); }
.hero::before { content: none; }
.hero-grid { min-height: 610px; display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 54px 0 42px; text-align: center; }
.hero-grid > .eyebrow { margin-bottom: 12px; }
.eyebrow { justify-content: center; color: var(--accent); font-size: 10px; font-weight: 500; letter-spacing: .25em; }
.hero-wordmark { position: relative; display: flex; align-items: center; justify-content: center; color: var(--ink); font-family: var(--display); font-size: clamp(112px, 15vw, 196px); font-weight: 900; letter-spacing: -.075em; line-height: .85; }
.hero-orbit { position: relative; display: grid; flex: 0 0 clamp(170px, 22vw, 286px); width: clamp(170px, 22vw, 286px); height: clamp(170px, 22vw, 286px); margin: 0 -.03em 0 -.02em; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.hero-orbit::before { inset: 16%; opacity: .72; }
.hero-orbit::after { inset: 34%; border-color: var(--accent); opacity: .55; }
.hero-orbit i { position: relative; z-index: 1; font-size: clamp(24px, 3vw, 38px); }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero h1, .login-copy h1 { margin: 8px 0 0; max-width: 720px; font-family: var(--display); font-size: clamp(20px, 2.2vw, 28px); font-style: italic; font-weight: 500; letter-spacing: 0; line-height: 1.35; }
.hero h1 span, .login-copy h1 span { color: inherit; }
.hero-description { max-width: 610px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.hero-actions { margin-top: 26px; }
.hero-actions > span { color: var(--muted); font-size: 10px; }
.hero-actions > span i { color: var(--accent); }
.hero-gallery, .hero-tile, .gallery-stamp { display: none; }
.hero-metrics { border-top-color: var(--line); border-bottom: 1px solid var(--line); }
.hero-metrics > div { padding: 20px 26px 22px 0; }
.hero-metrics span { color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.hero-metrics strong { font-family: var(--display); font-size: 24px; font-weight: 600; }

.primary-button, .secondary-button, .danger-button { min-height: 42px; border-radius: 0; font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.primary-button { background: var(--ink); color: var(--canvas); }
.primary-button:hover:not(:disabled) { border-color: var(--ink); background: transparent; color: var(--ink); }
.secondary-button { background: transparent; }

.vote-section { padding: 112px 0 128px; }
.section-heading { padding-bottom: 44px; }
.section-heading .eyebrow, .rule-intro .eyebrow, .admin-hero .eyebrow, .login-copy .eyebrow, .modal .eyebrow, .option-editor-heading .eyebrow { justify-content: flex-start; }
.section-heading h2, .rule-intro h2 { font-family: var(--display); font-size: clamp(38px, 4.5vw, 48px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.section-heading > p { color: var(--muted); }
.zone { padding: 60px 0 72px; }
.zone-header { grid-template-columns: 100px minmax(0, 1fr) auto; }
.zone-order { color: var(--muted); font-weight: 500; letter-spacing: .2em; }
.zone-heading-copy h3 { font-family: var(--display); font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -.02em; }
.zone-heading-copy p { color: var(--body); }
.status-label { border-radius: 999px; font-weight: 500; }
.status-label[data-state="active"], .status-label[data-state="voted"] { border-color: var(--line); background: var(--surface-soft); color: var(--accent); }
.masonry-grid { columns: 3 270px; column-gap: 18px; }
.vote-card { margin-bottom: 18px; border-radius: var(--card-radius); background: rgba(250, 250, 248, .92); transition: border-color 240ms ease, box-shadow 240ms ease; }
.vote-card:not(:disabled):hover { border-color: var(--accent); transform: none; box-shadow: 0 18px 50px rgba(0, 0, 0, .08); }
.vote-card.is-selected, .vote-card.is-voted { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.vote-media { background: var(--surface-soft); }
.vote-card-body { padding: 18px 18px 21px; }
.vote-card-index { color: var(--accent); font-weight: 500; letter-spacing: .2em; }
.vote-card-title { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: 0; }
.vote-result strong { font-family: var(--display); font-weight: 600; }
.selection-mark { background: var(--ink); }
.zone-actions { border-top-style: solid; }

.rule-section { border-color: var(--line); background: transparent; color: var(--ink); }
.rule-layout { grid-template-columns: .75fr 1.25fr; gap: 80px; padding: 104px 0; }
.rule-intro .eyebrow { color: var(--accent); }
.rule-cards { border-top-color: var(--line); }
.rule-cards article { min-height: 250px; border-right-color: var(--line); }
.rule-cards article > i { color: var(--accent); }
.rule-cards article > span { color: #ccc; }
.rule-cards h3 { font-family: var(--display); font-weight: 600; }
.rule-cards p { color: var(--body); }
.site-footer { padding: 54px 0; }
.footer-inner { border: 0; }
.footer-brand strong { font-size: 16px; }
.footer-brand small { font-size: 9px; }
.toast { border-color: #333; border-radius: 0; background: var(--ink); color: var(--canvas); box-shadow: 0 18px 50px rgba(0, 0, 0, .14); }

/* The admin remains a product surface, but inherits the same AIPM tokens. */
.admin-body main { padding-top: 72px; }
.login-copy h1 { max-width: 620px; font-size: clamp(42px, 5vw, 64px); font-style: normal; font-weight: 700; }
.login-form { border-radius: var(--card-radius); box-shadow: 0 22px 60px rgba(0, 0, 0, .06); }
.form-symbol, .admin-metrics > div > i { border-radius: var(--card-radius); }
input, textarea, select { border-radius: var(--card-radius); background: #fff; }
.admin-hero h1 { font-family: var(--display); font-weight: 700; }
.admin-metrics, .admin-workspace, .admin-option, .modal { border-radius: var(--card-radius); }
.zone-sidebar { background: #f5f4f0; }
.admin-option { background: var(--canvas); }
.upload-button, .icon-button, .upload-panel { border-radius: var(--card-radius); }
.modal { box-shadow: 0 24px 80px rgba(0, 0, 0, .14); }
.modal::backdrop { background: rgba(26, 26, 26, .32); }

@media (max-width: 980px) {
  .hero-grid { min-height: 560px; }
  .hero h1 { font-size: 22px; }
  .rule-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .page-shell, .header-inner { width: min(calc(100% - 32px), var(--shell)); }
  .brand-divider, .brand small { display: none; }
  .header-nav a span, .nav-button span { display: inline; }
  .header-nav a { width: auto; }
  .header-nav a:not(.is-current):not(.login-link) { display: none; }
  .header-nav .login-link { width: auto; }
  .hero { min-height: 600px; }
  .hero-grid { min-height: 520px; padding-top: 38px; }
  .hero-wordmark { font-size: clamp(82px, 20vw, 136px); }
  .hero-orbit { flex-basis: clamp(120px, 28vw, 190px); width: clamp(120px, 28vw, 190px); height: clamp(120px, 28vw, 190px); }
  .rule-cards article { border-bottom-color: var(--line); }
}

@media (max-width: 560px) {
  .site-header { height: 64px; }
  main, .admin-body main { padding-top: 64px; }
  .brand strong { font-size: 20px; }
  .header-nav { gap: 0; }
  .header-nav a, .header-nav .login-link { margin-left: 3px; padding-inline: 10px; font-size: 10px; }
  .hero { min-height: 520px; }
  .hero-grid { min-height: 450px; padding: 38px 0 28px; }
  .hero-wordmark { font-size: clamp(68px, 20vw, 92px); }
  .hero-orbit { flex-basis: clamp(92px, 27vw, 124px); width: clamp(92px, 27vw, 124px); height: clamp(92px, 27vw, 124px); }
  .hero h1 { margin-top: 20px; font-size: 19px; }
  .hero-description { font-size: 12px; }
  .hero-actions { width: 100%; }
  .hero-actions .primary-button { width: 100%; }
  .hero-metrics { margin-top: 0; }
  .section-heading h2, .rule-intro h2 { font-size: 36px; }
  .masonry-grid, .loading-gallery { columns: 1; }
  .rule-layout { padding: 78px 0; }
  .footer-inner { gap: 18px; }
  .login-copy h1 { font-size: 42px; }
}

/* Visitor-created design direction */
.design-choice { margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--card-radius); background: rgba(250, 250, 248, .92); transition: border-color 220ms ease, box-shadow 220ms ease; }
.design-choice.is-selected, .design-choice.is-voted { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.design-choice-button { display: grid; width: 100%; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 20px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.design-choice-button:disabled { cursor: default; }
.design-choice-symbol { display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid var(--line); background: var(--surface-soft); color: var(--accent); }
.design-choice-symbol i { font-size: 28px; }
.design-choice-copy { display: grid; min-width: 0; gap: 5px; }
.design-choice-copy small { color: var(--accent); font-size: 8px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.design-choice-copy strong { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.2; }
.design-choice-copy > span { color: var(--body); font-size: 10px; line-height: 1.6; }
.design-choice-result { min-width: 84px; color: var(--muted); font-size: 9px; text-align: right; }
.design-choice-result strong { color: var(--ink); font-family: var(--display); font-size: 22px; font-weight: 600; }
.design-choice-action { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 10px 13px; border: 1px solid var(--line); color: var(--ink); font-size: 9px; font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.design-choice.is-selected .design-choice-action, .design-choice.is-voted .design-choice-action { border-color: var(--ink); background: var(--ink); color: var(--canvas); }
.design-submission-form { display: grid; grid-template-columns: minmax(190px, .65fr) minmax(0, 1.35fr); gap: 28px; padding: 24px; border-top: 1px solid var(--line); background: #f5f4f0; }
.design-submission-copy { align-self: start; }
.design-submission-copy > span { color: var(--accent); font-size: 8px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.design-submission-copy strong { display: block; margin-top: 10px; font-family: var(--display); font-size: 24px; font-weight: 600; }
.design-submission-copy p { margin: 10px 0 0; color: var(--body); font-size: 10px; line-height: 1.75; }
.design-submission-fields { display: grid; grid-template-columns: 1fr 1fr 200px; gap: 12px; }
.design-submission-fields > div { min-width: 0; }
.design-upload { position: relative; display: grid; min-height: 126px; place-items: center; align-content: center; gap: 6px; margin: 0; overflow: hidden; border: 1px dashed color-mix(in srgb, var(--accent), transparent 35%); background: rgba(255, 255, 255, .66); color: var(--accent); text-align: center; cursor: pointer; }
.design-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.design-upload > i { font-size: 25px; }
.design-upload > strong { font-size: 10px; }
.design-upload > span { color: var(--body); font-size: 8px; font-weight: 500; letter-spacing: 0; }
.design-upload.has-image { min-height: 160px; border-style: solid; }
.design-upload img { width: 100%; max-height: 240px; object-fit: contain; }
.design-upload.has-image > span { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; background: rgba(26, 26, 26, .9); color: white; }
.design-privacy { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; margin: -8px 0 0; color: var(--muted); font-size: 8px; line-height: 1.6; }
.design-privacy i { color: var(--accent); font-size: 14px; }
.design-submission-receipt { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-top: 1px solid var(--line); background: var(--accent-soft); }
.design-submission-receipt > i { color: var(--accent); font-size: 26px; }
.design-submission-receipt > span { display: grid; gap: 4px; }
.design-submission-receipt strong { font-family: var(--display); font-size: 17px; font-weight: 600; }
.design-submission-receipt small { color: var(--body); font-size: 9px; }

@media (max-width: 980px) {
  .design-choice-button { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .design-choice-symbol { width: 56px; height: 56px; }
  .design-choice-result { grid-column: 2; text-align: left; }
  .design-choice-action { grid-column: 3; grid-row: 1 / span 2; }
  .design-submission-form { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .design-submission-fields { grid-template-columns: 1fr 1fr; }
  .design-upload { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .design-choice-button { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .design-choice-symbol { width: 48px; height: 48px; }
  .design-choice-copy strong { font-size: 19px; }
  .design-choice-result { grid-column: 2; }
  .design-choice-action { grid-column: 1 / -1; grid-row: auto; width: 100%; justify-content: center; }
  .design-submission-form { gap: 20px; padding: 18px 16px; }
  .design-submission-fields { grid-template-columns: 1fr; }
  .design-upload { grid-column: auto; }
  .design-privacy { margin-top: 0; }
}

/* Admin review of visitor submissions */
.submission-editor-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 42px 0 20px; }
.submission-editor-heading .eyebrow { justify-content: flex-start; margin-bottom: 9px; }
.submission-editor-heading h3 { margin: 0; font-family: var(--display); font-size: 27px; font-weight: 600; }
.submission-editor-heading div > span { display: block; max-width: 620px; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.submission-editor-heading > strong { color: var(--accent); font-family: var(--display); font-size: 36px; font-weight: 600; }
.admin-submission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-submission-grid > .empty-state { grid-column: 1 / -1; border: 1px solid var(--line); background: #f5f4f0; }
.admin-submission { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--canvas); }
.admin-submission-preview { position: relative; display: grid; min-height: 220px; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.admin-submission-preview img { width: 100%; max-height: 420px; object-fit: contain; }
.admin-submission-preview > span { position: absolute; top: 10px; left: 10px; padding: 6px 8px; background: rgba(26, 26, 26, .9); color: white; font-size: 8px; letter-spacing: .14em; }
.admin-submission-body { display: grid; gap: 10px; padding: 18px; }
.admin-submission-body > p { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--accent); font-size: 8px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.admin-submission-body h4 { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 600; }
.admin-submission-body > div { color: var(--body); font-size: 10px; line-height: 1.7; white-space: pre-wrap; }
.admin-submission-body > div.is-empty { color: var(--muted); }
.admin-submission-body small { color: var(--muted); font-size: 8px; }
.admin-submission-body .secondary-button { width: fit-content; margin-top: 4px; }

@media (max-width: 980px) {
  .admin-submission-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .submission-editor-heading { align-items: start; }
  .submission-editor-heading > strong { font-size: 30px; }
  .admin-submission-preview { min-height: 170px; }
  .admin-submission-body .secondary-button { width: 100%; }
}

/* Project-based public gallery */
.gallery-hero { border-bottom: 1px solid var(--line); }
.gallery-hero-layout { min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr); gap: clamp(64px, 9vw, 130px); align-items: center; padding: 86px 0 68px; }
.gallery-hero-copy .eyebrow { justify-content: flex-start; }
.gallery-hero-copy h1 { max-width: 760px; margin: 0; font-family: var(--display); font-size: clamp(48px, 6.1vw, 78px); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; }
.gallery-hero-copy h1 em { display: block; color: var(--accent); font-weight: 500; }
.gallery-hero-copy > p:not(.eyebrow) { max-width: 620px; margin: 24px 0 0; color: var(--body); font-size: 13px; line-height: 1.85; }
.gallery-hero-copy .primary-button { margin-top: 30px; }
.gallery-hero-method { border-top: 1px solid var(--ink); }
.gallery-hero-method p { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 4px 16px; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.gallery-hero-method p > span { grid-row: 1 / span 2; padding-top: 2px; color: var(--accent); font-family: var(--display); font-size: 20px; }
.gallery-hero-method strong { font-family: var(--display); font-size: 18px; font-weight: 600; }
.gallery-hero-method small { color: var(--muted); font-size: 10px; line-height: 1.55; }

.project-index-section { padding: 112px 0 132px; }
.project-list { border-top: 1px solid var(--ink); }
.project-entry { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr); gap: clamp(38px, 6vw, 82px); align-items: center; padding: 54px 0; border-bottom: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 520px; animation: reveal 260ms ease-out var(--project-delay, 0ms) both; }
.project-entry:nth-child(even) { grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); }
.project-entry:nth-child(even) .project-cover { order: 2; }
.project-entry:nth-child(even) .project-entry-copy { order: 1; }
.project-cover { position: relative; display: grid; min-height: 360px; grid-template-columns: 1.45fr .75fr; grid-template-rows: 1fr 1fr; gap: 8px; overflow: hidden; background: var(--surface-soft); }
.project-cover[data-image-count="1"] { display: block; }
.project-cover[data-image-count="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.project-cover-cell { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--surface-soft); }
.project-cover[data-image-count="3"] .project-cover-cell:first-child { grid-row: 1 / 3; }
.project-cover-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 480ms cubic-bezier(.2,.75,.2,1); }
.project-entry:hover .project-cover-cell img { transform: scale(1.018); }
.project-cover-cell .image-fallback { border: 1px solid var(--line); }
.project-cover-cell.has-error img { display: none; }
.project-cover-cell.has-error .image-fallback { display: grid; }
.project-cover.is-empty { place-items: center; align-content: center; gap: 14px; border: 1px solid var(--line); color: var(--accent); }
.project-cover.is-empty i { font-size: 42px; }
.project-cover.is-empty span { font-family: var(--display); font-size: 18px; letter-spacing: .08em; }
.project-entry-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.project-entry-kicker { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .2em; }
.project-entry-title { margin-top: 34px; font-family: var(--display); font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
.project-entry-description { margin-top: 16px; color: var(--body); font-size: 12px; line-height: 1.75; }
.project-entry-facts { display: flex; width: 100%; gap: 26px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.project-entry-facts b { color: var(--ink); font-family: var(--display); font-size: 18px; font-weight: 600; }
.project-entry-action { display: inline-flex; align-items: center; gap: 9px; margin-top: 30px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.project-entry-action i { font-size: 16px; transition: transform 200ms ease; }
.project-entry:hover .project-entry-action i { transform: translate(3px, -3px); }
.project-loading { display: grid; gap: 28px; padding: 54px 0; }
.project-loading span { display: block; height: 360px; background: var(--surface-soft); animation: pulse 1.2s ease-in-out infinite alternate; }
.project-loading span:nth-child(2) { width: 82%; margin-left: auto; }
.gallery-principle { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f5f4f0; }
.gallery-principle-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; padding: 88px 0; }
.gallery-principle-layout .eyebrow { justify-content: flex-start; }
.gallery-principle-layout h2 { max-width: 520px; margin: 0; font-family: var(--display); font-size: clamp(34px, 4vw, 48px); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; }
.gallery-principle-layout > p { margin: 0; color: var(--body); font-size: 12px; line-height: 1.85; }

/* Project detail keeps the complete work gallery behind one project route. */
.project-detail-shell { padding-top: 44px; padding-bottom: 126px; }
.project-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.project-back:hover { color: var(--ink); }
.project-intro { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 72px; align-items: end; padding: 54px 0 70px; border-bottom: 1px solid var(--ink); }
.project-intro-copy .eyebrow { justify-content: flex-start; }
.project-intro-copy h1 { max-width: 820px; margin: 0; font-family: var(--display); font-size: clamp(46px, 6vw, 70px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; }
.project-intro-copy > p:not(.eyebrow) { max-width: 720px; margin: 22px 0 0; color: var(--body); font-size: 13px; line-height: 1.8; }
.project-intro-meta { display: grid; justify-items: start; gap: 26px; }
.project-intro-meta dl { width: 100%; margin: 0; border-top: 1px solid var(--line); }
.project-intro-meta dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.project-intro-meta dt { color: var(--muted); font-size: 9px; letter-spacing: .14em; }
.project-intro-meta dd { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 600; }
.project-works { padding-top: 74px; }
.project-works-heading { display: flex; align-items: end; justify-content: space-between; gap: 60px; padding-bottom: 36px; }
.project-works-heading .eyebrow { justify-content: flex-start; }
.project-works-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(36px, 4vw, 48px); font-weight: 600; letter-spacing: -.025em; }
.project-works-heading > p { max-width: 360px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: right; }
.project-vote-actions { margin-top: 28px; }
.project-detail-loading { display: grid; gap: 28px; padding: 72px 0; }
.project-detail-loading span { display: block; height: 68px; background: var(--surface-soft); animation: pulse 1.2s ease-in-out infinite alternate; }
.project-detail-loading span:nth-child(2) { height: 430px; }
.project-detail-loading span:nth-child(3) { width: 38%; margin-left: auto; }
.project-error { min-height: 60vh; }

@media (max-width: 980px) {
  .gallery-hero-layout { grid-template-columns: 1fr; gap: 54px; padding: 74px 0 60px; }
  .gallery-hero-method { display: grid; grid-template-columns: repeat(3, 1fr); }
  .gallery-hero-method p { grid-template-columns: 34px minmax(0, 1fr); padding-right: 18px; border-right: 1px solid var(--line); }
  .gallery-hero-method p:last-child { border-right: 0; }
  .project-entry, .project-entry:nth-child(even) { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 42px; }
  .project-cover { min-height: 310px; }
  .project-intro { grid-template-columns: 1fr; gap: 38px; }
  .project-intro-meta { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
}

@media (max-width: 760px) {
  .gallery-hero-copy h1 { font-size: clamp(42px, 12vw, 64px); }
  .gallery-hero-method { grid-template-columns: 1fr; }
  .gallery-hero-method p { border-right: 0; }
  .project-index-section { padding: 86px 0 96px; }
  .project-entry, .project-entry:nth-child(even) { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 46px; }
  .reveal, .project-entry { animation: none; }
  .project-entry:nth-child(even) .project-cover, .project-entry:nth-child(even) .project-entry-copy { order: initial; }
  .project-cover { min-height: 0; aspect-ratio: 16 / 11; }
  .project-entry-title { margin-top: 24px; }
  .gallery-principle-layout { grid-template-columns: 1fr; gap: 30px; padding: 72px 0; }
  .project-detail-shell { padding-top: 30px; padding-bottom: 92px; }
  .project-intro { padding: 42px 0 54px; }
  .project-intro-meta { grid-template-columns: 1fr; }
  .project-works { padding-top: 56px; }
  .project-works-heading { display: block; }
  .project-works-heading > p { margin-top: 14px; text-align: left; }
}

@media (max-width: 560px) {
  .gallery-hero-layout { min-height: auto; padding: 58px 0 48px; }
  .gallery-hero-copy h1 { font-size: clamp(39px, 11.5vw, 52px); }
  .gallery-hero-copy .primary-button { width: 100%; }
  .project-cover { aspect-ratio: 4 / 3; gap: 5px; }
  .project-entry-kicker { align-items: flex-start; }
  .project-entry-facts { justify-content: space-between; gap: 12px; }
  .project-entry-action { width: 100%; justify-content: space-between; }
  .project-intro-copy h1 { font-size: clamp(40px, 12vw, 54px); }
  .project-intro-meta dl div { padding: 10px 0; }
}
