:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --canvas: #eeefeb;
  --page: #f8f7f2;
  --surface: #fffefa;
  --surface-soft: #f0f1ed;
  --surface-tint: #e5eff1;
  --line: rgba(34, 44, 42, 0.12);
  --line-strong: rgba(34, 44, 42, 0.22);
  --text: #202624;
  --secondary: #626b68;
  --muted: #89918e;
  --accent: #286579;
  --accent-dark: #1e5262;
  --accent-soft: #e4eef0;
  --success: #2f7350;
  --success-soft: #e5f2e9;
  --warning: #8b621d;
  --warning-soft: #fff5df;
  --danger: #bd4545;
  --danger-soft: #fff0ed;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 16px 44px rgba(39, 46, 43, 0.07), 0 2px 8px rgba(39, 46, 43, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.is-registration {
  background: var(--page);
}

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

button,
a {
  -webkit-touch-callout: none;
}

button {
  color: inherit;
  touch-action: manipulation;
  transition: transform 100ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

button:active,
.button:active {
  transform: scale(0.975);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(40, 101, 121, 0.28);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--text);
  color: white;
  font-weight: 800;
  transform: translateY(-160%);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 36px) 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  letter-spacing: -0.04em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-link,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 15px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.text-link {
  min-height: 42px;
  padding: 0 12px;
  color: var(--secondary);
}

.button {
  padding: 0 18px;
  background: var(--accent);
  color: white;
}

.button:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.button.ghost {
  background: transparent;
  color: var(--accent);
}

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

.button.full {
  width: 100%;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
  padding: clamp(60px, 11vw, 126px) 0 88px;
}

.hero h1 {
  max-width: 720px;
  margin: 18px 0 20px;
  font-size: clamp(42px, 6.5vw, 76px);
  line-height: 1.07;
  letter-spacing: -0.055em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--secondary);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.72;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-actions .button {
  min-height: 52px;
  padding: 0 22px;
}

.sheet-preview {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 254, 250, 0.78);
  box-shadow: var(--shadow);
}

.sheet-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 8px 18px;
}

.sheet-preview-header strong {
  font-size: 14px;
}

.live-pill,
.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 11px;
  font-weight: 850;
}

.status-pill.closed {
  background: var(--surface-soft);
  color: var(--secondary);
}

.fake-sheet {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.fake-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.2fr;
  min-height: 44px;
  border-top: 1px solid var(--line);
}

.fake-row:first-child {
  border-top: 0;
  background: #edf2ef;
  color: #46514d;
  font-size: 11px;
  font-weight: 850;
}

.fake-row span {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 0 10px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fake-row span:first-child {
  border-left: 0;
}

.steps-section {
  padding: 28px 0 84px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 10px 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.045em;
}

.section-heading p {
  margin: 0;
  color: var(--secondary);
  line-height: 1.7;
}

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

.step-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(39, 46, 43, 0.035);
}

.step-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
}

.step-card h3 {
  margin: 30px 0 10px;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.step-card p {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.65;
}

.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(40, 101, 121, 0.15);
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  line-height: 1.6;
}

.notice-label {
  flex: 0 0 auto;
  font-weight: 900;
}

.notice-bar.service-account {
  display: grid;
}

.notice-bar.service-account code {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
}

.auth-layout {
  display: grid;
  min-height: calc(100dvh - 140px);
  place-items: center;
}

.auth-card {
  width: min(100%, 440px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 18px 0 8px;
  font-size: 30px;
  letter-spacing: -0.045em;
}

.auth-card > p {
  margin: 0 0 24px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.65;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 46px 0 28px;
}

.admin-head h1 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.05em;
}

.admin-head p {
  margin: 0;
  color: var(--secondary);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.share-ready {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(47, 115, 80, 0.18);
  border-radius: var(--radius-xl);
  background: var(--success-soft);
}

.share-ready h2 {
  margin: 10px 0 6px;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.share-ready p {
  margin: 0;
  color: #476656;
  font-size: 13px;
  line-height: 1.55;
}

.share-ready-content {
  min-width: 0;
  flex: 1;
}

.share-copy-preview {
  max-height: 120px;
  margin: 14px 0 0;
  padding: 12px 14px;
  overflow: auto;
  border: 1px solid rgba(47, 115, 80, 0.14);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.72);
  color: #365342;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
}

.share-ready-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.share-ready-actions .button {
  min-height: 42px;
  font-size: 12px;
}

.sheet-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(20, 27, 25, 0.55);
  backdrop-filter: blur(8px);
}

.sheet-modal {
  display: grid;
  width: min(1200px, 100%);
  max-height: min(820px, calc(100dvh - 48px));
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(20, 27, 25, 0.24);
}

