body:has(.host-shell) {
  color-scheme: light;
  background: #edf0f7;
  color: #303134;
  font-size: 14px;
}

#app:has(.host-shell) {
  max-width: none;
  margin: 0;
  padding: 0;
}

.host-shell {
  --host-accent: #48aaf0;
  --host-header-height: 70px;
  --host-line: #e2e5ea;
  --host-shadow: 0 4px 16px #343e8226;
  min-height: 100vh;
}

.host-shell a {
  color: inherit;
  text-decoration: none;
}

.host-shell a:hover {
  color: #347fcb;
}

.host-shell :focus-visible {
  outline-color: #347fcb;
}

.host-shell .host-header {
  min-height: var(--host-header-height);
  padding: 0 20px;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 4px #25273530;
}

.host-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.045em;
  font-weight: 900;
}

.host-header .host-brand {
  color: #f0520a;
}

.host-brand .host-icon {
  width: 44px;
  height: 44px;
  color: #474266;
  transform: rotate(-25deg);
}

.host-header nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.host-header nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.host-header nav a .host-icon {
  width: 13px;
  height: 13px;
}

.host-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.host-user .host-icon {
  width: 44px;
  height: 44px;
  padding: 8px;
  color: #9a9da2;
  background: #f6f7f9;
  border-radius: 50%;
}

.host-content {
  margin: 15px 14px 0;
  background: #fcfcfd;
}

.host-box {
  background: #fff;
  border: 1px solid #edeef2;
  border-radius: 10px;
  box-shadow: var(--host-shadow);
}

.host-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(67%, 890px);
  text-align: center;
}

.host-tab-bar {
  border-bottom: 1px solid var(--host-line);
  padding: 0 14px;
}

.host-tabs a {
  padding: 20px 8px 18px;
  border-bottom: 2px solid transparent;
  color: #565a62;
}

.host-tabs a[aria-current="page"] {
  color: #247fba;
  border-color: var(--host-accent);
}

.host-search {
  display: flex;
  align-items: stretch;
  padding: 22px 16px 12px;
  gap: 12px;
}

.host-shell .host-search input {
  max-width: 230px;
  min-height: 34px;
  padding-block: 5px;
}

.host-shell .host-search button {
  color: #103950;
  padding: 5px 12px;
}

.host-shell input,
.host-shell select,
.host-shell textarea {
  background: #fff;
  color: #303134;
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  font: inherit;
  padding: 9px 12px;
  min-height: 38px;
}

.host-shell label {
  color: #45494e;
}

.host-shell input[type="checkbox"] {
  min-height: auto;
  accent-color: #377abb;
}

.host-shell button,
.host-shell .host-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  color: #152e4a;
  background: var(--host-accent);
  border: 1px solid var(--host-accent);
  border-radius: 3px;
  font-weight: 550;
  padding: 8px 14px;
}

.host-shell button.plain,
.host-shell .host-button.plain {
  color: #356da4;
  background: #fff;
  border-color: #dce6ee;
}

.host-shell .danger {
  color: #ab3636;
  border-color: #ebcccc;
}

.host-icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.host-search .host-icon {
  width: 15px;
  height: 15px;
}

.host-timeline {
  position: relative;
  padding: 0 0 38px 20px;
  margin: 20px 35px 0 17px;
  border-left: 1px solid var(--host-accent);
}

.host-timeline::before {
  content: "";
  position: absolute;
  top: 3px;
  left: -7px;
  width: 12px;
  height: 12px;
  background: var(--host-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #e5f2ff;
}

.host-event-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: #444851;
}

.host-event-label span {
  color: #3f6590;
  background: #e4f1fd;
  padding: 1px 7px;
  border-radius: 2px;
}

.host-event {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 254px;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  box-shadow: var(--host-shadow);
}

.host-event-blue {
  background: #43a8eb;
  color: #fff;
  padding: 12px 26px 22px;
  text-shadow: 0 1px 2px #134368b0;
}

