:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --gallery-paper: #f4f1eb;
  --panel: #fffdf8;
  --ink: #23201c;
  --muted: #6d665c;
  --line: #ded8cf;
  --soft-line: rgba(35, 32, 28, 0.10);
  --accent: #245c53;
  --accent-strong: #173f39;
  --danger: #9d2f2f;
  --success: #24643a;
  --star: #a86c15;
  --shadow: 0 14px 34px rgba(46, 37, 26, 0.10);
  --serif: "Times New Roman", "Noto Serif TC", "Songti TC", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
}

.page-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 18px;
  display: grid;
  place-items: center;
}

.panel {
  width: min(100%, 480px);
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.upload-shell {
  align-items: start;
}

.upload-panel h1 {
  font-size: clamp(1.55rem, 4vw, 1.95rem);
}

.photo-pick-field {
  display: grid;
  gap: 12px;
  margin-bottom: 2px;
}

.photo-pick-field > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.photo-pick-field small {
  color: rgba(109, 102, 92, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

.photo-pick-button {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 96px;
  overflow: hidden;
  border: 1px solid rgba(36, 92, 83, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(246, 242, 234, 0.92));
  color: var(--accent);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.photo-pick-button:hover {
  border-color: var(--accent);
  background: #fffdf8;
  color: var(--accent-strong);
}

.photo-pick-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 850;
}

.photo-pick-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  inset: auto;
  opacity: 0;
  pointer-events: none;
}

.photo-preview-box {
  display: grid;
  gap: 10px;
  margin: 0;
}

.photo-preview-box img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #eee8df;
  border: 1px solid var(--line);
}

.photo-preview-box figcaption {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.photo-preview-box figcaption .text-button {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.photo-preview-box strong {
  color: var(--ink);
  font-weight: 750;
  word-break: break-word;
}

#photoProcessHint {
  grid-column: 1;
  font-size: 0.78rem;
}

.field small {
  color: var(--muted);
  font-weight: 650;
}

.topic-admin {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.review-topic-admin {
  max-width: 520px;
  margin: 28px 0 0;
}

.topic-admin summary {
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.topic-admin-login,
.topic-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.topic-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.topic-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(35, 32, 28, 0.08);
}

.topic-list button {
  width: auto;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.topic-list button:disabled {
  color: var(--accent);
  cursor: default;
}

.topic-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.work-exhibition-panel {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-exhibition-panel > p:first-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

#workExhibitionList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#workExhibitionList label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 750;
}

.exhibition-admin-list .quiet-link {
  text-decoration: none;
  font-weight: 800;
}

.topic-list > .exhibition-admin-item {
  display: grid;
  align-items: stretch;
  grid-template-columns: 1fr auto;
}

.exhibition-admin-item .exhibition-column-tools {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.exhibition-column-chip-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.exhibition-column-chip-list button {
  padding: 4px 8px;
  min-height: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
}

.exhibition-column-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.exhibition-column-form button {
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--accent);
  font-weight: 800;
}

.upload-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.photo-tool {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.photo-tool summary {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.photo-tool-body {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.tool-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.tool-result {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.tool-result img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #eee8df;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tool-result dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.tool-result div {
  padding: 10px;
  border: 1px solid rgba(35, 32, 28, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.tool-result dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.tool-result dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 850;
}

.tool-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.65rem, 5vw, 2.15rem);
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.field,
.review-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
button,
textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
}

input[type="file"] {
  padding: 11px;
}

.photo-pick-button input[type="file"] {
  padding: 0;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  border: 0;
  background: var(--accent);
  color: #fff;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.primary-button:disabled {
  opacity: 0.62;
  cursor: progress;
}

.danger-button {
  border: 1px solid rgba(157, 47, 47, 0.24);
  background: rgba(157, 47, 47, 0.08);
  color: var(--danger);
}

.secondary-button {
  width: auto;
  min-width: 0;
  border: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.member-shell {
  width: min(100%, 960px);
  place-items: start center;
}

.member-login-panel {
  margin: 0 auto;
}

.member-dashboard {
  width: min(100%, 920px);
  display: grid;
  gap: 18px;
}

.member-status-box,
.member-help {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.member-status-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid rgba(37, 34, 30, 0.12);
  border-bottom: 1px solid rgba(37, 34, 30, 0.12);
}

.member-status-box p,
.member-help {
  margin: 0;
}

.member-status-box div {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  white-space: nowrap;
}

.member-status-box strong {
  color: var(--ink);
}

.member-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.member-heading .secondary-button {
  width: auto;
}

.member-password-box {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.member-password-box summary {
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.member-work-list {
  display: grid;
  gap: 18px;
}

.member-work-card {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.member-work-card img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #eee8df;
  border-radius: 6px;
}

.member-work-form {
  display: grid;
  gap: 10px;
}

.deleted-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.deleted-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(35, 32, 28, 0.08);
}

.deleted-item img {
  width: 84px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #eee8df;
}

.deleted-item div {
  display: grid;
  gap: 3px;
}

.deleted-item span,
.muted-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.secondary-button:hover,
.ghost-button:hover,
.text-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ghost-button {
  width: auto;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
}

.text-button {
  display: inline;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover {
  color: var(--accent);
}

.compact-submit {
  width: auto;
  justify-self: start;
}

.quiet-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.quiet-link-spaced {
  margin-left: 14px;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.success-actions .quiet-link {
  margin-top: 0;
}

.status .quiet-link,
.member-status-box .quiet-link {
  margin-top: 0;
}

.photo-top-nav {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(22px, 3vw, 46px) 0;
  color: var(--ink);
}

.photo-top-brand {
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1;
  text-decoration: none;
}

.photo-top-nav nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 0.9rem;
}

.photo-top-nav nav::-webkit-scrollbar {
  display: none;
}

.photo-top-nav a {
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.photo-top-nav a:hover {
  color: var(--accent);
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.status.success {
  color: var(--success);
}

.status.error {
  color: var(--danger);
}

.list-shell {
  width: min(100%, 1120px);
  display: block;
}

.list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 22px;
}

.page-actions {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  overflow-x: auto;
  padding: 6px;
  background: rgba(247, 245, 240, 0.84);
  border: 1px solid rgba(35, 32, 28, 0.08);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  scrollbar-width: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.page-actions::-webkit-scrollbar {
  display: none;
}

.page-actions.is-hidden {
  transform: translateY(-72px);
  opacity: 0;
  pointer-events: none;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
  padding: 10px;
  background: rgba(255, 253, 248, 0.54);
  border: 1px solid rgba(35, 32, 28, 0.08);
  border-radius: 8px;
}

.filter-bar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.filter-bar select {
  min-height: 38px;
  padding: 7px 10px;
}

.timeline-filter {
  grid-template-columns: minmax(220px, 360px) auto;
  justify-content: start;
}

.works-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.score-shell {
  width: min(100%, 1180px);
  place-items: stretch;
}

.score-shell .works-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.score-shell .filter-bar {
  width: 100%;
}

.score-shell .photo-frame {
  max-height: none;
}

.photo-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  grid-auto-flow: dense;
  gap: 10px;
}

.cloud-photo {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #e9e1d5;
  border-radius: 8px;
}

.cloud-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cloud-xl {
  grid-column: span 2;
  grid-row: span 1;
  aspect-ratio: 1 / 1;
}

.cloud-lg {
  grid-column: span 2;
  aspect-ratio: 4 / 3;
}

.cloud-md {
  aspect-ratio: 1 / 1;
}

.cloud-sm {
  aspect-ratio: 1 / 1;
  opacity: 0.82;
}

.gallery-body {
  background:
    linear-gradient(90deg, rgba(35, 32, 28, 0.025) 1px, transparent 1px) 0 0 / 84px 84px,
    var(--gallery-paper);
}

.gallery-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 72px) clamp(18px, 5vw, 56px) 84px;
}

.gallery-hero {
  margin-bottom: clamp(34px, 7vw, 86px);
}

.gallery-kicker,
.section-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.gallery-hero h1 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 11vw, 8rem);
  font-weight: 500;
  letter-spacing: 0;
}

.gallery-hero p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  line-height: 1.9;
}

.gallery-manage {
  position: relative;
  justify-self: end;
}

.gallery-manage summary,
.gallery-filters summary,
.curator-pill,
.gallery-tool-button {
  width: auto;
  min-height: 36px;
  border: 1px solid rgba(35, 32, 28, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.52);
  color: var(--ink);
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}

.gallery-manage summary::-webkit-details-marker,
.gallery-filters summary::-webkit-details-marker {
  display: none;
}

.gallery-manage nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 156px;
  padding: 10px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(35, 32, 28, 0.12);
  box-shadow: 0 18px 42px rgba(46, 37, 26, 0.12);
}

.gallery-manage nav a {
  padding: 9px 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

.gallery-manage nav a:hover {
  color: var(--accent);
}

.featured-story {
  margin-bottom: clamp(36px, 7vw, 88px);
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(22px, 5vw, 68px);
  align-items: end;
  margin-top: 16px;
}

.featured-photo {
  margin: 0;
  overflow: hidden;
  background: #e7e0d6;
  aspect-ratio: 16 / 10;
}

.featured-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.featured-copy {
  padding-bottom: 10px;
}

.featured-copy h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6vw, 4.8rem);
  font-weight: 500;
}

.featured-copy p {
  margin: 12px 0 0;
  color: var(--muted);
}

.featured-copy blockquote {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.28rem, 3.5vw, 2.2rem);
  line-height: 1.55;
}

.curator-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: clamp(30px, 5vw, 58px);
  padding-top: 18px;
  border-top: 1px solid rgba(35, 32, 28, 0.16);
}

.curator-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.curator-chips::-webkit-scrollbar {
  display: none;
}

.curator-pill {
  flex: 0 0 auto;
  background: transparent;
}

.curator-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.gallery-filters {
  position: relative;
}

.gallery-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  display: grid;
  gap: 12px;
  width: min(82vw, 340px);
  padding: 16px;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(35, 32, 28, 0.12);
  box-shadow: 0 18px 42px rgba(46, 37, 26, 0.12);
}

