/* Layout and animation styles are provided by the saved site's CSS bundles.
   This bridge restores the sizing of components whose generated MUI styles were missing from the snapshots. */
.site-adopted .navbar .MuiSvgIcon-root,
.site-adopted .MuiButton-root svg { width: 19px; height: 19px; flex: none; }
.site-adopted .header-nav-links a {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  min-height: 40px; padding: 6px 10px; white-space: nowrap; color: var(--app-text, #111827);
}
.site-adopted .header-nav-links a.active,
.site-adopted .header-nav-links a:hover { color: var(--app-primary, #1976d2); }
.site-adopted .MuiButton-root:not(.header-nav-links a, [hidden]) {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  border: 1px solid transparent; border-radius: 6px; min-height: 36px;
  padding: 6px 12px; cursor: pointer; text-decoration: none; font: inherit;
}
.site-adopted .MuiButton-containedPrimary { background: var(--app-primary, #1976d2); color: white; }
.site-adopted .MuiButton-outlinedPrimary {
  color: var(--app-primary, #1976d2); border-color: currentColor !important; background: transparent;
}
.site-adopted .MuiButton-textPrimary { color: var(--app-primary, #1976d2); }
.site-list { padding-top: 54px; padding-bottom: 32px; }
.site-page-panel { border: 1px solid var(--app-translucent-border, #ddd); border-radius: .5rem; padding: 1rem; margin-block: 1rem; }
.site-page-panel > :first-child { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.site-page-panel .css-1pd6if0 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.site-input {
  border: 1px solid var(--app-translucent-border, #ccc); border-radius: 6px;
  background: transparent; color: inherit; min-height: 38px; padding: 6px 10px;
}
.site-status { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.site-status .pill, .site-match-status {
  border: 1px solid var(--app-translucent-border, #ddd); border-radius: .375rem; padding: .25rem .55rem;
}
.site-match-art {
  position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center 60%;
  background-image: linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.93) 61%, rgba(255,255,255,.63) 100%), url("/rooms/1/static/field.jpg");
}
.site-adopted .match-card { border: 1px solid var(--app-translucent-border, #ddd); }
.site-score-link { cursor: pointer; color: var(--app-primary,#1976d2); background: transparent; border: 0; padding: 0; font-size: .82rem; }
.site-score-avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #1976d218; }
.site-adopted .site-unit-table { width: 100%; margin-bottom: 14px; border-collapse: collapse; }
.site-unit-table td, .site-unit-table th { border-bottom: 1px solid #80808033; padding: 6px; text-align: left; }
.site-unit-icon { display: inline-block; width: 46px; height: 30px; object-fit: contain; vertical-align: middle; margin-right: .5rem; }
.site-tool-body { padding-top: 70px; }
.site-footer { padding-block: 24px; }
@media (max-width: 760px) {
  .site-adopted .navbar > div { flex-wrap: wrap; gap: 4px 8px; padding: 4px 12px; }
  .site-adopted .header-nav-links { order: 3; width: 100%; overflow-x: auto; }
  .site-adopted .header-nav-links a { padding: 5px 8px; min-height: 34px; }
  .site-adopted .header-nav-links svg { display: none; }
  .site-list { padding-top: 85px; }
  .site-tool-body { padding-top: 95px; }
}

/* ---- Defilade 首页/顶栏补丁：参考站素材缺失时的安全布局与品牌 ---- */
.site-adopted .header-brand { text-decoration: none; color: #111827; }
.site-adopted .header-brand .brand-wordmark { text-transform: uppercase; letter-spacing: .04em; font-weight: 800; font-size: 1.02rem; }
.site-adopted .header-brand::before {
  content: "D"; width: 32px; height: 32px; flex: none; display: inline-grid; place-items: center;
  border-radius: 9px; background: #e5484d; color: #fff; font: 800 15px/1 "Segoe UI", "Microsoft YaHei UI", sans-serif;
  box-shadow: 0 4px 12px rgba(229,72,77,.28); margin-right: 2px;
}
.site-adopted .index-hero {
  min-height: 0 !important; padding: 64px 0 52px !important;
  background:
    radial-gradient(900px 420px at 86% 4%, rgba(37,99,235,.10), transparent 62%),
    radial-gradient(700px 360px at 6% 0%, rgba(229,72,77,.10), transparent 58%),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 78%);
  border-bottom: 1px solid #e5e7eb;
}
.site-adopted .index-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(17,24,39,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(17,24,39,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.site-adopted .index-hero .index-hero-content { text-align: left !important; max-width: 780px; }
.site-adopted .index-hero .index-cta-row { justify-content: flex-start !important; }
.site-adopted .index-title { font-size: clamp(2.6rem, 5vw, 4.1rem) !important; letter-spacing: -.045em !important; }
.site-adopted .index-sections { padding-top: 18px !important; padding-bottom: 42px !important; }
.site-adopted .index-section { margin-top: 18px; }
.site-adopted .index-section-heading h5 { letter-spacing: -.01em; }
.site-adopted .index-feature { transition: transform .2s, box-shadow .2s, border-color .2s; }
.site-adopted .index-feature:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(17,24,39,.08); }
.site-adopted .site-status { min-height: 28px; }
@media (max-width: 760px) {
  .site-adopted .index-hero { padding: 34px 0 30px !important; }
  .site-adopted .index-hero .index-hero-content { text-align: left !important; }
  .site-adopted .index-title { font-size: 2.15rem !important; }
}
/* 顶栏与首屏避免与固定导航重叠，并去掉重复的大标题 */
.site-adopted .topbar h1 { display: none; }
.site-adopted .topbar { padding-top: 16px !important; }
.site-adopted .index-hero { padding-top: 108px !important; padding-bottom: 56px !important; }
.site-adopted .index-hero .index-hero-content { padding-top: 4px; }
.site-adopted .site-adopted, .site-adopted body { }
/* 房间控制台首页的启动器下载条 */
.download-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 16px auto 10px; padding: 16px 20px; width: min(100% - 32px, 1600px); border: 1px solid #dbe3ee; border-radius: 12px; background: linear-gradient(110deg,#fff,#f4f8ff); box-shadow: 0 8px 24px rgba(17,24,39,.06); }
.download-strip-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: #6b7280; font-size: 13px; }
.download-strip-copy strong { color: #111827; font-size: 16px; }
.download-strip-badge { padding: 3px 9px; border-radius: 999px; background: #e8f0ff; color: #1d4ed8; font-size: 12px; font-weight: 650; }
.download-strip-button { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px; border-radius: 9px; background: linear-gradient(180deg,#3b82f6,#2563eb); color: #fff !important; text-decoration: none; font-weight: 700; box-shadow: 0 7px 18px rgba(37,99,235,.24); }
.download-strip-button:hover { color: #fff !important; filter: brightness(1.05); }
@media (max-width: 760px) { .download-strip { flex-direction: column; align-items: flex-start; gap: 12px; } .download-strip-button { width: 100%; } }

/* LET PLAYER IN：专服主动敲门放行 */
.let-in-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 12px; margin: 14px auto 10px; padding: 14px 18px; width: min(100% - 32px, 1600px); border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(17,24,39,.04); }
.let-in-copy strong { display: block; font-size: 15px; color: #111827; }
.let-in-copy p { margin: 3px 0 0; color: #6b7280; font-size: 12.5px; }
.let-in-copy code { padding: 1px 6px; border-radius: 5px; background: #f3f4f6; color: #111827; }
.let-in-panel input { padding: 9px 11px; border: 1px solid #d7dbe0; border-radius: 8px; font: inherit; letter-spacing: .04em; min-width: 180px; }
.let-in-panel button { padding: 9px 16px; border: 0; border-radius: 8px; background: #2563eb; color: #fff; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.let-in-panel button:disabled { opacity: .55; cursor: wait; }
.let-in-panel #letInResult { grid-column: 1 / -1; margin: 0; color: #6b7280; font-size: 12.5px; min-height: 18px; }
@media (max-width: 760px) { .let-in-panel { grid-template-columns: 1fr; } .let-in-panel button { width: 100%; } }


/* 右侧服务器日志抽屉 */
.server-log-drawer { position: fixed; right: 16px; bottom: 16px; z-index: 1200; width: min(420px, calc(100vw - 32px)); max-height: min(58vh, 620px); display: flex; flex-direction: column; border: 1px solid #d8dee8; border-radius: 12px; background: #0f172a; color: #dbe6f5; box-shadow: 0 18px 48px rgba(15, 23, 42, .28); overflow: hidden; }
.server-log-drawer header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #111c31; border-bottom: 1px solid #22314b; font-size: 13px; }
.server-log-drawer header strong { color: #f1f5f9; font-size: 13px; }
.server-log-drawer header .server-log-file { flex: 1; color: #8fa6c4; font: 11px/1.4 ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-log-drawer button { border: 1px solid #314158; border-radius: 6px; background: #1b2a42; color: #dbe6f5; font: 12px/1.4 inherit; padding: 4px 9px; cursor: pointer; }
.server-log-drawer button:hover { background: #243854; }
.server-log-body { flex: 1; min-height: 180px; margin: 0; padding: 10px 12px; overflow: auto; font: 11.5px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-word; color: #c8d6e8; }
.server-log-drawer footer { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid #22314b; background: #111c31; }
.server-log-meta { flex: 1; color: #8fa6c4; font-size: 11.5px; }
.server-log-drawer.collapsed { display: none; }
.server-log-tab { position: fixed; right: 16px; bottom: 16px; z-index: 1201; border: 1px solid #314158; border-radius: 8px; background: #111c31; color: #dbe6f5; padding: 8px 12px; font: 12px/1.4 inherit; cursor: pointer; box-shadow: 0 10px 24px rgba(15,23,42,.24); }
@media (max-width: 760px) { .server-log-drawer { width: calc(100vw - 24px); right: 12px; bottom: 12px; max-height: 50vh; } }