.host-event-blue h1 {
  margin: 0 0 22px;
  font-size: 16px;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.host-event-blue .host-event-admission:hover {
  color: #fff;
  text-decoration: underline;
}

.host-event-status {
  display: flex;
  align-items: center;
  margin: 23px 0 13px;
  gap: 6px;
}

.host-event-status strong {
  padding: 2px 6px;
  background: #fee0a5;
  color: #5a3406;
  text-shadow: none;
  border-radius: 3px;
  font-weight: 480;
}

.host-event-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 160px));
  justify-content: space-around;
  gap: 14px;
  margin: 0 6px;
}

.host-event-stats a {
  display: grid;
  gap: 7px;
  background: #ffffff18;
  box-shadow: 0 2px 7px #25598a2d;
  border-radius: 3px;
  padding: 10px 12px;
}

.host-event-stats a:hover {
  background: #ffffff40;
  color: #15334c;
  text-shadow: none;
}

.host-event-stats strong {
  font-size: 29px;
  font-variant-numeric: tabular-nums;
}

.host-event-stats small {
  margin-left: 4px;
  font-weight: 500;
  font-size: 12px;
}

.host-event-stats span small {
  display: inline-block;
  margin: 2px 0 0 4px;
  padding: 1px 4px;
  border: 1px solid currentColor;
  border-radius: 2px;
  white-space: nowrap;
}

.host-event-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  gap: 5px 12px;
  padding: 22px 36px;
  font-size: 16px;
}

.host-event-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 93px;
  border-radius: 6px;
  text-align: center;
}

.host-event-links a:last-child {
  color: #387dc0;
}

.host-event-links a:hover {
  background: #eff7ff;
}

.host-shell .host-footer {
  display: block;
  padding: 42px 16px;
  text-align: center;
  color: #626974;
}

.host-empty {
  padding: 28px 0;
}

.host-login {
  width: min(420px, calc(100% - 32px));
  margin: 60px auto 0;
  padding: 30px;
}

.host-login h1 {
  margin: 0 0 20px;
  font-size: 24px;
}

.host-detail {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  min-height: calc(100vh - var(--host-header-height));
}

.host-detail.host-has-subnav {
  grid-template-columns: 90px 110px minmax(0, 1fr);
}

.host-shell:has(.host-detail) .host-header {
  position: sticky;
  top: 0;
  z-index: 2;
}

.host-detail-nav,
.host-setting-nav {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--host-header-height);
  align-self: start;
  height: calc(100dvh - var(--host-header-height));
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--host-line);
}

.host-detail-nav a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  padding: 9px 2px;
  border-right: 3px solid transparent;
  font-size: 12px;
  text-align: center;
}

.host-nav-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #66aafa;
  color: #fff;
}

.host-nav-icon .host-icon {
  width: 28px;
  height: 28px;
}