.gallery-filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.gallery-filter-panel select {
  min-height: 38px;
  border-radius: 0;
}

.gallery-tool-button {
  border-radius: 0;
  background: transparent;
  color: var(--accent);
}

.gallery-status {
  margin: 0 0 24px;
}

.editorial-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(16px, 2.8vw, 34px);
  align-items: start;
}

.editorial-item {
  position: relative;
  grid-column: span 4;
  margin: 0;
}

.editorial-wide {
  grid-column: span 6;
}

.editorial-tall {
  grid-column: span 4;
}

.editorial-lead {
  grid-column: span 7;
}

.editorial-item figure {
  margin: 0;
}

.editorial-item img {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  object-fit: contain;
  background: #e7e0d6;
  transition: transform 700ms ease, opacity 700ms ease;
}

.editorial-wide img {
  max-height: 420px;
}

.editorial-tall img {
  max-height: 620px;
}

.editorial-lead img {
  max-height: 620px;
}

.editorial-item:hover img {
  transform: scale(1.018);
}

.editorial-item figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.editorial-item figcaption strong {
  color: var(--ink);
  font-weight: 750;
}

.editorial-item figcaption span {
  text-align: right;
}

.editorial-note {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 42px;
  margin: 0;
  padding: 12px 14px;
  background: rgba(247, 245, 240, 0.84);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
  font-size: 0.9rem;
  line-height: 1.65;
}

.editorial-item:hover .editorial-note {
  opacity: 1;
  transform: translateY(0);
}

.exhibition-body {
  background: #f3f0ea;
}

.exhibition-page {
  min-height: 100vh;
}

.exhibition-cover {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #e4ddd2;
  color: #f7f3ea;
}

.cover-image-wrap {
  position: absolute;
  inset: 0;
}

.cover-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 18, 15, 0.48), rgba(20, 18, 15, 0.08) 36%, rgba(20, 18, 15, 0.58)),
    linear-gradient(90deg, rgba(20, 18, 15, 0.42), transparent 52%);
}

.cover-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.exhibition-cover.is-empty .cover-image-wrap {
  background: #d8d0c4;
}

.exhibition-cover.is-empty .cover-image-wrap img {
  display: none;
}

.exhibition-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 4vw, 42px);
}

.exhibition-brand {
  display: grid;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.exhibition-brand span:first-child {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.exhibition-brand span:last-child {
  font-family: var(--serif);
  font-size: 0.82rem;
  opacity: 0.78;
}

.exhibition-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.8vw, 32px);
  color: inherit;
  font-size: 0.9rem;
}

.exhibition-nav a,
.exhibition-nav button,
.exhibition-manage > button {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.82;
}

.exhibition-nav a:hover,
.exhibition-nav button:hover,
.exhibition-manage > button:hover {
  opacity: 1;
}

.exhibition-manage {
  position: relative;
}

.exhibition-manage div {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: grid;
  min-width: 132px;
  padding: 10px 0;
  background: rgba(247, 243, 234, 0.94);
  color: var(--ink);
}

.exhibition-manage div a {
  padding: 8px 14px;
  color: inherit;
}

.is-focus-open {
  overflow: hidden;
}

.focus-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(18, 16, 13, 0.96);
  color: #f7f3ea;
}

.focus-viewer[hidden] {
  display: none;
}

