:root {
  --paper: #f4ead8;
  --paper-soft: #fffaf0;
  --paper-deep: #ead9bd;
  --ink: #241f1a;
  --ink-soft: #685b4b;
  --ink-faint: #8b7a65;
  --line: #d7c4a5;
  --line-strong: #bfa47c;
  --pine: #315f45;
  --pine-deep: #234936;
  --cinnabar: #aa3d2d;
  --cinnabar-deep: #842b22;
  --ochre: #b68b4a;
  --danger: #9f352d;
  --shadow: 0 18px 42px rgba(45, 35, 23, 0.11);
  --soft-shadow: 0 10px 24px rgba(45, 35, 23, 0.08);
  --font-xingshu: "STXingkai", "Xingkai SC", "HanziPen SC", "Kaiti SC",
    "KaiTi", "华文行楷", "Microsoft YaHei", "微软雅黑", "PingFang SC",
    "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-xingshu);
  background:
    linear-gradient(90deg, rgba(88, 67, 40, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(88, 67, 40, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(49, 95, 69, 0.14), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(170, 61, 45, 0.10), transparent 24%),
    linear-gradient(150deg, #f9f1e3 0%, #f1e5cf 56%, #e8d5b7 100%);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  min-height: 100vh;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 20% 78%, rgba(36, 31, 26, 0.07), transparent 24%),
    radial-gradient(circle at 78% 74%, rgba(182, 139, 74, 0.12), transparent 22%);
  mix-blend-mode: multiply;
}

body::after {
  opacity: 0.42;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(116, 92, 61, 0.06) 49%, transparent 50%),
    linear-gradient(35deg, transparent 0 50%, rgba(116, 92, 61, 0.04) 51%, transparent 52%);
  background-size: 140px 96px, 180px 120px;
}

body.modal-open {
  overflow: hidden;
}

img,
video {
  max-width: 100%;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 18px 52px;
  position: relative;
  z-index: 1;
}

.app-shell,
.app-layout,
.app-main,
.topbar,
.panel,
.tab-pane,
.cards,
.card {
  min-width: 0;
  max-width: 100%;
}

.container,
.header {
  min-width: 0;
  max-width: 100%;
}

.app-shell {
  width: min(1580px, calc(100% - 20px));
  margin: 10px auto;
  padding: 0;
  position: relative;
  z-index: 1;
}

.app-layout {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  min-height: calc(100vh - 20px);
  overflow: hidden;
  border: 1px solid rgba(68, 48, 28, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.90), rgba(244, 234, 216, 0.86)),
    var(--paper-soft);
  box-shadow: 0 22px 58px rgba(40, 31, 21, 0.16);
}

.app-sidebar {
  position: sticky;
  top: 10px;
  align-self: start;
  min-height: calc(100vh - 20px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 16px 20px;
  background:
    linear-gradient(180deg, rgba(20, 52, 37, 0.98), var(--pine-deep)),
    radial-gradient(circle at 50% 100%, rgba(242, 229, 203, 0.16), transparent 36%);
  color: #f7eddb;
  overflow: hidden;
}

.app-sidebar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background:
    linear-gradient(180deg, transparent, rgba(9, 28, 20, 0.82)),
    url("./assets/logo-huaniao-user.jpeg") center bottom / cover no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.sidebar-brand,
.sidebar-nav,
.sidebar-footer {
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  display: grid;
  gap: 5px;
  padding: 0 8px 14px;
  border-bottom: 1px solid rgba(245, 233, 212, 0.18);
}

.sidebar-brand strong {
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.34);
}

.sidebar-brand span,
.sidebar-section,
.sidebar-footer {
  color: rgba(249, 241, 226, 0.68);
  font-size: 12px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  margin: 0;
}

.sidebar-section {
  margin: 12px 8px 2px;
}

.sidebar-nav .tab-btn,
.sidebar-sub-link {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 250, 240, 0.82);
  box-shadow: none;
  text-align: left;
}

.sidebar-nav .tab-btn.active,
.sidebar-sub-link:hover {
  background: rgba(255, 250, 240, 0.13);
  border-color: rgba(255, 250, 240, 0.12);
  color: #fffaf0;
  box-shadow: none;
}

.sidebar-nav .tab-btn span,
.sidebar-sub-link span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 6px;
  font-size: 13px;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 12px 8px 0;
}

.seal {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(213, 83, 61, 0.82);
  color: #f4b2a3;
  font-size: 12px;
  line-height: 1.05;
}

.app-main {
  padding: 20px 24px 28px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(260px, auto);
  justify-content: end;
  align-items: center;
  gap: 0;
}

.topbar .user-summary {
  position: static;
  max-width: none;
  width: 100%;
  justify-self: end;
}

.home-minimal {
  display: grid;
  min-height: calc(100vh - 220px);
}

.home-focus {
  min-height: clamp(540px, calc(100vh - 230px), 760px);
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(42px, 7vw, 96px);
  border: 1px solid rgba(191, 164, 124, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 252, 244, 0.96) 0%, rgba(255, 250, 238, 0.88) 42%, rgba(250, 239, 220, 0.36) 100%),
    radial-gradient(circle at 16% 14%, rgba(255, 255, 248, 0.84), transparent 30%),
    url("./assets/logo-huaniao-user.jpeg") right center / min(760px, 66vw) auto no-repeat,
    linear-gradient(145deg, #fbf4e5 0%, #efe1c5 100%);
  box-shadow: 0 24px 54px rgba(45, 35, 23, 0.12);
  overflow: hidden;
  position: relative;
}

.home-focus::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(92, 72, 45, 0.05) 100%),
    repeating-linear-gradient(92deg, rgba(117, 86, 50, 0.045) 0 1px, transparent 1px 32px);
  mix-blend-mode: multiply;
  opacity: 0.46;
  pointer-events: none;
}

.home-focus > * {
  position: relative;
  z-index: 1;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--pine);
  font-size: 14px;
  letter-spacing: 0.18em;
}

.home-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--pine);
}

.home-title-row {
  max-width: min(840px, 68vw);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 13px;
}

.home-focus h2 {
  max-width: min(760px, 64vw);
  margin: 0;
  padding-left: 0;
  color: #1f1a16;
  font-family: "STKaiti", "Kaiti SC", "KaiTi", "楷体", "Songti SC", "SimSun", serif;
  font-size: clamp(46px, 5.2vw, 76px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 251, 243, 0.9);
}

