:root {
  --bg: #fbf3eb;
  --bg-deep: #f7e3d7;
  --paper: rgba(255, 251, 247, 0.92);
  --text: #5d463f;
  --muted: #8f746d;
  --rose: #d97a8f;
  --rose-deep: #bb556c;
  --gold: #d7b06c;
  --line: rgba(127, 84, 78, 0.14);
  --shadow: 0 18px 42px rgba(118, 77, 69, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --grade-1: #95c676;
  --grade-2: #e39a56;
  --grade-3: #d8bb67;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.55), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(248, 212, 208, 0.6), transparent 26%),
    radial-gradient(circle at 18% 85%, rgba(244, 205, 141, 0.3), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 24px 24px, rgba(217, 122, 143, 0.07) 0 8px, transparent 8px),
    radial-gradient(circle at 54px 54px, rgba(215, 176, 108, 0.06) 0 10px, transparent 10px);
  background-size: 120px 120px;
  opacity: 0.8;
}

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

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

button {
  cursor: pointer;
  border: 0;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.top-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

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

.student-mini span {
  color: var(--muted);
  font-size: 14px;
}

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

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 35%, #fff6f7, transparent 24%),
    linear-gradient(145deg, #f4b6c2, #efd091);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.mother-logo {
  position: relative;
  width: 30px;
  height: 30px;
  display: block;
}

.flower-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe3a6, #deae45);
  transform: translate(-50%, -50%);
  z-index: 3;
}

.petal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 16px;
  border-radius: 12px 12px 10px 10px;
  background: linear-gradient(180deg, #fff2f5, #da6d89);
  transform-origin: center 18px;
  box-shadow: inset 0 -1px 0 rgba(148, 62, 81, 0.18);
}

.petal-top {
  transform: translate(-50%, -145%) rotate(0deg);
}

.petal-right {
  transform: translate(28%, -84%) rotate(48deg);
}

.petal-bottom {
  transform: translate(-50%, -8%) rotate(180deg);
}

.petal-left {
  transform: translate(-128%, -84%) rotate(-48deg);
}

.petal-top-left {
  transform: translate(-118%, -126%) rotate(-32deg);
}

.petal-top-right {
  transform: translate(18%, -126%) rotate(32deg);
}

.petal-bottom-left {
  transform: translate(-118%, -42%) rotate(-148deg);
}

.petal-bottom-right {
  transform: translate(18%, -42%) rotate(148deg);
}

.ribbon-heart {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 10px;
  height: 16px;
  background: linear-gradient(180deg, #f08da1, #c8546e);
  border-radius: 12px 12px 8px 8px;
  z-index: 2;
}

.ribbon-left {
  transform: translateX(-105%) rotate(22deg);
  transform-origin: top center;
}

.ribbon-right {
  transform: translateX(5%) rotate(-22deg);
  transform-origin: top center;
}

.brand-copy h1,
.brand-copy h2,
.brand-copy p {
  margin: 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a,
.chip,
.ghost-btn,
.primary-btn,
.icon-btn {
  border-radius: 999px;
}

.nav a,
.ghost-btn,
.icon-btn {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-card,
.panel,
.submission-card,
.admin-card,
.share-card,
.modal-card,
.empty-card,
.loading-card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(14px);
}

.hero-card {
  padding: 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-card-main {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.36), transparent 24%),
    linear-gradient(145deg, rgba(253, 246, 241, 0.95), rgba(248, 229, 220, 0.9));
}

.hero-card-main::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 167, 102, 0.28), transparent 66%);
}

.hero-ribbon {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(189, 91, 110, 0.1);
  color: var(--rose-deep);
  font-size: 13px;
}

.hero-card h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.08;
}

.hero-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.primary-btn,
.ghost-btn {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--rose), var(--gold));
  color: #fffaf7;
  box-shadow: 0 16px 30px rgba(186, 91, 108, 0.2);
}

.primary-btn:disabled,
.ghost-btn:disabled,
.icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hero-side {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-side-card {
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.95), rgba(252, 241, 234, 0.9));
}

.data-row {
  display: flex;
  gap: 12px;
}

.mini-stat {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
}

.mini-stat strong,
.mini-stat span {
  display: block;
}

.mini-stat strong {
  font-size: 24px;
  margin-bottom: 6px;
}