.sheet-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.sheet-modal-head h2 {
  margin: 8px 0 4px;
}

.sheet-modal-head p:not(.eyebrow) {
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
}

.virtual-sheet-wrap {
  overflow: auto;
  overscroll-behavior: contain;
}

.virtual-sheet {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.virtual-sheet th,
.virtual-sheet td {
  max-width: 280px;
  padding: 11px 13px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.virtual-sheet th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ddeff1;
  color: #183b40;
  font-weight: 850;
}

.virtual-sheet tbody tr:nth-child(even) td {
  background: #f5fafa;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(39, 46, 43, 0.035);
}

.panel.sticky-panel {
  position: sticky;
  top: 18px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.panel-header p {
  margin: 6px 0 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.55;
}

.stack {
  display: grid;
  gap: 15px;
}

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

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

.field label,
.field > .label {
  color: #434c49;
  font-size: 12px;
  font-weight: 800;
}

.field .hint {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.required-mark {
  color: var(--danger);
}

.control {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f7f7f3;
  color: var(--text);
  font-size: 15px;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

textarea.control {
  min-height: 112px;
  padding-top: 13px;
  padding-bottom: 13px;
  resize: vertical;
  line-height: 1.55;
}

.control:hover {
  border-color: var(--line-strong);
}

.control:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(40, 101, 121, 0.09);
  outline: 0;
}

.control[aria-invalid="true"] {
  border-color: rgba(189, 69, 69, 0.62);
  background: var(--danger-soft);
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
}

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

.event-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fbfbf7;
}

.event-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.event-card h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0 16px;
  color: var(--secondary);
  font-size: 12px;
}

.share-field {
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.share-field code {
  min-width: 0;
  flex: 1;
  align-self: center;
  padding-left: 8px;
  overflow: hidden;
  color: var(--secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-field .button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 12px;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.event-actions .button {
  min-height: 40px;
  padding: 0 13px;
  font-size: 12px;
}

.empty-state {
  padding: 42px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.empty-state p {
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.6;
}

.loading-state,
.simple-message {
  display: grid;
  min-height: 70dvh;
  place-items: center;
  text-align: center;
}

.loading-card,
.message-card {
  width: min(100%, 440px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.loading-card .eyebrow {
  margin-bottom: 18px;
}

.mobile-page {
  width: min(100%, 470px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--page);
  box-shadow: 0 0 40px rgba(39, 46, 43, 0.05);
}

.mobile-head {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 242, 0.94);
  backdrop-filter: blur(18px);
}

.mobile-head-row {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-context {
  min-width: 0;
}

.event-context span {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.event-context strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-chip {
  min-height: 38px;
  max-width: 150px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--secondary);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.save-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--secondary);
  font-size: 11px;
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 750;
}

.save-state::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.save-state.saving::before {
  background: var(--warning);
}

.missing-count {
  color: var(--danger);
  font-weight: 850;
}

.storage-mode-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(178, 112, 28, 0.18);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 11px;
  line-height: 1.45;
}

.storage-mode-warning strong {
  flex: 0 0 auto;
  font-weight: 900;
}

.registration-layout {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: start;
}

.registration-section-nav {
  position: sticky;
  top: 94px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100dvh - 112px);
  padding: 18px 6px 108px 10px;
}

.registration-section-link {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 9px 7px 9px 9px;
  border: 1px solid transparent;
  border-left: 3px solid var(--line-strong);
  border-radius: 0 13px 13px 0;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.registration-section-link:active {
  transform: scale(0.97);
}

.registration-section-link:focus-visible {
  outline: 3px solid rgba(40, 101, 121, 0.22);
  outline-offset: 2px;
}

.registration-section-link.is-active {
  border-color: rgba(40, 101, 121, 0.2);
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.registration-section-number {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.registration-section-link strong {
  font-size: 11px;
  line-height: 1.25;
  word-break: keep-all;
}

.registration-section-count {
  color: var(--danger);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
}

.registration-section-count.is-complete {
  color: var(--success);
}

.registration-section-count.is-optional {
  color: var(--muted);
}

.mobile-content {
  min-width: 0;
  padding: 18px 14px calc(112px + env(safe-area-inset-bottom)) 0;
}

.access-content {
  display: grid;
  min-height: calc(100dvh - 74px);
  align-content: center;
  padding: 30px 20px max(34px, env(safe-area-inset-bottom));
}

.access-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.access-card h1 {
  margin: 18px 0 10px;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.access-card > p {
  margin: 0 0 24px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.65;
}

.privacy-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.form-section {
  scroll-margin-top: 116px;
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 7px 24px rgba(39, 46, 43, 0.035);
}

.form-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}

.section-index {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.form-section h2 {
  margin: 4px 0 0;
  font-size: 19px;
  letter-spacing: -0.035em;
}

.section-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border-radius: 17px;
  background: var(--surface-soft);
}

.segmented.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segment {
  min-height: 43px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.segment.is-active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(39, 46, 43, 0.06);
}

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

.choice {
  min-height: 44px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f7f3;
  color: var(--secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.choice.is-active {
  border-color: rgba(40, 101, 121, 0.48);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.address-row {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 8px;
}

.checkbox-card {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f7f7f3;
  cursor: pointer;
}

.checkbox-card input {
  width: 21px;
  height: 21px;
  margin: 0;
  accent-color: var(--accent);
}

.checkbox-card span {
  font-size: 13px;
  font-weight: 750;
}

.conditional-box {
  display: grid;
  gap: 15px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.sensitive-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 11px;
  line-height: 1.55;
}

.validation-status {
  display: flex;
  align-items: center;
}

.validation-neutral {
  color: var(--secondary);
}

.validation-warning {
  color: var(--warning);
}

.validation-success {
  color: var(--success);
}

.validation-danger {
  color: var(--danger);
}

.account-validation {
  display: none;
  padding: 12px 14px;
  border: 1px solid rgba(189, 69, 69, 0.2);
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.account-validation.is-visible {
  display: block;
}

.sticky-submit {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  width: min(100%, 470px);
  margin: 0 auto;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(248, 247, 242, 0.95);
  backdrop-filter: blur(20px);
}

.submit-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 9px 22px rgba(40, 101, 121, 0.18);
}

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.58;
}

.success-card {
  padding: 34px 26px;
  border: 1px solid rgba(47, 115, 80, 0.16);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-badge {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 22px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 13px;
  font-weight: 900;
}

.success-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.045em;
}

.success-card p {
  margin: 0 0 24px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.65;
}

.receipt {
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 15px;
  background: var(--surface-soft);
  color: var(--secondary);
  font-size: 12px;
}

.error-summary {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(189, 69, 69, 0.22);
  border-radius: 15px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.toast-region {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 200;
  max-width: min(360px, calc(100vw - 32px));
}

.toast {
  padding: 13px 16px;
  border-radius: 15px;
  background: rgba(32, 38, 36, 0.94);
  color: white;
  box-shadow: 0 12px 34px rgba(20, 26, 24, 0.2);
  font-size: 13px;
  font-weight: 750;
  animation: toast-in 180ms ease-out;
}

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

/* 관리자 화면: 긴 주소와 작업 버튼이 작은 화면 너비를 밀어내지 않도록 격리합니다. */
.admin-document {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--canvas);
}

@supports (overflow: clip) {
  .admin-document {
    overflow-x: clip;
  }
}

.admin-document #app,
.admin-shell,
.admin-shell > *,
.admin-shell .admin-head > div,
.admin-shell .admin-grid,
.admin-shell .panel,
.admin-shell .panel-header > div,
.admin-shell .event-list,
.admin-shell .event-card,
.admin-shell .event-card-head h3 {
  min-width: 0;
  max-width: 100%;
}

.admin-shell {
  padding-top: calc(20px + env(safe-area-inset-top));
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
  overflow-x: clip;
}

.admin-shell .admin-grid {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.admin-shell .admin-refresh,
.admin-shell .admin-create-submit,
.admin-shell .share-ready-actions .button,
.admin-shell .share-field .button,
.admin-shell .event-actions .button {
  min-height: 44px;
}

.admin-shell .event-card-head h3 {
  overflow-wrap: anywhere;
}

.admin-shell .event-card-head .status-pill {
  flex: 0 0 auto;
}

.admin-shell .share-field code {
  display: block;
}

.admin-shell .share-ready-actions .share-ready-primary,
.admin-shell .event-actions .event-action-primary {
  order: 1;
}

.admin-shell .share-ready-actions .share-ready-share,
.admin-shell .event-actions .event-action-share {
  order: 2;
}

.admin-shell .share-ready-actions .share-ready-sheet,
.admin-shell .event-actions .event-action-utility {
  order: 3;
}

.admin-shell .share-ready-actions .share-ready-dismiss,
.admin-shell .event-actions .event-action-danger {
  order: 4;
}

.admin-shell .event-actions .event-action-danger {
  border: 1px solid rgba(189, 69, 69, 0.18);
  background: var(--danger-soft);
  color: var(--danger);
}

.admin-shell .event-actions .event-action-danger:hover {
  border-color: rgba(189, 69, 69, 0.3);
  background: #ffe4df;
}

.admin-document .sheet-modal,
.admin-document .sheet-modal-head > div,
.admin-document .virtual-sheet-wrap {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 760px) {
  .shell {
    padding-top: 10px;
  }

  .topbar .text-link {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 56px 0 72px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .sheet-preview {
    width: min(100%, 480px);
  }

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

  .panel.sticky-panel {
    position: static;
  }

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

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

@media (max-width: 430px) {
  .registration-layout {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .registration-section-nav {
    padding-right: 5px;
    padding-left: 7px;
  }

  .registration-section-link {
    min-height: 72px;
    padding-right: 5px;
    padding-left: 7px;
  }

  .registration-section-link strong {
    font-size: 10px;
  }

  .mobile-content {
    padding-right: 10px;
  }

  .field-row,
  .address-row {
    grid-template-columns: 1fr;
  }

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

  .form-section {
    padding: 18px;
  }

  .access-card,
  .auth-card {
    padding: 22px;
  }
}

@media (max-width: 760px) {
  .admin-document #app {
    width: 100%;
  }

  .admin-shell {
    width: 100%;
    padding: calc(10px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
  }

  .admin-shell .topbar {
    gap: 8px;
  }

  .admin-shell .brand {
    min-width: 0;
  }

  .admin-shell .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-shell .topbar-actions {
    flex: 0 0 auto;
  }

  .admin-shell .topbar-actions .button {
    min-height: 44px;
    padding-inline: 14px;
  }

  .admin-shell .auth-layout {
    min-height: auto;
    padding: 28px 0;
    place-items: start stretch;
  }

  .admin-shell .auth-card {
    width: 100%;
  }

  .admin-shell .admin-head {
    gap: 16px;
    padding: 30px 0 20px;
  }

  .admin-shell .admin-head h1 {
    margin-top: 8px;
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.08;
  }

  .admin-shell .admin-head p {
    font-size: 14px;
    line-height: 1.6;
  }

  .admin-shell .admin-refresh {
    width: 100%;
  }

  .admin-shell .admin-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .admin-shell .panel.sticky-panel {
    position: static;
  }

  .admin-shell .panel {
    width: 100%;
    padding: 18px;
    border-radius: 22px;
  }

  .admin-shell .panel-header {
    gap: 10px;
    margin-bottom: 18px;
  }

  .admin-shell .share-ready {
    width: 100%;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
  }

  .admin-shell .share-copy-preview {
    width: 100%;
    max-height: 150px;
    overflow-x: hidden;
    overflow-wrap: anywhere;
  }

  .admin-shell .share-ready-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell .share-ready-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    text-align: center;
    white-space: normal;
  }

  .admin-shell .event-card {
    width: 100%;
    padding: 16px;
  }

  .admin-shell .event-meta {
    margin-bottom: 14px;
  }

  .admin-shell .share-field {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    padding: 8px;
  }

  .admin-shell .share-field code {
    width: 100%;
    min-height: 44px;
    padding: 11px 10px;
    overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.45;
    text-overflow: clip;
    white-space: normal;
    word-break: break-all;
  }

  .admin-shell .share-field .button {
    width: 100%;
  }

  .admin-shell .event-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .admin-shell .event-actions .button {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }

  .admin-shell .empty-state {
    padding: 30px 16px;
  }

  .admin-document .sheet-modal-backdrop {
    padding: calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom));
    place-items: stretch;
  }

  .admin-document .sheet-modal {
    width: 100%;
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    align-self: center;
    border-radius: 20px;
  }

  .admin-document .sheet-modal-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 16px;
  }

  .admin-document .sheet-modal-head h2 {
    overflow-wrap: anywhere;
  }

  .admin-document .close-sheet-modal {
    min-width: 58px;
    min-height: 44px;
    padding-inline: 12px;
  }

  .admin-document .virtual-sheet-wrap {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 430px) {
  .admin-shell {
    padding-right: calc(12px + env(safe-area-inset-right));
    padding-left: calc(12px + env(safe-area-inset-left));
  }

  .admin-shell .brand {
    gap: 8px;
    font-size: 14px;
  }

  .admin-shell .topbar-actions .button {
    padding-inline: 12px;
  }

  .admin-shell .auth-card,
  .admin-shell .panel,
  .admin-shell .share-ready {
    padding: 16px;
  }

  .admin-shell .auth-card h1 {
    font-size: 27px;
    line-height: 1.15;
  }

  .admin-shell .admin-head h1 {
    font-size: clamp(30px, 9.5vw, 38px);
  }

  .admin-shell .share-ready-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-shell .event-card-head {
    gap: 8px;
  }

  .admin-shell .event-card h3 {
    font-size: 16px;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