.home-seal {
  display: inline-grid;
  place-items: center;
  width: clamp(26px, 2.8vw, 34px);
  height: clamp(28px, 3vw, 36px);
  margin: 0 0 0 1px;
  border: 1.5px solid rgba(139, 43, 34, 0.76);
  border-radius: 36% 42% 38% 45% / 43% 35% 46% 39%;
  color: rgba(132, 43, 34, 0.9);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 250, 240, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(170, 61, 45, 0.08), rgba(139, 43, 34, 0.16));
  box-shadow:
    inset 0 0 0 1px rgba(170, 61, 45, 0.18),
    inset 2px -2px 0 rgba(132, 43, 34, 0.08),
    0 1px 0 rgba(255, 250, 240, 0.6);
  font-family: var(--font-xingshu);
  font-size: clamp(15px, 1.65vw, 20px);
  line-height: 1;
  opacity: 0.88;
  transform: translateY(-0.08em) rotate(-7deg);
}

.home-focus h2::after {
  content: none;
}

.home-intro {
  max-width: min(560px, 56vw);
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.8;
}

.home-notes {
  width: min(660px, 62vw);
  display: grid;
  gap: 12px;
  margin-top: clamp(38px, 7vh, 72px);
}

.home-notes p {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(191, 164, 124, 0.3);
  color: var(--ink-soft);
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.75;
}

.home-notes strong {
  margin-right: 14px;
  color: var(--cinnabar-deep);
  font-weight: 500;
}

.paintings-workbench {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 16px;
}

.upload-panel {
  min-height: 0;
  overflow: hidden;
}

.upload-panel::after {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.82), rgba(248, 241, 228, 0.74)),
    url("./assets/logo-huaniao-user.jpeg") center / cover no-repeat;
  opacity: 0.72;
}

.upload-panel form,
.gallery-panel > * {
  position: relative;
  z-index: 1;
}

.upload-hero-card {
  display: grid;
  gap: 13px;
  padding: 4px 0 0;
  border: 1px solid rgba(132, 105, 72, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.24);
}

.upload-card-head {
  display: grid;
  gap: 4px;
}

.upload-card-head h2 {
  margin: 0;
  padding-left: 0;
  font-size: 22px;
}

.upload-card-head h2::after {
  content: none;
}

.upload-card-head p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 13px;
}

.upload-dropzone {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 18px 16px;
  border: 1px dashed rgba(123, 97, 62, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.78), rgba(255, 250, 239, 0.56)),
    rgba(255, 253, 247, 0.62);
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.upload-dropzone.dragging {
  border-color: rgba(49, 95, 69, 0.78);
  background:
    linear-gradient(90deg, rgba(240, 249, 241, 0.86), rgba(255, 250, 239, 0.68)),
    rgba(255, 253, 247, 0.72);
  box-shadow: inset 0 0 0 2px rgba(49, 95, 69, 0.12);
}

.upload-cloud {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border-radius: 999px;
  color: var(--pine-deep);
  font-size: 25px;
  line-height: 1;
}

.upload-dropzone strong {
  font-size: 15px;
  color: var(--ink);
}

.upload-dropzone span:not(.upload-cloud),
.upload-dropzone small {
  color: var(--ink-faint);
  font-size: 12px;
}

.upload-dropzone small {
  color: #7d4d3f;
}

.upload-file-trigger {
  width: 100%;
  min-height: 43px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border-radius: 6px;
  border: 0;
  background: linear-gradient(145deg, var(--pine), var(--pine-deep));
  color: #fffaf0;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 7px 14px rgba(35, 73, 54, 0.18);
}

.upload-submit {
  width: 100%;
  min-height: 43px;
  display: grid;
  place-items: center;
  margin-top: 0;
  border-radius: 6px;
  border: 0;
  background: linear-gradient(145deg, var(--pine), var(--pine-deep));
  color: #fffaf0;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 7px 14px rgba(35, 73, 54, 0.18);
}

.upload-file-trigger input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-limit-note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cinnabar-deep);
  font-size: 13px;
  font-weight: 700;
}

.upload-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.upload-description-field {
  grid-column: 1 / -1;
}

.gallery-panel .toolbar {
  grid-template-columns: minmax(180px, 0.7fr) minmax(240px, 1fr);
}

.mobile-bottom-nav {
  display: none;
}

.auth-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}

.auth-panel {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(90, 67, 38, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      rgba(248, 244, 236, 0.88) 0%,
      rgba(248, 244, 236, 0.5) 38%,
      rgba(248, 244, 236, 0.96) 100%
    ),
    url("./assets/logo-huaniao-user.jpeg") center 41% / cover no-repeat;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(181, 145, 91, 0.2);
  border-radius: 6px;
  pointer-events: none;
}

.auth-panel p {
  max-width: 560px;
  margin: 12px auto 22px;
  color: var(--ink-soft);
  text-align: center;
  text-shadow: 0 1px 0 rgba(248, 244, 236, 0.75);
}

.auth-panel > .eyebrow,
.auth-panel > .title-row {
  position: relative;
  z-index: 1;
}

.auth-panel > .eyebrow {
  margin-bottom: 8px;
  text-shadow: 0 1px 1px rgba(248, 244, 236, 0.6);
}

.auth-panel > .title-row {
  justify-content: center;
  gap: 0;
}

.auth-panel > .title-row h1 {
  font-size: 46px;
  color: #1f1a16;
  text-shadow:
    0 1px 0 rgba(251, 248, 241, 0.9),
    0 2px 10px rgba(37, 31, 26, 0.2);
}

.auth-panel > .title-row .ink-mark {
  display: none;
}

