:root {
  color-scheme: light;
  --page: #fff6fb;
  --page-2: #fffaf3;
  --paper: rgba(255, 255, 255, 0.86);
  --paper-solid: #ffffff;
  --pink: #ff7fb0;
  --pink-deep: #e95385;
  --peach: #ffb28e;
  --butter: #ffe59a;
  --sky: #8bd8f7;
  --mint: #bdebd7;
  --cream: #fffaf3;
  --ink: #5b463e;
  --muted: #9a7b72;
  --line: rgba(233, 83, 133, 0.18);
  --shadow: 0 18px 42px rgba(233, 83, 133, 0.16);
  --shadow-soft: 0 10px 26px rgba(255, 127, 176, 0.14);
  --radius: 22px;
  --radius-sm: 16px;
  --font: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-width: 320px;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 6%, rgba(255, 229, 154, 0.78), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(139, 216, 247, 0.50), transparent 28%),
    linear-gradient(180deg, var(--page), var(--page-2) 58%, #fffdf8);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 14px 14px, rgba(255, 127, 176, 0.17) 0 3px, transparent 4px),
    radial-gradient(circle at 46px 38px, rgba(139, 216, 247, 0.18) 0 4px, transparent 5px),
    radial-gradient(circle at 26px 58px, rgba(255, 229, 154, 0.30) 0 3px, transparent 4px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 0;
  z-index: -1;
  width: min(100vw, 480px);
  height: 100vh;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.82) 0 34px, transparent 35px),
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.66) 0 28px, transparent 29px),
    radial-gradient(circle at 64% 74%, rgba(255, 223, 233, 0.68) 0 38px, transparent 39px);
  filter: none;
  opacity: .78;
  pointer-events: none;
}

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

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

button {
  border: 0;
  cursor: pointer;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(100% - 20px, 460px);
  margin: 0 auto;
}

.shell,
.admin-shell {
  padding: calc(12px + env(safe-area-inset-top)) 0 calc(28px + env(safe-area-inset-bottom));
}

.topbar {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.brand {
  display: grid;
  gap: 4px;
  padding: 4px 2px 0;
}

.brand h1,
.brand h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.14;
  color: var(--pink-deep);
}

.brand small {
  color: var(--muted);
  line-height: 1.45;
}

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

.top-actions .btn,
.top-actions .pill {
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(233, 83, 133, 0.15);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
  white-space: nowrap;
}

.pill strong {
  color: var(--pink-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(233, 83, 133, 0.18);
  background: rgba(255, 255, 255, 0.76);
  color: var(--pink-deep);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  background: #fff;
}

.btn.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--peach));
  box-shadow: 0 14px 28px rgba(233, 83, 133, 0.25);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.52);
}

.btn.danger {
  color: #cf3d6d;
  background: rgba(255, 236, 242, 0.82);
}

.btn[disabled] {
  opacity: .52;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(233, 83, 133, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(233, 83, 133, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 127, 176, 0.14);
}

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

.band,
.surface,
.admin-card,
.login-card {
  border: 1px solid rgba(233, 83, 133, 0.16);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.band {
  border-radius: 28px;
  overflow: clip;
}

.hero-band {
  display: grid;
  gap: 12px;
  padding: 10px;
}

.hero-art {
  position: relative;
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 196, 216, 0.26)),
    linear-gradient(135deg, #ffddec, #fff6d9 52%, #dff6ff);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.70);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, .76) 0 22px, transparent 23px),
    radial-gradient(circle at 31% 16%, rgba(255, 255, 255, .72) 0 25px, transparent 26px),
    radial-gradient(circle at 25% 12%, rgba(255, 255, 255, .80) 0 26px, transparent 27px),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, .72) 0 30px, transparent 31px);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #6a463d;
}

.hero-copy h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.06;
  color: var(--pink-deep);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.85);
}

.hero-copy p {
  margin: 0;
  color: #7d6257;
  line-height: 1.7;
}

.hero-stack {
  display: grid;
  gap: 10px;
}

.stack-panel,
.surface,
.admin-card {
  border-radius: var(--radius);
}

.stack-panel {
  padding: 14px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px dashed rgba(233, 83, 133, 0.22);
}

.stack-panel h3,
.section-title h3,
.admin-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
  color: var(--pink-deep);
}

.stack-panel p,
.section-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section {
  margin-top: 14px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0 2px;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: none;
}

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

.tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(233, 83, 133, 0.16);
  background: rgba(255, 255, 255, 0.70);
  color: var(--pink-deep);
  box-shadow: var(--shadow-soft);
}

