:root {
  --bg: #fffafc;
  --panel: rgba(255,255,255,.95);
  --ink: #51424d;
  --muted: #8b7a84;
  --heading: #74596b;
  --line: #ead8e1;
  --line-strong: #dec6d2;
  --pink: #d8a0b8;
  --pink-deep: #b97894;
  --lavender: #c5b4e4;
  --cream: #fff8ed;
  --green: #eaf8ed;
  --blue: #eef5ff;
  --danger: #fff1f4;
  --shadow: 0 18px 42px rgba(122, 83, 107, .12);
  --shadow-soft: 0 8px 22px rgba(122, 83, 107, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(255,236,246,.9), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(242,237,255,.9), transparent 30%),
    linear-gradient(180deg, #fffdfc, #fff8fb 58%, #faf7ff);
  color: var(--ink);
  font-family: Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

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

.app-shell {
  width: min(1480px, calc(100% - 24px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.app-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 26px;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(135deg, #4e4359, #77649b);
  color: #fff;
  box-shadow: var(--shadow);
}

.brand-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 16px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  color: #f8dbe7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.app-header h1 {
  margin: 10px 0 4px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
}

.app-header p { margin: 0; color: rgba(255,255,255,.82); font-weight: 700; }

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.header-nav a {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.header-nav a.active {
  background: #fff;
  color: var(--heading);
}

.panel {
  margin: 0 0 18px;
  padding: 24px;
  border: 1px solid rgba(234,216,225,.92);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,251,253,.96));
  box-shadow: var(--shadow-soft);
}

.hero-panel { padding: 28px; }
.section-kicker {
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h2 {
  margin: 4px 0 8px;
  color: var(--heading);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.35;
}

h3 { margin: 0 0 8px; color: var(--heading); }
p { color: var(--muted); font-weight: 700; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

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

.dashboard-card {
  display: block;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  border-color: var(--pink);
  box-shadow: var(--shadow);
}

.dashboard-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #fff;
  font-weight: 900;
}

.dashboard-card strong {
  display: block;
  margin: 14px 0 4px;
  color: var(--heading);
  font-size: 18px;
}

.dashboard-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.utility-details,
.guide-details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.78);
}

.utility-details + .utility-details,
.guide-details + .sc-form { margin-top: 16px; }

.utility-details summary,
.guide-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 14px 18px;
  list-style: none;
  color: var(--heading);
  font-weight: 900;
}

.utility-details summary::-webkit-details-marker,
.guide-details summary::-webkit-details-marker { display: none; }

.utility-details small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.utility-details b,
.guide-details b {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  background: #f2e6ee;
  color: var(--pink-deep);
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}

.utility-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.form-panel { max-width: 1120px; margin-inline: auto; }

.sc-form { margin-top: 18px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--heading);
  font-weight: 900;
}

label span b {
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #fff;
  font-size: 11px;
}

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

input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fffbfd);
  color: var(--ink);
  outline: none;
}

textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(216,160,184,.16);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.main-btn,
.sub-btn,
.chip-btn {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  font-weight: 900;
  text-decoration: none;
}

.main-btn {
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #fff;
  box-shadow: 0 10px 24px rgba(122,83,107,.16);
}

.chip-btn.danger {
  background: #fff3f5;
  color: #a0445a;
}

.message {
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff8fb;
  color: var(--heading);
  font-weight: 900;
}