.auth-stage {
  display: grid;
  grid-template-columns: minmax(250px, 0.88fr) minmax(340px, 420px);
  justify-content: center;
  align-items: start;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.auth-aside {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 14px 0 10px;
}

.auth-note,
.auth-brief,
.auth-stage-main {
  position: relative;
  border: 1px solid rgba(191, 164, 124, 0.48);
  border-radius: 8px;
  background: rgba(255, 249, 239, 0.74);
  box-shadow: var(--soft-shadow);
}

.auth-note,
.auth-brief {
  padding: 16px 18px;
  backdrop-filter: blur(1px);
}

.auth-note {
  display: grid;
  gap: 6px;
}

.auth-note strong,
.auth-brief h2 {
  color: var(--pine-deep);
}

.auth-note strong {
  font-size: 19px;
}

.auth-note span,
.auth-brief {
  color: var(--ink-soft);
}

.auth-benefit {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(191, 164, 124, 0.48);
  color: #6f4f31;
  font-size: 13px;
  line-height: 1.65;
}

.auth-brief h2 {
  margin-bottom: 10px;
  padding-left: 0;
  font-size: 28px;
}

.auth-brief h2::after {
  width: 58px;
}

.auth-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.auth-points li {
  line-height: 1.6;
}

.auth-stage-main {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(247, 239, 225, 0.96)),
    rgba(255, 249, 239, 0.84);
  width: 100%;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: auto;
  padding: 24px;
  border: 1px solid rgba(191, 164, 124, 0.62);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.9);
  backdrop-filter: blur(2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.auth-form button {
  margin-top: 2px;
}

.auth-form.hidden {
  display: none;
}

.auth-form-head {
  display: grid;
  gap: 6px;
  margin-bottom: 4px;
}

.auth-form-head h2 {
  margin-bottom: 0;
  padding-left: 0;
  font-size: 28px;
}

.auth-form-head h2::after {
  width: 62px;
}

.auth-form-head span {
  color: var(--ink-faint);
  font-size: 14px;
}

.text-action {
  align-self: flex-start;
  width: auto;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pine-deep);
  font-size: 14px;
  text-align: left;
  box-shadow: none;
  min-height: 0;
}

.text-action:hover {
  color: var(--cinnabar-deep);
  transform: none;
  box-shadow: none;
  filter: none;
}

.header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  margin-bottom: 18px;
  padding: 18px 24px 14px;
  border: 1px solid rgba(90, 67, 38, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(121, 87, 50, 0.15) 0 14px, transparent 14px calc(100% - 14px), rgba(121, 87, 50, 0.13) calc(100% - 14px)),
    linear-gradient(160deg, rgba(255, 252, 246, 0.96), rgba(245, 235, 216, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(181, 145, 91, 0.28);
  border-radius: 6px;
  pointer-events: none;
}

.header::after {
  content: "墨韵成册";
  position: absolute;
  right: 128px;
  bottom: 18px;
  color: rgba(36, 31, 26, 0.08);
  font-family: var(--font-xingshu);
  font-size: 48px;
  letter-spacing: 0;
  pointer-events: none;
}

.header-copy {
  position: relative;
  z-index: 1;
  padding-right: 286px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--pine);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--pine);
}

.title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
  font-family: var(--font-xingshu);
  font-weight: 500;
}

.ink-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: url("./assets/logo-huaniao-user.jpeg") 57% 55% / 235% auto no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(99, 80, 62, 0.2),
    0 2px 5px rgba(27, 23, 20, 0.1);
  overflow: hidden;
}

.ink-mark::before,
.ink-mark::after {
  content: none;
}

.header p {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.user-summary {
  grid-column: auto;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 262px;
  padding: 6px 8px;
  border: 1px solid rgba(191, 164, 124, 0.62);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.84);
}

.user-avatar {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(170, 61, 45, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 250, 240, 0.9), transparent 38%),
    linear-gradient(145deg, var(--cinnabar), var(--cinnabar-deep));
  object-fit: cover;
}

.user-avatar.previewable {
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.user-avatar.previewable:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 3px rgba(49, 95, 69, 0.16);
}

.user-avatar.empty::before {
  content: "";
}

.user-summary strong,
.user-summary span {
  display: block;
}

.user-summary > div {
  min-width: 0;
}

.user-summary span {
  color: var(--ink-faint);
  font-size: 12px;
}

.user-bio {
  max-width: 168px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  line-height: 1.35;
}

.membership-summary {
  max-width: 210px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(191, 164, 124, 0.45);
  color: #6f4f31;
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
}

.user-summary button {
  width: auto;
  margin-top: 0;
  margin-left: auto;
  padding: 4px 8px;
  font-size: 12px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.tab-btn {
  width: auto;
  min-width: 118px;
  margin-top: 0;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.76);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.tab-btn.active {
  background: linear-gradient(145deg, var(--pine), var(--pine-deep));
  color: #fffaf0;
  border-color: transparent;
  box-shadow: 0 10px 18px rgba(36, 87, 61, 0.22);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.panel {
  position: relative;
  background:
    linear-gradient(165deg, rgba(255, 253, 247, 0.96), rgba(247, 239, 225, 0.95)),
    var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-top: 16px;
  box-shadow: var(--soft-shadow);
}

.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  background: linear-gradient(180deg, var(--cinnabar), var(--ochre));
  opacity: 0.78;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(178, 156, 128, 0.28);
  border-radius: 5px;
  pointer-events: none;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  grid-auto-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}

.profile-layout form {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-layout form:first-child {
  grid-row: span 2;
}

.profile-layout button {
  margin-top: auto;
}

h2 {
  position: relative;
  margin: 0 0 16px;
  padding-left: 12px;
  font-size: 23px;
  letter-spacing: 0;
  font-family: inherit;
}

h2::after {
  content: "";
  display: block;
  width: 76px;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--ochre), transparent);
}

label {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  font-family: inherit;
}

input,
select,
textarea,
button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 7px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
}

button,
input,
select,
textarea {
  min-height: 42px;
}

input,
select,
textarea {
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: rgba(104, 91, 75, 0.62);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #6d8b73;
  box-shadow: 0 0 0 3px rgba(76, 131, 96, 0.15);
}

.selected-file-list {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.selected-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(191, 164, 124, 0.68);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.74);
}

.selected-file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file-remove {
  width: auto;
  flex: 0 0 auto;
  margin-top: 0;
  padding: 5px 10px;
  border: 1px solid rgba(170, 61, 45, 0.48);
  background: rgba(170, 61, 45, 0.1);
  color: var(--cinnabar-deep);
  font-size: 12px;
}

.selected-file-remove:hover {
  background: rgba(170, 61, 45, 0.18);
  box-shadow: none;
  transform: none;
}

textarea {
  resize: vertical;
  line-height: 1.65;
}

button {
  background: linear-gradient(145deg, var(--pine), var(--pine-deep));
  border-color: transparent;
  color: #fffaf0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(36, 87, 61, 0.22);
}

button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

button.ghost {
  background: rgba(255, 250, 240, 0.82);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

button.ghost:hover {
  box-shadow: 0 7px 14px rgba(71, 56, 39, 0.12);
}

button.danger {
  background: linear-gradient(145deg, #bd4b3f, var(--danger));
}

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

.toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) 1fr;
  gap: 13px;
  margin-bottom: 11px;
}

.toolbar-actions {
  display: flex;
  gap: 9px;
  margin-bottom: 15px;
}