.highlight-quote {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.highlight-quote span,
.highlight-quote strong {
  display: block;
}

.highlight-quote span {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.highlight-quote strong {
  line-height: 1.7;
  font-size: 17px;
}

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

.section-head h3,
.section-head p {
  margin: 0;
}

.panel {
  padding: 24px;
  margin-bottom: 24px;
}

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

.timeline-item {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 243, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.timeline-item span,
.timeline-item strong,
.timeline-item p {
  display: block;
  margin: 0;
}

.timeline-item span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(217, 122, 143, 0.14);
  color: var(--rose-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 14px;
}

.timeline-item strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.timeline-item p {
  color: var(--muted);
  line-height: 1.7;
}

.compact-timeline {
  margin-bottom: 18px;
}

.barrage-lane {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 246, 240, 0.58));
}

.barrage-track {
  position: absolute;
  inset: 0;
}

.barrage-item {
  position: absolute;
  white-space: nowrap;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(126, 93, 85, 0.09);
  animation: barrage-move linear forwards;
}

@keyframes barrage-move {
  from { transform: translateX(110%); }
  to { transform: translateX(-120%); }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.submission-card,
.admin-card {
  overflow: hidden;
}

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #f8ddd2, #f4e7cc);
}

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

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  height: 100%;
}

.card-body {
  padding: 18px;
}

.admin-card {
  position: relative;
}

.admin-check {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.admin-check input {
  width: 16px;
  height: 16px;
}

.card-head,
.card-actions,
.inline-meta,
.toggle-row,
.form-grid,
.admin-toolbar,
.share-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card-head {
  justify-content: space-between;
  align-items: center;
}

.card-title,
.card-copy,
.card-footer,
.muted {
  margin: 0;
}

.card-title {
  font-size: 18px;
}

.card-copy {
  line-height: 1.8;
  color: var(--muted);
  white-space: pre-wrap;
  min-height: 88px;
}

.submission-card .card-title,
.admin-card .card-title {
  margin-bottom: 10px;
}

.card-footer {
  color: var(--muted);
  font-size: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.grade-1 { background: rgba(149, 198, 118, 0.18); color: #53763d; }
.grade-2 { background: rgba(227, 154, 86, 0.18); color: #9a5620; }
.grade-3 { background: rgba(216, 187, 103, 0.22); color: #8a6c18; }
.status-approved { background: rgba(149, 198, 118, 0.18); color: #53763d; }
.status-pending { background: rgba(225, 184, 112, 0.2); color: #866125; }
.status-rejected,
.status-hidden { background: rgba(217, 122, 143, 0.18); color: #94475a; }
.chip.grade-1,
.chip.grade-2,
.chip.grade-3,
.chip.status-approved,
.chip.status-pending,
.chip.status-rejected,
.chip.status-hidden {
  border-color: transparent;
}

.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-panel {
  padding: 24px;
}

.form-grid {
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.half {
  flex: 1 1 240px;
}

.field.full {
  width: 100%;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
}

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

.hint {
  font-size: 13px;
  color: var(--muted);
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.info-list-item strong,
.info-list-item span {
  display: block;
}

.info-list-item strong {
  margin-bottom: 6px;
}

.info-list-item span {
  color: var(--muted);
  line-height: 1.6;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.preview-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.preview-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(76, 49, 47, 0.42);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 20;
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(520px, 100%);
  padding: 22px;
  position: relative;
}

.detail-modal-card {
  width: min(760px, 100%);
}

.modal-card textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
}

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
}

.notice strong {
  color: var(--text);
}

.notice-content {
  margin: 14px 0;
  line-height: 1.9;
  white-space: pre-wrap;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.settings-box {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.76);
}

.settings-box h3 {
  margin: 0 0 14px;
}

.certificate-sheet {
  width: min(794px, 100%);
  min-height: 1123px;
  margin: 0 auto;
  padding: 44px;
  background:
    linear-gradient(180deg, rgba(255, 250, 247, 0.97), rgba(255, 246, 239, 0.95));
  border: 1px solid rgba(201, 151, 103, 0.36);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.certificate-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 2px solid rgba(215, 176, 108, 0.35);
}

.certificate-header h2 {
  margin: 8px 0 10px;
  font-size: 34px;
  letter-spacing: 0;
}

.certificate-header p,
.certificate-section p,
.certificate-footer,
.certificate-grid span {
  color: var(--muted);
}

.certificate-qr {
  width: 150px;
  text-align: center;
  flex: 0 0 auto;
}

.certificate-qr img {
  width: 132px;
  height: 132px;
  display: block;
  margin: 0 auto 8px;
}

.certificate-qr span {
  font-size: 13px;
  color: var(--muted);
}

.certificate-body {
  padding-top: 24px;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.certificate-grid div {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.84);
}

.certificate-grid span,
.certificate-grid strong {
  display: block;
}

.certificate-grid strong {
  margin-top: 6px;
  font-size: 18px;
}

.certificate-section {
  margin: 18px 0;
}

.certificate-section h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.certificate-message {
  margin: 0;
  line-height: 1.9;
  white-space: pre-wrap;
}

.certificate-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.certificate-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.certificate-photos img:only-child {
  grid-column: 1 / -1;
}

.certificate-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0;
  font-size: 14px;
}

.detail-head h3,
.detail-copy h4,
.detail-copy p,
.detail-reflection h4,
.detail-reflection p {
  margin: 0;
}

.detail-head {
  margin-bottom: 16px;
}

.detail-head h3 {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 24px;
}

.detail-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.detail-photo-grid.single {
  grid-template-columns: 1fr;
}

.detail-photo-grid figure {
  margin: 0;
}

.detail-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.detail-photo-grid figcaption {
  padding-top: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.detail-copy {
  display: grid;
  gap: 10px;
}

.detail-copy h4,
.detail-reflection h4 {
  font-size: 16px;
}

.detail-copy p,
.detail-reflection p {
  color: var(--muted);
  line-height: 1.9;
  white-space: pre-wrap;
}

.detail-reflection {
  margin-top: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.wechat-guide {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 248, 242, 0.9), rgba(255, 235, 228, 0.88));
  position: relative;
}

.wechat-guide::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-top: 3px solid var(--rose);
  border-right: 3px solid var(--rose);
  transform: rotate(-12deg);
}

.share-body .shell {
  width: min(560px, calc(100% - 24px));
}

.share-card {
  padding: 18px;
}

.share-card-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 14%, rgba(255, 255, 255, 0.3), transparent 18%),
    linear-gradient(180deg, rgba(255, 250, 246, 0.96), rgba(248, 233, 225, 0.94));
}

.share-card-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 10%, rgba(218, 126, 145, 0.1), transparent 20%),
    radial-gradient(circle at 92% 88%, rgba(215, 176, 108, 0.14), transparent 22%);
}

.share-card-top {
  position: relative;
  z-index: 1;
}

.share-title-note {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.share-cover {
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 18px 32px rgba(121, 79, 70, 0.12);
}

.share-cover img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

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

.compare-grid span {
  display: block;
  padding: 8px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.message-quote {
  margin: 18px 0 0;
  padding: 18px 18px 18px 22px;
  border-left: 4px solid rgba(217, 122, 143, 0.5);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  color: #7a5b54;
  line-height: 1.9;
  font-size: 17px;
}

.flower-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  bottom: 64px;
  left: 50%;
  width: 14px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #fff4f6, #d76982 70%);
  border-radius: 60% 60% 60% 60%;
  animation: petal-rise 1.5s ease-out forwards;
  opacity: 0;
}

@keyframes petal-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.8) rotate(0deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-140px - var(--y))) scale(1.2) rotate(var(--r));
  }
}

