:root {
  --ink: #272432;
  --muted: #736e7f;
  --purple: #6544ca;
  --deep: #4d32a7;
  --lavender: #eee8ff;
  --lime: #d9f67e;
  --bg: #f7f6f1;
  --paper: #fff;
  --line: #e7e3ec;
  --red: #a33635;
  --red-bg: #fff0ed;
  --green: #23764a;
  --green-bg: #edf8f0;
  --amber: #8c551b;
  --amber-bg: #fff4dc;
  --radius: 20px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--purple);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.3;
  letter-spacing: -0.045em;
}
h1 {
  font-size: 32px;
}
h2 {
  font-size: 23px;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.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;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.tiny {
  font-size: 12px;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--purple);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.brand-icon {
  background: var(--lime);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  transform: rotate(-7deg);
  flex: none;
}
.brand-icon svg {
  width: 23px;
  height: 23px;
}
.brand strong {
  font-size: 17px;
  letter-spacing: -0.04em;
  display: block;
}
.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 30px;
  background: var(--lavender);
  color: var(--purple);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pill.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill.closed {
  color: var(--amber);
  background: var(--amber-bg);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 750;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  line-height: 1.45;
  touch-action: manipulation;
}
.button:hover:not(:disabled) {
  filter: brightness(0.96);
}
.button.primary {
  background: var(--lime);
  color: #29351b;
}
.button.secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}
.button.ghost {
  background: transparent;
  color: var(--purple);
}
.button.danger {
  background: var(--red-bg);
  color: var(--red);
}
.button.full {
  width: 100%;
}
.button.small {
  min-height: 44px;
  padding: 9px 13px;
  font-size: 13px;
}
.button svg {
  width: 18px;
  height: 18px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label,
.field-label {
  font-weight: 750;
  font-size: 14px;
}
.input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fcfbfd;
  border-radius: 12px;
  padding: 13px 14px;
  min-height: 51px;
  color: var(--ink);
  font-size: 16px;
  min-width: 0;
}
.input::placeholder {
  color: #96909f;
}
.input:focus {
  border-color: var(--purple);
  outline: 2px solid #6544ca25;
}
.input[aria-invalid="true"] {
  border-color: var(--red);
}
.alert {
  padding: 13px 15px;
  border: 1px solid #ecd2cd;
  border-radius: 12px;
  background: var(--red-bg);
  color: var(--red);
  font-size: 13px;
  word-break: keep-all;
}
.notice {
  padding: 14px 16px;
  border-radius: 13px;
  background: var(--lavender);
  color: var(--deep);
  font-size: 13px;
  word-break: keep-all;
}
.notice.warning {
  background: var(--amber-bg);
  color: var(--amber);
}
.notice.success {
  background: var(--green-bg);
  color: var(--green);
}
.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.button-row > * {
  flex: 1;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: var(--purple);
  font-weight: 700;
  padding: 6px 11px;
  background: var(--lavender);
  border-radius: 8px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
.stack {
  display: grid;
  gap: 18px;
}
.space-top {
  margin-top: 16px;
}
.help {
  border-top: 1px solid var(--line);
  padding-top: 3px;
  margin-top: 21px;
  font-size: 13px;
  color: var(--muted);
}
.help summary {
  min-height: 44px;
  padding: 11px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
.help ol {
  margin: 0 0 12px;
  padding-left: 20px;
}
.help p {
  margin-bottom: 10px;
}
.footer {
  padding: 26px 20px 30px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.footer a {
  color: var(--muted);
  margin-left: 12px;
}
.skip-link {
  position: fixed;
  left: 10px;
  top: -100px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
/* Participant */
.participant-shell {
  max-width: 440px;
  margin: 30px auto 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 14px 45px #30264008;
}
.participant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.participant-hero {
  padding: 28px 25px 26px;
  background: var(--lavender);
  position: relative;
  overflow: hidden;
}
.participant-hero h1 {
  font-size: 34px;
  margin-top: 9px;
  max-width: 290px;
  position: relative;
  z-index: 1;
  word-break: keep-all;
}
.participant-hero h1 span {
  color: var(--purple);
}
.participant-hero > p {
  margin-top: 12px;
  max-width: 290px;
  font-size: 13px;
  color: #6b5c8c;
  position: relative;
  z-index: 1;
}
.hero-spark {
  position: absolute;
  right: 15px;
  top: 20px;
  color: #cbbbf5;
  font-size: 92px;
  line-height: 1;
  transform: rotate(12deg);
}
.hero-dash {
  display: flex;
  gap: 4px;
  margin-top: 23px;
}
.hero-dash i {
  height: 5px;
  width: 26px;
  background: var(--purple);
  border-radius: 9px;
}
.hero-dash i:nth-child(2) {
  background: #af97ea;
}
.hero-dash i:nth-child(3) {
  background: var(--lime);
}
.participant-main {
  padding: 25px;
}
.steps {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 25px;
}
.steps span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.steps b {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  background: var(--lavender);
  color: var(--purple);
  border-radius: 50%;
}
.steps i {
  height: 1px;
  background: var(--line);
  flex: 1;
}
.steps .active {
  color: var(--purple);
  font-weight: 700;
}
.steps .active b {
  background: var(--purple);
  color: #fff;
}
.photo-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 152px;
  border: 1.5px dashed #c4b6e9;
  background: #faf8ff;
  border-radius: 15px;
  padding: 21px;
  color: var(--purple);
  cursor: pointer;
  text-align: center;
  position: relative;
}
.photo-drop:focus-within,
#photo:focus-visible + .photo-drop {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}
.photo-drop:hover {
  background: var(--lavender);
}
.photo-drop .upload-icon {
  width: 42px;
  height: 42px;
  background: var(--lavender);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
}
.photo-drop svg {
  width: 23px;
  height: 23px;
}
.photo-drop strong {
  font-size: 15px;
}
.photo-drop small {
  font-size: 12px;
  color: var(--muted);
}
.photo-preview-wrap {
  background: #f3f0f6;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.photo-preview {
  height: 230px;
  width: 100%;
  object-fit: contain;
}
.photo-file {
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
}
.photo-file span {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.photo-file button {
  flex: none;
}
.preview-unavailable {
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.upload-progress {
  width: 100%;
  height: 8px;
  accent-color: var(--purple);
  display: block;
  margin: 10px 0 7px;
}
.submission-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  word-break: keep-all;
}
.receipt-heading {
  text-align: center;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--lime);
  border-radius: 50%;
  margin: 3px auto 18px;
  font-size: 27px;
  font-weight: 700;
}
.receipt-heading h2 {
  font-size: 27px;
}
.receipt-heading p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.ticket {
  margin: 25px 0 20px;
  text-align: center;
  background: var(--lavender);
  border-radius: 17px;
  padding: 21px 18px;
  position: relative;
  overflow: hidden;
}
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transform: translateY(-50%);
}
.ticket::before {
  left: -10px;
}
.ticket::after {
  right: -10px;
}
.ticket-label {
  font-size: 12px;
  color: var(--purple);
  font-weight: 700;
}
.ticket-number {
  font-size: 76px;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--purple);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.ticket-handle {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.receipt-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 15px 0;
}
.receipt-meta {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 20px;
}
.receipt-info {
  border-top: 1px dashed #cebfef;
  margin-top: 16px;
  padding-top: 13px;
  font-size: 12px;
  color: #74628e;
}
.privacy-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.8;
}
.participant-main > section:focus {
  outline: none;
}
.new-confirm {
  padding: 14px;
  background: var(--bg);
  border-radius: 12px;
  margin-top: 10px;
}
.new-confirm p {
  font-size: 13px;
  margin-bottom: 12px;
}
/* Login */
.login-shell {
  width: calc(100% - 32px);
  max-width: 420px;
  margin: 10vh auto 0;
}
.login-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 24px;
  margin-top: 27px;
}
.login-card h1 {
  font-size: 28px;
  margin: 8px 0;
}
.login-card form {
  margin-top: 25px;
}
.login-back {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
}
.lock-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--lavender);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--purple);
}
.lock-badge svg {
  width: 24px;
  height: 24px;
}
/* Management */
.admin-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 17px max(24px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.account {
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-copy {
  text-align: right;
  font-size: 12px;
  line-height: 1.45;
}
.account-copy strong {
  display: block;
  font-size: 13px;
}
.admin-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 29px 24px;
}
.admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 23px;
}
.admin-title-row h1 {
  font-size: 30px;
  margin: 5px 0 7px;
}
.admin-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hashtag-settings {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}
.hashtag-settings summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 750;
  font-size: 14px;
}
.hashtag-settings-body {
  padding: 0 18px 18px;
}
.hashtag-current {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
}
.hashtag-current .tags {
  margin: 0;
  min-width: 0;
}
.hashtag-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}
.hashtag-fields .button {
  min-height: 51px;
}
.hashtag-settings .alert,
.hashtag-settings .notice {
  margin: 12px 0 0;
}
.live-note {
  font-size: 12px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.live-note.stale {
  color: var(--amber);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.stat strong {
  font-size: 27px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.stat.highlight {
  background: var(--lavender);
  border-color: #e3d8ff;
}
.stat.highlight strong {
  color: var(--purple);
}
.management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: 20px;
  align-items: start;
}
.queue-panel {
  min-width: 0;
}
.queue-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.queue-toolbar form {
  flex: 1;
  display: flex;
  position: relative;
  min-width: 0;
}
.queue-toolbar form input {
  padding-right: 48px;
}
.search-button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.search-button svg {
  width: 18px;
  height: 18px;
}
.queue-toolbar select {
  width: auto;
  max-width: 145px;
  font-size: 13px;
}
.queue-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin: 12px 2px;
}
.queue-list {
  display: grid;
  gap: 9px;
}
.queue-card {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  padding: 12px;
  color: var(--ink);
  min-width: 0;
}
.queue-card:hover {
  border-color: #c3b3e6;
}
.queue-card.selected {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple);
  background: #fcfaff;
}
.queue-thumb {
  height: 76px;
  width: 67px;
  object-fit: contain;
  border-radius: 9px;
  background: #f2f0f5;
  flex: none;
}
.queue-card-copy {
  min-width: 0;
  flex: 1;
}
.queue-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.queue-number {
  font-size: 22px;
  font-weight: 850;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.queue-handle {
  display: block;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  margin: 3px 0;
}
.queue-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 750;
  padding: 4px 8px;
  border-radius: 7px;
  background: #f0edf3;
  color: var(--muted);
  white-space: nowrap;
}
.status-waiting {
  color: var(--amber);
  background: var(--amber-bg);
}
.status-approved {
  color: var(--purple);
  background: var(--lavender);
}
.status-printing {
  color: #286185;
  background: #e8f3fc;
}
.status-completed {
  color: var(--green);
  background: var(--green-bg);
}
.empty {
  padding: 43px 20px;
  border: 1px dashed #d5cedf;
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: #ffffff70;
}
.empty-icon {
  font-size: 29px;
  display: block;
  margin-bottom: 10px;
  color: #b6a8cd;
}
.empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 15px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.detail-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 22px;
  position: sticky;
  top: 20px;
  min-width: 0;
}
.detail-placeholder {
  padding: 65px 15px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.detail-placeholder svg {
  width: 42px;
  height: 42px;
  color: #b8a6dc;
  margin: 0 auto 16px;
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 17px;
}
.detail-top h2 {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}
.detail-top p {
  font-size: 13px;
  overflow-wrap: anywhere;
  margin-top: 3px;
}
.close-detail {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 0;
  border-radius: 10px;
  font-size: 21px;
  color: var(--muted);
}
.detail-photo {
  width: 100%;
  height: 290px;
  object-fit: contain;
  background: #f3f1f6;
  border-radius: 11px;
}
.detail-meta {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 11px 0 16px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.detail-actions {
  display: grid;
  gap: 10px;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
  min-height: 48px;
}
.check-row input {
  accent-color: var(--purple);
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: none;
}
.check-row span {
  min-width: 0;
  word-break: keep-all;
}
.detail-message {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 3px;
  word-break: keep-all;
}
.detail-countdown {
  font-size: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
  color: var(--muted);
  margin-top: 14px;
}
.admin-footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
  line-height: 1.8;
}
.flash {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  z-index: 20;
  padding: 13px 19px;
  background: var(--ink);
  color: #fff;
  border-radius: 13px;
  font-size: 13px;
  box-shadow: 0 8px 35px #0002;
}
.flash.error {
  background: var(--red);
}
.super-only[hidden] {
  display: none;
}
.admin-alert {
  margin-bottom: 17px;
}
.session-loader {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.mobile-back {
  display: none;
}
/* Print */
.print-shell {
  max-width: 1040px;
  padding: 24px;
  margin: 0 auto;
}
.print-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.print-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.print-controls {
  background: var(--paper);
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 16px;
}
.print-controls h1 {
  font-size: 24px;
}
.print-photo-stage {
  display: grid;
  place-items: center;
  background: #e8e5ed;
  border-radius: 18px;
  padding: 24px;
  min-height: 500px;
}
.print-paper {
  width: min(100%, 400px);
  aspect-ratio: 100/148;
  background: #fff;
  box-shadow: 0 8px 25px #2c24321c;
  overflow: hidden;
}
.print-paper.landscape {
  aspect-ratio: 148/100;
  width: 100%;
}
.print-paper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.print-paper.cover img {
  object-fit: cover;
}
.print-warning {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.print-page .footer {
  padding-top: 5px;
}
@media (min-width: 1500px) {
  .participant-shell {
    margin-top: 6vh;
  }
}
@media (max-width: 900px) {
  .management-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 15px;
  }
  .detail-panel {
    padding: 17px;
  }
  .detail-photo {
    height: 240px;
  }
  .queue-card {
    gap: 10px;
  }
  .queue-thumb {
    width: 57px;
    height: 67px;
  }
  .admin-title-row {
    align-items: flex-start;
  }
  .admin-tools {
    max-width: 270px;
  }
  .stat {
    padding: 14px;
  }
  .print-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 17px;
  }
}
@media (max-width: 650px) {
  .participant-shell {
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: calc(100dvh - 72px);
  }
  .participant-header {
    padding: 18px 22px;
  }
  .participant-hero {
    padding: 25px 23px;
  }
  .participant-hero h1 {
    font-size: 31px;
  }
  .participant-main {
    padding: 23px;
  }
  .participant-page {
    background: #fff;
  }
  .participant-page .footer {
    background: #fff;
    padding: 23px 15px;
  }
  .admin-header {
    padding: 15px 17px;
    gap: 8px;
  }
  .admin-header .brand strong {
    font-size: 15px;
  }
  .admin-header .brand-icon {
    width: 33px;
    height: 33px;
  }
  .admin-header .brand small {
    font-size: 10px;
  }
  .account {
    gap: 7px;
  }
  .account-copy {
    display: none;
  }
  .admin-shell {
    padding: 23px 17px;
  }
  .admin-title-row {
    display: block;
    margin-bottom: 20px;
  }
  .admin-title-row h1 {
    font-size: 27px;
  }
  .admin-tools {
    max-width: none;
    justify-content: flex-start;
    margin-top: 16px;
  }
  .hashtag-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats {
    gap: 7px;
    margin-bottom: 19px;
  }
  .stat {
    display: block;
    padding: 11px 10px;
  }
  .stat span {
    font-size: 10px;
    display: block;
    white-space: nowrap;
  }
  .stat strong {
    font-size: 24px;
    display: block;
    margin-top: 5px;
  }
  .management-grid {
    display: block;
  }
  .queue-toolbar {
    gap: 7px;
  }
  .queue-toolbar select {
    max-width: 125px;
    padding-left: 10px;
    padding-right: 8px;
    font-size: 12px;
  }
  .queue-card {
    padding: 11px;
    gap: 12px;
  }
  .queue-thumb {
    width: 67px;
    height: 76px;
  }
  .queue-number {
    font-size: 23px;
  }
  .detail-panel {
    display: none;
    position: static;
    padding: 19px;
  }
  .management-grid.detail-open .queue-panel {
    display: none;
  }
  .management-grid.detail-open .detail-panel {
    display: block;
  }
  .mobile-back {
    display: inline-flex;
    margin-bottom: 14px;
  }
  .detail-photo {
    height: 320px;
  }
  .detail-placeholder {
    padding: 40px 12px;
  }
  .admin-shell:has(.detail-open) .stats {
    display: none;
  }
  .admin-shell:has(.detail-open) .admin-title-row {
    display: none;
  }
  .print-shell {
    padding: 18px;
  }
  .print-header {
    margin-bottom: 18px;
  }
  .print-grid {
    display: flex;
    flex-direction: column-reverse;
  }
  .print-grid > * {
    width: 100%;
  }
  .print-photo-stage {
    min-height: 350px;
    padding: 20px;
  }
  .print-paper {
    max-width: 320px;
  }
  .print-controls {
    padding: 20px;
  }
  .print-header .brand small {
    display: none;
  }
  .login-card {
    padding: 25px;
  }
  .login-shell {
    margin-top: 6vh;
  }
  .footer {
    padding-bottom: 23px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .button,
  .queue-card {
    transition:
      background 0.15s,
      border-color 0.15s,
      filter 0.15s;
  }
  .receipt-heading {
    animation: arrive 0.25s ease-out;
  }
  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@page {
  size: 100mm 148mm;
  margin: 0;
}
@media print {
  html,
  body.print-page {
    background: white !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.print-page > *:not(.print-shell) {
    display: none !important;
  }
  .print-page .print-header,
  .print-controls,
  .print-page .alert,
  .print-page .footer,
  .print-page .session-loader {
    display: none !important;
  }
  .print-shell,
  .print-grid,
  .print-photo-stage {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    border: 0 !important;
    background: white !important;
    border-radius: 0 !important;
  }
  .print-paper {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100mm !important;
    height: 148mm !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    box-shadow: none !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    break-inside: avoid;
    page-break-after: avoid;
  }
  .print-paper.landscape {
    width: 148mm !important;
    height: 100mm !important;
  }
  .print-paper img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }
  .print-paper.cover img {
    object-fit: cover;
  }
}