.toolbar-actions button {
  width: auto;
  padding: 10px 17px;
  margin-top: 0;
}

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

.section-head p {
  margin: 4px 0 0;
  color: var(--ink-faint);
  font-size: 14px;
}

.section-head button {
  width: auto;
  margin-top: 0;
  flex: 0 0 auto;
}

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

.admin-user-card {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
  border: 1px solid rgba(191, 164, 124, 0.58);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
}

.admin-user-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1 / -1;
}

.admin-user-main strong,
.admin-user-main span {
  display: block;
}

.admin-user-username,
.admin-user-usage {
  color: var(--ink-faint);
  font-size: 13px;
}

.admin-user-plan {
  padding: 4px 9px;
  border: 1px solid rgba(49, 95, 69, 0.32);
  border-radius: 999px;
  color: var(--pine-deep);
  background: rgba(49, 95, 69, 0.08);
  font-size: 12px;
  white-space: nowrap;
}

.admin-user-usage {
  align-self: center;
}

.admin-user-open {
  width: auto;
  min-width: 72px;
  margin-top: 0;
  align-self: center;
  justify-self: end;
}

.admin-user-detail {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px dashed rgba(191, 164, 124, 0.58);
}

.admin-quota-form {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) repeat(3, minmax(88px, 0.8fr)) auto minmax(180px, auto);
  align-items: end;
  gap: 10px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
}

.check-field input {
  width: auto;
  min-height: 0;
  margin-top: 0;
}

.admin-user-actions {
  display: flex;
  gap: 8px;
}

.admin-user-actions button {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}

.empty-state {
  margin: 0;
  color: var(--ink-faint);
}

.tag-strip,
.tag-list {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tag-strip {
  margin: -4px 0 15px;
  overflow-x: auto;
  padding: 3px 0 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.tag-list {
  flex-wrap: wrap;
  margin: 8px 0 0;
}

.card-meta-tags {
  flex: 1 1 120px;
  flex-wrap: wrap;
  margin: 0;
  gap: 5px;
}

.tag-pill {
  width: auto;
  min-height: 34px;
  flex: 0 0 auto;
  margin-top: 0;
  padding: 7px 12px;
  border: 1px solid rgba(137, 94, 52, 0.42);
  border-radius: 999px;
  background: rgba(255, 250, 239, 0.86);
  color: #5f4129;
  font-size: 14px;
  line-height: 1;
  box-shadow: none;
}

.tag-pill:hover,
.tag-pill.active {
  background: rgba(143, 61, 42, 0.13);
  border-color: rgba(143, 61, 42, 0.64);
  color: var(--cinnabar-deep);
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(91, 58, 34, 0.1);
}

.card-tag {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 13px;
}

.tag-list.hidden {
  display: none;
}

.message {
  min-height: 24px;
  font-size: 14px;
  color: var(--ink-faint);
}

.register-benefit {
  margin: 4px 0 2px;
  padding: 8px 10px;
  border: 1px solid rgba(191, 164, 124, 0.5);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.58);
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.55;
}

.hidden {
  display: none !important;
}

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

.cards > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(255, 250, 240, 0.7);
  text-align: center;
}

.pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pagination button {
  width: auto;
  margin-top: 0;
  padding: 8px 15px;
}

.pagination button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.page-info {
  color: var(--ink-soft);
  font-size: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 252, 246, 0.96);
  box-shadow: var(--soft-shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 95, 69, 0.38);
  box-shadow: 0 16px 32px rgba(54, 41, 26, 0.14);
}

.card.is-editing {
  transform: none;
  border-color: rgba(49, 95, 69, 0.42);
  box-shadow: 0 16px 32px rgba(54, 41, 26, 0.14);
}

.card.is-editing:hover {
  transform: none;
}

.painting-edit-panel {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(49, 95, 69, 0.28);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.96);
  box-shadow: 0 16px 32px rgba(54, 41, 26, 0.14);
}

.painting-edit-panel .edit-form {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.media-shell {
  position: relative;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  background:
    linear-gradient(135deg, rgba(36, 31, 26, 0.10), rgba(49, 95, 69, 0.12)),
    var(--paper-deep);
}

.media-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(36, 31, 26, 0.10);
  pointer-events: none;
}

.attachment-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  min-height: 38px;
  margin-top: 0;
  border: 1px solid rgba(255, 248, 236, 0.46);
  border-radius: 999px;
  padding: 0;
  background: rgba(27, 23, 18, 0.48);
  color: #fff8ec;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(2px);
}

.attachment-prev {
  left: 12px;
}

.attachment-next {
  right: 12px;
}

.attachment-status {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  min-width: 68px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(27, 23, 18, 0.55);
  color: #fff8ec;
  font-size: 12px;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(2px);
}

.media-thumb {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 360ms ease, filter 360ms ease;
}

.material-video {
  background: #1e1b18;
}

.media-shell:hover .media-thumb {
  transform: scale(1.035);
  filter: saturate(0.94) contrast(1.03);
}

.image-tip {
  position: absolute;
  right: 11px;
  bottom: 11px;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  color: #fff6e8;
  background: rgba(28, 23, 18, 0.62);
  backdrop-filter: blur(2px);
}

.card-content {
  padding: 15px;
}

.attachment-strip {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(198, 179, 155, 0.5);
  background:
    linear-gradient(90deg, rgba(170, 61, 45, 0.07), transparent 52%),
    rgba(248, 241, 228, 0.78);
}

.attachment-count {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  background: rgba(255, 252, 245, 0.82);
  color: var(--ink-soft);
  font-size: 12px;
}

.attachment-empty {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.card-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 4px;
}

.painting-title,
.material-title {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  font-size: 21px;
  line-height: 1.25;
  font-family: inherit;
}

.card-category-pill,
.card-meta-tags .card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  width: auto;
  margin: 0;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  transform: none;
  line-height: 1.15;
  white-space: nowrap;
}

.card-category-pill {
  padding: 3px 6px;
  background: rgba(49, 95, 69, 0.12);
  color: var(--pine-deep);
  font-size: 12px;
  font-weight: 700;
}

.card-meta-tags .card-tag {
  padding: 3px 5px;
  background: transparent;
  color: var(--ink-faint);
  font-size: 12px;
}

.card-meta-tags .card-tag::before {
  content: "#";
  color: rgba(170, 61, 45, 0.62);
}

.card-meta-tags .card-tag:hover {
  background: rgba(49, 95, 69, 0.08);
  color: var(--pine-deep);
  filter: none;
  transform: none;
  box-shadow: none;
}