.admin-toolbar {
  margin-bottom: 18px;
}

.admin-batch-toolbar {
  align-items: center;
}

.admin-list-wrap {
  display: block;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
}

.admin-table {
  display: grid;
  gap: 10px;
  min-width: 1180px;
}

.admin-row {
  display: grid;
  grid-template-columns: 72px 170px 150px minmax(280px, 1fr) 160px 180px 230px;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.admin-row-head {
  background: rgba(252, 242, 234, 0.92);
  font-size: 13px;
  color: var(--muted);
  align-items: center;
}

.admin-row-cell {
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.admin-row-user strong,
.admin-row-user span,
.admin-row-message,
.admin-row-ip {
  display: block;
}

.admin-row-user strong {
  margin-bottom: 6px;
}

.admin-row-user span,
.admin-row-ip {
  color: var(--muted);
  font-size: 13px;
}

.admin-row-message {
  line-height: 1.7;
  max-height: 92px;
  overflow: auto;
}

.admin-row-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.thumb-preview {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: #fff;
}

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

.image-preview-card {
  width: min(820px, 100%);
  padding: 12px;
}

.image-preview-target {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-login-panel {
  width: min(560px, 100%);
  margin: 0 auto;
}

.admin-login-form {
  display: grid;
  gap: 14px;
}

.summary-box {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 246, 240, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.74);
}

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

.summary-box span {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.summary-box strong {
  font-size: 24px;
}

.pill-select {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.loading-card,
.empty-card {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.footer-note {
  padding: 14px 0 24px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 100%);
    padding-top: 18px;
  }

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

  .hero-card,
  .hero-side,
  .panel,
  .form-panel,
  .share-card {
    padding: 18px;
  }

  .card-copy {
    min-height: auto;
  }

  .barrage-lane {
    height: 180px;
  }

  .detail-photo-grid,
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .certificate-sheet {
    min-height: auto;
    padding: 22px;
  }

  .certificate-header,
  .certificate-footer {
    flex-direction: column;
  }

  .certificate-header h2 {
    font-size: 28px;
  }

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

@media print {
  body {
    background: #fff;
  }

  body::before,
  .topbar {
    display: none;
  }

  .shell {
    width: 100%;
    padding: 0;
  }

  .certificate-sheet {
    width: 210mm;
    min-height: 297mm;
    box-shadow: none;
    border-radius: 0;
  }
}