.focus-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 101;
  width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f7f3ea;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.focus-fullscreen {
  position: fixed !important;
  top: 25px;
  right: 82px;
  z-index: 101;
  width: 34px !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(247, 243, 234, 0.86) !important;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.focus-fullscreen:hover {
  color: #f7f3ea;
}

.save-hint {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 105;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(18, 17, 15, 0.78);
  color: #fffdf8;
  font-size: 0.92rem;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.focus-nav {
  position: fixed;
  top: 50%;
  z-index: 101;
  width: 46px;
  min-height: 64px;
  border: 0;
  background: rgba(247, 243, 234, 0.12);
  color: #f7f3ea;
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
}

.focus-nav:disabled {
  opacity: 0.24;
  cursor: default;
}

.focus-prev {
  left: 18px;
}

.focus-next {
  right: 18px;
}

.focus-viewer figure {
  width: min(100%, 1180px);
  max-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(20px, 4vw, 52px);
  align-items: end;
  margin: 0;
}

.focus-viewer img {
  width: 100%;
  max-height: 88vh;
  display: block;
  object-fit: contain;
}

.focus-viewer figcaption {
  max-height: 88vh;
  overflow-y: auto;
  padding-bottom: 8px;
}

.focus-viewer figcaption p {
  margin: 0;
  color: rgba(247, 243, 234, 0.72);
  font-size: 0.9rem;
}

.focus-viewer h2 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 3.4rem);
  font-weight: 500;
}

.focus-viewer blockquote {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.focus-tool-button,
.focus-like-button {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(247, 243, 234, 0.8);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.focus-tool-button:hover,
.focus-like-button:hover,
.focus-like-button.is-liked {
  color: #f7f3ea;
}

.focus-engagement {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 243, 234, 0.18);
}

.focus-like-button {
  justify-self: start;
  font-size: 1.05rem;
}

.focus-status,
.focus-empty-comment {
  min-height: 0;
  margin: 0;
  color: rgba(247, 243, 234, 0.62);
  font-size: 0.88rem;
}

.focus-comments {
  display: grid;
  gap: 10px;
  max-height: 160px;
  overflow-y: auto;
}

.focus-comments article {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(247, 243, 234, 0.12);
}

.focus-comments strong {
  color: #f7f3ea;
  font-size: 0.9rem;
}

.focus-comments p,
.focus-comments span {
  margin: 0;
  color: rgba(247, 243, 234, 0.72);
  font-size: 0.9rem;
  line-height: 1.6;
}

.focus-comments span {
  color: rgba(247, 243, 234, 0.48);
  font-size: 0.78rem;
}

.focus-comment-form {
  display: grid;
  gap: 8px;
}

.focus-comment-form input,
.focus-comment-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(247, 243, 234, 0.32);
  border-radius: 0;
  background: transparent;
  color: #f7f3ea;
  font: inherit;
}

.focus-comment-form input::placeholder,
.focus-comment-form textarea::placeholder {
  color: rgba(247, 243, 234, 0.46);
}

.focus-viewer.is-photo-only {
  padding: 0;
  background: #000;
}

.focus-viewer.is-photo-only figure {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  max-height: none;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
}

.focus-viewer.is-photo-only img {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  max-height: none;
  object-fit: contain;
}

.focus-viewer.is-photo-only figcaption,
.focus-viewer.is-photo-only .focus-nav {
  display: none;
}

.cover-caption {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 6vw, 76px);
  bottom: clamp(28px, 8vw, 86px);
  width: min(640px, calc(100% - 44px));
}

.cover-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.cover-caption h1 {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 12vw, 9.5rem);
  font-weight: 500;
  letter-spacing: 0;
}

.cover-caption p,
.cover-caption blockquote {
  text-shadow: 0 1px 18px rgba(20, 18, 15, 0.28);
}

#coverMeta {
  margin: 10px 0 0;
  font-size: clamp(0.95rem, 2vw, 1.18rem);
  opacity: 0.86;
}

.cover-caption blockquote {
  max-width: 520px;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  font-family: var(--serif);
  font-size: clamp(1.22rem, 3vw, 2rem);
  line-height: 1.55;
}

.exhibition-controls,
.magazine-grid,
.exhibition-status {
  width: min(100% - 36px, 1180px);
  margin-left: auto;
  margin-right: auto;
}

.exhibition-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: clamp(34px, 6vw, 70px) 0 clamp(26px, 5vw, 54px);
}

.exhibition-topics {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  overflow-x: auto;
  scrollbar-width: none;
}

.exhibition-topics::-webkit-scrollbar {
  display: none;
}

.topic-link,
.exhibition-filter-drawer summary,
.filter-reset {
  flex: 0 0 auto;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 750;
  cursor: pointer;
}

.topic-link.is-active {
  color: var(--ink);
}

.exhibition-filter-drawer {
  position: relative;
}

.exhibition-filter-drawer summary {
  color: var(--ink);
  list-style: none;
}

.exhibition-filter-drawer summary::-webkit-details-marker {
  display: none;
}

.exhibition-filter-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 10;
  display: grid;
  gap: 14px;
  width: min(84vw, 340px);
  padding: 18px;
  background: rgba(247, 243, 234, 0.98);
  border-top: 1px solid rgba(35, 32, 28, 0.18);
  border-bottom: 1px solid rgba(35, 32, 28, 0.18);
}

.exhibition-filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.exhibition-filter-panel select {
  min-height: 38px;
  border-radius: 0;
  background: transparent;
}

.filter-reset {
  justify-self: start;
  color: var(--accent);
}

.exhibition-status {
  margin-top: 0;
  margin-bottom: 22px;
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(24px, 4vw, 54px) clamp(18px, 3vw, 34px);
  align-items: start;
  padding-bottom: 90px;
}

.magazine-piece {
  position: relative;
  grid-column: span 4;
}

.piece-hero {
  grid-column: span 7;
}

.piece-wide {
  grid-column: span 6;
}

.piece-portrait {
  grid-column: span 4;
}

.piece-small {
  grid-column: span 3;
}

.magazine-piece figure {
  margin: 0;
}

.magazine-piece img {
  width: 100%;
  height: auto;
  max-height: 640px;
  display: block;
  object-fit: contain;
  background: #e4ddd2;
  transition: transform 700ms ease, opacity 700ms ease;
}

.piece-wide img {
  max-height: 460px;
}

.piece-small img {
  max-height: 360px;
}

.magazine-piece:hover img {
  transform: scale(1.012);
}

.magazine-piece figcaption {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.magazine-piece figcaption span:first-child {
  color: var(--ink);
  font-weight: 750;
}

.piece-note {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 54px;
  margin: 0;
  padding: 12px 14px;
  background: rgba(243, 240, 234, 0.86);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
  font-size: 0.9rem;
  line-height: 1.65;
}

.magazine-piece:hover .piece-note {
  opacity: 1;
  transform: translateY(0);
}

.malibu-body {
  background: #fbfaf7;
  color: #25221e;
}

.malibu-page {
  width: 100%;
  margin: 0;
  padding: 26px clamp(22px, 3vw, 46px) 90px;
}

.malibu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 78px);
}