.meta {
  margin: 6px 0;
  color: var(--ink-faint);
  font-size: 13px;
}

.description {
  margin: 9px 0 13px;
  font-size: 14px;
  color: #42392f;
  line-height: 1.72;
}

mark.hl {
  background: #ead092;
  color: inherit;
  border-radius: 4px;
  padding: 0 2px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 13px;
}

.card-actions button {
  width: auto;
  margin-top: 0;
  padding: 8px 14px;
}

.share-btn {
  background: var(--pine);
  border-color: var(--pine);
  color: #fffaf0;
}

.share-btn:hover {
  background: var(--pine-deep);
}

.ai-appreciation-btn {
  border-color: rgba(170, 61, 45, 0.46);
  background: rgba(170, 61, 45, 0.08);
  color: var(--cinnabar-deep);
}

.ai-appreciation-btn:hover {
  background: rgba(170, 61, 45, 0.14);
  box-shadow: none;
}

.ai-appreciation-modal.hidden {
  display: none;
}

.ai-appreciation-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(24, 20, 16, 0.54);
  backdrop-filter: blur(5px);
}

.ai-appreciation-dialog {
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  position: relative;
  padding: 28px 28px 24px;
  border: 1px solid rgba(116, 92, 61, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(132, 39, 28, 0.08), transparent 18%, transparent 82%, rgba(49, 95, 69, 0.08)),
    linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(247, 239, 224, 0.94)),
    var(--paper-soft);
  box-shadow: 0 28px 80px rgba(20, 16, 12, 0.36);
}

.ai-appreciation-dialog::before,
.ai-appreciation-dialog::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(116, 92, 61, 0.26), transparent);
}

.ai-appreciation-dialog::before {
  top: 13px;
}

.ai-appreciation-dialog::after {
  bottom: 13px;
}

.ai-appreciation-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: auto;
  margin: 0;
  padding: 7px 12px;
  border-color: rgba(116, 92, 61, 0.26);
  background: rgba(255, 250, 240, 0.68);
  color: var(--ink-soft);
}

.ai-appreciation-refresh {
  position: absolute;
  top: 18px;
  right: 78px;
  width: auto;
  margin: 0;
  padding: 7px 12px;
  border-color: rgba(170, 61, 45, 0.34);
  background: rgba(170, 61, 45, 0.08);
  color: var(--cinnabar-deep);
}

.ai-appreciation-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cinnabar-deep);
  font-size: 13px;
  letter-spacing: 0;
}

.ai-appreciation-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--cinnabar-deep);
}

.ai-appreciation-head h2 {
  margin: 0;
  padding-right: 68px;
  font-size: 30px;
  line-height: 1.18;
}

.ai-appreciation-meta {
  color: var(--ink-faint);
  font-size: 12px;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.ai-appreciation-work {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
}

.ai-appreciation-content {
  display: grid;
  gap: 10px;
}

.ai-appreciation-content p {
  margin: 0;
  color: #4f4438;
  font-size: 15px;
  line-height: 1.86;
}

.edit-form,
.material-edit-form {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(249, 244, 235, 0.92);
  padding: 11px;
  margin-bottom: 12px;
}

.edit-form.hidden,
.material-edit-form.hidden {
  display: none;
}

.edit-actions {
  display: flex;
  gap: 8px;
}

.edit-actions button {
  width: auto;
  margin-top: 0;
  padding: 8px 14px;
}

.painting-edit-attachments {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 10px;
  border: 1px solid rgba(191, 164, 124, 0.48);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.56);
}

.painting-edit-attachments-title {
  color: var(--ink-soft);
  font-size: 13px;
}

.painting-edit-attachments-empty {
  color: var(--ink-faint);
  font-size: 13px;
}

.painting-edit-attachment {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(191, 164, 124, 0.34);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.72);
}

.painting-edit-attachment-thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 5px;
  object-fit: cover;
  background: var(--paper-deep);
}

.painting-edit-attachment-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.painting-edit-delete {
  width: 34px;
  min-height: 34px;
  flex: 0 0 auto;
  margin-top: 0;
  padding: 4px;
  border-color: rgba(170, 61, 45, 0.48);
  color: var(--cinnabar-deep);
  font-size: 22px;
  line-height: 1;
}

.painting-edit-delete:hover {
  box-shadow: none;
  transform: none;
}

.comments {
  padding: 12px 15px 15px;
  border-top: 1px solid rgba(198, 179, 155, 0.58);
  background: rgba(255, 250, 240, 0.42);
}

.comments h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-family: inherit;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list li {
  border-left: 3px solid var(--ochre);
  padding: 7px 9px;
  margin-bottom: 8px;
  background: rgba(248, 242, 231, 0.82);
  font-size: 14px;
}

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

.comment-form input {
  margin-top: 0;
}

.comment-form button {
  width: auto;
  padding: 10px 16px;
  margin-top: 0;
}

.share-body {
  min-height: 100vh;
}

.share-page {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 32px 0 48px;
  position: relative;
  z-index: 1;
}

.share-hero {
  padding: 18px 0 16px;
}

.share-hero h1 {
  margin: 8px 0;
  font-size: clamp(34px, 8vw, 70px);
  letter-spacing: 0;
}

.share-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.share-gallery {
  display: grid;
  gap: 14px;
}

.share-gallery figure {
  margin: 0;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(116, 92, 61, 0.18);
  border-radius: 8px;
  padding: 10px;
  box-shadow: var(--soft-shadow);
}

.share-gallery img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  background: #19140f;
}

.share-note {
  margin-top: 16px;
  padding: 16px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.75;
}

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

.share-actions button {
  width: auto;
  margin-top: 0;
}

.share-actions span {
  color: var(--ink-soft);
  font-size: 14px;
}

.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(25, 20, 15, 0.58);
}

.share-sheet-panel {
  width: min(520px, 100%);
  position: relative;
  padding: 24px;
  border: 1px solid rgba(191, 164, 124, 0.56);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(244, 234, 216, 0.96)),
    var(--paper-soft);
  box-shadow: 0 22px 54px rgba(25, 20, 15, 0.28);
}

.share-sheet-panel h2 {
  margin: 8px 0;
}