.tab small {
  color: var(--muted);
}

.tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--peach));
}

.workspace,
.aside,
.admin-grid,
.admin-rows,
.stack {
  display: grid;
  gap: 12px;
}

.surface.pad,
.admin-card {
  padding: 14px;
}

.surface.pad.stage {
  padding: 10px 4px;
}

.stage {
  overflow: hidden;
}

.stage-head {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.stage-head .eyebrow {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 229, 154, 0.65);
  color: #9b6b28;
  font-size: 12px;
}

.stage-head h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.18;
  color: var(--pink-deep);
}

.stage-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.stage-shell {
  display: grid;
  gap: 12px;
}

.stage-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stage-tools .btn {
  grid-column: 1 / -1;
  min-height: 48px;
  font-size: 17px;
}

.stage-grid {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(233, 83, 133, 0.14);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.82), transparent 25%),
    radial-gradient(circle at 84% 18%, rgba(255, 229, 154, 0.44), transparent 30%),
    linear-gradient(180deg, #fff4fa, #fffdf5);
}

.stage-grid::before {
  content: "♡";
  position: absolute;
  right: 18px;
  top: 12px;
  color: rgba(233, 83, 133, 0.20);
  font-size: 46px;
  line-height: 1;
}

.stage-grid::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 74px;
  height: 28px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20px 14px, rgba(139, 216, 247, .46) 0 18px, transparent 19px),
    radial-gradient(circle at 45px 13px, rgba(139, 216, 247, .38) 0 21px, transparent 22px);
  pointer-events: none;
}

.draw-card,
.draw-box,
.draw-envelope,
.draw-wheel,
.draw-grid {
  position: relative;
  z-index: 1;
}

.draw-box {
  width: min(260px, 76vw);
  height: 230px;
}

.gift-lid,
.gift-body,
.gift-ribbon,
.gift-knot {
  position: absolute;
}

.gift-lid {
  left: 50%;
  top: 34px;
  width: 174px;
  height: 44px;
  transform: translateX(-50%);
  border-radius: 20px 20px 12px 12px;
  background: linear-gradient(135deg, #ffe8f2, #ff83b1);
  box-shadow: 0 16px 26px rgba(233, 83, 133, 0.20);
  transform-origin: 50% 100%;
  transition: transform .75s cubic-bezier(.2,.8,.2,1);
}

.gift-body {
  left: 50%;
  top: 72px;
  width: 196px;
  height: 142px;
  transform: translateX(-50%);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffc9dd, #ff7fb0 78%);
  box-shadow: 0 22px 34px rgba(233, 83, 133, 0.22);
}

.gift-ribbon {
  left: 50%;
  top: 72px;
  width: 34px;
  height: 142px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff3bb, #ffd26f);
}

.gift-ribbon::before {
  content: "";
  position: absolute;
  left: -70px;
  top: 48px;
  width: 174px;
  height: 28px;
  border-radius: 22px;
  background: inherit;
}

.gift-knot {
  left: 50%;
  top: 20px;
  width: 58px;
  height: 46px;
  transform: translateX(-50%);
}

.gift-knot::before,
.gift-knot::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 42px;
  height: 32px;
  border-radius: 50% 50% 44% 50%;
  background: radial-gradient(circle at 35% 30%, #fff8d8, #ffd46c);
}

.gift-knot::before {
  right: 26px;
  transform: rotate(-24deg);
}

.gift-knot::after {
  left: 26px;
  transform: rotate(24deg);
}

.is-open .gift-lid {
  transform: translateX(-50%) translateY(-22px) rotate(-15deg);
}

.draw-envelope {
  width: min(320px, 82vw);
  height: 236px;
}

.envelope-body {
  position: absolute;
  inset: 58px 26px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff9ef, #ffd8c7);
  box-shadow: 0 20px 34px rgba(255, 178, 142, 0.22);
}

.envelope-body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 49%, rgba(233, 83, 133, 0.20) 50% 51%, transparent 52%);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
}