.malibu-brand {
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1;
  text-decoration: none;
}

.malibu-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  font-size: 0.9rem;
}

.malibu-nav a,
.malibu-nav button,
.malibu-manage > button {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.malibu-nav a:hover,
.malibu-nav button:hover,
.malibu-manage > button:hover {
  color: var(--accent);
}

.malibu-manage {
  position: relative;
}

.malibu-manage div {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 128px;
  padding: 8px 0;
  background: rgba(251, 250, 247, 0.98);
  border-top: 1px solid rgba(37, 34, 30, 0.18);
  border-bottom: 1px solid rgba(37, 34, 30, 0.18);
}

.malibu-manage div[hidden] {
  display: none;
}

.malibu-manage div a {
  padding: 8px 12px;
  white-space: nowrap;
}

.malibu-intro {
  display: none;
}

.malibu-intro p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.malibu-intro h1 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.4vw, 3.15rem);
  font-weight: 400;
  line-height: 1.35;
}

.malibu-controls {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 34px);
  margin-bottom: clamp(38px, 5vw, 64px);
  padding: 0 clamp(24px, 2.5vw, 48px);
}

.malibu-topics {
  display: flex;
  gap: clamp(14px, 2.8vw, 34px);
  overflow-x: auto;
  scrollbar-width: none;
}

.malibu-topics::-webkit-scrollbar {
  display: none;
}

.malibu-topic,
.malibu-filter summary,
.filter-reset {
  flex: 0 0 auto;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.malibu-topic.is-active,
.malibu-filter summary {
  color: var(--ink);
}

.malibu-filter {
  position: relative;
  flex: 0 0 auto;
}

.malibu-filter summary {
  list-style: none;
}

.malibu-filter summary::-webkit-details-marker {
  display: none;
}

.malibu-filter-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 15;
  display: grid;
  gap: 12px;
  width: min(84vw, 320px);
  padding: 18px;
  background: rgba(251, 250, 247, 0.98);
  border-top: 1px solid rgba(37, 34, 30, 0.18);
  border-bottom: 1px solid rgba(37, 34, 30, 0.18);
}

.malibu-filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.malibu-filter-panel select {
  border-radius: 0;
  background: transparent;
}

.malibu-status {
  width: min(100%, 900px);
  margin: 0 auto 22px;
  text-align: center;
}

.malibu-stream {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.35vw, 24px);
  padding: 0;
}

.malibu-piece {
  display: block;
  width: 100%;
  margin: 0;
  cursor: zoom-in;
}

.malibu-piece.is-large {
  grid-column: auto;
}

.malibu-piece.is-offset {
  grid-column: auto;
}

.malibu-piece.is-narrow {
  grid-column: auto;
}

.malibu-piece img {
  width: 100%;
  height: auto;
  display: block;
  background: #eee8df;
}

.malibu-piece p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 180ms ease;
}

.malibu-piece:hover p {
  opacity: 1;
}

.malibu-piece strong {
  color: var(--ink);
  font-weight: 500;
}

.malibu-piece span {
  text-align: right;
}

.exhibit-body {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  background: #342821;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.exhibit-shell {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: clamp(18px, 3vw, 34px) clamp(18px, 3vw, 42px) 34px;
}

.exhibit-body .photo-top-nav {
  color: #f7f1e9;
  padding-top: 18px;
}

.exhibit-body .photo-top-nav a:hover {
  color: #d7c5ad;
}

.exhibit-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.exhibit-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 500;
  color: #f7f1e9;
}

.exhibit-shell > .status {
  color: rgba(247, 241, 233, 0.74);
}

.exhibit-header p:last-child {
  max-width: 440px;
  margin: 0;
  color: rgba(247, 241, 233, 0.68);
  line-height: 1.8;
}

.personal-header {
  align-items: stretch;
  margin-bottom: 0;
}

.personal-shell {
  grid-template-rows: auto minmax(0, 1fr);
  padding-top: clamp(10px, 2vw, 22px);
}

.personal-shell > .status:empty {
  display: none;
}

.personal-board {
  padding-top: 0;
}

.personal-awards {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 8px;
  width: min(100%, 360px);
}

.personal-awards article {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 72px;
  padding: 9px 12px;
  color: #f7f1e9;
  border: 1px solid rgba(247, 241, 233, 0.22);
  background: rgba(247, 241, 233, 0.08);
}

.personal-awards span {
  color: rgba(247, 241, 233, 0.62);
  font-size: 0.7rem;
  font-weight: 850;
}

.personal-awards strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.personal-awards p {
  margin: 0;
  color: rgba(247, 241, 233, 0.72);
  font-size: 0.74rem;
}

.exhibition-index-shell {
  overflow-y: auto;
  display: block;
}

.exhibition-index-header {
  margin: clamp(18px, 4vw, 52px) 0 clamp(28px, 5vw, 64px);
}

.exhibition-index-header .eyebrow {
  color: rgba(247, 241, 233, 0.64);
}

.exhibition-index-header p:last-child {
  color: rgba(247, 241, 233, 0.72);
}

.exhibition-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(18px, 3vw, 34px);
  padding-bottom: 56px;
}

.exhibition-index-card {
  display: grid;
  gap: 16px;
  min-height: 420px;
  color: #f8f5ef;
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 241, 233, 0.24);
  transition: transform 200ms ease, opacity 200ms ease;
}

.exhibition-index-card:hover,
.exhibition-index-card:focus-visible {
  outline: 0;
  transform: translateY(-4px);
}

.exhibition-index-card figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  background: rgba(247, 241, 233, 0.13);
  overflow: hidden;
}

.exhibition-index-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exhibition-index-card.is-empty figure::before {
  content: "等待第一張作品";
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(247, 241, 233, 0.5);
  font-weight: 800;
}

.exhibition-index-card div {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
}

.exhibition-index-card .eyebrow {
  color: rgba(247, 241, 233, 0.58);
}

.exhibition-index-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 500;
}

.exhibition-index-card p:last-child {
  margin: 0;
  color: rgba(247, 241, 233, 0.68);
  line-height: 1.8;
}

