:root {
  font-family:
    Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo,
    sans-serif;
  color: #242833;
  background: #f8f7f4;
  font-synthesis: none;
  --ink: #242833;
  --muted: #727683;
  --line: #e6e5e1;
  --coral: #ef6f7b;
  --coral-light: #fff0f1;
  --paper: #fff;
  --green: #27866b;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e95d7970;
  outline-offset: 3px;
}
svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -1.2px;
  line-height: 1.4;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
}
small {
  font-size: 12px;
}
input,
select,
textarea {
  max-width: 100%;
  border: 1px solid #dedfdf;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  min-height: 44px;
}
input::placeholder,
textarea::placeholder {
  color: #9a9ca6;
}
input:read-only {
  background: #f5f5f4;
  color: #767986;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 0;
  accent-color: var(--coral);
}
textarea {
  resize: vertical;
}
select {
  cursor: pointer;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}
label .hint {
  font-weight: 400;
}
.hint,
.muted {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
.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;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  background: #fff;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.initial-state {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--muted);
  font-size: 14px;
}
.loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 1.2s infinite;
}
.app-header {
  background: #ffffffec;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 36px;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none !important;
}
.brand-mark {
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--coral);
  border-radius: 11px;
  transform: rotate(-7deg);
}
.brand-mark svg {
  width: 22px;
  height: 22px;
  transform: rotate(7deg);
}
.brand-name {
  font-size: 19px;
  letter-spacing: -0.65px;
  font-weight: 800;
}
.brand-name b {
  color: var(--coral);
}
.desktop-nav {
  display: flex;
  gap: 24px;
  align-self: stretch;
  align-items: center;
}
.nav-link {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  white-space: nowrap;
}
.nav-link:hover {
  text-decoration: none;
  color: var(--ink);
}
.nav-link.active {
  color: var(--ink);
}
.nav-link.active:after {
  position: absolute;
  content: "";
  height: 3px;
  border-radius: 3px;
  background: var(--coral);
  bottom: 0;
  left: 0;
  right: 0;
}
.nav-link svg {
  width: 17px;
  height: 17px;
}
.connection-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.handle-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8f8f7;
  padding-left: 12px;
  min-width: 0;
}
.handle-input span {
  color: #9699a2;
  font-size: 14px;
}
.connection-signal {
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: #b9bac2;
  flex-shrink: 0;
}
.connection-signal.live {
  background: #27866b;
}
.connection-signal.waiting,
.connection-signal.connecting {
  background: #c2a15c;
}
.connection-signal.error {
  background: #d56576;
}
.handle-input input {
  border: 0;
  background: transparent;
  width: 145px;
  padding-left: 5px;
  font-size: 12px;
  min-height: 38px;
}
.handle-input input:focus-visible {
  outline: none;
}
.handle-input:focus-within {
  outline: 2px solid #e95d7970;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 17px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none !important;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button.primary {
  background: var(--ink);
  color: #fff;
}
.button.primary:hover:not(:disabled) {
  background: #3d4150;
}
.button.coral {
  background: var(--coral);
  color: white;
}
.button.coral:hover:not(:disabled) {
  background: #e95e6d;
}
.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.button.ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.button.danger {
  background: #fff0f1;
  color: #b93e50;
  border-color: #f4d2d7;
}
.button.small {
  min-height: 37px;
  font-size: 12px;
  padding: 8px 12px;
}
.button svg {
  width: 16px;
  height: 16px;
}
.user-button {
  height: 36px;
  width: 36px;
  border: 1px solid #dedee3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f0f5;
  font-size: 12px;
  font-weight: 750;
}
.mobile-nav {
  display: none;
}
.demo-strip {
  background: #f0eeff;
  border-bottom: 1px solid #e3def4;
}
.demo-inner {
  max-width: 1208px;
  margin: auto;
  padding: 10px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  line-height: 1.6;
  color: #64578a;
}
.demo-label {
  font-size: 10px;
  letter-spacing: 0.8px;
  font-weight: 800;
  background: #e4def6;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.demo-inner a {
  margin-left: auto;
  font-weight: 700;
  white-space: nowrap;
}
.layout {
  max-width: 1280px;
  margin: auto;
  padding: 24px 36px 40px;
  min-height: calc(100vh - 200px);
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #92929b;
  margin-bottom: 11px;
}
.eyebrow:before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--coral);
}
.page-description {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.9;
}
.event-select {
  min-width: 225px;
  font-size: 12px;
  max-width: 330px;
}
.event-select-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.event-hero {
  padding: 20px 24px;
  background: #292d39;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.event-hero:after {
  content: none;
  width: 190px;
  height: 190px;
  border: 1px solid #ffffff0d;
  border-radius: 50%;
  position: absolute;
  right: -65px;
  top: -115px;
  pointer-events: none;
}
.event-hero .hero-overline {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.event-hero .hero-overline > span:not(.badge) {
  font-size: 10px;
  color: #a9aeba;
  letter-spacing: 1.6px;
}
.event-hero h2 {
  font-size: 23px;
  letter-spacing: -0.55px;
}
.event-period {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #b9bdc7;
  margin-top: 12px;
}
.event-period svg {
  width: 15px;
  height: 15px;
}
.event-period .timezone {
  font-size: 9px;
  letter-spacing: 0.6px;
  border: 1px solid #ffffff25;
  border-radius: 4px;
  padding: 2px 5px;
}
.hero-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-left: 28px;
  border-left: 1px solid #ffffff16;
}
.hero-rule-icon {
  width: 57px;
  height: 57px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #413440;
  color: #f49ba5;
}
.hero-rule-icon svg {
  width: 29px;
  height: 29px;
}
.hero-rule .overline {
  font-size: 10px;
  color: #b1b3bf;
  margin-bottom: 7px;
}
.hero-rule strong {
  display: block;
  font-size: 17px;
  letter-spacing: 1px;
}
.hero-rule p {
  font-size: 10px;
  margin-top: 7px;
  color: #a6aab7;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.active,
.badge.approved,
.badge.live {
  color: #27866b;
  background: #e9f5ee;
}
.event-hero .badge.active {
  color: #b6e7cb;
  background: #385548;
}
.badge.scheduled,
.badge.pending,
.badge.waiting,
.badge.connecting {
  background: #fff4df;
  color: #997028;
}
.badge.ended,
.badge.draft,
.badge.idle,
.badge.disabled {
  background: #ececf0;
  color: #6e7280;
}
.badge.rejected,
.badge.error {
  background: #ffeded;
  color: #b94e59;
}
.badge.locked {
  background: #f0eef9;
  color: #817698;
}
.badge.locked:before {
  display: none;
}
.badge.locked svg {
  width: 11px;
  height: 11px;
}
.event-hero .badge.locked {
  color: #bdb6cb;
  background: #3e3d4e;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin: 20px 0 32px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 23px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f3f3f6;
  color: #8b8c9b;
}
.stat-card:nth-child(2) .stat-icon {
  background: #fff1ee;
  color: #df9589;
}
.stat-card:nth-child(3) .stat-icon {
  background: #fff0f2;
  color: #e68593;
}
.stat-card .stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.stat-card .stat-number {
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 27px;
  line-height: 1;
  font-weight: 730;
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-unit {
  font-size: 10px;
  color: #91929c;
  font-weight: 400;
  margin-left: 6px;
  letter-spacing: 0;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 25px;
  align-items: start;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-pad {
  padding: 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-heading h2 {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 17px;
}
.section-heading h2 svg {
  width: 18px;
  height: 18px;
  color: #9494a2;
}
.section-heading .hint {
  font-size: 11px;
}
.ranking-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 23px 24px 18px;
}
.ranking-heading h2 {
  font-size: 16px;
}
.ranking-heading .muted {
  font-size: 10px;
  margin-top: 5px;
}
.ranking-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.refresh-control {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  flex-direction: row;
  font-weight: 400;
}
.refresh-control svg {
  width: 13px;
  height: 13px;
}
.refresh-control select {
  font-size: 10px;
  min-height: 31px;
  padding: 5px 21px 5px 8px;
  border-radius: 6px;
  background: #fafafa;
}
.table-scroll {
  overflow-x: auto;
}
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  table-layout: fixed;
}
.ranking-table th {
  color: #a1a2aa;
  font-size: 10px;
  font-weight: 500;
  padding: 11px 20px;
  border-top: 1px solid #f0f0ed;
  border-bottom: 1px solid #f0f0ed;
  background: #fdfdfb;
}
.ranking-table th:first-child {
  width: 74px;
  text-align: center;
  padding-right: 6px;
  padding-left: 18px;
}
.ranking-table th:last-child {
  width: 175px;
  text-align: right;
  padding-right: 26px;
}
.ranking-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #efefec;
}
.ranking-table tr:last-child td {
  border-bottom: 0;
}
.ranking-table td:first-child {
  text-align: center;
  padding-right: 6px;
  padding-left: 18px;
}
.ranking-table td:last-child {
  text-align: right;
  padding-right: 26px;
}
.ranking-table tbody tr:first-child {
  background: #fffafa;
}
.ranking-table tbody tr:hover {
  background: #fbfaf7;
}
.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 13px;
  color: #8b8c99;
  font-weight: 650;
}
.rank.top {
  border-radius: 8px;
  background: #f9edd3;
  color: #ad8543;
}
.rank.rank-2 {
  background: #edf0f5;
  color: #838c9e;
}
.rank.rank-3 {
  background: #f3e8e1;
  color: #b59176;
}
.streamer {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.avatar {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #eeeaf3;
  overflow: hidden;
  color: #9a829d;
  font-size: 12px;
  font-weight: 700;
}
.avatar img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.streamer-name {
  display: block;
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.streamer-id {
  display: block;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 10px;
  color: #9a9ca6;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.streamer-info {
  min-width: 0;
}
.points {
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.points small {
  font-size: 9px;
  color: #9e9eaa;
  letter-spacing: 0;
  font-weight: 500;
  margin-left: 5px;
}
.ranking-table tr:first-child .points {
  color: #de7986;
}
.ranking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #a0a1ab;
}
.ranking-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ranking-footer svg {
  width: 12px;
  height: 12px;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  background: #81aa93;
}
.side-stack {
  display: grid;
  gap: 18px;
}
.rules-card h3 {
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rules-card h3 svg {
  width: 16px;
  height: 16px;
  color: #a3a2af;
}
.gift-rule {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f0ed;
}
.gift-rule:last-of-type {
  border: 0;
}
.gift-mini {
  width: 35px;
  height: 35px;
  background: var(--coral-light);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--coral);
  flex-shrink: 0;
}
.gift-mini svg {
  width: 18px;
  height: 18px;
}
.gift-rule strong {
  font-size: 12px;
  display: block;
}
.gift-rule p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
.gift-rule .rule-base {
  margin-left: auto;
  white-space: nowrap;
  color: #7a7d87;
  font-size: 12px;
}
.rule-base small {
  font-size: 9px;
}
.rules-explanation {
  font-size: 10px;
  color: #8b8d98;
  line-height: 1.9;
  margin-top: 17px;
}
.multiplier-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 14px;
  padding-top: 17px;
  border-top: 1px dashed #e8e5e3;
  gap: 5px;
}
.multiplier-step {
  text-align: center;
  flex: 1;
}
.multiplier-step span {
  display: block;
  font-size: 9px;
  color: #a4a0a7;
}
.multiplier-step strong {
  display: block;
  margin-top: 7px;
  font-size: 17px;
  font-weight: 600;
  color: #cb8a94;
}
.step-arrow {
  color: #cac4ca;
  font-size: 12px;
}
.rules-note {
  background: #f8f7f5;
  border: 1px solid #eeede8;
  border-radius: 9px;
  padding: 12px;
  font-size: 10px;
  line-height: 1.8;
  color: #99939d;
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.rules-note svg {
  width: 12px;
  height: 12px;
  margin-top: 3px;
}
.join-card {
  background: #f3e8e6;
  border-color: #eddfdc;
  position: relative;
}
.join-card .join-icon {
  width: 33px;
  height: 33px;
  color: #be8387;
  margin-bottom: 17px;
}
.join-card h3 {
  font-size: 15px;
  line-height: 1.7;
}
.join-card p {
  font-size: 11px;
  line-height: 1.9;
  color: #9c8386;
  margin-top: 8px;
  margin-bottom: 19px;
}
.join-card .button {
  width: 100%;
  background: #fffaf8;
  border-color: #eadbd8;
  color: #a47c80;
  font-size: 11px;
}
.footer {
  max-width: 1208px;
  margin: 0 auto;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 10px;
  color: #a6a5ac;
  line-height: 1.8;
}
.footer-brand {
  font-family: Inter, "Segoe UI", sans-serif;
  letter-spacing: 0.2px;
  font-weight: 650;
  color: #97959f;
}
.footer-brand b {
  color: #cda4ad;
  font-weight: 500;
}
.empty-state {
  padding: 58px 22px;
  text-align: center;
}
.empty-state .empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #f5f3f5;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  color: #b8aab5;
}
.empty-state h3 {
  font-size: 15px;
  margin-bottom: 9px;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 430px;
  margin: 0 auto 18px;
}
.empty-state.compact {
  padding: 30px 14px;
}
.empty-state.compact .empty-icon {
  display: none;
}
.error-panel {
  background: #fff4f2;
  border: 1px solid #efd6d1;
  border-radius: 12px;
  padding: 20px;
  line-height: 1.8;
  font-size: 13px;
  color: #a85850;
}
.error-panel .button {
  margin-top: 15px;
}
.skeleton {
  border-radius: 8px;
  background: linear-gradient(100deg, #f0eeee 20%, #f8f7f6 45%, #f0eeee 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
.skeleton-row {
  height: 70px;
  margin: 15px 24px;
}
.skeleton-line {
  height: 18px;
  width: 200px;
  margin: 20px 24px;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  line-height: 1.9;
  padding: 17px 20px;
  background: #f2f0f7;
  border: 1px solid #e7e1ef;
  border-radius: 12px;
  color: #7e748e;
}
.notice svg {
  margin-top: 2px;
  width: 17px;
  height: 17px;
}
.notice.success {
  background: #edf6f0;
  border-color: #deece2;
  color: #58856a;
}
.notice.warning {
  background: #fff7e8;
  border-color: #f1e7d4;
  color: #947c4d;
}
.notice strong {
  font-weight: 650;
}
.flow-steps {
  display: flex;
  gap: 0;
  counter-reset: steps;
  margin: 26px 0;
}
.flow-step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #a5a2ac;
  flex: 1;
}
.flow-step:before {
  counter-increment: steps;
  content: counter(steps);
  width: 25px;
  height: 25px;
  border: 1px solid #dcd9df;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 10px;
}
.flow-step.done:before {
  background: #e7efe9;
  border-color: #e7efe9;
  color: #69937b;
}
.flow-step.current {
  color: var(--ink);
  font-weight: 700;
}
.flow-step.current:before {
  background: var(--coral);
  border-color: var(--coral);
  color: white;
}
.form-stack {
  display: grid;
  gap: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.field-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.field-row label {
  flex: 1;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}
.connection-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.connection-summary .streamer-name {
  font-size: 15px;
}
.connection-summary .avatar {
  height: 45px;
  width: 45px;
}
.connection-detail {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 11px;
  padding: 20px 8px 0;
  min-height: 210px;
  overflow-x: auto;
}
.bar-column {
  flex: 1;
  min-width: 30px;
  max-width: 100px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.bar-track {
  height: 142px;
  display: flex;
  align-items: flex-end;
  width: min(100%, 43px);
}
.bar {
  min-height: 2px;
  width: 100%;
  background: #f1b7bd;
  border-radius: 6px 6px 0 0;
}
.bar-column:last-child .bar {
  background: var(--coral);
}
.bar-value {
  font-size: 10px;
  font-family: Inter, "Segoe UI", sans-serif;
  color: #a88a94;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.bar-label {
  font-size: 9px;
  color: #a6a2ab;
  margin-top: 11px;
  white-space: nowrap;
}
.activity-list {
  display: grid;
  gap: 0;
}
.activity-item {
  padding: 14px 0;
  border-bottom: 1px solid #f0efec;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  font-size: 12px;
  line-height: 1.7;
}
.activity-item:last-child {
  border: 0;
}
.activity-item small {
  font-size: 10px;
  color: var(--muted);
}
.activity-item strong {
  font-size: 12px;
  font-weight: 600;
}
.login-shell {
  max-width: 450px;
  margin: 22px auto 55px;
}
.login-card {
  padding: 34px;
}
.login-card .brand-mark {
  margin: 0 auto 24px;
  width: 42px;
  height: 42px;
}
.login-card h1 {
  font-size: 25px;
  text-align: center;
  letter-spacing: -0.7px;
}
.login-card > p {
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 25px;
}
.login-card .button.full {
  width: 100%;
}
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  color: #aaa4ad;
  margin: 25px 0;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.demo-login {
  margin-top: 20px;
  padding: 20px;
  border: 1px dashed #d6cbe9;
  border-radius: 12px;
  background: #f8f5fd;
}
.demo-login h3 {
  font-size: 12px;
  color: #857393;
}
.demo-login p {
  font-size: 11px;
  line-height: 1.8;
  color: #9a8ca7;
  margin: 9px 0 15px;
}
.demo-login .button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.demo-login .button {
  padding-left: 10px;
  padding-right: 10px;
  font-size: 11px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.event-list {
  display: grid;
  gap: 8px;
}
.event-list-button {
  text-align: left;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  padding: 14px;
  width: 100%;
  display: block;
}
.event-list-button:hover {
  background: #f7f6f4;
}
.event-list-button.selected {
  background: #fff0f1;
  border-color: #f7d8dc;
}
.event-list-button strong {
  display: block;
  font-size: 12px;
  margin: 8px 0;
  line-height: 1.65;
}
.event-list-button small {
  font-size: 10px;
  color: var(--muted);
}
.admin-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.admin-tab {
  background: none;
  border: 0;
  min-height: 44px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.admin-tab.active {
  border-color: var(--coral);
  color: var(--ink);
  font-weight: 650;
}
.gift-fields {
  display: grid;
  grid-template-columns: 1fr 1.25fr 0.75fr 1.1fr auto;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: end;
}
.gift-fields label {
  font-size: 10px;
  gap: 6px;
  min-width: 0;
}
.gift-fields input,
.gift-fields select {
  width: 100%;
  font-size: 12px;
  padding: 10px;
  min-height: 41px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 35px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: #f6f4f3;
  color: #a5a0a3;
}
.icon-button svg {
  width: 16px;
  height: 16px;
}
.icon-button:hover {
  background: #fdebef;
  color: #b47782;
}
.rule-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 2px;
}
.rule-editor-heading h3 {
  font-size: 13px;
}
.form-message {
  font-size: 12px;
  line-height: 1.8;
  color: #b54e60;
}
.snapshot-hash {
  display: block;
  word-break: break-all;
  margin-top: 7px;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #9a90a8;
}
.binding-request {
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
}
.binding-request:first-child {
  padding-top: 0;
}
.binding-request:last-child {
  border: 0;
  padding-bottom: 0;
}
.binding-request-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.binding-request-head h3 {
  font-size: 14px;
}
.binding-request-head p {
  font-size: 11px;
  margin-top: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.binding-request details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 15px;
}
.binding-request summary {
  cursor: pointer;
  font-size: 12px;
  color: #8c7c92;
  font-weight: 650;
}
.binding-request details[open] summary {
  margin-bottom: 20px;
}
.checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.8;
}
.checkbox-label input {
  margin: 2px 0 0;
  flex-shrink: 0;
}
.audit-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 16px;
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.audit-row:last-child {
  border: 0;
}
.audit-row time {
  color: var(--muted);
}
.audit-row strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 14px 22px;
  color: white;
  background: #313542;
  border-radius: 11px;
  box-shadow: 0 8px 40px #25273825;
  z-index: 100;
  font-size: 12px;
  line-height: 1.8;
}
.toast.error {
  background: #b45c68;
}
.confirm-dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 28px;
  color: var(--ink);
}
.confirm-dialog::backdrop {
  background: #25293665;
  backdrop-filter: blur(3px);
}
.confirm-dialog h2 {
  font-size: 18px;
}
.confirm-dialog p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 17px 0 25px;
}
.confirm-dialog .button-row {
  justify-content: flex-end;
}
.space-top {
  margin-top: 22px;
}
.space-bottom {
  margin-bottom: 22px;
}
.break-anywhere {
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

@media (min-width: 1400px) {
  .layout {
    padding-top: 47px;
  }
  .event-hero {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .ranking-table td {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
@media (max-width: 1100px) {
  .header-inner {
    padding: 0 25px;
    gap: 21px;
  }
  .desktop-nav {
    gap: 18px;
  }
  .nav-link svg {
    display: none;
  }
  .brand-name {
    font-size: 17px;
  }
  .connection-form {
    gap: 5px;
  }
  .handle-input input {
    width: 110px;
  }
  .header-login {
    display: none;
  }
  .layout {
    padding: 32px 25px 40px;
  }
  .demo-inner,
  .footer {
    margin-left: 25px;
    margin-right: 25px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 20px;
  }
  .card-pad {
    padding: 21px;
  }
  .hero-rule {
    padding-left: 22px;
    gap: 13px;
  }
  .stat-card {
    padding: 19px 18px;
    gap: 13px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .gift-fields {
    grid-template-columns: 1fr 1fr 0.75fr 1fr auto;
  }
  .gift-fields input,
  .gift-fields select {
    padding-left: 7px;
    padding-right: 7px;
  }
}
@media (max-width: 880px) {
  .header-inner {
    min-height: 70px;
    gap: 18px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: flex;
    gap: 24px;
    padding: 0 25px;
    border-top: 1px solid #f1f0ee;
    height: 43px;
  }
  .nav-link {
    font-size: 11px;
  }
  .nav-link svg {
    display: block;
    width: 15px;
    height: 15px;
  }
  .connection-form {
    margin-left: auto;
  }
  .handle-input input {
    width: 125px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
  }
  .hero-rule {
    border-left: 0;
    padding-left: 10px;
  }
  .hero-rule-icon {
    display: none;
  }
  .event-hero h2 {
    font-size: 20px;
  }
  .stats-grid {
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 25px;
  }
  .stat-card {
    padding: 18px 15px;
    gap: 11px;
  }
  .stat-icon {
    width: 35px;
    height: 35px;
    border-radius: 9px;
  }
  .stat-icon svg {
    height: 17px;
    width: 17px;
  }
  .stat-card .stat-number {
    font-size: 24px;
  }
  .stat-card .stat-label {
    font-size: 10px;
  }
  .ranking-table th:first-child {
    width: 53px;
    padding-left: 9px;
  }
  .ranking-table td:first-child {
    padding-left: 9px;
  }
  .ranking-table th:last-child {
    width: 132px;
    padding-right: 18px;
  }
  .ranking-table td:last-child {
    padding-right: 18px;
  }
  .ranking-table td {
    padding-left: 11px;
    padding-right: 11px;
  }
  .ranking-heading {
    padding-left: 20px;
    padding-right: 20px;
  }
  .ranking-heading .muted {
    display: none;
  }
  .streamer {
    gap: 8px;
  }
  .avatar {
    width: 34px;
    height: 34px;
  }
  .points {
    font-size: 16px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .admin-grid {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
  }
  .gift-fields {
    grid-template-columns: 1fr 1fr 35px;
    gap: 12px;
  }
  .gift-fields label:nth-child(3) {
    grid-row: 2;
    grid-column: 1;
  }
  .gift-fields label:nth-child(4) {
    grid-row: 2;
    grid-column: 2;
  }
  .gift-fields > .icon-button {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }
}
@media (max-width: 700px) {
  h1 {
    font-size: 28px;
  }
  .layout {
    padding: 28px 20px 34px;
  }
  .header-inner {
    padding: 0 20px;
  }
  .brand-name {
    font-size: 16px;
  }
  .brand-mark {
    width: 29px;
    height: 29px;
    border-radius: 9px;
  }
  .brand-mark svg {
    width: 19px;
    height: 19px;
  }
  .brand {
    gap: 8px;
  }
  .handle-input input {
    width: 105px;
  }
  .connection-form .button.small {
    font-size: 10px;
    padding: 8px;
    gap: 5px;
    min-height: 36px;
  }
  .connection-form .button.small svg {
    width: 14px;
    height: 14px;
  }
  .user-button {
    width: 31px;
    height: 31px;
    font-size: 10px;
  }
  .header-inner {
    gap: 11px;
  }
  .mobile-nav {
    padding: 0 20px;
    gap: 24px;
  }
  .demo-inner {
    margin: 0 20px;
    font-size: 10px;
    padding: 9px 0;
    gap: 7px;
  }
  .demo-inner a {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 23px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 8px;
    letter-spacing: 1.8px;
  }
  .page-description {
    font-size: 11px;
    line-height: 1.8;
    max-width: 320px;
  }
  .event-select {
    font-size: 11px;
    min-width: 175px;
    max-width: 200px;
    padding-left: 10px;
  }
  .event-select-label {
    font-size: 9px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .side-stack {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 15px;
  }
  .event-hero {
    padding: 23px;
    gap: 20px;
  }
  .hero-rule {
    display: none;
  }
  .event-hero h2 {
    font-size: 21px;
  }
  .event-period {
    font-size: 11px;
  }
  .stats-grid {
    gap: 10px;
    margin: 15px 0 23px;
  }
  .stat-card {
    padding: 16px 14px;
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
  }
  .stat-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 2px;
  }
  .stat-card .stat-label {
    font-size: 9px;
    margin-bottom: 9px;
  }
  .stat-card .stat-number {
    font-size: 25px;
  }
  .stat-card .stat-unit {
    font-size: 9px;
    margin-left: 4px;
  }
  .ranking-table th:first-child {
    width: 62px;
    padding-left: 14px;
  }
  .ranking-table td:first-child {
    padding-left: 14px;
  }
  .ranking-table th:last-child {
    width: 170px;
    padding-right: 25px;
  }
  .ranking-table td:last-child {
    padding-right: 25px;
  }
  .ranking-table td {
    padding: 17px 14px;
  }
  .streamer {
    gap: 11px;
  }
  .streamer-name {
    font-size: 12px;
  }
  .avatar {
    width: 38px;
    height: 38px;
  }
  .points {
    font-size: 19px;
  }
  .ranking-heading {
    padding: 21px 22px 17px;
  }
  .ranking-footer {
    padding: 14px 22px;
  }
  .card-pad {
    padding: 22px;
  }
  .footer {
    margin: 0 20px;
    align-items: flex-start;
    font-size: 9px;
  }
  .footer > p {
    max-width: 240px;
    text-align: right;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-sidebar .event-list {
    display: flex;
    overflow-x: auto;
    gap: 9px;
    margin-top: 14px;
  }
  .admin-sidebar .event-list-button {
    min-width: 185px;
    width: 185px;
    border-color: var(--line);
  }
  .admin-sidebar .card-pad {
    padding: 16px;
  }
  .admin-sidebar .section-heading {
    margin-bottom: 10px;
  }
  .admin-tabs {
    gap: 20px;
  }
  .form-grid {
    gap: 15px;
  }
  .audit-row {
    grid-template-columns: 115px 1fr;
    gap: 10px;
  }
  .flow-step {
    font-size: 10px;
    gap: 6px;
  }
  .flow-step:before {
    width: 22px;
    height: 22px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .button {
    font-size: 12px;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .login-shell {
    margin-top: 10px;
  }
  .login-card {
    padding: 28px;
  }
  .login-card h1 {
    font-size: 23px;
  }
}
@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
    min-height: 66px;
    gap: 8px;
  }
  .brand-name {
    font-size: 14px;
    letter-spacing: -0.6px;
  }
  .brand-mark {
    width: 27px;
    height: 27px;
  }
  .brand {
    gap: 6px;
  }
  .connection-form {
    gap: 5px;
  }
  .handle-input {
    padding-left: 7px;
  }
  .handle-input span {
    font-size: 11px;
  }
  .handle-input input {
    width: 77px;
    min-height: 33px;
    padding: 7px 5px;
    font-size: 10px;
  }
  .connection-form .button.small {
    min-height: 33px;
    padding: 7px 8px;
    font-size: 10px;
  }
  .connection-form .button.small svg {
    display: none;
  }
  .user-button {
    display: none;
  }
  .mobile-nav {
    padding: 0 18px;
    gap: 14px;
    justify-content: flex-start;
    height: 42px;
  }
  .nav-link {
    font-size: 10px;
    gap: 5px;
  }
  .nav-link svg {
    width: 14px;
    height: 14px;
  }
  .demo-inner {
    margin: 0 18px;
    align-items: flex-start;
    font-size: 9px;
  }
  .demo-label {
    font-size: 8px;
    padding: 2px 5px;
    margin-top: 1px;
  }
  .layout {
    padding: 27px 18px 32px;
  }
  .page-heading {
    display: block;
    margin-bottom: 20px;
  }
  .page-heading .event-picker {
    margin-top: 19px;
  }
  .page-heading .event-picker label {
    gap: 6px;
  }
  .page-heading .event-select-label {
    display: none;
  }
  .page-heading .event-select {
    max-width: none;
    width: 100%;
    min-height: 41px;
    font-size: 12px;
    background: #fff;
  }
  .page-heading > .button {
    margin-top: 15px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .page-description {
    max-width: none;
    font-size: 11px;
    margin-top: 9px;
  }
  h1 {
    font-size: 27px;
    letter-spacing: -0.8px;
  }
  .event-hero {
    padding: 22px 20px;
    border-radius: 14px;
  }
  .event-hero h2 {
    font-size: 19px;
    line-height: 1.6;
  }
  .event-hero .hero-overline {
    margin-bottom: 9px;
  }
  .event-hero .hero-overline > span:last-child {
    font-size: 8px;
  }
  .event-period {
    font-size: 10px;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.7;
    margin-top: 9px;
  }
  .event-period .timezone {
    font-size: 8px;
  }
  .badge {
    font-size: 9px;
    padding: 4px 7px;
  }
  .stats-grid {
    gap: 8px;
    margin: 13px 0 22px;
  }
  .stat-card {
    padding: 13px 11px;
    border-radius: 11px;
  }
  .stat-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }
  .stat-icon svg {
    width: 14px;
    height: 14px;
  }
  .stat-card .stat-label {
    font-size: 8px;
    letter-spacing: -0.3px;
  }
  .stat-card .stat-number {
    font-size: 23px;
    letter-spacing: -0.5px;
  }
  .stat-card .stat-unit {
    font-size: 8px;
    margin-left: 2px;
  }
  .ranking-heading {
    padding: 19px 16px 15px;
    gap: 9px;
  }
  .ranking-heading h2 {
    font-size: 14px;
  }
  .refresh-control {
    font-size: 9px;
    gap: 4px;
  }
  .refresh-control svg {
    display: none;
  }
  .refresh-control select {
    font-size: 9px;
    min-height: 28px;
    padding: 4px 3px 4px 5px;
  }
  .ranking-table th {
    font-size: 9px;
    padding: 10px 9px;
  }
  .ranking-table th:first-child {
    width: 43px;
    padding-left: 8px;
    padding-right: 2px;
  }
  .ranking-table td:first-child {
    padding-left: 8px;
    padding-right: 2px;
  }
  .ranking-table th:last-child {
    width: 122px;
    padding-right: 15px;
  }
  .ranking-table td:last-child {
    padding-right: 15px;
  }
  .ranking-table td {
    padding: 16px 9px;
  }
  .rank {
    font-size: 12px;
    width: 23px;
    height: 23px;
  }
  .rank.top {
    border-radius: 7px;
  }
  .streamer {
    gap: 8px;
  }
  .avatar {
    width: 33px;
    height: 33px;
    font-size: 10px;
  }
  .streamer-name {
    font-size: 11px;
  }
  .streamer-id {
    font-size: 9px;
    margin-top: 4px;
  }
  .points {
    font-size: 17px;
  }
  .points small {
    font-size: 8px;
    margin-left: 3px;
  }
  .ranking-footer {
    padding: 13px 16px;
    font-size: 8px;
    gap: 6px;
  }
  .ranking-footer svg {
    width: 10px;
    height: 10px;
  }
  .side-stack {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .rules-card .gift-rule {
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .card-pad {
    padding: 21px;
  }
  .join-card .join-icon {
    position: absolute;
    right: 22px;
    top: 25px;
    width: 42px;
    height: 42px;
    opacity: 0.55;
  }
  .join-card p {
    max-width: 260px;
    font-size: 11px;
  }
  .join-card .button {
    width: auto;
    padding-left: 22px;
    padding-right: 22px;
  }
  .join-card h3 {
    font-size: 15px;
  }
  .join-card p {
    margin-top: 6px;
    margin-bottom: 16px;
  }
  .rules-card h3 {
    margin-bottom: 8px;
  }
  .rules-explanation {
    font-size: 11px;
  }
  .gift-rule strong {
    font-size: 12px;
  }
  .gift-rule p {
    font-size: 10px;
  }
  .rules-note {
    font-size: 10px;
  }
  .multiplier-steps {
    margin-top: 15px;
  }
  .footer {
    margin: 0 18px;
    gap: 12px;
    flex-direction: column;
    padding-top: 18px;
    font-size: 9px;
  }
  .footer > p {
    max-width: none;
    text-align: left;
  }
  .footer-brand {
    font-size: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .form-actions {
    gap: 8px;
  }
  .form-actions .hint {
    flex-basis: 100%;
  }
  .field-row {
    flex-direction: column;
    align-items: stretch;
  }
  .flow-steps {
    gap: 8px;
    margin: 23px 0;
  }
  .flow-step {
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
    font-size: 9px;
  }
  .notice {
    padding: 15px;
    font-size: 11px;
    gap: 9px;
  }
  .notice svg {
    width: 15px;
    height: 15px;
  }
  .connection-summary .badge {
    margin-top: 3px;
  }
  .audit-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .login-card {
    padding: 27px 23px;
  }
  .login-card h1 {
    font-size: 22px;
  }
  .login-shell {
    margin-bottom: 30px;
  }
  .gift-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 29px;
    gap: 9px;
  }
  .gift-fields .icon-button {
    width: 29px;
  }
  .gift-fields input,
  .gift-fields select {
    font-size: 11px;
  }
  .binding-request-head {
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .form-stack {
    gap: 18px;
  }
  .button-row .button {
    white-space: normal;
  }
  .bar-chart {
    gap: 7px;
  }
  .bar-column {
    min-width: 26px;
  }
  .empty-state {
    padding: 43px 20px;
  }
  .empty-state h3 {
    font-size: 14px;
  }
  .empty-state p {
    font-size: 11px;
  }
  .card {
    border-radius: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.event-hero { display: block; padding: 18px 22px; }
.event-overview { min-width: 0; }
.event-hero h2 { margin: 8px 0; font-size: 24px; }
.event-rules { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ffffff26; font-size: 13px; }
.event-rules summary { cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.event-rules summary span { margin-left: 10px; font-size: 12px; font-weight: 400; color: #d7dbe7; }
.event-rule-list { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 14px; }
.event-rule-list > div { display: grid; gap: 4px; }
.event-rule-list span, .event-rules p { color: #d7dbe7; font-size: 12px; line-height: 1.7; }
.event-rules p { margin: 10px 0 0; }
.local-strip { background: #eaf5f0; color: #355e50; padding: 7px 24px; font-size: 12px; }
.header-account { margin-left: auto; min-width: 0; width: 278px; flex-shrink: 1; }
.header-account .connection-form { gap: 6px; margin: 0; }
.header-account .handle-input { flex: 1; }
.header-account .handle-input input { width: 100%; min-width: 0; }
.header-profile { display: flex; flex: 0 0 30px; }
.header-profile .avatar { width: 30px; height: 30px; font-size: 10px; }
.header-connection-message { display: block; margin: 3px 0 0 36px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; color: var(--muted); }
.logout-button { flex: 0 0 34px; width: 34px; height: 34px; }
.logout-button svg { width: 20px; height: 20px; }
.dashboard-connection-note { margin: -8px 0 20px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.dashboard-connection-note span { color: #745849; }
.dashboard-main { min-width: 0; }
.dm-request-row { padding: 18px 0; border-top: 1px solid var(--line); }
.dm-request-row .section-heading { flex-wrap: wrap; gap: 10px; }
.user-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.user-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.user-row > .avatar { width: 38px; height: 38px; flex: 0 0 38px; }
.user-identity { min-width: 0; }
.user-identity strong, .user-identity p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-identity strong { font-size: 12px; }
.user-identity p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
@media (max-width: 1050px) { .user-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .user-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px) { .user-list { grid-template-columns: 1fr; } }
.dashboard-account-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -8px 0 14px; font-size: 11px; color: var(--muted); }
.verified-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; color: #237a55; background: #eaf8f1; font-weight: 700; }
.verified-chip svg { width: 14px; height: 14px; }
.dashboard-account-id { color: var(--ink); font-weight: 650; }
.dashboard-account-status .button { min-height: 30px; padding: 5px 9px; }
.dashboard-event-intro { margin-bottom: 18px; }
.dashboard-event-label { margin: 0 0 7px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.dashboard-event-intro .event-hero { margin-bottom: 0; }
.dm-issued { max-width: 420px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.dm-issued input { font-family: monospace; letter-spacing: .15em; }
.dm-issued .button-row { margin-top: 10px; }
@media (max-width: 600px) {
  .header-inner { gap: 8px; padding: 8px 14px; }
  .header-inner .brand-name { display: none; }
  .header-account { width: auto; flex: 1; }
  .header-account .connection-form { gap: 5px; }
  .header-account .handle-input { padding-left: 6px; }
  .header-account .handle-input input { font-size: 11px; padding: 7px 4px; }
  .header-account .button.small { padding: 7px 9px; }
  .header-profile { flex-basis: 27px; }
  .header-profile .avatar { width: 27px; height: 27px; }
  .header-connection-message { margin-left: 32px; font-size: 9px; }
  .logout-button { flex-basis: 30px; width: 30px; }
}
.gift-fields { grid-template-columns: minmax(160px, 1.7fr) minmax(75px, .7fr) minmax(105px, 1fr) 35px; align-items: end; }
.admin-grid > section.card { overflow: visible; }
.gift-fields > label:nth-child(n), .gift-fields > .icon-button { grid-column: auto; grid-row: auto; }
.gift-picker { position: relative; min-width: 0; }
.gift-field-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.gift-picker-trigger { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 41px; padding: 5px 9px; text-align: left; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; }
.gift-picker-trigger[aria-expanded="true"] { border-color: var(--coral); }
.gift-choice-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-chevron { margin-left: auto; color: var(--muted); }
.gift-thumb { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; background: #f8f7f4; border-radius: 5px; overflow: hidden; }
.gift-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gift-picker-panel { position: absolute; top: calc(100% + 5px); left: 0; z-index: 30; width: max(100%, 260px); max-width: calc(100vw - 48px); padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 10px 30px #20232d26; }
.gift-picker-panel[hidden] { display: none; }
.gift-picker-search { width: 100%; margin-bottom: 6px; }
.gift-picker-results { max-height: 230px; overflow-y: auto; overscroll-behavior: contain; }
.gift-picker-option { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; border-radius: 6px; padding: 6px; text-align: left; background: #fff; font: inherit; font-size: 12px; color: var(--ink); }
.gift-picker-option > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.gift-picker-option:hover, .gift-picker-option:focus-visible, .gift-picker-option[aria-selected="true"] { background: #fcecef; outline: 1px solid #edb3be; outline-offset: -1px; }
.gift-picker-option:disabled { opacity: .5; }
.gift-picker-option small { display: block; color: var(--muted); font-size: 10px; }
.gift-picker-count { margin: 7px 2px 0; font-size: 10px; color: var(--muted); }
@media (max-width: 1100px) {
  .gift-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 35px; gap: 9px; }
  .gift-fields > .gift-picker { grid-column: 1 / 3; }
  .gift-fields > .icon-button { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .gift-fields > label { grid-row: 2; }
}
@media (max-width: 600px) {
  .event-hero { padding: 16px; }
  .event-hero h2 { font-size: 20px; }
  .event-rules summary span { display: block; margin: 5px 0 0; }
}