.envelope-flap {
  position: absolute;
  left: 50%;
  top: 32px;
  width: 218px;
  height: 128px;
  transform: translateX(-50%);
  transform-origin: 50% 0;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  background: linear-gradient(135deg, #fffdf6, #ffc9dd);
  transition: transform .75s cubic-bezier(.2,.8,.2,1);
}

.is-open .envelope-flap {
  transform: translateX(-50%) rotateX(70deg) translateY(-10px);
}

.love-letter {
  position: absolute;
  left: 50%;
  bottom: 38px;
  width: 232px;
  min-height: 132px;
  transform: translateX(-50%) translateY(22px);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fff7eb);
  color: var(--ink);
  padding: 16px;
  box-shadow: 0 18px 30px rgba(255, 127, 176, 0.16);
  transition: transform .75s cubic-bezier(.2,.8,.2,1);
}

.is-open .love-letter {
  transform: translateX(-50%) translateY(-38px);
}

.love-letter h4,
.love-letter p {
  margin: 0;
}

.love-letter h4 {
  margin-bottom: 8px;
  font-size: 17px;
  color: var(--pink-deep);
}

.love-letter p {
  line-height: 1.58;
  color: var(--muted);
}

.draw-wheel {
  width: min(300px, 76vw);
  height: min(300px, 76vw);
  display: grid;
  place-items: center;
}

.wheel-track {
  width: 100%;
  height: 100%;
  padding: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(233, 83, 133, 0.16);
  box-shadow: inset 0 0 0 8px rgba(255, 229, 154, 0.24), var(--shadow-soft);
}

.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  transform: rotate(var(--wheel-rotate, 0deg));
  transition: transform 2.9s cubic-bezier(.12,.78,.12,1);
  background: conic-gradient(
    #ff7fb0 0 12.5%,
    #ffe59a 12.5% 25%,
    #8bd8f7 25% 37.5%,
    #ffb28e 37.5% 50%,
    #bdebd7 50% 62.5%,
    #ffd1e1 62.5% 75%,
    #fff0a8 75% 87.5%,
    #ff97bd 87.5% 100%
  );
}

.wheel::before {
  content: "";
  position: absolute;
  inset: 50%;
  width: 30%;
  height: 30%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fffdf4, #ffd26f 66%, #e2a845);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.48);
}

.wheel-labels {
  position: absolute;
  inset: 12px;
}

.wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  margin-left: -41px;
  transform:
    rotate(var(--angle))
    translateY(-102px)
    rotate(calc(-1 * var(--angle)));
  transform-origin: center;
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
  color: #6a463d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .88);
}

.wheel-pointer {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid #fff7bd;
  filter: drop-shadow(0 4px 8px rgba(233, 83, 133, 0.24));
}