.exhibit-board {
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 2px 22px;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  scroll-padding-inline: clamp(18px, 3vw, 42px);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.exhibit-board::-webkit-scrollbar {
  height: 10px;
}

.exhibit-board::-webkit-scrollbar-thumb {
  background: rgba(247, 241, 233, 0.26);
}

.exhibit-column {
  flex: 0 0 clamp(340px, 29vw, 430px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  padding: 16px;
  background: rgba(247, 241, 233, 0.9);
  border: 1px solid rgba(255, 253, 248, 0.24);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.exhibit-column > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(35, 32, 28, 0.12);
}

.exhibit-column h2 {
  font-size: 1.08rem;
  font-weight: 850;
}

.personal-column > header {
  align-items: start;
}

.personal-column-rank {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.exhibit-column header span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.exhibit-card-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(35, 32, 28, 0.22) transparent;
}

.exhibit-card-list::-webkit-scrollbar {
  width: 8px;
}

.exhibit-card-list::-webkit-scrollbar-thumb {
  background: rgba(35, 32, 28, 0.18);
}

.exhibit-card {
  display: grid;
  gap: 9px;
  padding: 10px;
  background: #fffdf8;
  border: 1px solid rgba(35, 32, 28, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.exhibit-card:hover,
.exhibit-card:focus-visible {
  border-color: rgba(36, 92, 83, 0.42);
  outline: 0;
  transform: translateY(-2px);
}

.exhibit-card img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #f8f5ee;
}

.exhibit-card.is-portrait {
  width: min(100%, 330px);
  justify-self: center;
}

.exhibit-card.is-portrait img {
  max-height: min(58vh, 430px);
  background: #fffdf8;
}

.exhibit-card h3 {
  font-size: 0.98rem;
  font-weight: 850;
}

.exhibit-card p,
.exhibit-empty {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.personal-card small {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
}

.personal-like-button {
  justify-self: start;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 253, 248, 0.28);
  background: transparent;
  color: #fffdf8;
  font-size: 1.08rem;
  font-weight: 850;
}

.personal-like-button.is-liked {
  color: #f0c36a;
  border-color: rgba(240, 195, 106, 0.45);
}

.exhibit-add-photo,
.exhibit-add-column > button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px dashed rgba(35, 32, 28, 0.22);
  background: rgba(255, 253, 248, 0.54);
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.exhibit-add-photo:hover,
.exhibit-add-column > button:hover {
  border-color: var(--accent);
  background: #fff;
}

.exhibit-add-column {
  min-height: 132px;
  background: rgba(247, 241, 233, 0.28);
  border-color: rgba(255, 253, 248, 0.22);
}

.exhibit-add-column form {
  display: grid;
  gap: 10px;
}

.work-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(18, 17, 15, 0.94);
  color: #fffdf8;
  overflow-y: auto;
}

.work-lightbox[hidden] {
  display: none;
}

.work-lightbox img {
  display: block;
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

.work-lightbox article {
  display: grid;
  gap: 12px;
  max-height: 88vh;
  overflow-y: auto;
  padding-right: 4px;
}

.work-lightbox h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 500;
}

.work-lightbox p {
  margin: 0;
  color: rgba(255, 253, 248, 0.68);
}

.work-lightbox blockquote {
  margin: 10px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 253, 248, 0.18);
  font-size: 1.05rem;
  line-height: 1.8;
}

.exhibit-teacher-note {
  color: #fffdf8;
}

.exhibit-engagement {
  display: grid;
  gap: 13px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 253, 248, 0.16);
}

.exhibit-engagement .focus-comment-form {
  gap: 12px;
}

.exhibit-engagement .focus-comment-form input,
.exhibit-engagement .focus-comment-form textarea {
  display: block;
  min-width: 0;
  min-height: 42px;
  padding: 8px 0;
  writing-mode: horizontal-tb;
  line-height: 1.45;
  white-space: normal;
}

.exhibit-engagement .focus-comment-form textarea {
  min-height: 72px;
}

.exhibit-engagement .focus-comment-form .focus-tool-button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
  border: 1px solid rgba(247, 243, 234, 0.34);
  background: rgba(247, 243, 234, 0.1);
  color: #f7f3ea;
  font-size: 0.96rem;
}

.exhibit-engagement .focus-comment-form .focus-tool-button:hover {
  background: rgba(247, 243, 234, 0.16);
}

.exhibit-rating-panel {
  display: grid;
  gap: 7px;
}

.exhibit-rating-panel p,
.exhibit-rating-panel span {
  margin: 0;
  color: rgba(255, 253, 248, 0.62);
  font-size: 0.86rem;
}

.exhibit-star-row {
  display: flex;
  gap: 4px;
  align-items: center;
}

.exhibit-star-button {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: rgba(255, 253, 248, 0.46);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.exhibit-star-button.is-active,
.exhibit-star-button:hover {
  color: #e0b46a;
}

.focus-comments article > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.focus-comments article > div strong {
  flex: 1 1 auto;
  min-width: 0;
  writing-mode: horizontal-tb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comment-delete-button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: rgba(247, 243, 234, 0.46);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
}

.comment-delete-button:hover {
  color: #f7f3ea;
}

.work-card,
.review-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(46, 37, 26, 0.08);
}

.photo-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  max-height: 320px;
  background: #e9e1d5;
}

.photo-frame img,
.book-photo img,
.thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-error {
  margin: 0;
  padding: 16px;
  color: var(--danger);
  text-align: center;
  font-weight: 700;
}

.work-meta {
  padding: 14px;
}

.work-meta h2 {
  font-size: 1.06rem;
}

.work-meta p,
.timeline-meta p,
.book-page-meta p {
  margin: 7px 0 0;
  color: var(--muted);
}

.rating-line {
  color: var(--star) !important;
  letter-spacing: 1px;
  font-weight: 900;
}

.teacher-comment {
  padding-top: 8px;
  color: var(--ink) !important;
  line-height: 1.6;
}

.teacher-comment::before {
  content: "老師：";
  color: var(--muted);
  font-weight: 800;
}

.timeline-list {
  display: grid;
  gap: 28px;
  margin-top: 10px;
}

.timeline-student {
  padding: 18px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(46, 37, 26, 0.07);
}

.student-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 14px;
}

.student-heading h2 {
  font-size: clamp(1.32rem, 4vw, 1.82rem);
}

.thumb-timeline {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  margin-bottom: 12px;
}

.thumb-link {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.thumb-link span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(35, 32, 28, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.timeline-item h3 {
  margin: 4px 0 0;
  font-size: 1.02rem;
}

.timeline-rail {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  scroll-margin-top: 96px;
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-photo {
  width: 138px;
}

.timeline-meta .topic {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.timeline-meta .date {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.review-login {
  margin: 0 auto 20px;
}

.review-panel[hidden],
.review-album[hidden] {
  display: none;
}

.review-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.review-form h2 {
  font-size: 1.05rem;
}

.review-meta {
  margin: -6px 0 0;
  color: var(--muted);
}

.review-student-note {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid rgba(35, 32, 28, 0.12);
  border-bottom: 1px solid rgba(35, 32, 28, 0.12);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.75;
}

.review-album-shell {
  width: min(100%, 1080px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
}

.review-album-header {
  order: 1;
  margin-bottom: 14px;
}

#loginPanel {
  order: 2;
}

#teacherTools {
  order: 4;
}

#reviewPanel {
  order: 3;
}

#reviewFilters {
  order: 5;
}

#reviewAdminTools {
  order: 6;
}

#statusMessage {
  order: 7;
}