.message.success { border-color: #bfe5c7; background: var(--green); color: #35754b; }
.message.error { border-color: #efc1cc; background: var(--danger); color: #a0445a; }

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

.admin-auth {
  display: grid;
  min-width: min(360px, 100%);
  gap: 8px;
}

.admin-auth label span { margin-bottom: 4px; }

.check-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.check-line input {
  width: auto;
  min-height: 0;
}

.summary-row,
.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.summary-chip,
.tab-btn {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  font-weight: 900;
}

.summary-chip strong,
.tab-btn strong { font-size: 18px; }

.tab-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, #7d5f8d, #9d7bae);
  color: #fff;
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.admin-card {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-card-media {
  height: 180px;
  background: linear-gradient(135deg, #fff5fa, #f2edff);
}

.admin-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff8fb;
  color: #8a5f78;
  font-size: 11px;
  font-weight: 900;
}

.badge.primary { border-color: transparent; background: linear-gradient(135deg, var(--pink), var(--lavender)); color: #fff; }
.badge.green { background: var(--green); color: #3f7b4f; }
.badge.blue { background: var(--blue); color: #42678f; }

.admin-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.admin-meta {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.admin-meta div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-meta span { color: var(--muted); font-weight: 900; }
.admin-meta strong { min-width: 0; overflow-wrap: anywhere; }

.admin-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(61, 48, 58, .52);
}
.dialog {
  position: relative;
  width: min(960px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: auto;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(33,24,34,.25);
}
.dialog-close {
  float: right;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  font-weight: 900;
}

.modal-open { overflow: hidden; }

.empty-box {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  font-weight: 900;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 18px;
  clear: both;
}

.detail-main-image {
  overflow: hidden;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff5fa, #f2edff);
}

.detail-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}

.detail-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.detail-thumbs img {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.detail-rows {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.detail-rows div {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffbfd;
}

.detail-rows span {
  color: var(--muted);
  font-weight: 900;
}

.detail-rows strong {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.event-hero {
  max-width: 1180px;
  margin: 18px auto 24px;
  text-align: center;
}

.brand-pill.light {
  color: #bd7e9d;
  border-color: var(--line);
  background: rgba(255,255,255,.72);
}

.event-hero h2 {
  margin: 12px 0 8px;
  font-size: clamp(34px, 5vw, 58px);
}

.event-hero p {
  margin: 6px 0;
  font-size: 16px;
}

.event-form-panel {
  max-width: 1260px;
  padding: 28px;
}

.event-guide {
  margin: 0 auto 14px;
  border-radius: 24px;
  background: rgba(255,255,255,.88);
}

.event-guide[open] summary {
  border-bottom: 1px solid rgba(234,216,225,.65);
}

.event-guide p {
  margin: 0;
  padding: 0 18px 10px;
}

.event-wizard {
  --step-active: linear-gradient(135deg, #d39fbd, #c6b4e8);
}

.event-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.82);
}

.event-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  min-height: 92px;
  overflow: hidden;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  text-align: left;
  box-shadow: none;
}

.event-step::after,
.mode-card::after,
.main-btn::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 55%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
  opacity: 0;
}

.event-step.active::after,
.mode-card.active::after,
.main-btn:hover::after {
  animation: shineSweep 1.5s ease;
  opacity: 1;
}

@keyframes shineSweep {
  0% { left: -70%; }
  100% { left: 130%; }
}

.event-step span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #f4e8f0;
  color: #bd7e9d;
  font-weight: 900;
}

.event-step strong,
.event-step em {
  display: block;
}

.event-step strong {
  font-size: 15px;
  line-height: 1.25;
}

.event-step em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
}

.event-step.active {
  border-color: transparent;
  background: var(--step-active);
  color: #fff;
  box-shadow: 0 16px 36px rgba(122,83,107,.16);
}

.event-step.active span {
  background: #fff;
  color: #bd7e9d;
}

.event-step.active em { color: rgba(255,255,255,.84); }
.event-step.done { border-color: #d9bfd0; background: #fffafd; }

.event-step-pane {
  animation: paneIn .24s ease both;
}

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

.event-card-soft {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(250,244,255,.82));
  box-shadow: var(--shadow-soft);
}

.event-card-soft + .event-card-soft { margin-top: 16px; }
.event-card-soft h3 { margin: 22px 0 12px; font-size: 18px; }
.event-card-soft h3:first-child { margin-top: 0; }
.required-dot { color: #b25d78; font-size: 13px; }

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

.mode-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  color: var(--heading);
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.mode-card strong,
.mode-card span,
.mode-card em {
  display: block;
}

.mode-card strong { margin-bottom: 12px; font-size: 18px; }
.mode-card span { color: var(--muted); font-weight: 900; }
.mode-card em { margin-top: 14px; color: #9a7742; font-style: normal; font-weight: 900; }

.mode-card.active {
  border-color: #dc9eb9;
  background: linear-gradient(135deg, rgba(255,246,252,.96), rgba(246,241,255,.96));
  box-shadow: 0 0 0 4px rgba(216,160,184,.16), var(--shadow-soft);
}

.current-mode-line,
.auto-judge-box,
.copy-source-box,
.tag-box {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-weight: 900;
}

.current-mode-line strong {
  margin-left: 20px;
  color: var(--heading);
}

.search-results {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.muted-result {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.7);
  color: var(--muted);
  font-weight: 900;
}

.search-result {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--heading);
  text-align: left;
}

.search-result span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.choice-chip,
.choice-card {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--heading);
  font-weight: 900;
}

.choice-chip {
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
}

.choice-chip.active,
.choice-card.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #fff;
  box-shadow: 0 10px 22px rgba(122,83,107,.14);
}

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

.choice-card {
  display: block;
  min-height: 84px;
  padding: 14px;
  border-radius: 18px;
  text-align: left;
}

.choice-card strong,
.choice-card span { display: block; }
.choice-card span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.choice-card.active span { color: rgba(255,255,255,.82); }

.auto-judge-box {
  display: grid;
  gap: 10px;
}

.auto-judge-box div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
  gap: 20px;
  margin-top: 18px;
}

.guide-card {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.76);
}

.guide-card h3 b {
  float: right;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #a56881;
  font-size: 12px;
}

.guide-card ul {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.guide-card li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--heading);
  font-weight: 900;
}

