/* ---------------------------------------------------------------
   留白 · 小画廊
   A quiet, paper-and-ink gallery. No framework, no web fonts.
---------------------------------------------------------------- */

:root {
  --paper: #f2ede2;
  --paper-light: #faf6ed;
  --paper-deep: #e7dfd0;
  --ink: #1d1b16;
  --ink-soft: #39362f;
  --muted: #746e62;
  --faint: #9b9486;
  --line: rgba(29, 27, 22, 0.14);
  --line-strong: rgba(29, 27, 22, 0.28);
  --accent: #b3472a;
  --accent-deep: #8d321e;
  --accent-soft: #e6c7b8;
  --green: #506d53;
  --amber: #9c6b27;
  --danger: #a23d2c;
  --danger-soft: #f4e3dc;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --shadow-soft: 0 18px 44px rgba(54, 42, 27, 0.1);
  --shadow-card: 0 10px 28px rgba(54, 42, 27, 0.08);
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 300px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.036;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.has-dialog {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--paper-light);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper-light);
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.noscript {
  padding: 50px;
  text-align: center;
  font-family: var(--serif);
  font-size: 22px;
}

.icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------- buttons ----------------------------- */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.button .icon {
  width: 15px;
  height: 15px;
}

.button-dark {
  background: var(--ink);
  color: var(--paper-light);
}

.button-dark:hover {
  background: #030302;
}

.button-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--ink);
  background: rgba(29, 27, 22, 0.035);
}

.button-light {
  background: var(--paper-light);
  color: var(--ink);
}

.button-light:hover {
  background: #fffdf7;
}

.button-danger {
  background: var(--danger);
  color: #fff8f3;
}

.button-danger:hover {
  background: #8e3223;
}

.button-danger-soft {
  border: 1px solid rgba(162, 61, 44, 0.24);
  background: var(--danger-soft);
  color: var(--danger);
}

.button-danger-soft:hover {
  background: #eed6cd;
}

.button.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.6;
  transition: color 0.2s, border-color 0.2s;
}

.text-button .icon {
  width: 14px;
  height: 14px;
}

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

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

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

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

.icon-button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.icon-button:hover {
  border-color: var(--ink);
  background: rgba(29, 27, 22, 0.05);
}

/* ----------------------------- type helpers ----------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.19em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.eyebrow.light {
  color: rgba(247, 240, 225, 0.58);
}

.eyebrow.light .eyebrow-line {
  background: var(--accent-soft);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.green {
  border-color: rgba(80, 109, 83, 0.25);
  background: rgba(80, 109, 83, 0.08);
  color: var(--green);
}

.status-pill.amber {
  border-color: rgba(156, 107, 39, 0.26);
  background: rgba(156, 107, 39, 0.08);
  color: var(--amber);
}

.status-pill.red {
  border-color: rgba(162, 61, 44, 0.24);
  background: rgba(162, 61, 44, 0.07);
  color: var(--danger);
}

/* ----------------------------- site header ----------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(242, 237, 226, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  width: 100%;
  max-width: 1480px;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
  padding: 0 42px;
}

.header-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
}

.header-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.header-identity-name {
  display: flex;
  min-width: 0;
  max-width: 136px;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-identity-name[role="button"] {
  cursor: pointer;
}

.header-identity-name[role="button"]:hover {
  color: var(--accent);
}

.header-identity-name[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.header-avatar {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-deep);
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s;
}

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

.header-avatar:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.avatar {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--paper-deep);
  object-fit: cover;
}

.avatar-sm {
  width: 26px;
  height: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-seal {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: var(--accent);
  color: #f8eedc;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 245, 226, 0.18);
}

.brand-seal.small {
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.brand-en {
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: background 0.25s, color 0.25s;
}

.nav-cta .icon {
  width: 14px;
  height: 14px;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper-light);
}

.nav-auth-button {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-auth-button:hover {
  color: var(--ink);
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 150px;
}

.nav-user-name {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-pending {
  margin-left: 5px;
  color: var(--accent);
  font-size: 8px;
  letter-spacing: 0.08em;
}

/* ----------------------------- hero ----------------------------- */

.hero {
  display: grid;
  max-width: 1480px;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: center;
  gap: 36px;
  margin: 0 auto;
  padding: 76px 42px 112px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 730px;
  animation: riseIn 0.85s var(--ease) both;
}

.hero-title {
  max-width: none;
  margin: 23px 0 27px;
  font-family: var(--serif);
  font-size: clamp(62px, 7.25vw, 113px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero-title .title-line {
  display: block;
}

.hero-title .title-line + .title-line {
  margin-left: 0.5em;
}

.hero-intro {
  max-width: 25em;
  color: var(--muted);
  font-size: 15.5px;
  letter-spacing: 0.02em;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 37px;
}

.hero-meta {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin-top: 57px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.hero-count {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.hero-stage {
  position: relative;
  min-width: 0;
  height: 620px;
  animation: stageIn 1.05s var(--ease) 0.1s both;
}

.hero-halo {
  position: absolute;
  top: 6%;
  left: 17%;
  width: 67%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 44%, rgba(179, 71, 42, 0.22), rgba(179, 71, 42, 0) 67%);
  filter: blur(16px);
}

.hero-piece {
  position: absolute;
  margin: 0;
  transform-origin: center;
  transition: transform 0.6s var(--ease);
}

.hero-piece .hero-frame {
  width: 100%;
  height: 100%;
  padding: 11px;
  border: 1px solid rgba(62, 49, 32, 0.14);
  background: #fbf7ed;
  box-shadow: 0 24px 54px rgba(47, 35, 22, 0.17);
}

.hero-piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.01);
}

.hero-piece-main {
  top: 6%;
  left: 17%;
  z-index: 3;
  width: 58%;
  height: 70%;
  transform: rotate(-1.7deg);
}

.hero-piece-main .hero-frame {
  padding: 13px;
}

.hero-piece-second {
  bottom: 3%;
  left: 0;
  z-index: 4;
  width: 36%;
  height: 30%;
  transform: rotate(2.7deg);
}

.hero-piece-third {
  top: 0;
  right: 0;
  z-index: 2;
  width: 32%;
  height: 27%;
  transform: rotate(2.1deg);
}

.hero-piece-caption {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  display: flex;
  gap: 9px;
  align-items: baseline;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  white-space: nowrap;
}

.hero-piece-caption b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.hero-piece-second .hero-piece-caption,
.hero-piece-third .hero-piece-caption {
  display: none;
}

.hero-stamp {
  position: absolute;
  right: 5%;
  bottom: 0;
  z-index: 6;
  display: flex;
  width: 50px;
  height: 68px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(229, 199, 184, 0.65);
  background: var(--accent);
  color: #f8eedc;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(96, 38, 24, 0.17);
  transform: rotate(2deg);
}

.hero-stamp::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(248, 238, 220, 0.35);
}