.review-teacher-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(35, 32, 28, 0.1);
  border-bottom: 1px solid rgba(35, 32, 28, 0.1);
}

.review-teacher-tools .eyebrow,
.review-teacher-tools .quiet-link {
  margin: 0;
}

.review-filter-bar {
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto auto;
  margin: 18px 0;
}

.review-admin-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.review-admin-tools .review-topic-admin {
  max-width: none;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
}

.review-album {
  position: relative;
  display: grid;
  --review-photo-height: min(62dvh, 640px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

body.is-rating-focus-open {
  overflow: hidden;
}

.review-album.is-rating-focus {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  width: 100vw;
  height: 100dvh;
  padding: max(14px, env(safe-area-inset-top)) 18px max(14px, env(safe-area-inset-bottom));
  --review-photo-height: calc(100dvh - max(28px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  background: #17120e;
  overflow: hidden;
  align-items: stretch;
}

.rating-focus-close {
  display: none;
}

.review-album.is-rating-focus .rating-focus-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 18px;
  z-index: 930;
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: rgba(23, 18, 14, 0.58);
  color: #fffdf8;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.review-album.is-rating-focus .album-stage {
  width: 100%;
  height: auto;
  max-height: var(--review-photo-height);
  display: grid;
  place-items: center;
  justify-self: stretch;
  align-self: center;
  background: #0f0d0b;
  border-radius: 8px;
}

.review-album.is-rating-focus .album-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--review-photo-height);
}

.review-album.is-rating-focus .album-review-panel {
  max-height: var(--review-photo-height);
  overflow: auto;
  background: rgba(255, 253, 248, 0.96);
  border-color: rgba(255, 253, 248, 0.18);
}

.album-stage {
  height: var(--review-photo-height);
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0f0d0b;
  border-radius: 8px;
  touch-action: pan-y;
  cursor: zoom-in;
}

.album-stage img {
  width: 100%;
  height: auto;
  max-height: var(--review-photo-height);
  object-fit: contain;
  display: block;
}

.album-review-panel {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.album-review-panel textarea {
  min-height: 120px;
}

.rating-quick-row {
  order: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.rating-quick-row .eyebrow,
.rating-quick-row h2 {
  margin: 0;
}

.rating-quick-row h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#albumCounter {
  order: 1;
}

#albumTitle {
  order: 2;
}

#albumMeta {
  order: 3;
}

#starPicker {
  order: 3;
}

#teacherComment {
  order: 4;
}

.album-actions {
  order: 5;
}

#albumStudentNote {
  order: 7;
}

#workExhibitionPanel {
  order: 8;
}

.album-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.album-actions .status {
  margin: 0;
}

body.is-critique-open {
  overflow: hidden;
}

.critique-viewer[hidden] {
  display: none;
}

.critique-viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #15130f;
  color: #f8f5ef;
}

.critique-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: max(14px, env(safe-area-inset-top)) 18px 12px;
  border-bottom: 1px solid rgba(248, 245, 239, 0.14);
  background: rgba(21, 19, 15, 0.94);
}

.critique-toolbar strong {
  max-width: 18rem;
  overflow: hidden;
  color: #fffdf8;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.critique-tool-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.critique-tool-button,
.critique-icon-button,
.critique-close {
  border: 1px solid rgba(248, 245, 239, 0.22);
  background: rgba(248, 245, 239, 0.08);
  color: #f8f5ef;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.critique-icon-button,
.critique-close {
  width: 38px;
  padding: 0;
  font-size: 1.15rem;
}

.critique-close {
  margin-left: auto;
  border-color: transparent;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
}

.critique-tool-button.is-active,
.critique-icon-button:active {
  border-color: rgba(248, 245, 239, 0.6);
  background: rgba(248, 245, 239, 0.2);
}

.critique-color {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid rgba(248, 245, 239, 0.24);
  border-radius: 999px;
  background: var(--critique-color);
  cursor: pointer;
}

.critique-color.is-active {
  border-color: #fffdf8;
  box-shadow: 0 0 0 3px rgba(248, 245, 239, 0.16);
}

#critiqueZoomLabel {
  min-width: 46px;
  color: rgba(248, 245, 239, 0.72);
  font-size: 0.86rem;
  text-align: center;
}

.critique-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 16px;
  touch-action: none;
  cursor: crosshair;
}

.critique-stage.is-panning {
  cursor: grab;
}

.critique-stage.is-panning:active {
  cursor: grabbing;
}

.critique-image-layer {
  position: relative;
  display: inline-block;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 112px);
  transform-origin: center center;
  will-change: transform;
}

.critique-image-layer img {
  display: block;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 112px);
  width: auto;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.critique-image-layer canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.album-arrow {
  position: absolute;
  top: calc(var(--review-photo-height) / 2);
  z-index: 5;
  width: 40px;
  min-height: 58px;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 253, 248, 0.76);
  color: rgba(35, 32, 28, 0.86);
  font-size: 2rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.album-arrow:disabled {
  opacity: 0.18;
  cursor: default;
}

.album-prev {
  left: 12px;
}

.album-next {
  right: 378px;
}

.review-album.is-rating-focus .album-next {
  right: 440px;
}

.review-album.is-rating-focus .album-arrow {
  top: calc(max(14px, env(safe-area-inset-top)) + (var(--review-photo-height) / 2));
}

.star-picker {
  display: grid !important;
  grid-template-columns: repeat(5, 38px);
  gap: 6px;
  align-items: center;
  width: max-content;
  max-width: 100%;
}

.star-button {
  flex: 0 0 38px;
  width: 38px !important;
  min-width: 38px;
  min-height: 38px !important;
  border: 0;
  background: transparent;
  color: #c9b8a2;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.star-button.is-active {
  color: var(--star);
}

.book-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 18px;
}

.book-actions {
  position: fixed;
  top: 14px;
  right: 18px;
}

.book-status {
  margin-top: 80px;
}