.guide-card li::before {
  content: "✓";
  margin-right: 8px;
  color: #6aa05f;
}

.guide-card blockquote {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #ead7ad;
  border-radius: 14px;
  background: #fffaf0;
  color: #8a6a31;
  font-weight: 900;
}

.drop-zone {
  display: grid;
  min-height: 130px;
  place-items: center;
  padding: 20px;
  border: 2px dashed #e7bdd0;
  border-radius: 22px;
  background: rgba(250,244,255,.78);
  text-align: center;
}

.drop-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.drop-zone strong {
  color: var(--heading);
  font-size: 18px;
}

.drop-zone span {
  max-width: 620px;
  color: var(--muted);
  font-weight: 900;
}

.drop-zone.dragover {
  border-color: var(--pink-deep);
  background: #fff2f8;
  box-shadow: 0 0 0 5px rgba(216,160,184,.15);
}

.image-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 20px;
}

.image-preview-row figure {
  width: 120px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.image-preview-row img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.image-preview-row figcaption {
  overflow: hidden;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.clarity-head > strong {
  display: grid;
  min-width: 62px;
  min-height: 54px;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #fff;
  font-size: 22px;
}

.clarity-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.clarity-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.clarity-item > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-weight: 900;
}

.clarity-item.ok { border-color: #cbe9c8; background: #f5fff4; }
.clarity-item.ok > span { color: #5f9a5a; }
.clarity-item.warn { border-color: #ead7ad; background: #fffaf0; }
.clarity-item.warn > span { color: #a97a20; }
.clarity-item p { margin: 2px 0 0; }

.muted-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.7);
}

.event-public-preview article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.event-nav-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.main-btn {
  position: relative;
  overflow: hidden;
}

@media (max-width: 900px) {
  .app-header { grid-template-columns: 1fr; }
  .header-nav { justify-content: flex-start; }
  .dashboard-grid, .utility-grid { grid-template-columns: 1fr 1fr; }
  .event-stepper, .mode-grid, .choice-grid, .content-grid { grid-template-columns: 1fr; }
  .event-step { border-radius: 22px; }
  .event-nav-row { grid-template-columns: 1fr 1fr; }
  .event-nav-row span { display: none; }
}

@media (max-width: 640px) {
  .app-shell { width: min(100% - 14px, 1480px); padding-top: 8px; }
  .app-header { padding: 20px 16px; border-radius: 0 0 22px 22px; }
  .header-nav a { flex: 1 1 44%; text-align: center; font-size: 12px; }
  .panel { padding: 16px; border-radius: 20px; }
  .dashboard-grid, .utility-grid, .form-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .admin-head { display: block; }
  .admin-auth { margin-top: 12px; }
  .admin-card-grid { grid-template-columns: 1fr; }
  .admin-card { min-height: 0; }
  .detail-layout { grid-template-columns: 1fr; }
  .event-hero h2 { font-size: 32px; }
  .event-form-panel { padding: 16px; }
  .event-stepper { padding: 10px; gap: 8px; }
  .event-card-soft { padding: 16px; }
  .mode-card { min-height: 140px; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .event-nav-row { grid-template-columns: 1fr; }
}