.hero-stamp span {
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.hero-stamp b {
  font-weight: 500;
}

.hero-empty {
  position: absolute;
  inset: 9% 8% 10% 9%;
}

.hero-empty .empty-frame:first-child {
  position: absolute;
  top: 4%;
  left: 17%;
  width: 57%;
  height: 70%;
  transform: rotate(-2deg);
}

.hero-empty .empty-frame:nth-child(2) {
  position: absolute;
  bottom: 3%;
  left: 3%;
  width: 35%;
  height: 28%;
  transform: rotate(2.4deg);
}

.hero-empty p {
  position: absolute;
  right: 0;
  bottom: 6%;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* ----------------------------- gallery ----------------------------- */

.gallery-section {
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px 42px 108px;
  scroll-margin-top: 96px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.section-title {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(40px, 4.2vw, 58px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.section-note {
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.gallery-more {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

.gallery-more-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.gallery-more-link .icon {
  width: 14px;
  height: 14px;
}

.gallery-more-link:hover {
  color: var(--accent);
}

.recommend-section {
  max-width: 1480px;
  margin: 0 auto;
  padding: 10px 42px 90px;
}

.recommend-heading {
  align-items: center;
}

.recommend-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.05em;
}

.recommend-refresh .icon {
  width: 14px;
  height: 14px;
}

.recommend-refresh:hover {
  color: var(--accent);
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 42px;
}

.recommend-grid .art-card {
  margin: 0;
}

.more-head {
  align-items: flex-end;
}

.more-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: 240px;
  flex: 0 0 auto;
}

.more-tools .gallery-search {
  width: 100%;
}

.page-more .gallery-grid {
  margin-top: 44px;
}

/* ----------------------------- people ----------------------------- */

.people-tools {
  display: flex;
  width: 360px;
  max-width: 100%;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.people-search {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
}

.people-search-field {
  width: auto;
  flex: 1 1 auto;
}

.people-search-button {
  min-height: 38px;
  padding: 0 13px;
  font-size: 10.5px;
}

.people-search-button .icon {
  width: 14px;
  height: 14px;
}

.people-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 38px;
}

.people-more {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.people-more-button {
  min-width: 164px;
}

.people-more-button .icon {
  width: 14px;
  height: 14px;
}

.person-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(250, 246, 237, 0.6);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.person-card:hover {
  border-color: var(--line-strong);
  background: rgba(250, 246, 237, 0.95);
  transform: translateY(-1px);
}

.person-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--paper-deep);
  object-fit: cover;
}

.person-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.person-copy strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-copy small {
  color: var(--muted);
  font-size: 9.5px;
}

.gallery-empty-note {
  grid-column: 1 / -1;
  padding: 28px 14px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.people-panel {
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.people-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.people-panel-avatar {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--paper-deep);
  object-fit: cover;
}

.people-panel-name {
  margin: 3px 0 2px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.people-panel-meta {
  color: var(--muted);
  font-size: 10.5px;
}

.people-panel .people-works {
  margin-top: 30px;
}

.people-panel-empty,
.people-panel-loading {
  margin-top: 24px;
  padding: 32px 16px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.user-head {
  align-items: flex-start;
  gap: 40px;
}

.user-head-copy {
  min-width: 0;
  max-width: 780px;
}

.user-name {
  max-width: 13em;
  overflow-wrap: anywhere;
}

.user-head-side {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 17px;
}

.user-head-avatar {
  width: 112px;
  height: 112px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-deep);
  box-shadow: 0 14px 30px rgba(56, 43, 28, 0.13);
  object-fit: cover;
}

.user-head-count {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.user-head-self {
  padding: 3px 9px;
  border: 1px solid rgba(158, 82, 45, 0.24);
  border-radius: 99px;
  color: var(--accent);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.user-head-manage {
  margin-top: 3px;
  font-size: 10.5px;
}

.user-wall {
  margin-top: 48px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.user-wall-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.user-works {
  margin-top: 25px;
}

.user-empty {
  margin-top: 24px;
  padding: 54px 20px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.user-empty h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.user-empty p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.user-empty .button {
  margin-top: 20px;
}

a.art-card-uploader:hover .art-card-uploader-name {
  color: var(--ink);
}

.profile-home-button {
  color: var(--muted);
}

@media (max-width: 720px) {
  .user-head {
    flex-direction: column;
    gap: 24px;
  }

  .user-head-side {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0;
  }

  .user-head-avatar {
    width: 76px;
    height: 76px;
  }

  .user-head-manage {
    margin-left: auto;
  }

  .user-wall {
    margin-top: 34px;
    padding-top: 22px;
  }

  .user-wall-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

.gallery-grid.is-compact {
  column-count: 4;
  column-gap: 22px;
  margin-top: 44px;
}

.gallery-grid.is-compact .art-card {
  margin-bottom: 26px;
}

.gallery-grid.is-compact .art-card-frame {
  padding: 7px;
}

.gallery-grid.is-compact .art-card-copy {
  padding-top: 9px;
}

.gallery-grid.is-compact .art-card-title {
  font-size: 17px;
}

.gallery-grid.is-compact .art-card-meta {
  margin-top: 2px;
  font-size: 9.5px;
}

.gallery-grid.is-compact .like-button {
  font-size: 10px;
}

.gallery-grid.is-compact .like-button .icon {
  width: 13px;
  height: 13px;
}

.gallery-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 210px;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
}

.gallery-search .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.gallery-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.gallery-search input::placeholder {
  color: var(--faint);
}

.gallery-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.gallery-empty {
  margin-top: 42px;
  padding: 56px 20px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}

.gallery-empty p {
  font-size: 13px;
  letter-spacing: 0.03em;
}

.gallery-empty .text-button {
  margin-top: 13px;
}

.gallery-grid {
  column-count: 3;
  column-gap: 34px;
  margin-top: 48px;
}

.gallery-grid.is-ranked {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-count: auto;
  column-gap: normal;
  gap: 34px;
  align-items: start;
}

.gallery-grid.is-ranked .art-card {
  width: 100%;
  margin: 0;
}

.art-card {
  break-inside: avoid;
  margin: 0 0 44px;
  animation: cardIn 0.72s var(--ease) both;
}

.art-card-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.art-card-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(61, 48, 31, 0.11);
  background: #fbf7ee;
  box-shadow: 0 8px 24px rgba(56, 42, 26, 0.055);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.art-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.art-card-veil {
  position: absolute;
  inset: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px;
  background: linear-gradient(180deg, transparent 55%, rgba(16, 13, 9, 0.34));
  opacity: 0;
  transition: opacity 0.3s;
}

.art-card-view {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff9ec;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  transform: translateY(6px);
  transition: transform 0.3s var(--ease);
}

.art-card-view .icon {
  width: 13px;
  height: 13px;
}

.art-card-image:hover .art-card-frame {
  border-color: rgba(61, 48, 31, 0.2);
  box-shadow: 0 18px 42px rgba(56, 42, 26, 0.13);
}

.art-card-image:hover .art-card-frame img {
  transform: scale(1.022);
}

.art-card-image:hover .art-card-veil {
  opacity: 1;
}

.art-card-image:hover .art-card-view {
  transform: translateY(0);
}

.art-card-copy {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 2px 0;
}

.art-card-uploader {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.art-card-uploader.is-anon {
  color: var(--faint);
}

.art-card-uploader-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.art-card-bottom {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.art-card-info {
  min-width: 0;
  flex: 1 1 auto;
}

.art-card-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.art-card-title {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.art-card-year {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.art-card-meta {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.like-button {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 4px 1px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
  transition: color 0.2s, transform 0.2s;
}

.like-button .icon {
  width: 15px;
  height: 15px;
}

.like-button .icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

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

.like-button.is-liked {
  color: var(--accent);
}

.like-button.is-liked .icon svg {
  fill: currentColor;
}

.like-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.like-button.is-burst .icon {
  animation: like-pop 620ms cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}

.like-button.is-burst .like-count {
  animation: like-count-pop 520ms ease both;
}

.like-button.is-burst::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 8px;
  width: 15px;
  height: 15px;
  margin-top: -7.5px;
  margin-left: -7.5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  pointer-events: none;
  animation: like-ring 620ms ease-out both;
}

@keyframes like-pop {
  0% { transform: scale(1) rotate(0); }
  28% { transform: scale(1.55) rotate(-10deg); }
  52% { transform: scale(0.9) rotate(4deg); }
  74% { transform: scale(1.12) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes like-count-pop {
  0% { transform: translateY(0); opacity: 0.75; }
  35% { transform: translateY(-4px); opacity: 1; }
  65% { transform: translateY(1px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes like-ring {
  0% { opacity: 0.6; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(1.85); }
}

.like-count {
  min-width: 0.8em;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.empty-wall {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
  padding: 70px 30px 66px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.empty-wall-frames {
  position: relative;
  width: 230px;
  height: 156px;
  margin-bottom: 27px;
}

.empty-frame {
  display: block;
  border: 1px solid rgba(61, 48, 31, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 70%),
    var(--paper-deep);
  box-shadow: 0 9px 20px rgba(61, 48, 31, 0.045);
}

.empty-wall-frames .empty-frame:nth-child(1) {
  position: absolute;
  top: 0;
  left: 58px;
  width: 92px;
  height: 124px;
  transform: rotate(-2deg);
}

.empty-wall-frames .empty-frame:nth-child(2) {
  position: absolute;
  right: 3px;
  bottom: 7px;
  width: 110px;
  height: 74px;
  transform: rotate(2.5deg);
}

.empty-wall-frames .empty-frame:nth-child(3) {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 58px;
  transform: rotate(-4deg);
}

.empty-wall h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

.empty-wall p {
  margin: 5px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

/* ----------------------------- invite ----------------------------- */

.invite {
  position: relative;
  overflow: hidden;
  max-width: 1396px;
  margin: 0 auto 100px;
  background: #1d1b16;
  color: var(--paper-light);
}

.invite::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.025), transparent 38%),
    radial-gradient(circle at 82% 50%, rgba(179, 71, 42, 0.16), transparent 52%);
}

.invite-sun {
  position: absolute;
  top: 50%;
  right: 7%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 37% 33%, #d46b46, #9a321f 58%, #6e2416 100%);
  box-shadow:
    inset 0 0 70px rgba(48, 12, 6, 0.24),
    0 0 80px rgba(148, 53, 31, 0.22);
  opacity: 0.92;
  transform: translateY(-50%);
}

.invite-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 88px 42px 92px 8.6%;
}

.invite-title {
  margin: 19px 0 16px;
  font-family: var(--serif);
  font-size: clamp(43px, 5.2vw, 74px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.invite-copy {
  max-width: 29em;
  color: rgba(247, 240, 225, 0.63);
  font-size: 14px;
  line-height: 1.85;
}

.invite .button {
  margin-top: 30px;
}

/* ----------------------------- footer ----------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  max-width: 1480px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 28px 42px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.footer-note,
.footer-copy {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* ----------------------------- generic page ----------------------------- */

.page {
  max-width: 1360px;
  min-height: 58vh;
  margin: 0 auto;
  padding: 76px 42px 120px;
}

.page-title {
  margin: 14px 0 17px;
  font-family: var(--serif);
  font-size: clamp(52px, 6.2vw, 92px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.page-lead {
  max-width: 33em;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  animation: riseIn 0.7s var(--ease) both;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.07em;
}

.back-link .icon {
  width: 14px;
  height: 14px;
}

.back-link:hover {
  color: var(--accent);
}

.upload-head {
  display: block;
}

.upload-head .page-lead {
  margin-top: 16px;
}

.page-gate .page-head {
  display: block;
}

.login-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 42px;
  padding: 34px 36px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, 0.44);
}

.login-gate-copy {
  max-width: 34em;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

/* ----------------------------- upload ----------------------------- */

.upload-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: clamp(40px, 7vw, 100px);
  margin-top: 58px;
}

.upload-aside {
  position: sticky;
  top: 122px;
  padding-top: 8px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.steps li {
  display: flex;
  align-items: baseline;
  gap: 17px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.02em;
}

.step-no {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.aside-note {
  max-width: 21em;
  margin-top: 24px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.8;
}

.upload-panel {
  min-width: 0;
}

.upload-form {
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid var(--line);
  background: rgba(250, 246, 237, 0.58);
  box-shadow: var(--shadow-card);
  animation: cardIn 0.75s var(--ease) 0.08s both;
}

.upload-field-block + .upload-field-block {
  margin-top: 31px;
}

.field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.field-kicker {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field-note {
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  text-align: right;
}

.dropzone {
  position: relative;
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 26px;
  border: 1px dashed rgba(29, 27, 22, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 70%),
    #ede6d7;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: var(--accent);
  background-color: #f1e6d5;
}

.dropzone.is-dragging {
  box-shadow: inset 0 0 0 3px rgba(179, 71, 42, 0.08);
}

.dropzone.has-file {
  display: block;
  padding: 0;
  border-style: solid;
  border-color: var(--line);
  background: #e9e0cf;
  cursor: default;
}

.drop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.drop-icon {
  display: inline-flex;
  width: 47px;
  height: 47px;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.drop-icon .icon {
  width: 21px;
  height: 21px;
}

.drop-title {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
}

.drop-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.drop-preview {
  display: flex;
  flex-direction: column;
  max-height: 540px;
}

.drop-preview-image {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #dcd2bf;
}

.drop-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 14px;
  border-top: 1px solid rgba(29, 27, 22, 0.1);
  background: rgba(250, 246, 237, 0.6);
}

.drop-file-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop-preview-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 13px;
}

.modal.crop-modal {
  width: min(980px, calc(100vw - 24px));
}

.crop-stage-wrap {
  display: flex;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(29, 27, 22, 0.16);
  background: #17130e;
}

.crop-stage {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  touch-action: none;
  user-select: none;
}

.crop-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  -webkit-user-drag: none;
  user-select: none;
}

.crop-box {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(12, 9, 5, 0.4), 0 0 0 9999px rgba(12, 9, 5, 0.56);
  cursor: move;
  touch-action: none;
}

.crop-box:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.crop-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(29, 27, 22, 0.35);
  border-radius: 50%;
  background: var(--paper-light);
  box-shadow: 0 1px 4px rgba(12, 9, 5, 0.25);
}

.crop-handle.nw {
  top: -1px;
  left: -1px;
  cursor: nwse-resize;
}

.crop-handle.ne {
  top: -1px;
  right: -1px;
  cursor: nesw-resize;
}

.crop-handle.sw {
  bottom: -1px;
  left: -1px;
  cursor: nesw-resize;
}

.crop-handle.se {
  right: -1px;
  bottom: -1px;
  cursor: nwse-resize;
}

.crop-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.modal.avatar-crop-modal {
  width: min(520px, calc(100vw - 24px));
}

.avatar-crop-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.avatar-crop-frame {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(29, 27, 22, 0.16);
  background: #17130e;
}

.avatar-crop-stage {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #17130e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 12px 28px rgba(12, 9, 5, 0.24);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.avatar-crop-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  pointer-events: none;
}

.avatar-crop-stage.is-dragging {
  cursor: grabbing;
}

.avatar-crop-image {
  position: absolute;
  display: block;
  max-width: none;
  max-height: none;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.avatar-crop-zoom-row {
  display: flex;
  width: min(340px, 100%);
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.avatar-crop-zoom {
  width: 100%;
  min-width: 0;
  accent-color: var(--accent);
}

.avatar-crop-body .crop-hint {
  margin-top: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  margin-top: 21px;
}

.upload-form > .upload-field-block > .field:first-of-type {
  margin-top: 24px;
}

.field-label {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.field-label small {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 252, 245, 0.52);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.6;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.author-locked {
  margin: 0;
  padding: 10px 13px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 252, 245, 0.32);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aaa294;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink-soft);
  outline: none;
  background: rgba(255, 252, 245, 0.85);
  box-shadow: 0 0 0 3px rgba(179, 71, 42, 0.07);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.title-input {
  padding: 7px 0 10px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line-strong) !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 34px) !important;
  letter-spacing: -0.03em;
  line-height: 1.3 !important;
  box-shadow: none !important;
}

.title-input:focus {
  border-bottom-color: var(--accent) !important;
}

.extra-fields {
  margin-top: 27px;
  border-top: 1px solid var(--line);
}

.extra-fields summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 4px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
}

.extra-fields summary::-webkit-details-marker {
  display: none;
}

.extra-fields summary .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: transform 0.25s;
}

.extra-fields[open] summary .icon {
  transform: rotate(180deg);
}

.extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-note {
  max-width: 25em;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.7;
}

.submit-art {
  flex: 0 0 auto;
  min-width: 154px;
}

.form-error {
  margin-top: 18px;
  padding: 10px 13px;
  border-left: 2px solid var(--danger);
  background: var(--danger-soft);
  color: #7f2d20;
  font-size: 12px;
  line-height: 1.65;
}

.upload-progress {
  margin-top: 20px;
}

.upload-progress-track {
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.upload-progress-fill {
  display: block;
  width: 2%;
  height: 100%;
  background: var(--accent);
  transition: width 0.2s;
}

.upload-progress-note {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.upload-layout.is-success .upload-aside {
  opacity: 0.55;
}

.upload-success {
  display: flex;
  min-height: 450px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--line);
  background: rgba(250, 246, 237, 0.68);
  box-shadow: var(--shadow-card);
  animation: cardIn 0.75s var(--ease) both;
}

.success-seal {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 2px;
  background: var(--accent);
  color: #f8eedc;
  font-family: var(--serif);
  font-size: 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 245, 226, 0.22);
  transform: rotate(-2deg);
}

.upload-success h2 {
  margin: 14px 0 13px;
  font-family: var(--serif);
  font-size: clamp(35px, 4.5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.upload-success-copy {
  max-width: 30em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* ----------------------------- my submissions ----------------------------- */

.profile-card {
  display: flex;
  max-width: 980px;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(250, 246, 237, 0.72);
}

.profile-card.is-pending {
  border-color: rgba(158, 82, 45, 0.28);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--paper-deep);
  object-fit: cover;
}

.profile-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-copy strong {
  display: block;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.profile-copy .profile-login {
  color: var(--faint);
  font-size: 9.5px;
}

.profile-card.is-pending .profile-note {
  color: var(--accent);
}

.profile-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.profile-avatar-button,
.profile-name-button {
  color: var(--muted);
}

.anon-notice,
.anon-mine-note {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(158, 82, 45, 0.2);
  background: rgba(158, 82, 45, 0.045);
}

.anon-notice {
  margin-bottom: 22px;
}

.anon-mine-note {
  max-width: 980px;
  margin-top: 22px;
}

.anon-notice > .icon,
.anon-mine-note > .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--accent);
}

.anon-notice > div {
  min-width: 0;
  flex: 1 1 auto;
}

.anon-notice strong {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.anon-notice p,
.anon-mine-note span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.anon-notice p {
  margin-top: 3px;
}

.anon-notice .text-button,
.anon-mine-note .text-button {
  flex: 0 0 auto;
  color: var(--accent);
}

.mine-head {
  align-items: flex-end;
}

.refresh-button {
  margin-bottom: 10px;
  color: var(--muted);
}

.mine-list {
  display: flex;
  max-width: 980px;
  flex-direction: column;
  gap: 18px;
  margin-top: 48px;
}

.mine-card {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(250, 246, 237, 0.62);
  animation: cardIn 0.7s var(--ease) both;
}

.mine-image,
.mine-image-button {
  width: 100%;
  max-height: 235px;
  overflow: hidden;
  border: 0;
  background: #e6ddcd;
}

.mine-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.mine-image-button {
  display: block;
  padding: 0;
  cursor: zoom-in;
}

.mine-image-button:hover img {
  transform: scale(1.025);
}

.mine-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 4px 3px 0;
}

.mine-top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.mine-date {
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.mine-title {
  margin-top: 15px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.mine-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.mine-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.mine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: auto;
  padding-top: 16px;
}

.mine-empty {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.mine-empty .empty-frame {
  width: 82px;
  height: 108px;
  margin-bottom: 26px;
  transform: rotate(-3deg);
}

.mine-empty h2 {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
}

.mine-empty p {
  margin: 5px 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.local-note {
  max-width: 980px;
  margin-top: 32px;
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.01em;
}

.inline-warning {
  margin-top: 20px;
  color: var(--danger);
  font-size: 11px;
}

/* ----------------------------- 404 ----------------------------- */

.page-404 {
  display: flex;
  min-height: 62vh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.page-404 .page-lead {
  margin-bottom: 28px;
}

/* ----------------------------- dialogs ----------------------------- */

dialog {
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(21, 18, 13, 0.54);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal {
  width: min(560px, calc(100vw - 30px));
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.modal-card {
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(54, 42, 27, 0.16);
  background: var(--paper-light);
  box-shadow: 0 35px 90px rgba(21, 16, 9, 0.28);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.modal.is-open .modal-card {
  opacity: 1;
  transform: none;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 0;
}

.modal-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.modal-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.modal-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-color: transparent;
}

.modal-body {
  padding: 19px 28px 24px;
}

.modal-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 28px 22px;
  border-top: 1px solid var(--line);
}

.modal-actions .button {
  min-height: 42px;
}

.form-stack .field:first-child {
  margin-top: 0;
}

.form-error {
  margin-top: 16px;
}

.field-help {
  margin-top: 7px;
  color: var(--faint);
  font-size: 10px;
}

.reject-quota {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 21px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.reject-quota-title {
  color: var(--ink-soft);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
  cursor: pointer;
}

.check-line input {
  width: auto;
  margin: 2px 0 0;
  accent-color: var(--accent, #b3472a);
}

.check-line small {
  color: var(--faint);
  font-size: 9.5px;
}

.check-line input:disabled + span {
  color: var(--faint);
  cursor: default;
}

/* ----------------------------- lightbox ----------------------------- */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox::backdrop {
  background: var(--ink);
}

.lightbox-grid {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: minmax(0, 1.58fr) minmax(340px, 0.72fr);
}

.lightbox-stage {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 52px;
  background: #e7dfd0;
}

.lightbox-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.25), transparent 66%);
}

.lightbox-image {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: calc(100vh - 104px);
  object-fit: contain;
  opacity: 0;
  box-shadow: 0 26px 60px rgba(41, 31, 19, 0.17);
  transition: opacity 0.3s;
}

.lightbox-image.is-ready {
  opacity: 1;
}

.lightbox-loader {
  position: absolute;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(29, 27, 22, 0.18);
  border-radius: 50%;
  background: rgba(250, 246, 237, 0.86);
  color: var(--ink);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: background 0.2s, border-color 0.2s;
}

.lightbox-nav:hover {
  border-color: var(--ink);
  background: var(--paper-light);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-side {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 70px 50px 50px;
  overflow: auto;
  background: var(--paper);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 25px;
}

.lightbox-count {
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.lightbox-title {
  margin: 18px 0 9px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.lightbox-uploader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
}

.lightbox-uploader.is-anon {
  color: var(--faint);
}

.lightbox-author {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.lightbox-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.lightbox-facts div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lightbox-facts dt {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.lightbox-facts dd {
  color: var(--ink-soft);
  font-size: 11.5px;
}

.lightbox-description {
  margin-top: 28px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-line;
}

.image-error::after {
  content: "图片没打开";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ----------------------------- toast ----------------------------- */

.toast-region {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 3000;
  display: flex;
  justify-content: center;
  width: min(92vw, 460px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border: 1px solid rgba(247, 240, 225, 0.15);
  background: rgba(29, 27, 22, 0.95);
  color: var(--paper-light);
  box-shadow: 0 14px 34px rgba(20, 16, 10, 0.24);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-error {
  background: #772b20;
}

.toast-mark {
  display: inline-flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  color: var(--accent-soft);
}

.toast-mark .icon {
  width: 15px;
  height: 15px;
}

/* ----------------------------- route states ----------------------------- */

.route-loading {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--paper);
  animation: fadeIn 0.2s both;
}

.loading-seal {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: var(--accent);
  color: #f8eedc;
  font-family: var(--serif);
  font-size: 21px;
  animation: softPulse 1.2s ease-in-out infinite;
}

.loading-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--line-strong), transparent);
}

.loading-text {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.route-error {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: var(--paper);
}

.route-error-inner {
  max-width: 520px;
  text-align: center;
}

.error-seal {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 21px;
  transform: rotate(-3deg);
}

.route-error h1 {
  margin: 14px 0 14px;
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.route-error-copy {
  color: var(--muted);
  font-size: 13px;
}

.route-error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

/* ===============================================================
   Admin
   =============================================================== */

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.admin-brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.admin-brand-sub {
  color: rgba(247, 240, 225, 0.45);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.admin-auth .admin-brand-sub,
.admin-error-page .admin-brand-sub {
  color: var(--faint);
}

/* auth */

.admin-auth {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  background: var(--paper);
}

.auth-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #1c1a16;
  color: var(--paper-light);
}

.auth-big-char {
  position: absolute;
  right: -5%;
  bottom: -14%;
  color: rgba(242, 237, 226, 0.065);
  font-family: var(--serif);
  font-size: clamp(360px, 45vw, 700px);
  font-weight: 500;
  line-height: 0.8;
  user-select: none;
}

.auth-sun {
  position: absolute;
  top: 16%;
  left: 15%;
  width: clamp(170px, 24vw, 350px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #d36b46, #9d3420 58%, #682115 100%);
  box-shadow:
    inset 0 0 80px rgba(39, 10, 4, 0.23),
    0 0 100px rgba(158, 54, 31, 0.18);
}

.auth-visual::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 75%;
  height: 42%;
  background:
    repeating-linear-gradient(0deg, rgba(242, 237, 226, 0.025) 0 1px, transparent 1px 7px);
  transform: skewY(-8deg);
  transform-origin: right bottom;
  pointer-events: none;
}

.auth-visual-copy {
  position: absolute;
  bottom: 55px;
  left: 55px;
  z-index: 2;
  color: rgba(242, 237, 226, 0.6);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.auth-rule {
  display: block;
  width: 42px;
  height: 1px;
  margin-bottom: 17px;
  background: var(--accent-soft);
}

.auth-visual-en {
  margin-top: 7px;
  color: rgba(242, 237, 226, 0.28);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.auth-seal {
  position: absolute;
  top: 46px;
  right: 46px;
  display: inline-flex;
  width: 42px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 237, 226, 0.25);
  color: rgba(242, 237, 226, 0.72);
  font-family: var(--serif);
  font-size: 17px;
  transform: rotate(2deg);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 55px 48px;
}

.auth-box {
  width: 100%;
  max-width: 410px;
  animation: riseIn 0.75s var(--ease) both;
}

.auth-box .admin-brand {
  display: none;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 58px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.auth-back .icon {
  width: 14px;
  height: 14px;
}

.auth-back:hover {
  color: var(--ink);
}

.auth-title {
  margin: 17px 0 12px;
  font-family: var(--serif);
  font-size: clamp(39px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.12;
  text-wrap: balance;
}

.auth-copy {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.auth-form {
  margin-top: 31px;
}

.auth-form .field:first-child {
  margin-top: 0;
}

.auth-submit {
  width: 100%;
  margin-top: 21px;
  justify-content: space-between;
  padding: 0 18px;
}

.auth-modal .auth-form {
  margin-top: 0;
}

.auth-modal .auth-form .field:first-child {
  margin-top: 0;
}

.auth-switch-line {
  margin-top: 17px;
  text-align: center;
}

.auth-switch {
  color: var(--accent);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.auth-switch:hover {
  color: var(--ink);
}

.password-wrap {
  position: relative;
  display: block;
}

.password-wrap input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 9.5px;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--ink);
}

.auth-local-note {
  margin-top: 55px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.03em;
}

/* admin shell */

.admin-app {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 252px minmax(0, 1fr);
  background: #efe9dd;
}

.admin-side {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 29px 23px 24px;
  background: #1d1b16;
  color: var(--paper-light);
}

.admin-side .brand-seal {
  width: 31px;
  height: 31px;
  font-size: 17px;
}

.admin-side .admin-brand-name {
  font-size: 18px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 49px;
}

.admin-nav-item {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: rgba(247, 240, 225, 0.52);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: left;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.admin-nav-item:hover {
  background: rgba(247, 240, 225, 0.045);
  color: var(--paper-light);
}

.admin-nav-item.is-active {
  border-left-color: var(--accent);
  background: rgba(247, 240, 225, 0.07);
  color: var(--paper-light);
}

.admin-nav-count {
  color: rgba(247, 240, 225, 0.27);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.admin-nav-count.has-count {
  color: var(--accent-soft);
}

.admin-side-foot {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
  padding-top: 19px;
  border-top: 1px solid rgba(247, 240, 225, 0.1);
}

.admin-back,
.admin-logout {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: rgba(247, 240, 225, 0.46);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-align: left;
  transition: color 0.2s, background 0.2s;
}

.admin-back:hover,
.admin-logout:hover {
  background: rgba(247, 240, 225, 0.05);
  color: var(--paper-light);
}

.admin-back .icon,
.admin-logout .icon {
  width: 14px;
  height: 14px;
}

.admin-main {
  min-width: 0;
  padding: 43px clamp(28px, 4vw, 58px) 80px;
}

.admin-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.admin-title {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(42px, 4.7vw, 60px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.admin-top-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-bottom: 7px;
}

.admin-date {
  color: var(--faint);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

.admin-top-note {
  color: var(--muted);
  font-size: 10.5px;
}

.admin-content {
  margin-top: 31px;
  animation: cardIn 0.6s var(--ease) both;
}

.admin-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.admin-list-lead {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.01em;
}

.admin-list-hint {
  color: var(--faint);
  font-size: 9.5px;
}

.admin-quota {
  margin: 0 0 17px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
  background: rgba(255, 252, 245, 0.42);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.admin-works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.admin-work {
  display: grid;
  min-width: 0;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 15px;
  padding: 13px;
  border: 1px solid rgba(29, 27, 22, 0.11);
  background: rgba(250, 246, 237, 0.72);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}

.admin-work:hover {
  border-color: rgba(29, 27, 22, 0.18);
  box-shadow: 0 12px 29px rgba(56, 43, 28, 0.07);
}

.admin-work-image {
  width: 100%;
  max-height: 246px;
  overflow: hidden;
  background: var(--paper-deep);
}

.admin-work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.image-button {
  display: block;
  align-self: start;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-button:hover img {
  transform: scale(1.025);
}

.admin-work-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 3px 2px 2px 0;
}

.admin-work-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}

.admin-work-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.admin-work-title {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-badge {
  flex: 0 0 auto;
  padding: 1px 5px;
  border: 1px solid var(--line);
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.admin-work-meta {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-work-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 11px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-work-desc.is-empty {
  color: var(--faint);
}

.reject-reason {
  margin-top: 8px;
  color: var(--danger);
  font-size: 10px;
  line-height: 1.6;
}

.admin-work-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
}

.admin-work-date {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.admin-work-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.admin-work-owner {
  overflow: hidden;
  margin-top: 5px;
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-users {
  display: grid;
  gap: 11px;
}

.admin-user {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(29, 27, 22, 0.11);
  background: rgba(250, 246, 237, 0.72);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.admin-user:hover {
  border-color: rgba(29, 27, 22, 0.18);
  box-shadow: 0 10px 24px rgba(56, 43, 28, 0.06);
}

.admin-user-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 21px;
}

.admin-user-avatar {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-deep);
  object-fit: cover;
}

.admin-avatar-review {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px dashed var(--line-strong);
}

.admin-avatar-preview {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid rgba(158, 82, 45, 0.28);
  border-radius: 50%;
  object-fit: cover;
}

.admin-avatar-review-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.admin-avatar-review-copy strong {
  display: block;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 500;
}

.admin-avatar-review-copy p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.admin-avatar-review-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-avatar-list {
  display: grid;
  gap: 11px;
}

.admin-avatar-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(29, 27, 22, 0.11);
  background: rgba(250, 246, 237, 0.72);
}

.admin-avatar-card-preview {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-avatar-current,
.admin-avatar-next {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.admin-avatar-current img,
.admin-avatar-next img {
  display: block;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-deep);
  object-fit: cover;
}

.admin-avatar-current img {
  width: 40px;
  height: 40px;
  opacity: 0.7;
}

.admin-avatar-next img {
  width: 72px;
  height: 72px;
  border-color: rgba(158, 82, 45, 0.38);
  box-shadow: 0 6px 16px rgba(56, 43, 28, 0.12);
}

.admin-avatar-arrow {
  color: var(--faint);
  font-size: 15px;
}

.admin-avatar-card-main {
  min-width: 0;
}

.admin-user-main {
  min-width: 0;
}

.admin-user-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-user-name {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-meta,
.admin-user-stats {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.admin-user-meta {
  color: var(--faint);
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.mini-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.mini-button .icon {
  width: 12px;
  height: 12px;
}

.mini-button:hover {
  border-color: var(--ink);
  background: rgba(29, 27, 22, 0.035);
}

.mini-button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

.mini-button.primary:hover {
  background: #000;
}

.mini-button.ghost {
  color: var(--muted);
}

.mini-button.danger-ghost {
  border-color: transparent;
  color: var(--danger);
}

.mini-button.danger-ghost:hover {
  border-color: rgba(162, 61, 44, 0.24);
  background: var(--danger-soft);
}

.admin-empty {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.admin-empty-mark {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 21px;
  transform: rotate(-2deg);
}

.admin-empty h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

.admin-empty p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

/* settings */

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 17px;
}

.settings-card {
  padding: 27px;
  border: 1px solid rgba(29, 27, 22, 0.11);
  background: rgba(250, 246, 237, 0.7);
}

.settings-card.wide {
  grid-column: 1 / -1;
}

.settings-card-head {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.settings-card-head h2 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.settings-form {
  margin-top: 9px;
}

.settings-form .field:first-child {
  margin-top: 13px;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 19px;
}

.settings-copy {
  margin-top: 17px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.settings-demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.settings-demo-count {
  color: var(--muted);
  font-size: 11px;
}

/* api key */

.api-key-row {
  display: flex;
  gap: 10px;
  margin-top: 23px;
}

.api-key-input {
  min-width: 0;
  flex: 1 1 auto;
  height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(29, 27, 22, 0.16);
  border-radius: 2px;
  background: var(--paper-deep);
  color: var(--ink);
  font-family: "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.api-key-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(179, 71, 42, 0.1);
}

.api-key-row .button {
  flex: 0 0 auto;
  height: 50px;
}

/* admin invites */

.invite-panel {
  max-width: 760px;
}

.invite-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.invite-head h2 {
  font-size: 24px;
  font-weight: 500;
}

.invite-lead {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.invite-head .button {
  flex: 0 0 auto;
}

.invite-note {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

.invite-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.invite-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
}

.invite-card-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.invite-code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 17px;
  letter-spacing: 0.08em;
}

.invite-meta {
  color: var(--muted);
  font-size: 10.5px;
}

.invite-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.invite-empty {
  padding: 30px 18px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 700px) {
  .invite-head {
    align-items: stretch;
    flex-direction: column;
  }

  .invite-head .button {
    width: 100%;
  }

  .invite-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .invite-actions {
    width: 100%;
  }
}

/* admin error */

.admin-error-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: var(--paper);
  text-align: center;
}

.admin-error-page h1 {
  margin: 30px 0 10px;
  font-family: var(--serif);
  font-size: 43px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.admin-error-page p {
  color: var(--muted);
  font-size: 13px;
}

.admin-error-actions {
  display: flex;
  gap: 9px;
  margin-top: 24px;
}

/* ----------------------------- animations ----------------------------- */

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stageIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes softPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.94); opacity: 0.72; }
}

/* ----------------------------- responsive ----------------------------- */

@media (max-width: 1250px) {
  .gallery-grid {
    column-gap: 28px;
  }

  .gallery-grid.is-ranked {
    gap: 28px;
  }

  .hero-stage {
    height: 570px;
  }

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

  .admin-work {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .gallery-grid {
    column-count: 2;
  }

  .gallery-grid.is-ranked {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid.is-compact {
    column-count: 3;
  }

  .recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 60px;
    padding-bottom: 90px;
  }

  .hero-title {
    font-size: clamp(58px, 8vw, 92px);
  }

  .hero-stage {
    height: 525px;
  }

  .admin-auth {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .auth-visual-copy {
    left: 38px;
    bottom: 38px;
  }

  .auth-seal {
    top: 32px;
    right: 32px;
  }

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

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-card.wide {
    grid-column: auto;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 50px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-stage {
    height: 500px;
    max-width: 720px;
    width: 100%;
    justify-self: center;
  }

  .hero-piece-main {
    left: 18%;
    width: 60%;
    height: 72%;
    top: 5%;
  }

  .hero-piece-second {
    width: 33%;
    height: 28%;
    left: 1%;
  }

  .hero-piece-third {
    width: 30%;
    height: 25%;
    right: 1%;
  }

  .hero-meta {
    margin-top: 37px;
  }

  .upload-layout {
    grid-template-columns: 1fr;
    gap: 33px;
  }

  .upload-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 30px;
    padding-top: 0;
  }

  .steps {
    flex-direction: row;
    gap: 0;
  }

  .steps li {
    flex: 1;
    gap: 9px;
    padding: 0 17px 0 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    font-size: 14px;
  }

  .steps li + li {
    padding-left: 17px;
  }

  .steps li:last-child {
    border-right: 0;
  }

  .aside-note {
    max-width: 16em;
    margin-top: 0;
    text-align: right;
  }

  .admin-app {
    display: block;
  }

  .admin-side {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    width: 100%;
    height: auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(247, 240, 225, 0.1);
  }

  .admin-side .admin-brand-sub {
    display: none;
  }

  .admin-side .admin-brand-name {
    font-size: 16px;
  }

  .admin-nav {
    display: flex;
    flex-direction: row;
    gap: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .admin-nav-item {
    width: auto;
    min-height: 36px;
    flex: 0 0 auto;
    gap: 7px;
    padding: 0 11px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    font-size: 10.5px;
  }

  .admin-nav-item.is-active {
    border-bottom-color: var(--accent);
    background: transparent;
  }

  .admin-side-foot {
    flex-direction: row;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .admin-back {
    display: none;
  }

  .admin-logout {
    padding: 0 7px;
    font-size: 9.5px;
  }

  .admin-main {
    padding-top: 31px;
  }

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

  .auth-visual {
    min-height: 230px;
    height: 230px;
  }

  .auth-big-char {
    right: 3%;
    bottom: -38%;
    font-size: 360px;
  }

  .auth-sun {
    top: -40px;
    left: 10%;
    width: 210px;
  }

  .auth-visual-copy {
    left: 28px;
    bottom: 24px;
    font-size: 12px;
  }

  .auth-seal {
    top: 25px;
    right: 25px;
    width: 34px;
    height: 46px;
    font-size: 14px;
  }

  .auth-panel {
    align-items: flex-start;
    min-height: calc(100vh - 230px);
    padding: 39px 26px 55px;
  }

  .auth-box {
    max-width: 480px;
    margin: 0 auto;
  }

  .auth-back {
    margin-bottom: 34px;
  }

  .auth-local-note {
    margin-top: 35px;
  }

  .lightbox-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 56vh minmax(0, 1fr);
  }

  .lightbox-stage {
    padding: 35px 64px;
  }

  .lightbox-image {
    max-height: calc(56vh - 66px);
  }

  .lightbox-side {
    justify-content: flex-start;
    padding: 34px 30px 45px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }

  .lightbox-title {
    font-size: 38px;
    margin-top: 11px;
  }

  .lightbox-facts {
    margin-top: 18px;
    padding-top: 16px;
  }

  .lightbox-description {
    margin-top: 18px;
    font-size: 15px;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .lightbox-prev {
    left: 14px;
  }

  .lightbox-next {
    right: 14px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 65px;
    padding: 0 19px;
    gap: 12px;
  }

  .header-left {
    gap: 9px;
  }

  .header-avatar {
    width: 31px;
    height: 31px;
  }

  .header-identity-name {
    max-width: 96px;
    font-size: 11.5px;
  }

  .profile-card {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 13px;
  }

  .profile-avatar {
    width: 52px;
    height: 52px;
  }

  .profile-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .profile-avatar-button {
    width: auto;
    justify-content: flex-start;
  }

  .people-tools {
    width: 100%;
    align-items: stretch;
  }

  .people-head {
    align-items: flex-start;
  }

  .people-results {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .people-panel {
    margin-top: 34px;
  }

  .people-panel-head {
    align-items: flex-start;
  }

  .people-panel-avatar {
    width: 56px;
    height: 56px;
  }

  .anon-notice,
  .anon-mine-note {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .anon-notice .text-button,
  .anon-mine-note .text-button {
    margin-left: 28px;
  }

  .brand {
    gap: 8px;
  }

  .brand-seal {
    width: 29px;
    height: 29px;
    font-size: 16px;
  }

  .brand-name {
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .brand-en {
    display: none;
  }

  .site-nav {
    gap: 13px;
  }

  .nav-user {
    max-width: 104px;
    gap: 6px;
  }

  .nav-user-name {
    max-width: 52px;
    font-size: 11px;
  }

  .nav-auth-button {
    font-size: 11px;
  }

  .nav-link {
    padding: 6px 0;
    font-size: 11.5px;
  }

  .nav-cta {
    min-height: 33px;
    gap: 5px;
    padding: 0 9px;
    font-size: 10.5px;
  }

  .nav-cta .icon {
    width: 12px;
    height: 12px;
  }

  .hero {
    padding: 41px 20px 76px;
    gap: 27px;
  }

  .hero-title {
    margin: 18px 0 20px;
    font-size: clamp(51px, 13.5vw, 77px);
    line-height: 1.03;
  }

  .hero-intro {
    max-width: 28em;
    font-size: 13.5px;
    line-height: 1.8;
  }

  .hero-actions {
    margin-top: 27px;
  }

  .hero-actions .button {
    min-height: 44px;
    padding: 0 17px;
    font-size: 12px;
  }

  .hero-meta {
    margin-top: 29px;
  }

  .hero-count {
    font-size: 30px;
  }

  .hero-stage {
    height: 395px;
  }

  .hero-piece-main {
    top: 2%;
    left: 12%;
    width: 72%;
    height: 76%;
  }

  .hero-piece .hero-frame {
    padding: 8px;
  }

  .hero-piece-main .hero-frame {
    padding: 9px;
  }

  .hero-piece-second {
    bottom: 1%;
    left: 0;
    width: 30%;
    height: 24%;
  }

  .hero-piece-third {
    top: 2%;
    right: 0;
    width: 25%;
    height: 20%;
  }

  .hero-piece-caption {
    font-size: 8px;
    gap: 6px;
  }

  .hero-piece-caption b {
    font-size: 10px;
  }

  .hero-stamp {
    right: 2%;
    bottom: 2%;
    width: 40px;
    height: 54px;
    font-size: 11px;
  }

  .gallery-section {
    padding: 20px 20px 75px;
  }

  .section-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .section-title {
    font-size: 41px;
  }

  .section-note {
    padding-top: 0;
    font-size: 9.5px;
    text-align: left;
  }

  .gallery-more {
    align-items: flex-start;
  }

  .gallery-search {
    width: 100%;
  }

  .recommend-section {
    padding: 0 20px 65px;
  }

  .recommend-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 30px;
  }

  .recommend-refresh {
    align-self: flex-start;
  }

  .page-more .page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .more-tools {
    align-items: stretch;
    width: 100%;
  }

  .more-tools .section-note {
    text-align: left;
  }

  .gallery-grid.is-compact {
    column-count: 2;
    column-gap: 14px;
    margin-top: 30px;
  }

  .gallery-grid.is-compact .art-card {
    margin-bottom: 20px;
  }

  .gallery-grid.is-compact .art-card-frame {
    padding: 6px;
  }

  .gallery-grid.is-compact .art-card-title {
    font-size: 15px;
  }

  .gallery-grid.is-compact .like-button {
    gap: 3px;
  }

  .gallery-grid.is-compact .like-button .icon {
    width: 12px;
    height: 12px;
  }

  .gallery-grid {
    column-count: 1;
    margin-top: 31px;
  }

  .gallery-grid.is-ranked {
    grid-template-columns: 1fr;
  }

  .art-card {
    margin-bottom: 34px;
  }

  .art-card-frame {
    padding: 8px;
  }

  .art-card-title {
    font-size: 19px;
  }

  .invite {
    margin: 0 20px 65px;
  }

  .invite-inner {
    padding: 58px 24px 60px;
  }

  .invite-title {
    font-size: clamp(41px, 11vw, 55px);
  }

  .invite-copy {
    font-size: 12.5px;
  }

  .invite-sun {
    right: -70px;
    width: 220px;
    height: 220px;
    opacity: 0.38;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 23px 20px;
  }

  .footer-note {
    order: 3;
    width: 100%;
  }

  .page {
    padding: 45px 20px 80px;
  }

  .page-title {
    font-size: clamp(46px, 12vw, 67px);
  }

  .page-lead {
    font-size: 13px;
  }

  .login-gate {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: 30px;
    padding: 26px 22px;
  }

  .login-gate .button {
    align-self: flex-start;
  }

  .upload-layout {
    margin-top: 36px;
    gap: 26px;
  }

  .upload-aside {
    display: block;
  }

  .steps {
    gap: 0;
  }

  .steps li {
    padding-right: 10px;
    font-size: 12px;
  }

  .steps li + li {
    padding-left: 10px;
  }

  .aside-note {
    margin-top: 15px;
    text-align: left;
  }

  .upload-form {
    padding: 18px;
  }

  .field-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .field-note {
    text-align: left;
  }

  .dropzone {
    min-height: 235px;
    padding: 18px;
  }

  .drop-preview-image {
    max-height: 350px;
  }

  .drop-preview-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .drop-preview-actions {
    width: 100%;
    justify-content: space-between;
  }

  .extra-grid {
    grid-template-columns: 1fr;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .submit-art {
    width: 100%;
  }

  .upload-success {
    min-height: 400px;
    padding: 33px 22px;
  }

  .mine-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .refresh-button {
    margin-bottom: 0;
  }

  .mine-list {
    margin-top: 31px;
  }

  .mine-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    padding: 10px;
  }

  .mine-image {
    max-height: 160px;
  }

  .mine-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .mine-title {
    margin-top: 8px;
    font-size: 23px;
  }

  .mine-actions {
    gap: 13px;
    padding-top: 10px;
  }

  .local-note {
    margin-top: 24px;
  }

  .modal {
    width: calc(100vw - 22px);
  }

  .modal-head {
    padding: 22px 20px 0;
  }

  .modal-title {
    font-size: 25px;
  }

  .modal-body {
    padding: 16px 20px 20px;
  }

  .modal-actions {
    padding: 14px 20px 18px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .admin-side {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .admin-side .admin-brand-text {
    display: none;
  }

  .admin-side .brand-seal {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .admin-nav-item {
    min-height: 34px;
    padding: 0 8px;
    font-size: 9.5px;
  }

  .admin-nav-count {
    display: none;
  }

  .admin-logout {
    gap: 4px;
    padding: 0 2px;
    font-size: 0;
  }

  .admin-logout .icon {
    width: 17px;
    height: 17px;
  }

  .admin-main {
    padding: 25px 15px 60px;
  }

  .admin-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 21px;
  }

  .admin-title {
    font-size: 41px;
  }

  .admin-top-side {
    align-items: flex-start;
    padding-bottom: 0;
  }

  .admin-top-note {
    display: none;
  }

  .admin-content {
    margin-top: 22px;
  }

  .admin-list-head {
    margin-bottom: 13px;
  }

  .admin-list-lead {
    font-size: 15px;
  }

  .admin-list-hint {
    display: none;
  }

  .admin-work {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 10px;
  }

  .admin-work-image {
    max-height: 290px;
  }

  .admin-work-image img {
    object-fit: cover;
  }

  .admin-work-title {
    font-size: 24px;
  }

  .admin-work-head {
    align-items: flex-start;
  }

  .admin-work-desc {
    -webkit-line-clamp: 3;
  }

  .admin-work-foot {
    padding-top: 11px;
  }

  .admin-work-actions {
    width: 100%;
  }

  .admin-user {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 14px;
  }

  .admin-user-mark {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .admin-user-avatar {
    width: 40px;
    height: 40px;
  }

  .admin-avatar-review {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-avatar-review-actions {
    width: 100%;
    margin-left: 66px;
  }

  .admin-avatar-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .admin-avatar-card .admin-avatar-review-actions {
    margin-left: 0;
  }

  .admin-user-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .admin-user-name {
    font-size: 19px;
  }

  .mini-button {
    min-height: 32px;
    padding: 0 10px;
  }

  .admin-empty {
    min-height: 310px;
    padding: 25px;
  }

  .settings-card {
    padding: 20px;
  }

  .settings-card-head h2 {
    font-size: 23px;
  }

  .api-key-row {
    flex-direction: column;
    align-items: stretch;
  }

  .api-key-row .button {
    width: 100%;
  }

  .api-key-input {
    font-size: 12px;
  }

  .settings-demo-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-visual {
    min-height: 170px;
    height: 170px;
  }

  .auth-big-char {
    font-size: 260px;
    bottom: -40%;
  }

  .auth-sun {
    top: -70px;
    left: 12%;
    width: 170px;
  }

  .auth-visual-copy {
    bottom: 18px;
    left: 20px;
    font-size: 11px;
  }

  .auth-visual-en {
    display: none;
  }

  .auth-seal {
    display: none;
  }

  .auth-panel {
    min-height: calc(100vh - 170px);
    padding: 30px 20px 45px;
  }

  .auth-back {
    margin-bottom: 30px;
  }

  .auth-title {
    font-size: 41px;
  }

  .lightbox-grid {
    grid-template-rows: 50vh minmax(0, 1fr);
  }

  .lightbox-stage {
    padding: 24px 52px;
  }

  .lightbox-image {
    max-height: calc(50vh - 48px);
  }

  .lightbox-side {
    padding: 25px 22px 38px;
  }

  .lightbox-count {
    font-size: 9px;
  }

  .lightbox-title {
    font-size: 31px;
    margin: 7px 0 6px;
  }

  .lightbox-author {
    font-size: 10px;
  }

  .lightbox-facts {
    margin-top: 14px;
    padding-top: 13px;
  }

  .lightbox-description {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.8;
  }

  .lightbox-close {
    width: 34px;
    height: 34px;
  }

  .toast-region {
    bottom: 16px;
  }
}

@media (max-width: 600px) {
  .nav-link-admin {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand {
    display: none;
  }

  .header-left {
    gap: 0;
  }

  .header-identity {
    gap: 7px;
  }

  .header-identity-name {
    max-width: 84px;
  }

  .site-nav {
    gap: 9px;
  }

  .anon-notice .text-button,
  .anon-mine-note .text-button {
    margin-left: 0;
  }
}

@media (max-width: 390px) {
  .site-nav {
    gap: 8px;
  }

  .header-identity-name {
    max-width: 68px;
    font-size: 10.5px;
  }

  .nav-link {
    font-size: 10.5px;
  }

  .nav-cta {
    padding: 0 7px;
    font-size: 9.5px;
  }

  .nav-cta .icon {
    display: none;
  }

  .hero-title {
    font-size: 47px;
  }

  .hero-stage {
    height: 340px;
  }

  .hero-piece-third {
    display: none;
  }

  .hero-piece-main {
    width: 77%;
    left: 8%;
  }

  .hero-piece-second {
    width: 32%;
  }

  .section-note {
    display: none;
  }

  .mine-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .mine-title {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}