.book-page {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: center;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.book-cover {
  min-height: 96vh;
}

.book-photo {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e9e1d5;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cover-photo {
  aspect-ratio: 3 / 4;
}

.book-cover-text h1,
.book-page-meta h2 {
  font-size: clamp(2rem, 7vw, 4rem);
}

.book-page-meta blockquote {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  line-height: 1.8;
  color: var(--ink);
}

.book-empty {
  min-height: 80vh;
  display: grid;
  place-content: center;
  text-align: center;
}

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 14px;
  }

  .panel {
    padding: 22px;
  }

  .upload-panel h1 {
    font-size: 1.55rem;
  }

  .photo-pick-button {
    min-height: 82px;
  }

  .photo-pick-button span {
    min-height: 40px;
    padding: 0 20px;
  }

  .photo-preview-box img {
    max-height: 260px;
  }

  .photo-preview-box figcaption {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .photo-preview-box figcaption .text-button,
  #photoProcessHint {
    grid-row: auto;
    grid-column: auto;
  }

  .list-header,
  .student-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 5px;
    scrollbar-width: none;
  }

  .page-actions::-webkit-scrollbar {
    display: none;
  }

  .secondary-button,
  .ghost-button {
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .filter-bar,
  .timeline-filter {
    grid-template-columns: 1fr;
  }

  .filter-bar .ghost-button {
    width: 100%;
  }

  .photo-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .cloud-xl,
  .cloud-lg {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 1 / 1;
  }

  .cloud-md,
  .cloud-sm {
    aspect-ratio: 1 / 1;
  }

  .photo-frame {
    max-height: 220px;
  }

  .score-shell {
    width: 100%;
    padding: 20px 16px 64px;
  }

  .score-shell .works-grid {
    grid-template-columns: 1fr;
  }

  .timeline-student {
    padding: 14px;
  }

  .timeline-item {
    grid-template-columns: 96px 1fr;
    gap: 10px;
  }

  .timeline-photo {
    width: 96px;
  }

  .book-actions {
    left: 14px;
    right: 14px;
  }

  .book-page {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 54px 0;
  }

  .review-album-shell {
    padding: 18px 14px;
  }

  .review-album {
    --review-photo-height: min(44dvh, 420px);
    grid-template-columns: 1fr;
  }

  .review-album.is-rating-focus {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) var(--rating-panel-height);
    gap: 0;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    --rating-panel-height: 188px;
    --review-photo-height: calc(100dvh - var(--rating-panel-height) - max(20px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    overflow: hidden;
    align-items: stretch;
  }

  .review-admin-tools {
    grid-template-columns: 1fr;
  }

  .album-stage {
    height: var(--review-photo-height);
    min-height: 0;
  }

  .review-album.is-rating-focus .album-stage {
    width: 100%;
    height: auto;
    max-height: var(--review-photo-height);
    justify-self: stretch;
    align-self: center;
    min-height: 0;
    border-radius: 8px 8px 0 0;
  }

  .album-review-panel {
    align-content: start;
    padding: 12px;
    gap: 9px;
  }

  .review-album.is-rating-focus .album-review-panel {
    max-height: var(--rating-panel-height);
    min-height: 0;
    overflow: auto;
    border-radius: 0 0 8px 8px;
    padding: 10px 12px;
    gap: 8px;
  }

  .review-album.is-rating-focus .album-review-panel h2 {
    font-size: 1rem;
  }

  .review-album.is-rating-focus .review-meta,
  .review-album.is-rating-focus #albumStudentNote,
  .review-album.is-rating-focus #workExhibitionPanel,
  .review-album.is-rating-focus #openCurrentPhotoButton,
  .review-album.is-rating-focus #saveToAlbumButton,
  .review-album.is-rating-focus #teacherDeleteButton {
    display: none;
  }

  .review-album.is-rating-focus .star-picker {
    grid-template-columns: repeat(5, 28px);
    gap: 4px;
  }

  .review-album.is-rating-focus .star-button {
    width: 28px !important;
    min-width: 28px;
    min-height: 28px !important;
    font-size: 1.55rem;
  }

  .review-album.is-rating-focus .album-review-panel textarea {
    min-height: 48px;
  }

  .review-album.is-rating-focus .album-actions {
    gap: 8px;
  }

  .album-review-panel h2 {
    font-size: 1.35rem;
  }

  .star-picker {
    gap: 8px;
  }

  .album-arrow {
    top: calc(var(--review-photo-height) / 2);
    width: 36px;
    min-height: 54px;
  }

  .album-prev {
    left: 8px;
  }

  .album-next {
    right: 8px;
  }

  .review-album.is-rating-focus .album-next {
    right: 8px;
  }

  .review-album.is-rating-focus .album-arrow {
    top: calc(max(10px, env(safe-area-inset-top)) + (var(--review-photo-height) / 2));
  }

  .review-album.is-rating-focus .rating-focus-close {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    width: 38px;
    min-height: 38px;
    font-size: 1.7rem;
  }

  .critique-toolbar {
    align-items: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding: max(10px, env(safe-area-inset-top)) 12px 10px;
    scrollbar-width: none;
  }

  .critique-toolbar::-webkit-scrollbar {
    display: none;
  }

  .critique-toolbar strong {
    max-width: 9rem;
    flex: 0 0 auto;
    font-size: 0.95rem;
    line-height: 36px;
  }

  .critique-tool-group {
    flex: 0 0 auto;
  }

  .critique-tool-button,
  .critique-icon-button,
  .critique-close {
    min-height: 34px;
    font-size: 0.86rem;
  }

  .critique-close {
    position: sticky;
    right: 0;
    margin-left: 0;
    background: #15130f;
  }

  .critique-stage {
    padding: 10px;
  }

  .critique-image-layer,
  .critique-image-layer img {
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 92px);
  }

  .cover-photo {
    aspect-ratio: 4 / 3;
  }

  .book-cover-text h1,
  .book-page-meta h2 {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }
}

@media (max-width: 820px) {
  .gallery-page {
    padding: 34px 18px 72px;
  }

  .gallery-hero {
    margin-bottom: 42px;
  }

  .gallery-hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-hero h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .gallery-manage {
    justify-self: start;
  }

  .gallery-manage nav {
    left: 0;
    right: auto;
  }

  .featured-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .featured-photo {
    aspect-ratio: auto;
  }

  .featured-photo img {
    height: auto;
    max-height: 58vh;
    object-fit: contain;
  }

  .featured-copy h2 {
    font-size: clamp(2rem, 11vw, 3.8rem);
  }

  .curator-bar {
    grid-template-columns: 1fr auto;
    align-items: start;
    margin-bottom: 34px;
  }

  .curator-chips {
    padding-bottom: 4px;
  }

  .gallery-filter-panel {
    right: 0;
  }

  .editorial-gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .editorial-item,
  .editorial-tall {
    grid-column: span 3;
  }

  .editorial-wide,
  .editorial-lead {
    grid-column: span 6;
  }

  .editorial-item img,
  .editorial-wide img,
  .editorial-tall img,
  .editorial-lead img {
    max-height: none;
  }

  .editorial-item figcaption {
    display: grid;
    gap: 2px;
    margin-top: 8px;
    font-size: 0.82rem;
  }

  .editorial-item figcaption span {
    text-align: left;
  }

  .editorial-note {
    display: none;
  }
}

