:root {
  color-scheme: light;
  font-family: Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: #f7f9fc;
  --green: #2563eb;
  --green-dark: #1d4ed8;
  --green-soft: #eff6ff;
  --ink: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --paper: #fff;
  --canvas: #f7f9fc;
  --focus: 0 0 0 3px rgba(37, 99, 235, .16);
}

* { box-sizing: border-box; }
body,
body *,
body *::before,
body *::after { font-weight: 400 !important; }
html, body, .management-app { min-width: 320px; min-height: 100%; margin: 0; }
body { background: linear-gradient(180deg, #fbfdff 0, var(--canvas) 100%); }
html.is-management-authenticated, html.is-management-authenticated body {
  height: 100%; overflow: hidden; overscroll-behavior: none;
}
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--canvas);
}

.auth-card {
  width: min(420px, 100%);
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}
.auth-card > img { width: 54px; height: 54px; border-radius: 8px; }
.eyebrow { display: block; margin-top: 22px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.auth-card h1 { margin: 7px 0 8px; color: var(--ink); font-size: 29px; letter-spacing: -.035em; }
.auth-card > p { margin: 0 0 25px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.auth-card form { display: grid; gap: 15px; }
.auth-card label { display: grid; gap: 7px; color: #475569; font-size: 13px; font-weight: 700; }
.auth-card input {
  width: 100%; height: 46px; padding: 0 13px;
  border: 1px solid var(--line-strong); border-radius: 4px; outline: none;
  color: var(--ink); background: #ffffff;
}
.auth-card input:focus { border-color: #60a5fa; box-shadow: var(--focus); }
.form-error { margin: -3px 0 0; color: #bd4949; font-size: 12px; line-height: 1.5; }

.primary-button, .secondary-button, .quiet-button, .icon-button, .mode-switch button {
  border: 0; border-radius: 4px; cursor: pointer;
}
.primary-button, .secondary-button { min-height: 40px; padding: 0 16px; font-weight: 750; }
.primary-button { color: #fff; background: var(--green); }
.primary-button:hover { background: var(--green-dark); }
.secondary-button { color: #334155; border: 1px solid var(--line-strong); background: transparent; }
.secondary-button:hover { border-color: #bfdbfe; background: #eff6ff; }
.button-with-icon {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.button-with-icon .button-action-icon {
  width: 21px; height: 21px; flex: 0 0 auto; object-fit: contain;
}
.button-with-icon[data-action-icon="peak-collect"] .button-action-icon { width: 27px; height: 27px; }
.button-with-icon[data-action-icon="formation-refresh"] .button-action-icon { width: 22px; height: 25px; }
.button-with-icon[data-action-icon="club-refresh"] .button-action-icon { width: 25px; height: 25px; }
.button-with-icon[data-action-icon="export-image"] .button-action-icon {
  width: 22px; height: 22px; padding: 2px; border-radius: 5px; background: rgba(37,99,235,.10);
  filter: drop-shadow(0 1px 1px rgba(15,23,42,.14));
}
.primary-button.button-with-icon[data-action-icon="export-image"] .button-action-icon { background: rgba(255,255,255,.16); }
.button-with-icon[data-action-icon="search"] .button-action-icon { width: 23px; height: 22px; }
.wide { width: 100%; margin-top: 3px; }
button:disabled { cursor: progress; opacity: .55; }

.workspace { height: 100vh; display: grid; grid-template-rows: 72px minmax(0, 1fr); overflow: hidden; }
.management-game-surface {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.management-game-surface > iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}
.management-game-back {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: calc(env(safe-area-inset-left, 0px) + 10px);
  z-index: 2;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 7px;
  color: #fff;
  background: rgba(15, 23, 42, .76);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .24);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  -webkit-tap-highlight-color: transparent;
}
.management-game-back:hover { background: rgba(15, 23, 42, .9); }
.management-game-back > span:first-child { font-size: 18px; font-weight: 400; line-height: 1; }
.management-game-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, .9);
  background: #111827;
  font-size: 14px;
}
.management-game-loading > img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  animation: management-game-loading-pulse 1.2s ease-in-out infinite alternate;
}
@keyframes management-game-loading-pulse {
  from { opacity: .62; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}
.workspace-header {
  position: relative; z-index: 20; grid-row: 1; grid-column: 1; display: flex;
  align-items: center; padding: 0 clamp(22px, 3vw, 44px); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94); box-shadow: 0 1px 10px rgba(15,23,42,.035); backdrop-filter: blur(16px);
}
.rail-brand { min-width: 0; display: flex; align-items: center; gap: 10px; }
.rail-brand > img { width: 38px; height: 38px; border-radius: 7px; }
.rail-brand > span { min-width: 0; display: grid; }
.rail-brand strong { color: var(--ink); font-size: 15px; }
.rail-brand small { margin-top: 2px; overflow: hidden; color: #94a3b8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.quiet-button { padding: 7px 9px; color: #64748b; background: transparent; font-size: 12px; }
.quiet-button:hover { color: var(--ink); background: #f1f5f9; }
.header-account-actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; margin-left: auto; }
.header-account-action { min-width: 44px; min-height: 30px; padding: 0 9px; font-size: 10px; white-space: nowrap; }
.daily-layout-toggle { align-items: center; justify-content: center; gap: 6px; color: var(--green-dark); }
.daily-layout-toggle-icon { position: relative; width: 14px; height: 12px; display: inline-block; flex: 0 0 14px; }
.daily-layout-toggle-icon.is-list {
  border-block: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat;
}
.daily-layout-toggle-icon.is-cards {
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 6px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 8px 0 / 6px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 7px / 6px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 8px 7px / 6px 5px no-repeat;
}
.header-account-indicator {
  position: relative; width: 38px; height: 38px; flex: 0 0 auto; margin-left: 8px;
}
.header-account-indicator .account-avatar { width: 38px; height: 38px; border: 2px solid #fff; box-shadow: 0 0 0 1px #cbd5e1; }
.header-account-badge {
  position: absolute; top: -5px; right: -8px; z-index: 2; min-width: 22px; height: 19px; display: grid;
  place-items: center; padding: 0 5px; border: 2px solid #fff; border-radius: 10px; color: #fff;
  background: var(--green-dark); box-shadow: 0 2px 7px rgba(37, 99, 235, .18); font-size: 9px; font-weight: 850;
}
.header-logout { flex: 0 0 auto; margin-left: 10px; }
.header-account-indicator[hidden] + .header-logout { margin-left: 8px; }
.topbar-back {
  flex: 0 0 auto; min-height: 32px; margin-left: 4px; padding: 0 8px;
  border: 0; border-left: 1px solid var(--line); color: var(--green-dark); background: transparent;
  cursor: pointer; font-size: 12px; font-weight: 750;
}
.topbar-back::before { content: "←"; margin-right: 6px; font-size: 17px; font-weight: 400; }
.topbar-back:hover { color: var(--green); }

.content-shell {
  min-width: 0;
  grid-row: 2;
  grid-column: 1;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  overflow: hidden;
  background: var(--canvas);
}
.mode-switch {
  position: relative;
  z-index: 21;
  grid-row: 1;
  grid-column: 1;
  justify-self: center;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(10px, 2vw, 26px);
  min-width: 0;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mode-switch::-webkit-scrollbar { display: none; }
.mode-switch button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  padding: 2px 2px 0;
  border-radius: 0;
  color: #64748b;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}
.nav-icon { width: 22px; height: 22px; display: grid; place-items: center; color: #94a3b8; font-size: 9px; transition: color .18s ease, transform .18s ease; }
.nav-icon img { width: 21px; height: 21px; object-fit: contain; filter: saturate(.45); opacity: .68; }
.mode-switch button[aria-current="page"] .nav-icon img { filter: none; opacity: 1; }
.mode-switch button[aria-current="page"] .nav-icon { color: var(--green); transform: scale(1.18); }
.mode-switch button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
}
.mode-switch button:hover { color: var(--ink); }
.mode-switch button[aria-current="page"] { color: var(--green-dark); background: transparent; }
.mode-switch button[aria-current="page"]::after { background: var(--green); }

.accounts-view { width: min(1080px, 100%); }
.icon-button { width: 31px; height: 31px; color: #64748b; background: transparent; font-size: 18px; }
.icon-button:hover { background: #f1f5f9; }
.account-organizer {
  min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 0 10px;
  border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.account-organizer::-webkit-scrollbar { display: none; }
.account-group-filters { min-width: 80px; flex: 1 1 auto; display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.account-group-filters::-webkit-scrollbar { display: none; }
.account-group-filter, .account-organizer-button {
  flex: 0 0 auto; min-height: 30px; padding: 0 10px; border: 0; border-radius: 3px;
  color: #64748b; background: transparent; cursor: pointer; font-size: 11px; font-weight: 720;
}
.account-group-filter:hover, .account-organizer-button:hover { color: var(--ink); background: #eff6ff; }
.account-group-filter[aria-pressed="true"] { color: var(--green-dark); background: var(--green-soft); }
.account-group-filter[data-default="true"]::after { margin-left: 5px; color: #d28a18; content: "★"; font-size: 9px; }
.account-group-filter::before { width: 7px; height: 7px; display: inline-block; margin-right: 6px; border-radius: 50%; background: var(--group-color, #94a3b8); content: ""; }
.account-group-filter[data-color="green"] { --group-color: #2b9474; }
.account-group-filter[data-color="blue"] { --group-color: #3f82bd; }
.account-group-filter[data-color="amber"] { --group-color: #cf8d2b; }
.account-group-filter[data-color="violet"] { --group-color: #7e66b7; }
.account-group-filter[data-color="rose"] { --group-color: #bb647a; }
.account-group-filter[data-color="slate"] { --group-color: #78847e; }
.account-organizer-button { border-left: 1px solid var(--line); border-radius: 0; color: var(--green-dark); }
.account-select-all { width: 24px; min-height: 30px; display: grid; place-items: center; flex: 0 0 24px; cursor: pointer; }
.account-select-all input, .account-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); cursor: pointer; }
.account-batch-bar {
  position: static; flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  margin: 0; padding: 0 8px; border: 0; border-left: 1px solid var(--line); background: transparent;
  box-shadow: none; backdrop-filter: none; animation: batch-bar-in .2s ease-out;
}
.account-batch-bar > span { display: flex; align-items: baseline; gap: 3px; }
.account-batch-bar strong { color: var(--green-dark); font-size: 14px; }
.account-batch-bar small { color: #64748b; font-size: 10px; }
.account-batch-bar .secondary-button, .account-batch-bar .quiet-button { min-height: 30px; padding-inline: 8px; font-size: 11px; }
.account-batch-bar .danger-button:hover { color: #fff; border-color: #b85c58; background: #b85c58; }
@keyframes batch-bar-in { from { opacity: 0; transform: translateX(-5px); } }
.account-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; padding-top: 6px; }
.account-item {
  width: 100%; min-width: 0; min-height: 76px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 8px; margin: 0; padding: 8px;
  border: 0; border-bottom: 1px solid #e2e8f0; border-radius: 0; color: var(--ink); background: transparent;
}
.account-item:hover { background: #f8fafc; }
.account-item[aria-selected="true"] { background: var(--green-soft); box-shadow: inset 3px 0 var(--green); }
.account-item.is-checked { background: #f1f5f9; }
.account-check { width: 22px; height: 38px; display: grid; place-items: center; cursor: pointer; }
.account-select-button {
  min-width: 0; display: flex; align-items: center; gap: 12px; padding: 2px 0;
  border: 0; color: inherit; background: transparent; cursor: pointer; text-align: left;
}
.account-launch-button {
  min-width: 66px; min-height: 32px; padding: 0 9px; border: 1px solid #bfdbfe; border-radius: 3px;
  color: var(--green-dark); background: rgba(255,255,255,.72); cursor: pointer; white-space: nowrap;
  font-size: 11px; font-weight: 760;
}
.account-launch-button:hover { color: #fff; border-color: var(--green); background: var(--green); }
.account-item-actions { display: flex; align-items: center; gap: 3px; }
.account-automation-button {
  min-width: 52px; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0 6px; border: 0; border-radius: 3px; color: #64748b; background: transparent;
  cursor: pointer; white-space: nowrap; font-size: 10px; font-weight: 760;
}
.account-automation-button:hover { color: var(--ink); background: #f1f5f9; }
.account-automation-button i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #94a3b8; }
.account-automation-button[data-enabled="true"] { color: var(--green-dark); }
.account-automation-button[data-enabled="true"] i { background: var(--green); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.account-automation-button:disabled { opacity: .5; cursor: wait; }
.account-group-button { width: 30px; height: 30px; border: 0; border-radius: 3px; color: #64748b; background: transparent; cursor: pointer; font-size: 18px; line-height: 1; }
.account-group-button:hover { color: var(--green-dark); background: #eff6ff; }
.account-memberships { min-width: 0; display: flex; gap: 4px; margin-top: 2px; overflow: hidden; }
.account-memberships span { max-width: 72px; overflow: hidden; color: #64748b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.account-avatar, .large-avatar { position: relative; overflow: hidden; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #2563eb; background: #dbeafe; font-weight: 800; }
.account-avatar { width: 40px; height: 40px; font-size: 14px; }
.account-avatar img, .large-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-copy { min-width: 0; display: grid; gap: 2px; }
.account-title-line { min-width: 0; display: flex; align-items: baseline; gap: 5px; }
.account-server-prefix { flex: 0 0 auto; color: #64748b; font-size: 11px; font-weight: 600; }
.account-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { overflow: hidden; color: #64748b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-empty { min-height: 55vh; display: grid; place-content: center; justify-items: center; padding: 30px; color: #64748b; text-align: center; }
.account-empty img { width: 48px; height: 48px; object-fit: contain; opacity: .88; }
.account-empty strong { margin-top: 13px; color: #475569; font-size: 14px; }
.account-empty span { margin-top: 5px; font-size: 11px; line-height: 1.55; }
.content-view {
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  min-height: 100%;
  margin: 0 auto;
  padding: 30px clamp(24px, 3.5vw, 48px) 52px;
  overflow: auto;
}
.content-empty { min-height: calc(100vh - 150px); display: grid; place-content: center; justify-items: center; color: #64748b; text-align: center; }
.content-empty img { width: 68px; height: 68px; object-fit: contain; filter: saturate(.78); }
.content-empty h2 { margin: 17px 0 7px; color: #475569; font-size: 20px; }
.content-empty p { margin: 0; font-size: 13px; }
.overview-content { display: grid; gap: 22px; }
.profile-card {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 0 0 25px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; box-shadow: none;
}
.profile-identity { min-width: 0; display: flex; align-items: center; gap: 15px; }
.large-avatar { width: 64px; height: 64px; font-size: 21px; }
.profile-identity > span:last-child { min-width: 0; display: grid; gap: 3px; }
.profile-identity small { color: var(--green); font-size: 11px; font-weight: 750; }
.profile-identity strong { overflow: hidden; font-size: 27px; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.profile-identity em { color: #64748b; font-size: 12px; font-style: normal; }
.profile-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.profile-actions > button { min-height: 38px; white-space: nowrap; }
.push-level-toggle.danger-button { color: #a94343; border-color: #ddb6b2; background: #fff7f6; }
.push-level-toggle.danger-button:hover { border-color: #c9857e; background: #fff0ee; }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stat-item { display: grid; gap: 5px; padding: 14px 18px; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.stat-item:last-child { border-right: 0; }
.stat-item small { color: #64748b; font-size: 11px; }
.stat-item strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.resource-grid { display: grid; grid-template-columns: repeat(4, minmax(145px, 1fr)); gap: 0 26px; border-top: 1px solid var(--line); }
.resource-item {
  min-width: 0; display: flex; align-items: center; gap: 11px; padding: 14px 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
}
.resource-item > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 0; background: transparent; }
.resource-item img { width: 31px; height: 31px; object-fit: contain; }
.resource-item > span:last-child { min-width: 0; display: grid; gap: 3px; }
.resource-item small { overflow: hidden; color: #64748b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.resource-item strong { overflow: hidden; color: #1e293b; font-size: 15px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.resource-item.is-resource-timer strong { color: var(--green); letter-spacing: .015em; }
.resource-item.is-resource-timer.is-ready strong { color: #b66a24; }
.resource-item.is-next-login { align-items: flex-start; min-height: 102px; }
.resource-item.is-next-login > span:last-child { gap: 2px; }
.resource-item.is-next-login .next-login-reason,
.resource-item.is-next-login .next-login-content {
  overflow: visible; color: #64748b; font-size: 9px; line-height: 1.45; text-overflow: clip; white-space: normal;
}
.resource-item.is-next-login .next-login-reason { margin-top: 2px; color: var(--green-dark); font-weight: 680; }
.resource-refresh-placeholder {
  grid-column: 1 / -1; min-height: 180px; display: grid; place-content: center; justify-items: center;
  gap: 8px; padding: 28px; border-bottom: 1px solid var(--line); color: #64748b; text-align: center;
}
.resource-refresh-placeholder strong { color: #334155; font-size: 16px; }
.resource-refresh-placeholder span { max-width: 520px; font-size: 12px; line-height: 1.65; }
.resource-skeleton { min-height: 64px; border-bottom: 1px solid var(--line); background: #f1f5f9; animation: pulse 1.1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .52; } }

.management-feature-content { display: grid; gap: 22px; }
.management-feature-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.management-feature-heading h2 { margin: 3px 0 5px; color: #1e293b; font-size: clamp(24px, 3vw, 33px); letter-spacing: -.03em; }
.management-feature-heading p { max-width: 660px; margin: 0; color: #64748b; font-size: 14px; line-height: 1.65; }
.management-feature-heading small { color: var(--green); font-size: 12px; font-weight: 750; }
.management-feature-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 4px; background: #eff6ff; }
.management-feature-icon img { width: 45px; height: 45px; object-fit: contain; }
.management-feature-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.management-feature-block { min-height: 112px; padding: 18px 0; border-bottom: 1px solid var(--line); background: transparent; }
.management-feature-block small { display: block; margin-bottom: 8px; color: #64748b; font-size: 12px; }
.management-feature-block strong { color: #334155; font-size: 18px; }
.management-feature-block p { margin: 9px 0 0; color: #64748b; font-size: 13px; line-height: 1.65; }

.scripts-view { width: 100%; max-width: 1320px; min-width: 0; }
.scripts-content {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  display: block;
}
.script-group-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.script-group-navigation button,
.script-operation-card.is-daily-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #64748b;
  background: rgba(255,255,255,.72);
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.script-group-navigation button {
  display: grid;
  grid-template-rows: auto auto;
  place-content: center;
  place-items: center;
  gap: 12px;
  border-style: solid;
  cursor: pointer;
  text-align: center;
}
.script-group-navigation button:hover,
.script-operation-card.is-daily-tile:hover { color: var(--ink); border-color: #93c5fd; background: #fff; box-shadow: 0 8px 22px rgba(37, 99, 235, .08); transform: translateY(-2px); }
.script-group-navigation img { width: 52px; height: 52px; object-fit: contain; }
.script-group-copy { min-width: 0; display: grid; justify-items: center; gap: 5px; }
.script-group-copy strong { color: #1e293b; font-size: 17px; letter-spacing: -.015em; }
.script-group-copy small { overflow: hidden; display: -webkit-box; color: #64748b; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.script-group-copy em { color: #94a3b8; font-size: 10px; font-style: normal; }
.script-operation-content { min-width: 0; }
.script-operation-group { min-width: 0; }
.daily-automation-tools { display: flex; justify-content: flex-end; margin: 0 0 5px; }
.daily-automation-tools[hidden] { display: none; }
.automation-log-entry {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 2px 7px 12px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  color: #475569;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.automation-log-entry img { width: 30px; height: 30px; object-fit: contain; }
.automation-log-entry span { display: grid; gap: 1px; }
.automation-log-entry strong { color: #334155; font-size: 13px; }
.automation-log-entry small { color: #64748b; font-size: 10px; }
.automation-log-entry:hover strong { color: var(--green-dark); }
.automation-log-entry:disabled { cursor: default; opacity: .48; }
.script-operation-group > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 1px 0 16px;
  border-bottom: 1px solid var(--line-strong);
  color: #1e293b;
  font-size: 23px;
  letter-spacing: -.02em;
}
.script-group-back {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px 0;
  border: 0; color: var(--green-dark); background: transparent; cursor: pointer; font-size: 12px; font-weight: 750;
}
.script-group-back::before { content: "←"; font-size: 17px; font-weight: 400; }
.script-group-back:hover { color: var(--green); }
.script-operation-group > h2 > span { display: grid; gap: 2px; }
.script-operation-group > h2 small { color: #94a3b8; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.script-operation-group > h2 img { width: 34px; height: 34px; object-fit: contain; }
.script-operation-grid {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  margin-inline: auto;
}
.script-operation-grid.is-single-column { width: min(100%, 780px); grid-template-columns: minmax(0, 1fr); }
.script-operation-grid.is-peak-arena-grid { width: 100%; grid-template-columns: minmax(0, 1fr); }
.script-operation-grid.is-peak-arena-grid > .peak-arena-card { width: 100%; justify-self: stretch; }
.script-operation-grid:not(.is-single-column):not(.is-peak-arena-grid) > .script-operation-card:last-child:nth-child(odd) {
  width: calc(50% - 15px);
  grid-column: 1 / -1;
  justify-self: center;
}
.script-operation-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.script-operation-card > header {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}
.script-operation-card.has-inline-operation-fields > header {
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
}
.has-inline-operation-fields > header > .script-operation-fields {
  justify-self: end;
  flex-wrap: nowrap;
  padding-left: 0;
}
.script-operation-card.is-configurable-daily > header {
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
}
.script-operation-card.is-configurable-daily.has-config-action > header {
  grid-template-columns: 42px minmax(0, 1fr) auto auto auto;
}
.script-operation-card.is-configurable-daily.has-inline-daily-field > header {
  grid-template-columns: 42px minmax(0, 1fr) 66px auto auto;
}
.script-operation-artwork { width: 40px; height: 40px; display: grid; place-items: center; }
.script-operation-artwork img { width: 36px; height: 36px; object-fit: contain; }
.script-operation-copy { min-width: 0; display: grid; gap: 3px; }
.script-operation-copy strong { color: #1e293b; font-size: 15px; }
.script-operation-copy small { color: #64748b; font-size: 12px; line-height: 1.5; }
.script-run-button {
  min-width: 62px;
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}
.script-run-button:hover { background: var(--green-dark); }
.script-run-button.button-with-icon { min-width: 78px; padding-inline: 10px 12px; gap: 5px; }
.script-run-button.button-with-icon .button-action-icon { width: 21px; height: 20px; }
.script-operation-card > header > .script-run-button { justify-self: end; }
.script-config-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  color: var(--green-dark);
  background: #f8fafc;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.script-config-button:hover { border-color: var(--green); background: #eff6ff; }
.script-operation-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; padding-left: 53px; }
.script-field { min-width: 112px; display: grid; gap: 5px; color: #64748b; font-size: 11px; font-weight: 650; }
.script-field > input:not([type="checkbox"]), .script-field > select {
  width: 100%;
  height: 35px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}
.script-field > input:focus, .script-field > select:focus { border-color: #60a5fa; box-shadow: var(--focus); }
.script-field.is-segmented { min-width: min(100%, 264px); }
.script-segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #f1f5f9;
}
.script-segmented-option { position: relative; cursor: pointer; }
.script-segmented-option input { position: absolute; opacity: 0; pointer-events: none; }
.script-segmented-option span {
  display: grid;
  min-height: 34px;
  place-items: center;
  padding: 0 14px;
  border-radius: 3px;
  color: #475569;
  font-size: 13px;
  font-weight: 750;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}
.script-segmented-option input:checked + span { color: var(--green-dark); background: #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .10); }
.script-segmented-option input:focus-visible + span { box-shadow: var(--focus); }
.script-operation-card > header .script-field.is-inline-daily { min-width: 66px; width: 66px; display: block; }
.script-operation-card > header .script-field.is-inline-daily > span { display: none; }
.script-operation-card > header .script-field.is-inline-daily > select { height: 34px; padding-inline: 7px; }
.daily-primary-operation { display: grid; width: 100%; }
.daily-primary-operation .script-operation-card { width: 100%; }
.script-operation-card.is-daily-primary { padding: 8px 0 22px; }
.script-operation-card.is-daily-primary > header { grid-template-columns: 54px minmax(0, 1fr) 48px; gap: 15px; }
.is-daily-primary .script-operation-artwork { width: 54px; height: 54px; }
.is-daily-primary .script-operation-artwork img { width: 54px; height: 54px; }
.is-daily-primary .script-operation-copy { gap: 5px; }
.is-daily-primary .script-operation-copy strong { font-size: 21px; letter-spacing: -.015em; }
.is-daily-primary .script-operation-copy small { font-size: 14px; line-height: 1.5; }
.daily-primary-title-row { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; }
.daily-primary-title-row output {
  padding-left: 10px; border-left: 1px solid #bfdbfe; color: var(--green-dark);
  font-size: 12px; font-weight: 760; white-space: nowrap;
}
.is-daily-primary .script-run-button {
  min-width: 44px;
  width: 44px;
  min-height: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
}
.is-daily-primary .script-run-button::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #fff;
  content: "";
}
.daily-operation-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.daily-task-section { margin-top: 24px; }
.daily-task-section + .daily-task-section { margin-top: 30px; padding-top: 23px; border-top: 1px solid var(--line); }
.daily-task-section > h2 {
  margin: 0; color: #334155; font-size: 18px; line-height: 1.35; letter-spacing: -.01em;
}
.daily-task-section > h2::before {
  width: 3px; height: 15px; display: inline-block; margin-right: 8px; border-radius: 1px;
  vertical-align: -2px; background: var(--green); content: "";
}
.daily-task-section > .daily-operation-grid { margin-top: 12px; }
.daily-list-view { min-width: 0; }
.daily-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.daily-list-heading h2 { margin: 0; color: #1e293b; font-size: 22px; letter-spacing: -.02em; }
.daily-list-heading p { margin: 5px 0 0; color: #64748b; font-size: 11px; }
.daily-list-empty {
  min-height: min(480px, 52vh); display: grid; place-content: center; justify-items: center;
  gap: 7px; border-block: 1px solid var(--line); color: #64748b; text-align: center;
}
.daily-list-empty img { width: 54px; height: 54px; margin-bottom: 6px; object-fit: contain; }
.daily-list-empty strong { color: #334155; font-size: 15px; }
.daily-list-empty small { font-size: 11px; }
.daily-list-empty button { min-height: 34px; margin-top: 10px; font-size: 11px; }
.daily-list-scroll {
  width: 100%; max-height: calc(100vh - 166px); overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--line-strong); border-radius: 5px; background: #fff;
  box-shadow: 0 9px 28px rgba(15, 23, 42, .05); scrollbar-color: #cbd5e1 transparent;
}
.daily-list-table { min-width: 100%; width: max-content; border-spacing: 0; color: var(--ink); font-size: 11px; }
.daily-list-table caption {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.daily-list-table th, .daily-list-table td {
  min-width: 164px; max-width: 210px; padding: 10px; border-right: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
  background: #fff; vertical-align: top;
}
.daily-list-table tr:last-child > * { border-bottom: 0; }
.daily-list-table tr > *:last-child { border-right: 0; }
.daily-list-table thead th {
  position: sticky; top: 0; z-index: 3; height: 68px; padding: 9px 10px;
  background: #f1f5f9; box-shadow: inset 0 -1px #cbd5e1; vertical-align: middle;
}
.daily-list-table thead th:not(.daily-list-account-column) { text-align: center; }
.daily-list-table thead th > img { width: 28px; height: 28px; display: block; margin: 0 auto 4px; object-fit: contain; }
.daily-list-table thead th > strong { display: block; color: #334155; font-size: 11px; line-height: 1.25; white-space: normal; }
.daily-list-account-column { left: 0; min-width: 282px !important; width: 282px; max-width: 282px !important; }
.daily-list-table thead .daily-list-account-column { z-index: 6; color: #64748b; text-align: left; }
.daily-list-table tbody .daily-list-account-column { position: sticky; left: 0; z-index: 2; padding: 0; background: #ffffff; }
.daily-list-table tbody tr.is-selected .daily-list-account-column { background: #eff6ff; box-shadow: inset 3px 0 var(--green); }
.daily-list-account {
  width: 100%; min-width: 0; min-height: 124px; display: flex; align-items: flex-start; gap: 10px; padding: 12px;
  border: 0; color: inherit; background: transparent; text-align: left;
}
.daily-list-account .account-avatar { width: 38px; height: 38px; }
.daily-list-account > span { min-width: 0; display: grid; gap: 3px; }
.daily-list-account strong, .daily-list-account small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daily-list-account strong { color: #334155; font-size: 12px; }
.daily-list-account small { color: #64748b; font-size: 9px; font-weight: 500; }
.daily-list-next-run {
  min-width: 0; display: grid; gap: 2px; margin-top: 6px; padding-top: 6px; border-top: 1px solid #dbe3ef;
}
.daily-list-account .daily-list-next-run strong,
.daily-list-account .daily-list-next-run small {
  overflow: visible; line-height: 1.4; text-overflow: clip; white-space: normal;
}
.daily-list-account .daily-list-next-run strong { color: var(--green-dark); font-size: 10px; }
.daily-list-account .daily-list-next-run small { color: #64748b; font-size: 9px; }
.daily-list-cell { min-height: 94px; transition: background .16s ease; }
.daily-list-cell[data-enabled="false"] { background: #f8fafc; }
.daily-list-cell[data-enabled="false"] .daily-list-cell-controls { opacity: .52; }
.daily-list-cell[data-enabled="false"]:focus-within .daily-list-cell-controls,
.daily-list-cell[data-enabled="false"]:hover .daily-list-cell-controls { opacity: 1; }
.daily-list-cell-top { min-height: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.daily-list-cell-top output { color: var(--green-dark); font-size: 10px; font-weight: 760; white-space: nowrap; }
.daily-list-switch { gap: 5px; }
.daily-list-switch span { width: 28px; height: 16px; flex-basis: 28px; }
.daily-list-switch span::after { top: 2px; left: 2px; width: 12px; height: 12px; }
.daily-list-switch input:checked + span::after { transform: translateX(12px); }
.daily-list-switch em { font-size: 10px; }
.daily-list-cell-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 7px; transition: opacity .16s ease; }
.daily-list-fields { min-width: 0; display: grid; gap: 7px; }
.daily-list-fields .script-field { width: 100%; min-width: 0; gap: 3px; font-size: 9px; }
.daily-list-fields .script-field > input:not([type="checkbox"]),
.daily-list-fields .script-field > select { height: 29px; padding-inline: 6px; font-size: 10px; }
.daily-list-fields .script-field.is-toggle { min-height: 29px; align-items: center; }
.daily-list-cell .script-config-button { width: 100%; min-height: 29px; padding-inline: 7px; font-size: 10px; }
.daily-list-no-config { align-self: center; color: #94a3b8; font-size: 9px; white-space: nowrap; }
.daily-list-run { min-width: 42px; min-height: 29px; padding-inline: 7px; font-size: 10px; }
.daily-list-run:only-child { grid-column: 1 / -1; justify-self: center; }
.daily-list-cell > .script-operation-feedback { display: none; }
.script-operation-card.is-daily-tile {
  display: grid;
  align-content: stretch;
  gap: 0;
  overflow: hidden;
}
.script-operation-card.is-daily-tile > header,
.script-operation-card.is-daily-tile.is-configurable-daily > header,
.script-operation-card.is-daily-tile.is-configurable-daily.has-config-action > header,
.script-operation-card.is-daily-tile.is-configurable-daily.has-inline-daily-field > header {
  position: absolute;
  inset: 20px;
  width: auto;
  height: auto;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 0;
  padding: 0 0 30px;
}
.script-daily-main {
  width: 100%;
  min-width: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
}
.is-daily-tile .script-operation-artwork { width: 52px; height: 52px; }
.is-daily-tile .script-operation-artwork img { width: 52px; height: 52px; }
.is-daily-tile .script-operation-copy { width: 100%; justify-items: center; gap: 5px; text-align: center; }
.is-daily-tile .script-operation-copy strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  white-space: normal;
}
.is-daily-tile .script-operation-copy small {
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.is-daily-tile .script-daily-switch {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 28px;
  height: 22px;
  display: grid;
  place-items: start end;
}
.is-daily-tile .script-daily-switch em { display: none; }
.is-daily-tile .script-daily-switch span { width: 26px; height: 14px; flex-basis: 26px; }
.is-daily-tile .script-daily-switch span::after { top: 2px; left: 2px; width: 10px; height: 10px; }
.is-daily-tile .script-daily-switch input:checked + span::after { transform: translateX(12px); }
.script-daily-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  min-width: 0;
  height: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  pointer-events: none;
}
.script-daily-controls > * { pointer-events: auto; }
.is-daily-tile .script-run-button.is-play-button {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 26px;
  width: 26px;
  min-height: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 4px;
  line-height: 1;
}
.is-daily-tile .script-run-button.is-play-button::before {
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid #fff;
  content: "";
}
.is-daily-tile .script-config-button,
.script-operation-card.is-daily-tile > header .script-field.is-inline-daily {
  position: absolute;
  bottom: 0;
  left: 50%;
  min-height: 26px;
  transform: translateX(-50%);
}
.is-daily-tile .script-config-button { min-width: 48px; padding-inline: 7px; font-size: 10px; }
.script-operation-card.is-daily-tile > header .script-field.is-inline-daily { width: 48px; min-width: 48px; }
.script-operation-card.is-daily-tile > header .script-field.is-inline-daily > select { height: 26px; padding-inline: 4px; font-size: 10px; }
.is-daily-tile .script-daily-controls .script-run-button.is-play-button {
  position: static;
  grid-column: 3;
  justify-self: end;
}
.is-daily-tile .script-daily-controls .script-config-button,
.script-operation-card.is-daily-tile > header .script-daily-controls .script-field.is-inline-daily,
.is-daily-tile .script-daily-controls .script-card-option {
  position: static;
  grid-column: 2;
  justify-self: center;
  transform: none;
}
.script-card-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
}
.script-card-option input { position: absolute; opacity: 0; pointer-events: none; }
.script-card-option > span {
  position: relative;
  width: 22px;
  height: 12px;
  flex: 0 0 22px;
  border-radius: 7px;
  background: #d5ddd9;
  transition: background .16s ease;
}
.script-card-option > span::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .16);
  content: "";
  transition: transform .16s ease;
}
.script-card-option input:checked + span { background: #3b82f6; }
.script-card-option input:checked + span::after { transform: translateX(10px); }
.script-card-option input:focus-visible + span { box-shadow: var(--focus); }
.script-card-option small { font-size: 9px; font-weight: 720; }
.is-daily-tile > .script-operation-fields { position: absolute; right: 32px; bottom: 0; left: 0; justify-content: center; padding: 0; }
.is-daily-tile .script-operation-feedback { display: none; }
.script-field.is-sparring-target { min-width: 220px; }
.sparring-target-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.script-search-input {
  min-width: 0; height: 35px; display: flex; align-items: center; gap: 5px; padding: 0 8px 0 5px;
  overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 3px; background: #fff;
}
.script-search-input > img { width: 24px; height: 23px; flex: 0 0 auto; object-fit: contain; }
.sparring-target-control input {
  width: 0;
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  align-self: stretch;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}
.script-search-input:focus-within { border-color: #60a5fa; box-shadow: var(--focus); }
.sparring-target-control input:focus { box-shadow: none; }
.sparring-history-button {
  min-width: 48px;
  height: 35px;
  border: 1px solid #bfdbfe;
  border-radius: 3px;
  color: var(--green-dark);
  background: #f5faf7;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
}
.sparring-history-button:hover { border-color: var(--green); background: #eff6ff; }
.script-field.is-toggle { min-width: auto; display: flex; align-items: center; gap: 7px; align-self: center; }
.script-field input[type="checkbox"] { accent-color: var(--green); }
.script-field.is-options, .script-field.is-lineup { width: 100%; }
.script-option-list { display: flex; flex-wrap: wrap; gap: 7px; }
.script-option {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: #475569;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}
.script-option img { width: 23px; height: 23px; object-fit: contain; }
.script-lineup-fields { display: grid; grid-template-columns: repeat(5, minmax(80px, 1fr)); gap: 6px; }
.script-condition-list { display: grid; gap: 6px; }
.script-condition { display: grid; grid-template-columns: auto minmax(84px, 1fr) 72px; align-items: center; gap: 7px; }
.script-condition.has-icon { grid-template-columns: auto 25px minmax(84px, 1fr) 72px; }
.script-condition > img { width: 23px; height: 23px; object-fit: contain; }
.script-condition input[type="number"],
.script-condition select { width: 72px; height: 32px; border: 1px solid var(--line-strong); background: #fff; }
.script-condition select.script-condition-quality { width: 104px; font-weight: 730; }
.script-condition:has(.script-condition-quality) { grid-template-columns: auto 25px minmax(64px, 1fr) 104px; }
.script-operation-actions { display: grid; margin-left: 53px; border-top: 1px solid var(--line); }
.script-operation-action {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(92px, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}
.script-operation-action:last-child { border-bottom: 0; }
.script-operation-action > img { width: 28px; height: 28px; object-fit: contain; }
.script-operation-action > strong { font-size: 12px; }
.script-operation-action .script-operation-fields { justify-self: end; flex-wrap: nowrap; padding-left: 0; }
.script-daily-switch { position: relative; display: inline-flex; align-items: center; gap: 6px; color: #64748b; cursor: pointer; font-size: 11px; font-weight: 700; }
.script-daily-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  clip-path: inset(50%);
  opacity: 0;
}
.script-daily-switch span {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #cbd5cf;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
  transition: background .18s ease, box-shadow .18s ease;
}
.script-daily-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .18); transition: transform .18s ease; }
.script-daily-switch input:checked + span { background: var(--green); }
.script-daily-switch input:checked + span::after { transform: translateX(14px); }
.script-daily-switch input:focus-visible + span { box-shadow: var(--focus); }
.script-daily-switch em { font-style: normal; white-space: nowrap; }
.script-operation-feedback { margin-left: 53px; color: #64748b; font-size: 12px; }
.script-operation-feedback[data-tone="error"] { color: #bd4949; }
.script-operation-feedback[data-tone="success"] { color: var(--green); }


.script-result-dialog { width: min(620px, calc(100vw - 28px)); padding: 25px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 28px 80px rgba(15, 23, 42, .22); }
.script-result-dialog::backdrop { background: rgba(15, 23, 42, .38); backdrop-filter: blur(3px); }
.script-result-heading { display: flex; align-items: center; gap: 12px; padding-right: 60px; }
.script-result-heading > span:last-child { display: grid; gap: 3px; }
.script-result-heading small { color: var(--green); font-size: 11px; font-weight: 800; }
.script-result-heading strong { font-size: 20px; }
.script-result-summary { margin-top: 20px; padding: 13px 14px; border-left: 3px solid var(--green); color: #334155; background: #f8fafc; font-size: 13px; line-height: 1.55; }
.script-result-summary[data-tone="error"] { border-left-color: #c85d5d; color: #a74646; background: #fdf1f0; }
.script-result-log { display: grid; max-height: 310px; margin-top: 12px; overflow: auto; border-top: 1px solid var(--line); }
.script-result-line { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 9px; padding: 9px 2px; border-bottom: 1px solid #e2e8f0; color: #64748b; font-size: 12px; line-height: 1.45; }
.script-result-line time { color: #94a3b8; font-variant-numeric: tabular-nums; }
.script-result-line[data-level="success"] span { color: var(--green); }
.script-result-line[data-level="warning"] span { color: #9e6d22; }
.script-result-line[data-level="error"] span { color: #b64c4c; }
.script-result-log.is-live-progress { max-height: min(560px, 66dvh); overflow: auto; border-top: 0; }
.script-live-progress { min-width: 0; display: grid; gap: 0; border: 1px solid #dbe5ef; background: #fff; }
.script-live-progress-heading {
  min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 11px;
  padding: 13px; border-bottom: 1px solid #e2e8f0; background: #f8fafc;
}
.script-live-progress-visual { position: relative; width: 46px; height: 46px; display: grid; place-items: center; background: #edf5ff; }
.script-live-progress-visual > img { width: 40px; height: 40px; object-fit: contain; }
.script-live-progress-copy { min-width: 0; display: grid; gap: 2px; }
.script-live-progress-copy > small:first-child { color: #64748b; font-size: 10px; font-weight: 800; }
.script-live-progress-copy strong { overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.script-live-progress-copy > small:last-child { overflow: hidden; color: #64748b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.script-live-progress-heading > output { color: #1d4ed8; font-size: 16px; font-weight: 850; font-variant-numeric: tabular-nums; white-space: nowrap; }
.script-live-progress-state-icon {
  position: relative; width: 20px; height: 20px; display: inline-block; border: 2px solid #cbd5e1; border-radius: 50%;
  background: #fff; color: #64748b;
}
.script-live-progress-visual > .script-live-progress-state-icon { position: absolute; right: -3px; bottom: -3px; }
.script-live-progress-state-icon[data-state="running"],
.script-live-progress-state-icon[data-state="retrying"] { border-color: #bfdbfe; border-top-color: #2563eb; animation: spin .72s linear infinite; }
.script-live-progress-state-icon[data-state="retrying"] { border-right-color: #d49a38; border-top-color: #d49a38; }
.script-live-progress-state-icon[data-state="success"],
.script-live-progress-state-icon[data-state="skipped"] { border-color: #268b66; background: #268b66; }
.script-live-progress-state-icon[data-state="success"]::after,
.script-live-progress-state-icon[data-state="skipped"]::after {
  position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  content: ""; transform: rotate(45deg);
}
.script-live-progress-state-icon[data-state="warning"] { border-color: #d49a38; background: #fff7e6; }
.script-live-progress-state-icon[data-state="warning"]::after {
  position: absolute; left: 7px; top: 3px; width: 2px; height: 8px; border-radius: 1px; background: #a96500;
  box-shadow: 0 10px 0 -0.2px #a96500; content: "";
}
.script-live-progress-state-icon[data-state="failed"],
.script-live-progress-state-icon[data-state="cancelled"] { border-color: #c85d5d; background: #c85d5d; }
.script-live-progress-state-icon[data-state="failed"]::before,
.script-live-progress-state-icon[data-state="failed"]::after,
.script-live-progress-state-icon[data-state="cancelled"]::before,
.script-live-progress-state-icon[data-state="cancelled"]::after {
  position: absolute; left: 8px; top: 3px; width: 2px; height: 10px; background: #fff; content: ""; transform: rotate(45deg);
}
.script-live-progress-state-icon[data-state="failed"]::after,
.script-live-progress-state-icon[data-state="cancelled"]::after { transform: rotate(-45deg); }
.script-live-progress-track { position: relative; height: 9px; overflow: hidden; background: #e2e8f0; }
.script-live-progress-track > span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #2563eb, #60a5fa); transition: width .28s ease-out; }
.script-live-progress-track[data-indeterminate="true"]::after,
.script-batch-progress[data-indeterminate="true"]::after {
  position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.86), transparent);
  content: ""; animation: script-progress-waiting 1.1s ease-in-out infinite; transform: translateX(-100%);
}
.script-live-progress-tasks { display: grid; max-height: 248px; overflow: auto; padding: 4px 12px; }
.script-live-progress-task {
  min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 20px; align-items: center; gap: 9px;
  min-height: 50px; padding: 7px 0; border-bottom: 1px solid #e2e8f0;
}
.script-live-progress-task:last-child { border-bottom: 0; }
.script-live-progress-task > img { width: 32px; height: 32px; object-fit: contain; }
.script-live-progress-task > span { min-width: 0; display: grid; gap: 2px; }
.script-live-progress-task strong, .script-live-progress-task small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.script-live-progress-task strong { color: #334155; font-size: 12px; }
.script-live-progress-task small { color: #64748b; font-size: 10px; }
.script-live-progress-task > output { color: #64748b; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.script-live-progress-task[data-state="success"] > output,
.script-live-progress-task[data-state="skipped"] > output { color: var(--green); }
.script-live-progress-task[data-state="warning"] > output { color: #9e6d22; }
.script-live-progress-task[data-state="failed"] > output { color: #b64c4c; }
.script-live-progress-notice { margin: 8px 12px; padding: 9px 10px; border-left: 3px solid #d49a38; color: #85591d; background: #fff8e8; font-size: 11px; line-height: 1.5; }
.script-live-progress-notice[data-state="failed"] { border-left-color: #c85d5d; color: #a74646; background: #fdf1f0; }
.script-live-progress-notice[data-state="success"] { border-left-color: var(--green); color: #23785d; background: #edf9f4; }
.script-live-progress-details { border-top: 1px solid #e2e8f0; }
.script-live-progress-details > summary { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 9px 12px; color: #64748b; font-size: 10px; cursor: pointer; }
.script-live-progress-details > summary img { width: 18px; height: 18px; object-fit: contain; opacity: .72; }
.script-live-progress-details > summary output { min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.script-live-progress-diagnostics { max-height: 190px; overflow: auto; padding: 0 12px 8px; border-top: 1px solid #eef2f7; }
.script-live-progress-diagnostics .script-result-line { grid-template-columns: 58px minmax(0, 1fr); padding-block: 7px; font-size: 10px; }
@keyframes script-progress-waiting { to { transform: translateX(100%); } }
.script-result-dialog.is-sparring-dialog { width: min(1040px, calc(100vw - 28px)); }
.script-result-log.is-sparring-results {
  max-height: min(660px, 68dvh);
  margin-top: 14px;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  background: #fbfcfd;
}
.sparring-result-card {
  padding: 14px;
  background:
    radial-gradient(circle at 50% 0, rgba(216, 239, 248, .55), transparent 34%),
    linear-gradient(180deg, #fff, #fbfcfd);
}
.sparring-result-card + .sparring-result-card { border-top: 1px solid var(--line-strong); }
.sparring-result-account { display: flex; align-items: center; gap: 8px; padding: 1px 2px 12px; }
.sparring-result-account .account-avatar { width: 28px; height: 28px; }
.sparring-result-account strong { color: #334155; font-size: 12px; }
.sparring-result-warning,
.sparring-result-error {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-left: 3px solid #d19435;
  color: #91611d;
  background: #fff8e8;
  font-size: 11px;
  line-height: 1.55;
}
.sparring-result-error { border-left-color: #c85d5d; color: #ae4c4c; background: #fdf1f0; }
.sparring-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}
.sparring-side {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe8ef;
  border-radius: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(251, 254, 255, .96);
  box-shadow: 0 8px 24px rgba(66, 103, 123, .07);
}
.sparring-side.opponent { border-color: #eadfda; background: rgba(255, 253, 249, .97); }
.sparring-player {
  min-height: 78px;
  padding: 11px 12px;
  border-bottom: 1px solid #e6edf1;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: linear-gradient(90deg, #effaff, #fbfdff);
}
.sparring-side.opponent .sparring-player { border-bottom-color: #eee7e1; background: linear-gradient(90deg, #fffaf1, #fffdf9); }
.sparring-player-avatar {
  width: 50px;
  height: 50px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf4f6;
  box-shadow: 0 3px 12px rgba(54, 101, 126, .15);
}
.sparring-player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sparring-player > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.sparring-player small,
.sparring-player em {
  overflow: hidden;
  color: #8b99a3;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sparring-player strong { overflow: hidden; color: #2d3c46; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.sparring-player em { color: #ef5b68; font-weight: 800; }
.sparring-player > b { color: #657889; font-size: 12px; white-space: nowrap; }
.sparring-lineup {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 7px;
}
.sparring-hero-card,
.sparring-support-card {
  min-width: 0;
  min-height: 74px;
  padding: 6px 7px;
  border: 1px solid rgba(221, 231, 235, .78);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .9);
}
.sparring-hero-icon { position: relative; width: 54px; height: 58px; display: grid; place-items: center; }
.sparring-hero-icon img { max-width: 54px; max-height: 58px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(35, 50, 57, .12)); }
.sparring-hero-icon > b {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 17px;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #7fa8ba;
  color: #fff;
  font-size: 8px;
}
.sparring-hero-card > span:last-child,
.sparring-support-card > span { min-width: 0; display: grid; gap: 3px; }
.sparring-hero-card strong,
.sparring-support-card strong { overflow: hidden; color: #5d7180; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sparring-hero-card small,
.sparring-support-card small { overflow: hidden; color: #586873; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.sparring-hero-card small.has-red { color: #f05360; font-weight: 800; }
.sparring-hero-card .sparring-hero-extra { color: #a18f5c; }
.sparring-hero-card.camp-wei strong { color: #a06db1; }
.sparring-hero-card.camp-shu strong { color: #c89435; }
.sparring-hero-card.camp-wu strong { color: #60a792; }
.sparring-hero-card.camp-qun strong { color: #df7c61; }
.sparring-hero-card.is-empty { opacity: .55; }
.sparring-hero-card.is-empty .sparring-hero-icon { width: 48px; height: 48px; border: 1px dashed #cbd5da; border-radius: 50%; }
.sparring-hero-card.is-empty .sparring-hero-icon > b { position: static; border: 0; background: transparent; color: #9eabb2; font-size: 11px; }
.sparring-support-card img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(35, 50, 57, .1)); }
.sparring-support-card strong { color: #429b9d; }
.sparring-side-summary { padding: 10px 12px 12px; border-top: 1px solid #e6edf1; background: rgba(248, 251, 252, .94); text-align: center; }
.sparring-side.opponent .sparring-side-summary { border-top-color: #eee7e1; background: rgba(255, 250, 246, .88); }
.sparring-side-summary p { margin: 0 0 7px; display: flex; justify-content: center; gap: 7px; font-size: 13px; }
.sparring-side-summary p b { font-weight: 800; }
.sparring-side-summary .wins { color: #39a57d; }
.sparring-side-summary .draws { color: #718494; }
.sparring-side-summary .losses { color: #e35d65; }
.sparring-side-summary dl { margin: 0; display: grid; gap: 3px; }
.sparring-side-summary dl > div { display: flex; justify-content: center; gap: 6px; color: #7b8b98; font-size: 10px; }
.sparring-side-summary dt,
.sparring-side-summary dd { margin: 0; }
.sparring-side-summary dd { color: #536a7b; font-weight: 800; }
.sparring-versus-badge { align-self: center; display: grid; justify-items: center; gap: 5px; }
.sparring-versus-badge b {
  width: 45px;
  height: 45px;
  border: 4px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #7bc0da, #3c91b5);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 6px 18px rgba(52, 124, 156, .22);
}
.sparring-versus-badge small { color: #8a9aa5; font-size: 8px; white-space: nowrap; }
.sparring-rounds { margin-top: 10px; overflow: hidden; border: 1px solid #e1e8eb; border-radius: 12px; background: rgba(255, 255, 255, .92); }
.sparring-rounds > summary { min-height: 40px; padding: 8px 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #536a78; font-size: 10px; font-weight: 800; cursor: pointer; }
.sparring-rounds > summary small { color: #95a2aa; font-size: 8px; font-weight: 500; }
.sparring-rounds > div { padding: 0 10px 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 5px; }
.sparring-rounds > div > span { min-width: 0; padding: 6px 7px; border-radius: 8px; display: grid; grid-template-columns: 20px 36px minmax(0, 1fr); align-items: center; gap: 4px; background: #f4f7f8; color: #677985; }
.sparring-rounds > div > span b { font-size: 8px; }
.sparring-rounds > div > span em { font-size: 9px; font-style: normal; font-weight: 800; }
.sparring-rounds > div > span small { overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.sparring-rounds > div > span.win { background: #edf8f2; color: #328b69; }
.sparring-rounds > div > span.loss { background: #fdf0ef; color: #c65c60; }
.sparring-rounds > div > span.draw { background: #f2f4f6; color: #687886; }
.sparring-rounds > div > span.failed { background: #fbf4e7; color: #a97931; }

/* 切磋使用页面内实时战场，不再依赖任务结果弹窗。站位百分比来自官方 formationConf。 */
.script-operation-card:has(.sparring-inline-results) { grid-column: 1 / -1; }
.sparring-inline-results {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  overflow-x: hidden;
  border-top: 1px solid var(--line);
}
.sparring-inline-results[hidden] { display: none; }
.sparring-inline-results.is-sparring-results {
  max-height: none;
  padding: 0;
  overflow-y: visible;
  border-radius: 12px;
  background: #f8fbfc;
}
.sparring-inline-pending {
  min-height: 80px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  color: #64748b;
  background: radial-gradient(circle at 50% 0, rgba(116, 194, 219, .16), transparent 56%);
}
.sparring-inline-pending::before {
  width: 22px;
  height: 22px;
  border: 2px solid #d9e9ef;
  border-top-color: #4b9db9;
  border-radius: 50%;
  content: "";
  animation: spin .72s linear infinite;
}
.sparring-inline-pending strong { color: #334155; font-size: 12px; }
.sparring-inline-pending small { font-size: 9px; }
.sparring-inline-results .sparring-result-card {
  width: min(100%, 744px);
  min-width: 0;
  margin-inline: auto;
  padding: 10px;
}
.sparring-inline-results .sparring-versus {
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 6px;
}
.sparring-inline-results .sparring-side {
  grid-template-rows: auto auto auto;
  overflow: visible;
  border-radius: 11px;
}
.sparring-inline-results .sparring-player {
  min-height: 62px;
  padding: 7px 8px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 6px;
}
.sparring-inline-results .sparring-player-avatar {
  width: 40px;
  height: 40px;
  border-width: 2px;
}
.sparring-inline-results .sparring-player strong { font-size: 12px; }
.sparring-inline-results .sparring-player > b { font-size: 10px; }
.sparring-inline-results .sparring-player small,
.sparring-inline-results .sparring-player em { font-size: 8px; }
.sparring-inline-results .sparring-side-summary { padding: 7px 8px 8px; }
.sparring-inline-results .sparring-side-summary p { margin-bottom: 4px; gap: 6px; font-size: 11px; }
.sparring-inline-results .sparring-side-summary dl { gap: 1px; }
.sparring-inline-results .sparring-side-summary dl > div { gap: 4px; font-size: 8px; }
.sparring-inline-results .sparring-versus-badge { gap: 3px; }
.sparring-inline-results .sparring-versus-badge b {
  width: 36px;
  height: 36px;
  border-width: 3px;
  font-size: 10px;
}
.sparring-inline-results .sparring-versus-badge small { font-size: 7px; }
.sparring-inline-results .sparring-rounds { margin-top: 7px; border-radius: 9px; }
.sparring-inline-results .sparring-rounds > summary { min-height: 32px; padding: 5px 8px; }
.sparring-inline-results .sparring-rounds > div { padding: 0 7px 7px; }
.sparring-inline-results .sparring-rounds > div > span { padding: 4px 5px; }
.sparring-supports {
  min-width: 0;
  padding: 5px 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 5px;
}
.sparring-support-card {
  min-height: 48px;
  padding: 3px 5px;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px;
  border-radius: 7px;
}
.sparring-support-card.sparring-toy-card > img { width: 35px; height: 42px; object-fit: contain; }
.sparring-pet-card > .peak-arena-pet,
.sparring-pet-card > .workbench-muted-value { width: 36px; min-height: 42px; display: grid; place-items: center; }
.sparring-pet-card .peak-arena-pet { grid-template-columns: 1fr; gap: 0; }
.sparring-pet-card .peak-arena-pet-visual { width: 36px; height: 35px; }
.sparring-pet-card .peak-arena-pet-visual > .peak-arena-pet-image { width: 35px; height: 35px; object-fit: contain; }
.sparring-pet-card .peak-arena-pet-series { top: 0; left: 0; width: 11px; height: 11px; }
.sparring-pet-card .peak-arena-pet-stars { right: auto; bottom: 0; left: 50%; transform: translateX(-50%); }
.sparring-pet-card .peak-arena-pet-stars > img { width: 7px; height: 7px; }
.sparring-pet-card .peak-arena-pet > span:last-child { display: flex; justify-content: center; gap: 4px; }
.sparring-pet-card .peak-arena-pet strong { font-size: 8px; }
.sparring-pet-card .peak-arena-pet small { gap: 1px; font-size: 7px; }
.sparring-pet-card .peak-arena-pet small img { width: 8px; height: 8px; }

.sparring-battlefield {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 406px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid #c9dde5;
  border-radius: 14px;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(255, 247, 204, .78) 0 10%, transparent 36%),
    radial-gradient(ellipse at 18% 55%, rgba(75, 171, 182, .22), transparent 43%),
    radial-gradient(ellipse at 82% 55%, rgba(224, 130, 93, .19), transparent 43%),
    linear-gradient(180deg, #e7f5f2 0 27%, #cfe3d7 28% 31%, #e9dfbe 32% 100%);
  box-shadow: inset 0 -30px 52px rgba(117, 88, 54, .08), 0 5px 16px rgba(50, 90, 105, .07);
}
.sparring-battlefield::before {
  position: absolute;
  inset: 31% 0 0;
  z-index: -1;
  background:
    repeating-linear-gradient(165deg, transparent 0 40px, rgba(130, 102, 62, .055) 41px 42px),
    linear-gradient(90deg, rgba(76, 146, 151, .08), transparent 42% 58%, rgba(184, 106, 79, .07));
  content: "";
}
.sparring-battlefield::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 1px;
  background: linear-gradient(transparent, rgba(88, 111, 114, .26) 18% 82%, transparent);
  content: "";
}
.sparring-field-side-label {
  position: absolute;
  top: 8px;
  z-index: 20;
  padding: 3px 8px;
  border-radius: 999px;
  color: #32758a;
  background: rgba(239, 250, 253, .9);
  font-size: 8px;
  font-weight: 800;
}
.sparring-field-side-label.own { left: 10px; }
.sparring-field-side-label.opponent { right: 10px; color: #a45e4b; background: rgba(255, 246, 238, .92); }
.sparring-field-center {
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%) rotate(-7deg);
  color: rgba(75, 104, 111, .22);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -4px;
}
.sparring-battlefield .sparring-hero-card {
  position: absolute;
  top: var(--formation-y);
  left: var(--formation-x);
  z-index: 5;
  width: 128px;
  height: 96px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: block;
  background: transparent;
  transform: translate(-50%, -50%) scale(var(--formation-scale));
  transform-origin: 50% 70%;
}
.sparring-battlefield .sparring-hero-card[data-slot="1"],
.sparring-battlefield .sparring-hero-card[data-slot="3"],
.sparring-battlefield .sparring-hero-card[data-slot="4"] { z-index: 7; }
.sparring-hero-body {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: end center;
  transform: translateX(-50%);
  isolation: isolate;
}
.sparring-hero-body::before {
  position: absolute;
  inset: -10px -15px -2px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--saint-glow-rgb, 0, 0, 0), .9) 0 20%, rgba(var(--saint-glow-rgb, 0, 0, 0), .5) 35%, rgba(var(--saint-glow-rgb, 0, 0, 0), .16) 55%, transparent 74%);
  filter: blur(6px);
  opacity: var(--saint-glow-opacity, 0);
  content: "";
}
.sparring-hero-body::after {
  position: absolute;
  right: 7px;
  bottom: -2px;
  left: 7px;
  z-index: -1;
  height: 12px;
  border-radius: 50%;
  background: rgba(65, 66, 55, .22);
  filter: blur(4px);
  content: "";
}
.sparring-hero-body > img {
  max-width: 84px;
  max-height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 4px 3px rgba(29, 45, 49, .24));
}
.sparring-hero-card.opponent .sparring-hero-body > img { transform: scaleX(-1); }
.sparring-saint-star {
  position: absolute;
  top: 0;
  right: -9px;
  padding: 1px 4px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 999px;
  color: #fff4a7;
  background: rgba(70, 83, 91, .8);
  box-shadow: none;
  font-size: 6px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.sparring-hero-card[data-saint-star="2"] { --saint-glow-rgb: 70, 205, 116; --saint-glow-opacity: .86; }
.sparring-hero-card[data-saint-star="3"] { --saint-glow-rgb: 60, 159, 255; --saint-glow-opacity: .9; }
.sparring-hero-card[data-saint-star="4"] { --saint-glow-rgb: 255, 145, 49; --saint-glow-opacity: .92; }
.sparring-hero-card[data-saint-star="5"] { --saint-glow-rgb: 247, 75, 79; --saint-glow-opacity: .94; }
.sparring-hero-card[data-saint-star="6"] { --saint-glow-rgb: 255, 206, 65; --saint-glow-opacity: 1; }
.sparring-hero-card:is([data-saint-star="2"], [data-saint-star="3"], [data-saint-star="4"], [data-saint-star="5"], [data-saint-star="6"]) .sparring-saint-star {
  border-color: rgba(var(--saint-glow-rgb), .72);
  background: rgba(var(--saint-glow-rgb), .82);
  box-shadow: 0 0 7px rgba(var(--saint-glow-rgb), .62);
  color: #fff;
}
.sparring-hero-identity {
  position: absolute;
  top: 65px;
  left: 50%;
  width: 106px;
  display: grid;
  justify-items: center;
  gap: 0;
  transform: translateX(-50%);
  text-align: center;
}
.sparring-hero-identity strong {
  max-width: 100%;
  overflow: hidden;
  padding: 1px 5px;
  border-radius: 4px;
  color: #344f58;
  background: rgba(255, 255, 255, .86);
  font-size: 7px;
  text-overflow: ellipsis;
  text-shadow: 0 1px #fff;
  white-space: nowrap;
}
.sparring-hero-identity small { color: #e84f5e; font-size: 6px; font-weight: 800; text-shadow: 0 1px #fff; }
.sparring-hero-equipment {
  position: absolute;
  top: 8px;
  left: calc(50% + 33px);
  width: 80px;
  display: grid;
  gap: 2px;
}
.sparring-hero-card.opponent .sparring-hero-equipment { right: calc(50% + 33px); left: auto; justify-items: end; }
.sparring-fish-chip,
.sparring-pearl-chip {
  max-width: 80px;
  min-height: 19px;
  padding: 1px 4px;
  border: 1px solid rgba(187, 203, 208, .76);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #526973;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 2px 7px rgba(43, 68, 77, .09);
}
.sparring-fish-chip img { width: 30px; height: 23px; object-fit: contain; }
.sparring-fish-chip b,
.sparring-pearl-chip b { overflow: hidden; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.sparring-fish-chip.is-empty { color: #9aa7ab; font-size: 6px; }
.sparring-pearl-chip { flex-wrap: wrap; border-color: rgba(188, 161, 209, .7); }
.sparring-pearl-colors { display: inline-flex; gap: 2px; margin-left: auto; }
.sparring-pearl-colors i {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(66, 73, 80, .18);
  border-radius: 50%;
  background: #e7eaec;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.48);
}
.sparring-pearl-colors i[data-color="white"] { background: #f7f7f3; }
.sparring-pearl-colors i[data-color="green"] { background: #5fc878; }
.sparring-pearl-colors i[data-color="blue"] { background: #55a9e8; }
.sparring-pearl-colors i[data-color="purple"] { background: #a965dc; }
.sparring-pearl-colors i[data-color="orange"] { background: #ee9c40; }
.sparring-pearl-colors i[data-color="red"] { background: #ef5660; box-shadow: 0 0 5px rgba(239,86,96,.5); }
.sparring-empty-position {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 54px;
  height: 54px;
  border: 1px dashed rgba(92, 119, 123, .33);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  color: rgba(82, 109, 113, .48);
  background: rgba(255,255,255,.24);
  font-size: 10px;
}

/* 紧凑原生战场：背景直接取自官方 map_40001，武将、玩家、玩具与宠物共用一个场景。 */
.script-result-dialog.is-sparring-dialog { width: min(744px, calc(100vw - 24px)); }
.sparring-inline-results .sparring-result-card {
  width: min(100%, 676px);
  min-width: 0;
  padding: 7px;
  background: #f9fbfc;
}
.sparring-battlefield {
  width: min(100%, 660px);
  min-width: 0;
  height: 706px;
  margin-top: 0;
  border-color: #dce4e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(50, 70, 80, .08);
}
.sparring-battlefield::before {
  display: none;
}
.sparring-battlefield::after { display: none; }
.sparring-field-player {
  position: absolute;
  top: 7px;
  z-index: 30;
  min-width: 192px;
  max-width: 232px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: #334155;
  text-shadow: none;
}
.sparring-field-player.own { left: 9px; }
.sparring-field-player.opponent { right: 9px; direction: rtl; text-align: right; }
.sparring-field-player.opponent > * { direction: ltr; }
.sparring-field-player .sparring-player-avatar {
  width: 46px;
  height: 46px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: 0 1px 5px rgba(51, 65, 85, .14);
}
.sparring-field-player > span:nth-child(2) { min-width: 0; display: grid; gap: 0; }
.sparring-field-player strong,
.sparring-field-player small,
.sparring-field-player > b {
  overflow: hidden;
  color: #334155;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sparring-field-player strong { font-size: 15px; }
.sparring-field-player small { color: #64748b; font-size: 11px; }
.sparring-field-player > b { color: #c0841d; font-size: 12px; }
.sparring-field-center {
  top: 5px;
  z-index: 28;
  min-width: 76px;
  display: grid;
  justify-items: center;
  gap: 0;
  transform: translateX(-50%);
  color: #b66a17;
  letter-spacing: 0;
  text-shadow: none;
}
.sparring-field-center b { font-size: 28px; line-height: 1; }
.sparring-field-center small { color: #8b6b47; font-size: 11px; text-shadow: none; }
.sparring-battlefield .sparring-hero-card {
  width: 147px;
  height: 132px;
}
.sparring-battlefield .sparring-hero-card.is-empty { display: none; }
.sparring-hero-body { width: 84px; height: 92px; }
.sparring-hero-body > img { max-width: 98px; max-height: 98px; }
.sparring-hero-card.is-body-missing .sparring-hero-body::before,
.sparring-hero-card.is-body-missing .sparring-hero-body::after { display: none; }
.sparring-saint-star {
  top: -13px;
  right: auto;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  font-size: 8px;
}
.sparring-hero-identity { top: 96px; width: 126px; }
.sparring-hero-identity strong {
  padding: 0 3px;
  color: #fff4db;
  background: transparent;
  font-size: 12px;
  text-shadow: 0 1px 1px #32231a, 1px 0 1px #32231a, -1px 0 1px #32231a;
}
.sparring-hero-identity small {
  color: #ff6570;
  font-size: 10px;
  text-shadow: 0 1px 1px #fff, 1px 0 1px #fff, -1px 0 1px #fff;
}
.sparring-hero-equipment {
  top: -2px;
  right: calc(50% + 15px);
  left: auto;
  z-index: 8;
  box-sizing: border-box;
  width: 68px;
  height: 68px;
  padding: 3px;
  border: 1px solid rgba(181, 196, 203, .86);
  border-radius: 50%;
  align-content: center;
  justify-items: center;
  gap: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 8px rgba(43, 68, 77, .14), inset 0 0 0 2px rgba(243, 247, 248, .92);
}
.sparring-hero-card.opponent .sparring-hero-equipment {
  right: auto;
  left: calc(50% + 15px);
  justify-items: center;
}
.sparring-hero-card.own:is([data-slot="0"], [data-slot="1"]) .sparring-hero-equipment {
  right: auto;
  left: calc(50% + 15px);
}
.sparring-hero-card.opponent:is([data-slot="0"], [data-slot="1"]) .sparring-hero-equipment {
  right: calc(50% + 15px);
  left: auto;
}
.sparring-hero-card.own[data-slot="3"] .sparring-hero-equipment {
  right: calc(50% + 10px);
  left: auto;
}
.sparring-hero-card.opponent[data-slot="3"] .sparring-hero-equipment {
  right: auto;
  left: calc(50% + 10px);
}
.sparring-fish-chip,
.sparring-pearl-chip {
  width: max-content;
  max-width: 60px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #526773;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  text-shadow: 0 1px #fff;
}
.sparring-fish-chip {
  display: grid;
  justify-items: center;
  gap: 0;
}
.sparring-fish-chip img { width: 34px; height: 29px; filter: drop-shadow(0 1px 2px rgba(30, 20, 14, .28)); }
.sparring-fish-meta { max-width: 60px; display: flex; align-items: center; justify-content: center; gap: 2px; overflow: hidden; }
.sparring-fish-chip b,
.sparring-pearl-chip b { max-width: 39px; font-size: 7px; }
.sparring-fish-star { color: #d3921f; font-size: 7px; font-style: normal; font-weight: 850; white-space: nowrap; }
.sparring-pearl-chip { margin-top: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.sparring-pearl-colors { gap: 1px; }
.sparring-pearl-colors i { width: 7px; height: 7px; }
.sparring-empty-position { display: none; background: transparent; }
.sparring-field-support {
  position: absolute;
  bottom: 9px;
  z-index: 18;
  width: 90px;
  height: 103px;
  display: grid;
  grid-template-rows: 17px 76px 10px;
  justify-items: center;
  text-align: center;
  transform: translateX(-50%);
}
.sparring-field-support.own.toy { left: 10%; }
.sparring-field-support.own.pet { left: 30%; }
.sparring-field-support.opponent.pet { left: 70%; }
.sparring-field-support.opponent.toy { left: 90%; }
.sparring-field-support > strong {
  z-index: 3;
  max-width: 100px;
  overflow: hidden;
  color: #425466;
  font-size: 11px;
  text-overflow: ellipsis;
  text-shadow: 0 1px #fff;
  white-space: nowrap;
}
.sparring-field-support > small {
  color: #64748b;
  font-size: 9px;
  text-shadow: none;
}
.sparring-field-support-visual {
  position: relative;
  width: 76px;
  height: 76px;
  border: 2px solid rgba(255, 232, 164, .82);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 45% 40%, rgba(184, 94, 58, .88), rgba(62, 28, 29, .94) 70%);
  box-shadow: inset 0 0 8px rgba(255, 192, 88, .36), 0 2px 5px rgba(35, 22, 17, .45);
}
.sparring-field-support.opponent .sparring-field-support-visual {
  border-color: rgba(255, 174, 152, .86);
  background: radial-gradient(circle at 45% 40%, rgba(173, 69, 71, .9), rgba(54, 25, 31, .96) 72%);
}
.sparring-field-support.toy .sparring-field-support-visual > img { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(24, 14, 12, .45)); }
.sparring-field-support .peak-arena-pet { display: grid; justify-items: center; gap: 0; }
.sparring-field-support .peak-arena-pet-visual { width: 66px; height: 62px; }
.sparring-field-support .peak-arena-pet-visual > .peak-arena-pet-image { width: 64px; height: 64px; }
.sparring-field-support .peak-arena-pet-series { top: 0; left: 0; width: 16px; height: 16px; }
.sparring-field-support .peak-arena-pet-stars { right: auto; bottom: 0; left: 50%; transform: translateX(-50%); }
.sparring-field-support .peak-arena-pet-stars > img { width: 10px; height: 10px; }
.sparring-field-support .peak-arena-pet > span:last-child { display: flex; justify-content: center; gap: 3px; line-height: 1; }
.sparring-field-support .peak-arena-pet strong { font-size: 11px; }
.sparring-field-support .peak-arena-pet small { gap: 1px; font-size: 10px; }
.sparring-field-support .peak-arena-pet small img { width: 11px; height: 11px; }
.sparring-field-support .workbench-muted-value { color: rgba(255,255,255,.72); background: transparent; font-size: 10px; }
.sparring-field-support.pet { height: 93px; grid-template-rows: 17px 76px; }
.sparring-field-support.pet .sparring-field-support-visual {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.sparring-field-support.pet .peak-arena-pet-stars,
.sparring-field-support.pet .peak-arena-pet > span:last-child { display: none; }
.sparring-field-support.pet .workbench-muted-value { color: #94a3b8; }
.sparring-battle-result {
  width: min(100%, 660px);
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #d9e2e6;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, .92);
}
.sparring-compact-summary { min-width: 0; padding: 8px 10px; display: grid; justify-items: center; gap: 4px; }
.sparring-compact-summary + .sparring-compact-summary { border-left: 1px solid #e1e6e8; }
.sparring-compact-summary p { margin: 0; display: flex; gap: 12px; font-size: 20px; line-height: 1.15; }
.sparring-compact-summary .wins { color: #2f9e77; }
.sparring-compact-summary .draws { color: #6f7f8a; }
.sparring-compact-summary .losses { color: #df5660; }
.sparring-compact-summary small { max-width: 100%; overflow: hidden; color: #526773; font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.sparring-inline-results[data-stage="running"] .sparring-result-card { animation: sparring-live-in .2s ease-out; }
@media (min-width: 761px) {
  .script-result-dialog.is-sparring-dialog { width: min(634px, calc(100vw - 24px)); }
  .sparring-inline-results .sparring-result-card { width: min(100%, 566px); min-width: 0; padding: 7px; }
  .sparring-battlefield { width: min(100%, 550px); min-width: 0; height: 550px; }
  .sparring-battle-result { width: min(100%, 550px); min-width: 0; min-height: 72px; }
  .sparring-battlefield .sparring-hero-card {
    --formation-scale: .96 !important;
    width: 132px;
    height: 118px;
  }
  .sparring-battlefield .sparring-hero-card[data-slot="0"] { --formation-y: 37% !important; }
  .sparring-battlefield .sparring-hero-card[data-slot="1"] { --formation-y: 59% !important; }
  .sparring-battlefield .sparring-hero-card[data-slot="2"] { --formation-y: 24% !important; }
  .sparring-battlefield .sparring-hero-card[data-slot="3"] { --formation-y: 48% !important; }
  .sparring-battlefield .sparring-hero-card[data-slot="4"] { --formation-y: 70% !important; }
  .sparring-hero-body { width: 85px; height: 94px; }
  .sparring-hero-body > img { max-width: 102px; max-height: 102px; }
  .sparring-saint-star { top: -11px; font-size: 7px; }
  .sparring-hero-identity { top: 87px; width: 112px; }
  .sparring-hero-identity strong { font-size: 11px; }
  .sparring-hero-identity small { font-size: 9px; }
  .sparring-field-player { min-width: 165px; max-width: 200px; grid-template-columns: 40px minmax(0, 1fr) auto; }
  .sparring-field-player .sparring-player-avatar { width: 40px; height: 40px; }
  .sparring-field-player strong { font-size: 14px; }
  .sparring-field-player small { font-size: 10px; }
  .sparring-field-player > b { font-size: 11px; }
  .sparring-field-center b { font-size: 23px; }
  .sparring-field-support { bottom: 7px; width: 78px; height: 90px; grid-template-rows: 15px 64px 10px; }
  .sparring-field-support > strong { font-size: 10px; }
  .sparring-field-support-visual { width: 64px; height: 64px; }
  .sparring-field-support.toy .sparring-field-support-visual > img { width: 56px; height: 56px; }
  .sparring-field-support.pet { height: 79px; grid-template-rows: 15px 64px; }
  .sparring-field-support .peak-arena-pet-visual { width: 56px; height: 53px; }
  .sparring-field-support .peak-arena-pet-visual > .peak-arena-pet-image { width: 54px; height: 54px; }
}
@keyframes sparring-live-in { from { opacity: .72; } }

/* Cloud 切磋与 portable-enhancer 使用相同的信息层级和 2+3 阵容结构。 */
.script-operation-card.cloud-sparring-shell {
  grid-column: 1 / -1;
  gap: 10px;
  container: cloud-sparring-shell / inline-size;
}
.script-operation-card > .cloud-sparring-heading {
  width: min(100%, 620px);
  margin-inline: auto;
  padding-bottom: 11px;
  border-bottom: 1px solid #dbeafe;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.cloud-sparring-heading > img { width: 38px; height: 38px; object-fit: contain; }
.cloud-sparring-heading > span { min-width: 0; display: grid; gap: 2px; }
.cloud-sparring-heading strong { color: #0f172a; font-size: 15px; }
.cloud-sparring-heading small { color: #64748b; font-size: 9px; line-height: 1.45; }
.cloud-sparring-form {
  width: min(100%, 620px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(108px, .55fr);
  gap: 8px;
}
.cloud-sparring-control {
  min-width: 0;
  padding: 9px;
  border: 1px solid #dbeafe;
  display: grid;
  gap: 5px;
  background: #f8fbff;
}
.cloud-sparring-control > span:first-child { color: #475569; font-size: 9px; font-weight: 800; }
.cloud-sparring-input {
  height: 36px;
  border: 1px solid #cbd5e1;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  background: #fff;
}
.cloud-sparring-input > img { width: 22px; height: 22px; justify-self: center; object-fit: contain; }
.cloud-sparring-input > input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 7px;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: transparent;
  font: 700 11px/34px inherit;
}
.cloud-sparring-input:focus-within,
.cloud-sparring-stepper:focus-within { border-color: #2563eb; outline: 2px solid rgba(37, 99, 235, .12); }
.cloud-sparring-stepper {
  height: 36px;
  border: 1px solid #cbd5e1;
  display: grid;
  grid-template-columns: 30px minmax(40px, 1fr) 30px;
  background: #fff;
}
.cloud-sparring-stepper > button {
  border: 0;
  background: #eff6ff;
  color: #1d4ed8;
  font: 900 17px/34px inherit;
  cursor: pointer;
}
.cloud-sparring-stepper > button:hover { background: #dbeafe; }
.cloud-sparring-stepper > input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: #fff;
  font: 800 12px/34px inherit;
  text-align: center;
}
.cloud-sparring-presets {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}
.cloud-sparring-presets > button {
  height: 29px;
  border: 1px solid #bfdbfe;
  background: #fff;
  color: #1d4ed8;
  font: 800 9px/27px inherit;
  cursor: pointer;
}
.cloud-sparring-presets > button:hover,
.cloud-sparring-presets > button.active { border-color: #2563eb; background: #eff6ff; }
.cloud-sparring-run {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.cloud-sparring-run > button { height: 36px; }
.cloud-sparring-run > .cloud-sparring-cancel { min-width: 72px; }
.cloud-sparring-shell > .script-operation-feedback { width: min(100%, 620px); margin-inline: auto; }
.sparring-inline-results.is-sparring-results,
.script-result-log.is-sparring-results {
  width: 100%;
  min-width: 0;
  max-height: none;
  margin-top: 2px;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.cloud-sparring-result {
  box-sizing: border-box;
  width: min(100%, 620px);
  min-width: 0;
  max-width: 100%;
  margin-inline: auto;
  padding: 0;
  background: #f8fbfc;
  container: cloud-sparring-result / inline-size;
}
.cloud-sparring-result + .cloud-sparring-result { margin-top: 10px; }
.cloud-sparring-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #dbe4ea;
  border-bottom: 0;
  background: #fff;
}
.cloud-sparring-account .account-avatar { width: 28px; height: 28px; }
.cloud-sparring-account strong { color: #334155; font-size: 12px; }
.cloud-sparring-report { min-width: 0; display: grid; gap: 0; border: 1px solid #dbe4ea; background: #f8fbfc; }
.cloud-sparring-scoreboard {
  border-bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: stretch;
  background: #fff;
}
.cloud-sparring-player {
  min-width: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.cloud-sparring-player.opponent { grid-template-columns: minmax(0, 1fr) 38px; text-align: right; }
.cloud-sparring-player > img { width: 36px; height: 36px; border: 2px solid #e2e8f0; background: #f8fafc; object-fit: cover; }
.cloud-sparring-player.opponent > img { grid-column: 2; grid-row: 1; }
.cloud-sparring-player > span { min-width: 0; display: grid; gap: 1px; }
.cloud-sparring-player.opponent > span { grid-column: 1; grid-row: 1; }
.cloud-sparring-player strong,
.cloud-sparring-player small,
.cloud-sparring-player b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-sparring-player strong { color: #334155; font-size: 10px; }
.cloud-sparring-player small { color: #64748b; font-size: 7px; }
.cloud-sparring-player b { color: #c0841d; font-size: 8px; }
.cloud-sparring-player-stats { min-width: 0; display: flex; align-items: center; gap: 4px; }
.cloud-sparring-player.opponent .cloud-sparring-player-stats { justify-content: flex-end; }
.cloud-sparring-player-red-total { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 1px; color: #c92f45; font-style: normal; line-height: 1; white-space: nowrap; }
.cloud-sparring-player-red-total > img { width: 8px; height: 9px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(120, 0, 18, .24)); }
.cloud-sparring-player-red-total > b { color: #c92f45; font-size: 7px; line-height: 1; }
.cloud-sparring-versus {
  border-inline: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #b66a17;
}
.cloud-sparring-versus strong { font-size: 15px; }
.cloud-sparring-versus small { color: #8b6b47; font-size: 7px; }
.cloud-sparring-battle {
  padding: 0 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  grid-template-areas: "own versus opponent";
  align-items: center;
  gap: 5px;
  background: linear-gradient(90deg, rgba(219, 244, 247, .88) 0%, rgba(255, 228, 231, .84) 100%);
}
.cloud-sparring-side { min-width: 0; }
.cloud-sparring-side.own { grid-area: own; }
.cloud-sparring-side.opponent { grid-area: opponent; }
.cloud-sparring-lineup {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 3px 2px;
}
.cloud-sparring-hero[data-slot="0"] { grid-column: 2 / 4; grid-row: 1; }
.cloud-sparring-hero[data-slot="1"] { grid-column: 4 / 6; grid-row: 1; }
.cloud-sparring-hero[data-slot="2"] { grid-column: 1 / 3; grid-row: 2; }
.cloud-sparring-hero[data-slot="3"] { grid-column: 3 / 5; grid-row: 2; }
.cloud-sparring-hero[data-slot="4"] { grid-column: 5 / 7; grid-row: 2; }
.cloud-sparring-stage-versus {
  grid-area: versus;
  align-self: stretch;
  min-height: 156px;
  display: grid;
  place-items: center;
  color: #d78322;
  text-shadow: 0 2px 0 #fff, 0 5px 14px rgba(180, 105, 20, .2);
}
.cloud-sparring-stage-versus strong { font-size: 30px; font-style: italic; letter-spacing: -.08em; }
.cloud-sparring-hero {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 64px);
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  display: grid;
  justify-self: center;
  justify-items: center;
  align-content: start;
  gap: 0;
  overflow: visible;
  background: transparent;
}
.cloud-sparring-hero-visual {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid rgba(203, 213, 225, .92);
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc, #e9f3f5);
}
.cloud-sparring-hero.opponent .cloud-sparring-hero-visual > img { transform: scaleX(-1); }
.cloud-sparring-hero-visual > img { max-width: 108%; max-height: 108%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(30, 41, 59, .2)); }
.cloud-sparring-saint-stars {
  position: absolute;
  top: 1px;
  left: 1px;
  z-index: 2;
  width: max-content;
  min-height: 12px;
  padding: 0;
  display: flex;
  align-items: center;
  overflow: visible;
  background: transparent;
}
.cloud-sparring-saint-stars > img { width: 10px; height: 10px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(120, 72, 0, .32)); }
.cloud-sparring-saint-stars > img + img { margin-left: -5.5px; }
.cloud-sparring-red-quench {
  position: absolute;
  top: 1px;
  right: 1px;
  z-index: 3;
  box-sizing: border-box;
  min-width: 15px;
  height: 13px;
  padding: 1px 2px;
  border: 1px solid rgba(255, 255, 255, .9);
  display: flex;
  align-items: center;
  gap: 1px;
  background: rgba(204, 36, 55, .94);
  color: #fff;
}
.cloud-sparring-red-quench > img { width: 6px; height: 7px; object-fit: contain; filter: brightness(1.3); }
.cloud-sparring-red-quench > b { font-size: 6px; line-height: 1; }
.cloud-sparring-fish {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 31px;
  margin-top: -3px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: minmax(22px, .85fr) minmax(0, 1.15fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  background: #f8fafc;
}
.cloud-sparring-fish-icon {
  position: relative;
  grid-column: 1;
  grid-row: 1 / 3;
  width: 100%;
  height: 31px;
  display: grid;
  place-items: start center;
  overflow: visible;
}
.cloud-sparring-fish-icon > img { width: min(27px, 90%); height: 25px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(30, 41, 59, .18)); }
.cloud-sparring-fish-copy {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 100%;
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  overflow: hidden;
  text-align: center;
}
.cloud-sparring-fish-copy > strong,
.cloud-sparring-fish-copy > small {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  letter-spacing: -.35px;
  white-space: nowrap;
}
.cloud-sparring-fish-copy > strong { color: #334155; font-size: 8px; font-weight: 800; line-height: 1.1; }
.cloud-sparring-fish-copy > small { color: #64748b; font-size: 7px; font-weight: 700; line-height: 1.1; }
.cloud-sparring-pearl-colors { position: absolute; left: 50%; bottom: 1px; display: flex; padding: 0; background: transparent; transform: translateX(-50%); }
.cloud-sparring-pearl-colors > i { width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; background: #e2e8f0; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }
.cloud-sparring-pearl-colors > i + i { margin-left: -2px; }
.cloud-sparring-pearl-colors > i[data-color="white"] { background: #f7f7f3; }
.cloud-sparring-pearl-colors > i[data-color="green"] { background: #5fc878; }
.cloud-sparring-pearl-colors > i[data-color="blue"] { background: #55a9e8; }
.cloud-sparring-pearl-colors > i[data-color="purple"] { background: #a965dc; }
.cloud-sparring-pearl-colors > i[data-color="orange"] { background: #ee9c40; }
.cloud-sparring-pearl-colors > i[data-color="red"] { background: #ef5660; }
.cloud-sparring-hero.is-empty { min-height: 65px; border: 1px dashed rgba(203, 213, 225, .92); place-content: center; color: #94a3b8; font-size: 7px; }
.cloud-sparring-supports {
  padding: 0 8px;
  border-top: 1px solid #dbe4ea;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  background: #fff;
}
.cloud-sparring-support {
  min-width: 0;
  padding: 4px;
  border: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  background: #f8fafc;
}
.cloud-sparring-support > img { width: 27px; height: 27px; object-fit: contain; }
.cloud-sparring-support > span { min-width: 0; display: grid; gap: 1px; }
.cloud-sparring-support strong,
.cloud-sparring-support small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-sparring-support strong { color: #475569; font-size: 7px; }
.cloud-sparring-support small { color: #94a3b8; font-size: 6px; }
.cloud-sparring-summary { border-top: 1px solid #dbe4ea; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; }
.cloud-sparring-summary > article { min-width: 0; padding: 6px 8px; display: grid; justify-items: center; gap: 3px; }
.cloud-sparring-summary > article + article { border-left: 1px solid #e2e8f0; }
.cloud-sparring-summary p { margin: 0; display: flex; justify-content: center; gap: 7px; font-size: 13px; }
.cloud-sparring-summary .wins { color: #2f9e77; }
.cloud-sparring-summary .draws { color: #6f7f8a; }
.cloud-sparring-summary .losses { color: #df5660; }
.cloud-sparring-summary small { max-width: 100%; display: grid; justify-items: center; gap: 1px; color: #64748b; font-size: 9px; line-height: 1.35; text-align: center; }
.cloud-sparring-rounds { border-top: 1px solid #dbe4ea; background: #fff; }
.cloud-sparring-rounds > summary { min-height: 32px; padding: 0 9px; display: flex; align-items: center; justify-content: space-between; color: #334155; font-size: 9px; font-weight: 800; cursor: pointer; }
.cloud-sparring-rounds > summary small { color: #64748b; font-size: 7px; font-weight: 500; }
.cloud-sparring-round-list { padding: 0 8px 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(112px, 100%), 1fr)); gap: 4px; }
.cloud-sparring-round { min-width: 0; padding: 4px; display: grid; grid-template-columns: 14px 18px minmax(0, 1fr); align-items: center; gap: 2px; background: #f8fafc; color: #64748b; font-size: 6px; }
.cloud-sparring-round > b,
.cloud-sparring-round > em { font-size: 7px; font-style: normal; }
.cloud-sparring-round > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-sparring-round.win { background: #edf8f2; color: #328b69; }
.cloud-sparring-round.loss { background: #fdf0ef; color: #c65c60; }
.cloud-sparring-round.draw { background: #f2f4f6; color: #687886; }
.cloud-sparring-round.failed { background: #fbf4e7; color: #a97931; }
.cloud-sparring-warning,
.cloud-sparring-error { padding: 8px; border-bottom: 1px solid #f0d5aa; background: #fff8e8; color: #9a681f; font-size: 8px; line-height: 1.5; }
.cloud-sparring-error { border: 1px solid #f1cccc; color: #ae4c4c; background: #fdf1f0; }
.cloud-sparring-pending { width: min(100%, 620px); margin-inline: auto; padding: 20px; border: 1px dashed #bfdbfe; display: grid; justify-items: center; gap: 4px; color: #64748b; background: #f8fbff; }
.cloud-sparring-pending strong { color: #334155; font-size: 12px; }
.cloud-sparring-pending small { font-size: 9px; }
.sparring-inline-results[data-stage="running"] .cloud-sparring-result { animation: sparring-live-in .2s ease-out; }
@media (max-width: 520px) {
  .cloud-sparring-form { grid-template-columns: minmax(0, 1.35fr) minmax(104px, .65fr); gap: 6px; }
  .cloud-sparring-control { padding: 7px; }
  .cloud-sparring-battle { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); gap: 3px; padding: 0 3px; }
  .cloud-sparring-lineup { gap: 2px 1px; }
  .cloud-sparring-stage-versus strong { font-size: 24px; }
  .cloud-sparring-saint-stars { min-height: 10px; }
  .cloud-sparring-saint-stars > img { width: 8px; height: 8px; }
  .cloud-sparring-red-quench { min-width: 13px; height: 11px; padding: 1px; }
  .cloud-sparring-red-quench > img { width: 5px; height: 6px; }
  .cloud-sparring-red-quench > b { font-size: 5px; }
}
@container cloud-sparring-shell (max-width: 430px) {
  .cloud-sparring-form { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cloud-sparring-presets,
  .cloud-sparring-run { grid-column: 1; }
  .cloud-sparring-presets { grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); }
}
@container cloud-sparring-result (max-width: 430px) {
  .cloud-sparring-scoreboard { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); }
  .cloud-sparring-player { grid-template-columns: 31px minmax(0, 1fr); gap: 4px; padding: 6px 5px; }
  .cloud-sparring-player.opponent { grid-template-columns: minmax(0, 1fr) 31px; }
  .cloud-sparring-player > img { width: 29px; height: 29px; }
  .cloud-sparring-player small { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
  .cloud-sparring-battle { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 2px; padding: 0 3px; }
  .cloud-sparring-stage-versus strong { font-size: 22px; }
  .cloud-sparring-fish { min-height: 40px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 22px auto; align-content: start; }
  .cloud-sparring-fish-icon { grid-column: 1; grid-row: 1; height: 22px; }
  .cloud-sparring-fish-icon > img { width: 65.6%; height: 22px; }
  .cloud-sparring-fish-copy { grid-column: 1; grid-row: 2; padding: 0 1px 1px; }
  .cloud-sparring-supports { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding-inline: 4px; }
  .cloud-sparring-support { grid-template-columns: minmax(18px, 24px) minmax(0, 1fr); gap: 2px; padding: 3px 2px; }
  .cloud-sparring-support > img { width: min(22px, 100%); height: 22px; }
  .cloud-sparring-support strong { font-size: 6px; }
  .cloud-sparring-support small { font-size: 5px; }
}
@container cloud-sparring-result (max-width: 340px) {
  .cloud-sparring-battle {
    grid-template-columns: minmax(0, 1fr) minmax(18px, 22px) minmax(0, 1fr);
    grid-template-areas: "own versus opponent";
    gap: 1px;
    padding: 0 2px;
    background: linear-gradient(90deg, rgba(219, 244, 247, .88) 0%, rgba(255, 228, 231, .84) 100%);
  }
  .cloud-sparring-lineup { gap: 2px 0; }
  .cloud-sparring-stage-versus {
    min-height: 0;
    display: grid;
    place-items: center;
  }
  .cloud-sparring-stage-versus strong { font-size: clamp(13px, 6cqi, 18px); }
  .cloud-sparring-fish-copy > strong { font-size: 6px; letter-spacing: -.35px; }
  .cloud-sparring-fish-copy > small { font-size: 5px; letter-spacing: -.35px; }
  .cloud-sparring-supports { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cloud-sparring-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cloud-sparring-summary > article { padding: 6px 3px; }
  .cloud-sparring-summary p { gap: 4px; font-size: 11px; }
  .cloud-sparring-summary small { font-size: 8px; }
}
.script-result-log.is-car-results { gap: 18px; max-height: min(440px, 58dvh); padding: 10px 0 2px; }
.script-car-account-result { min-width: 0; display: grid; gap: 0; }
.script-car-account-result + .script-car-account-result { padding-top: 10px; border-top: 1px solid var(--line-strong); }
.script-car-account-result > header { display: flex; align-items: center; gap: 8px; padding: 4px 2px 9px; }
.script-car-account-result > header .account-avatar { width: 28px; height: 28px; }
.script-car-account-result > header strong { font-size: 12px; }
.script-car-result-row { min-width: 0; display: grid; grid-template-columns: 74px 150px minmax(0, 1fr); align-items: center; gap: 11px; min-height: 62px; padding: 8px 2px; border-bottom: 1px solid #e2e8f0; }
.script-car-result-row > header { display: grid; gap: 3px; }
.script-car-result-row > header strong { color: #334155; font-size: 13px; }
.script-car-result-row > header em { width: max-content; padding: 2px 5px; border-radius: 3px; color: #64748b; background: #f1f5f9; font-size: 9px; font-style: normal; font-weight: 730; }
.script-car-result-row > header em[data-tone="success"] { color: var(--green-dark); background: #eaf5ef; }
.script-car-result-row > header em[data-tone="error"] { color: #b34f4f; background: #faeeee; }
.script-car-result-facts { display: flex; align-items: center; gap: 15px; }
.script-car-result-facts > span { min-width: 58px; display: grid; gap: 2px; }
.script-car-result-facts small { color: #94a3b8; font-size: 9px; }
.script-car-result-facts strong { color: #475569; font-size: 12px; font-variant-numeric: tabular-nums; }
.script-car-rewards { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; }
.script-car-rewards > span { min-width: 0; display: grid; grid-template-columns: 22px auto auto; align-items: center; gap: 4px; }
.script-car-rewards img { width: 21px; height: 21px; object-fit: contain; }
.script-car-rewards small { color: #64748b; font-size: 9px; white-space: nowrap; }
.script-car-rewards strong { color: #334155; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.script-car-rewards > small, .script-car-result-empty { color: #94a3b8; font-size: 10px; }
.script-car-result-error { padding: 12px; border-left: 3px solid #c85d5d; color: #ae4c4c; background: #fdf1f0; font-size: 11px; }
.script-result-log.is-monthly-progress {
  gap: 18px;
  max-height: none;
  padding: 18px 2px 4px;
  overflow: visible;
  border-top: 0;
}
.script-result-log.is-tower-progress {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: none;
  padding: 20px 0 6px;
  overflow: visible;
  border-top: 0;
}
.script-tower-progress-stat {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 5px 15px;
}
.script-tower-progress-stat + .script-tower-progress-stat { border-left: 1px solid var(--line); }
.script-tower-progress-stat > span:first-child {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}
.script-tower-progress-stat img { width: 42px; height: 42px; object-fit: contain; }
.script-tower-progress-stat > span:last-child { min-width: 0; display: grid; gap: 2px; }
.script-tower-progress-stat small { color: #64748b; font-size: 11px; white-space: nowrap; }
.script-tower-progress-stat output {
  color: #334155;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.script-tower-progress-stat[data-state="waiting"] img { opacity: .62; filter: saturate(.72); }
.script-tower-progress-stat[data-state="completed"] output { color: var(--green); }
.script-tower-progress-stat[data-state="error"] output { color: #b64c4c; }
.script-result-log.is-evotower-claim {
  max-height: min(520px, 62dvh);
  gap: 16px;
  padding: 16px 0 3px;
  overflow-x: hidden;
  border-top: 0;
}
.script-evotower-claim-dashboard {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.script-evotower-claim-stat {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 11px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: linear-gradient(145deg, #ffffff, #f2f7f4);
}
.script-evotower-claim-stat > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; }
.script-evotower-claim-stat img { width: 29px; height: 29px; object-fit: contain; }
.script-evotower-claim-stat > span:last-child { min-width: 0; display: grid; gap: 2px; }
.script-evotower-claim-stat > span:last-child > small:first-child { color: #64748b; font-size: 10px; white-space: nowrap; }
.script-evotower-claim-stat > span:last-child > span { display: flex; align-items: baseline; gap: 3px; }
.script-evotower-claim-stat output { color: #334155; font-size: 21px; font-weight: 820; line-height: 1; font-variant-numeric: tabular-nums; }
.script-evotower-claim-stat em { color: #64748b; font-size: 9px; font-style: normal; white-space: nowrap; }
.script-evotower-claim-stat [data-role="detail"] { overflow: hidden; color: #94a3b8; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.script-evotower-claim-stat[data-state="waiting"] { opacity: .68; }
.script-evotower-claim-stat[data-state="running"] { border-color: #cddfd6; background: #f4faf7; }
.script-evotower-claim-stat[data-state="completed"] output { color: var(--green); }
.script-evotower-claim-stat[data-state="error"] { border-color: #e7c7c7; background: #fdf4f3; }
.script-evotower-claim-stat[data-state="error"] output,
.script-evotower-claim-stat[data-state="error"] [data-role="detail"] { color: #b64c4c; }
.script-evotower-claim-account { display: grid; gap: 10px; }
.script-evotower-claim-account + .script-evotower-claim-account { padding-top: 15px; border-top: 1px solid var(--line-strong); }
.script-evotower-claim-account > header { display: flex; align-items: center; gap: 8px; }
.script-evotower-claim-account > header .account-avatar { width: 30px; height: 30px; }
.script-evotower-claim-account > header > span { display: grid; gap: 1px; }
.script-evotower-claim-account > header strong { font-size: 12px; }
.script-evotower-claim-account > header small { color: #64748b; font-size: 9px; }
.script-evotower-claim-account[data-state="running"] > header small { color: var(--green-dark); }
.script-evotower-claim-account[data-state="success"] > header small { color: var(--green); }
.script-evotower-claim-account[data-state="error"] > header small { color: #b64c4c; }
.script-evotower-claim-error { padding: 11px; border-left: 3px solid #c85d5d; color: #ae4c4c; background: #fdf1f0; font-size: 11px; }
.script-batch-accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 7px; margin-top: 18px; }
.script-batch-account {
  min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) 22px; align-items: center; gap: 8px;
  padding: 8px; border-bottom: 1px solid var(--line); background: #fafcfb;
}
.script-batch-account .account-avatar { width: 34px; height: 34px; }
.script-batch-account > span { min-width: 0; display: grid; gap: 2px; }
.script-batch-account strong, .script-batch-account small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.script-batch-account strong { font-size: 12px; }
.script-batch-account small { color: #64748b; font-size: 9px; }
.script-batch-progress { position: relative; height: 4px; overflow: hidden; background: #e2e8f0; }
.script-batch-progress > i { display: block; width: 0; height: 100%; background: #3b82f6; transition: width .25s ease-out; }
.script-batch-state { width: 20px; height: 20px; display: grid; place-items: center; border: 2px solid #cdd8d2; border-radius: 50%; color: transparent; font-size: 12px; font-weight: 900; }
.script-batch-account[data-state="running"] .script-batch-state { border-color: #c6ddd3; border-top-color: var(--green); animation: spin .72s linear infinite; }
.script-batch-account[data-state="success"] .script-batch-state { position: relative; border-color: var(--green); background: var(--green); }
.script-batch-account[data-state="success"] .script-batch-state::after {
  position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  content: ""; transform: rotate(45deg);
}
.script-batch-account[data-state="error"] .script-batch-state { position: relative; border-color: #c85d5d; background: #c85d5d; }
.script-batch-account[data-state="error"] .script-batch-state::before,
.script-batch-account[data-state="error"] .script-batch-state::after {
  position: absolute; left: 7px; top: 2px; width: 2px; height: 10px; background: #fff; content: ""; transform: rotate(45deg);
}
.script-batch-account[data-state="error"] .script-batch-state::after { transform: rotate(-45deg); }
.script-batch-accounts.is-legacy-gift { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.script-batch-accounts.is-legacy-gift .script-batch-account { background: transparent; }
.script-batch-accounts.is-legacy-gift .script-batch-account small {
  color: #53665d; font-size: 11px; line-height: 1.35; overflow: visible; text-overflow: clip; white-space: normal;
}
.script-batch-accounts.is-legacy-gift .script-batch-account[data-state="running"] small { color: var(--green-dark); }
.script-batch-accounts.is-legacy-gift .script-batch-account[data-state="success"] small { color: #23785d; }
.script-batch-accounts.is-legacy-gift .script-batch-account[data-state="error"] small { color: #b64c4c; }

.workbench-content { display: grid; gap: 22px; }
.club-identity {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 0 2px 18px;
  border-bottom: 1px solid var(--line);
}
.club-identity > img { width: 54px; height: 54px; flex: 0 0 auto; object-fit: cover; border-radius: 50%; background: #eff6ff; }
.club-identity > span { min-width: 0; display: grid; gap: 4px; }
.club-identity strong { overflow: hidden; color: #1e293b; font-size: 23px; text-overflow: ellipsis; white-space: nowrap; }
.club-identity small { color: #64748b; font-size: 12px; font-variant-numeric: tabular-nums; }
.club-identity-back {
  min-height: 36px; margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 0 5px 0 9px;
  border: 0; color: var(--green-dark); background: transparent; cursor: pointer; font-size: 12px; font-weight: 760;
}
.club-identity-back:hover { color: var(--ink); }
.club-identity-back span { font-size: 19px; font-weight: 500; }
.club-directory { animation: workbench-in .22s ease-out; }
.club-action-navigation { grid-template-columns: repeat(4, minmax(150px, 190px)); }
.club-detail { min-width: 0; animation: workbench-in .22s ease-out; }
.club-detail .workbench-result { padding-top: 0; }
.club-war-official-icon {
  width: 52px; height: 52px; flex: 0 0 auto; display: inline-block;
  background: url('/game-assets/club-war-atlas-8ccf6.png') -598px -195px / 846px 846px no-repeat;
  filter: drop-shadow(0 5px 8px rgba(97, 49, 16, .2));
}
.club-war-official-icon.is-large {
  width: 72px; height: 72px;
  background-size: 1170px 1170px; background-position: -828px -270px;
}
.club-war-report-sheet {
  --club-war-ink: #412919;
  gap: 18px; overflow: hidden; padding: 0 22px 22px; border: 1px solid #dfc7a8;
  background: radial-gradient(circle at 92% 0, rgba(255, 191, 74, .2), transparent 28%), linear-gradient(180deg, #fffaf1 0, #f8efe2 100%);
  box-shadow: 0 18px 45px rgba(89, 55, 27, .12);
}
.club-war-report-masthead {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  margin: 0 -22px; padding: 20px 24px; color: #fff7e7;
  background: linear-gradient(100deg, rgba(51, 29, 17, .98), rgba(103, 51, 23, .94)), url('/game-assets/club-war-atlas-8ccf6.png') 0 69% / 720px auto;
}
.club-war-report-masthead > span:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.club-war-report-masthead > span:nth-child(2) > strong { font-size: 26px; letter-spacing: .05em; }
.club-war-report-masthead > span:nth-child(2) > small { color: #f3d8ad; font-size: 13px; }
.club-war-scoreboard { display: flex; align-items: center; gap: 10px; }
.club-war-scoreboard b { min-width: 54px; color: #ffd875; font-size: 25px; text-align: center; }
.club-war-scoreboard small { color: #d8ad76; font-size: 11px; font-weight: 800; }
.club-war-verification {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 15px;
  border: 1px solid #d7dfd4; background: #f4faf2;
}
.club-war-verification[data-tone="warning"] { border-color: #efd29e; background: #fff7e8; }
.club-war-verification strong { color: #2f6237; font-size: 13px; }
.club-war-verification[data-tone="warning"] strong { color: #9a5a13; }
.club-war-verification small { color: #718071; font-size: 12px; }
.club-war-table { min-width: 900px; }
.club-war-report-sheet .workbench-table.club-war-table thead th { text-align: center; }
.club-war-table :is(th, td) { border-right: 1px solid #dfd2c2; }
.club-war-table :is(th, td):last-child { border-right: 0; }
.club-war-table tbody tr { height: 58px; }
.club-war-record-stat { display: grid; justify-items: center; gap: 3px; }
.club-war-record-stat > strong { color: var(--club-war-ink); font-size: 18px; }
.club-war-record-stat > small { display: flex; gap: 8px; font-size: 10px; }
.club-war-record-stat b { font-weight: 700; }
.club-war-record-stat b[data-tone="success"] { color: #278553; }
.club-war-record-stat b[data-tone="failure"] { color: #c85b4a; }
.club-war-flames { color: #d87418; font-size: 19px; }
.club-war-flames::before { content: "🔥"; margin-right: 4px; font-size: 14px; }
.club-war-member-status {
  min-height: 25px; display: inline-flex; align-items: center; padding: 2px 8px;
  border: 1px solid currentColor; color: #76808a; font-size: 11px; white-space: nowrap;
}
.club-war-member-status[data-tone="success"] { color: #2d8758; background: #eff9f3; }
.club-war-member-status[data-tone="failure"] { color: #be4d3f; background: #fff0ed; }
.club-war-roster-note { margin: 0; color: #8a6849; font-size: 12px; line-height: 1.7; }
.club-war-export-member { min-width: 0; display: grid; gap: 3px; text-align: left; }
.club-war-export-member strong { overflow: hidden; color: #3e2a1d; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.club-war-export-member small { color: #90735d; font-size: 9px; }
.club-war-attack-detail-section { margin-top: 6px; }
.club-war-attack-detail-table { min-width: 860px; }
.club-war-attack-detail-table tbody tr { height: 46px; }
.club-war-attack-person { min-width: 0; display: grid; gap: 2px; text-align: left; }
.club-war-attack-person strong { overflow: hidden; color: #334155; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.club-war-attack-person.is-target strong { color: #7c3f24; }
.club-war-attack-person small { color: #94a3b8; font-size: 9px; }
.club-war-attack-badge {
  min-width: 48px; min-height: 24px; display: inline-grid; place-items: center; padding: 2px 8px;
  border: 1px solid #cbd5e1; color: #64748b; background: #f8fafc; font-size: 11px; white-space: nowrap;
}
.club-war-attack-badge[data-tone="boss"] { color: #a54e1f; border-color: #e5a070; background: #fff1e8; }
.club-war-attack-badge[data-tone="elite"] { color: #8051a7; border-color: #c7a9df; background: #f7effd; }
.club-war-attack-badge[data-tone="normal"] { color: #39736c; border-color: #9bcac1; background: #eef9f7; }
.club-war-attack-badge[data-tone="easy"] { color: #59636f; border-color: #c5cbd2; background: #eef0f2; }
.club-war-attack-badge[data-tone="hard"] { color: #a95312; border-color: #e7a468; background: #fff0df; }
.club-war-attack-badge[data-tone="hell"] { color: #a43535; border-color: #df9393; background: #fff0f0; }
.club-war-attack-badge[data-tone="success"] { color: #237d4c; border-color: #8bc5a3; background: #eff9f2; }
.club-war-attack-badge[data-tone="failure"] { color: #b3453a; border-color: #dfa29c; background: #fff1ef; }
.club-war-win-legend { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: -8px; }
.club-war-win-legend::before { content: "难度"; color: #8a7565; font-size: 10px; }
.club-war-win-legend > span { display: inline-flex; align-items: center; gap: 5px; color: #70675f; font-size: 10px; }
.club-war-win-legend > span::before { content: ""; width: 9px; height: 9px; display: inline-block; background: #9aa1a9; }
.club-war-win-legend > span[data-difficulty="hard"]::before { background: #e77a24; }
.club-war-win-legend > span[data-difficulty="hell"]::before { background: #cf3f3f; }
.club-war-win-count { color: #28384b; font-size: 22px; line-height: 1; }
.club-war-win-position-column { min-width: 132px; }
.club-war-win-position-list { min-height: 25px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; }
.club-war-win-chip {
  min-height: 25px; display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px;
  border: 1px solid #c7ccd1; color: #505a65; background: #e9ecef; font-size: 11px; white-space: nowrap;
}
.club-war-win-chip[data-difficulty="hard"] { border-color: #df8a45; color: #9e4d10; background: #ffe7d1; }
.club-war-win-chip[data-difficulty="hell"] { border-color: #d36a6a; color: #9d2b2b; background: #ffdede; }
.club-war-export-stage { position: fixed; left: -20000px; top: 0; z-index: -1; }
.club-war-report-sheet.is-export { width: 1280px; padding: 0 30px 30px; gap: 20px; }
.club-war-report-sheet.is-export .club-war-report-masthead { margin: 0 -30px; padding: 24px 32px; }
.club-war-report-sheet.is-export .workbench-table-scroll { overflow: visible; }
.club-war-report-sheet.is-export .club-war-table { width: 100%; min-width: 0; }
.club-war-report-sheet.is-export .club-war-table thead tr { height: 44px; }
.club-war-report-sheet.is-export .club-war-table tbody tr { height: 60px; }
.club-war-report-sheet.is-export .club-war-attack-detail-table { width: 100%; min-width: 0; }
.club-war-report-sheet.is-export .club-war-attack-detail-table tbody tr { height: 34px; }
.workbench-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.workbench-actions > button {
  min-width: 0; min-height: 82px; display: flex; align-items: center; gap: 11px; padding: 13px 16px;
  border: 0; border-right: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; text-align: left;
}
.workbench-actions > button:last-child { border-right: 0; }
.workbench-actions > button:hover, .workbench-actions > button.is-running { background: #eff6ff; }
.workbench-actions > button img { width: 38px; height: 38px; object-fit: contain; }
.workbench-actions > button span { min-width: 0; display: grid; gap: 4px; }
.workbench-actions > button strong { font-size: 14px; }
.workbench-actions > button small, .workbench-action-with-input > small { color: #64748b; font-size: 10px; }
.salt-workbench-actions { grid-template-columns: 1fr 1.3fr 1.3fr; }
.workbench-action-with-input { min-width: 0; display: grid; align-content: center; gap: 6px; padding: 13px 16px; border-right: 1px solid var(--line); }
.workbench-action-with-input:last-child { border-right: 0; }
.workbench-action-with-input > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.workbench-action-with-input input { min-width: 0; height: 34px; padding: 0 8px; border: 1px solid var(--line-strong); border-right: 0; color: var(--ink); background: #fff; }
.workbench-action-with-input button { min-width: 72px; border: 0; color: #fff; background: var(--green); cursor: pointer; font-size: 12px; font-weight: 750; }
.workbench-action-with-input button:hover, .workbench-action-with-input button.is-running { background: var(--green-dark); }
.workbench-result { min-height: 320px; }
.workbench-placeholder { min-height: 320px; display: grid; place-content: center; justify-items: center; gap: 10px; color: #64748b; font-size: 12px; }
.workbench-placeholder img { width: 56px; height: 56px; object-fit: contain; opacity: .7; }
.workbench-loading { min-height: 320px; display: grid; place-content: center; justify-items: center; gap: 12px; color: #64748b; font-size: 13px; }
.workbench-loading::before { width: 30px; height: 30px; border: 3px solid #dbeafe; border-top-color: var(--green); border-radius: 50%; content: ""; animation: spin .72s linear infinite; }
.workbench-panel { display: grid; gap: 16px; animation: workbench-in .22s ease-out; }
@keyframes workbench-in { from { opacity: 0; transform: translateY(6px); } }
.workbench-banner { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.workbench-banner img { width: 50px; height: 50px; object-fit: cover; border-radius: 50%; background: #eff6ff; }
.workbench-banner span { min-width: 0; display: grid; gap: 3px; }
.workbench-banner strong { font-size: 22px; }
.workbench-banner small { color: #64748b; font-size: 11px; }
.workbench-banner button { margin-left: auto; }
.workbench-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-block: 1px solid var(--line); }
.workbench-metric { display: grid; gap: 4px; padding: 13px 15px; border-right: 1px solid var(--line); }
.workbench-metric:last-child { border-right: 0; }
.workbench-metric small { color: #64748b; font-size: 10px; }
.workbench-metric strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.workbench-section { display: grid; gap: 9px; }
.workbench-section > header { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.workbench-section > header strong { font-size: 18px; }
.workbench-section > header small { color: #94a3b8; font-size: 10px; }
.workbench-section-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; }
.workbench-export-button { min-height: 30px; padding: 0 11px; font-size: 10px; white-space: nowrap; }
.workbench-table-scroll { width: 100%; overflow-x: auto; }
.script-result-dialog.is-ten-hall-stars { width: min(780px, calc(100vw - 24px)); }
.script-result-log.is-ten-hall-stars { display: block; max-height: 62dvh; border-top: 0; }
.ten-hall-star-summary { margin: 4px 0 16px; font-size: 12px; color: var(--ink-muted, #64748b); }
.is-ten-hall-stars .workbench-section > header strong { font-size: 15px; }
.is-ten-hall-stars .workbench-table { table-layout: fixed; }
.is-ten-hall-stars .workbench-table :is(th, td) { padding: 8px 6px; white-space: normal; overflow-wrap: anywhere; }
.is-ten-hall-stars .workbench-table :is(th, td):nth-child(1) { width: 14%; }
.is-ten-hall-stars .workbench-table :is(th, td):nth-child(2) { width: 26%; white-space: nowrap; }
.is-ten-hall-stars .workbench-table :is(th, td):nth-child(3) { width: 28%; }
.is-ten-hall-stars .workbench-table :is(th, td):nth-child(n+4) { width: 16%; text-align: right; }
.is-ten-hall-stars .account-avatar { width: 32px; height: 32px; vertical-align: middle; }
.ten-hall-star-status { display: grid; gap: 4px; }
.ten-hall-star-status small { color: #64748b; font-size: 10px; }
.ten-hall-star-status > strong { color: #64748b; }
.ten-hall-star-status[data-complete="true"] > strong { color: #15803d; }
.ten-hall-star-status[data-state="error"] > strong { color: #dc2626; }
@media (max-width: 480px) {
  .is-ten-hall-stars .workbench-table :is(th, td) { padding-inline: 4px; font-size: 12px; }
  .is-ten-hall-stars .workbench-table th { font-size: 11px; }
  .is-ten-hall-stars .workbench-table :is(th, td):nth-child(1) { width: 12%; }
  .is-ten-hall-stars .workbench-table :is(th, td):nth-child(4) { width: 18%; }
  .is-ten-hall-stars .account-avatar { width: 28px; height: 28px; }
}
.workbench-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.workbench-table th, .workbench-table td { height: 44px; padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.workbench-table th { color: #64748b; font-size: 10px; font-weight: 720; }
.workbench-table td { color: #334155; font-variant-numeric: tabular-nums; }
.workbench-table :is(th, td).workbench-club-member-column { border-right: 1px solid var(--line-strong); }
.workbench-table :is(th, td).workbench-club-heroes-column { border-inline: 1px solid var(--line-strong); }
.workbench-table th.workbench-club-heroes-column { text-align: center; }
.workbench-member { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; }
.workbench-member img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #eff6ff; }
.workbench-member span { display: grid; gap: 1px; }
.workbench-member strong { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.workbench-member small { color: #94a3b8; font-size: 9px; }
.workbench-salt-club { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; }
.workbench-salt-club > img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #f1f5f9; }
.workbench-salt-club > span { min-width: 0; display: grid; gap: 1px; }
.workbench-salt-club strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workbench-salt-club small { color: #94a3b8; font-size: 9px; }
.peak-arena-card { grid-column: 1 / -1; gap: 0; padding: 4px 0 0; border-bottom: 0; }
.peak-arena-card > header {
  grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 5px 0 12px;
  border-bottom: 1px solid var(--line);
}
.peak-arena-actions { display: flex; align-items: center; gap: 8px; }
.peak-arena-actions button { min-height: 38px; padding-inline: 13px; white-space: nowrap; }
.peak-arena-status { min-height: 38px; margin: 0; padding: 11px 2px; color: #64748b; font-size: 12px; }
.peak-arena-status[data-tone="success"] { color: var(--green); }
.peak-arena-status[data-tone="error"] { color: #bd4949; }
.peak-arena-collection-log { display: grid; margin: 0 0 12px; border-top: 1px solid var(--line); }
.peak-arena-collection-log[hidden] { display: none; }
.peak-arena-collection-summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px;
  padding: 12px 6px 11px; border-bottom: 1px solid var(--line); background: rgba(239,246,255,.56);
}
.peak-arena-collection-summary > span:first-child { min-width: 0; display: grid; gap: 2px; }
.peak-arena-collection-summary strong { color: #334155; font-size: 13px; font-variant-numeric: tabular-nums; }
.peak-arena-collection-summary > strong { color: #2563eb; font-size: 14px; }
.peak-arena-collection-summary small { color: #64748b; font-size: 10px; }
.peak-arena-collection-summary[data-state="completed"] > strong { color: var(--green); }
.peak-arena-collection-summary[data-state="partial"] > strong { color: #b7791f; }
.peak-arena-collection-overall-progress {
  grid-column: 1 / -1; height: 6px; overflow: hidden; background: #dce7ef;
}
.peak-arena-collection-overall-progress i {
  display: block; height: 100%; background: linear-gradient(90deg, #4b91bd, #2563eb);
  transition: width .32s cubic-bezier(.2,.7,.2,1);
}
.peak-arena-collection-summary[data-state="completed"] .peak-arena-collection-overall-progress i { background: var(--green); }
.peak-arena-collection-row {
  min-width: 0; min-height: 62px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line);
}
.peak-arena-collection-row[data-state="failed"] { box-shadow: inset 2px 0 #cf5f5f; }
.peak-arena-collection-row[data-state="completed"] { box-shadow: inset 2px 0 var(--green); }
.peak-arena-collection-icon { width: 32px; height: 32px; object-fit: contain; }
.peak-arena-collection-copy { min-width: 0; display: grid; gap: 4px; }
.peak-arena-collection-copy > span:first-child { display: flex; align-items: center; gap: 8px; }
.peak-arena-collection-copy strong { overflow: hidden; color: #334155; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.peak-arena-collection-copy em { color: #94a3b8; font-size: 9px; font-style: normal; font-weight: 760; }
.peak-arena-collection-row[data-state="running"] .peak-arena-collection-copy em { color: #2b6d9a; }
.peak-arena-collection-row[data-state="completed"] .peak-arena-collection-copy em { color: var(--green); }
.peak-arena-collection-row[data-state="failed"] .peak-arena-collection-copy em { color: #bd4949; }
.peak-arena-collection-copy small { overflow: hidden; color: #64748b; font-size: 10px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.peak-arena-collection-progress { width: min(280px, 100%); height: 3px; overflow: hidden; background: #e8edf2; }
.peak-arena-collection-progress i { display: block; height: 100%; background: #4b91bd; transition: width .25s ease; }
.peak-arena-collection-progress[data-indeterminate="true"] i { animation: peak-arena-progress-scan 1.25s ease-in-out infinite alternate; }
@keyframes peak-arena-progress-scan {
  from { transform: translateX(-12%); }
  to { transform: translateX(355%); }
}
.peak-arena-collection-avatars { display: flex; align-items: center; justify-content: flex-end; min-width: 42px; padding-right: 3px; }
.peak-arena-collection-avatar, .peak-arena-collection-more {
  width: 27px; height: 27px; display: grid; place-items: center; overflow: hidden; margin-left: -7px;
  border: 2px solid #fff; border-radius: 50%; color: #64748b; background: #eef3f6; font-size: 9px; font-weight: 760;
  box-shadow: 0 1px 4px rgba(15,23,42,.13);
}
.peak-arena-collection-avatar:first-child { margin-left: 0; }
.peak-arena-collection-avatar img { width: 100%; height: 100%; object-fit: cover; }
.peak-arena-collection-more { width: 31px; color: #fff; background: #70837a; }
.peak-arena-content { min-width: 0; border-top: 1px solid var(--line); }
.peak-arena-view-tabs { min-width: 0; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.peak-arena-primary-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; scrollbar-width: none; }
.peak-arena-primary-tabs button { min-width: 0; }
.peak-arena-view-tabs button {
  position: relative; min-width: 94px; min-height: 50px; display: inline-grid; grid-template-columns: 30px auto;
  align-items: center; justify-content: center; gap: 6px; padding: 4px 10px; border: 1px solid transparent;
  border-radius: 7px; color: #64748b; background: transparent; font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap;
}
.peak-arena-view-tabs button > img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(15,23,42,.16)); }
.peak-arena-view-tabs button > span { line-height: 1.15; }
.peak-arena-view-tabs button:hover { border-color: #dbeafe; background: #f8fbff; color: #334155; }
.peak-arena-view-tabs button[data-active="true"] { border-color: #bfdbfe; color: #1d4ed8; background: #eff6ff; font-weight: 780; }
.peak-arena-view-tabs button[data-active="true"]::after { position: absolute; right: 9px; bottom: -1px; left: 9px; height: 2px; background: #2563eb; content: ""; }
.peak-arena-view-toolbar {
  min-height: 50px; display: flex; align-items: center; gap: 14px; padding: 8px 14px;
  border-bottom: 1px solid var(--line); background: rgba(248,250,252,.82);
}
.peak-arena-club-modes { display: inline-flex; align-items: center; gap: 15px; margin-right: auto; }
.peak-arena-club-modes button {
  position: relative; min-height: 32px; padding: 0; border: 0; background: transparent; color: #64748b; font-size: 11px;
}
.peak-arena-club-modes button[data-active="true"] { color: #1d4ed8; font-weight: 780; }
.peak-arena-club-modes button[data-active="true"]::after {
  position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; background: #2563eb; content: "";
}
.peak-arena-threshold { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #64748b; font-size: 10px; white-space: nowrap; }
.peak-arena-threshold select {
  min-width: 78px; height: 32px; padding: 0 22px 0 8px; border: 0; border-bottom: 1px solid #bfcac4;
  border-radius: 0; outline: 0; background: transparent; color: #334155; font: inherit;
}
.peak-arena-threshold select:focus { border-bottom-color: #2563eb; }
.peak-arena-export-button { min-height: 34px; padding-inline: 13px; white-space: nowrap; }
.peak-arena-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.peak-arena-metrics > span { display: grid; gap: 3px; padding: 12px 16px; border-right: 1px solid var(--line); }
.peak-arena-metrics > span:last-child { border-right: 0; }
.peak-arena-metrics strong { color: #334155; font-size: 16px; font-variant-numeric: tabular-nums; }
.peak-arena-metrics small { color: #64748b; font-size: 10px; }
.peak-arena-empty { min-height: 210px; display: grid; place-content: center; justify-items: center; gap: 6px; color: #64748b; text-align: center; }
.peak-arena-empty img { width: 52px; height: 52px; object-fit: contain; opacity: .78; }
.peak-arena-empty strong { color: #334155; font-size: 15px; }
.peak-arena-empty small { font-size: 11px; }
.peak-arena-table-scroll { width: 100%; overflow-x: auto; }
.peak-arena-player-groups { display: grid; gap: 12px; padding: 10px 14px 18px; }
.peak-arena-player-group { --group-bg: #f1f5f9; --group-edge: #cbd5e1; min-width: 0; }
.peak-arena-player-group[data-tone="6"], .peak-arena-player-group[data-tone="gold"] { --group-bg: #f1d981; --group-edge: #c69a21; }
.peak-arena-player-group[data-tone="5"], .peak-arena-player-group[data-tone="red"] { --group-bg: #efaaa6; --group-edge: #c84e4b; }
.peak-arena-player-group[data-tone="4"] { --group-bg: #f2c48d; --group-edge: #d17924; }
.peak-arena-player-group[data-tone="3"] { --group-bg: #b8d8ef; --group-edge: #4584b5; }
.peak-arena-player-group[data-tone="2"] { --group-bg: #bfe1ca; --group-edge: #4e9c68; }
.peak-arena-player-group[data-tone="1"] { --group-bg: #f1f0eb; --group-edge: #cbd5e1; }
.peak-arena-player-group-title {
  min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 11px;
  border: 1px solid var(--group-edge); background: var(--group-bg);
}
.peak-arena-player-group-title strong { color: var(--group-edge); font-size: 13px; }
.peak-arena-player-group-title small { color: #64748b; font-size: 9px; font-variant-numeric: tabular-nums; }
.peak-arena-player-group-title.has-breakdown { min-height: 48px; justify-content: flex-start; padding-block: 9px; }
.peak-arena-player-group-title.has-breakdown > small { margin-left: auto; white-space: nowrap; }
.peak-arena-group-breakdown {
  min-width: 0; flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px;
  padding-left: 11px; border-left: 1px solid rgba(100,116,139,.20);
}
.peak-arena-group-breakdown > span { display: inline-flex; align-items: center; gap: 3px; color: #64748b; white-space: nowrap; }
.peak-arena-group-breakdown img { width: 28px; height: 28px; object-fit: contain; border: 1px solid rgba(100,116,139,.18); background: rgba(255,255,255,.5); }
.peak-arena-group-breakdown > span[data-quality="7"] img { border-color: #c69a21; background: #f1d981; }
.peak-arena-group-breakdown > span[data-quality="6"] img { border-color: #c84e4b; background: #efaaa6; }
.peak-arena-group-breakdown > span[data-quality="5"] img { border-color: #d17924; background: #f2c48d; }
.peak-arena-group-breakdown > span[data-quality="4"] img { border-color: #8c66b4; background: #d8c8ea; }
.peak-arena-group-breakdown > span[data-quality="3"] img { border-color: #4584b5; background: #b8d8ef; }
.peak-arena-group-breakdown > span[data-quality="2"] img { border-color: #4e9c68; background: #bfe1ca; }
.peak-arena-group-breakdown b { color: #334155; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.peak-arena-player-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px; padding: 0;
  overflow: hidden; background: var(--line);
}
.peak-arena-player-card {
  position: relative; min-width: 0; min-height: 96px; display: grid;
  grid-template-columns: 46px minmax(64px, 1fr) 42px 102px; align-items: center; gap: 6px;
  /* Keep the hero strip anchored while giving the player details 24px more leading space. */
  padding: 8px 9px 8px 33px; border: 0; border-radius: 0; background: #fff; box-shadow: none;
}
.peak-arena-player-card:hover { background: #ffffff; }
.peak-arena-player-card[data-warning="true"] { box-shadow: inset 3px 0 #dc2626; }
.peak-arena-player-rank { position: absolute; top: 3px; left: 3px; z-index: 2; color: #64748b; font-size: 8px; font-variant-numeric: tabular-nums; font-weight: 760; text-shadow: 0 1px 1px #fff; }
.peak-arena-player-warning {
  position: absolute; top: 3px; left: 32px; z-index: 7; min-height: 17px; display: inline-flex;
  align-items: center; gap: 4px; padding: 1px 6px 1px 3px; border: 1px solid #fecaca; border-radius: 999px;
  color: #b91c1c; background: rgba(255,255,255,.94); font: inherit; font-size: 8px; font-weight: 780;
  line-height: 1; cursor: pointer; opacity: .42; transition: opacity .15s ease, background .15s ease, border-color .15s ease;
}
.peak-arena-player-warning:hover, .peak-arena-player-warning:focus-visible { opacity: 1; outline: none; border-color: #ef4444; }
.peak-arena-player-warning[data-marked="false"] { padding-right: 3px; }
.peak-arena-player-warning[data-marked="false"] > span:last-child { display: none; }
.peak-arena-player-warning[data-marked="false"]:hover > span:last-child,
.peak-arena-player-warning[data-marked="false"]:focus-visible > span:last-child { display: inline; }
.peak-arena-player-warning:disabled { cursor: wait; opacity: .55; }
.peak-arena-player-warning[data-marked="true"] {
  border-color: #ef4444; color: #991b1b; background: #fee2e2; box-shadow: 0 1px 4px rgba(185,28,28,.18); opacity: 1;
}
.peak-arena-player-warning-icon {
  width: 11px; height: 11px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: #dc2626; font-size: 8px; font-weight: 900; line-height: 1;
}
.peak-arena-player-warning-note {
  max-width: 118px; overflow: hidden; padding-left: 5px; border-left: 1px solid rgba(185,28,28,.28);
  color: #7f1d1d; font-weight: 720; text-overflow: ellipsis; white-space: nowrap;
}
.peak-arena-player-head {
  display: contents;
}
.peak-arena-player-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #eff6ff; box-shadow: 0 0 0 1px #fff, 0 2px 6px rgba(15,23,42,.12); }
.peak-arena-player-identity { min-width: 0; display: grid; align-content: center; gap: 2px; text-align: left; }
.peak-arena-player-identity > strong { max-width: 100%; overflow: hidden; color: #334155; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.peak-arena-player-identity > small { max-width: 100%; overflow: hidden; color: #94a3b8; font-size: 8px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.peak-arena-player-role-id { color: #64748b !important; font-variant-numeric: tabular-nums; }
.peak-arena-player-red { display: inline-flex; align-items: center; gap: 3px; color: #b8524e; font-size: 9px; font-variant-numeric: tabular-nums; font-weight: 720; }
.peak-arena-player-red img { width: 10px; height: 10px; object-fit: contain; }
.peak-arena-player-pet { width: 42px; min-width: 42px; display: grid; place-items: center; transform: translateX(-6px); }
.peak-arena-player-pet .peak-arena-pet { display: grid; justify-items: center; gap: 1px; }
.peak-arena-pet-visual { position: relative; display: grid; place-items: center; }
.peak-arena-pet-visual > .peak-arena-pet-image {
  position: relative; z-index: 1; width: 44px; height: 44px; object-fit: contain;
  filter: drop-shadow(0 0 var(--pet-glow-tight, 1px) var(--pet-glow, rgba(148,163,184,.6)))
    drop-shadow(0 0 var(--pet-glow-wide, 3px) var(--pet-glow, rgba(148,163,184,.6)));
}
.peak-arena-player-pet .peak-arena-pet-visual { width: 40px; height: 40px; }
.peak-arena-player-pet .peak-arena-pet-visual > .peak-arena-pet-image { width: 40px; height: 40px; }
.peak-arena-player-pet .peak-arena-pet-series { top: 0; left: 0; width: 13px; height: 13px; }
.peak-arena-player-pet .peak-arena-pet-stars { right: auto; bottom: 0; left: 50%; transform: translateX(-50%); }
.peak-arena-pet-series { position: absolute; z-index: 4; width: 15px; height: 15px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(15,23,42,.3)); }
.peak-arena-pet-stars {
  position: absolute; z-index: 5; display: flex; align-items: center; justify-content: center;
  min-height: 0; padding: 0; background: transparent; line-height: 1;
}
.peak-arena-pet-stars > img {
  width: 9px; height: 9px; object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(255,255,255,.98)) drop-shadow(0 0 2px rgba(255,255,255,.92));
}
.peak-arena-pet-stars > img + img { margin-left: -2px; }
.peak-arena-player-pet .peak-arena-pet > span { justify-items: center; gap: 1px; }
.peak-arena-player-pet .peak-arena-pet strong { font-size: 9px; line-height: 1; }
.peak-arena-player-pet .peak-arena-pet small { gap: 1px; font-size: 8px; line-height: 1; }
.peak-arena-player-pet .peak-arena-pet small img { width: 9px; height: 9px; }
.peak-arena-player-pet .workbench-muted-value { color: #94a3b8; font-size: 8px; }
.peak-arena-hero-strip {
  width: 102px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, 38px); gap: 3px;
}
.peak-arena-star-tile {
  --tier-bg: #f1f5f9; --tier-edge: #cbd5e1; position: relative; min-width: 0; min-height: 0;
  overflow: hidden; display: grid; place-items: center; border: 0; background: var(--tier-bg);
}
.peak-arena-star-tile[data-stars="6"] { --tier-bg: #f1d981; --tier-edge: #c69a21; }
.peak-arena-star-tile[data-stars="5"] { --tier-bg: #efaaa6; --tier-edge: #c84e4b; }
.peak-arena-star-tile[data-stars="4"] { --tier-bg: transparent; --tier-edge: #d17924; }
.peak-arena-star-tile[data-stars="3"] { --tier-bg: transparent; --tier-edge: #4584b5; }
.peak-arena-star-tile[data-stars="2"] { --tier-bg: transparent; --tier-edge: #4e9c68; }
.peak-arena-star-tile[data-stars="1"] { --tier-bg: transparent; --tier-edge: #94a3b8; }
.peak-arena-star-tile[data-stars="0"] { background: transparent; }
.peak-arena-star-tile[data-stars="0"] > img { background: transparent; box-shadow: none; }
.peak-arena-star-tile[data-stars="0"] > em { display: none; }
.peak-arena-star-tile.is-empty > small { display: none; }
.peak-arena-star-tile > img { width: 29px; height: 29px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.7); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.peak-arena-star-tile > em { position: absolute; top: 1px; left: 2px; color: var(--tier-edge); font-size: 7px; font-style: normal; font-weight: 800; }
.peak-arena-star-tile > small { position: absolute; right: 2px; bottom: 1px; display: inline-flex; align-items: center; gap: 0; color: #a92f34; font-variant-numeric: tabular-nums; }
.peak-arena-star-tile > small img { width: 8px; height: 8px; object-fit: contain; }
.peak-arena-star-tile > small strong { font-size: 7px; line-height: 1; }
.peak-arena-pet {
  --pet-frame: #94a3b8; --pet-wash: #f1f5f9; --pet-glow: rgba(148,163,184,.62);
  --pet-glow-tight: 1px; --pet-glow-wide: 3px; display: inline-flex; align-items: center; gap: 8px;
}
.peak-arena-pet > span { display: grid; gap: 4px; }
.peak-arena-pet strong { color: var(--pet-frame); font-size: 13px; }
.peak-arena-pet small { display: inline-flex; align-items: center; gap: 3px; color: #d83f42; font-size: 11px; font-variant-numeric: tabular-nums; }
.peak-arena-pet small img { width: 17px; height: 16px; object-fit: contain; }
.peak-arena-pet-tile { background: transparent; }
.peak-arena-pet-tile .peak-arena-pet { position: absolute; inset: 0; display: grid; place-items: center; gap: 0; }
.peak-arena-pet-tile .peak-arena-pet-visual { position: absolute; inset: 0; display: grid; place-items: center; }
.peak-arena-pet-tile .peak-arena-pet-visual::before {
  content: ''; position: absolute; z-index: 0; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 45% 42%, #fff2a2 0 28%, #d18a18 62%, rgba(120,69,12,.2) 72%, transparent 73%);
  filter: drop-shadow(0 1px 2px rgba(84,52,18,.24));
}
.peak-arena-pet-tile .peak-arena-pet-visual > .peak-arena-pet-image { width: 34px; height: 34px; }
.peak-arena-pet-tile .peak-arena-pet-series { top: 0; left: 0; width: 13px; height: 13px; }
.peak-arena-pet-tile .peak-arena-pet-stars {
  right: auto; bottom: 0; left: 50%; transform: translateX(-50%); overflow: visible;
}
.peak-arena-pet-tile .peak-arena-pet-stars > img { width: 7px; height: 7px; }
.peak-arena-pet-tile .peak-arena-pet-stars > img + img { margin-left: -2px; }
.peak-arena-pet-tile .peak-arena-pet > span:last-child { display: contents; }
.peak-arena-pet-tile .peak-arena-pet strong {
  position: absolute; bottom: 8px; left: 1px; z-index: 6; padding: 0;
  color: #fff; background: transparent; text-shadow: 0 1px 1px #1d1713, 1px 0 1px #1d1713, -1px 0 1px #1d1713;
  font-size: 8px; line-height: 1; font-variant-numeric: tabular-nums;
}
.peak-arena-pet-tile .peak-arena-pet small {
  position: absolute; right: 0; bottom: 7px; top: auto; z-index: 6; min-width: 18px; height: 10px;
  justify-content: center; gap: 0; padding: 0 2px; border: 1px solid rgba(93,22,27,.62); border-radius: 6px;
  color: #ffe5d7; background: linear-gradient(180deg, #b43138, #761823); box-shadow: 0 1px 2px rgba(64,18,22,.28);
  font-size: 7px; line-height: 1;
}
.peak-arena-pet-tile .peak-arena-pet small img { width: 9px; height: 9px; }
.peak-arena-pet-tile .workbench-muted-value { color: #94a3b8; font-size: 7px; }
.peak-arena-club-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 12px; }
.peak-arena-club-table th, .peak-arena-club-table td { height: 50px; padding: 8px 14px; border-bottom: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; }
.peak-arena-club-table th:first-child, .peak-arena-club-table td:first-child { min-width: 210px; text-align: left; }
.peak-arena-club-table th { color: #64748b; font-size: 10px; }
.peak-arena-club { display: inline-grid; gap: 2px; vertical-align: middle; }
.peak-arena-club strong { color: #334155; font-size: 13px; }
.peak-arena-club small { color: #94a3b8; font-size: 9px; }
.peak-arena-club-logo { width: 34px; height: 34px; margin-right: 9px; border-radius: 50%; object-fit: cover; vertical-align: middle; background: #eff6ff; }
.peak-arena-club-red-quench { display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #c24145; font-variant-numeric: tabular-nums; }
.peak-arena-club-red-quench img { width: 16px; height: 17px; object-fit: contain; }
.peak-arena-club-red-quench strong { font-size: 12px; line-height: 1; }
.peak-arena-club-red-quench[data-known="false"] { color: #94a3b8; }
.peak-arena-club-red-quench[data-known="false"] img { opacity: .38; filter: grayscale(1); }
.peak-arena-club-groups { gap: 15px; }
.peak-arena-club-group-title { justify-content: flex-start; min-height: 48px; }
.peak-arena-club-group-title > img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.7); }
.peak-arena-club-group-copy { min-width: 0; display: grid; gap: 2px; }
.peak-arena-club-group-copy strong { overflow: hidden; color: #334155; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.peak-arena-club-group-copy small { color: #64748b; font-size: 9px; }
.peak-arena-club-group-stats { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; margin-left: 5px; }
.peak-arena-club-group-stat {
  --club-stat-edge: #64748b; --club-stat-wash: #f1f5f9; min-width: 50px; display: inline-flex; align-items: baseline;
  justify-content: center; gap: 4px; padding: 3px 6px; border: 1px solid var(--club-stat-edge); color: var(--club-stat-edge); background: var(--club-stat-wash);
}
.peak-arena-club-group-stat[data-tone="six"], .peak-arena-club-group-stat[data-tone="gold"] { --club-stat-edge: #b7860b; --club-stat-wash: #fff8db; }
.peak-arena-club-group-stat[data-tone="five"] { --club-stat-edge: #c84e4b; --club-stat-wash: #fbeeee; }
.peak-arena-club-group-stat small { color: inherit; font-size: 8px; font-weight: 720; }
.peak-arena-club-group-stat b { font-size: 11px; font-variant-numeric: tabular-nums; }
.peak-arena-club-group-title > em { margin-left: auto; color: #64748b; font-size: 9px; font-style: normal; font-variant-numeric: tabular-nums; }
.peak-arena-filter-empty { min-height: 160px; display: grid; place-content: center; color: #64748b; font-size: 11px; }
.peak-arena-event-days { display: grid; gap: 15px; padding: 12px 14px 18px; }
.peak-arena-event-day { min-width: 0; }
.peak-arena-event-day > header {
  min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 8px; border-bottom: 1px solid #cbd5e1;
}
.peak-arena-event-day > header strong { color: #334155; font-size: 12px; }
.peak-arena-event-day > header small { color: #94a3b8; font-size: 9px; font-variant-numeric: tabular-nums; }
.peak-arena-event-list { display: grid; }
.peak-arena-event-row {
  min-width: 0; min-height: 72px; display: grid; grid-template-columns: minmax(150px, 210px) minmax(250px, 1fr) 44px;
  align-items: center; gap: 14px; padding: 8px; border-bottom: 1px solid var(--line); background: #fff;
}
.peak-arena-event-row:last-child { border-bottom: 0; }
.peak-arena-event-player { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 9px; }
.peak-arena-event-player > img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #eff6ff; }
.peak-arena-event-player > span { min-width: 0; display: grid; gap: 2px; }
.peak-arena-event-player strong, .peak-arena-event-player small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peak-arena-event-player strong { color: #334155; font-size: 11px; }
.peak-arena-event-player small { color: #94a3b8; font-size: 8px; }
.peak-arena-event-red { display: inline-flex !important; align-items: center; gap: 3px; color: #b8524e !important; }
.peak-arena-event-red img { width: 10px; height: 10px; object-fit: contain; }
.peak-arena-event-change { min-width: 0; display: flex; align-items: center; gap: 8px; }
.peak-arena-event-change > i { color: #94a3b8; font-size: 16px; font-style: normal; }
.peak-arena-event-entity { min-width: 48px; display: grid; justify-items: center; gap: 2px; }
.peak-arena-event-portrait { position: relative; width: 38px; height: 38px; }
.peak-arena-event-portrait > img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #f1f5f9; }
.peak-arena-event-entity.is-pet .peak-arena-event-portrait > img { border-radius: 6px; }
.peak-arena-event-entity > strong { max-width: 56px; overflow: hidden; color: #64748b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.peak-arena-event-entity-badge {
  position: absolute; right: -3px; bottom: -2px; min-width: 22px; height: 13px; display: grid; place-items: center;
  padding: 0 3px; border: 1px solid #fff; color: #fff; background: #c84e4b; font-size: 7px; font-weight: 850;
}
.peak-arena-event-entity-badge[data-tone="6"], .peak-arena-event-entity-badge[data-tone="gold"] { color: #6c4b08; background: #f1d981; }
.peak-arena-event-change-copy { min-width: 0; display: grid; gap: 3px; }
.peak-arena-event-change-copy small { color: #18785f; font-size: 8px; font-weight: 760; }
.peak-arena-event-change-copy strong { overflow: hidden; color: #334155; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.peak-arena-event-row > time { justify-self: end; color: #94a3b8; font-size: 9px; font-variant-numeric: tabular-nums; }
.peak-arena-event-empty { min-height: 250px; }
.peak-arena-change-dialog { width: min(760px, calc(100vw - 28px)); }
.peak-arena-change-summary { margin: 16px 0 6px; padding: 10px 12px; color: #52615a; background: #f3f7f4; font-size: 11px; }
.peak-arena-change-list { max-height: min(500px, 56dvh); overflow: auto; }
.peak-arena-change-list .peak-arena-event-days { padding-inline: 0; }
.peak-arena-change-list .peak-arena-empty { min-height: 180px; }
.peak-arena-collect-dialog { width: min(560px, calc(100vw - 28px)); }
.peak-arena-collect-description { margin: 17px 0 9px; color: #64748b; font-size: 11px; line-height: 1.55; }
.peak-arena-collect-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.peak-arena-collect-source {
  min-width: 0; min-height: 67px; display: grid; grid-template-columns: 18px 34px minmax(0, 1fr);
  align-items: center; gap: 9px; padding: 8px 9px 8px 2px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.peak-arena-collect-source:nth-child(odd) { border-right: 1px solid var(--line); }
.peak-arena-collect-source input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
.peak-arena-collect-source > img { width: 31px; height: 31px; object-fit: contain; }
.peak-arena-collect-source > span { min-width: 0; display: grid; gap: 3px; }
.peak-arena-collect-source strong { overflow: hidden; color: #334155; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.peak-arena-collect-source small { color: #64748b; font-size: 9px; line-height: 1.3; }
.peak-arena-collect-actions { justify-content: flex-end; }
.peak-arena-export-stage { position: fixed; top: 0; left: -100000px; z-index: -1; width: 1600px; pointer-events: none; }
.peak-arena-export-capture { box-sizing: border-box; padding: 0 18px 20px; overflow: visible; background: #fff; color: #334155; }
.peak-arena-export-banner {
  min-height: 82px; display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border-bottom: 1px solid #dbe3df; background: linear-gradient(115deg, #f3f8f5, #fff 65%);
}
.peak-arena-export-banner > img { width: 50px; height: 50px; object-fit: contain; }
.peak-arena-export-banner > span { display: grid; gap: 4px; }
.peak-arena-export-banner strong { color: #1e293b; font-size: 21px; }
.peak-arena-export-banner small { color: #64748b; font-size: 11px; }
.peak-arena-export-capture .peak-arena-player-groups { padding-inline: 0; }
.peak-arena-export-capture .peak-arena-player-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; }
.peak-arena-export-capture .peak-arena-player-card {
  min-height: 86px; grid-template-columns: 38px minmax(52px, 1fr) 34px 90px; gap: 3px; padding: 6px;
}
.peak-arena-export-capture .peak-arena-player-warning { top: 2px; left: 24px; min-height: 15px; padding-right: 5px; opacity: 1; cursor: default; }
.peak-arena-export-capture .peak-arena-player-warning-note { max-width: 82px; }
.peak-arena-export-capture .peak-arena-player-head { display: contents; }
.peak-arena-export-capture .peak-arena-player-avatar { width: 38px; height: 38px; }
.peak-arena-export-capture .peak-arena-player-identity > strong { font-size: 10px; }
.peak-arena-export-capture .peak-arena-player-identity > small,
.peak-arena-export-capture .peak-arena-player-red { font-size: 7px; }
.peak-arena-export-capture .peak-arena-player-pet { width: 34px; min-width: 34px; transform: translateX(-3px); }
.peak-arena-export-capture .peak-arena-player-pet .peak-arena-pet-visual { width: 34px; height: 34px; }
.peak-arena-export-capture .peak-arena-player-pet .peak-arena-pet-visual > .peak-arena-pet-image { width: 34px; height: 34px; }
.peak-arena-export-capture .peak-arena-player-pet .peak-arena-pet-visual::before {
  position: absolute; z-index: 0; width: 68%; height: 68%; border-radius: 50%; background: transparent;
  box-shadow: 0 0 var(--pet-glow-tight, 1px) 1px var(--pet-glow, rgba(148,163,184,.6)),
    0 0 var(--pet-glow-wide, 3px) 2px var(--pet-glow, rgba(148,163,184,.6)); content: "";
}
.peak-arena-export-capture .peak-arena-player-pet .peak-arena-pet-series { width: 11px; height: 11px; }
.peak-arena-export-capture .peak-arena-player-pet .peak-arena-pet-stars > img { width: 7px; height: 7px; }
.peak-arena-export-capture .peak-arena-hero-strip { width: 90px; grid-template-rows: repeat(2, 34px); gap: 2px; }
.peak-arena-export-capture .peak-arena-star-tile { background: transparent; }
.peak-arena-export-capture .peak-arena-star-tile[data-stars="6"] { background: #f1d981; }
.peak-arena-export-capture .peak-arena-star-tile[data-stars="5"] { background: #efaaa6; }
.peak-arena-export-capture .peak-arena-star-tile > img { width: 26px; height: 26px; }
.peak-arena-export-capture .peak-arena-pet-tile .peak-arena-pet-visual > .peak-arena-pet-image { width: 29px; height: 29px; }
.peak-arena-export-capture .peak-arena-pet-tile .peak-arena-pet-visual::before { width: 23px; height: 23px; }
.peak-arena-export-capture .peak-arena-pet-tile .peak-arena-pet-series { width: 11px; height: 11px; }
.peak-arena-export-capture .peak-arena-pet-tile .peak-arena-pet-stars { bottom: 0; }
.peak-arena-export-capture .peak-arena-pet-tile .peak-arena-pet-stars > img { width: 6px; height: 6px; }
.peak-arena-export-capture .peak-arena-pet-tile .peak-arena-pet strong { bottom: 7px; font-size: 6px; }
.peak-arena-export-capture .peak-arena-pet-tile .peak-arena-pet small { bottom: 6px; height: 9px; font-size: 6px; }
.peak-arena-export-capture .peak-arena-pet-tile .peak-arena-pet small img { width: 7px; height: 7px; }
.peak-arena-export-capture .peak-arena-table-scroll { overflow: visible; }
.peak-arena-export-capture .peak-arena-club-table { min-width: 0; }
.peak-arena-member { display: inline-flex; align-items: center; gap: 8px; min-width: 160px; }
.peak-arena-member > img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #eff6ff; }
.peak-arena-member > span { min-width: 0; display: grid; gap: 2px; }
.peak-arena-member strong { max-width: 155px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.peak-arena-member small { color: #94a3b8; font-size: 9px; }
.peak-arena-formations { display: grid; gap: 12px; }
.peak-arena-version { display: grid; gap: 8px; padding: 10px 0 10px 11px; border-left: 2px solid #93c5fd; }
.peak-arena-version + .peak-arena-version { border-top: 1px solid var(--line); }
.peak-arena-version-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.peak-arena-version-heading strong { color: #334155; font-size: 11px; }
.peak-arena-version-heading small { color: #94a3b8; font-size: 9px; font-variant-numeric: tabular-nums; }
.peak-arena-version-formations { display: grid; gap: 7px; }
.peak-arena-formation { display: grid; grid-template-columns: 58px minmax(298px, 1fr); align-items: center; gap: 9px; }
.peak-arena-formation-heading { display: grid; gap: 1px; }
.peak-arena-formation-heading strong { color: #64748b; font-size: 10px; }
.peak-arena-formation-heading small { color: #94a3b8; font-size: 8px; }
.peak-arena-formation .workbench-hero-list { justify-content: start; }
.peak-arena-saint-history { display: grid; gap: 10px; }
.peak-arena-saint-group { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 8px; }
.peak-arena-saint-group > strong { padding-top: 11px; color: #a56d20; font-size: 10px; }
.peak-arena-saint-list { display: flex; flex-wrap: wrap; gap: 8px; }
.peak-arena-saint-hero { --hero-ring: #94a3b8; width: 48px; display: grid; justify-items: center; gap: 3px; }
.peak-arena-saint-portrait { width: 38px; height: 38px; overflow: hidden; border: 2px solid var(--hero-ring); border-radius: 50%; background: #f1f5f9; }
.peak-arena-saint-portrait img { width: 100%; height: 100%; object-fit: cover; }
.peak-arena-saint-hero small { width: 48px; overflow: hidden; color: #64748b; font-size: 8px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.peak-arena-missing { color: #9a7350; font-size: 10px; }

.formation-card { grid-column: 1 / -1; gap: 0; padding: 4px 0 0; border-bottom: 0; }
.formation-card > header { grid-template-columns: 46px minmax(0, 1fr) auto; padding-bottom: 12px; }
.formation-actions { display: flex; gap: 8px; align-items: center; }
.formation-status { min-height: 34px; margin: 0; padding: 9px 2px; border-top: 1px solid var(--line); color: #64748b; font-size: 12px; }
.formation-status[data-tone="success"] { color: var(--green); }
.formation-status[data-tone="warning"] { color: #9a6f2e; }
.formation-status[data-tone="error"] { color: #bd4949; }
.formation-content { display: grid; gap: 20px; min-width: 0; padding-bottom: 18px; }
.formation-current { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.formation-team { min-width: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
.formation-team.is-active { border-bottom-color: #60a5fa; }
.formation-team > header, .formation-snapshots > header, .formation-diff > header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.formation-team-heading { display: inline-flex; align-items: baseline; gap: 8px; }
.formation-team-heading strong { color: #334155; font-size: 14px; }
.formation-team-heading small { color: #94a3b8; font-size: 10px; }
.formation-team.is-active .formation-team-heading small { color: var(--green); font-weight: 700; }
.formation-team-save { border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; }
.formation-team-save:hover:not(:disabled) { text-decoration: underline; }
.formation-team-save:disabled { color: #aeb8b3; cursor: not-allowed; }
.formation-team-heroes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.formation-hero { min-width: 0; display: grid; align-content: start; justify-items: center; gap: 5px; padding: 6px 3px 7px; border-top: 2px solid #dbeafe; background: #f8fbff; text-align: center; }
.formation-hero-image { position: relative; display: block; width: 48px; height: 48px; }
.formation-hero-image img { width: 100%; height: 100%; object-fit: contain; }
.formation-hero-image i { position: absolute; right: -4px; bottom: -3px; padding: 1px 4px; border-radius: 0; background: #2563eb; color: #fff; font-size: 8px; font-style: normal; }
.formation-hero-copy { width: 100%; min-width: 0; display: grid; gap: 2px; }
.formation-hero strong { overflow: hidden; color: #334155; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.formation-hero small { overflow: hidden; color: #94a3b8; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.formation-hero-loadout { display: grid; width: 100%; margin-top: 3px; border-top: 1px solid #dbeafe; }
.formation-hero-loadout small { padding: 2px 1px; color: #64748b; font-size: 8px; line-height: 1.2; }
.formation-hero-loadout small + small { border-top: 1px solid #e7eef7; }
.formation-hero-loadout small[data-kind="crystal"] { color: #7c3aed; }
.formation-hero-loadout small[data-kind="fish"] { color: #047857; }
.formation-hero-loadout small[data-kind="pearl"] { color: #b45309; }
.formation-team > footer { display: flex; gap: 12px; margin-top: 9px; color: #94a3b8; font-size: 9px; }
.formation-team-pet { display: inline-flex; align-items: center; gap: 4px; }
.formation-team-pet img { width: 19px; height: 19px; object-fit: contain; }
.formation-detail-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 14px 0 2px; }
.formation-detail-chip { min-width: 0; display: flex; align-items: center; gap: 8px; }
.formation-detail-chip > img { width: 31px; height: 31px; flex: 0 0 31px; object-fit: contain; }
.formation-detail-chip > span { min-width: 0; display: grid; gap: 1px; }
.formation-detail-chip small { overflow: hidden; color: #94a3b8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.formation-detail-chip strong { color: #334155; font-size: 13px; }
.formation-empty { grid-column: 1 / -1; padding: 18px; color: #94a3b8; text-align: center; }
.formation-snapshots, .formation-diff { border-top: 1px solid var(--line); padding-top: 14px; }
.formation-snapshots > header strong, .formation-diff > header strong { color: #334155; font-size: 15px; }
.formation-snapshots > header small, .formation-diff > header small { color: #94a3b8; font-size: 10px; }
.formation-snapshots > p { margin: 14px 0 0; color: #94a3b8; font-size: 11px; }
.formation-snapshot-row { display: grid; grid-template-columns: 150px minmax(120px, 1fr) auto auto auto; align-items: center; gap: 9px; min-height: 58px; border-bottom: 1px solid var(--line); }
.formation-snapshot-heroes { display: flex; }
.formation-snapshot-heroes img { width: 30px; height: 30px; margin-right: -4px; object-fit: contain; }
.formation-snapshot-row > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.formation-snapshot-row > span:nth-child(2) strong { overflow: hidden; color: #334155; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.formation-snapshot-row > span:nth-child(2) small { color: #94a3b8; font-size: 9px; }
.formation-delete { border: 0; background: transparent; color: #b65a57; font-size: 11px; }
.formation-diff-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 50px; border-bottom: 1px solid var(--line); }
.formation-diff-row > span { min-width: 0; display: grid; gap: 2px; }
.formation-diff-row strong { color: #475569; font-size: 11px; }
.formation-diff-row small { overflow: hidden; color: #94a3b8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.formation-diff-row em { color: #2563eb; font-size: 9px; font-style: normal; }
.formation-diff-row[data-capability="compare-only"] em { color: #a06f31; }

@media (max-width: 720px) {
  .formation-card > header { grid-template-columns: 40px minmax(0, 1fr); }
  .formation-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; }
  .formation-current { grid-template-columns: 1fr; }
  .formation-team-heroes { gap: 2px; }
  .formation-hero-image { width: 42px; height: 42px; }
  .formation-detail-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 6px; }
  .formation-snapshot-row { grid-template-columns: 104px minmax(86px, 1fr) auto auto; gap: 6px; padding-block: 8px; }
  .formation-snapshot-row .formation-delete { grid-column: 4; grid-row: 2; justify-self: end; }
  .formation-snapshot-heroes img { width: 24px; height: 24px; }
  .formation-snapshot-row button { min-width: 0; padding-inline: 8px; }
}

.arena-assistant-card { grid-column: 1 / -1; gap: 0; padding-top: 4px; border-bottom: 0; }
.arena-assistant-card > header { grid-template-columns: 46px minmax(0, 1fr); padding-bottom: 12px; }
.arena-assistant-status { min-height: 34px; margin: 0; padding: 9px 2px; border-top: 1px solid var(--line); color: #64748b; font-size: 12px; }
.arena-assistant-status[data-tone="success"] { color: var(--green); }
.arena-assistant-status[data-tone="error"] { color: #bd4949; }
.arena-assistant-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.arena-assistant-tabs button { position: relative; min-width: 52px; padding: 10px 0 11px; border: 0; background: transparent; color: #64748b; font-size: 12px; }
.arena-assistant-tabs button[data-active="true"] { color: #1d4ed8; font-weight: 760; }
.arena-assistant-tabs button[data-active="true"]::after { content: ''; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; background: #2563eb; }
.arena-assistant-body { display: grid; gap: 16px; padding: 16px 0 20px; }
.arena-preset-bar { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 8px; }
.arena-preset-bar select, .arena-rule-composer select, .arena-id-form input, .arena-auto-settings input, .arena-auto-settings select {
  min-width: 0; height: 36px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #334155; font: inherit;
}
.arena-preset-bar select, .arena-id-form input { padding-inline: 10px; }
.arena-lineup-rules, .arena-blacklist-editor { display: grid; gap: 9px; padding-top: 12px; border-top: 1px solid var(--line); }
.arena-lineup-rules > header { display: flex; justify-content: space-between; align-items: center; }
.arena-lineup-rules > header strong, .arena-blacklist-editor > strong { color: #334155; font-size: 13px; }
.arena-lineup-rules > header small { color: #94a3b8; font-size: 10px; }
.arena-rule-list { display: flex; flex-wrap: wrap; gap: 7px; min-height: 22px; }
.arena-rule-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 6px 4px 8px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; }
.arena-rule-chip > span { display: flex; }
.arena-rule-chip img { width: 23px; height: 23px; object-fit: contain; }
.arena-rule-chip-images { align-items: center; }
.arena-rule-chip-images.is-heroes img { margin-right: -5px; }
.arena-rule-chip .arena-rule-chip-image.is-player { margin-right: 0; border-radius: 50%; background: #eff6ff; object-fit: cover; }
.arena-rule-chip .arena-rule-chip-image.is-club { margin-right: 0; border-radius: 6px; background: #eff6ff; object-fit: contain; }
.arena-rule-chip-fallback { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #dbeafe; color: #2563eb; font-size: 9px; font-weight: 760; }
.arena-rule-chip strong { max-width: 240px; overflow: hidden; color: #475569; font-size: 10px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.arena-rule-chip button { width: 20px; height: 20px; padding: 0; border: 0; background: transparent; color: #9b6b69; font-size: 16px; }
.arena-rule-composer { display: grid; grid-template-columns: 72px repeat(5, minmax(76px, 1fr)) auto; gap: 6px; align-items: center; }
.arena-rule-composer > strong { color: #64748b; font-size: 10px; }
.arena-rule-composer select { padding-inline: 5px; font-size: 10px; }
.arena-blacklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.arena-id-form { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(120px, 1fr) auto; gap: 6px; }
.arena-auto-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 12px; align-items: end; }
.arena-auto-settings label { display: grid; gap: 5px; }
.arena-auto-settings label span { color: #64748b; font-size: 10px; }
.arena-auto-settings input, .arena-auto-settings select { padding-inline: 8px; }
.arena-auto-actions { grid-column: 1 / -1; display: flex; justify-content: end; gap: 8px; }
.arena-start-button { display: inline-flex; align-items: center; gap: 7px; }
.arena-start-button img { width: 19px; height: 19px; object-fit: contain; }
.arena-live-panel { overflow: hidden; border: 1px solid #dce6e1; border-radius: 12px; background: #ffffff; }
.arena-live-panel > header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 15px; border-bottom: 1px solid #e2e8f0; background: #f4f8f6; }
.arena-live-heading { display: flex; align-items: center; gap: 9px; min-width: 0; }
.arena-live-heading > img { width: 30px; height: 30px; object-fit: contain; }
.arena-live-heading > span { display: grid; min-width: 0; gap: 2px; }
.arena-live-heading strong { color: #334155; font-size: 13px; }
.arena-live-heading small { overflow: hidden; color: #64748b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.arena-live-panel > header > em { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 4px 9px; border-radius: 10px; background: #e9f0ed; color: #64748b; font-size: 9px; font-style: normal; font-weight: 700; }
.arena-live-panel > header > em i { width: 7px; height: 7px; border-radius: 50%; background: #9aaaa2; }
.arena-live-panel[data-status="running"] > header > em { background: #eff6ff; color: #1d4ed8; }
.arena-live-panel[data-status="running"] > header > em i { background: #3b82f6; box-shadow: 0 0 0 0 rgba(59, 130, 246, .34); animation: arena-live-pulse 1.3s infinite; }
.arena-live-panel[data-status="complete"] > header > em { background: #e4f4e8; color: #33754d; }
.arena-live-panel[data-status="complete"] > header > em i { background: #50a46d; }
.arena-live-panel[data-status="error"] > header > em { background: #f8e8e7; color: #b04f4d; }
.arena-live-panel[data-status="error"] > header > em i { background: #c85b58; }
@keyframes arena-live-pulse { 70% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }
.arena-live-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; border-bottom: 1px solid #e2e8f0; background: #e2e8f0; }
.arena-live-metric { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 58px; padding: 8px 11px; background: #fff; }
.arena-live-metric > img { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.arena-live-metric > span { display: grid; min-width: 0; gap: 1px; }
.arena-live-metric strong { color: #334155; font-size: 14px; font-variant-numeric: tabular-nums; }
.arena-live-metric small { overflow: hidden; color: #94a3b8; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.arena-live-metric[data-tone="success"] strong { color: #25805e; }
.arena-live-metric[data-tone="danger"] strong { color: #bc504e; }
.arena-live-list { max-height: 390px; overflow-y: auto; background: #fff; }
.arena-live-list article { display: grid; grid-template-columns: 34px 23px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 59px; padding: 8px 13px; border-bottom: 1px solid #e2e8f0; }
.arena-live-list article:last-child { border-bottom: 0; }
.arena-live-avatar { width: 32px; height: 32px; border-radius: 50%; background: #eff6ff; object-fit: cover; }
.arena-live-list article[data-event-type="refresh"] .arena-live-avatar { padding: 5px; border-radius: 8px; object-fit: contain; }
.arena-live-outcome { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e4f3eb; color: #25805e; font-size: 13px; font-style: normal; font-weight: 800; }
.arena-live-list article[data-outcome="loss"] .arena-live-outcome,
.arena-live-list article[data-outcome="failed"] .arena-live-outcome { background: #f8e7e6; color: #bd504e; }
.arena-live-list article[data-outcome="draw"] .arena-live-outcome { background: #f5eedc; color: #a77a28; }
.arena-live-list article[data-outcome="checking"] .arena-live-outcome { background: #e8f0fb; color: #3f6f9e; }
.arena-live-list article[data-outcome="skipped"] .arena-live-outcome { background: #edf0f2; color: #7a8b98; }
.arena-live-list article[data-outcome="refreshed"] .arena-live-outcome { background: #e8f0fb; color: #3f6f9e; }
.arena-live-copy, .arena-live-result { display: grid; min-width: 0; gap: 3px; }
.arena-live-copy strong { overflow: hidden; color: #334155; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.arena-live-copy small { overflow: hidden; color: #94a3b8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.arena-live-detail { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 16px; }
.arena-live-detail > small { min-width: 0; }
.arena-live-duel-strip { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.arena-live-duel-strip > img { width: 16px; height: 16px; object-fit: contain; }
.arena-live-duel-strip > i { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #e4f3eb; color: #25805e; font-size: 9px; font-style: normal; font-weight: 800; }
.arena-live-duel-strip > i[data-outcome="loss"],
.arena-live-duel-strip > i[data-outcome="failed"] { background: #f8e7e6; color: #bd504e; }
.arena-live-duel-strip > i[data-outcome="draw"] { background: #f5eedc; color: #a77a28; }
.arena-live-result { justify-items: end; min-width: 62px; }
.arena-live-result strong { color: #28805f; font-size: 10px; }
.arena-live-result small { color: #64748b; font-size: 9px; font-variant-numeric: tabular-nums; }
.arena-live-list article[data-outcome="loss"] .arena-live-result strong,
.arena-live-list article[data-outcome="failed"] .arena-live-result strong { color: #bc504e; }
.arena-live-list article[data-outcome="draw"] .arena-live-result strong { color: #a77a28; }
.arena-live-list article[data-outcome="checking"] .arena-live-result strong,
.arena-live-list article[data-outcome="refreshed"] .arena-live-result strong { color: #3f6f9e; }
.arena-live-list article[data-outcome="skipped"] .arena-live-result strong { color: #7a8b98; }
.arena-live-empty { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 104px; padding: 20px; }
.arena-live-empty > img { width: 40px; height: 40px; object-fit: contain; opacity: .72; }
.arena-live-empty > span { display: grid; gap: 3px; }
.arena-live-empty strong { color: #64748b; font-size: 11px; }
.arena-live-empty small { color: #94a3b8; font-size: 9px; }
.arena-history-toolbar { display: flex; justify-content: space-between; align-items: center; color: #64748b; font-size: 11px; }
.arena-history-list { border-top: 1px solid var(--line); }
.arena-history-list article { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; align-items: center; min-height: 53px; border-bottom: 1px solid var(--line); }
.arena-history-list i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #eff6ff; color: #3a8c6d; font-size: 12px; font-style: normal; }
.arena-history-list article[data-outcome="loss"] i, .arena-history-list article[data-outcome="failed"] i { background: #f9eceb; color: #c25350; }
.arena-history-list article > span { min-width: 0; display: grid; gap: 2px; }
.arena-history-list strong { color: #334155; font-size: 11px; }
.arena-history-list small { color: #94a3b8; font-size: 9px; }
.arena-history-list > p { margin: 0; padding: 28px; color: #94a3b8; font-size: 11px; text-align: center; }

@media (max-width: 720px) {
  .arena-preset-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .arena-preset-bar .primary-button { grid-column: 1 / -1; }
  .arena-rule-composer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arena-rule-composer > strong, .arena-rule-composer > button { grid-column: 1 / -1; }
  .arena-blacklist-grid { grid-template-columns: 1fr; gap: 16px; }
  .arena-id-form { grid-template-columns: 1fr auto; }
  .arena-id-form input:nth-child(2) { grid-column: 1; grid-row: 2; }
  .arena-id-form button { grid-column: 2; grid-row: 1 / span 2; }
  .arena-auto-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .arena-auto-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; }
  .arena-live-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arena-live-metric:last-child { grid-column: 1 / -1; }
  .arena-live-list article { grid-template-columns: 32px 22px minmax(0, 1fr); }
  .arena-live-result { grid-column: 3; grid-row: 2; display: flex; justify-content: start; gap: 8px; }
}

/* platform-console / functions / arena-assistant: shared Cloud + manage UI */
.arena-assistant-card { grid-column: 1 / -1; }
.arena-assistant-card > header { padding-bottom: 10px; }
.arena-assistant-status { min-height: 18px; margin: 0 0 10px; color: #64748b; font-size: 11px; }
.arena-assistant-status[data-tone="success"] { color: #26815f; }
.arena-assistant-status[data-tone="error"] { color: #bd504e; }
.arena-assistant-unavailable { margin: 0; padding: 18px; border: 1px solid #dbe6ff; color: #64748b; text-align: center; }
.arena2-shell { min-width: 0; border: 1px solid #cddcf5; background: #f8fbff; }
.arena2-shell button, .arena2-shell input, .arena2-shell select { box-sizing: border-box; font: inherit; }
.arena2-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #cddcf5; background: #fff; }
.arena2-tabs > button {
  min-width: 0; min-height: 54px; padding: 7px 10px; border: 0; border-right: 1px solid #d9e3f4;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: #334155; background: #fff; font-size: 12px; font-weight: 750; cursor: pointer;
}
.arena2-tabs > button:last-child { border-right: 0; }
.arena2-tabs > button[aria-current="page"] { color: #fff; background: #2f6feb; }
.arena2-tabs img { width: 23px; height: 23px; flex: 0 0 23px; object-fit: contain; }
.arena2-view { min-width: 0; padding: 12px; }
.arena2-section { min-width: 0; display: grid; gap: 12px; }
.arena2-identity { min-height: 58px; padding: 9px 12px; border-left: 4px solid #2f6feb; display: flex; align-items: center; gap: 12px; background: #edf5ff; }
.arena2-identity > img { width: 44px; height: 44px; flex: 0 0 44px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 1px 4px rgba(30, 64, 175, .18); }
.arena2-identity > span { min-width: 0; display: grid; gap: 3px; }
.arena2-identity strong { overflow: hidden; color: #183153; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.arena2-identity small { color: #5f7594; font-size: 10px; }
.arena2-block { min-width: 0; padding: 12px; border: 1px solid #d8e3f4; background: #fff; }
.arena2-block.is-allow { border-left: 3px solid #45a876; }
.arena2-block.is-deny { border-left: 3px solid #d06761; }
.arena2-block > p, .arena2-settings-head > p, .arena2-block-head p { margin: 4px 0 9px; color: #71829a; font-size: 10px; line-height: 1.45; }
.arena2-block-title, .arena2-block-head { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.arena2-block-title > span, .arena2-record-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.arena2-block-title img, .arena2-record-title img { width: 27px; height: 27px; flex: 0 0 27px; object-fit: contain; }
.arena2-block h3, .arena2-record-title h3 { margin: 0; color: #16243a; font-size: 14px; font-weight: 850; }
.arena2-rule-columns { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.arena2-add-lineup {
  width: 30px; height: 30px; padding: 0; border: 1px solid #b9cdf2; display: grid; place-items: center;
  color: #2f6feb; background: #f5f9ff; font-size: 22px !important; font-weight: 500 !important; line-height: 1; cursor: pointer;
}
.arena2-preset-row { display: grid; grid-template-columns: minmax(150px, 1fr) repeat(3, 74px); gap: 8px; }
.arena2-preset-row select, .arena2-id-form input, .arena2-setting-field input {
  min-width: 0; height: 34px; padding: 0 10px; border: 1px solid #cbd8ec; border-radius: 0; color: #334155; background: #fff; font-size: 11px;
}
.arena2-preset-row button, .arena2-id-form button, .arena2-settings-actions button, .arena2-dialog footer button, .arena2-block-head > button {
  min-height: 34px; padding: 0 12px; border: 1px solid #cbd8ec; border-radius: 0;
  color: #3f5f8e; background: #fff; font-size: 11px !important; font-weight: 750 !important; line-height: 1.2; cursor: pointer;
}
.arena2-preset-row button.is-primary, .arena2-id-form button.is-primary, .arena2-settings-actions button.is-primary, .arena2-dialog footer button.is-primary {
  border-color: #2f6feb; color: #fff; background: #2f6feb;
}
.arena2-settings-actions button.is-danger { border-color: #d9847e; color: #ae413d; background: #fff7f6; }
.arena2-shell button:disabled { opacity: .48; cursor: not-allowed; }
.arena2-rule-list { border-top: 1px solid #e3eaf5; }
.arena2-rule-row { min-height: 47px; padding: 5px 0; border-bottom: 1px solid #e3eaf5; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.arena2-rule-row.is-lineup { min-height: 44px; grid-template-columns: minmax(0, 1fr) auto; }
.arena2-rule-row > .arena2-rule-icon { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #edf3fb; }
.arena2-rule-row > span:not(.arena2-portraits) { min-width: 0; display: grid; gap: 2px; }
.arena2-rule-row strong { overflow: hidden; color: #334155; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.arena2-rule-row small { color: #8291a5; font-size: 9px; }
.arena2-rule-row > button { min-width: 47px; min-height: 28px; padding: 0 8px; border: 1px solid #e1c9c7; color: #b34e49; background: #fff9f8; font-size: 10px; font-weight: 720; cursor: pointer; }
.arena2-portraits { display: flex; align-items: center; min-width: 0; }
.arena2-portraits img { width: 34px; height: 34px; margin-right: -4px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; background: #edf3fb; box-shadow: 0 0 0 1px #ccdaee; }
.arena2-empty { min-height: 46px; display: flex; align-items: center; justify-content: center; color: #93a1b4; font-size: 10px; background: #f7f9fc; }
.arena2-empty.is-record { gap: 9px; }
.arena2-empty.is-record img { width: 30px; height: 30px; object-fit: contain; opacity: .72; }
.arena2-id-form { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr) 83px; gap: 7px; }
.arena2-id-form button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.arena2-id-form button img { width: 17px; height: 17px; object-fit: contain; }
.arena2-block-head { align-items: flex-start; }
.arena2-block-head > span { min-width: 0; }
.arena2-settings-head { text-align: center; }
.arena2-settings-head h3 { font-size: 17px; }
.arena2-settings-form { max-width: 620px; margin: 0 auto; display: grid; gap: 0; }
.arena2-setting-field { min-height: 49px; border-bottom: 1px solid #e3eaf5; display: grid; grid-template-columns: minmax(120px, 1fr) minmax(150px, 232px); align-items: center; gap: 18px; }
.arena2-setting-field > span:first-child { color: #334155; font-size: 12px; font-weight: 720; }
.arena2-setting-field > input { width: 100%; justify-self: end; text-align: right; }
.arena2-mode-switch { width: 232px; justify-self: end; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #b9c9e2; }
.arena2-mode-switch button { min-height: 32px; padding: 0 9px; border: 0; border-right: 1px solid #cbd8ec; color: #516987; background: #fff; font-size: 11px; font-weight: 750; cursor: pointer; }
.arena2-mode-switch button:last-child { border-right: 0; }
.arena2-mode-switch button[aria-pressed="true"] { color: #fff; background: #2f6feb; }
.arena2-custom { display: grid; }
.arena2-custom[hidden] { display: none; }
.arena2-settings-actions { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.arena2-settings-actions button { min-height: 38px; font-size: 12px !important; }
.arena2-dialog-layer { position: fixed; inset: 0; z-index: 60; padding: 18px; display: grid; place-items: center; background: rgba(15, 23, 42, .42); }
.arena2-dialog { width: min(620px, calc(100vw - 36px)); max-height: min(680px, calc(100vh - 36px)); border: 1px solid #b9c9e2; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; background: #fff; box-shadow: 0 18px 50px rgba(15, 23, 42, .22); }
.arena2-dialog.is-name { width: min(380px, calc(100vw - 36px)); grid-template-rows: auto auto auto; }
.arena2-dialog > header { padding: 14px 16px 10px; display: grid; gap: 3px; border-bottom: 1px solid #e1e8f3; }
.arena2-dialog > header strong { color: #1f2f46; font-size: 15px; }
.arena2-dialog > header small { color: #71829a; font-size: 10px; }
.arena2-dialog-body { min-height: 0; padding: 12px 16px; overflow-y: auto; }
.arena2-dialog.is-name .arena2-dialog-body input { box-sizing: border-box; width: 100%; height: 39px; padding: 0 10px; border: 1px solid #aebfda; font-size: 12px; }
.arena2-dialog > footer { min-height: 53px; padding: 8px 16px; border-top: 1px solid #e1e8f3; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.arena2-dialog > footer > small { color: #71829a; font-size: 10px; }
.arena2-dialog > footer > div { display: flex; gap: 8px; }
.arena2-camp-filter { padding: 10px 16px 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.arena2-camp-filter button { min-height: 31px; border: 1px solid #cbd8ec; border-right: 0; color: #516987; background: #fff; font-size: 10px; cursor: pointer; }
.arena2-camp-filter button:last-child { border-right: 1px solid #cbd8ec; }
.arena2-camp-filter button[aria-pressed="true"] { color: #fff; background: #2f6feb; }
.arena2-hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; }
.arena2-hero-option { position: relative; min-width: 0; aspect-ratio: 1; padding: 3px; border: 2px solid #dce5f0; background: #fff; cursor: pointer; transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease; }
.arena2-hero-option:hover { border-color: #93b4ef; }
.arena2-hero-option.is-selected { border-color: #2f6feb; background: #fff; box-shadow: 0 0 0 2px rgba(47,111,235,.18); }
.arena2-hero-option.is-selected:active { transform: scale(.97); }
.arena2-hero-option img { width: 100%; height: 100%; display: block; object-fit: cover; }
.arena2-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: #dce5f3; }
.arena2-live-block { padding: 0; overflow: hidden; }
.arena2-metrics > span { min-width: 0; min-height: 62px; padding: 8px; display: flex; align-items: center; gap: 7px; background: #fff; }
.arena2-metrics img { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.arena2-metrics b { min-width: 0; display: grid; gap: 2px; font-style: normal; }
.arena2-metrics strong { overflow: hidden; color: #243850; font-size: 14px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.arena2-metrics small { color: #8391a4; font-size: 8px; font-weight: 600; white-space: nowrap; }
.arena2-opponent-list, .arena2-attack-history { display: grid; }
.arena2-opponent-row { --arena-row-accent: #9aa9bd; min-height: 48px; padding: 5px 9px; border-bottom: 1px solid #e2e8f1; border-left: 3px solid var(--arena-row-accent); display: grid; grid-template-columns: 36px minmax(90px, 1fr) minmax(86px, auto) 58px; align-items: center; gap: 9px; background: #f7f9fc; }
.arena2-opponent-row:last-child { border-bottom: 0; }
.arena2-opponent-row[data-list-status="allow"] { --arena-row-accent: #49a978; background: #eff9f3; }
.arena2-opponent-row[data-list-status="deny"] { --arena-row-accent: #ce6862; background: #fff3f2; }
.arena2-opponent-row[data-attack-state="attacking"] { position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px #3f7cf1; animation: arena2-attacking 1s ease-in-out infinite alternate; }
.arena2-opponent-row[data-attack-state="win"] { --arena-row-accent: #3ea56f; background: #eaf8f0; box-shadow: inset 0 0 0 1px #86cfaa; }
.arena2-opponent-row[data-attack-state="loss"] { --arena-row-accent: #c95450; background: #fff0ef; box-shadow: inset 0 0 0 1px #e3a4a0; }
@keyframes arena2-attacking { from { background-color: #eef5ff; } to { background-color: #dbe9ff; } }
.arena2-opponent-row > img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #e7eef8; }
.arena2-opponent-row > strong { overflow: hidden; color: #334155; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.arena2-opponent-row > span { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; color: #4f6480; font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
.arena2-opponent-row > span > img { width: 18px; height: 18px; object-fit: contain; }
.arena2-opponent-row > span > small { padding: 2px 4px; color: #ad4e49; background: #ffe5e2; font-size: 8px; }
.arena2-opponent-row > em { color: #63748b; font-size: 9px; font-style: normal; font-weight: 750; text-align: right; }
.arena2-opponent-row[data-list-status="allow"] > em { color: #2d8059; }
.arena2-opponent-row[data-list-status="deny"] > em { color: #ad4e49; }
.arena2-attack-row { min-height: 51px; padding: 6px 9px; border-bottom: 1px solid #e2e8f1; border-left: 3px solid #9aa9bd; display: grid; grid-template-columns: 36px minmax(0, 1fr) 66px; align-items: center; gap: 9px; background: #f7f9fc; }
.arena2-attack-row:last-child { border-bottom: 0; }
.arena2-attack-row[data-outcome="win"] { border-left-color: #46a674; background: #eff9f3; }
.arena2-attack-row[data-outcome="loss"] { border-left-color: #cb5d57; background: #fff2f1; }
.arena2-attack-row[data-outcome="pending"] { border-left-color: #3f7cf1; background: #eef5ff; }
.arena2-attack-row > img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #e7eef8; }
.arena2-attack-row > span:not(.arena2-attack-result) { min-width: 0; display: grid; gap: 2px; }
.arena2-attack-row strong { overflow: hidden; color: #334155; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.arena2-attack-row small { overflow: hidden; color: #76869b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.arena2-attack-result { display: grid; justify-items: end; gap: 2px; }
.arena2-attack-result em { color: #64748b; font-size: 10px; font-style: normal; font-weight: 800; }
.arena2-attack-row[data-outcome="win"] .arena2-attack-result em { color: #2e825b; }
.arena2-attack-row[data-outcome="loss"] .arena2-attack-result em { color: #ad4e49; }
.arena2-attack-row[data-outcome="pending"] .arena2-attack-result em { color: #2f6feb; }
.arena2-attack-result time { color: #8b98a9; font-size: 8px; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .arena2-view { padding: 10px; }
  .arena2-rule-columns { grid-template-columns: 1fr; }
  .arena2-preset-row { grid-template-columns: minmax(0, 1fr) repeat(3, 60px); gap: 6px; }
  .arena2-preset-row button { padding-inline: 7px; }
  .arena2-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .arena2-setting-field { grid-template-columns: minmax(95px, 1fr) minmax(132px, 190px); gap: 10px; }
  .arena2-mode-switch { width: 190px; }
}

@media (max-width: 500px) {
  .arena2-tabs > button { min-height: 50px; padding-inline: 5px; gap: 5px; font-size: 11px; }
  .arena2-tabs img { width: 21px; height: 21px; flex-basis: 21px; }
  .arena2-view { padding: 8px; }
  .arena2-block { padding: 10px; }
  .arena2-preset-row { grid-template-columns: repeat(3, 1fr); }
  .arena2-preset-row select { grid-column: 1 / -1; }
  .arena2-metrics > span { min-height: 56px; padding: 6px; gap: 5px; }
  .arena2-metrics img { width: 24px; height: 24px; flex-basis: 24px; }
  .arena2-metrics strong { font-size: 12px; }
  .arena2-setting-field { grid-template-columns: minmax(90px, 1fr) minmax(125px, 164px); }
  .arena2-mode-switch { width: 164px; }
  .arena2-opponent-row { grid-template-columns: 34px minmax(70px, 1fr) minmax(78px, auto) 50px; gap: 6px; padding-inline: 6px; }
  .arena2-opponent-row > img, .arena2-attack-row > img { width: 32px; height: 32px; }
  .arena2-opponent-row > span > small { display: block; }
}
.workbench-hero-list { display: grid; grid-template-columns: repeat(5, 54px); justify-content: center; gap: 7px; min-width: 298px; }
.workbench-hero { --hero-ring: #94a3b8; min-width: 0; display: grid; justify-items: center; gap: 3px; }
.workbench-hero-portrait { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border: 2px solid var(--hero-ring); border-radius: 50%; background: #f1f5f9; box-shadow: 0 1px 3px rgba(15, 23, 42, .13); }
.workbench-hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.workbench-hero-meta { width: 54px; min-height: 13px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.workbench-hero-stars { min-width: 0; display: flex; align-items: center; justify-content: center; }
.workbench-hero-stars img { width: 9px; height: 9px; object-fit: contain; margin-inline: -1.5px; }
.workbench-hero-red-quench { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 1px; color: #d83f42; font-variant-numeric: tabular-nums; }
.workbench-hero-red-quench img { width: 9px; height: 10px; object-fit: contain; }
.workbench-hero-red-quench strong { font-size: 9px; line-height: 1; font-weight: 850; }
.workbench-hero.is-empty .workbench-hero-portrait { border-style: dashed; box-shadow: none; }
.workbench-hero.is-empty .workbench-hero-portrait::before { color: #a5afaa; content: "—"; font-weight: 700; }
.workbench-muted-value, .workbench-camp-unknown { color: #64748b; }
.workbench-camp-unknown { --hero-ring: #94a3b8; }
.workbench-camp-qun { --hero-ring: #d27622; }
.workbench-camp-wu { --hero-ring: #d64a4a; }
.workbench-camp-wei { --hero-ring: #3475bd; }
.workbench-camp-shu { --hero-ring: #2f8a58; }
.workbench-pet-card { --pet-frame: #94a3b8; --pet-wash: #eef2f0; min-width: 86px; display: inline-flex; align-items: center; gap: 8px; }
.workbench-pet-visual { width: 48px; flex: 0 0 48px; display: grid; justify-items: center; gap: 2px; }
.workbench-pet-frame { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; overflow: hidden; border: 2px solid var(--pet-frame); border-radius: 8px; background: var(--pet-wash); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.workbench-pet-frame img { width: 100%; height: 100%; object-fit: contain; }
.workbench-pet-stars { min-height: 9px; font-size: 9px; line-height: 1; font-weight: 900; letter-spacing: -1px; text-shadow: 0 1px 1px rgba(50, 45, 32, .16); white-space: nowrap; }
.workbench-pet-stars.is-tier-0 { color: #aab3ae; text-shadow: none; }
.workbench-pet-stars.is-tier-1 { color: #e9b817; }
.workbench-pet-stars.is-tier-2 { color: #a650df; }
.workbench-pet-stars.is-tier-3 { color: #ef8a14; }
.workbench-pet-stars.is-tier-4 { color: #ed5663; }
.workbench-pet-stars.is-tier-5 { color: #f3c74d; text-shadow: 0 0 2px #ed5663, 0 1px 1px rgba(50,45,32,.2); }
.workbench-pet-stars.is-tier-6 { color: #d98cff; text-shadow: 0 0 2px #7a35b1, 0 1px 1px rgba(50,45,32,.2); }
.workbench-pet-meta { display: grid; gap: 4px; }
.workbench-pet-level { display: inline-flex; align-items: baseline; gap: 2px; color: var(--pet-frame); }
.workbench-pet-level strong { font-size: 15px; line-height: 1; font-weight: 800; }
.workbench-pet-level small { font-size: 9px; font-weight: 720; }
.workbench-pet-red-quench { display: inline-flex; align-items: center; gap: 3px; color: #d83f42; font-variant-numeric: tabular-nums; }
.workbench-pet-red-quench img { width: 17px; height: 16px; object-fit: contain; }
.workbench-pet-red-quench strong { font-size: 11px; line-height: 1; font-weight: 850; }
.workbench-pet-unknown, .workbench-pet-white {
  --pet-frame: #94a3b8; --pet-wash: #f1f5f9; --pet-glow: rgba(226,232,240,.82); --pet-glow-tight: 1px; --pet-glow-wide: 3px;
}
.workbench-pet-green {
  --pet-frame: #31925a; --pet-wash: #ecf7f0; --pet-glow: rgba(74,222,128,.76); --pet-glow-tight: 1px; --pet-glow-wide: 4px;
}
.workbench-pet-blue {
  --pet-frame: #3277c5; --pet-wash: #edf4fb; --pet-glow: rgba(96,165,250,.8); --pet-glow-tight: 2px; --pet-glow-wide: 5px;
}
.workbench-pet-purple {
  --pet-frame: #8550b9; --pet-wash: #f4eff9; --pet-glow: rgba(192,132,252,.84); --pet-glow-tight: 2px; --pet-glow-wide: 6px;
}
.workbench-pet-orange {
  --pet-frame: #d57a20; --pet-wash: #fbf3e9; --pet-glow: rgba(251,146,60,.88); --pet-glow-tight: 2px; --pet-glow-wide: 7px;
}
.workbench-pet-red {
  --pet-frame: #d54242; --pet-wash: #fbeeee; --pet-glow: rgba(248,113,113,.92); --pet-glow-tight: 3px; --pet-glow-wide: 8px;
}
.workbench-pet-gold {
  --pet-frame: #b7860b; --pet-wash: #fff8db; --pet-glow: rgba(250,204,21,.96); --pet-glow-tight: 3px; --pet-glow-wide: 9px;
}
.club-members-export-stage {
  position: fixed;
  top: 0;
  left: -20000px;
  z-index: -1;
  pointer-events: none;
}
.club-members-export-capture {
  box-sizing: border-box;
  gap: 18px;
  padding: 28px 32px 34px;
  color: #1e293b;
  background: #fff;
  animation: none;
}
.club-members-export-banner { padding-bottom: 18px; }
.club-members-export-banner img { width: 56px; height: 56px; }
.club-members-export-banner strong { font-size: 22px; }
.club-members-export-banner small { font-size: 11px; }
.club-members-export-capture .workbench-table-scroll { overflow: visible; }
.club-members-export-capture .workbench-table { width: 100%; }
.club-members-export-capture .workbench-table thead tr { height: 46px; }
.club-members-export-capture .workbench-table tbody tr { height: 70px; }
.club-members-export-capture .workbench-table th,
.club-members-export-capture .workbench-table td {
  box-sizing: border-box;
  height: 70px;
  padding-top: 7px;
  padding-bottom: 7px;
  line-height: 16px;
  vertical-align: middle;
}
.club-members-export-capture .workbench-table th { height: 46px; }
.club-members-export-capture .workbench-member { min-height: 54px; }
.club-members-export-capture .workbench-hero-list { min-height: 58px; align-items: center; }
.club-members-export-capture .workbench-pet-card { min-height: 54px; }
.workbench-car-grid, .workbench-club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 18px; }
.workbench-data-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; border-bottom: 1px solid var(--line); }
.workbench-data-row span { display: grid; gap: 2px; }
.workbench-data-row small { color: #64748b; font-size: 10px; }
.workbench-data-row strong { font-size: 13px; }
.workbench-data-row em { color: var(--green-dark); font-size: 12px; font-style: normal; font-weight: 750; }
.salt-directory, .salt-detail { min-width: 0; animation: workbench-in .22s ease-out; }
.salt-directory[hidden], .salt-detail[hidden], .salt-detail-control[hidden] { display: none; }
.salt-directory { display: grid; gap: 28px; }
.salt-module-section { min-width: 0; display: grid; gap: 12px; }
.salt-module-heading {
  min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 2px 9px;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.salt-module-heading > img { width: 38px; height: 38px; object-fit: contain; }
.salt-module-heading > strong { font-size: 21px; font-weight: 850; letter-spacing: .04em; }
.salt-module-heading.is-peach { min-height: 51px; }
.salt-module-heading.is-peach > img { width: auto; height: 43px; max-width: min(233px, 75vw); }
.salt-module-section.is-salt .salt-action-navigation { grid-template-columns: repeat(4, minmax(138px, 180px)); }
.salt-module-section.is-peach .salt-action-navigation { grid-template-columns: repeat(3, minmax(138px, 180px)); }
.member-roster-panel.battle-report-sheet {
  width: 100%; max-width: 1120px; min-width: 0; margin-inline: auto; padding: 24px 28px 28px;
}
.member-roster-panel .battle-report-masthead { min-height: 108px; }
.member-roster-panel .battle-report-masthead.has-announcement {
  grid-template-columns: minmax(260px, 1fr) minmax(230px, 340px) auto; gap: 20px;
}
.member-roster-masthead-announcement {
  position: relative; z-index: 1; min-width: 0; align-self: stretch; padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .72); display: grid; align-content: center; gap: 4px;
  background: rgba(242, 244, 243, .72); box-shadow: inset 0 0 0 1px rgba(137, 145, 141, .08);
  backdrop-filter: blur(5px);
}
.member-roster-masthead-announcement strong {
  color: var(--report-accent-deep); font-size: 12px; font-weight: 900; letter-spacing: .12em;
}
.member-roster-masthead-announcement span {
  display: -webkit-box; overflow: hidden; color: #59625e; font-size: 12px; line-height: 1.5;
  -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
.member-roster-overview { margin-top: 4px; }
.member-roster-metrics {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px;
  border-block: 1px solid var(--report-rule); background: var(--report-rule);
}
.member-roster-metric {
  min-width: 0; min-height: 76px; padding: 11px 12px; display: grid;
  grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px;
  background: rgba(255, 253, 248, .92);
}
.member-roster-metric > img { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(90, 62, 43, .12)); }
.member-roster-metric > span { min-width: 0; display: grid; gap: 3px; }
.member-roster-metric small { color: var(--report-muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.member-roster-metric strong {
  overflow: hidden; color: var(--report-ink); font-size: 16px; font-weight: 900;
  line-height: 1.2; white-space: normal; overflow-wrap: anywhere;
}
.member-roster-section { margin-top: 2px; gap: 0; }
.member-roster-section > .battle-report-section-heading { margin-bottom: 0; align-items: center; }
.member-roster-section > .battle-report-section-heading > strong {
  position: relative; padding-left: 13px; color: var(--report-ink); font-size: 17px; font-weight: 900; letter-spacing: .04em;
}
.member-roster-section > .battle-report-section-heading > strong::before {
  position: absolute; top: 2px; bottom: 2px; left: 0; width: 4px; background: var(--report-accent); content: "";
}
.member-roster-section .workbench-section-tools > small { color: var(--report-muted); font-size: 13px; font-weight: 700; }
.member-roster-section .workbench-table-scroll { border-bottom: 1px solid var(--report-rule); }
.member-roster-table { width: 100%; min-width: 0; color: var(--report-ink); background: rgba(255, 253, 248, .72); }
.member-roster-table th,
.member-roster-table td { border-color: var(--report-rule); text-align: center; }
.member-roster-table thead th {
  height: 42px; color: var(--report-accent-deep); background: var(--report-accent-faint);
  font-size: 16px; font-weight: 850; letter-spacing: .04em;
}
.member-roster-table tbody tr { min-height: 62px; }
.member-roster-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .34); }
.member-roster-table tbody tr:hover td { background: rgba(243, 223, 209, .34); }
.member-roster-table tbody td { height: 76px; color: #394541; font-size: 16px; }
.member-roster-table :is(th, td).workbench-club-member-column {
  width: auto; min-width: 0; max-width: none; border-right: 0; text-align: center;
}
.member-roster-table .workbench-member { width: 176px; min-width: 0; margin-inline: auto; gap: 8px; text-align: left; }
.member-roster-table .workbench-member > span { min-width: 0; }
.member-roster-table .workbench-member strong { max-width: 136px; font-size: 15px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.member-roster-table .workbench-member small { font-size: 12px; line-height: 1.5; }
.member-roster-table :is(th, td):is(
  .member-roster-power-column,
  .member-roster-red-column,
  .member-roster-pet-column,
  .member-roster-saints-column,
  .member-roster-lineup-column
) { width: auto; min-width: 0; max-width: none; text-align: center; }
.member-roster-table .workbench-pet-card { min-width: 108px; text-align: left; }
.member-roster-table .workbench-pet-stars { min-height: 12px; font-size: 12px; }
.member-roster-table .workbench-pet-level strong { font-size: 18px; }
.member-roster-table .workbench-pet-level small { font-size: 12px; }
.member-roster-table .workbench-pet-red-quench strong { font-size: 14px; }
.member-roster-table .workbench-muted-value { font-size: 14px; }
.member-roster-icon-value { display: inline-flex; align-items: center; gap: 5px; color: var(--report-ink); }
.member-roster-icon-value > img { width: 19px; height: 19px; object-fit: contain; }
.member-roster-icon-value > strong { font-size: 16px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }
.member-roster-lineup-strip {
  width: max-content; display: inline-grid; grid-template-columns: repeat(5, 42px); grid-template-rows: 42px; gap: 4px; vertical-align: middle;
}
.member-roster-lineup-strip .peak-arena-star-tile { width: 42px; height: 42px; }
.member-roster-lineup-strip .peak-arena-star-tile > img { width: 33px; height: 33px; }
.member-roster-panel :is(.member-roster-lineup-strip, .member-roster-highest-saints) .peak-arena-star-tile { overflow: visible; }
.member-roster-panel :is(.member-roster-lineup-strip, .member-roster-highest-saints) .peak-arena-star-tile > em {
  top: -4px; left: -4px; z-index: 3; min-width: 20px; min-height: 15px; padding: 1px 3px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .78); border-radius: 3px;
  color: #fff8dc; background: #66542e; box-shadow: 0 1px 3px rgba(36, 30, 20, .34);
  text-shadow: 0 1px 1px rgba(31, 25, 14, .7); font-size: 12px; line-height: 1; font-weight: 950;
  font-variant-numeric: tabular-nums; -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.member-roster-panel :is(.member-roster-lineup-strip, .member-roster-highest-saints) .peak-arena-star-tile[data-stars="6"] > em { background: #856316; }
.member-roster-panel :is(.member-roster-lineup-strip, .member-roster-highest-saints) .peak-arena-star-tile[data-stars="5"] > em { background: #963e42; }
.member-roster-panel :is(.member-roster-lineup-strip, .member-roster-highest-saints) .peak-arena-star-tile[data-stars="4"] > em { background: #98551b; }
.member-roster-panel :is(.member-roster-lineup-strip, .member-roster-highest-saints) .peak-arena-star-tile[data-stars="3"] > em { background: #2f658c; }
.member-roster-panel :is(.member-roster-lineup-strip, .member-roster-highest-saints) .peak-arena-star-tile[data-stars="2"] > em { background: #39754d; }
.member-roster-panel :is(.member-roster-lineup-strip, .member-roster-highest-saints) .peak-arena-star-tile[data-stars="1"] > em { background: #68737d; }
.member-roster-panel :is(.member-roster-lineup-strip, .member-roster-highest-saints) .peak-arena-star-tile > small {
  right: -4px; bottom: -4px; z-index: 3; min-height: 15px; padding: 1px 3px 1px 2px; gap: 1px;
  border: 1px solid rgba(255, 221, 216, .82); border-radius: 3px;
  color: #fff6f2; background: #8f2834; box-shadow: 0 1px 3px rgba(67, 16, 23, .32);
  text-shadow: 0 1px 1px rgba(53, 12, 18, .72); -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.member-roster-panel :is(.member-roster-lineup-strip, .member-roster-highest-saints) .peak-arena-star-tile > small img { width: 11px; height: 11px; }
.member-roster-panel :is(.member-roster-lineup-strip, .member-roster-highest-saints) .peak-arena-star-tile > small strong {
  color: inherit; font-size: 12px; line-height: 1; font-weight: 950; font-variant-numeric: tabular-nums;
}
.member-roster-highest-saints {
  width: max-content; max-width: 222px; display: inline-flex; justify-content: center; gap: 3px; vertical-align: middle;
}
.member-roster-highest-saints .peak-arena-star-tile { flex: 0 0 42px; width: 42px; height: 42px; }
.member-roster-highest-saints .peak-arena-star-tile > img { width: 33px; height: 33px; }
.club-members-export-capture.member-roster-panel {
  max-width: none; min-width: 0; color: var(--report-ink); background: var(--report-paper); animation: none;
}
.club-members-export-capture.member-roster-panel .member-roster-table { min-width: 0; }
.club-members-export-capture.member-roster-panel .member-roster-lineup-strip { grid-template-columns: repeat(5, 42px); grid-template-rows: 42px; }
.salt-detail { display: grid; gap: 16px; }
.salt-detail-control {
  min-height: 54px; display: flex; align-items: end; justify-content: flex-end; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.salt-detail-control label { display: grid; gap: 4px; color: #64748b; font-size: 10px; }
.salt-detail-control :is(input, select) { width: 230px; height: 34px; padding: 0 9px; border: 1px solid var(--line-strong); color: var(--ink); background: #fff; }
.salt-detail-control button { min-height: 34px; }
.management-peach-report-panel { min-width: 0; gap: 12px; }
.management-peach-report-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.management-peach-report-toolbar > span { min-width: 0; display: grid; gap: 3px; }
.management-peach-report-toolbar strong { color: var(--ink); font-size: 16px; }
.management-peach-report-toolbar small { color: var(--muted); font-size: 10px; }
.management-peach-report-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.management-peach-report {
  width: 1200px; min-width: 1200px; padding: 22px 16px 16px; color: #2f3439; background: #fff;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-variant-numeric: tabular-nums; text-rendering: optimizeLegibility;
}
.management-peach-report > h2 { margin: 0 0 17px; color: #292f33; font-size: 24px; font-weight: 900; letter-spacing: 1px; text-align: center; }
.management-peach-versus { display: grid; grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); align-items: center; gap: 10px; }
.management-peach-versus > span {
  min-width: 0; display: grid; justify-items: center; gap: 4px; color: #7a838c;
}
.management-peach-versus > span > b { color: #8a8f94; font-size: 23px; line-height: 1; }
.management-peach-versus > span > small { font-size: 9px; line-height: 1.35; }
.management-peach-club-card {
  min-width: 0; min-height: 76px; padding: 12px; border: 1px solid #dfe5ea; border-radius: 8px;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 11px;
  background: linear-gradient(90deg, #f8fbff, #fff);
}
.management-peach-club-card.opponent { background: linear-gradient(270deg, #fff9ef, #fff); }
.management-peach-club-logo { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: #fff; }
.management-peach-club-logo img { max-width: 42px; max-height: 42px; object-fit: contain; }
.management-peach-club-card > span:last-child { min-width: 0; display: grid; gap: 3px; }
.management-peach-club-card small { color: #7a838c; font-size: 9px; }
.management-peach-club-card strong { overflow: hidden; color: #2f3439; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.management-peach-club-card em { color: #d65e6f; font-size: 9px; font-style: normal; }
.management-peach-rank-grid { padding: 12px 0 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.management-peach-rank-card { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 7px; }
.management-peach-rank-card h4 { margin: 0; padding: 5px 10px; background: #f3f7f3; color: #2f3439; font-size: 12px; text-align: center; }
.management-peach-rank-card > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.management-peach-rank-card article { min-width: 0; padding: 6px 9px 7px; }
.management-peach-rank-card article + article { border-left: 1px solid #e2e8f0; }
.management-peach-rank-card article > small { display: block; padding: 0 3px 3px; color: #7a838c; font-size: 8px; font-weight: 800; text-align: center; }
.management-peach-rank-list { min-height: 93px; display: grid; align-content: start; }
.management-peach-rank-empty { display: grid; min-height: 86px; place-items: center; color: #94a3b8; font-size: 9px; }
.management-peach-rank-row {
  min-height: 31px; border-bottom: 1px solid #eef1ee; display: grid;
  grid-template-columns: 16px 25px minmax(0, 1fr) 32px; align-items: center; gap: 5px;
}
.management-peach-rank-row:last-child { border-bottom: 0; }
.management-peach-rank-row em { color: #94a3b8; font-size: 8px; font-style: normal; }
.management-peach-rank-row:nth-child(1) em { color: #c7901f; }
.management-peach-rank-row:nth-child(2) em { color: #89949d; }
.management-peach-rank-row:nth-child(3) em { color: #9f7646; }
.management-peach-rank-row img { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; background: #f1f5f9; }
.management-peach-rank-row strong { overflow: hidden; color: #2f3439; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.management-peach-rank-row b { color: #c85a68; font-size: 9px; text-align: right; }
.management-peach-report-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.management-peach-report-team { overflow: hidden; border: 1px solid #dce4ea; border-radius: 5px; background: #fff; }
.management-peach-report-team.opponent { border-color: #eadfd7; }
.management-peach-report-team > header {
  height: 42px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, #eef7ff, #f8fbff); color: #39434a;
}
.management-peach-report-team.opponent > header { background: linear-gradient(90deg, #fff8ee, #fffaf5); }
.management-peach-report-team > header strong { font-size: 12px; }
.management-peach-report-team > header b { font-size: 11px; }
.management-peach-report-team table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 9px; }
.management-peach-report-team col.rank { width: 38px; }
.management-peach-report-team col.name { width: 156px; }
.management-peach-report-team col.power { width: 76px; }
.management-peach-report-team col.metric { width: 47px; }
.management-peach-report-team col.kd { width: 54px; }
.management-peach-report-team th,
.management-peach-report-team td {
  height: 42px; padding: 5px 4px; border: 1px solid #e8edf0; line-height: 14px; text-align: center; vertical-align: middle;
}
.management-peach-report-team th { height: 34px; background: #f6f8fa; color: #5d676e; font-weight: 800; }
.management-peach-report-team th:nth-child(2) { text-align: left; }
.management-peach-report-team tbody tr:nth-child(even) { background: #fcfdfe; }
.management-peach-report-team .empty { height: 72px; color: #94a3b8; }
.management-peach-report-player { min-width: 0; display: grid; grid-template-columns: 31px minmax(0, 1fr); align-items: center; gap: 6px; text-align: left; }
.management-peach-report-player > img { width: 29px; height: 29px; border-radius: 50%; object-fit: cover; background: #f0f2f4; }
.management-peach-report-player > span { min-width: 0; display: grid; }
.management-peach-report-player b { overflow: hidden; color: #31383d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.management-peach-report-player small { overflow: hidden; color: #a1a8ad; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.management-peach-report-team td.kills { color: #6ea33f; }
.management-peach-report-team td.revives { color: #c97d86; }
.management-peach-report-team td.streak { color: #ba9a37; }
.management-peach-report-team td.cars { color: #3a9aad; }
.management-peach-report-team td.kd-value { color: #59636b; }
.management-peach-report-team tfoot td { height: 34px; background: #eff8ff; color: #52606a; font-weight: 800; }
.management-peach-report-team.opponent tfoot td { background: #fff7ed; }
.management-peach-report-team tfoot td:first-child { text-align: left; }
.management-peach-export-stage { position: fixed; top: 0; left: -30000px; z-index: -1; pointer-events: none; }
.management-peach-export-capture { animation: none; }
.salt-dashboard-panel { min-width: 0; gap: 12px; }
.salt-dashboard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.salt-dashboard-toolbar > span:first-child { min-width: 0; display: grid; gap: 3px; }
.salt-dashboard-toolbar > span:first-child strong { color: var(--ink); font-size: 16px; }
.salt-dashboard-toolbar > span:first-child small { color: var(--muted); font-size: 10px; }
.salt-dashboard-actions { display: flex; align-items: center; gap: 8px; }
.salt-dashboard-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #eef1f5; }
.salt-dashboard-report {
  width: 100%; max-width: 980px; min-width: 800px; padding: 20px; color: #343943; background: #eef1f5;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-variant-numeric: tabular-nums; text-rendering: optimizeLegibility;
}
.salt-dashboard-hero {
  min-height: 100px; padding: 20px 28px; border-radius: 12px; display: grid; place-content: center; justify-items: center; gap: 7px;
  color: #fff; background: linear-gradient(112deg, #647eea 0%, #6e66d2 48%, #7e4dac 100%);
  box-shadow: 0 14px 34px rgba(91, 75, 174, .17);
}
.salt-dashboard-hero strong { font-size: 24px; font-weight: 900; letter-spacing: .03em; }
.salt-dashboard-hero small { color: rgba(255,255,255,.78); font-size: 12px; }
.salt-dashboard-overview { padding: 20px 0 18px; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; }
.salt-dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.salt-dashboard-metric {
  min-height: 78px; padding: 12px; border-radius: 9px; display: grid; place-content: center; justify-items: center; gap: 8px;
  background: #fff; box-shadow: 0 4px 12px rgba(51,65,85,.035);
}
.salt-dashboard-metric small { color: #8b9099; font-size: 11px; }
.salt-dashboard-metric b { color: #313740; font-size: 17px; font-weight: 850; }
.salt-dashboard-metric.kills b { color: #ff3346; }
.salt-dashboard-metric.builds b, .salt-dashboard-metric.revive b { color: #ff8617; }
.salt-dashboard-metric.average b { color: #6a3eea; }
.salt-dashboard-mvp {
  min-height: 169px; padding: 16px; border: 2px solid #ffc55e; border-radius: 12px; display: grid; place-content: center;
  justify-items: center; align-content: center; gap: 8px; background: #fffefa;
}
.salt-dashboard-mvp-avatar { position: relative; width: 78px; height: 78px; border: 4px solid #70c6f2; border-radius: 50%; display: grid; place-items: center; background: #e4f7ff; }
.salt-dashboard-mvp-avatar::before { position: absolute; top: -24px; left: 50%; font-size: 30px; content: "👑"; transform: translateX(-50%) rotate(-6deg); }
.salt-dashboard-mvp-avatar img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; }
.salt-dashboard-mvp > strong { max-width: 190px; overflow: hidden; color: #e69200; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.salt-dashboard-mvp > b { padding: 4px 11px; border-radius: 999px; color: #fff; background: #e89a00; font-size: 11px; }
.salt-dashboard-rank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.salt-dashboard-rank-card { overflow: hidden; border-top: 3px solid var(--rank-tone); border-radius: 7px; background: #fff; box-shadow: 0 4px 12px rgba(51,65,85,.035); }
.salt-dashboard-rank-card.kills { --rank-tone: #ff3047; }
.salt-dashboard-rank-card.builds { --rank-tone: #ff8414; }
.salt-dashboard-rank-card.kd { --rank-tone: #52cc19; }
.salt-dashboard-rank-card.deaths { --rank-tone: #959595; }
.salt-dashboard-rank-card.revive { --rank-tone: #753ee8; }
.salt-dashboard-rank-card.contribution { --rank-tone: #2799ef; }
.salt-dashboard-rank-card h3 { height: 38px; margin: 0; padding: 9px 12px 7px; display: flex; align-items: center; gap: 7px; color: #363b43; font-size: 14px; }
.salt-dashboard-rank-card h3 span { width: 19px; text-align: center; }
.salt-dashboard-rank-card > div { padding: 2px 11px 9px; }
.salt-dashboard-rank-row { min-height: 32px; display: grid; grid-template-columns: 18px minmax(0, 1fr) 50px; align-items: center; gap: 6px; }
.salt-dashboard-rank-row em { color: #8d929a; font-size: 10px; font-style: normal; }
.salt-dashboard-rank-member { min-width: 0; display: flex; align-items: center; gap: 7px; }
.salt-dashboard-rank-member img { width: 23px; height: 23px; border-radius: 50%; object-fit: cover; background: #eef1f5; }
.salt-dashboard-rank-member b { overflow: hidden; color: #4c5159; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.salt-dashboard-rank-row > strong { color: var(--rank-tone); font-size: 11px; text-align: right; }
.salt-dashboard-rank-empty { min-height: 96px; display: grid; place-items: center; color: #9aa0aa; font-size: 11px; }
.salt-dashboard-table { margin-top: 18px; overflow: hidden; border-radius: 11px; background: #fff; box-shadow: 0 4px 14px rgba(51,65,85,.04); }
.salt-dashboard-table table { width: 100%; border-spacing: 0; border-collapse: separate; table-layout: fixed; }
.salt-dashboard-table thead tr { height: 44px; }
.salt-dashboard-table tbody tr { height: 53px; }
.salt-dashboard-table th, .salt-dashboard-table td { padding: 7px 10px; border-bottom: 1px solid #edf0f3; font-size: 12px; vertical-align: middle; }
.salt-dashboard-table th { color: #fff; background: #4382ef; font-size: 12px; font-weight: 800; text-align: left; }
.salt-dashboard-table th:first-child, .salt-dashboard-table td:first-child { width: 68px; text-align: center; }
.salt-dashboard-table th:nth-child(2), .salt-dashboard-table td:nth-child(2) { width: 225px; }
.salt-dashboard-table th:nth-child(6), .salt-dashboard-table td:nth-child(6) { width: 86px; text-align: center; }
.salt-dashboard-table th:last-child, .salt-dashboard-table td:last-child { width: 68px; text-align: center; }
.salt-dashboard-table tbody tr:nth-child(even) td { background: #fdfefe; }
.salt-dashboard-rank { color: #8c929b; font-size: 13px !important; }
.salt-dashboard-member { min-width: 0; display: flex; align-items: center; gap: 10px; }
.salt-dashboard-member img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #eef1f5; }
.salt-dashboard-member b { overflow: hidden; color: #454a52; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.salt-dashboard-bar-cell { color: var(--bar-tone); }
.salt-dashboard-bar-cell b { display: block; margin-bottom: 4px; font-size: 11px; }
.salt-dashboard-bar-cell > span { width: 100%; height: 4px; border-radius: 99px; display: block; overflow: hidden; background: #f0f2f4; }
.salt-dashboard-bar-cell i { height: 100%; border-radius: inherit; display: block; background: var(--bar-tone); }
.salt-dashboard-bar-cell.kills { --bar-tone: #ff3047; }
.salt-dashboard-bar-cell.deaths { --bar-tone: #999; }
.salt-dashboard-bar-cell.builds { --bar-tone: #ff8514; }
.salt-dashboard-plain-value { color: #737984; font-size: 11px !important; text-align: center; }
.salt-dashboard-plain-value.kd { color: #3e4249; font-weight: 800; }
.salt-dashboard-plain-value.revive { color: #7441db; }
.salt-dashboard-empty { height: 180px; color: #959ca5; text-align: center; }
.salt-dashboard-report > footer { padding: 11px 2px 0; color: #969ca5; font-size: 9px; text-align: right; }
.salt-dashboard-export-stage { position: fixed; top: 0; left: -30000px; z-index: -1; pointer-events: none; }
.salt-dashboard-export-capture { width: 980px !important; max-width: none; min-width: 980px; animation: none; }
.salt-match-section {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}
.salt-match-section > header strong { font-size: 18px; font-weight: 750; }
.salt-match-section > header small { font-size: 12px; font-weight: 600; }
.salt-match-card-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.salt-match-club-card {
  --salt-match-card-edge: #64748b; min-width: 0; overflow: hidden; border: 1px solid var(--line);
  border-top: 4px solid var(--salt-match-card-edge); border-radius: 5px; background: #fff;
}
.salt-match-club-card.is-justice { --salt-match-card-edge: #2d70b8; }
.salt-match-club-card.is-battle { --salt-match-card-edge: #b45309; }
.salt-match-club-card.is-dream { --salt-match-card-edge: #248854; }
.salt-match-club-card.is-dragon { --salt-match-card-edge: #bd3f57; }
.salt-match-club-card.is-great { --salt-match-card-edge: #6756bd; }
.salt-match-club-card.is-dawn { --salt-match-card-edge: #8b4caf; }
.salt-match-club-header {
  min-width: 0; min-height: 66px; display: grid; grid-template-columns: 34px 44px minmax(0, 1fr) auto;
  align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fbfcfd;
}
.salt-match-club-rank { color: var(--salt-match-card-edge); font-size: 15px; font-style: normal; font-weight: 900; text-align: center; }
.salt-match-club-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #eff6ff; box-shadow: 0 0 0 1px #fff, 0 2px 6px rgba(15,23,42,.12); }
.salt-match-club-name { min-width: 0; display: grid; gap: 2px; }
.salt-match-club-name strong { overflow: hidden; font-size: 14px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.salt-match-club-name small { color: #64748b; font-size: 10px; font-weight: 500; }
.salt-match-club-server { color: #52615a !important; }
.salt-match-club-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.salt-match-club-stat { min-width: 0; min-height: 58px; padding: 8px 6px; border-right: 1px solid var(--line); display: grid; place-content: center; justify-items: center; gap: 3px; }
.salt-match-club-stat:last-child { border-right: 0; }
.salt-match-club-stat small { color: #7a8981; font-size: 9px; font-weight: 650; }
.salt-match-club-stat > strong { min-width: 0; overflow: hidden; color: #263a31; font-size: 13px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.salt-match-club-stat.red > strong { color: #b8524e; }
.salt-match-alliance {
  min-width: 54px; display: inline-flex; justify-content: center; padding: 4px 7px; border: 1px solid var(--alliance-edge);
  border-radius: 999px; color: var(--alliance-edge); background: var(--alliance-wash); font-size: 12px; font-weight: 780;
}
.salt-match-alliance.is-justice { --alliance-edge: #2d70b8; --alliance-wash: #edf5fd; }
.salt-match-alliance.is-battle { --alliance-edge: #b45309; --alliance-wash: #fff7ed; }
.salt-match-alliance.is-dream { --alliance-edge: #248854; --alliance-wash: #edf8f1; }
.salt-match-alliance.is-dragon { --alliance-edge: #bd3f57; --alliance-wash: #fff0f3; }
.salt-match-alliance.is-great { --alliance-edge: #6756bd; --alliance-wash: #f3f1ff; }
.salt-match-alliance.is-dawn { --alliance-edge: #8b4caf; --alliance-wash: #f8f0fc; }
.salt-match-alliance.is-unknown { --alliance-edge: #64748b; --alliance-wash: #f1f5f9; }
.salt-match-red-value { display: inline-flex; align-items: center; justify-content: center; gap: 3px; color: #b8524e; }
.salt-match-red-value img { width: 12px; height: 12px; object-fit: contain; }
.salt-match-red-value strong { font-size: 14px; font-weight: 820; }
.salt-match-club-leaders > header { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.salt-match-club-leaders > header strong { color: #334155; font-size: 11px; font-weight: 800; }
.salt-match-club-leaders > header small { color: #8b9790; font-size: 9px; }
.salt-match-leaders { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.salt-match-player-card {
  width: auto; min-width: 0; min-height: 142px; grid-template-columns: 34px minmax(0, 1fr); align-content: start; gap: 5px; padding: 8px 6px 7px;
  border: 0; border-radius: 0; background: transparent;
}
.salt-match-player-card + .salt-match-player-card { border-left: 1px solid var(--line-strong); }
.salt-match-player-card.is-empty { display: grid; place-items: center; color: #64748b; background: transparent; font-size: 11px; font-weight: 600; }
.salt-match-player-card .peak-arena-player-avatar { width: 32px; height: 32px; }
.salt-match-player-card .peak-arena-player-identity { gap: 2px; }
.salt-match-player-card .peak-arena-player-identity > strong { font-size: 12px; font-weight: 750; }
.salt-match-player-card .peak-arena-player-identity > small,
.salt-match-player-card .peak-arena-player-red { color: #52615a; font-size: 9px; font-weight: 550; }
.salt-match-player-card .peak-arena-player-red img { width: 10px; height: 10px; }
.salt-match-player-card .peak-arena-hero-strip { grid-column: 1 / -1; width: 100%; max-width: 112px; justify-self: center; grid-template-rows: repeat(2, 32px); gap: 2px; }
.salt-match-player-card .peak-arena-star-tile > img { width: 25px; height: 25px; }
.salt-match-player-card .peak-arena-star-tile > em,
.salt-match-player-card .peak-arena-star-tile > small strong { font-size: 8px; }
.salt-match-player-card .peak-arena-pet-tile .peak-arena-pet-visual > img { width: 27px; height: 27px; }
.salt-match-player-card .peak-arena-pet-tile .peak-arena-pet-visual > .peak-arena-pet-series { top: 1px; left: 1px; width: 8px; height: 8px; }
.salt-match-player-card .peak-arena-pet-tile .peak-arena-pet strong { font-size: 9px; }
.salt-match-player-card .peak-arena-pet-tile .peak-arena-pet small,
.salt-match-player-card .peak-arena-pet-tile .workbench-muted-value { font-size: 8px; }
.salt-match-player-rank { position: absolute; top: 2px; left: 2px; z-index: 2; color: #52615a; font-size: 9px; font-weight: 800; }
.salt-match-club-announcement { min-height: 56px; display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: start; gap: 8px; padding: 9px 10px; border-top: 1px solid var(--line); background: #fbfcfd; }
.salt-match-club-announcement > small { color: #7a8981; font-size: 9px; font-weight: 750; }
.salt-match-announcement { display: -webkit-box; overflow: hidden; color: #3f4f47; font-size: 12px; font-weight: 500; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.salt-match-card-empty { grid-column: 1 / -1; min-height: 180px; }
.salt-match-export-stage { position: fixed; top: 0; left: -30000px; z-index: -1; pointer-events: none; }
.salt-match-export-capture { box-sizing: border-box; gap: 18px; padding: 28px 32px 34px; color: #1e293b; background: #fff; animation: none; }
.salt-match-export-capture .salt-match-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.salt-match-export-capture .salt-match-announcement { -webkit-line-clamp: 5; }
@media (max-width: 900px) {
  .salt-match-card-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .salt-match-leaders { grid-template-columns: minmax(0, 1fr); }
  .salt-match-player-card { min-height: 104px; grid-template-columns: 34px minmax(0, 1fr) 112px; align-items: center; }
  .salt-match-player-card .peak-arena-hero-strip { grid-column: 3; grid-row: 1; }
  .salt-match-player-card + .salt-match-player-card { border-top: 1px solid var(--line-strong); border-left: 0; }
}
.salt-live-map-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start; }
.salt-map-scroll { min-width: 0; max-width: 100%; overflow: auto; padding: 0; border: 1px solid #e4e9ed; background: #fbfcfd; }
.management-salt-map { position: relative; width: max-content; min-width: 100%; min-height: 640px; }
.management-salt-ghost,
.management-salt-node {
  position: absolute; width: 29px; height: 25px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.management-salt-ghost { z-index: 0; background: #f8fafb; box-shadow: inset 0 0 0 1px #e8edf0; }
.management-salt-node {
  z-index: 2; display: grid; place-items: center; color: #fff; background: #4f83d1;
  font-size: 8px; font-weight: 850; filter: drop-shadow(0 1px 1px rgba(35, 70, 120, .18));
}
.management-salt-node.is-building { background: #697885; }
.management-salt-node[data-building="2"] { background: #d12cba; }
.management-salt-node[data-building="3"] { background: #f0a20b; }
.management-salt-node[data-building="4"] { background: #dc3545; }
.management-salt-node[data-building="5"] { background: #2f80ed; }
.management-salt-node[data-building="6"] { background: #202a34; }
.salt-map-club-marker {
  position: absolute; z-index: 12; max-width: 230px; min-height: 27px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px;
  padding: 3px 8px; border: 1px solid rgba(255,255,255,.8); border-radius: 4px;
  color: #fff; background: var(--club-color, #2f80ed); box-shadow: 0 2px 7px rgba(30, 41, 59, .2);
  font-size: 11px; font-weight: 850; line-height: 1.15; white-space: nowrap;
  transform: translateX(-50%);
}
.salt-map-club-marker > .salt-map-club-identity { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.salt-map-club-marker > .salt-map-red-quench { padding-left: 6px; border-left: 1px solid rgba(255,255,255,.42); }
.salt-map-club-marker.label-right { transform: translateX(-12%); }
.salt-map-club-marker.label-left { transform: translateX(-88%); }
.salt-map-club-marker.is-own { box-shadow: 0 0 0 3px rgba(255, 210, 62, .72), 0 3px 8px rgba(30,41,59,.22); }
.salt-map-alliance-ranking { max-height: 940px; overflow: auto; padding-left: 2px; }
.salt-map-alliance-group { overflow: hidden; border: 1px solid var(--alliance-color, #64748b); border-radius: 6px; background: #fff; box-shadow: 0 2px 6px rgba(15,23,42,.08); }
.salt-map-alliance-group + .salt-map-alliance-group { margin-top: 8px; }
.salt-map-alliance-group > header { min-height: 30px; display: flex; align-items: center; justify-content: center; padding: 4px 7px; border-bottom: 1px solid var(--alliance-color, #64748b); color: var(--alliance-color, #64748b); background: var(--alliance-wash, #f8fafc); }
.salt-map-alliance-group > header strong { font-size: 14px; }
.salt-map-alliance-group > header small { color: #94a3b8; font-size: 10px; }
.salt-map-alliance-group.is-justice { --alliance-color: #a77b24; --alliance-wash: #fff8e8; }
.salt-map-alliance-group.is-battle { --alliance-color: #dd8b2f; --alliance-wash: #fff5e8; }
.salt-map-alliance-group.is-dream { --alliance-color: #7d60b5; --alliance-wash: #f5f1fc; }
.salt-map-alliance-group.is-dragon { --alliance-color: #577852; --alliance-wash: #f0f7ef; }
.salt-map-alliance-group.is-great { --alliance-color: #db5962; --alliance-wash: #fff0f1; }
.salt-map-alliance-group.is-dawn { --alliance-color: #3697d3; --alliance-wash: #edf8ff; }
.salt-map-alliance-group.is-unknown { --alliance-color: #6b7280; --alliance-wash: #f3f4f6; }
.salt-map-club-row {
  position: relative; min-height: 27px; display: grid; grid-template-columns: 23px minmax(0, 1fr) auto;
  align-items: center; gap: 5px; padding: 3px 6px; border-bottom: 1px solid rgba(255,255,255,.58); color: #fff; background: var(--alliance-color, #6b7280);
}
.salt-map-club-row:last-child { border-bottom: 0; }
.salt-map-club-row > em { display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 9px; font-style: normal; font-weight: 800; }
.salt-map-club-row > img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #f1f5f9; }
.salt-map-club-row > .salt-map-club-identity { min-width: 0; display: block; }
.salt-map-club-row > .salt-map-club-identity strong { display: block; overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.salt-map-club-row > .salt-map-club-identity small { color: #98a2b3; font-size: 9px; }
.salt-map-red-quench { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.salt-map-red-quench img { width: 13px; height: 14px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(91, 20, 25, .34)); }
.salt-map-red-quench strong { color: inherit; font-size: 9px; font-weight: 850; line-height: 1; }
.salt-battle-status { min-width: 0; display: grid; gap: 13px; padding-top: 2px; }
.salt-battle-switch { display: flex; align-items: stretch; gap: 24px; border-bottom: 1px solid var(--line); }
.salt-battle-tab {
  position: relative; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 0 2px;
  border: 0; color: #718096; background: transparent; cursor: pointer; font-size: 13px; font-weight: 750;
  transition: color .18s ease;
}
.salt-battle-tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--green); content: ""; transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.salt-battle-tab:hover { color: #334155; }
.salt-battle-tab.is-active { color: var(--green-dark); }
.salt-battle-tab.is-active::after { transform: scaleX(1); }
.salt-battle-tab img { width: 25px; height: 25px; object-fit: contain; filter: saturate(.82); }
.salt-battle-tab.is-active img { filter: none; }
.salt-battle-body { min-width: 0; animation: workbench-in .18s ease-out; }
.salt-battle-section { gap: 7px; }
.salt-battle-table { min-width: 1140px; }
.salt-battle-table.is-team { min-width: 900px; }
.workbench-table :is(th, td).salt-battle-rank { width: 58px; text-align: center; }
.workbench-table :is(th, td).salt-battle-server { width: 90px; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
.workbench-table :is(th, td).salt-battle-member { min-width: 160px; }
.workbench-table :is(th, td).salt-battle-id { width: 6ch; min-width: 0; max-width: 6ch; font-variant-numeric: tabular-nums; white-space: nowrap; }
.workbench-table :is(th, td).salt-battle-club { min-width: 160px; }
.workbench-table :is(th, td).salt-battle-red-quench { min-width: 122px; text-align: center; }
.salt-battle-red-quench .salt-map-red-quench { width: 100%; justify-content: center; gap: 4px; color: #172033; }
.salt-battle-red-quench .salt-map-red-quench strong { font-size: 12px; }
.workbench-table :is(th, td).salt-battle-number { min-width: 112px; }
.workbench-table :is(th, td).salt-battle-saints { min-width: 176px; }
.salt-battle-bar { width: 100%; min-width: 102px; height: 22px; display: grid; grid-template-columns: minmax(38px, auto) minmax(48px, 1fr); align-items: center; gap: 8px; }
.salt-battle-bar-value { min-width: 0; overflow: hidden; color: #172033; font-variant-numeric: tabular-nums; font-weight: 850; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.salt-battle-bar-track { height: 7px; display: block; overflow: hidden; border-radius: 4px; background: #edf1ef; box-shadow: inset 0 0 0 1px rgba(107, 129, 118, .12); }
.salt-battle-bar-fill { width: var(--salt-battle-bar-fill, 0%); height: 100%; display: block; border-radius: inherit; background: #6488b8; transition: width .2s ease; }
.salt-battle-bar[data-tone="kill"] .salt-battle-bar-fill { background: #4f83d1; }
.salt-battle-bar[data-tone="death"] .salt-battle-bar-fill,
.salt-battle-bar[data-tone="red"] .salt-battle-bar-fill { background: #d95d68; }
.salt-battle-bar[data-tone="kd"] .salt-battle-bar-fill { background: #20a27a; }
.salt-battle-bar[data-tone="score"] .salt-battle-bar-fill,
.salt-battle-bar[data-tone="dan"] .salt-battle-bar-fill { background: #e59a2f; }
.salt-battle-bar[data-tone="dig"] .salt-battle-bar-fill,
.salt-battle-bar[data-tone="revive"] .salt-battle-bar-fill { background: #3ca2a0; }
.salt-battle-bar[data-tone="power"] .salt-battle-bar-fill,
.salt-battle-bar[data-tone="saints"] .salt-battle-bar-fill { background: #8b6ac8; }
.salt-battle-bar[data-tone="members"] .salt-battle-bar-fill { background: #5c91be; }
.salt-battle-table tbody tr { transition: background .14s ease; }
.salt-battle-table tbody tr:hover { background: #f7faf9; }
.salt-battle-table tbody td.salt-battle-rank { color: #64748b; font-weight: 800; }
.salt-battle-table tbody tr:nth-child(1) td.salt-battle-rank { color: #c78a00; }
.salt-battle-table tbody tr:nth-child(2) td.salt-battle-rank { color: #73808c; }
.salt-battle-table tbody tr:nth-child(3) td.salt-battle-rank { color: #aa6940; }
.salt-battle-identity { min-width: 0; }
.salt-battle-identity > strong,
.salt-battle-identity > span > strong { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.salt-live-export-stage { position: fixed; top: 0; left: -30000px; z-index: -1; pointer-events: none; }
.salt-live-export-capture { box-sizing: border-box; gap: 14px; padding: 24px 28px 20px; color: #1e293b; background: #fff; animation: none; }
.salt-live-export-heading { min-height: 62px; display: flex; align-items: center; justify-content: center !important; gap: 10px; border-bottom: 1px solid #dce5e0; color: #172033; font-variant-numeric: tabular-nums; }
.salt-live-export-heading strong { font-size: 22px; font-weight: 900 !important; }
.salt-live-export-heading span, .salt-live-export-heading time { color: #4b5563; font-size: 18px; font-weight: 750 !important; }
.salt-live-export-capture .salt-map-scroll,
.salt-live-export-capture .workbench-table-scroll { overflow: visible; }
.salt-live-export-capture .salt-map-alliance-ranking { max-height: none; overflow: visible; }
.salt-live-export-footer { padding-top: 12px; color: #b4232e; font-size: 13px; font-style: italic; font-weight: 750; text-align: right; }
@media (max-width: 760px) {
  .salt-live-map-layout { grid-template-columns: 1fr; }
  .salt-map-alliance-ranking { max-height: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
  .salt-map-alliance-group + .salt-map-alliance-group { margin-top: 0; }
}
@media (max-width: 640px) {
  .salt-battle-switch { gap: 0; }
  .salt-battle-tab { flex: 1; justify-content: center; min-height: 46px; font-size: 12px; }
  .salt-battle-tab img { width: 23px; height: 23px; }
}
.workbench-error { padding: 16px; border-left: 3px solid #c85d5d; color: #a94d4d; background: #fdf2f1; font-size: 13px; }

.group-dialog { width: min(520px, calc(100vw - 28px)); max-height: min(720px, calc(100dvh - 28px)); padding: 24px; overflow: auto; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 28px 80px rgba(15, 23, 42, .22); }
.group-dialog::backdrop { background: rgba(15, 23, 42, .36); backdrop-filter: blur(3px); }
.account-actions-dialog { width: min(460px, calc(100vw - 28px)); }
.account-action-list { display: grid; margin-top: 20px; border-top: 1px solid var(--line); }
.account-action-row {
  min-height: 68px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 9px 2px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent;
  cursor: pointer; text-align: left; transition: background .16s ease, padding-left .16s ease;
}
.account-action-row:hover { padding-left: 8px; background: #f1f5f9; }
.account-action-row > img { width: 38px; height: 38px; object-fit: contain; }
.account-action-row > span { min-width: 0; display: grid; gap: 3px; }
.account-action-row strong { font-size: 14px; }
.account-action-row small { color: #64748b; font-size: 11px; }
.account-action-delete { margin-top: 5px; color: #a85454; }
.account-action-delete:hover { background: #fff4f2; }
.account-action-delete small { color: #b87872; }
.account-delete-icon {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: #bd625d; font-size: 25px; font-style: normal; font-weight: 300; line-height: 1;
}
.account-login-url-dialog { width: min(620px, calc(100vw - 28px)); }
.account-login-url-warning {
  margin: 20px 0 0; padding: 14px 16px; border-left: 3px solid #c85d5d;
  color: #475569; background: #fff7f6; font-size: 14px; line-height: 1.8;
}
.account-login-url-permanent { color: #c62828; font-weight: 800 !important; }
.account-login-url-status { margin-top: 12px; }
.account-login-url-actions { flex-wrap: wrap; justify-content: flex-end; }
.account-login-url-result-note { margin: 18px 0 10px; color: #64748b; font-size: 12px; line-height: 1.6; }
.account-login-url-field { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: stretch; }
.account-login-url-field textarea {
  width: 100%; min-height: 112px; resize: vertical; padding: 10px 11px; border: 1px solid var(--line-strong);
  border-radius: 3px; outline: 0; color: #334155; background: #f8fafc; font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}
.account-login-url-field textarea:focus { border-color: #60a5fa; box-shadow: var(--focus); }
.account-login-url-copy {
  display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid #4b86be;
  border-radius: 3px; color: #fff; background: #4b86be; cursor: pointer;
}
.account-login-url-copy:hover { background: #3f75a7; }
.account-login-url-copy > i { position: relative; width: 18px; height: 18px; }
.account-login-url-copy > i::before,
.account-login-url-copy > i::after {
  content: ''; position: absolute; width: 10px; height: 12px; border: 2px solid currentColor; border-radius: 2px;
}
.account-login-url-copy > i::before { left: 1px; top: 1px; opacity: .7; }
.account-login-url-copy > i::after { right: 1px; bottom: 1px; background: #4b86be; }
.account-login-url-copy:hover > i::after { background: #3f75a7; }
.user-key-status { min-height: 20px; margin: 10px 0 0; color: #64748b; font-size: 12px; line-height: 1.6; }
.user-key-status.is-error { color: #c62828; }
.user-key-actions .danger-button { margin-right: auto; }
.user-key-dialog textarea::placeholder { color: #94a3b8; }
.account-roles-dialog { width: min(620px, calc(100vw - 28px)); }
.account-roles-status { margin: 16px 0 0; color: #64748b; font-size: 12px; line-height: 1.6; }
.account-roles-tools { display: flex; gap: 8px; margin-top: 10px; }
.account-roles-tools button { min-height: 32px; padding: 0 12px; font-size: 11px; }
.account-roles-list { display: grid; max-height: min(48vh, 460px); margin-top: 12px; overflow-y: auto; border-top: 1px solid var(--line); }
.account-role-option {
  display: grid; grid-template-columns: auto 38px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  min-width: 0; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.account-role-option:hover { background: rgba(239,246,255,.72); }
.account-role-option.is-existing { cursor: default; opacity: .68; }
.account-role-option > input { width: 16px; height: 16px; accent-color: var(--green); }
.account-role-option > .account-avatar { width: 38px; height: 38px; }
.account-role-option > span { min-width: 0; display: grid; gap: 3px; }
.account-role-option strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-role-option small { overflow: hidden; color: #64748b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-role-option em { color: var(--green); font-size: 10px; font-style: normal; white-space: nowrap; }
.account-role-option.is-existing em { color: #64748b; }
.account-roles-actions { margin-top: 14px; }
.secondary-password-dialog { width: min(500px, calc(100vw - 28px)); }
.secondary-password-description { margin: 18px 0 14px; color: #64748b; font-size: 12px; line-height: 1.6; }
.secondary-password-form { display: grid; gap: 12px; }
.secondary-password-form > label { display: grid; gap: 6px; }
.secondary-password-form > label > span { color: #475569; font-size: 12px; font-weight: 730; }
.secondary-password-form input {
  width: 100%; height: 42px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 3px;
  outline: 0; color: var(--ink); background: #fff; font-size: 15px; letter-spacing: .08em;
}
.secondary-password-form input:focus { border-color: #60a5fa; box-shadow: var(--focus); }
.account-remark-form { margin-top: 18px; }
.account-remark-form input { letter-spacing: 0; }
.secondary-password-actions { justify-content: flex-end; }
.secondary-password-actions .danger-button { margin-right: auto; }
.black-market-dialog { width: min(720px, calc(100vw - 28px)); }
.black-market-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 12px 0;
  border-block: 1px solid var(--line);
}
.black-market-toolbar label { display: grid; gap: 2px; }
.black-market-toolbar label span { font-size: 13px; font-weight: 760; }
.black-market-toolbar label small { color: #64748b; font-size: 11px; }
.black-market-toolbar input {
  width: 72px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  background: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 720;
}
.black-market-status { min-height: 20px; margin: 12px 0 4px; color: #64748b; font-size: 12px; }
.black-market-status[data-tone="error"] { color: #b64c4c; }
.black-market-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.black-market-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 55px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.black-market-item > input { width: 16px; height: 16px; accent-color: var(--green); }
.black-market-item > img { width: 31px; height: 31px; object-fit: contain; }
.black-market-item > span { min-width: 0; display: grid; gap: 2px; }
.black-market-item strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.black-market-item small { color: #94a3b8; font-size: 10px; }
.black-market-discount { display: flex; align-items: center; gap: 4px; color: #64748b; font-size: 11px; }
.black-market-discount select {
  height: 31px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}
.black-market-item:not(.is-selected) { opacity: .62; }
.black-market-item:not(.is-selected) .black-market-discount { visibility: hidden; }
.dream-buy-dialog { width: min(600px, calc(100vw - 28px)); }
.dream-buy-description { margin: 18px 0 10px; color: #64748b; font-size: 12px; line-height: 1.55; }
.dream-buy-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; border-top: 1px solid var(--line); }
.dream-buy-option {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.dream-buy-option input { width: 16px; height: 16px; accent-color: var(--green); }
.dream-buy-option img { width: 33px; height: 33px; object-fit: contain; }
.dream-buy-option strong { overflow: hidden; color: #334155; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.club-store-dialog { width: min(780px, calc(100vw - 28px)); }
.club-store-description { margin: 18px 0 14px; color: #64748b; font-size: 12px; line-height: 1.55; }
.club-store-order-heading {
  min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 3px; border-bottom: 1px solid var(--line-strong);
}
.club-store-order-heading strong { color: #334155; font-size: 12px; }
.club-store-order-heading small { color: #94a3b8; font-size: 10px; }
.club-store-items { display: grid; }
.club-store-item {
  min-width: 0; min-height: 82px; display: grid;
  grid-template-columns: 17px 24px 48px minmax(120px, .8fr) minmax(280px, 1.45fr) 62px;
  align-items: center; gap: 9px; padding: 10px 3px; border-bottom: 1px solid var(--line);
  background: #fff; cursor: grab;
}
.club-store-item.is-dragging { opacity: .48; background: #edf7f2; cursor: grabbing; }
.club-store-drag-handle { color: #94a3b8; font-size: 17px; line-height: 1; user-select: none; }
.club-store-priority {
  width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: var(--green); font-size: 11px; font-style: normal; font-weight: 800;
}
.club-store-item > img { width: 44px; height: 44px; object-fit: contain; }
.club-store-product-copy { min-width: 0; display: grid; gap: 3px; }
.club-store-product-copy strong { overflow: hidden; color: #334155; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.club-store-product-copy small { overflow: hidden; color: #94a3b8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.club-store-item-fields { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.club-store-item-field { min-width: 0; display: grid; gap: 5px; }
.club-store-item-field > span:first-child { color: #64748b; font-size: 10px; }
.club-store-number-control {
  min-width: 0; height: 34px; display: flex; align-items: center; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 3px; background: #fff;
}
.club-store-number-control:focus-within { border-color: #60a5fa; box-shadow: var(--focus); }
.club-store-number-control > img { width: 23px; height: 23px; flex: 0 0 23px; margin-left: 7px; object-fit: contain; }
.club-store-number-control input {
  width: 0; min-width: 0; height: 100%; flex: 1 1 0; padding: 0 8px; border: 0;
  outline: 0; color: var(--ink); background: transparent; font-size: 12px; font-variant-numeric: tabular-nums;
}
.club-store-number-control input[readonly] { color: #52645c; background: #f1f5f3; cursor: default; font-weight: 700; }
.club-store-number-control.has-icon input { padding-left: 5px; }
.club-store-number-control > small { flex: 0 0 auto; padding-right: 8px; color: #94a3b8; font-size: 10px; }
.club-store-order-buttons { display: flex; gap: 4px; }
.club-store-order-buttons button {
  width: 29px; height: 30px; padding: 0; border: 1px solid #dbe4df; border-radius: 3px;
  color: #52645c; background: #fff; cursor: pointer; font-size: 14px;
}
.club-store-order-buttons button:hover:not(:disabled) { border-color: var(--green); color: var(--green); background: #eff6ff; }
.club-store-order-buttons button:disabled { cursor: default; opacity: .35; }
.club-store-threshold-note {
  min-height: 51px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px;
  margin-top: 12px; padding: 8px 10px; border-left: 3px solid #d49a38; background: #fff8e8;
}
.club-store-threshold-note > img { width: 31px; height: 31px; object-fit: contain; }
.club-store-threshold-note > span { display: grid; gap: 2px; }
.club-store-threshold-note strong { color: #85591d; font-size: 11px; }
.club-store-threshold-note small { color: #8b6b3b; font-size: 10px; line-height: 1.45; }
.club-store-status { min-height: 18px; margin-top: 10px; color: #64748b; font-size: 11px; }
.club-store-status[data-tone="error"] { color: var(--red); }
.camp-attack-dialog { width: min(690px, calc(100vw - 28px)); }
.camp-attack-description { margin: 18px 0 14px; color: #64748b; font-size: 12px; line-height: 1.6; }
.camp-attack-fields { display: grid; gap: 15px; }
.camp-attack-fields > .script-field { min-width: 0; display: grid; gap: 7px; }
.camp-attack-fields > .script-field > span:first-child { color: #475569; font-size: 11px; }
.camp-attack-fields .script-segmented-control { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.camp-attack-fields > .script-field > select {
  width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 3px;
  outline: 0; color: #334155; background: #fff; font-size: 13px;
}
.camp-attack-fields > .script-field > select:focus { border-color: #60a5fa; box-shadow: var(--focus); }
.camp-attack-fields > .script-field.is-camp-attack-order { gap: 9px; padding-top: 12px; border-top: 1px solid var(--line); }
.camp-attack-order-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.camp-attack-order-toolbar > small { color: #64748b; font-size: 11px; line-height: 1.45; }
.camp-attack-order-toolbar > button { min-height: 32px; flex: 0 0 auto; padding: 0 12px; }
.camp-attack-target-list { display: grid; max-height: min(350px, 43dvh); overflow: auto; border-block: 1px solid #e2e8f0; }
.camp-attack-target-row {
  min-width: 0; min-height: 54px; display: grid;
  grid-template-columns: 20px 24px minmax(100px, 1fr) 18px minmax(100px, 1fr) auto;
  align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid #eef2f7; background: #fff; cursor: grab;
}
.camp-attack-target-row:last-child { border-bottom: 0; }
.camp-attack-target-row.is-dragging { opacity: .45; background: #edf7f2; cursor: grabbing; }
.camp-attack-drag-handle { color: #94a3b8; font-size: 15px; letter-spacing: -4px; user-select: none; }
.camp-attack-target-row > em {
  width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: var(--green); font-size: 11px; font-style: normal;
}
.camp-attack-target-row select {
  width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 3px;
  color: #334155; background: #fff; font-size: 12px;
}
.camp-attack-target-separator { color: #94a3b8; text-align: center; }
.camp-attack-target-buttons { display: flex; gap: 4px; }
.camp-attack-target-buttons button {
  width: 28px; height: 28px; padding: 0; border: 1px solid #dbe4df; border-radius: 3px;
  color: #52645c; background: #fff; cursor: pointer; font-size: 14px;
}
.camp-attack-target-buttons button:hover { border-color: var(--green); color: var(--green); background: #eff6ff; }
.camp-attack-target-empty { padding: 13px 4px; color: #a16207; background: #fffbeb; font-size: 11px; text-align: center; }
.camp-attack-target-empty[hidden] { display: none; }
.camp-attack-limit-note {
  min-height: 50px; display: grid; gap: 3px; margin-top: 13px; padding: 9px 11px;
  border-left: 3px solid #d49a38; background: #fff8e8;
}
.camp-attack-limit-note strong { color: #85591d; font-size: 11px; }
.camp-attack-limit-note small { color: #8b6b3b; font-size: 10px; line-height: 1.45; }
.camp-attack-status { min-height: 18px; margin-top: 9px; color: #64748b; font-size: 11px; }
.camp-attack-status[data-tone="error"] { color: var(--red); }
@media (max-width: 620px) {
  .camp-attack-target-row {
    grid-template-columns: 18px 23px minmax(78px, 1fr) 12px minmax(78px, 1fr);
    gap: 5px;
  }
  .camp-attack-target-buttons { grid-column: 3 / -1; justify-self: end; }
}
.car-daily-dialog { width: min(690px, calc(100vw - 28px)); }
.car-daily-panels > section > p { margin: 15px 0 12px; color: #64748b; font-size: 12px; line-height: 1.55; }
.car-daily-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.car-daily-fields > .script-field { min-width: 0; padding: 13px 0 0; border-top: 1px solid var(--line); }
.car-daily-fields > .script-field:last-child { align-self: start; }
.car-daily-fields > .script-field.is-toggle {
  grid-column: 1 / -1;
  justify-content: space-between;
  min-height: 48px;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.car-daily-fields > .script-field:not(.is-options):not(.is-toggle) { grid-column: 1 / -1; }
.car-daily-fields .script-condition { min-height: 35px; border-bottom: 1px solid #e2e8f0; }
.car-daily-fields .script-condition:last-child { border-bottom: 0; }
.car-daily-fields > .script-field.is-car-helper-order { display: grid; gap: 9px; }
.car-daily-fields > .script-field.is-car-helper-order[hidden] { display: none; }
.car-helper-order-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.car-helper-order-toolbar > small { color: #64748b; font-size: 11px; line-height: 1.45; }
.car-helper-order-toolbar > button { min-height: 32px; flex: 0 0 auto; padding: 0 12px; }
.car-helper-order-status { color: #64748b; font-size: 11px; }
.car-helper-order-status[data-tone="success"] { color: var(--green); }
.car-helper-order-status[data-tone="warning"] { color: #a16207; }
.car-helper-order-status[data-tone="error"] { color: var(--red); }
.car-helper-order-list { display: grid; max-height: min(390px, 48dvh); overflow: auto; border-block: 1px solid #e2e8f0; }
.car-helper-order-row {
  display: grid; grid-template-columns: 20px 22px 38px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  min-height: 56px; padding: 7px 4px; border-bottom: 1px solid #eef2f7; background: #fff; cursor: grab;
}
.car-helper-order-row:last-child { border-bottom: 0; }
.car-helper-order-row.is-dragging { opacity: .45; background: #edf7f2; cursor: grabbing; }
.car-helper-order-row[data-available="false"] { background: #fffbeb; }
.car-helper-drag-handle { color: #94a3b8; font-size: 15px; letter-spacing: -4px; user-select: none; }
.car-helper-order-row > em { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e7f2ed; color: var(--green); font-size: 11px; font-style: normal; font-weight: 700; }
.car-helper-order-row > img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #eef2f7; }
.car-helper-order-row > span:nth-of-type(2) { display: grid; min-width: 0; }
.car-helper-order-row strong { overflow: hidden; color: #334155; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.car-helper-order-row small { overflow: hidden; margin-top: 3px; color: #7c8a83; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.car-helper-order-buttons { display: flex; gap: 4px; }
.car-helper-order-buttons button { width: 28px; height: 28px; padding: 0; border: 1px solid #dbe4df; border-radius: 7px; background: #fff; color: #52645c; cursor: pointer; }
.car-helper-order-empty { padding: 14px 4px; color: #94a3b8; font-size: 11px; text-align: center; }
.car-helper-order-empty[hidden] { display: none; }
.sparring-history-dialog { width: min(600px, calc(100vw - 28px)); }
.push-level-settings-dialog { width: min(560px, calc(100vw - 28px)); }
.push-level-settings-intro { margin: 18px 0 0; color: #64748b; font-size: 12px; line-height: 1.7; }
.push-level-settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.push-level-settings-fields label { min-width: 0; display: grid; gap: 7px; color: #475569; font-size: 11px; }
.push-level-settings-fields select,
.push-level-settings-fields input {
  width: 100%; height: 42px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 3px;
  outline: 0; color: #334155; background: #fff; font-size: 13px;
}
.push-level-settings-fields select:focus,
.push-level-settings-fields input:focus { border-color: #60a5fa; box-shadow: var(--focus); }
.push-level-resume-input { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; }
.push-level-resume-input em {
  height: 42px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-left: 0;
  color: #64748b; background: #f8fafc; font-size: 11px; font-style: normal;
}
.push-level-settings-status { min-height: 19px; margin: 12px 0 0; }
.push-level-history-dialog { width: min(820px, calc(100vw - 28px)); }
.push-level-history-summary {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px;
  border-block: 1px solid var(--line); background: #fff;
}
.push-level-history-summary > span { min-width: 0; display: grid; gap: 4px; padding: 10px 12px; border-right: 1px solid var(--line); }
.push-level-history-summary > span:last-child { border-right: 0; }
.push-level-history-summary small { color: #64748b; font-size: 9px; }
.push-level-history-summary strong { overflow: hidden; color: #334155; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.push-level-history-columns,
.push-level-history-row {
  min-width: 0; display: grid; grid-template-columns: minmax(90px, .7fr) minmax(180px, 1.35fr) minmax(110px, .8fr) minmax(70px, .5fr);
  align-items: center; gap: 10px;
}
.push-level-history-columns { min-height: 34px; margin-top: 14px; padding: 0 12px; color: #94a3b8; background: #f8fafc; font-size: 9px; }
.push-level-history-status { min-height: 20px; padding: 8px 2px 5px; color: #64748b; font-size: 10px; }
.push-level-history-status[data-tone="error"] { color: #b64c4c; }
.push-level-history-list { max-height: min(500px, 55dvh); overflow: auto; border-top: 1px solid var(--line); }
.push-level-history-row { min-height: 60px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: #64748b; background: #fff; }
.push-level-history-level { min-width: 0; display: grid; gap: 3px; }
.push-level-history-level > strong { overflow: hidden; color: #334155; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.push-level-history-level > small { overflow: hidden; color: #2563eb; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.push-level-history-row > time,
.push-level-history-row > strong:nth-child(2),
.push-level-history-row > span { font-size: 11px; font-variant-numeric: tabular-nums; }
.push-level-history-row.is-current { background: #eff6ff; box-shadow: inset 3px 0 #2563eb; }
.push-level-history-row.is-current > strong:nth-child(2) { color: #2563eb; }
.push-level-history-empty { min-height: 160px; display: grid; place-items: center; padding: 24px; color: #64748b; font-size: 11px; line-height: 1.6; text-align: center; }
.push-level-history-actions { justify-content: space-between; }
.salt-report-history-dialog {
  width: min(1280px, calc(100vw - 28px)); height: min(820px, calc(100dvh - 28px));
  max-height: none; overflow: hidden;
}
.salt-report-history-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.salt-report-history-layout {
  min-height: 0; margin-top: 18px; display: grid; grid-template-columns: 300px minmax(0, 1fr);
  border: 1px solid var(--line); background: #f8fafc;
}
.salt-report-history-sidebar { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); border-right: 1px solid var(--line); background: #fff; }
.salt-report-history-status { min-height: 50px; padding: 10px 12px; color: #64748b; background: #f8fafc; font-size: 10px; line-height: 1.45; }
.salt-report-history-status[data-tone="error"] { color: #b64c4c; }
.salt-report-history-list { min-height: 0; overflow: auto; }
.salt-report-history-entry {
  width: 100%; min-width: 0; min-height: 76px; padding: 9px 10px; border: 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  color: var(--ink); background: #fff; cursor: pointer; text-align: left;
}
.salt-report-history-entry:hover { background: #f7faf9; }
.salt-report-history-entry.is-active { background: #eff6ff; box-shadow: inset 3px 0 var(--green); }
.salt-report-history-entry > img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: #f1f5f9; }
.salt-report-history-copy { min-width: 0; display: grid; gap: 3px; }
.salt-report-history-copy strong, .salt-report-history-copy small, .salt-report-history-copy time { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.salt-report-history-copy strong { color: #334155; font-size: 12px; }
.salt-report-history-copy small { color: #64748b; font-size: 9px; }
.salt-report-history-copy time { color: #94a3b8; font-size: 8px; }
.salt-report-history-scope { min-width: 57px; padding: 4px 5px; border-radius: 999px; font-size: 8px; font-style: normal; font-weight: 780; text-align: center; white-space: nowrap; }
.salt-report-history-scope.is-account { color: #1d4ed8; background: #dbeafe; }
.salt-report-history-scope.is-club { color: #9a5b12; background: #fef3c7; }
.salt-report-history-empty { min-height: 180px; padding: 24px; display: grid; place-items: center; color: #64748b; font-size: 11px; line-height: 1.6; text-align: center; }
.salt-report-history-preview { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.salt-report-history-placeholder { min-height: 100%; display: grid; place-items: center; padding: 28px; color: #64748b; font-size: 12px; text-align: center; }
.salt-report-history-placeholder[data-tone="error"] { color: #b64c4c; }
.salt-report-history-preview-toolbar {
  min-height: 58px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line); background: #fff;
}
.salt-report-history-preview-toolbar > span { min-width: 0; display: grid; gap: 3px; }
.salt-report-history-preview-toolbar strong, .salt-report-history-preview-toolbar small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.salt-report-history-preview-toolbar strong { color: #334155; font-size: 13px; }
.salt-report-history-preview-toolbar small { color: #64748b; font-size: 9px; }
.salt-report-history-preview-toolbar button { flex: 0 0 auto; min-height: 34px; }
.salt-report-history-report-scroll { min-width: 0; min-height: 0; overflow: auto; background: #e9e5dc; }
.salt-report-history-actions { justify-content: flex-end; margin-top: 14px; }
.sparring-history-status { min-height: 20px; margin-top: 18px; color: #64748b; font-size: 12px; }
.sparring-history-status[data-tone="error"] { color: #b64c4c; }
.sparring-history-list { display: grid; max-height: min(470px, 58dvh); overflow: auto; border-top: 1px solid var(--line); }
.sparring-history-entry {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}
.sparring-history-entry .account-avatar { width: 38px; height: 38px; }
.sparring-history-copy { min-width: 0; display: grid; gap: 2px; }
.sparring-history-copy strong { overflow: hidden; color: #334155; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.sparring-history-copy small { color: #64748b; font-size: 12px; }
.sparring-history-copy em { color: #94a3b8; font-size: 10px; font-style: normal; }
.sparring-history-choose, .sparring-history-delete {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 730;
}
.sparring-history-choose { color: #fff; background: var(--green); }
.sparring-history-delete { color: #a85454; background: #fbf1f0; }
.sparring-history-empty { min-height: 150px; display: grid; place-items: center; color: #64748b; font-size: 12px; text-align: center; }
.sparring-history-actions { justify-content: space-between; }
.danger-button { color: #a85454; border-color: #e4c4c0; }
.automation-log-dialog { width: min(780px, calc(100vw - 28px)); }
.automation-log-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 20px;
}
.automation-log-toolbar label { min-width: 0; display: grid; gap: 6px; color: #64748b; font-size: 11px; }
.automation-log-toolbar select {
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: #334155;
  background: #fff;
  font-size: 13px;
}
.automation-log-toolbar button { height: 40px; }
.automation-log-status { min-height: 18px; margin: 13px 0 3px; color: #64748b; font-size: 11px; }
.automation-log-status[data-tone="error"] { color: #b64c4c; }
.automation-log-list { max-height: min(510px, 58dvh); overflow: auto; border-top: 1px solid var(--line); }
.automation-log-run { padding: 14px 0 4px; border-bottom: 1px solid var(--line); }
.automation-log-run > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px 10px; }
.automation-log-run > header time { color: #334155; font-size: 13px; font-weight: 760; }
.automation-log-run > header span { color: #94a3b8; font-size: 10px; }
.automation-log-operations { display: grid; }
.automation-log-operation {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-height: 60px;
  padding: 9px 2px 9px 12px;
  border-left: 2px solid #93c5fd;
}
.automation-log-operation + .automation-log-operation { border-top: 1px solid #f1f5f9; }
.automation-log-operation > img { width: 30px; height: 30px; margin-top: 2px; object-fit: contain; }
.automation-log-operation > span { min-width: 0; display: grid; gap: 3px; }
.automation-log-operation strong { overflow: hidden; color: #334155; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.automation-log-operation small { color: #64748b; font-size: 11px; line-height: 1.5; }
.automation-log-operation > em { min-width: 54px; padding-top: 3px; color: var(--green-dark); font-size: 11px; font-style: normal; font-weight: 760; text-align: right; }
.automation-log-detail-list { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 5px; }
.automation-log-detail {
  min-width: 0;
  display: inline-grid;
  grid-template-columns: 22px minmax(0, auto) auto;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 3px 8px 3px 4px;
  border: 1px solid #dce8e3;
  border-radius: 999px;
  color: #52635c;
  background: #f7faf9;
}
.automation-log-detail img { width: 22px; height: 22px; object-fit: contain; }
.automation-log-detail i { overflow: hidden; max-width: 140px; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.automation-log-detail b { color: #2f5f4d; font-size: 10px; font-weight: 800; white-space: nowrap; }
.automation-log-detail[data-tone="reward"] { border-color: #ead8ac; background: #fffaf0; }
.automation-log-detail[data-tone="reward"] b { color: #a26716; }
.automation-log-detail[data-tone="success"] { border-color: #bcded0; background: #f1faf6; }
.automation-log-detail[data-tone="warning"] { border-color: #ecd3a5; background: #fff8e9; }
.automation-log-detail[data-tone="warning"] b { color: #a56c20; }
.automation-log-detail[data-tone="muted"] { border-color: #e6eaee; color: #8a97a5; background: #fafbfc; }
.automation-log-detail[data-tone="muted"] img { opacity: .58; filter: grayscale(.35); }
.automation-log-detail[data-tone="muted"] b { color: #84909c; }
.automation-log-operation[data-status="failed"] { border-left-color: #d66c68; }
.automation-log-operation[data-status="failed"] > em { color: #b64c4c; }
.automation-log-operation[data-status="warning"] { border-left-color: #d6a552; }
.automation-log-operation[data-status="warning"] > em,
.automation-log-operation[data-status="deferred"] > em { color: #aa742b; }
.automation-log-operation[data-status="deferred"] { border-left-color: #d8bb78; }
.automation-log-empty { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 6px; color: #94a3b8; text-align: center; }
.automation-log-empty img { width: 45px; height: 45px; margin-bottom: 4px; object-fit: contain; opacity: .78; }
.automation-log-empty strong { color: #475569; font-size: 14px; }
.automation-log-empty small { font-size: 11px; }
.automation-log-actions { justify-content: space-between; }
.create-group-form { display: grid; grid-template-columns: minmax(0, 1fr) 92px auto; gap: 7px; margin-top: 21px; }
.create-group-form input, .create-group-form select { min-width: 0; height: 40px; padding: 0 9px; border: 1px solid var(--line-strong); color: var(--ink); background: #fff; }
.group-manager-list, .group-assignment-list { display: grid; margin-top: 15px; border-top: 1px solid var(--line); }
.group-manager-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 9px; min-height: 52px; border-bottom: 1px solid var(--line); }
.group-color-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--group-color, var(--green)); }
.group-manager-row[data-color="blue"], .group-assignment-row[data-color="blue"] { --group-color: #3f82bd; }
.group-manager-row[data-color="amber"], .group-assignment-row[data-color="amber"] { --group-color: #cf8d2b; }
.group-manager-row[data-color="violet"], .group-assignment-row[data-color="violet"] { --group-color: #7e66b7; }
.group-manager-row[data-color="rose"], .group-assignment-row[data-color="rose"] { --group-color: #bb647a; }
.group-manager-row[data-color="slate"], .group-assignment-row[data-color="slate"] { --group-color: #78847e; }
.group-manager-row input { min-width: 0; height: 34px; border: 0; color: var(--ink); background: transparent; font-size: 13px; font-weight: 700; }
.group-manager-row small { color: #94a3b8; font-size: 10px; }
.group-manager-row button { border: 0; color: #64748b; background: transparent; cursor: pointer; font-size: 11px; }
.group-manager-row button[data-default-group] { color: #8a6b2d; white-space: nowrap; }
.group-manager-row button[data-default-group][aria-pressed="true"] { color: #b87813; font-weight: 760; }
.group-manager-row button[data-delete-group] { color: #b05b5b; }
.group-assignment-row { min-height: 51px; display: grid; grid-template-columns: auto 12px minmax(0, 1fr) auto; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); cursor: pointer; }
.group-assignment-row input { width: 17px; height: 17px; accent-color: var(--green); }
.group-assignment-row strong { font-size: 13px; }
.group-assignment-row small { color: #94a3b8; font-size: 10px; }
.script-monthly-progress-row { display: grid; gap: 8px; }
.script-monthly-progress-row header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.script-monthly-progress-row strong { color: var(--ink); font-size: 14px; font-weight: 750; }
.script-monthly-progress-row output { color: #64748b; font-size: 13px; font-variant-numeric: tabular-nums; }
.script-monthly-progress-track {
  position: relative;
  height: 9px;
  overflow: hidden;
  background: #e2e8f0;
}
.script-monthly-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  box-shadow: 0 0 12px rgba(37, 99, 235, .22);
  transition: width .42s cubic-bezier(.22, .78, .2, 1);
}
.script-monthly-progress-row[data-state="waiting"] .script-monthly-progress-track::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .82), transparent);
  content: "";
  animation: monthly-progress-waiting 1.15s ease-in-out infinite;
  transform: translateX(-100%);
}
.script-monthly-progress-row[data-state="completed"] .script-monthly-progress-track > span {
  background: linear-gradient(90deg, #1d4ed8, #93c5fd);
}
.script-monthly-progress-row[data-state="error"] .script-monthly-progress-track > span { background: #c65e5e; }
.script-monthly-progress-row small { color: #64748b; font-size: 12px; }
.script-monthly-progress-row[data-state="completed"] small { color: var(--green); }
.script-monthly-progress-row[data-state="error"] small { color: #b64c4c; }
@keyframes monthly-progress-waiting { to { transform: translateX(100%); } }
@media (max-width: 760px) {
  .script-result-dialog.is-sparring-dialog { width: min(720px, calc(100vw - 20px)); }
  .sparring-result-card { padding: 9px; }
  .sparring-versus { grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); gap: 6px; }
  .sparring-versus-badge b { width: 38px; height: 38px; border-width: 3px; font-size: 10px; }
  .sparring-player { padding: 9px; grid-template-columns: 43px minmax(0, 1fr); }
  .sparring-player-avatar { width: 43px; height: 43px; }
  .sparring-player > b { grid-column: 2; font-size: 10px; }
  .sparring-lineup { padding: 7px; gap: 5px; }
  .sparring-hero-card,
  .sparring-support-card { min-height: 66px; padding: 5px; grid-template-columns: 44px minmax(0, 1fr); gap: 5px; }
  .sparring-hero-icon { width: 44px; height: 50px; }
  .sparring-hero-icon img { max-width: 44px; max-height: 50px; }
  .sparring-support-card img { width: 41px; height: 41px; }
  .sparring-side-summary { padding: 9px 8px 10px; }
}

@media (max-width: 620px) {
  .sparring-versus { grid-template-columns: 1fr; }
  .sparring-versus-badge { min-height: 28px; grid-template-columns: auto auto; align-items: center; justify-content: center; }
  .sparring-versus-badge b { width: 31px; height: 31px; }
  .sparring-versus-badge small { font-size: 9px; }
  .sparring-player { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .sparring-player-avatar { width: 48px; height: 48px; }
  .sparring-player > b { grid-column: auto; font-size: 11px; }
  .sparring-hero-card,
  .sparring-support-card { min-height: 70px; grid-template-columns: 50px minmax(0, 1fr); }
  .sparring-hero-icon { width: 50px; height: 54px; }
  .sparring-hero-icon img { max-width: 50px; max-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .script-monthly-progress-track > span { transition: none; }
  .script-monthly-progress-row[data-state="waiting"] .script-monthly-progress-track::after { animation: none; }
  .script-live-progress-track > span, .script-batch-progress > i { transition: none; }
  .script-live-progress-track[data-indeterminate="true"]::after,
  .script-batch-progress[data-indeterminate="true"]::after,
  .script-live-progress-state-icon[data-state="running"],
  .script-live-progress-state-icon[data-state="retrying"] { animation: none; }
}

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; max-width: min(520px, calc(100vw - 32px)); padding: 11px 16px; border-radius: 4px; color: #fff; background: rgba(15, 23, 42, .94); box-shadow: 0 14px 36px rgba(15, 23, 42, .18); font-size: 13px; transform: translateX(-50%); }

.qr-dialog { width: min(430px, calc(100vw - 28px)); padding: 24px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 28px 80px rgba(15, 23, 42, .20); }
.qr-dialog::backdrop { background: rgba(15, 23, 42, .34); }
.dialog-close-row { position: absolute; top: 12px; right: 12px; margin: 0; }
.dialog-close-row button { min-width: 48px; height: 34px; border: 0; border-radius: 4px; color: #64748b; background: #f1f5f9; cursor: pointer; font-size: 0; }
.dialog-close-row button::after { content: "关闭"; font-size: 12px; }
.dialog-heading { display: flex; align-items: center; gap: 12px; padding-right: 54px; }
.dialog-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 4px; background: #eff6ff; }
.dialog-icon img { width: 35px; height: 35px; object-fit: contain; }
.dialog-heading > span:last-child { display: grid; gap: 3px; }
.dialog-heading small { color: var(--green); font-size: 10px; font-weight: 800; }
.dialog-heading strong { font-size: 21px; }
.qr-stage { width: 224px; height: 224px; display: grid; place-items: center; margin: 22px auto 12px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: #f8fafc; }
.qr-stage img { width: 200px; height: 200px; border-radius: 0; object-fit: contain; }
.qr-placeholder { display: grid; place-items: center; gap: 11px; color: #64748b; font-size: 12px; }
.qr-placeholder span { width: 31px; height: 31px; border: 3px solid #dbeafe; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qr-dialog > p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.6; text-align: center; }
.dialog-actions { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.qr-roles { display: grid; max-height: 220px; margin-top: 16px; overflow: auto; border-top: 1px solid var(--line); }
.qr-role { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.qr-role input { accent-color: var(--green); }
.qr-role span { display: grid; gap: 2px; }
.qr-role strong { font-size: 13px; }
.qr-role small { color: #64748b; font-size: 10px; }

@media (max-width: 1080px) {
  .account-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-grid { grid-template-columns: repeat(3, minmax(135px, 1fr)); }
  .script-operation-grid { width: min(100%, 780px); grid-template-columns: 1fr; }
  .script-operation-grid:not(.is-single-column):not(.is-peak-arena-grid) > .script-operation-card:last-child:nth-child(odd) {
    width: 100%;
    grid-column: auto;
  }
  .daily-operation-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

@media (max-width: 760px) {
  .workspace {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    grid-template-rows: 58px minmax(0, 1fr) calc(64px + env(safe-area-inset-bottom));
    overflow: hidden;
  }
  .workspace-header { padding: 0 14px; }
  .rail-brand > img { width: 34px; height: 34px; }
  .rail-brand strong { font-size: 14px; }
  .rail-brand small { font-size: 9px; }
  .header-account-indicator { width: 34px; height: 34px; }
  .header-account-indicator .account-avatar { width: 34px; height: 34px; }
  .header-account-badge { top: -4px; right: -7px; }
  .header-account-actions { gap: 3px; }
  .header-account-action { min-width: 38px; min-height: 28px; padding-inline: 6px; font-size: 9px; }
  .daily-layout-toggle { width: 30px; min-width: 30px; padding-inline: 0; }
  .daily-layout-toggle > span:last-child { display: none; }
  .header-logout { margin-left: 7px; padding-inline: 6px; }
  .mode-switch {
    position: relative; z-index: 50; right: auto; bottom: auto; left: auto;
    grid-row: 3; grid-column: 1; align-self: stretch; justify-self: stretch;
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%; height: auto; min-height: 0; padding: 0 8px env(safe-area-inset-bottom);
    gap: 0; overflow: hidden; border-top: 1px solid var(--line); background: rgba(255,255,255,.98);
    box-shadow: 0 -8px 26px rgba(15, 23, 42, .07); backdrop-filter: blur(18px);
  }
  .mode-switch button { width: 100%; min-width: 0; min-height: 0; flex-direction: column; justify-content: center; gap: 2px; padding: 5px 0 3px; font-size: 10px; }
  .mode-switch button::after { top: 0; right: 24%; bottom: auto; left: 24%; height: 2px; }
  .nav-icon { width: 23px; height: 23px; display: grid; place-items: center; font-size: 8px; }
  .nav-icon img { width: 21px; height: 21px; object-fit: contain; filter: saturate(.45); opacity: .7; }
  .mode-switch button[aria-current="page"] .nav-icon img { filter: none; opacity: 1; }
  .content-shell { grid-row: 2; min-height: 0; align-content: stretch; overflow: hidden; }
  .content-view {
    height: 100%; min-height: 0; padding: 22px 16px 28px; overflow: auto;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y;
  }
  .account-list { grid-template-columns: 1fr; gap: 0; padding-top: 6px; }
  .account-item { min-height: 68px; padding-inline: 6px; }
  .account-launch-button { min-width: 62px; padding-inline: 7px; }
  .account-organizer { flex-wrap: nowrap; gap: 6px; padding-top: 0; }
  .account-group-filters { width: auto; min-width: 86px; flex: 1 0 86px; }
  .account-organizer-button { margin-left: 0; padding-inline: 8px; }
  .account-batch-bar { position: static; }
  .workbench-actions, .salt-workbench-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club-action-navigation, .salt-action-navigation { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
  .salt-module-section.is-salt .salt-action-navigation,
  .salt-module-section.is-peach .salt-action-navigation { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
  .club-identity { min-height: 64px; padding-bottom: 14px; }
  .club-identity > img { width: 48px; height: 48px; }
  .club-identity strong { font-size: 20px; }
  .workbench-actions > button { min-height: 72px; padding: 10px; }
  .workbench-actions > button:nth-child(2n) { border-right: 0; }
  .workbench-actions > button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workbench-actions > button img { width: 32px; height: 32px; }
  .workbench-action-with-input { border-bottom: 1px solid var(--line); }
  .salt-workbench-actions > button { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .workbench-banner strong { font-size: 19px; }
  .workbench-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench-metric:nth-child(2n) { border-right: 0; }
  .peak-arena-card > header { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .peak-arena-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .peak-arena-actions button { min-width: 0; min-height: 44px; padding: 5px 7px; white-space: normal; text-align: left; }
  .peak-arena-actions button .button-action-icon { width: 22px; height: 22px; }
  .peak-arena-actions button span { line-height: 1.2; }
  .peak-arena-collection-summary { padding: 11px 2px 10px; }
  .peak-arena-collection-summary strong { font-size: 12px; }
  .peak-arena-collection-summary > strong { font-size: 13px; }
  .peak-arena-collection-summary small { font-size: 9px; }
  .peak-arena-collection-row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; padding-inline: 2px; }
  .peak-arena-collection-icon { width: 28px; height: 28px; }
  .peak-arena-collection-avatars { max-width: 114px; overflow: hidden; }
  .peak-arena-collection-avatar, .peak-arena-collection-more { width: 24px; height: 24px; margin-left: -12px; }
  .peak-arena-collect-sources { grid-template-columns: 1fr; }
  .peak-arena-collect-source:nth-child(odd) { border-right: 0; }
  .peak-arena-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .peak-arena-metrics > span:nth-child(2n) { border-right: 0; }
  .peak-arena-metrics > span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .peak-arena-view-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; overflow: visible; }
  .peak-arena-primary-tabs button { min-width: 0; min-height: 54px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 25px auto; justify-items: center; gap: 2px; padding: 4px 2px; font-size: 10px; }
  .peak-arena-primary-tabs button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .peak-arena-view-tabs button > img { width: 25px; height: 25px; }
  .peak-arena-view-toolbar { min-height: 46px; gap: 9px; padding: 7px 9px; }
  .peak-arena-club-modes { gap: 11px; }
  .peak-arena-threshold { gap: 4px; }
  .peak-arena-threshold select { min-width: 66px; padding-inline: 5px; }
  .peak-arena-export-button { min-height: 32px; padding-inline: 9px; font-size: 10px; }
  .peak-arena-player-groups { gap: 10px; padding: 7px 0 16px; }
  .peak-arena-player-group-title { min-height: 31px; padding: 5px 8px; }
  .peak-arena-player-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; padding: 0; }
  .peak-arena-player-card { min-height: 92px; grid-template-columns: 42px minmax(60px, 1fr) 38px 102px; gap: 5px; padding: 7px 8px 7px 24px; }
  .peak-arena-player-rank { top: 3px; left: 3px; font-size: 7px; }
  .peak-arena-player-head { display: contents; }
  .peak-arena-player-avatar { width: 42px; height: 42px; }
  .peak-arena-player-identity > strong { font-size: 11px; }
  .peak-arena-player-identity > small, .peak-arena-player-red { font-size: 8px; }
  .peak-arena-player-pet { width: 38px; min-width: 38px; transform: translateX(-5px); }
  .peak-arena-player-pet .peak-arena-pet-visual { width: 36px; height: 36px; }
  .peak-arena-player-pet .peak-arena-pet-visual > .peak-arena-pet-image { width: 36px; height: 36px; }
  .peak-arena-hero-strip { width: 102px; grid-template-rows: repeat(2, 36px); gap: 2px; }
  .peak-arena-star-tile > img { width: 27px; height: 27px; }
  .peak-arena-pet-tile .peak-arena-pet-visual > .peak-arena-pet-image { width: 30px; height: 30px; }
  .peak-arena-club-group-title { min-height: 45px; }
  .peak-arena-club-group-title > img { width: 31px; height: 31px; }
  .script-batch-accounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .script-car-result-row { grid-template-columns: 68px minmax(0, 1fr); gap: 8px; }
  .script-car-result-row > .script-car-rewards { grid-column: 1 / -1; padding-left: 76px; }
  .group-dialog { width: 100%; max-width: none; max-height: min(82dvh, 760px); margin: auto 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line-strong); border-radius: 10px 10px 0 0; }
  .group-dialog[open] { animation: group-sheet-in .22s cubic-bezier(.2, .8, .2, 1); }
  .push-level-settings-fields { grid-template-columns: 1fr; gap: 10px; }
  .push-level-history-dialog { height: min(86dvh, 760px); }
  .push-level-history-dialog[open] { display: flex; flex-direction: column; }
  .push-level-history-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .push-level-history-summary > span:nth-child(2) { border-right: 0; }
  .push-level-history-summary > span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .push-level-history-columns { display: none; }
  .push-level-history-status { margin-top: 10px; }
  .push-level-history-list { min-height: 0; max-height: none; flex: 1 1 auto; }
  .push-level-history-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 12px; min-height: 64px; }
  .push-level-history-level { grid-column: 1; grid-row: 1; }
  .push-level-history-row > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .push-level-history-row > :nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; }
  .push-level-history-row > :nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
  .salt-report-history-dialog { height: min(92dvh, 900px); max-height: min(92dvh, 900px); }
  .salt-report-history-dialog[open] { display: grid; }
  .salt-report-history-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(150px, 34%) minmax(0, 1fr); }
  .salt-report-history-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .salt-report-history-status { min-height: 42px; }
  .salt-report-history-entry { min-height: 66px; grid-template-columns: 36px minmax(0, 1fr) auto; padding-block: 7px; }
  .salt-report-history-entry > img { width: 34px; height: 34px; }
  .salt-report-history-preview-toolbar { min-height: 52px; }
  @keyframes group-sheet-in { from { transform: translateY(24px); opacity: .6; } }
  .create-group-form { grid-template-columns: minmax(0, 1fr) 84px; }
  .create-group-form button { grid-column: 1 / -1; }
  .group-manager-row { grid-template-columns: 10px minmax(0, 1fr) auto auto auto; gap: 7px; }
  .group-manager-row small { grid-column: 2; grid-row: 2; margin-top: -11px; }
  .group-manager-row button[data-default-group] { grid-column: 4; grid-row: 1; }
  .group-manager-row button[data-delete-group] { grid-column: 5; grid-row: 1; }
  .black-market-items { grid-template-columns: 1fr; }
  .dream-buy-options { grid-template-columns: 1fr; }
  .club-store-item {
    grid-template-columns: 17px 23px 43px minmax(0, 1fr) auto;
    gap: 8px; padding: 10px 1px; cursor: default;
  }
  .club-store-item > img { width: 40px; height: 40px; }
  .club-store-item-fields { grid-column: 3 / -1; grid-row: 2; }
  .club-store-order-buttons { grid-column: 5; grid-row: 1; }
  .club-store-threshold-note { margin-top: 10px; }
  .car-daily-fields { grid-template-columns: 1fr; gap: 8px; }
  .sparring-history-entry { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; }
  .sparring-history-delete { grid-column: 3; grid-row: 2; min-height: 26px; }
  .sparring-history-choose { grid-column: 3; grid-row: 1; }
  .automation-log-dialog { padding-inline: 18px; }
  .automation-log-toolbar { grid-template-columns: minmax(0, 1fr) 60px; }
  .automation-log-toolbar button { padding-inline: 8px; }
  .automation-log-list { max-height: 54dvh; }
  .automation-log-operation { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; padding-left: 8px; }
  .automation-log-operation > img { width: 27px; height: 27px; }
  .automation-log-run > header { align-items: baseline; }
  .profile-card { align-items: flex-start; }
  .profile-actions { display: grid; }
  .large-avatar { width: 56px; height: 56px; }
  .profile-identity strong { font-size: 22px; }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .management-feature-heading { grid-template-columns: auto minmax(0, 1fr); }
  .management-feature-heading .primary-button { grid-column: 1 / -1; }
  .management-feature-body { grid-template-columns: 1fr; }
  .scripts-view { height: 100%; min-height: 0; margin: 0; align-self: stretch; overflow: auto; }
  .scripts-view.is-daily-list-mode { overflow: hidden; touch-action: pan-x pan-y; }
  .scripts-content { min-height: 0; align-content: start; }
  .is-daily-list-mode .scripts-content { height: 100%; min-height: 0; display: flex; flex-direction: column; }
  .is-daily-list-mode .script-operation-content { height: auto; min-height: 0; flex: 1 1 auto; }
  .is-daily-list-mode .daily-list-view { height: 100%; min-height: 0; }
  .is-daily-list-mode .daily-list-view { display: flex; flex-direction: column; }
  .daily-list-heading { flex: 0 0 auto; }
  .daily-list-scroll { min-height: 0; max-height: none; flex: 1 1 auto; -webkit-overflow-scrolling: touch; }
  .script-operation-content, .script-operation-group, .script-operation-grid { align-content: start; }
  .daily-operation-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
  .script-operation-card.is-daily-tile:hover { transform: none; }
  .script-group-navigation { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
  .script-group-navigation button,
  .script-operation-card.is-daily-tile { min-height: 0; padding: 14px; }
  .script-group-navigation button:hover { transform: none; }
  .script-group-navigation img { width: 43px; height: 43px; }
  .script-group-copy { gap: 3px; }
  .script-group-copy strong { font-size: 15px; }
  .script-group-copy small { font-size: 11px; line-height: 1.35; }
  .script-operation-fields, .script-operation-feedback { padding-left: 0; margin-left: 0; }
  .script-operation-actions { margin-left: 0; }
  .content-empty { min-height: 44vh; }
}

/* The first-level in-game Salt panel embeds the real management Salt view.
   Keeping the management DOM here also guarantees identical export templates. */
html.is-management-salt-embed,
html.is-management-salt-embed body,
html.is-management-salt-embed .management-app {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}
html.is-management-salt-embed .workspace {
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
}
html.is-management-salt-embed .workspace-header,
html.is-management-salt-embed .mode-switch {
  display: none !important;
}
html.is-management-salt-embed .content-shell {
  grid-row: 1;
  grid-column: 1;
  min-height: 0;
}
html.is-management-salt-embed .content-view {
  height: 100%;
  max-width: none;
  padding: 18px clamp(14px, 2.5vw, 28px) 28px;
}
html.is-management-salt-embed [data-salt-action="pantaoyuan-report"] {
  display: none;
}

@media (max-width: 430px) {
  .auth-screen { padding: 14px; }
  .auth-card { padding: 28px 22px; }
  .profile-card { display: grid; }
  .account-organizer { margin-inline: -2px; }
  .profile-actions { width: 100%; grid-template-columns: 1fr 1fr; }
  .profile-actions #refreshResources { grid-column: 1 / -1; }
  .script-car-result-row > .script-car-rewards { padding-left: 0; }
  .resource-item { gap: 8px; }
  .resource-item > span:first-child { width: 32px; }
  .resource-item img { width: 27px; height: 27px; }
  .resource-item strong { font-size: 14px; }
  .script-operation-card > header { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .script-operation-card.peak-arena-card > header { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .script-operation-card.is-daily-primary > header { grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 10px; }
  .is-daily-primary .script-operation-artwork { width: 44px; height: 44px; }
  .is-daily-primary .script-operation-artwork img { width: 42px; height: 42px; }
  .is-daily-primary .script-operation-copy strong { font-size: 16px; }
  .is-daily-primary .script-operation-copy small { font-size: 11px; }
  .is-daily-primary .script-run-button { min-width: 40px; width: 40px; min-height: 40px; height: 40px; }
  .daily-automation-tools { margin-bottom: 2px; }
  .automation-log-entry { padding-block: 5px; }
  .automation-log-entry img { width: 27px; height: 27px; }
  .script-operation-card.is-configurable-daily > header { grid-template-columns: 38px minmax(0, 1fr) 34px 62px; gap: 8px; }
  .script-operation-card.is-configurable-daily.has-config-action > header { grid-template-columns: 38px minmax(0, 1fr) 34px 48px 62px; gap: 6px; }
  .script-operation-card.is-configurable-daily.has-inline-daily-field > header { grid-template-columns: 38px minmax(0, 1fr) 58px 34px 62px; gap: 6px; }
  .script-operation-card > header .script-field.is-inline-daily { min-width: 58px; width: 58px; }
  .script-config-button { padding-inline: 8px; }
  .script-operation-artwork { width: 36px; height: 36px; }
  .script-operation-artwork img { width: 32px; height: 32px; }
  .script-operation-copy strong { font-size: 14px; line-height: 1.3; }
  .script-operation-copy small { font-size: 11px; line-height: 1.35; }
  .script-daily-switch { gap: 0; }
  .script-daily-switch em { display: none; }
  .script-run-button { min-width: 62px; padding-inline: 10px; }
  .script-operation-card.has-inline-operation-fields > header { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .has-inline-operation-fields > header > .script-operation-fields { grid-column: 2; grid-row: 2; }
  .has-inline-operation-fields > header > .script-run-button { grid-column: 3; grid-row: 2; }
  .script-operation-action { grid-template-columns: 28px minmax(78px, 1fr) auto; }
  .script-operation-action .script-operation-fields { grid-column: 2; grid-row: 2; }
  .script-operation-action > .script-run-button { grid-column: 3; grid-row: 1; justify-self: end; }
  .script-operation-action:has(.script-operation-fields > *) > .script-run-button { grid-row: 2; }
  .script-lineup-fields { grid-template-columns: 1fr; }
  .create-group-form { grid-template-columns: minmax(0, 1fr) 80px; }
  .create-group-form .primary-button { grid-column: 1 / -1; }
  .script-batch-accounts { grid-template-columns: 1fr; }
  .script-result-dialog { padding-inline: 18px; }
  .peak-arena-event-days { padding-inline: 0; }
  .peak-arena-event-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; padding: 9px 5px; }
  .peak-arena-event-player { grid-column: 1; grid-row: 1; }
  .peak-arena-event-row > time { grid-column: 2; grid-row: 1; align-self: start; padding-top: 4px; }
  .peak-arena-event-change { grid-column: 1 / -1; grid-row: 2; padding-left: 51px; }
  .peak-arena-event-change-copy strong { white-space: normal; }
  .peak-arena-change-dialog { width: 100%; }
  .script-result-log.is-tower-progress { padding-top: 16px; }
  .script-tower-progress-stat { grid-template-columns: 1fr; justify-items: center; gap: 4px; padding-inline: 7px; text-align: center; }
  .script-tower-progress-stat > span:first-child { width: 38px; height: 38px; }
  .script-tower-progress-stat img { width: 36px; height: 36px; }
  .script-tower-progress-stat output { font-size: 22px; }
  .script-evotower-claim-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .script-evotower-claim-stat:last-child { grid-column: 1 / -1; }
  .script-evotower-claim-stat { grid-template-columns: 34px minmax(0, 1fr); padding: 10px 12px; }
  .script-evotower-claim-stat > span:first-child { width: 34px; height: 34px; }
  .script-evotower-claim-stat img { width: 33px; height: 33px; }
  .script-operation-card.is-daily-tile > header,
  .script-operation-card.is-daily-tile.is-configurable-daily > header,
  .script-operation-card.is-daily-tile.is-configurable-daily.has-config-action > header,
  .script-operation-card.is-daily-tile.is-configurable-daily.has-inline-daily-field > header { inset: 14px; padding: 0 0 28px; }
  .script-daily-main { align-self: stretch; place-content: center; gap: 12px; overflow: hidden; }
  .is-daily-tile .script-operation-artwork { width: 43px; height: 43px; }
  .is-daily-tile .script-operation-artwork img { width: 43px; height: 43px; }
  .is-daily-tile .script-operation-copy { gap: 3px; overflow: hidden; }
  .is-daily-tile .script-operation-copy strong {
    max-height: 2.7em;
    font-size: 15px;
    line-height: 1.35;
  }
  .is-daily-tile .script-operation-copy small {
    width: 100%;
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .script-daily-controls { height: 26px; }
  .is-daily-tile .script-run-button.is-play-button { width: 26px; min-width: 26px; height: 26px; min-height: 26px; padding: 0; }
  .is-daily-tile .script-config-button,
  .script-operation-card.is-daily-tile > header .script-field.is-inline-daily { left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.admin-dashboard-link{text-decoration:none;margin-left:8px}

/* Unified battle-report editorial system: salt weekly, salt monthly and peach. */
.battle-report-sheet {
  --report-accent: #237f78;
  --report-accent-deep: #155e59;
  --report-accent-soft: #dceee9;
  --report-accent-faint: #eff7f3;
  --report-opponent: #ce654d;
  --report-opponent-soft: #f7e4da;
  --report-paper: #f7f3ea;
  --report-paper-light: #fffdf8;
  --report-ink: #21302d;
  --report-muted: #6d7873;
  --report-rule: #d8d3c7;
  box-sizing: border-box;
  position: relative;
  width: min(100%, 1120px);
  max-width: 1120px;
  min-width: 0;
  margin-inline: auto;
  padding: 22px 24px 20px;
  color: var(--report-ink);
  background:
    linear-gradient(135deg, rgba(35, 127, 120, .045) 0, rgba(35, 127, 120, 0) 260px),
    linear-gradient(315deg, rgba(186, 149, 75, .035) 0, rgba(186, 149, 75, 0) 320px),
    var(--report-paper);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}
.is-kd-low { color: #c2414a !important; }
.is-kd-ok { color: #198754 !important; }
.battle-report-sheet.is-monthly {
  --report-accent: #5a62a9;
  --report-accent-deep: #3f477f;
  --report-accent-soft: #e5e5f3;
  --report-accent-faint: #f1f0f8;
}
.battle-report-sheet.is-peach {
  --report-accent: #c36c41;
  --report-accent-deep: #8e4529;
  --report-accent-soft: #f3dfd1;
  --report-accent-faint: #fbf0e7;
}
.salt-dashboard-scroll,
.management-peach-report-scroll { border-radius: 3px; background: #e9e5dc; }
.management-peach-report { width: min(100%, 1120px); min-width: 0; padding: 22px 24px 20px; background-color: var(--report-paper); }
#saltView.is-battle-report-view {
  width: 100%;
  max-width: none;
  padding-right: clamp(16px, 2vw, 32px);
  padding-left: clamp(16px, 2vw, 32px);
}
#saltView.is-battle-report-view :is(.salt-content, .workbench-content, .salt-detail, .workbench-result, .workbench-panel) {
  width: 100%;
  max-width: none;
  min-width: 0;
}
#saltView.is-battle-report-view :is(.salt-dashboard-scroll, .management-peach-report-scroll) {
  width: 100%;
  overflow-x: hidden;
}
#saltView.is-battle-report-view .battle-report-sheet {
  width: 100%;
  max-width: none;
  min-width: 0;
}
#clubView.is-member-roster-view,
#saltView.is-peach-opponent-view {
  width: 100%;
  max-width: none;
  padding-right: clamp(16px, 2vw, 32px);
  padding-left: clamp(16px, 2vw, 32px);
}
#clubView.is-member-roster-view :is(.workbench-content, .club-detail, .workbench-result),
#saltView.is-peach-opponent-view :is(.salt-content, .workbench-content, .salt-detail, .workbench-result) {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.battle-report-masthead {
  position: relative;
  min-height: 104px;
  padding: 16px 20px;
  border-top: 5px solid var(--report-accent);
  border-bottom: 1px solid var(--report-rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  background: linear-gradient(104deg, var(--report-accent-faint) 0 34%, rgba(255, 253, 248, .92) 64% 100%);
}
.battle-report-masthead::after {
  position: absolute;
  right: 250px;
  bottom: -58px;
  width: 190px;
  height: 150px;
  border: 1px solid var(--report-accent-soft);
  opacity: .8;
  content: "";
  transform: rotate(34deg);
}
.battle-report-brand {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.battle-report-crest {
  width: 64px;
  height: 64px;
  border-right: 1px solid var(--report-rule);
  display: grid;
  place-items: center;
}
.battle-report-crest img { width: 56px; height: 56px; object-fit: contain; }
.battle-report-identity { min-width: 0; display: grid; gap: 4px; }
.battle-report-identity small {
  color: var(--report-accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}
.battle-report-identity strong {
  max-width: 470px;
  overflow: hidden;
  color: var(--report-ink);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.battle-report-identity em { color: var(--report-muted); font-size: 12px; font-style: normal; }
.battle-report-heading {
  position: relative;
  z-index: 1;
  min-width: 285px;
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}
.battle-report-heading small {
  padding-bottom: 3px;
  border-bottom: 2px solid var(--report-accent);
  color: var(--report-accent-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .18em;
}
.battle-report-heading h2 {
  margin: 0;
  color: var(--report-ink);
  font-size: 30px;
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: .04em;
}
.battle-report-heading time { color: var(--report-muted); font-size: 13px; font-weight: 700; }

.battle-report-section { margin-top: 18px; }
.battle-report-section-heading {
  min-height: 34px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--report-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.battle-report-section-heading h3 {
  position: relative;
  margin: 0;
  padding-left: 13px;
  color: var(--report-ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .04em;
}
.battle-report-section-heading h3::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 4px;
  background: var(--report-accent);
  content: "";
}
.battle-report-section-heading small { color: var(--report-muted); font-size: 12px; font-weight: 650; }

.salt-dashboard-overview { padding: 16px 0 0; display: block; }
.salt-dashboard-metrics {
  border-top: 1px solid var(--report-rule);
  border-bottom: 1px solid var(--report-rule);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  background: rgba(255, 253, 248, .66);
}
.salt-dashboard-metric {
  min-height: 62px;
  padding: 8px 7px;
  border-right: 1px solid var(--report-rule);
  border-radius: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  background: transparent;
  box-shadow: none;
}
.salt-dashboard-metric:last-child { border-right: 0; }
.salt-dashboard-metric small { color: var(--report-muted); font-size: 12px; font-weight: 650; }
.salt-dashboard-metric b { color: var(--report-ink); font-size: 20px; font-weight: 900; }
.salt-dashboard-metric.kills b { color: #bd4e49; }
.salt-dashboard-metric.builds b,
.salt-dashboard-metric.revive b { color: #b96d31; }
.salt-dashboard-metric.average b { color: var(--report-accent-deep); }

.salt-dashboard-timeline { margin-top: 16px; }
.salt-dashboard-timeline > div {
  border-top: 1px solid var(--report-rule);
  border-bottom: 1px solid var(--report-rule);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(255, 253, 248, .5);
}
.salt-dashboard-timeline article {
  position: relative;
  min-height: 68px;
  padding: 9px 10px;
  border-right: 1px solid var(--report-rule);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}
.salt-dashboard-timeline article:last-child { border-right: 0; }
.salt-dashboard-timeline article > span:first-child {
  width: 27px;
  height: 27px;
  border: 1px solid var(--report-accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--report-accent-deep);
  background: var(--report-paper-light);
  font-size: 11px;
  font-weight: 900;
}
.salt-dashboard-timeline article.is-final > span:first-child { color: #fff; background: var(--report-accent); }
.salt-dashboard-timeline article.is-empty { opacity: .52; }
.salt-dashboard-timeline article > span:last-child { min-width: 0; display: grid; gap: 2px; }
.salt-dashboard-timeline strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.salt-dashboard-timeline time { color: var(--report-muted); font-size: 11px; }
.salt-dashboard-timeline small { color: var(--report-accent-deep); font-size: 11px; font-weight: 700; }

.salt-dashboard-mvp {
  min-height: 78px;
  margin-top: 16px;
  padding: 9px 16px;
  border: 1px solid var(--report-rule);
  border-left: 5px solid #c59a3d;
  border-radius: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  place-content: initial;
  align-items: center;
  justify-items: initial;
  gap: 15px;
  background: linear-gradient(90deg, #fff8e7, rgba(255, 253, 248, .68));
}
.salt-dashboard-mvp-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border: 2px solid #d1a346;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
}
.salt-dashboard-mvp-avatar::before {
  top: -15px;
  left: -9px;
  font-size: 21px;
  transform: rotate(-13deg);
}
.salt-dashboard-mvp-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.salt-dashboard-mvp-copy { min-width: 0; display: grid; gap: 2px; }
.salt-dashboard-mvp-copy > b {
  width: max-content;
  padding-bottom: 2px;
  border-bottom: 2px solid #c59a3d;
  color: #87641e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}
.salt-dashboard-mvp-copy > strong {
  overflow: hidden;
  color: var(--report-ink);
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.salt-dashboard-mvp-copy > small { color: var(--report-muted); font-size: 11px; }
.salt-dashboard-mvp-stats { display: grid; grid-template-columns: repeat(4, 72px); }
.salt-dashboard-mvp-stats > span {
  min-height: 38px;
  border-left: 1px solid var(--report-rule);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
}
.salt-dashboard-mvp-stats small { color: var(--report-muted); font-size: 11px; }
.salt-dashboard-mvp-stats b { color: var(--report-ink); font-size: 15px; }

.salt-dashboard-rank-grid {
  border-top: 1px solid var(--report-rule);
  border-bottom: 1px solid var(--report-rule);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: rgba(255, 253, 248, .62);
}
.salt-dashboard-rank-card {
  border: 0;
  border-top: 3px solid var(--rank-tone);
  border-right: 1px solid var(--report-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.salt-dashboard-rank-card:nth-child(3n) { border-right: 0; }
.salt-dashboard-rank-card:nth-child(n + 4) { border-top-width: 1px; border-top-color: var(--report-rule); }
.salt-dashboard-rank-card h3 { height: 36px; padding: 7px 11px 6px; font-size: 15px; }
.salt-dashboard-rank-card > div { padding: 2px 11px 7px; }
.salt-dashboard-rank-row { min-height: 29px; grid-template-columns: 18px minmax(0, 1fr) 48px; }
.salt-dashboard-rank-row em { font-size: 11px; }
.salt-dashboard-rank-member img { width: 22px; height: 22px; }
.salt-dashboard-rank-member b { color: var(--report-ink); font-size: 13px; }
.salt-dashboard-rank-row > strong { font-size: 13px; }

.salt-dashboard-table-section { width: min(100%, 700px); margin-right: auto; margin-left: auto; }
.salt-personal-table-scroll,
.salt-dashboard-table { margin-top: 0; overflow: hidden; border-radius: 0; background: rgba(255, 253, 248, .78); box-shadow: none; }
.salt-personal-table,
.salt-dashboard-table table { width: 100%; border-top: 1px solid var(--report-rule); border-right: 1px solid var(--report-rule); }
.salt-dashboard-table thead tr { height: 36px; }
.salt-dashboard-table tbody tr { height: 38px; }
.salt-personal-table th,
.salt-personal-table td,
.salt-dashboard-table th,
.salt-dashboard-table td {
  box-sizing: border-box;
  height: 38px;
  padding: 2px 5px;
  border-bottom: 1px solid var(--report-rule);
  border-left: 1px solid var(--report-rule);
  line-height: 16px;
  vertical-align: middle;
}
.salt-personal-table th,
.salt-dashboard-table th {
  height: 36px;
  color: var(--report-accent-deep);
  background: var(--report-accent-soft);
  font-size: 14px;
  font-weight: 900;
}
.salt-personal-table tbody tr:nth-child(even) td,
.salt-dashboard-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .5); }
.salt-dashboard-table th:first-child,
.salt-dashboard-table td:first-child { width: 44px; }
.salt-dashboard-table th:nth-child(2),
.salt-dashboard-table td:nth-child(2) { width: 160px; }
.salt-dashboard-table th:nth-child(n + 3):nth-child(-n + 5),
.salt-dashboard-table td:nth-child(n + 3):nth-child(-n + 5) { width: 114px; }
.salt-dashboard-table th:nth-child(6),
.salt-dashboard-table td:nth-child(6) { width: 64px; }
.salt-dashboard-table th:last-child,
.salt-dashboard-table td:last-child { width: 54px; }
.salt-dashboard-rank { font-size: 14px !important; }
.salt-dashboard-member { gap: 6px; }
.salt-dashboard-member img { width: 26px; height: 26px; }
.salt-dashboard-member b { font-size: 15px; }
.salt-dashboard-bar-cell { white-space: nowrap; text-align: center; }
.salt-dashboard-bar-cell b {
  min-width: 26px; margin: 0 6px 0 0; display: inline-block;
  font-size: 14px; text-align: right; vertical-align: middle;
}
.salt-dashboard-bar-cell > span {
  width: 56px; max-width: calc(100% - 34px); height: 5px; border-radius: 0;
  display: inline-block; overflow: hidden; background: #e4dfd6; vertical-align: middle;
}
.salt-dashboard-bar-cell i { border-radius: 0; opacity: .72; }
.salt-dashboard-bar-cell.kills { --bar-tone: #c5524b; }
.salt-dashboard-bar-cell.deaths { --bar-tone: #7c8790; }
.salt-dashboard-bar-cell.builds { --bar-tone: #d28a3d; }
.salt-dashboard-plain-value { font-size: 14px !important; }
.salt-dashboard-body-layout { min-width: 0; margin-top: 18px; display: grid; gap: 18px; }
.salt-dashboard-table-grid { min-width: 0; display: grid; gap: 18px; }
.salt-dashboard-body-layout :is(.salt-dashboard-mvp, .salt-dashboard-rank-section, .salt-dashboard-table-section) { margin-top: 0; }


.management-peach-versus {
  margin-top: 18px;
  border-top: 1px solid var(--report-rule);
  border-bottom: 1px solid var(--report-rule);
  grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
  gap: 0;
  background: rgba(255, 253, 248, .62);
}
.management-peach-versus > span { gap: 3px; }
.management-peach-versus > span > b { color: var(--report-accent-deep); font-size: 24px; font-weight: 950; }
.management-peach-versus > span > small { color: var(--report-muted); font-size: 9px; font-weight: 750; }
.management-peach-club-card {
  min-height: 88px;
  padding: 12px 18px;
  border: 0;
  border-radius: 0;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 13px;
  background: linear-gradient(90deg, rgba(35, 127, 120, .11), rgba(255, 253, 248, .1));
}
.management-peach-club-card.opponent {
  grid-template-columns: minmax(0, 1fr) 56px;
  border-left: 0;
  background: linear-gradient(270deg, rgba(206, 101, 77, .12), rgba(255, 253, 248, .1));
}
.management-peach-club-card.own > span:last-child { justify-items: start; text-align: left; }
.management-peach-club-card.opponent .management-peach-club-logo { grid-row: 1; grid-column: 2; }
.management-peach-club-card.opponent > span:last-child {
  grid-row: 1;
  grid-column: 1;
  justify-items: end;
  text-align: right;
}
.management-peach-club-card.opponent :is(small, strong, em) { max-width: 100%; text-align: right; }
.management-peach-club-logo { width: 55px; height: 55px; border-radius: 50%; background: rgba(255, 255, 255, .82); }
.management-peach-club-logo img { max-width: 49px; max-height: 49px; }
.management-peach-club-card small { color: var(--report-muted); font-size: 11px; }
.management-peach-club-card strong { color: var(--report-ink); font-size: 17px; }
.management-peach-club-card em { color: var(--report-accent-deep); font-size: 12px; font-weight: 700; }
.management-peach-club-card.opponent em { color: #a7503d; }

.battle-report-comparison-metrics {
  margin-top: 12px;
  border-top: 1px solid var(--report-rule);
  border-bottom: 1px solid var(--report-rule);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255, 253, 248, .56);
}
.battle-report-comparison-metric {
  min-height: 78px;
  padding: 10px 18px;
  border-right: 1px solid var(--report-rule);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 3px;
}
.battle-report-comparison-metric:last-child { border-right: 0; }
.battle-report-comparison-metric > small { color: var(--report-muted); font-size: 12px; font-weight: 800; }
.battle-report-comparison-metric > span { display: grid; grid-template-columns: 62px 24px 62px; align-items: center; text-align: center; }
.battle-report-comparison-metric > span b { font-size: 21px; font-weight: 950; line-height: 1.2; }
.battle-report-comparison-metric > span b.own { color: #237f78; }
.battle-report-comparison-metric > span b.opponent { color: var(--report-opponent); }
.battle-report-comparison-metric > span i { color: #aba69c; font-size: 10px; font-style: normal; }
.battle-report-comparison-metric > em {
  width: 148px;
  display: flex;
  justify-content: space-between;
  color: var(--report-muted);
  font-size: 11px;
  font-style: normal;
}

.management-peach-rank-grid {
  padding: 0;
  border-top: 1px solid var(--report-rule);
  border-bottom: 1px solid var(--report-rule);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: rgba(255, 253, 248, .62);
}
.management-peach-rank-card {
  border: 0;
  border-right: 1px solid var(--report-rule);
  border-radius: 0;
}
.management-peach-rank-card:last-child { border-right: 0; }
.management-peach-rank-card h4 {
  height: 32px;
  padding: 6px 9px;
  border-bottom: 1px solid var(--report-rule);
  background: var(--report-accent-soft);
  color: var(--report-accent-deep);
  font-size: 13px;
}
.management-peach-rank-card article { padding: 5px 9px 7px; }
.management-peach-rank-card article + article { border-left-color: var(--report-rule); }
.management-peach-rank-row { min-height: 30px; border-bottom-color: #e8e2d8; grid-template-columns: 17px 24px minmax(0, 1fr) 36px; }
.management-peach-rank-row img { width: 24px; height: 24px; }
.management-peach-rank-row em { font-size: 10px; font-weight: 750; }
.management-peach-rank-row strong { color: var(--report-ink); font-size: 11.5px; }
.management-peach-rank-row b { color: var(--report-accent-deep); font-size: 12px; font-weight: 900; }

.management-peach-report-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.management-peach-report-team {
  border: 0;
  border-top: 3px solid #237f78;
  border-bottom: 1px solid var(--report-rule);
  border-radius: 0;
  background: rgba(255, 253, 248, .74);
}
.management-peach-report-team.opponent { border-top-color: var(--report-opponent); border-right: 0; border-left: 0; border-bottom-color: var(--report-rule); }
.management-peach-report-team > header {
  height: 39px;
  padding: 0 11px;
  border-right: 1px solid var(--report-rule);
  border-left: 1px solid var(--report-rule);
  background: rgba(35, 127, 120, .1);
  color: var(--report-ink);
}
.management-peach-report-team.opponent > header { background: rgba(206, 101, 77, .1); }
.management-peach-report-team > header strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.management-peach-report-team > header b { font-size: 12px; font-weight: 900; }
.management-peach-report-team table { font-size: 11.5px; }
.management-peach-report-team th,
.management-peach-report-team td {
  box-sizing: border-box;
  height: 39px;
  padding: 3px 4px;
  border-color: var(--report-rule);
  line-height: 14px;
  vertical-align: middle;
}
.management-peach-report-team th { height: 32px; color: #5e6864; background: #eeeae1; font-size: 11px; }
.management-peach-report-team td:not(:nth-child(2)) { font-size: 11.5px; font-weight: 720; }
.management-peach-report-team tbody tr:nth-child(even) { background: rgba(255, 255, 255, .52); }
.management-peach-report-player > img { width: 27px; height: 27px; }
.management-peach-report-player b { color: var(--report-ink); font-size: 11.5px; }
.management-peach-report-player small { color: #8d938f; font-size: 9px; }
.management-peach-report-team tfoot td { height: 32px; color: var(--report-accent-deep); background: rgba(35, 127, 120, .1); font-size: 12px; font-weight: 900; }
.management-peach-report-team.opponent tfoot td { color: #984833; background: rgba(206, 101, 77, .1); }

.management-peach-export-capture,
.salt-dashboard-export-capture {
  box-sizing: border-box;
  width: 1120px !important;
  max-width: none;
  min-width: 1120px;
  animation: none;
}

@media (max-width: 760px) {
  .salt-dashboard-scroll,
  .management-peach-report-scroll { border-inline: 0; }
  #saltView.is-battle-report-view :is(.salt-dashboard-scroll, .management-peach-report-scroll) { overflow-x: auto; }
  #saltView.is-battle-report-view .battle-report-sheet { width: 920px; min-width: 920px; }
}

/* Both member rosters use the Peach dossier palette and readable single-row formations. */
.member-roster-panel .member-roster-overview { margin-top: 4px; }
.member-roster-panel .member-roster-section { margin-top: 2px; }
.member-roster-panel .member-roster-lineup-strip {
  width: max-content; display: inline-grid; grid-template-columns: repeat(5, 42px); grid-template-rows: 42px;
}
.member-roster-panel .member-roster-highest-saints { width: max-content; display: inline-flex; }

@media (max-width: 1080px) {
  .member-roster-panel:not(.club-members-export-capture) .member-roster-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .member-roster-panel:not(.club-members-export-capture) .battle-report-masthead.has-announcement {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .85fr);
  }
  .member-roster-panel:not(.club-members-export-capture) .battle-report-masthead.has-announcement .battle-report-heading {
    grid-column: 1 / -1; min-width: 0; justify-items: start; text-align: left;
  }
}

@media (max-width: 760px) {
  .member-roster-panel:not(.club-members-export-capture).battle-report-sheet { width: 100%; max-width: 100%; min-width: 0; padding: 14px 12px 20px; }
  .member-roster-panel:not(.club-members-export-capture) .battle-report-masthead {
    min-height: 0; padding: 15px 14px; grid-template-columns: minmax(0, 1fr); gap: 13px;
  }
  .member-roster-panel:not(.club-members-export-capture) .battle-report-masthead.has-announcement { grid-template-columns: minmax(0, 1fr); }
  .member-roster-panel:not(.club-members-export-capture) .battle-report-masthead.has-announcement .battle-report-heading { grid-column: auto; }
  .member-roster-panel:not(.club-members-export-capture) .member-roster-masthead-announcement { width: 100%; min-height: 66px; }
  .member-roster-panel:not(.club-members-export-capture) .battle-report-masthead::after { right: -40px; bottom: -85px; }
  .member-roster-panel:not(.club-members-export-capture) .battle-report-brand { grid-template-columns: 54px minmax(0, 1fr); gap: 11px; }
  .member-roster-panel:not(.club-members-export-capture) .battle-report-crest { width: 54px; height: 54px; }
  .member-roster-panel:not(.club-members-export-capture) .battle-report-crest img { width: 48px; height: 48px; }
  .member-roster-panel:not(.club-members-export-capture) .battle-report-identity strong { font-size: 20px; }
  .member-roster-panel:not(.club-members-export-capture) .battle-report-heading { min-width: 0; justify-items: start; text-align: left; }
  .member-roster-panel:not(.club-members-export-capture) .battle-report-heading h2 { font-size: 24px; }
  .member-roster-panel:not(.club-members-export-capture) .member-roster-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-roster-panel:not(.club-members-export-capture) .member-roster-metric { min-height: 68px; padding: 9px; grid-template-columns: 29px minmax(0, 1fr); gap: 7px; }
  .member-roster-panel:not(.club-members-export-capture) .member-roster-metric > img { width: 27px; height: 27px; }
  .member-roster-panel:not(.club-members-export-capture) .member-roster-metric strong { font-size: 14px; }
  .member-roster-panel:not(.club-members-export-capture) .member-roster-section > .battle-report-section-heading { min-height: 42px; }
  .member-roster-panel:not(.club-members-export-capture) .member-roster-section > .battle-report-section-heading > strong { font-size: 15px; }
  .member-roster-panel:not(.club-members-export-capture) .member-roster-section .workbench-section-tools { gap: 6px; }
  .member-roster-panel:not(.club-members-export-capture) .member-roster-section .workbench-export-button { padding-inline: 8px; }
}
/* Compact pet automation workspace. */
.pet-view {
  overflow-y: auto;
  padding: clamp(16px, 2.5vw, 28px);
  background: transparent;
}
.pet-content {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.pet-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 4px 2px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
}
.pet-heading-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  background: #f8fafc;
}
.pet-heading-icon img { width: 42px; height: 42px; object-fit: contain; }
.pet-heading > span:last-child { min-width: 0; display: grid; gap: 3px; }
.pet-heading small { color: #64748b; font-size: 12px; }
.pet-heading strong { overflow: hidden; color: #1f2937; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }

.pet-operation-card,
.pet-status-panel {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}
.pet-operation-card { padding: 17px; display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 15px 24px; align-items: center; }
.pet-operation-intro { min-width: 0; display: flex; align-items: center; gap: 13px; }
.pet-operation-intro > img { width: 46px; height: 46px; object-fit: contain; }
.pet-operation-intro > span { min-width: 0; display: grid; gap: 5px; }
.pet-operation-intro strong { color: #1f2937; font-size: 17px; }
.pet-operation-intro small { color: #64748b; line-height: 1.45; }
.pet-operation-settings { display: grid; grid-template-columns: minmax(150px, 190px) 110px auto auto; gap: 10px; align-items: center; }
.pet-operation-settings label { display: grid; gap: 2px; }
.pet-operation-settings label span { color: #334155; font-size: 13px; font-weight: 800; }
.pet-operation-settings label small { color: #94a3b8; font-size: 10px; }
.pet-operation-settings select {
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 13px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  color: #1f2937;
  background: #fff;
  font: inherit;
  font-weight: 800;
}
.pet-operation-settings button { min-height: 42px; white-space: nowrap; }
.pet-operation-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 0 0;
  border-top: 1px solid #e5e7eb;
  color: #64748b;
  background: transparent;
  font-size: 12px;
  line-height: 1.6;
}

.pet-status-panel { overflow: hidden; }
.pet-status-panel > header {
  min-height: 62px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
}
.pet-status-panel > header > span { min-width: 0; display: grid; gap: 4px; }
.pet-status-panel > header small { color: #94a3b8; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.pet-status-panel > header strong { overflow: hidden; color: #1f2937; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.pet-status-panel > header em {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 999px;
  color: #64748b;
  background: #f1f5f9;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}
.pet-status-panel > header em[data-phase="running"],
.pet-status-panel > header em[data-phase="upgrading-level"] { color: #226e59; background: #dcf4e8; }
.pet-status-panel > header em[data-phase="reconnecting"],
.pet-status-panel > header em[data-phase="rebirthing"] { color: #9a5a10; background: #fff0cf; }
.pet-status-panel > header em[data-phase="completed"] { color: #176b4e; background: #cdf1df; }
.pet-status-panel > header em[data-phase="error"] { color: #a34138; background: #fee3df; }

.pet-status-grid { padding: 16px 18px 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.pet-status-grid article {
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: transparent;
}
.pet-status-grid img { width: 40px; height: 40px; object-fit: contain; }
.pet-status-grid span { min-width: 0; display: grid; gap: 4px; }
.pet-status-grid small { overflow: hidden; color: #94a3b8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.pet-status-grid strong { overflow: hidden; color: #1f2937; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.pet-talent-progress { padding: 8px 18px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.pet-talent-progress > div { padding: 11px 12px; border: 1px solid #e5e7eb; border-radius: 12px; background: transparent; }
.pet-talent-progress span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pet-talent-progress small { color: #64748b; font-size: 11px; font-weight: 750; }
.pet-talent-progress strong { color: #334155; font-size: 12px; }
.pet-talent-progress i { height: 7px; margin-top: 9px; display: block; overflow: hidden; border-radius: 999px; background: #e5e7eb; }
.pet-talent-progress b { width: 0; height: 100%; display: block; border-radius: inherit; background: #64748b; transition: width .22s ease; }
.pet-talent-progress > div:nth-child(2) b { background: #64748b; }

.pet-resource-strip { padding: 0 18px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.pet-resource-strip > span { min-width: 0; padding: 9px 11px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid #e5e7eb; border-radius: 11px; background: transparent; }
.pet-resource-strip img { width: 27px; height: 27px; object-fit: contain; }
.pet-resource-strip small { overflow: hidden; color: #64748b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.pet-resource-strip strong { color: #1f2937; font-size: 13px; }
.pet-status-message { min-height: 44px; padding: 12px 18px; border-top: 1px solid #e5e7eb; color: #64748b; background: transparent; font-size: 12px; line-height: 1.6; }

@media (max-width: 960px) {
  .pet-operation-card { grid-template-columns: minmax(0, 1fr); }
  .pet-operation-settings { grid-template-columns: minmax(150px, 1fr) 110px auto auto; }
  .pet-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .pet-view { padding: 12px; }
  .pet-heading { min-height: 58px; padding: 3px 1px 10px; }
  .pet-heading-icon { width: 46px; height: 46px; }
  .pet-heading-icon img { width: 41px; height: 41px; }
  .pet-operation-card { padding: 14px; border-radius: 14px; }
  .pet-operation-settings { grid-template-columns: minmax(0, 1fr) 92px; }
  .pet-operation-settings button { width: 100%; }
  .pet-status-panel { border-radius: 14px; }
  .pet-status-panel > header { padding: 13px 15px; }
  .pet-status-grid { padding: 14px 14px 8px; gap: 8px; }
  .pet-status-grid article { min-height: 66px; padding: 9px; grid-template-columns: 34px minmax(0, 1fr); gap: 7px; }
  .pet-status-grid img { width: 33px; height: 33px; }
  .pet-status-grid strong { font-size: 13px; }
  .pet-talent-progress { padding: 7px 14px 12px; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pet-resource-strip { padding: 0 14px 13px; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pet-status-message { padding: 12px 15px; }
}

@media (max-width: 760px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea { font-size: 16px !important; }
}
/* platform-cloud / accounts / temporary-login-share */
.guest-share-dialog {
  width: min(620px, calc(100vw - 28px));
}

.guest-share-intro,
.guest-share-result p {
  margin: 0;
  color: var(--muted, #65758b);
  line-height: 1.6;
}

.guest-share-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0 12px;
}

.guest-share-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--muted, #65758b);
}

.guest-share-form select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line, #d7dee8);
  background: var(--surface, #fff);
  color: inherit;
}

.guest-share-status {
  margin: 8px 0;
}

.guest-share-result {
  display: grid;
  gap: 7px;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid #b8d0ee;
  background: #f3f8fe;
}

.guest-share-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line, #d7dee8);
}

.guest-share-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 10px 0;
}

.guest-share-empty {
  padding: 18px 8px;
  color: var(--muted, #65758b);
  text-align: center;
}

.guest-share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line, #d7dee8);
  background: var(--surface, #fff);
}

.guest-share-row-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.guest-share-row-copy strong,
.guest-share-row-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-share-row-copy small {
  color: var(--muted, #65758b);
}

.guest-share-state {
  color: #1769aa;
}

.guest-share-state.is-expired,
.guest-share-state.is-revoked {
  color: #8a5a5a;
}

/* Weekly/monthly reports use their own width, so exports never inherit the device layout. */
#saltView.is-battle-report-view .salt-dashboard-report,
.salt-dashboard-report.battle-report-sheet {
  box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%;
  padding: 16px; font-family: inherit; container: salt-report / inline-size;
}
.salt-dashboard-report .salt-dashboard-body-layout {
  display: grid; grid-template-columns: minmax(0, 31fr) minmax(0, 69fr);
  grid-template-areas: none; align-items: start; gap: 14px; margin-top: 14px;
}
.salt-dashboard-sidebar { min-width: 0; display: grid; gap: 12px; }
.salt-dashboard-report .battle-report-masthead { min-height: 76px; padding: 12px; }
.salt-dashboard-report .battle-report-identity :is(small, em),
.salt-dashboard-report .battle-report-heading > small { display: none; }
.salt-dashboard-report .salt-dashboard-overview,
.salt-dashboard-report .salt-dashboard-timeline,
.salt-dashboard-report .battle-report-section { margin: 0; padding: 0; }
.salt-dashboard-report .salt-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.salt-dashboard-report .salt-dashboard-metric { min-height: 50px; padding: 5px 3px; gap: 2px; border-bottom: 1px solid var(--report-rule); }
.salt-dashboard-report .salt-dashboard-metric:nth-child(2n) { border-right: 0; }
.salt-dashboard-report .salt-dashboard-metric:nth-last-child(-n + 2) { border-bottom: 0; }
.salt-dashboard-report :is(.salt-dashboard-metric small, .salt-dashboard-mvp-copy > b, .salt-dashboard-mvp-copy > small, .salt-dashboard-mvp-stats small) { font-size: 14px; letter-spacing: normal; }
.salt-dashboard-report .salt-dashboard-metric b { font-size: 17px; }
.salt-dashboard-report .salt-dashboard-mvp {
  margin: 0; padding: 12px; min-height: 116px; grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto; gap: 8px 10px; align-self: start;
}
.salt-dashboard-report .salt-dashboard-mvp-avatar { width: 46px; height: 46px; }
.salt-dashboard-report .salt-dashboard-mvp-avatar img { width: 40px; height: 40px; }
.salt-dashboard-report .salt-dashboard-mvp-copy > strong { font-size: 19px; }
.salt-dashboard-report .salt-dashboard-mvp-stats { width: 100%; grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 4px; }
.salt-dashboard-report .salt-dashboard-mvp-stats > span { min-height: 36px; }
.salt-dashboard-report .salt-dashboard-mvp-stats b { font-size: 15px; }
.salt-dashboard-report .salt-dashboard-rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.salt-dashboard-report .salt-dashboard-rank-card { min-width: 0; border-right: 1px solid var(--report-rule); border-top: 2px solid var(--rank-tone); }
.salt-dashboard-report .salt-dashboard-rank-card:nth-child(2n) { border-right: 0; }
.salt-dashboard-report .salt-dashboard-rank-card h3 { height: 30px; padding: 5px; gap: 3px; font-size: 14px; }
.salt-dashboard-report .salt-dashboard-rank-card > div { padding: 0 5px 5px; }
.salt-dashboard-report .salt-dashboard-rank-row { grid-template-columns: 12px minmax(0, 1fr) auto; min-height: 28px; gap: 3px; }
.salt-dashboard-report .salt-dashboard-rank-member { gap: 3px; }
.salt-dashboard-report .salt-dashboard-rank-member img { width: 18px; height: 18px; }
.salt-dashboard-report :is(.salt-dashboard-rank-member b, .salt-dashboard-rank-row > strong, .salt-dashboard-rank-row em) { font-size: 14px; }
.salt-dashboard-report .salt-dashboard-timeline > div { grid-template-columns: minmax(0, 1fr); }
.salt-dashboard-report .salt-dashboard-timeline article { min-height: 36px; padding: 5px; gap: 6px; border-right: 0; border-bottom: 1px solid var(--report-rule); }
.salt-dashboard-report .salt-dashboard-timeline article > span:last-child { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 7px; }
.salt-dashboard-report .salt-dashboard-timeline :is(strong, time, small) { font-size: 13px; }
.salt-dashboard-report .salt-dashboard-table-section { width: 100%; min-width: 0; grid-area: auto; }
.salt-dashboard-report .salt-dashboard-table-grid { display: block; }
.salt-dashboard-report .salt-dashboard-table :is(th, td) { height: 36px; padding: 3px 4px; text-align: center; font-size: 15px; }
.salt-dashboard-report .salt-dashboard-table tbody tr { height: 36px; }
.salt-dashboard-report .salt-dashboard-table :is(th, td):first-child { width: 7%; }
.salt-dashboard-report .salt-dashboard-table :is(th, td):nth-child(2) { width: 27%; text-align: left; }
.salt-dashboard-report .salt-dashboard-table :is(th, td):nth-child(n + 3):nth-child(-n + 5) { width: 13%; }
.salt-dashboard-report .salt-dashboard-table :is(th, td):nth-child(6) { width: 15%; }
.salt-dashboard-report .salt-dashboard-table :is(th, td):last-child { width: 12%; }
.salt-dashboard-report :is(.salt-dashboard-member b, .salt-dashboard-bar-cell b) { font-size: 15px; }
.salt-dashboard-report .salt-dashboard-plain-value { font-size: 15px !important; }
.salt-dashboard-report .salt-dashboard-bar-cell > span { max-width: calc(100% - 40px); width: 44px; }
.salt-dashboard-report .salt-dashboard-bar-cell b { min-width: 0; margin-right: 4px; }
.salt-dashboard-report.salt-dashboard-export-capture { width: 1120px; min-width: 1120px; max-width: 1120px; }

@container salt-report (max-width: 700px) {
  .salt-dashboard-report .battle-report-masthead { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px; }
  .salt-dashboard-report .battle-report-brand { grid-template-columns: 42px minmax(0, 1fr); gap: 8px; }
  .salt-dashboard-report .battle-report-crest { width: 42px; height: 42px; }
  .salt-dashboard-report .battle-report-crest img { width: 36px; height: 36px; }
  .salt-dashboard-report .battle-report-identity strong { font-size: 19px; }
  .salt-dashboard-report .battle-report-heading { min-width: 0; text-align: right; justify-items: end; }
  .salt-dashboard-report .battle-report-heading h2 { font-size: 17px; }
  .salt-dashboard-report .salt-dashboard-body-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .salt-dashboard-report .salt-dashboard-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .salt-dashboard-report .salt-dashboard-metric { border-right: 1px solid var(--report-rule); }
  .salt-dashboard-report .salt-dashboard-metric:nth-child(4n) { border-right: 0; }
  .salt-dashboard-report .salt-dashboard-metric:nth-last-child(-n + 4) { border-bottom: 0; }
  .salt-dashboard-report .salt-dashboard-metric small { font-size: 13px; }
  .salt-dashboard-report .salt-dashboard-table :is(th, td) { padding: 3px 2px; font-size: 13px; overflow-wrap: anywhere; }
  .salt-dashboard-report .salt-dashboard-table :is(th, td):nth-child(6) { width: 13%; }
  .salt-dashboard-report .salt-dashboard-table :is(th, td):last-child { width: 14%; white-space: nowrap; }
  .salt-dashboard-report .salt-dashboard-member { gap: 3px; }
  .salt-dashboard-report .salt-dashboard-member img { width: 18px; height: 18px; flex: 0 0 18px; }
  .salt-dashboard-report .salt-dashboard-member b { white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
  .salt-dashboard-report .salt-dashboard-bar-cell b { margin: 0; font-size: 13px; }
  .salt-dashboard-report .salt-dashboard-bar-cell > span { display: none; }
  .salt-dashboard-report .salt-dashboard-plain-value { font-size: 13px !important; }
}

/* Personal weekly analysis stays outside the compact roster and uses full report width. */
.salt-personal-hint { margin: 0 0 6px; color: #52685f; font-size: 12px; }
.salt-personal-trigger { display: flex; align-items: center; justify-content: space-between; gap: 3px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.salt-personal-trigger .salt-dashboard-member { min-width: 0; }
.salt-personal-trigger:hover, .salt-personal-trigger[aria-expanded="true"] { color: #186652; }
.salt-personal-trigger:focus-visible { outline: 2px solid #24745d; outline-offset: 3px; }
.salt-personal-chevron { color: #24745d; font-size: 20px; }
.salt-personal-trigger[aria-expanded="true"] .salt-personal-chevron { transform: rotate(90deg); }
.salt-personal-panel { min-width: 0; margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--report-rule, #d6ded8); scroll-margin-top: 24px; }
.salt-personal-panel[hidden] { display: none; }
.salt-personal-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.salt-personal-header h3 { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; color: #26443a; font-size: 19px; overflow-wrap: anywhere; }
.salt-personal-self-avatar { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; object-fit: cover; }
.salt-personal-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.salt-personal-header button { flex: none; }
.salt-personal-sidebar { display: grid; gap: 16px; min-width: 0; }
.salt-personal-analysis-table, .salt-personal-opponents { min-width: 0; }
.salt-personal-win-rate { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; gap: 2px; line-height: 1.3; }
.salt-personal-win-rate > b { font-size: inherit; font-weight: 650; white-space: nowrap; }
.salt-personal-win-rate.is-rate-high > b { color: #167b4a; }
.salt-personal-win-rate.is-rate-low > b { color: #c03932; }
.salt-personal-win-rate > small { color: #6b776f; font-size: 11px; font-weight: 400; white-space: nowrap; }
.salt-personal-content .battle-report-section-heading { margin: 0 0 8px; gap: 6px; }
.salt-personal-content .battle-report-section-heading h3 { font-size: 16px; }
.salt-personal-content .battle-report-section-heading small { font-size: 11px; white-space: nowrap; }
.salt-personal-table-scroll { max-width: 100%; overflow-x: auto; }
.salt-personal-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.salt-personal-table :is(th, td) { padding: 6px 3px; text-align: center; font-size: 13px; border-bottom: 1px solid var(--report-rule, #d6ded8); overflow-wrap: anywhere; }
.salt-personal-sidebar .salt-personal-table :is(th, td) { font-size: 12px; padding: 6px 2px; }
.salt-personal-table tbody tr:last-child { font-weight: 650; }
.salt-personal-table.is-opponents :is(th, td):nth-child(-n + 2) { width: 18%; text-align: left; }
.salt-personal-table.is-opponents :is(th, td):nth-child(3) { width: 6%; }
.salt-personal-table.is-lineups :is(th, td):first-child { width: 22%; }
.salt-personal-table.is-clubs :is(th, td):first-child { width: 28%; text-align: left; }
.salt-personal-lineup-avatar { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; font-size: 12px; }
.salt-personal-lineup-avatar img { display: block; width: 28px; height: 28px; object-fit: contain; }
.salt-personal-identity { display: flex; align-items: center; gap: 6px; min-width: 0; }
.salt-personal-identity img { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; object-fit: cover; background: #e5ebe4; }
.salt-personal-identity b { min-width: 0; font-size: inherit; font-weight: 550; overflow-wrap: anywhere; }
.salt-personal-sidebar .salt-personal-identity { gap: 4px; }
.salt-personal-sidebar .salt-personal-identity img { width: 22px; height: 22px; flex-basis: 22px; }
.salt-personal-empty { padding: 24px 8px !important; color: #64756b; font-weight: 400; }
.salt-personal-export-capture .salt-personal-panel { margin: 0; padding: 0; border: 0; }
.salt-personal-export-capture .salt-personal-actions { display: none; }
@container salt-report (max-width: 1000px) {
  .salt-dashboard-report .salt-personal-content { grid-template-columns: minmax(0, 1fr); }
}
@container salt-report (max-width: 700px) {
  .salt-personal-table.is-opponents { min-width: 780px; }
  .salt-personal-sidebar .salt-personal-table :is(th, td) { padding: 8px 3px; font-size: 12px; }
  .salt-personal-header h3 { font-size: 17px; }
  .salt-personal-content .battle-report-section-heading { align-items: start; flex-direction: column; gap: 4px; }
}

/* Shared table density: ID contents get six glyphs, with the full value in the title. */
.workbench-table :is(th, td).table-id-column,
.workbench-table :is(th, td).salt-battle-id {
  box-sizing: content-box; width: 6ch; min-width: 0; max-width: 6ch;
  padding-inline: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.workbench-table:has(.table-id-column) { table-layout: fixed; }
.workbench-table :is(th, td) { padding: 6px; font-size: 15px; }
.workbench-table :is(td strong, td b, .workbench-member strong) { font-size: inherit; }
.club-war-report-sheet .workbench-table :is(th, td) { text-align: center; font-size: 19px; padding: 5px; }
.club-war-report-sheet .club-war-table tbody tr { height: 48px; }
.club-war-report-sheet .workbench-table :is(td strong, td b, .club-war-win-chip) { font-size: inherit; }
.club-war-report-sheet .workbench-member { justify-content: center; text-align: center; }
.club-war-report-sheet .workbench-member > span { justify-items: center; }
.club-war-report-sheet .club-war-export-member { text-align: center; justify-items: center; }
.club-war-report-sheet .club-war-win-position-list { justify-content: center; }
.club-war-report-sheet .club-war-win-count,
.club-war-report-sheet .club-war-defense-failure { color: #111; }
.club-war-report-sheet .club-war-win-count[data-complete="true"] { color: #16834a; }
.club-war-report-sheet .club-war-defense-failure[data-complete="true"] { color: #d23434; }
@media (min-width: 1001px) {
  .workbench-table :is(th, td) { font-size: 16px; padding: 5px 6px; }
  .club-war-report-sheet .workbench-table :is(th, td) { font-size: 19px; }
}
@media (max-width: 760px) {
  #saltView.is-battle-report-view .salt-dashboard-scroll { overflow-x: clip; }
  #saltView.is-battle-report-view .salt-dashboard-report { padding: 8px 0; }
}

@media (max-width: 560px) {
  .guest-share-dialog {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-width: none;
  }

  .guest-share-form {
    grid-template-columns: 1fr;
  }

  .guest-share-form .primary-button {
    width: 100%;
  }
}

/* Table text follows a common readable size; report/camp rules refine their own tables. */
body table :is(th, td) { font-size: 15px; }
body table :is(th, td) :is(strong, b, em) { font-size: inherit; }
@media (min-width: 1001px) { body table :is(th, td) { font-size: 16px; } }
@media (max-width: 760px) {
  html:has(.salt-dashboard-report), body:has(.salt-dashboard-report),
  .management-app:has(.salt-dashboard-report) { min-width: 0; }
  #saltView.is-battle-report-view:has(.salt-dashboard-report) { padding-inline: 0; }
  #saltView.is-battle-report-view:has(.salt-dashboard-report) :is(.workbench-panel, .salt-dashboard-panel) { padding-inline: 0; }
}

/* Keep all roster copy legible. Narrow screens scroll the table, never scale its text. */
.member-roster-panel .battle-report-identity :is(small, em),
.member-roster-panel .battle-report-heading > small,
.member-roster-panel .battle-report-section-heading > small { font-size: 13px; line-height: 1.5; }
.member-roster-panel .battle-report-heading time { font-size: 14px; }
.member-roster-panel .workbench-table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; }
.member-roster-panel .member-roster-table thead th { height: 48px; font-size: 16px; line-height: 1.4; }
.member-roster-panel.club-members-export-capture {
  width: 1120px; max-width: none; padding: 24px 28px 28px;
}
.member-roster-panel.club-members-export-capture .workbench-table-scroll { max-width: none; overflow: visible; }
.member-roster-panel.club-members-export-capture .member-roster-table tbody td { height: 76px; }

.member-roster-panel .workbench-export-button { font-size: 14px; min-height: 34px; }