.draw-grid {
  width: min(320px, 82vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.grid-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(233, 83, 133, 0.16);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  text-align: center;
  color: var(--ink);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.grid-cell strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.grid-cell span {
  font-size: 11px;
  color: var(--muted);
}

.grid-cell.active {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff86b5, #ffd26f);
  box-shadow: 0 12px 22px rgba(233, 83, 133, 0.22);
  color: #fff;
}

.grid-cell.active span {
  color: rgba(255, 255, 255, .88);
}

.draw-card {
  width: min(320px, 82vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.card-slot {
  aspect-ratio: .78;
  border-radius: 18px;
  perspective: 900px;
}

.card-face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.2,.8,.2,1);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  backface-visibility: hidden;
  text-align: center;
  padding: 10px;
}

.card-front {
  background: linear-gradient(135deg, #fff, #ffe7f1);
  border: 1px solid rgba(233, 83, 133, 0.16);
}

.card-front strong {
  color: var(--pink-deep);
  font-size: 26px;
}

.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #fffaf3, #ffe59a);
  color: var(--ink);
}

.draw-card.reveal .card-face {
  transform: rotateY(180deg) translateY(-3px);
}

.aside {
  margin-top: 0;
}

.list,
.records {
  display: grid;
  gap: 8px;
}

.list-item,
.record {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(233, 83, 133, 0.14);
  background: rgba(255, 255, 255, 0.66);
}

.list-item h4,
.list-item p {
  margin: 0;
}

.list-item h4 {
  margin-bottom: 5px;
  font-size: 15px;
  color: var(--pink-deep);
}

.list-item p {
  color: var(--muted);
  line-height: 1.56;
}

.list-item .row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.mini {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
}

.divider {
  height: 1px;
  margin: 14px 0;
  background: rgba(233, 83, 133, 0.14);
}

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

.record strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.record small {
  color: var(--muted);
}

.record.badge,
.prize-badge {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--pink-deep);
  background: rgba(255, 225, 237, 0.82);
}

.record.badge.ok,
.prize-badge.ok {
  background: rgba(255, 229, 154, 0.64);
  color: #9a6b24;
}

.record.badge.no,
.prize-badge.no {
  background: rgba(255, 225, 237, 0.82);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 16px 10px calc(16px + env(safe-area-inset-bottom));
  background: rgba(120, 76, 63, 0.18);
  backdrop-filter: none;
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  width: min(100%, 440px);
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(233, 83, 133, 0.18);
  background: linear-gradient(180deg, #fff, #fff8ee);
  color: var(--ink);
  box-shadow: 0 24px 52px rgba(233, 83, 133, 0.22);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 0;
}

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

.modal-panel h3,
.modal-panel p {
  margin: 0;
}

.modal-panel h3 {
  margin-bottom: 7px;
  color: var(--pink-deep);
  font-size: 24px;
}

.modal-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.modal-footer {
  display: flex;
  justify-content: stretch;
  padding: 0 16px 16px;
}

.modal-footer .btn {
  width: 100%;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 120;
  max-width: min(420px, calc(100vw - 24px));
  padding: 11px 15px;
  transform: translateX(-50%) translateY(16px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pink-deep);
  border: 1px solid rgba(233, 83, 133, 0.18);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.good {
  background: #fff8d7;
  color: #9a6b24;
}

.toast.bad {
  background: #ffe7f0;
  color: #c83c6d;
}

.confetti-piece {
  position: fixed;
  left: 50%;
  top: 46%;
  z-index: 110;
  width: 8px;
  height: 14px;
  border-radius: 3px;
  background: var(--confetti-color, #ffd26f);
  opacity: .95;
  pointer-events: none;
  animation: confetti-fall 920ms ease-out forwards;
}

@keyframes confetti-fall {
  from {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  to {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(.82);
    opacity: 0;
  }
}

.login-frame {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(16px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom));
}

.login-card {
  width: min(100%, 420px);
  border-radius: 28px;
  overflow: hidden;
}

.login-card .inner {
  padding: 22px 18px;
}

.login-card h1,
.login-card h2 {
  margin: 0 0 10px;
  color: var(--pink-deep);
  font-size: 28px;
}

.login-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

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

.split {
  display: grid;
  gap: 10px;
}

.admin-card h3 {
  font-size: 18px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(233, 83, 133, 0.12);
  background: rgba(255, 255, 255, 0.46);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  color: var(--ink);
}

th,
td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(233, 83, 133, 0.12);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.helper {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.upload-row {
  display: grid;
  gap: 8px;
}

.copy-link {
  color: var(--pink-deep);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #58c893;
  box-shadow: 0 0 0 4px rgba(88, 200, 147, 0.16);
  margin-right: 8px;
}

.bad-dot {
  background: #e95385;
  box-shadow: 0 0 0 4px rgba(233, 83, 133, 0.16);
}

.hide {
  display: none !important;
}

@media (min-width: 461px) {
  body {
    background:
      radial-gradient(circle at 30% 10%, rgba(255, 229, 154, 0.50), transparent 26%),
      radial-gradient(circle at 70% 8%, rgba(139, 216, 247, 0.34), transparent 28%),
      linear-gradient(180deg, var(--page), var(--page-2) 58%, #fffdf8);
  }
}

:root {
  --paper: #fffefa;
  --shadow: 0 1px 0 rgba(233, 83, 133, 0.12);
  --shadow-soft: none;
  --radius: 8px;
  --radius-sm: 6px;
}

body::after {
  display: none;
}

.container {
  width: min(100% - 12px, 460px);
}

.shell,
.admin-shell {
  padding: calc(8px + env(safe-area-inset-top)) 0 calc(14px + env(safe-area-inset-bottom));
}

.topbar {
  gap: 6px;
  margin-bottom: 8px;
}

.brand {
  gap: 2px;
  padding: 0;
}

.brand h1,
.brand h2 {
  font-size: 20px;
}

.brand small {
  font-size: 12px;
  line-height: 1.35;
}

.top-actions {
  gap: 4px;
}

.pill,
.btn,
.tab,
.stage-head .eyebrow,
.record.badge,
.prize-badge {
  border-radius: 8px;
  box-shadow: none;
  backdrop-filter: none;
}

.pill {
  min-height: 28px;
  padding: 4px 6px;
  font-size: 12px;
  background: #fffefa;
}

.btn {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 13px;
  background: #fffefa;
}

.btn.primary {
  box-shadow: none;
}

.input,
.textarea,
.select {
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fffefa;
  box-shadow: none;
}

.textarea {
  min-height: 82px;
}

.band,
.surface,
.admin-card,
.login-card {
  background: #fffefa;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.band {
  border-radius: 10px;
}

.hero-band {
  gap: 6px;
  padding: 6px;
}

.hero-art {
  min-height: 220px;
  border-radius: 8px;
  box-shadow: none;
}

.hero-copy {
  left: 10px;
  right: 10px;
  bottom: 10px;
}

.hero-copy h2 {
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 1.08;
}

.hero-copy p {
  font-size: 13px;
  line-height: 1.45;
}

.hero-stack {
  gap: 6px;
}

.stack-panel {
  padding: 8px;
  border-radius: 8px;
  background: #fffefa;
}

.stack-panel h3,
.section-title h3,
.admin-card h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.stack-panel p,
.section-title p {
  font-size: 13px;
  line-height: 1.45;
}

.section {
  margin-top: 8px;
}

.section-title {
  gap: 6px;
  margin-bottom: 6px;
  padding: 0;
}

.tabs {
  gap: 5px;
  padding: 0 0 6px;
}

.tab {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 13px;
}

.workspace,
.aside,
.admin-grid,
.admin-rows,
.stack {
  gap: 8px;
}

.surface.pad,
.admin-card {
  padding: 10px;
}

.stage-head {
  gap: 3px;
  margin-bottom: 8px;
}

.stage-head .eyebrow {
  padding: 3px 6px;
  font-size: 11px;
}

.stage-head h3 {
  font-size: 19px;
}

.stage-head p {
  font-size: 13px;
  line-height: 1.45;
}

.stage-shell {
  gap: 8px;
}

.stage-tools {
  grid-template-columns: .85fr .85fr 1.3fr;
  gap: 5px;
}

.stage-tools .btn {
  grid-column: auto;
  min-height: 32px;
  font-size: 14px;
}

.stage-grid {
  min-height: 240px;
  border-radius: 8px;
}

.stage-grid::before {
  right: 10px;
  top: 6px;
  font-size: 30px;
}

.stage-grid::after {
  display: none;
}

.draw-box {
  width: min(220px, 70vw);
  height: 190px;
}

.gift-lid {
  top: 28px;
  width: 150px;
  height: 34px;
  border-radius: 8px 8px 5px 5px;
  box-shadow: none;
}

.gift-body {
  top: 58px;
  width: 168px;
  height: 116px;
  border-radius: 8px;
  box-shadow: none;
}

.gift-ribbon {
  top: 58px;
  width: 26px;
  height: 116px;
  border-radius: 4px;
}

.gift-ribbon::before {
  left: -62px;
  top: 39px;
  width: 150px;
  height: 22px;
  border-radius: 4px;
}

.gift-knot {
  top: 15px;
}

.draw-envelope {
  width: min(280px, 78vw);
  height: 196px;
}

.envelope-body {
  inset: 50px 22px 18px;
  border-radius: 8px;
  box-shadow: none;
}

.envelope-flap {
  top: 28px;
  width: 190px;
  height: 112px;
}

.love-letter {
  width: 212px;
  min-height: 104px;
  border-radius: 8px;
  padding: 10px;
  box-shadow: none;
}

.love-letter h4 {
  margin-bottom: 5px;
  font-size: 15px;
}

.love-letter p {
  font-size: 12px;
  line-height: 1.42;
}

.draw-wheel {
  width: min(242px, 68vw);
  height: min(242px, 68vw);
}

.wheel-track {
  padding: 8px;
  box-shadow: none;
}

.wheel::before {
  box-shadow: none;
}

.wheel-label {
  width: 70px;
  margin-left: -35px;
  transform:
    rotate(var(--angle))
    translateY(-82px)
    rotate(calc(-1 * var(--angle)));
  font-size: 10px;
}

.wheel-pointer {
  border-left-width: 11px;
  border-right-width: 11px;
  border-top-width: 20px;
  filter: none;
}

.draw-grid,
.draw-card {
  width: min(292px, 82vw);
  gap: 5px;
}

.grid-cell,
.card-slot,
.card-front,
.card-back {
  border-radius: 8px;
}

.grid-cell {
  padding: 5px;
  box-shadow: none;
}

.grid-cell strong {
  margin-bottom: 2px;
  font-size: 11px;
}

.grid-cell span {
  font-size: 10px;
}

.grid-cell.active {
  box-shadow: none;
}

.card-front,
.card-back {
  padding: 7px;
}

.aside {
  gap: 8px;
}

.list,
.records {
  gap: 5px;
}

.list-item,
.record {
  padding: 8px;
  border-radius: 8px;
}

.list-item h4 {
  margin-bottom: 3px;
  font-size: 14px;
}

.list-item p {
  font-size: 12px;
  line-height: 1.42;
}

.list-item .row {
  gap: 5px;
  margin-top: 6px;
}

.mini {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 12px;
}

.divider {
  margin: 8px 0;
}

.record {
  gap: 4px;
}

.record strong {
  margin-bottom: 2px;
  font-size: 14px;
}

.record small {
  font-size: 12px;
}

.record.badge,
.prize-badge {
  padding: 4px 7px;
  font-size: 12px;
}

.modal {
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: rgba(120, 76, 63, 0.12);
  backdrop-filter: none;
}

.modal-panel {
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(233, 83, 133, 0.16);
}

.modal-head {
  gap: 6px;
  padding: 10px 10px 0;
}

.modal-body {
  padding: 8px 10px 10px;
}

.modal-panel h3 {
  margin-bottom: 4px;
  font-size: 19px;
}

.modal-panel p {
  font-size: 13px;
  line-height: 1.45;
}

.modal-footer {
  padding: 0 10px 10px;
}

.toast {
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(233, 83, 133, 0.12);
  font-size: 13px;
}

.login-frame {
  padding: calc(10px + env(safe-area-inset-top)) 8px calc(10px + env(safe-area-inset-bottom));
}

.login-card {
  border-radius: 10px;
}

.login-card .inner {
  padding: 14px 12px;
}

.login-card h1,
.login-card h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.login-card p {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.field {
  gap: 4px;
  margin-bottom: 8px;
}

.field label {
  font-size: 12px;
}

.split {
  gap: 6px;
}

.table-wrap {
  border-radius: 8px;
}

th,
td {
  padding: 6px 7px;
  font-size: 12px;
}

th {
  font-size: 11px;
}

.inline {
  gap: 5px;
}

.helper {
  font-size: 11px;
  line-height: 1.35;
}

.upload-row {
  gap: 5px;
}

.stage-grid[data-stage-kind="ring"] {
  width: calc(100% + 12px);
  min-height: 0;
  margin-right: -6px;
  margin-left: -6px;
  padding: 3px;
  border: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 10px 10px, rgba(255, 127, 176, .10) 0 2px, transparent 3px) 0 0 / 24px 24px,
    linear-gradient(180deg, #fff8fc, #fffdf7);
  box-shadow: inset 0 0 0 1px rgba(233, 83, 133, .10);
}

.stage-grid[data-stage-kind="ring"]::before,
.stage-grid[data-stage-kind="ring"]::after {
  content: none;
  display: none;
}

.draw-ring {
  --ring-columns: 6;
  --ring-rows: 4;
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--ring-columns), minmax(0, 1fr));
  grid-template-rows: repeat(var(--ring-rows), minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
}

.draw-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 10px;
  pointer-events: none;
}

.ring-cell,
.ring-center {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(233, 83, 133, .14);
  border-radius: 5px;
  background: linear-gradient(180deg, #ffffff, #fff2f8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.ring-cell {
  cursor: help;
  position: relative;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 0;
  overflow: hidden;
  padding: 2px;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    opacity .16s ease;
}

.ring-cell:focus-visible {
  outline: 2px solid rgba(233, 83, 133, .48);
  outline-offset: 2px;
}

.ring-media {
  display: grid;
  width: min(96%, 72px);
  min-width: 32px;
  aspect-ratio: 1;
  margin: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(233, 83, 133, .18);
  border-radius: 5px;
  background: linear-gradient(180deg, #fff7fb, #ffe5f1);
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease;
}

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

.ring-media i {
  color: var(--pink-deep);
  font-size: clamp(22px, 6vw, 32px);
  font-style: normal;
  line-height: 1;
}

.ring-cell strong,
.ring-action span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ring-cell strong {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  max-width: calc(100% - 4px);
  padding: 1px 2px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .88);
  color: var(--pink-deep);
  font-size: clamp(7px, 1.9vw, 9px);
  font-weight: 800;
  line-height: 1.15;
}

.ring-cell small {
  display: none;
}

.ring-cell.empty {
  border-style: dashed;
  background: rgba(255, 255, 255, .56);
}

.ring-cell.empty strong,
.ring-cell.empty small {
  color: rgba(154, 123, 114, .68);
}

.ring-cell.trail {
  border-color: rgba(255, 127, 176, .24);
  background: linear-gradient(180deg, #fff, #fff7fb);
}

.ring-cell.trail-1 {
  transform: translateY(-1px) scale(1.015);
  box-shadow:
    0 0 0 1px rgba(255, 127, 176, .16),
    0 5px 12px rgba(233, 83, 133, .10);
}

.ring-cell.trail-2 {
  opacity: .84;
}

.ring-cell.active {
  color: #fff;
  border-color: rgba(255, 255, 255, .9);
  background: linear-gradient(180deg, #ff83b1, #ffc3d9);
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .55),
    0 8px 18px rgba(233, 83, 133, .22);
  animation: ring-flash .18s cubic-bezier(.2,.8,.2,1) both;
}

.ring-cell.active strong,
.ring-cell.active small,
.ring-cell.active .ring-media i {
  color: #fff;
}

.ring-cell.active .ring-media {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .20);
  transform: scale(1.05);
}

.ring-center {
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.ring-action {
  all: unset;
  box-sizing: border-box;
  display: grid;
  width: min(70%, 122px);
  min-width: 76px;
  min-height: 54px;
  place-items: center;
  align-self: center;
  justify-self: center;
  padding: 7px 7px 6px;
  border: 1px solid rgba(233, 83, 133, .18);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #ffe2ef);
  box-shadow:
    0 4px 10px rgba(233, 83, 133, .12),
    inset 0 1px 0 rgba(255, 255, 255, .75);
  cursor: pointer;
  text-align: center;
}

.ring-action strong {
  color: var(--pink-deep);
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 900;
  line-height: 1.05;
}

.ring-action span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: clamp(7px, 2vw, 9px);
  line-height: 1.2;
}

.ring-action:disabled {
  cursor: default;
  opacity: .68;
}

.stage-grid[data-stage-kind="ring"].is-drawing .ring-center {
  box-shadow: none;
}

.stage-grid[data-stage-kind="ring"].is-drawing .ring-action {
  animation: ring-center-breathe .72s ease-in-out infinite alternate;
}

.prize-float {
  position: fixed;
  z-index: 180;
  width: min(270px, calc(100vw - 16px));
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(233, 83, 133, .22);
  border-radius: 9px;
  background: rgba(255, 253, 249, .98);
  box-shadow: 0 12px 26px rgba(233, 83, 133, .18);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease;
}

.prize-float.show {
  opacity: 1;
  transform: translateY(0);
}

.prize-float[hidden] {
  display: none;
}

.prize-float-media {
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(233, 83, 133, .16);
  border-radius: 8px;
  background: #fff2f8;
}

.prize-float-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prize-float-media span {
  font-size: 30px;
  line-height: 1;
}

.prize-float-body {
  min-width: 0;
}

.prize-float-body strong,
.prize-float-body small,
.prize-float-body p {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prize-float-body strong {
  color: var(--pink-deep);
  font-size: 14px;
  line-height: 1.18;
  white-space: nowrap;
}

.prize-float-body small {
  margin-top: 3px;
  color: #b97870;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.prize-float-body p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@keyframes ring-flash {
  0% {
    transform: translateY(0) scale(.96);
  }
  70% {
    transform: translateY(-2px) scale(1.07);
  }
  100% {
    transform: translateY(-2px) scale(1.04);
  }
}

@keyframes ring-center-breathe {
  from {
    transform: scale(.985);
  }
  to {
    transform: scale(1.018);
  }
}

.ready .hero-art,
.ready .stack-panel,
.ready .section,
.ready .surface,
.ready .admin-card {
  animation: rise-in .28s ease both;
}

.ready .stack-panel:nth-child(2),
.ready .section:nth-of-type(2),
.ready .aside .surface:nth-child(2) {
  animation-delay: .05s;
}

.stage-grid {
  animation: stage-in .22s ease both;
}

.tab.tap,
.btn:active {
  animation: press-pop .18s ease both;
}

.bump {
  animation: number-bump .28s ease both;
}

.is-drawing .stage-grid,
.stage-grid.is-drawing {
  animation: drawing-pulse .62s ease-in-out infinite alternate;
}

.is-drawing .gift-body {
  animation: gift-shake .34s ease-in-out infinite;
}

.is-drawing .gift-knot {
  animation: bow-wiggle .34s ease-in-out infinite;
}

.is-open .gift-body {
  animation: prize-pop .42s ease both;
}

.is-open .love-letter {
  animation: letter-rise .56s cubic-bezier(.2,.8,.2,1) both;
}

.grid-cell.active {
  animation: cell-flash .18s ease both;
}

.draw-card.reveal .card-slot {
  animation: card-stagger .32s ease both;
}

.draw-card.reveal .card-slot:nth-child(2) {
  animation-delay: .03s;
}

.draw-card.reveal .card-slot:nth-child(3) {
  animation-delay: .06s;
}

.draw-card.reveal .card-slot:nth-child(4) {
  animation-delay: .09s;
}

.draw-card.reveal .card-slot:nth-child(5) {
  animation-delay: .12s;
}

.draw-card.reveal .card-slot:nth-child(6) {
  animation-delay: .15s;
}

.modal {
  opacity: 0;
  transition: opacity .18s ease;
}

.modal.show {
  opacity: 1;
}

.modal-panel {
  transform: translateY(12px) scale(.98);
  transition: transform .2s ease;
}

.modal.show .modal-panel {
  transform: translateY(0) scale(1);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stage-in {
  from {
    opacity: .4;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes press-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(.96);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes number-bump {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes drawing-pulse {
  from {
    background-position: 0 0;
    border-color: rgba(233, 83, 133, .14);
  }
  to {
    background-position: 12px 0;
    border-color: rgba(233, 83, 133, .42);
  }
}

@keyframes gift-shake {
  0%,
  100% {
    transform: translateX(-50%) rotate(0);
  }
  25% {
    transform: translateX(-51%) rotate(-1.5deg);
  }
  75% {
    transform: translateX(-49%) rotate(1.5deg);
  }
}

@keyframes bow-wiggle {
  0%,
  100% {
    transform: translateX(-50%) rotate(0);
  }
  50% {
    transform: translateX(-50%) rotate(4deg);
  }
}

@keyframes prize-pop {
  0% {
    transform: translateX(-50%) scale(1);
  }
  55% {
    transform: translateX(-50%) scale(1.04);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

@keyframes letter-rise {
  from {
    opacity: .72;
  }
  to {
    opacity: 1;
  }
}

@keyframes cell-flash {
  from {
    transform: translateY(0) scale(.98);
  }
  to {
    transform: translateY(-2px) scale(1);
  }
}

@keyframes card-stagger {
  from {
    transform: translateY(4px);
  }
  to {
    transform: translateY(0);
  }
}

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

.admin-container {
  width: min(100% - 10px, 520px);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 4px 0 6px;
  background: linear-gradient(180deg, rgba(255, 246, 251, .96), rgba(255, 246, 251, .82));
}

.admin-actions {
  grid-template-columns: 1.2fr .8fr .8fr;
}

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

.metric-tile {
  padding: 7px 6px;
  border: 1px solid rgba(233, 83, 133, 0.16);
  border-radius: 8px;
  background: #fffefa;
  text-align: center;
}

.metric-tile strong {
  display: block;
  color: var(--pink-deep);
  font-size: 18px;
  line-height: 1.1;
}

.metric-tile span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.admin-tabs {
  position: sticky;
  top: 70px;
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  padding: 4px 0;
  background: linear-gradient(180deg, rgba(255, 246, 251, .96), rgba(255, 246, 251, .82));
}

.admin-tab {
  min-height: 32px;
  padding: 6px 4px;
  border: 1px solid rgba(233, 83, 133, 0.18);
  border-radius: 8px;
  background: #fffefa;
  color: var(--pink-deep);
  font-size: 13px;
}

.admin-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--peach));
  border-color: transparent;
}

.admin-view {
  display: none;
  gap: 8px;
}

.admin-view.active {
  display: grid;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.card-head h3 {
  margin: 0;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.admin-button-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.admin-button-row .btn.primary {
  grid-column: span 1;
}

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

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid rgba(233, 83, 133, 0.14);
  border-radius: 8px;
  background: #fffefa;
}

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

.admin-item.editing {
  border-color: rgba(233, 83, 133, .52);
  background: #fff4fa;
}

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

.admin-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.admin-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.admin-tags span {
  padding: 2px 5px;
  border: 1px solid rgba(233, 83, 133, 0.14);
  border-radius: 6px;
  background: #fff7fb;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.admin-item-actions {
  display: grid;
  gap: 4px;
}

.empty-state {
  padding: 10px;
  border: 1px dashed rgba(233, 83, 133, .24);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 360px) {
  .admin-tabs {
    top: 64px;
  }

  .admin-tab {
    font-size: 12px;
  }

  .three-col,
  .admin-button-row {
    grid-template-columns: 1fr;
  }
}