.share-sheet-work {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.share-sheet-panel input {
  font-size: 14px;
}

.share-sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.share-poster-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.share-poster-tools button,
.share-poster-tools .button-link {
  width: 100%;
}

.share-download-link {
  grid-column: 1 / -1;
}

.share-poster-preview {
  width: min(100%, 280px);
  max-height: 44vh;
  display: block;
  margin: 14px auto 0;
  border: 1px solid rgba(116, 92, 61, 0.22);
  border-radius: 8px;
  background: var(--paper-soft);
  box-shadow: var(--soft-shadow);
  object-fit: contain;
}

.share-poster-stage {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.share-poster-canvas,
.share-poster-image {
  width: min(100%, 520px);
  height: auto;
  border: 1px solid rgba(116, 92, 61, 0.22);
  border-radius: 8px;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.share-poster-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  text-align: center;
}

.share-sheet-actions button,
.share-sheet-actions .button-link {
  flex: 1 1 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--pine);
  border-radius: 999px;
  background: var(--pine);
  color: #fffaf0;
  text-decoration: none;
}

.share-sheet-tip {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.share-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: auto;
  min-height: 36px;
  margin-top: 0;
  padding: 7px 10px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(22, 18, 15, 0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
}

.lightbox-content {
  position: relative;
  width: min(92vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  touch-action: pan-y pinch-zoom;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  min-height: 46px;
  margin-top: 0;
  border: 1px solid rgba(255, 248, 236, 0.5);
  border-radius: 999px;
  padding: 0;
  background: rgba(28, 23, 18, 0.58);
  color: #fff8ec;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(3px);
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-status {
  min-width: 74px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 248, 236, 0.38);
  border-radius: 999px;
  background: rgba(28, 23, 18, 0.54);
  color: #fff8ec;
  font-size: 13px;
  text-align: center;
  backdrop-filter: blur(3px);
}

.lightbox-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(232, 221, 203, 0.34);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}

.lightbox-video {
  width: min(92vw, 1100px);
  max-height: 78vh;
  border-radius: 8px;
  border: 1px solid rgba(232, 221, 203, 0.34);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
  background: #100e0c;
}

.lightbox-caption {
  margin: 0;
  color: #f0e6d5;
  font-size: 14px;
}

.lightbox-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: auto;
  margin-top: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(246, 238, 224, 0.9);
  color: #2f271f;
  border: 1px solid rgba(236, 226, 207, 0.7);
}

.lightbox-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

/* Hero fusion: large huaniao background with centered title */
.header {
  gap: 14px;
  padding: 12px 20px;
  border-color: rgba(90, 67, 38, 0.18);
  background:
    linear-gradient(
      180deg,
      rgba(248, 244, 236, 0.78) 0%,
      rgba(248, 244, 236, 0.48) 44%,
      rgba(248, 244, 236, 0.9) 100%
    ),
    url("./assets/logo-huaniao-user.jpeg") center 40% / cover no-repeat;
}

.header::before {
  inset: 8px;
  border-color: rgba(181, 145, 91, 0.2);
}

.header::after {
  content: none;
}

.header-copy {
  min-height: 170px;
  padding: 50px 0 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin-bottom: 8px;
  text-shadow: 0 1px 1px rgba(248, 244, 236, 0.6);
}

.title-row {
  justify-content: center;
  gap: 0;
}

.header h1 {
  font-size: 46px;
  color: #1f1a16;
  text-shadow:
    0 1px 0 rgba(251, 248, 241, 0.9),
    0 2px 10px rgba(37, 31, 26, 0.2);
}

.header .ink-mark {
  display: none;
}

.header p {
  max-width: 720px;
  margin-top: 10px;
  text-shadow: 0 1px 0 rgba(248, 244, 236, 0.75);
}

@media (max-width: 900px) {
  .auth-panel > .title-row h1 {
    font-size: 40px;
  }

  .header {
    padding: 14px 14px 12px;
  }

  .header::after {
    content: none;
  }

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

  .profile-layout form:first-child {
    grid-row: auto;
  }

  .header h1 {
    font-size: 40px;
  }

  .header-copy {
    min-height: 150px;
    padding-top: 46px;
    padding-right: 0;
  }

  .user-summary {
    right: 12px;
    top: 10px;
    max-width: 206px;
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .auth-screen {
    padding: 20px 14px;
  }

  .auth-panel {
    width: min(960px, calc(100vw - 28px));
    padding: 24px;
  }

  .auth-stage {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
    gap: 18px;
  }

  .auth-panel p {
    margin-bottom: 18px;
  }

  .auth-note,
  .auth-brief {
    padding: 14px 15px;
  }

  .auth-stage-main {
    padding: 16px;
  }

  .auth-form {
    padding: 20px;
  }
}

@media (max-width: 860px) {
  .auth-screen {
    align-items: start;
    padding: 18px 12px;
  }

  .auth-panel {
    width: min(680px, calc(100vw - 24px));
    max-height: none;
    margin-inline: auto;
    padding: 22px 16px 18px;
  }

  .auth-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }

  .auth-aside {
    order: 2;
    width: 100%;
    max-width: 520px;
    padding-top: 0;
  }

  .auth-stage-main {
    order: 1;
    width: 100%;
    max-width: 520px;
    padding: 14px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

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

  .admin-user-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px),
  (min-width: 641px) and (max-width: 1200px) and (orientation: portrait),
  (min-width: 641px) and (max-width: 1200px) and (orientation: landscape) and (pointer: coarse) {
  body {
    overflow-x: hidden;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  button:hover,
  .card:hover,
  .media-shell:hover .media-thumb {
    transform: none;
    box-shadow: none;
    filter: none;
  }

  .ai-appreciation-modal {
    align-items: stretch;
    padding: 12px;
  }

  .ai-appreciation-dialog {
    max-height: calc(100vh - 24px);
    padding: 22px 16px 18px;
  }

  .ai-appreciation-close {
    top: 14px;
    right: 14px;
    min-height: 38px;
    padding-inline: 10px;
  }

  .ai-appreciation-refresh {
    top: 14px;
    right: 76px;
    min-height: 38px;
    padding-inline: 10px;
  }

  .ai-appreciation-kicker {
    margin-top: 42px;
  }

  .ai-appreciation-head {
    display: block;
  }

  .ai-appreciation-head h2 {
    padding-right: 72px;
    font-size: 24px;
  }

  .ai-appreciation-meta {
    display: block;
    margin-top: 4px;
  }

  .ai-appreciation-content p {
    font-size: 14px;
    line-height: 1.78;
  }

  .auth-screen {
    align-items: start;
    padding: 12px;
  }

  .auth-panel {
    width: 100%;
    max-height: none;
    padding: 18px 12px 14px;
  }

  .auth-panel > .title-row {
    align-items: center;
    justify-content: center;
  }

  .auth-panel > .title-row h1 {
    font-size: 34px;
  }

  .auth-panel p {
    margin-top: 8px;
  }

  .auth-stage-main {
    padding: 12px;
  }

  .auth-note,
  .auth-brief {
    padding: 14px;
  }

  .auth-form {
    padding: 16px 14px;
  }

  .header {
    padding: 14px 12px;
    overflow: hidden;
  }

  .title-row {
    align-items: center;
    justify-content: center;
  }

  .header h1 {
    font-size: 34px;
  }

  .header-copy {
    min-height: 112px;
    padding-top: 18px;
    align-items: center;
    text-align: center;
  }

  .container {
    padding: 12px 10px 28px;
  }

  .header {
    padding: 14px 12px;
  }

  .tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 8px;
    margin: 12px -10px 0;
    padding: 9px 10px 10px;
    overflow-x: auto;
    background: rgba(244, 234, 216, 0.92);
    border-block: 1px solid rgba(191, 164, 124, 0.42);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex: 0 0 auto;
    min-width: 104px;
    width: auto;
    padding: 10px 16px;
    white-space: nowrap;
  }

  .title-row {
    align-items: center;
    justify-content: center;
  }

  .header h1 {
    font-size: 34px;
  }

  .ink-mark {
    width: 70px;
    height: 46px;
  }

  .header p {
    font-size: 14px;
    line-height: 1.55;
  }

  .header-copy {
    min-height: 112px;
    padding-top: 18px;
    align-items: center;
    text-align: center;
    padding-right: 0;
  }

  .user-summary {
    position: static;
    justify-self: stretch;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    max-width: none;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    overflow: hidden;
  }

  .user-summary > div {
    min-width: 0;
    overflow: hidden;
  }

  .membership-summary {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .user-summary button {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    min-height: 38px;
  }

  .user-bio {
    max-width: none;
  }

  .panel {
    padding: 16px 12px;
    margin-top: 12px;
  }

  .panel::before {
    top: 14px;
    bottom: 14px;
  }

  .grid,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar-actions,
  .card-actions,
  .edit-actions,
  .comment-form,
  .section-head,
  .admin-user-main,
  .admin-user-actions {
    flex-direction: column;
    gap: 8px;
  }

  .toolbar-actions button,
  .card-actions button,
  .edit-actions button,
  .comment-form button,
  .section-head button,
  .admin-user-open,
  .admin-user-actions button {
    width: 100%;
  }

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

  .tag-strip {
    margin-inline: -2px;
    padding-bottom: 9px;
  }

  .tag-pill {
    min-height: 38px;
    padding: 8px 13px;
  }

  .share-page {
    width: min(100% - 20px, 980px);
    padding-top: 18px;
  }

  .share-gallery figure {
    padding: 7px;
  }

  .share-actions button {
    width: 100%;
  }

  .share-sheet {
    align-items: end;
    padding: 10px;
  }

  .share-sheet-panel {
    padding: 22px 14px 16px;
  }

  .share-sheet-actions {
    flex-direction: column;
  }

  .share-poster-tools {
    grid-template-columns: 1fr;
  }

  .share-poster-preview {
    width: min(100%, 230px);
    max-height: 38vh;
  }

  .cards {
    gap: 20px;
  }

  .card {
    border-color: rgba(123, 78, 42, 0.34);
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 238, 222, 0.96)),
      var(--paper-soft);
    box-shadow: 0 12px 26px rgba(58, 42, 25, 0.16);
  }

  .card + .card {
    margin-top: 6px;
  }

  .card-content {
    padding: 13px;
  }

  .painting-title,
  .material-title {
    font-size: 19px;
  }

  .attachment-strip {
    padding: 9px 10px;
  }

  .selected-file-item {
    align-items: flex-start;
  }

  .selected-file-remove {
    min-height: 34px;
  }

  .media-thumb {
    height: clamp(190px, 58vw, 230px);
  }

  .attachment-nav {
    width: 34px;
    min-height: 34px;
    font-size: 22px;
  }

  .attachment-prev {
    left: 8px;
  }

  .attachment-next {
    right: 8px;
  }

  .attachment-status {
    bottom: 9px;
  }

  .pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination button {
    width: 100%;
  }

  .page-info {
    text-align: center;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-content {
    width: 100%;
    max-height: 88vh;
  }

  .lightbox-nav {
    width: 42px;
    min-height: 42px;
    font-size: 28px;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }

  .lightbox-image {
    max-height: 70vh;
  }

  .lightbox-video {
    width: 100%;
    max-height: 68vh;
  }

  .lightbox-close {
    right: 12px;
    top: 12px;
    min-height: 44px;
    padding: 10px 14px;
  }

  .app-shell {
    width: 100%;
    margin: 0;
    padding: 10px 10px 92px;
  }

  .app-layout {
    display: block;
    min-height: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .app-sidebar {
    display: none;
  }

  .app-main {
    padding: 0;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    overflow: hidden;
    padding: 4px 0 0;
  }

  .topbar .user-summary {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 7px;
    margin-top: 0;
    padding: 6px 8px;
    border-radius: 8px;
  }

  .topbar .user-summary .user-avatar {
    width: 34px;
    height: 34px;
  }

  .topbar .user-summary button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    margin: 4px 0 0;
  }

  .home-focus {
    min-height: calc(100svh - 230px);
    padding: 36px 18px;
    background:
      linear-gradient(180deg, rgba(255, 252, 244, 0.95) 0%, rgba(255, 250, 238, 0.88) 54%, rgba(248, 239, 222, 0.46) 100%),
      url("./assets/logo-huaniao-user.jpeg") right 18% center / 118% auto no-repeat,
      linear-gradient(145deg, #fbf4e5 0%, #efe1c5 100%);
  }

  .home-focus h2 {
    max-width: 100%;
    font-size: clamp(34px, 9.5vw, 48px);
  }

  .home-title-row {
    max-width: 100%;
    gap: 8px 10px;
  }

  .home-seal {
    width: 26px;
    height: 28px;
    font-size: 15px;
  }

  .home-kicker {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .home-intro,
  .home-notes {
    max-width: 100%;
    width: 100%;
  }

  .home-intro {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.72;
  }

  .home-notes {
    gap: 9px;
    margin-top: 28px;
  }

  .home-notes p {
    padding-top: 10px;
    font-size: 13px;
    line-height: 1.65;
  }

  .home-notes strong {
    display: block;
    margin: 0 0 3px;
  }

  .paintings-workbench {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .upload-panel::after {
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.84), rgba(248, 241, 228, 0.76)),
      url("./assets/logo-huaniao-user.jpeg") center / cover no-repeat;
  }

  .upload-hero-card {
    gap: 11px;
  }

  .upload-card-head h2 {
    font-size: 21px;
  }

  .upload-dropzone {
    min-height: 138px;
    padding: 16px 12px;
  }

  .upload-details {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .gallery-panel .toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 4px;
    padding: 7px 8px 8px;
    border: 1px solid rgba(191, 164, 124, 0.34);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 10px 28px rgba(39, 30, 20, 0.18);
    backdrop-filter: blur(8px);
  }

  .mobile-bottom-nav .mobile-nav-btn {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 4px 2px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink-soft);
    box-shadow: none;
    font-size: 11px;
    white-space: nowrap;
  }

  .mobile-bottom-nav .mobile-nav-btn span {
    font-size: 17px;
    line-height: 1;
  }

  .mobile-bottom-nav .tab-btn.active {
    color: var(--pine-deep);
    background: rgba(49, 95, 69, 0.08);
    box-shadow: none;
  }

  .mobile-bottom-nav .mobile-nav-primary {
    min-height: 58px;
    margin-top: -22px;
    border-radius: 999px 999px 7px 7px;
    background: linear-gradient(145deg, var(--pine), var(--pine-deep));
    color: #fffaf0;
    box-shadow: 0 10px 18px rgba(35, 73, 54, 0.28);
  }

  .mobile-bottom-nav .mobile-nav-primary.active {
    background: linear-gradient(145deg, var(--pine), var(--pine-deep));
    color: #fffaf0;
  }

  .cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: stretch;
    border-color: rgba(123, 78, 42, 0.34);
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 238, 222, 0.96)),
      var(--paper-soft);
    box-shadow: 0 10px 24px rgba(58, 42, 25, 0.14);
  }

  .card + .card {
    margin-top: 0;
  }

  .media-shell {
    grid-column: 1;
    grid-row: 1;
    min-height: 100%;
  }

  .media-thumb {
    height: clamp(92px, 28vw, 118px);
  }

  .image-tip {
    display: none;
  }

  .attachment-nav {
    display: grid;
    place-items: center;
    width: 28px;
    min-height: 28px;
    font-size: 18px;
    top: 50%;
    z-index: 3;
    background: rgba(27, 23, 18, 0.56);
    transform: translateY(-50%);
  }

  .attachment-prev {
    left: 5px;
  }

  .attachment-next {
    right: 5px;
  }

  .attachment-status {
    right: 6px;
    left: auto;
    bottom: 6px;
    min-width: 0;
    padding: 3px 7px;
    transform: none;
  }

  .attachment-strip {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 32px;
    padding: 4px 10px;
    border-top: 0;
  }

  .attachment-count {
    padding: 4px 9px;
    font-size: 11px;
  }

  .card-content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 10px 12px;
  }

  .card-heading {
    gap: 4px 6px;
    margin-bottom: 3px;
  }

  .card-meta-tags {
    flex: 1 1 100%;
    gap: 3px;
  }

  .painting-title,
  .material-title {
    font-size: 16px;
  }

  .card-category-pill,
  .card-meta-tags .card-tag {
    font-size: 11px;
  }

  .meta,
  .description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .card-actions button {
    width: 100%;
    min-height: 34px;
    padding: 6px 7px;
    font-size: 12px;
  }

  .comments {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 10px 12px 12px;
  }

  .painting-edit-panel {
    padding: 12px;
    border-radius: 6px;
  }

  .painting-edit-panel .edit-form {
    display: grid;
    gap: 8px;
  }

  .painting-edit-panel .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .painting-edit-panel label {
    font-size: 13px;
  }

  .painting-edit-panel input,
  .painting-edit-panel textarea {
    margin-top: 4px;
    padding: 8px 10px;
  }

  .painting-edit-panel textarea[name="description"] {
    min-height: 70px;
  }

  .painting-edit-attachments {
    gap: 5px;
    margin: 5px 0 7px;
    padding: 7px;
  }

  .painting-edit-attachment {
    gap: 7px;
    padding: 4px;
  }

  .painting-edit-attachment-thumb {
    width: 40px;
    height: 40px;
  }

  .painting-edit-delete {
    width: 36px;
    min-height: 36px;
  }

  .painting-edit-panel .edit-actions {
    flex-direction: row;
    gap: 7px;
  }

  .painting-edit-panel .edit-actions button {
    flex: 1 1 0;
    width: auto;
    min-height: 40px;
    padding: 8px 10px;
  }
}