@media (max-width: 420px) {
  .gallery-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .gallery-hero h1 {
    font-size: clamp(2.85rem, 15vw, 4rem);
  }

  .curator-bar {
    grid-template-columns: 1fr;
  }

  .gallery-filters {
    justify-self: start;
  }

  .gallery-filter-panel {
    left: 0;
    right: auto;
    width: calc(100vw - 32px);
  }
}

@media (max-width: 820px) {
  .exhibition-cover {
    min-height: 92svh;
  }

  .cover-image-wrap::after {
    background:
      linear-gradient(180deg, rgba(20, 18, 15, 0.58), rgba(20, 18, 15, 0.04) 38%, rgba(20, 18, 15, 0.68)),
      linear-gradient(90deg, rgba(20, 18, 15, 0.22), transparent 64%);
  }

  .exhibition-topbar {
    display: grid;
    padding: 20px 18px;
  }

  .exhibition-nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .exhibition-nav::-webkit-scrollbar {
    display: none;
  }

  .exhibition-nav a,
  .exhibition-nav button,
  .exhibition-manage > button {
    flex: 0 0 auto;
  }

  .exhibition-manage div {
    left: 0;
    right: auto;
  }

  .cover-caption {
    left: 18px;
    bottom: 34px;
    width: calc(100% - 36px);
  }

  .cover-caption h1 {
    font-size: clamp(3.2rem, 18vw, 5.4rem);
  }

  .cover-caption blockquote {
    max-width: 88%;
    font-size: clamp(1.1rem, 5vw, 1.55rem);
  }

  .exhibition-controls {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .exhibition-topics {
    gap: 20px;
  }

  .exhibition-filter-drawer {
    justify-self: start;
  }

  .exhibition-filter-panel {
    left: 0;
    right: auto;
    width: calc(100vw - 32px);
  }

  .magazine-grid,
  .exhibition-status {
    width: calc(100% - 32px);
  }

  .magazine-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 30px 14px;
  }

  .magazine-piece,
  .piece-portrait,
  .piece-small {
    grid-column: span 3;
  }

  .piece-hero,
  .piece-wide {
    grid-column: span 6;
  }

  .magazine-piece img,
  .piece-wide img,
  .piece-small img {
    max-height: none;
  }

  .piece-note {
    display: none;
  }
}

@media (max-width: 480px) {
  .magazine-piece,
  .piece-portrait,
  .piece-small {
    grid-column: span 3;
  }

  .magazine-piece figcaption {
    font-size: 0.8rem;
  }

  .focus-viewer {
    padding: 56px 16px 22px;
    place-items: start center;
    overflow-y: auto;
  }

  .focus-viewer figure {
    max-height: none;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .focus-viewer img {
    max-height: 52vh;
  }

  .focus-close {
    top: 10px;
    right: 12px;
  }

  .focus-fullscreen {
    top: 17px;
    right: 58px;
    width: 34px;
    min-height: 34px;
    font-size: 1.22rem;
  }

  .focus-nav {
    top: 28vh;
    width: 34px;
    min-height: 48px;
    font-size: 2rem;
  }

  .focus-prev {
    left: 8px;
  }

  .focus-next {
    right: 8px;
  }

  .focus-viewer figcaption {
    max-height: none;
    overflow: visible;
    width: 100%;
  }

  .focus-viewer h2 {
    font-size: clamp(1.55rem, 9vw, 2.4rem);
  }

  .focus-viewer blockquote {
    margin-top: 12px;
    font-size: 0.96rem;
  }

  .focus-comments {
    max-height: 132px;
  }

  .topic-admin-login,
  .topic-admin-row {
    grid-template-columns: 1fr;
  }

  .tool-result dl,
  .tool-actions {
    grid-template-columns: 1fr;
  }

  .member-heading,
  .member-work-card {
    grid-template-columns: 1fr;
  }

  .member-status-box {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .member-status-box div {
    flex-wrap: wrap;
    margin-left: 0;
    white-space: normal;
  }

  .member-heading {
    display: grid;
  }
}

@media (max-width: 820px) {
  .exhibit-shell {
    padding: 10px 12px 12px;
  }

  .personal-shell {
    padding-top: 6px;
  }

  .exhibit-header {
    display: grid;
    gap: 12px;
    margin-bottom: 10px;
  }

  .personal-header {
    gap: 8px;
    margin-bottom: 0;
  }

  .personal-awards {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    width: 100%;
  }

  .personal-awards article {
    min-height: 66px;
    padding: 8px 10px;
  }

  .personal-awards strong {
    font-size: 0.94rem;
  }

  .exhibit-header h1 {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .exhibit-board {
    gap: 12px;
    padding: 6px 0 8px;
    scroll-padding-inline: 0;
  }

  .personal-board {
    padding-top: 0;
  }

  .exhibit-column {
    flex-basis: calc(100vw - 24px);
    max-height: none;
    padding: 12px;
    box-shadow: none;
  }

  .exhibit-card img {
    max-height: 280px;
  }

  .exhibit-card.is-portrait {
    width: min(100%, 78vw);
  }

  .exhibit-card.is-portrait img {
    max-height: min(54vh, 460px);
  }

  .work-lightbox {
    grid-template-columns: 1fr;
    align-items: start;
    overflow-y: auto;
    padding: 52px 16px max(92px, env(safe-area-inset-bottom));
  }

  .work-lightbox img {
    max-height: 58vh;
  }

  .work-lightbox article {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .malibu-page {
    padding: 22px 18px 64px;
  }

  .malibu-header {
    display: grid;
    gap: 18px;
    margin-bottom: 38px;
  }

  .malibu-nav {
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .malibu-nav::-webkit-scrollbar {
    display: none;
  }

  .malibu-nav a,
  .malibu-nav button,
  .malibu-manage > button {
    flex: 0 0 auto;
  }

  .malibu-manage div {
    position: fixed;
    top: 86px;
    left: 18px;
    right: 18px;
    width: auto;
  }

  .malibu-intro {
    margin-bottom: 76px;
    text-align: left;
  }

  .malibu-controls {
    display: grid;
    gap: 18px;
    margin-bottom: 30px;
    padding: 0;
  }

  .malibu-topics {
    gap: 22px;
  }

  .malibu-filter {
    justify-self: start;
  }

  .malibu-filter-panel {
    position: fixed;
    top: 172px;
    left: 18px;
    right: 18px;
    width: auto;
    max-height: calc(100vh - 192px);
    max-height: calc(100dvh - 192px);
    overflow-y: auto;
  }

  .malibu-stream {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0;
  }

  .malibu-piece,
  .malibu-piece.is-large,
  .malibu-piece.is-offset,
  .malibu-piece.is-narrow {
    grid-column: auto;
    margin-bottom: 0;
  }

  .malibu-piece p {
    display: grid;
    gap: 2px;
    font-size: 0.82rem;
    opacity: 1;
  }

  .malibu-piece span {
    text-align: left;
  }
}