.host-nav-info .host-nav-icon { background: #ffa54a; }
.host-nav-settings .host-nav-icon { background: #f380aa; }
.host-nav-data .host-nav-icon { background: #61c9a2; }
.host-nav-qr .host-nav-icon { background: #9a8cf6; }

.host-detail-nav a:hover,
.host-detail-nav a[aria-current="page"],
.host-setting-nav a:hover,
.host-setting-nav a[aria-current="page"] {
  background: #edf6ff;
  color: #2b73be;
}

.host-detail-nav a[aria-current="page"] {
  border-color: #619fe3;
}

.host-detail-overview .host-nav-overview .host-nav-icon,
.host-detail-settings .host-nav-overview .host-nav-icon { background: #00b9df; }
.host-detail-overview .host-nav-info .host-nav-icon,
.host-detail-settings .host-nav-info .host-nav-icon { background: #ff9406; }
.host-detail-overview .host-nav-settings .host-nav-icon,
.host-detail-settings .host-nav-settings .host-nav-icon { background: #fb8999; }
.host-detail-overview .host-nav-data .host-nav-icon,
.host-detail-settings .host-nav-data .host-nav-icon { background: #2bd284; }
.host-detail-overview .host-nav-qr .host-nav-icon,
.host-detail-settings .host-nav-qr .host-nav-icon { background: #c64bf0; }

.host-setting-nav > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 11px 13px 14px;
  border-bottom: 1px solid #eef0f4;
}

.host-setting-nav .host-icon {
  width: 13px;
  height: 13px;
}

.host-setting-nav > a .host-icon { transform: rotate(-90deg); }
.host-setting-nav > a.host-subnav-parent .host-icon,
.host-setting-nav > a[href="#games"][aria-current="page"] .host-icon { transform: none; }

.host-setting-nav .host-subnav-parent {
  color: #347fcb;
}

.host-subnav-games {
  background: #f9fafc;
}

.host-subnav-games a {
  display: block;
  padding: 10px 10px 10px 22px;
  font-size: 13px;
  border-right: 3px solid transparent;
}

.host-subnav-games a[aria-current="page"] {
  border-color: #619fe3;
}

.host-detail-content {
  align-self: start;
  min-height: calc(100dvh - var(--host-header-height) - 30px);
  min-width: 0;
  padding: 0 20px 28px;
  margin: 15px;
  box-shadow: 0 2px 10px #343e8212;
}

.host-shell .host-detail-title {
  min-height: 48px;
  margin: 0 -20px 16px;
  padding: 12px 18px;
  border-color: #edf0f5;
}

.host-detail-content h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.host-detail-content h2 {
  font-size: 17px;
  font-weight: 580;
}

.host-shell p,
.host-shell .muted {
  color: #626974;
}

.host-segments {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.host-segments a,
.host-shell .host-segments button {
  border: 1px solid #dce2eb;
  border-radius: 0;
  padding: 8px 18px;
  color: #454b55;
  background: #f9fafb;
  font-weight: 500;
  white-space: nowrap;
}

.host-segments > :first-child { border-radius: 4px 0 0 4px; }
.host-segments > :last-child { border-radius: 0 4px 4px 0; }

.host-segments > * + * { margin-left: -1px; }

.host-segments a[aria-current="page"],
.host-shell .host-segments button[aria-pressed="true"] {
  background: #397cbf;
  border-color: #397cbf;
  color: #fff;
}

.host-form {
  max-width: 620px;
}

.host-settings-form {
  gap: 12px;
}

.host-setting-box {
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 5px;
}

.host-setting-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 11px 15px;
  background: #f7f8fa;
  list-style: none;
  font-weight: 600;
  cursor: pointer;
}

.host-setting-box summary::-webkit-details-marker { display: none; }

.host-setting-box summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 4px;
  background: #509de9;
}

.host-setting-box summary .host-icon {
  width: 16px;
  height: 16px;
  transform: rotate(-90deg);
}

.host-setting-box[open] summary .host-icon { transform: none; }

.host-setting-fields {
  display: grid;
  gap: 12px;
  max-width: 800px;
  padding: 14px 18px 18px;
}

.host-setting-fields p { margin: 0; }

.host-setting-fields input,
.host-round-fields input:not([type="checkbox"]),
.host-round-fields textarea {
  background: #f7f8fa;
}

.host-setting-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.host-setting-links a { color: #326dab; }

.host-settings-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  margin: 0 -20px -28px;
  padding: 12px;
  border-top: 1px solid #e9ecf1;
  background: #f3f4f7;
}

.host-detail-settings .host-detail-content,
.host-detail-overview .host-detail-content {
  background: #fcfcfd;
  box-shadow: 0 0 15px #343e821a;
}

.host-detail-settings .host-detail-content {
  display: flex;
  flex-direction: column;
}

.host-detail-settings .host-settings-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 19px;
}

.host-detail-settings .host-setting-box {
  border: 0;
  background: transparent;
}

.host-detail-settings .host-setting-box summary {
  background: transparent;
  border-bottom: 1px solid #edf0f4;
  color: #404752;
  font-size: 17px;
}

.host-settings-summary-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 400;
}

.host-settings-summary-action::before { content: "展开"; }
.host-setting-box[open] .host-settings-summary-action::before { content: "折叠"; }
.host-setting-box .host-settings-summary-action .host-icon { transform: none; }
.host-setting-box[open] .host-settings-summary-action .host-icon { transform: rotate(180deg); }

.host-detail-settings .host-setting-fields {
  --host-field-label: minmax(115px, 18%);
  max-width: 960px;
  padding: 17px 14px 11px;
}

.host-detail-settings .host-setting-fields label:not(.check) {
  grid-template-columns: var(--host-field-label) minmax(0, 1fr);
  gap: 19px;
  align-items: center;
  text-align: right;
}

.host-detail-settings .host-setting-fields input:not([type="checkbox"]) {
  background: #fff;
  min-height: 34px;
  padding-block: 6px;
  text-align: left;
}

.host-detail-settings .host-setting-fields .twocol {
  grid-template-columns: 1fr;
}

.host-detail-settings .host-setting-fields > :is(.host-setting-links, p, .check) {
  margin-inline-start: calc(max(115px, 18%) + 19px);
}

.host-detail-settings .host-settings-footer {
  margin-top: auto;
  background: #e8e9ee;
}

.host-detail-settings .host-settings-footer .host-icon {
  width: 16px;
  height: 16px;
}

.host-shell .round-plans {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.host-shell .winners {
  margin: 0 0 24px;
}

.host-shell .winners li {
  border-color: var(--host-line);
}

.host-shell .winners b {
  color: #3974ad;
}

.host-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 18px;
}

.host-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.host-table th,
.host-table td {
  padding: 11px 13px;
  border: 1px solid var(--host-line);
}

.host-table th {
  background: #f5f8fc;
}

.host-round-table tbody tr:nth-child(even) { background: #f8f9fb; }
.host-round-table th,
.host-round-table td { padding: 9px 10px; }
.host-round-table th { white-space: nowrap; }
.host-round-table input[type="checkbox"] { width: auto; }
.host-table-empty { text-align: center; }

.host-tag {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 3px;
  background: #deeeff;
  color: #255f9a;
  font-size: 12px;
  white-space: nowrap;
}

.host-tag.orange {
  background: #fff0de;
  color: #9d5413;
}

.host-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.host-round-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.host-round-toolbar > div {
  display: flex;
  gap: 6px;
}

.host-shell .danger-solid {
  background: #c84853;
  border-color: #c84853;
  color: #fff;
}

.host-round-toolbar .host-icon { width: 17px; height: 17px; }

.host-shell .host-icon-button {
  padding: 4px 7px;
  background: #357abe;
  border-color: #357abe;
  color: #fff;
}

.host-shell .host-icon-button.red { background: #bd4651; border-color: #bd4651; }
.host-shell .host-icon-button.orange { background: #a8591b; border-color: #a8591b; }
.host-icon-button .host-icon { width: 16px; height: 16px; }

.host-shell dialog {
  width: min(92vw, 1120px);
  max-height: 92vh;
  padding: 0;
  color: #303134;
  background: #fff;
  border: 1px solid #d6dce5;
  border-radius: 5px;
  box-shadow: 0 14px 44px #272e3961;
}

.host-shell dialog::backdrop { background: #2b344578; }

.host-shell .round-plans form { max-width: none; gap: 0; }

.host-shell .host-dialog-header {
  padding: 8px 14px;
  background: #f0f2f5;
  border-color: #e1e5ec;
}

.host-dialog-header h2 { margin: 0; }
.host-shell .host-dialog-header button { padding: 3px 8px; font-size: 18px; }

.host-dialog-body { padding: 18px 22px 24px; }

.host-round-fields:not([hidden]) {
  display: grid;
  gap: 12px;
}

.host-round-fields label {
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.host-round-fields label span { justify-self: end; text-align: right; }

.host-shell input.host-toggle {
  appearance: none;
  position: relative;
  width: 40px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: 1px solid #aeb7c5;
  border-radius: 20px;
  background: #aeb7c5;
  cursor: pointer;
}

.host-shell input.host-toggle:checked { background: #427fc0; border-color: #427fc0; }

.host-toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.host-toggle:checked::before { left: 20px; }

.host-shell .host-dialog-footer {
  justify-content: flex-end;
  padding: 12px 20px;
  gap: 8px;
  border-top: 1px solid #e1e5ec;
}

.host-shell .host-dialog-status {
  margin: 0 auto 0 0;
  color: #ab3636;
}

.host-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 15px;
}

.host-game-card {
  border: 1px solid var(--host-line);
  border-radius: 5px;
  overflow: hidden;
}

.host-game-cover {
  min-height: 100px;
  display: grid;
  place-items: center;
  font-size: 43px;
  background: #e1edfc;
}

.host-game-cover.cash { background: #fbe6ca; }
.host-game-cover.fruit { background: #ffe1e5; }
.host-game-cover.mole { background: #f7e7d7; }
.host-game-cover.coin { background: #fff4cb; }

.host-game-content {
  padding: 13px;
}

.host-game-content h2 {
  margin-bottom: 10px;
}

.host-game-content a { margin: 0 3px 4px 0; }

.host-names {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.host-names {
  padding: 0;
  list-style: none;
  margin: 0 0 24px;
}

.host-names li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--host-line);
  border-radius: 3px;
}

.host-overview-group + .host-overview-group {
  margin-top: 25px;
}

.host-overview-group h2 {
  padding: 8px 11px;
  margin: 0 0 19px;
  border-left: 4px solid var(--host-accent);
  font-size: 19px;
}

.host-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 28px;
  border-top: 1px solid #eff0f3;
  padding-top: 20px;
}

.host-overview-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 4px 15px;
  min-height: 140px;
  padding: 19px 15px 15px 20px;
  border: 1px solid var(--host-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 6px 16px #243e8633;
}

.host-overview-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #faf7ed;
  color: #a47935;
  font-size: 31px;
}

.host-overview-icon .host-icon {
  width: 32px;
  height: 32px;
}

.host-overview-card h3 {
  margin: 4px 0 3px;
  font-size: 19px;
  font-weight: 500;
}

.host-overview-card p {
  margin: 0;
  line-height: 1.5;
}

.host-overview-card a {
  grid-column: 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #277cae;
}

.host-overview-card a:hover { text-decoration: underline; }
.host-overview-card a .host-icon { width: 13px; height: 13px; }

.host-qr {
  width: min(240px, 100%);
  text-align: center;
}

.host-qr img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--host-line);
}

@media (max-width: 1050px) {
  .host-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .host-shell .host-header {
    padding: 12px 16px;
  }

  .host-header nav {
    gap: 12px;
  }

  .host-tabs { width: 100%; }

  .host-event {
    grid-template-columns: 1fr;
  }

  .host-event-links {
    padding: 12px;
    font-size: 14px;
  }

  .host-timeline {
    margin-right: 15px;
  }

  .host-event-blue {
    padding: 18px;
  }

  .host-detail,
  .host-detail.host-has-subnav {
    grid-template-columns: 1fr;
  }

  .host-shell:has(.host-detail) .host-header {
    position: static;
  }

  .host-detail-nav,
  .host-setting-nav {
    position: static;
    flex-direction: row;
    height: auto;
    overflow-x: auto;
    border: 0;
    border-bottom: 1px solid var(--host-line);
  }

  .host-detail-nav a,
  .host-setting-nav a { white-space: nowrap; }

  .host-detail-nav a {
    flex: 1;
    min-width: 66px;
    border-right: 0;
    border-bottom: 3px solid transparent;
  }

  .host-nav-icon { width: 34px; height: 34px; }
  .host-nav-icon .host-icon { width: 21px; height: 21px; }
  .host-subnav-games { display: flex; }
  .host-subnav-games a { padding: 13px 10px; }

  .host-detail-content {
    min-height: auto;
    padding: 0 14px 24px;
    margin: 10px;
  }

  .host-shell .host-detail-title { margin-inline: -14px; }
  .host-settings-footer { margin: 0 -14px -24px; }
  .host-round-fields label { grid-template-columns: 115px minmax(0, 1fr); }
  .host-dialog-body { padding-inline: 12px; }
}

@media (max-width: 530px) {
  .host-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .host-detail-settings .host-setting-fields { --host-field-label: 95px; }
  .host-detail-settings .host-setting-fields > :is(.host-setting-links, p, .check) { margin-inline-start: 0; }
}