@media (min-width: 641px) and (max-width: 1200px) and (orientation: portrait) {
  .app-shell {
    width: 100%;
    margin: 0;
    padding-inline: clamp(14px, 2.4vw, 24px);
  }

  .card {
    grid-template-columns: clamp(148px, 24vw, 196px) minmax(0, 1fr);
  }

  .media-thumb {
    height: clamp(132px, 24vw, 184px);
  }

  .mobile-bottom-nav {
    left: clamp(14px, 2.4vw, 24px);
    right: clamp(14px, 2.4vw, 24px);
  }
}

@media (min-width: 641px) and (max-width: 1200px) and (orientation: landscape) and (pointer: coarse) {
  .app-shell {
    width: min(760px, 100%);
    margin: 0 auto;
    padding-inline: 10px;
  }

  .card {
    grid-template-columns: 172px minmax(0, 1fr);
  }

  .media-thumb {
    height: 158px;
  }

  .mobile-bottom-nav {
    left: 50%;
    right: auto;
    width: min(760px, calc(100% - 20px));
    transform: translateX(-50%);
  }
}

@media (max-width: 430px) {
  .auth-panel > .title-row h1,
  .header h1 {
    font-size: 30px;
  }

  .header-copy {
    min-height: 96px;
    padding-top: 10px;
  }

  .header p {
    font-size: 13px;
  }

  .user-avatar {
    width: 38px;
    height: 38px;
  }

  .user-summary {
    gap: 7px;
  }

  .user-summary button {
    padding-inline: 9px;
  }

  h2 {
    font-size: 21px;
  }

  input,
  select,
  textarea,
  button {
    padding: 10px;
  }

  .media-thumb {
    height: clamp(174px, 62vw, 210px);
  }

  .lightbox {
    padding: 8px;
  }

  .lightbox-close {
    min-height: 44px;
  }

  .lightbox-nav {
    width: 38px;
    min-height: 38px;
    font-size: 25px;
  }
}
