:root {
  --sidebar-width: 202px;
  --coral: #ef554f;
  --coral-deep: #d83d39;
  --coral-soft: #ffebe8;
  --ink: #3f201e;
  --body: #5c403d;
  --muted: #987b77;
  --line: #efd8d4;
  --line-soft: #f5e7e4;
  --panel: rgba(255, 255, 255, .88);
  --green: #27946d;
  --gold: #f2b73c;
  --radius-lg: 15px;
  --shadow: 0 8px 22px rgba(108, 54, 49, .09);
  --font-body: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-number: "DIN Alternate", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--body); background: #fff7f5; font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #f06a63; outline-offset: 2px; }
svg { display: block; }
.app-shell svg:not(.icon-sprite) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: fixed; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon-sprite symbol { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; width: var(--sidebar-width); padding: 18px 14px 24px; flex-direction: column;
  color: #fff; background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.22), transparent 23%),
    linear-gradient(160deg, #dd534d 0%, #c42f2f 65%, #b72427 100%);
  overflow-y: auto; box-shadow: 8px 0 25px rgba(109, 34, 33, .12); transition: background .28s, color .28s, transform .24s ease;
}
.sidebar::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; opacity: .15; background: linear-gradient(145deg, transparent 45%, rgba(255,255,255,.3) 46% 47%, transparent 48% 58%, rgba(255,255,255,.25) 59% 60%, transparent 61%); pointer-events: none; }
.sidebar-aurora { position: absolute; z-index: 0; width: 235px; height: 72px; border-radius: 50%; opacity: .28; filter: blur(13px); pointer-events: none; will-change: transform; }
.sidebar-aurora.aurora-one { left: -58px; top: 15%; background: linear-gradient(90deg, transparent, rgba(255,225,132,.9), rgba(255,255,255,.58), transparent); transform: rotate(-18deg); }
.sidebar-aurora.aurora-two { right: -100px; bottom: 9%; background: linear-gradient(90deg, transparent, rgba(255,122,112,.9), rgba(255,220,133,.7), transparent); transform: rotate(22deg); }
.brand-block { position: relative; z-index: 1; display: grid; justify-items: center; padding: 0 4px 22px; text-align: center; }
.brand-block img { width: 68px; height: 68px; margin-bottom: 6px; border-radius: 50%; object-fit: contain; filter: drop-shadow(0 5px 9px rgba(78,23,23,.18)); }
.brand-block strong { font-size: 25px; font-weight: 850; letter-spacing: .06em; line-height: 1.1; text-shadow: 0 2px 7px rgba(99,24,24,.25); }
.brand-block span { margin-top: 5px; font-size: 10px; opacity: .9; }
.nav-menu { position: relative; z-index: 1; display: grid; gap: 6px; }
.nav-label { padding: 4px 11px 2px; font-size: 9px; font-weight: 700; letter-spacing: .16em; opacity: .55; }
.nav-item { position: relative; display: flex; min-height: 49px; padding: 0 14px; overflow: hidden; align-items: center; gap: 12px; border: 0; border-radius: 12px; color: rgba(255,255,255,.87); background: transparent; isolation: isolate; font-size: 14px; font-weight: 650; text-align: left; transition: .2s; }
.nav-item > *:not(.nav-shine) { position: relative; z-index: 2; }
.nav-item svg { width: 19px; height: 19px; flex: 0 0 auto; }
.nav-item:hover { background: rgba(255,255,255,.11); }
.nav-item.is-active { color: #fff; background: rgba(255,255,255,.24); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 16px rgba(116,21,23,.13); }
.nav-item::before { content: ""; position: absolute; z-index: 0; inset: 0; border-radius: inherit; opacity: 0; background: radial-gradient(circle at 18% 50%, rgba(255,231,161,.32), transparent 44%); transition: opacity .24s; }
.nav-item:hover::before, .nav-item.is-active::before { opacity: 1; }
.nav-shine { position: absolute !important; z-index: 1 !important; top: -25%; left: 0; width: 22%; height: 150%; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255,246,211,.72), transparent); filter: blur(1px); pointer-events: none; transform: skewX(-18deg); will-change: transform, opacity; }
.nav-count { display: grid; width: 19px; height: 19px; margin-left: auto; place-items: center; border-radius: 50%; color: var(--coral-deep); background: #fff; font-family: var(--font-number); font-size: 10px; }
.admin-sidebar .brand-block { padding-bottom: 13px; }
.admin-sidebar .brand-block img { width: 58px; height: 58px; }
.admin-sidebar .nav-menu { gap: 2px; }
.admin-sidebar .nav-item { min-height: 38px; font-size: 12px; }
.admin-sidebar .season-card { padding: 10px 12px; }
.admin-entry-link { position: relative; z-index: 1; display: flex; min-height: 46px; margin-top: auto; padding: 0 13px; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; color: #fff; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 700; text-decoration: none; }
.admin-entry-link svg { width: 17px; height: 17px; }
.admin-entry-link svg:last-child { width: 14px; height: 14px; margin-left: auto; }
.admin-entry-link:hover { background: rgba(255,255,255,.2); }
.season-card { position: relative; z-index: 1; display: grid; grid-template-columns: 19px 1fr; gap: 7px 8px; margin-top: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.14); backdrop-filter: blur(12px); }
.season-card svg { width: 18px; height: 18px; }
.season-card strong { font-size: 12px; }
.season-card span { grid-column: 1/-1; font-family: var(--font-number); font-size: 13px; }
.season-card i { grid-column: 1/-1; width: 20px; height: 1px; background: rgba(255,255,255,.35); }

body.cockpit-mode .sidebar { color: #6f2b29; background: linear-gradient(180deg, #fffaf9, #fff2ef); box-shadow: 8px 0 28px rgba(100,26,28,.13); }
body.cockpit-mode .sidebar-aurora { opacity: .2; }
body.cockpit-mode .sidebar::after { opacity: .5; background: linear-gradient(160deg, transparent 45%, #f7c9c3 46% 47%, transparent 48% 58%, #f5d5cf 59% 60%, transparent 61%); }
body.cockpit-mode .brand-block strong { color: #df3f3b; text-shadow: none; }
body.cockpit-mode .brand-block span { color: #d54d48; }
body.cockpit-mode .nav-item { color: #753b38; }
body.cockpit-mode .nav-item:hover { background: #fff0ed; }
body.cockpit-mode .nav-item.is-active { color: #fff; background: linear-gradient(135deg, #ff655e, #ea4540); box-shadow: 0 8px 18px rgba(223,63,59,.2); }
body.cockpit-mode .admin-entry-link { border-color: #f2bdb7; color: #d93f3b; background: #fff; }
body.cockpit-mode .season-card { border-color: #f1d7d3; color: #72433f; background: rgba(255,255,255,.7); }
body.cockpit-mode .season-card i { background: #eccac6; }

.workspace { min-height: 100vh; margin-left: var(--sidebar-width); background: radial-gradient(circle at 72% -12%, rgba(255,223,218,.6), transparent 32%), #fff8f6; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; height: 64px; padding: 0 24px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(236,208,203,.82); background: rgba(255,252,251,.9); box-shadow: 0 4px 16px rgba(93,49,44,.05); backdrop-filter: blur(18px); }
.topbar-page { display: grid; gap: 1px; }
.topbar-page span { color: #b08c88; font-size: 9px; letter-spacing: .12em; }
.topbar-page strong { color: #54312e; font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.sync-indicator, .live-clock { display: inline-flex; align-items: center; gap: 7px; color: #84615e; font-size: 10px; }
.sync-indicator i { width: 7px; height: 7px; border-radius: 50%; background: #37b57f; box-shadow: 0 0 0 4px rgba(55,181,127,.09); animation: pulse 1.8s infinite; }
.live-clock { height: 36px; padding: 0 12px; border-left: 1px solid var(--line); }
.live-clock svg { width: 15px; height: 15px; color: var(--coral); }
.live-clock b { min-width: 57px; color: #5b3936; font-family: var(--font-number); font-size: 12px; font-variant-numeric: tabular-nums; }
@keyframes pulse { 50% { opacity: .45; } }
.mobile-menu { display: none; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--coral-deep); background: #fff; }
.mobile-menu svg { width: 19px; height: 19px; }
.outline-button, .primary-button, .secondary-button { display: inline-flex; min-height: 40px; padding: 0 14px; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font-size: 11px; font-weight: 700; text-decoration: none; }
.outline-button { border: 1px solid var(--line); color: #6c4542; background: #fff; }
.outline-button:hover { border-color: #efa7a1; color: var(--coral-deep); }
.outline-button svg, .primary-button svg, .secondary-button svg { width: 16px; height: 16px; }
.primary-button { border: 1px solid #eb4a45; color: #fff; background: linear-gradient(135deg, #ff645d, #e9423d); box-shadow: 0 7px 15px rgba(221,62,58,.18); }
.secondary-button { border: 1px solid #edb3ad; color: var(--coral-deep); background: #fff3f1; }
.sidebar-overlay { display: none; }

.page-content { padding: 20px 30px 30px; }
.view-panel { max-width: 1400px; margin: 0 auto; }
.page-heading { display: flex; min-height: 64px; margin: 0 3px 12px; align-items: flex-start; justify-content: space-between; gap: 18px; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: 28px; letter-spacing: -.04em; line-height: 1.2; }
.page-heading p { margin: 6px 0 0; color: #755855; font-size: 11px; }
.page-heading p b { color: var(--coral-deep); }
.live-status { display: inline-flex; margin-top: 9px; align-items: center; gap: 7px; color: #6d5a57; font-size: 10px; }
.live-status i { width: 7px; height: 7px; border-radius: 50%; background: #3cb483; box-shadow: 0 0 0 4px rgba(60,180,131,.09); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.kpi-card { display: flex; min-height: 82px; padding: 14px 17px; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.87); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.kpi-icon { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--coral); background: #ffe5e2; }
.kpi-icon.medal { color: #e5a414; background: #fff0c9; }
.kpi-icon svg { width: 23px; height: 23px; }
.kpi-card div { display: grid; gap: 2px; }
.kpi-card div > span { color: #745653; font-size: 11px; }
.kpi-card strong { color: #42201e; font-family: var(--font-number); font-size: 25px; font-variant-numeric: tabular-nums; line-height: 1; }
.public-toolbar { display: flex; margin-bottom: 10px; align-items: center; justify-content: space-between; gap: 14px; }
.public-toolbar-search { justify-content: flex-end; }
.public-tabs { display: inline-flex; padding: 3px; border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(255,255,255,.72); }
.public-tabs button { min-width: 118px; height: 36px; border: 0; border-radius: 8px; color: #775957; background: transparent; font-size: 12px; font-weight: 700; }
.public-tabs button.is-active { color: var(--coral-deep); background: #fff; box-shadow: 0 4px 12px rgba(118,62,58,.08); }
.search-field { display: flex; width: 240px; height: 38px; padding: 0 12px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; }
.search-field svg { width: 16px; height: 16px; }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--body); background: transparent; font-size: 11px; }

.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.board-layout { display: block; }
.ranking-panel { overflow: hidden; }
.table-wrap { overflow: auto; }
.ranking-table, .entry-table, .company-admin-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.ranking-table { min-width: 720px; }
th { height: 37px; padding: 0 13px; border-bottom: 1px solid var(--line); color: #725654; background: rgba(255,248,247,.72); font-size: 10px; font-weight: 750; text-align: left; white-space: nowrap; }
td { height: 41px; padding: 5px 13px; border-bottom: 1px solid var(--line-soft); color: #4f3735; font-size: 11px; vertical-align: middle; }
.ranking-table tbody tr:last-child td { border-bottom: 0; }
.ranking-table tbody tr:hover td { background: #fff8f7; }
.ranking-table tbody tr.top-rank td { background: rgba(255,238,235,.76); }
.ranking-table tbody tr.top-rank td:first-child { border-left: 2px solid #ff786f; }
.ranking-table tbody tr.top-rank td:last-child { border-right: 2px solid #ff786f; }
.ranking-table tbody tr.top-rank-1 td { border-top: 2px solid #ff786f; }
.ranking-table tbody tr.top-rank-3 td { border-bottom: 2px solid #ff786f; }
.ranking-table tbody tr.top-rank-1 td:first-child { border-top-left-radius: 12px; }
.ranking-table tbody tr.top-rank-1 td:last-child { border-top-right-radius: 12px; }
.ranking-table tbody tr.top-rank-3 td:first-child { border-bottom-left-radius: 12px; }
.ranking-table tbody tr.top-rank-3 td:last-child { border-bottom-right-radius: 12px; }
.rank-cell { --rank-icon-left: 4px; --rank-secondary-axis: 82px; width: 168px; min-width: 168px; padding-left: 18px; text-align: left; }
.rank-badge { display: inline-grid; width: 30px; height: 30px; place-items: center; border: 1px solid #ead9d7; border-radius: 50%; color: #765957; background: #fff; font-family: var(--font-number); font-size: 12px; box-shadow: 0 3px 8px rgba(119,63,59,.08); }
.rank-badge.top-1 { border-color: #f3c35f; color: #8c5d00; background: linear-gradient(145deg,#fff3bd,#edb333); }
.rank-badge.top-2 { border-color: #bac4ca; color: #536067; background: linear-gradient(145deg,#f5f8f9,#bdc6cb); }
.rank-badge.top-3 { border-color: #d99361; color: #703912; background: linear-gradient(145deg,#f4c096,#c9783d); }
.rank-award { position: relative; display: block; width: 122px; min-width: 122px; height: 40px; text-align: left; }
.rank-trophy { position: absolute; left: var(--rank-icon-left); top: 2px; width: 36px; height: 36px; stroke-width: 1.65 !important; will-change: transform; }
.rank-award > span { position: absolute; left: var(--rank-secondary-axis); top: 3px; display: grid; width: 66px; justify-items: center; gap: 2px; text-align: center; transform: translateX(-50%); }
.rank-award strong { color: #6f4811; font-size: 13px; line-height: 1.1; }
.rank-award small { color: #d7443f; font-family: var(--font-number); font-size: 12px; font-weight: 800; white-space: nowrap; }
.rank-award-1 .rank-trophy { color: #e5a514; filter: drop-shadow(0 2px 3px rgba(214,151,9,.28)); }
.rank-award-2 .rank-trophy { color: #96a0a5; filter: drop-shadow(0 2px 3px rgba(87,99,106,.18)); }
.rank-award-3 .rank-trophy { color: #c66f39; filter: drop-shadow(0 2px 3px rgba(159,78,28,.2)); }
.rank-award-2 strong { color: #596368; }
.rank-award-3 strong { color: #7c421f; }
.rank-standard { position: relative; display: inline-block; width: 122px; min-width: 122px; height: 40px; vertical-align: middle; }
.rank-standard .rank-badge { position: absolute; left: var(--rank-secondary-axis); top: 5px; transform: translateX(-50%); }
.company-cell { display: flex; min-width: 245px; align-items: center; gap: 9px; }
.company-avatar { width: 29px; height: 29px; padding: 3px; border: 1px solid #eee1df; border-radius: 8px; background: #fff; object-fit: contain; }
.company-name { color: #442b29; font-weight: 650; }
.number-cell { font-family: var(--font-number); font-variant-numeric: tabular-nums; }
.actual-cell { color: var(--coral-deep); }
.progress-cell { min-width: 220px; }
.progress-line { display: flex; align-items: center; gap: 9px; }
.progress-track { height: 6px; flex: 1; min-width: 100px; overflow: hidden; border-radius: 99px; background: #f3e2e0; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ff7e75,#e74742); transition: width .35s; }
.progress-fill.done { background: linear-gradient(90deg,#58c39b,#22966c); }
.progress-value { width: 48px; font-family: var(--font-number); text-align: right; }
.table-footer { display: flex; min-height: 38px; padding: 11px 14px; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line-soft); color: #9a7e7b; font-size: 10px; }

/* AI大赢家全局横幅 */
.summit-banner-wrap { position: relative; max-width: 1400px; margin: 0 auto 18px; overflow: hidden; border: 1px solid #e9a39a; border-radius: 19px; background: rgba(255,255,255,.92); box-shadow: 0 12px 30px rgba(116,37,33,.13); }
.summit-banner-main { position: relative; display: grid; min-height: 142px; padding: 18px clamp(28px, 6vw, 92px); overflow: hidden; grid-template-columns: minmax(230px,.65fr) minmax(480px,1.35fr); align-items: center; color: #fff6dc; background: radial-gradient(circle at 70% 38%, rgba(255,191,86,.21), transparent 22%), linear-gradient(115deg, rgba(255,180,64,.08), transparent 30% 65%, rgba(255,185,75,.12)), linear-gradient(130deg, #8b0f14 0%, #c31e1d 50%, #8f1015 100%); isolation: isolate; }
.summit-banner-main::before, .summit-banner-main::after { content: ""; position: absolute; z-index: -1; left: -7%; width: 115%; height: 54px; border: 1px solid rgba(255,219,131,.38); border-radius: 50%; transform: rotate(-2deg); pointer-events: none; }
.summit-banner-main::before { bottom: -4px; box-shadow: 0 -8px 22px rgba(255,176,71,.2), inset 0 9px 24px rgba(255,218,133,.12); }
.summit-banner-main::after { bottom: 22px; opacity: .55; transform: rotate(3deg); }
.summit-rays { position: absolute; inset: 0; z-index: -2; opacity: .36; background: repeating-conic-gradient(from 250deg at 50% 110%, rgba(255,222,138,.28) 0 1.4deg, transparent 1.6deg 7deg); mask-image: linear-gradient(to top, #000, transparent 86%); }
.summit-sheen { position: absolute; inset: -20% auto -20% -28%; z-index: 3; width: 18%; background: linear-gradient(90deg, transparent, rgba(255,245,199,.34), transparent); filter: blur(3px); transform: skewX(-16deg); pointer-events: none; will-change: transform; }
.summit-title { display: flex; align-items: center; gap: 5px; font-family: "STKaiti", "KaiTi", var(--font-body); font-size: clamp(54px,5.2vw,78px); font-weight: 900; letter-spacing: -.08em; line-height: 1; text-shadow: 0 3px 0 #7a170f, 0 0 18px rgba(255,218,117,.35); }
.summit-title span { color: #f9d574; background: linear-gradient(180deg,#fff1b2 0%,#f2c95c 48%,#c8871e 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 3px 1px rgba(84,11,10,.35)); transform-origin: 50% 100%; }
.summit-champion { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: center; justify-self: center; gap: 23px; }
.summit-logo-frame { position: relative; display: grid; width: 105px; height: 105px; place-items: center; border: 4px solid #f6d278; border-radius: 26px; background: #fff; box-shadow: 0 0 0 6px rgba(255,225,137,.17), 0 12px 28px rgba(65,7,7,.3); will-change: transform; }
.summit-logo-frame::before, .summit-logo-frame::after { content: ""; position: absolute; top: 24px; width: 25px; height: 60px; border: 2px solid #edc65f; border-top: 0; border-bottom: 0; opacity: .8; }
.summit-logo-frame::before { left: -24px; border-radius: 80% 0 0 80%; transform: rotate(-16deg); }
.summit-logo-frame::after { right: -24px; border-radius: 0 80% 80% 0; transform: rotate(16deg); }
.summit-logo-frame img { width: 82px; height: 82px; border-radius: 19px; object-fit: contain; }
.summit-crown { position: absolute; z-index: 3; top: 4px; left: calc(50% + 4px); width: 31px; height: 31px; color: #ffe49a; filter: drop-shadow(0 4px 4px rgba(89,10,7,.36)); will-change: transform; }
.summit-champion-copy { display: grid; min-width: 0; gap: 7px; }
.summit-champion-copy strong { color: #ffeaa6; font-size: clamp(28px,2.7vw,42px); letter-spacing: .05em; line-height: 1; text-shadow: 0 2px 8px rgba(62,5,4,.34); }
.summit-champion-copy span { overflow: hidden; color: #fff; font-size: clamp(15px,1.45vw,23px); font-weight: 750; text-overflow: ellipsis; text-shadow: 0 2px 6px rgba(62,5,4,.3); white-space: nowrap; }
.summit-spark { position: absolute; z-index: 2; width: 5px; height: 5px; border-radius: 50%; background: #ffdc73; box-shadow: 0 0 12px #ffdc73; opacity: .7; will-change: transform, opacity; }
.summit-spark.spark-one { left: 31%; top: 27%; }.summit-spark.spark-two { right: 12%; top: 21%; }.summit-spark.spark-three { right: 29%; bottom: 20%; }
.summit-countdown { position: relative; display: grid; min-height: 64px; padding: 0 clamp(22px,3vw,44px); overflow: hidden; grid-template-columns: minmax(260px,1fr) auto minmax(450px,1.2fr); align-items: center; gap: 28px; color: #5a302d; background: rgba(255,252,250,.95); }
.summit-date, .countdown-label { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.summit-date svg, .countdown-label svg { width: 18px; height: 18px; color: var(--coral-deep); }
.summit-date span, .countdown-label span { color: #785653; font-size: 11px; }
.summit-date strong { color: #442421; font-size: 12px; }
.countdown-values { position: relative; z-index: 2; display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.countdown-values > span { margin-right: 8px; color: #785653; font-size: 11px; }
.countdown-values strong { min-width: 29px; color: #d93431; font-family: var(--font-number); font-size: 26px; text-align: center; font-variant-numeric: tabular-nums; line-height: 1; will-change: transform; }
.countdown-values i { color: #72504d; font-size: 10px; font-style: normal; }
.summit-wave-field { position: absolute; z-index: 0; inset: 0; opacity: .64; pointer-events: none; }
.summit-wave-field svg { width: 100%; height: 100%; }
.summit-wave { fill: none !important; stroke-linecap: round; will-change: transform; }
.summit-wave.wave-one { stroke: #f37d70; stroke-width: 1.2; stroke-dasharray: 2 6; }
.summit-wave.wave-two { stroke: #eab25f; stroke-width: 1; stroke-dasharray: 1 7; }
.summit-wave.wave-three { stroke: #f0b3ab; stroke-width: 1.2; opacity: .8; }
body.cockpit-mode .summit-banner-wrap { max-width: none; margin-bottom: 10px; }

/* 前台运营页面 */
.operation-public-page { min-height: 520px; }
.public-operation-panel { overflow: hidden; border-color: #efc7c2; border-radius: 19px; background: rgba(255,253,252,.9); box-shadow: 0 13px 34px rgba(132,49,43,.1); }
.calendar-toolbar { display: grid; min-height: 78px; padding: 13px 16px 13px 18px; grid-template-columns: minmax(210px,1fr) auto minmax(440px,1.4fr); align-items: center; gap: 18px; border-bottom: 1px solid #efccc7; background: linear-gradient(110deg,rgba(255,238,234,.9),rgba(255,255,255,.82) 52%,rgba(255,244,224,.74)); }
.calendar-toolbar-title { display: flex; min-width: 0; align-items: center; gap: 11px; }
.calendar-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid #efb8b1; border-radius: 13px; color: #d73c37; background: linear-gradient(145deg,#fff,#ffe9e5); box-shadow: 0 7px 17px rgba(215,60,55,.11); }
.calendar-icon svg { width: 21px; height: 21px; }
.calendar-toolbar-title div { display: grid; gap: 2px; }
.calendar-toolbar-title small { color: #cf4b45; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.calendar-toolbar-title strong { color: #4a2926; font-size: 19px; letter-spacing: -.02em; }
.calendar-toolbar-summary { display: flex; align-items: baseline; gap: 5px; color: #997672; white-space: nowrap; }
.calendar-toolbar-summary b { color: #d83d38; font-family: var(--font-number); font-size: 18px; }
.calendar-toolbar-summary span { font-size: 9px; }
.calendar-toolbar-summary i { width: 1px; height: 18px; margin: 0 7px; background: #e9c9c5; }
.calendar-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.calendar-step, .calendar-today-button { display: inline-flex; height: 38px; align-items: center; justify-content: center; border: 1px solid #edc6c1; border-radius: 10px; color: #b93632; background: rgba(255,255,255,.88); box-shadow: 0 5px 13px rgba(111,54,49,.07); }
.calendar-step { width: 38px; padding-bottom: 2px; font-family: Arial,sans-serif; font-size: 25px; line-height: 1; }
.calendar-today-button { padding: 0 12px; gap: 7px; font-size: 10px; font-weight: 750; }
.calendar-today-button svg { width: 15px; height: 15px; }
.calendar-step:hover, .calendar-today-button:hover { border-color: #e98981; color: #fff; background: linear-gradient(135deg,#f26159,#d83b37); transform: translateY(-1px); }
.calendar-month-picker { position: relative; display: flex; height: 38px; align-items: center; border: 1px solid #edc6c1; border-radius: 10px; color: #8a605d; background: #fff; overflow: hidden; }
.calendar-month-picker span { padding-left: 11px; font-size: 9px; white-space: nowrap; }
.calendar-month-picker input { width: 140px; height: 36px; padding: 0 9px; border: 0; border-radius: 0; color: #4c2c29; background: transparent; font-family: var(--font-number); font-size: 11px; }
.calendar-scroll { width: 100%; overflow-x: auto; background: rgba(255,255,255,.55); }
.calendar-weekdays, .calendar-grid { display: grid; min-width: 980px; grid-template-columns: repeat(7,minmax(140px,1fr)); }
.calendar-weekdays { min-height: 38px; border-bottom: 1px solid #edcfca; background: rgba(255,244,242,.78); }
.calendar-weekdays span { display: grid; place-items: center; border-right: 1px solid #f1d9d5; color: #744a46; font-size: 10px; font-weight: 800; }
.calendar-weekdays span:last-child { border-right: 0; }
.calendar-day { position: relative; min-height: 116px; padding: 8px 8px 7px; border-right: 1px solid #f0dcd8; border-bottom: 1px solid #f0dcd8; background: linear-gradient(155deg,rgba(255,255,255,.88),rgba(255,249,247,.72)); }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:nth-last-child(-n+7) { border-bottom: 0; }
.calendar-day.is-outside { background: rgba(250,246,245,.7); }
.calendar-day.is-outside > header, .calendar-day.is-outside .calendar-events { opacity: .34; }
.calendar-day > header { display: flex; height: 28px; align-items: center; justify-content: space-between; }
.calendar-day > header time { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: #4b3431; font-family: var(--font-number); font-size: 12px; font-weight: 750; }
.calendar-day > header span { color: #cc433d; font-size: 8px; font-weight: 800; }
.calendar-day.is-today > header time { color: #fff5d6; background: linear-gradient(145deg,#ed5049,#b71f20); box-shadow: 0 0 0 3px rgba(235,76,69,.12),0 5px 10px rgba(174,35,34,.2); }
.calendar-day.has-events { background: radial-gradient(circle at 88% 10%,rgba(255,206,123,.13),transparent 31%),linear-gradient(155deg,#fff,#fff8f6); }
.calendar-events { display: grid; gap: 4px; margin-top: 3px; }
.calendar-event { position: relative; display: grid; min-height: 29px; padding: 5px 7px 5px 10px; overflow: hidden; gap: 1px; border: 1px solid transparent; border-radius: 7px; isolation: isolate; }
.calendar-event::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 0 3px 3px 0; background: currentColor; box-shadow: 0 0 7px currentColor; }
.calendar-event strong, .calendar-event small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event strong { color: currentColor; font-size: 8.5px; }
.calendar-event small { color: #987974; font-size: 7px; }
.calendar-event.tone-coral { color: #c83733; border-color: rgba(216,61,56,.09); background: rgba(255,232,228,.72); }
.calendar-event.tone-gold { color: #a56d0a; border-color: rgba(212,157,47,.1); background: rgba(255,246,222,.82); }
.calendar-event.tone-blue { color: #315fb0; border-color: rgba(63,105,180,.09); background: rgba(232,240,255,.82); }
.calendar-event.tone-green { color: #2f7e59; border-color: rgba(54,142,99,.09); background: rgba(232,247,238,.86); }
.calendar-more { padding: 2px 5px; color: #a6817c; font-size: 7px; font-weight: 700; }
.calendar-footer { display: flex; min-height: 42px; padding: 9px 15px; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #efd6d2; color: #967672; background: rgba(255,249,247,.86); font-size: 9px; }
.calendar-footer span { display: inline-flex; align-items: center; gap: 7px; }
.calendar-footer span i { width: 6px; height: 6px; border-radius: 50%; background: #37ad79; box-shadow: 0 0 0 4px rgba(55,173,121,.08); }
.calendar-footer strong { color: #c34640; font-size: 9px; }

/* 彩光卡片与点击波纹 */
.motion-card { position: relative; transform-style: flat; backface-visibility: visible; }
.motion-card::after { display: none; }
.motion-chip { position: relative; transition: transform .22s ease,box-shadow .22s ease,filter .22s ease; }
.motion-chip:hover { transform: translateY(-1px); filter: saturate(1.08); box-shadow: 0 7px 16px rgba(155,58,50,.12); }
.card-ripple { position: absolute; z-index: 5; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: radial-gradient(circle,rgba(255,238,174,.72),rgba(255,105,96,.18) 55%,transparent 70%); pointer-events: none; transform-origin: 50% 50%; }
.priority-badge, .operation-status { display: inline-flex; min-height: 25px; padding: 0 9px; align-items: center; justify-content: center; border-radius: 8px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.priority-高 { color: #b84a15; background: #fff0cd; }.priority-中 { color: #a36f18; background: #fff7df; }.priority-低 { color: #3c805e; background: #e9f6ef; }
.operation-status.is-pending { color: #c84a45; background: #ffe8e5; }.operation-status.is-progress { color: #315eb2; background: #e8efff; }.operation-status.is-complete { color: #2c8058; background: #e7f5ed; }

/* 数据驾驶舱 */
body.cockpit-mode .workspace { background: #fff3f1; }
body.cockpit-mode .page-content { max-width: none; padding: 10px 12px 14px; }
body.cockpit-mode .view-panel { max-width: none; }
.cockpit-shell { position: relative; min-height: calc(100vh - 88px); padding: 18px; overflow: hidden; border: 1px solid #7a2929; border-radius: 17px; color: #f9dfda; background:
  radial-gradient(circle at 50% 38%, rgba(135,24,26,.42), transparent 25%),
  linear-gradient(rgba(255,78,71,.025) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,78,71,.025) 1px, transparent 1px),
  linear-gradient(145deg, #19090d 0%, #26080f 55%, #14080b 100%); background-size: auto, 34px 34px, 34px 34px, auto; box-shadow: inset 0 0 70px rgba(0,0,0,.5), 0 12px 30px rgba(70,12,15,.18); }
.cockpit-shell::before, .cockpit-shell::after { content: ""; position: absolute; pointer-events: none; }
.cockpit-shell::before { inset: 12px; border: 1px solid rgba(255,82,75,.12); clip-path: polygon(0 0, 15% 0, 17% 2px, 83% 2px, 85% 0, 100% 0, 100% 100%, 0 100%); }
.cockpit-shell::after { top: 63px; left: 50%; width: 42%; height: 1px; background: linear-gradient(90deg, transparent, #ff584f, transparent); transform: translateX(-50%); box-shadow: 0 0 14px #ff584f; }
.cockpit-header { position: relative; z-index: 1; display: flex; min-height: 62px; padding: 0 10px 12px; align-items: flex-start; justify-content: center; text-align: center; }
.cockpit-header h1 { margin: 0; color: #fff2e9; font-size: clamp(27px, 2.35vw, 39px); font-weight: 900; letter-spacing: .08em; line-height: 1.05; text-shadow: 0 2px 0 #7d291f, 0 0 22px rgba(255,97,74,.28); }
.cockpit-header p { margin: 8px 0 0; color: #f2c760; font-size: 13px; letter-spacing: .17em; }
.cockpit-header > span { position: absolute; right: 8px; top: 6px; display: inline-flex; align-items: center; gap: 6px; color: #c9948d; font-family: var(--font-number); font-size: 10px; }
.cockpit-header > span i { width: 6px; height: 6px; border-radius: 50%; background: #ff5f56; box-shadow: 0 0 10px #ff5f56; }
.cockpit-kpis { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 12px; }
.cockpit-kpi { position: relative; min-height: 76px; padding: 12px 16px; overflow: hidden; border: 1px solid #7f302d; border-radius: 12px; background: linear-gradient(145deg, rgba(67,18,23,.92), rgba(29,9,13,.9)); box-shadow: inset 0 0 20px rgba(255,74,67,.04); }
.cockpit-kpi::before { content: ""; position: absolute; left: -1px; top: 13px; width: 3px; height: 31px; border-radius: 2px; background: #ff5b52; box-shadow: 0 0 11px #ff5b52; }
.cockpit-kpi > span { color: #d9aaa4; font-size: 11px; }
.cockpit-kpi div { display: flex; margin-top: 2px; align-items: baseline; gap: 6px; }
.cockpit-kpi strong { color: #ff6259; font-family: var(--font-number); font-size: 29px; letter-spacing: .02em; line-height: 1; font-variant-numeric: tabular-nums; }
.cockpit-kpi.gold strong { color: #f6bd43; }
.cockpit-kpi b { color: #c89992; font-size: 10px; }
.cockpit-kpi > i { position: absolute; right: 13px; bottom: 12px; width: 38px; height: 12px; border-top: 1px solid rgba(255,91,82,.45); border-bottom: 1px solid rgba(255,91,82,.2); transform: skewX(-28deg); }
.cockpit-main-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .98fr) minmax(0, 1fr); gap: 12px; min-height: 300px; }
.cockpit-panel { position: relative; overflow: hidden; border: 1px solid #71302e; border-radius: 13px; background: linear-gradient(155deg, rgba(44,12,18,.94), rgba(20,7,10,.93)); box-shadow: inset 0 0 28px rgba(255,70,63,.035); }
.cockpit-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,94,85,.8), transparent); }
.cockpit-panel-title { padding: 15px 15px 7px; }
.cockpit-panel-title span { color: #e75a52; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.cockpit-panel-title h2 { margin: 3px 0 0; color: #f9ded8; font-size: 16px; }
.cockpit-panel-title.horizontal { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cockpit-panel-title small, .cockpit-panel-title a { color: #a87772; font-size: 9px; text-decoration: none; }
.cockpit-bars { display: grid; gap: 13px; padding: 17px 15px 15px; }
.cockpit-bar-row { display: grid; grid-template-columns: 25px minmax(92px, .72fr) minmax(70px, 1fr) 50px; align-items: center; gap: 9px; }
.combat-rank { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid #70413c; border-radius: 50%; color: #c59b95; font-family: var(--font-number); font-size: 9px; }
.combat-rank.rank-1 { border-color: #f3b83c; color: #2d1800; background: #f3b83c; box-shadow: 0 0 10px rgba(243,184,60,.24); }
.combat-rank.rank-2 { color: #302f31; background: #c6c8ca; }
.combat-rank.rank-3 { color: #351b0e; background: #cd7542; }
.cockpit-bar-row label { overflow: hidden; color: #e5c5c0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.combat-track { height: 7px; overflow: hidden; border: 1px solid #6c302f; border-radius: 99px; background: rgba(8,3,5,.8); }
.combat-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d72e31, #ff6b5e); box-shadow: 0 0 10px #f24a43; transition: width .45s ease; }
.cockpit-bar-row strong { color: #ff8b7d; font-family: var(--font-number); font-size: 11px; text-align: right; }
.combat-ring-panel { position: relative; display: grid; min-height: 300px; place-items: center; align-content: center; }
.combat-ring-panel::before { content: ""; position: absolute; inset: 8% 4%; background: radial-gradient(circle, rgba(255,76,67,.12), transparent 58%); filter: blur(4px); }
.ring-caption { position: absolute; top: 3px; left: 50%; color: #f5d7d0; font-size: 15px; font-weight: 800; letter-spacing: .08em; transform: translateX(-50%); }
.command-ring { --ring-progress: 0deg; position: relative; display: grid; width: 222px; height: 222px; place-items: center; border-radius: 50%; background: conic-gradient(from -90deg, #ff5f55 0 var(--ring-progress), rgba(114,43,40,.32) var(--ring-progress) 360deg); box-shadow: 0 0 30px rgba(255,72,63,.18); }
.command-ring::before { content: ""; position: absolute; inset: 11px; border: 1px solid #973d38; border-radius: 50%; background: radial-gradient(circle, #260b10 0 58%, #13070a 59%); box-shadow: inset 0 0 28px rgba(0,0,0,.65), 0 0 0 5px #1c090d; }
.ring-ticks { position: absolute; inset: -12px; border: 1px dashed rgba(255,104,91,.45); border-radius: 50%; animation: orbit 30s linear infinite; }
.ring-ticks::before, .ring-ticks::after { content: ""; position: absolute; inset: 9px; border: 1px dotted rgba(245,181,62,.25); border-radius: 50%; }
.ring-ticks::after { inset: -7px; border-color: rgba(255,91,82,.16); }
@keyframes orbit { to { transform: rotate(360deg); } }
.ring-core { position: relative; z-index: 1; display: grid; justify-items: center; }
.ring-core > span { color: #d5aaa3; font-size: 11px; }
.ring-core > strong { margin: 4px 0; color: #ff5c52; font-family: var(--font-number); font-size: 40px; line-height: 1; text-shadow: 0 0 15px rgba(255,82,72,.3); }
.ring-core p { margin: 0; color: #c6958e; font-family: var(--font-number); font-size: 13px; }
.ring-core p b { color: #f4c25b; }
.ring-foot { position: absolute; left: 50%; bottom: 0; display: flex; gap: 28px; transform: translateX(-50%); white-space: nowrap; }
.ring-foot span { color: #a77c76; font-size: 9px; }
.ring-foot b { display: block; margin-top: 1px; color: #f2b944; font-family: var(--font-number); font-size: 14px; text-align: center; }
.ring-foot span:last-child b { color: #ff5f55; }
.cockpit-contributions { display: grid; gap: 13px; padding: 10px 15px 15px; }
.contribution-row { display: grid; grid-template-columns: 28px 1fr 77px; align-items: center; gap: 10px; }
.contribution-row > span { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #8a3835; border-radius: 50%; color: #ff796d; font-family: var(--font-number); font-size: 8px; }
.contribution-row > div { display: grid; gap: 5px; }
.contribution-row label { color: #e3c4be; font-size: 10px; }
.contribution-row > strong { color: #ff927f; font-family: var(--font-number); font-size: 12px; text-align: right; }
.contribution-row small { display: block; color: #936c67; font-size: 8px; font-weight: 500; }
.cockpit-bottom-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 12px; min-height: 275px; margin-top: 12px; }
.cockpit-table-wrap { margin: 0 12px 12px; overflow: auto; border: 1px solid #49201f; border-radius: 8px; }
.cockpit-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.cockpit-table th { height: 27px; padding: 0 8px; border-color: #512322; color: #c38e87; background: rgba(61,20,23,.82); font-size: 8px; }
.cockpit-table td { height: 25px; padding: 3px 8px; border-color: #3c1b1b; color: #dcbdb7; background: rgba(16,6,8,.42); font-family: var(--font-number); font-size: 8.5px; }
.cockpit-table tbody tr:hover td { background: rgba(103,28,29,.28); }
.cockpit-table td:nth-child(n+3) { text-align: right; }
.cockpit-table td b { color: #f2b943; }
.matrix-rank { color: #ff7065; }
.matrix-company { display: flex; min-width: 180px; align-items: center; gap: 6px; }
.matrix-company img { width: 19px; height: 19px; padding: 2px; border-radius: 5px; background: #fff; object-fit: contain; }
.matrix-company span { overflow: hidden; color: #ead0cb; font-family: var(--font-body); text-overflow: ellipsis; white-space: nowrap; }
/* 管理后台 */
.admin-content .view-panel { max-width: 1300px; }
.admin-panel, .add-company-panel { padding: 18px; }
.section-header { display: flex; margin-bottom: 16px; align-items: flex-start; justify-content: space-between; gap: 14px; }
.section-header span { color: var(--coral-deep); font-size: 9px; font-weight: 750; letter-spacing: .13em; }
.section-header h2 { margin: 3px 0 0; color: var(--ink); font-size: 17px; }
.entry-hint { display: flex; margin: -2px -2px 14px; padding: 10px 12px; align-items: center; gap: 12px; border-radius: 10px; background: #fff6dc; }
.entry-hint strong { color: #7c5c18; font-size: 11px; }
.entry-hint span { color: #896e35; font-size: 10px; }
.entry-hint em { margin-left: auto; color: #a88c54; font-size: 10px; font-style: normal; }
.entry-hint em.is-saved { color: var(--green); }
.entry-table, .company-admin-table { min-width: 920px; }
.entry-table td:first-child { min-width: 255px; }
.entry-input, .company-input, .rule-form-grid input, .threshold-control input { width: 82px; height: 33px; padding: 0 9px; border: 1px solid #ead9b3; border-radius: 8px; outline: 0; color: #5a4214; background: #fff8df; font-family: var(--font-number); text-align: right; }
.entry-input:focus, .company-input:focus { border-color: #d6ae51; box-shadow: 0 0 0 3px rgba(214,174,81,.12); }
.entry-preview { color: #9b6b13; font-family: var(--font-number); }
.rules-admin-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.rule-form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.rule-form-grid label { display: grid; grid-template-columns: 1fr 74px 48px; min-height: 47px; padding: 8px 11px; align-items: center; gap: 8px; border: 1px solid var(--line-soft); border-radius: 10px; color: #604542; background: #fffaf9; font-size: 11px; }
.rule-form-grid label span { color: var(--muted); font-size: 10px; }
.rule-form-grid input { width: 74px; border-color: var(--line); color: var(--ink); background: #fff; }
.rule-note { margin: 14px 2px 0; color: var(--muted); font-size: 10px; }
.threshold-control { display: flex; min-height: 56px; padding: 11px; align-items: center; gap: 9px; border-radius: 10px; color: #604542; background: #fffaf9; font-size: 11px; }
.threshold-control input { border-color: var(--line); color: var(--ink); background: #fff; }
.poster-link { display: inline-block; margin: 14px 2px 0; color: var(--coral-deep); font-size: 11px; text-decoration: none; }
.add-company-panel { margin-bottom: 16px; }
.add-company-form { display: grid; grid-template-columns: 1.5fr .65fr .85fr auto; align-items: end; gap: 12px; }
.add-company-form label, .settings-form label, .notice-editor label { display: grid; gap: 6px; color: #6a4e4b; font-size: 10px; }
input, select, textarea { border: 1px solid var(--line); border-radius: 9px; outline: 0; color: #553a38; background: #fff; }
input, select { height: 38px; padding: 0 11px; }
textarea { padding: 10px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #e98e87; box-shadow: 0 0 0 3px rgba(239,85,79,.09); }
.company-admin-table td:nth-child(2) { min-width: 320px; }
.company-admin-table .company-input.name { width: 260px; color: #543936; background: #fff; text-align: left; }
.company-admin-table .company-input.target { width: 110px; border-color: var(--line); color: #543936; background: #fff; }
.logo-select { width: 170px; height: 32px; font-size: 10px; }
.logo-control { display: flex; min-width: 245px; align-items: center; gap: 7px; }
.logo-control .logo-select { flex: 1 1 auto; min-width: 0; }
.logo-upload-button { display: inline-flex; height: 32px; padding: 0 10px; align-items: center; justify-content: center; border: 1px solid #e6b9b4; border-radius: 8px; color: var(--coral-deep); background: #fff7f4; font-size: 10px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.logo-upload-button:hover { border-color: #dc7c75; background: #ffe9e5; }
.logo-upload-button input { display: none; }
.logo-upload-input { height: auto; padding: 5px 0 0; border: 0; background: transparent; font-size: 10px; }
.switch { position: relative; display: inline-block; width: 39px; height: 22px; }
.switch input { width: 0; height: 0; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #d8c9c7; transition: .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(74,38,35,.2); transition: .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(17px); }
.notice-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 16px; }
.notice-editor form { display: grid; gap: 12px; }
.notice-list { display: grid; gap: 9px; }
.notice-item { display: grid; grid-template-columns: 1fr auto; padding: 12px 13px; gap: 4px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fffaf9; }
.notice-item strong { color: #553a38; font-size: 12px; }
.notice-item time { color: var(--muted); font-size: 9px; }
.notice-item p { grid-column: 1/-1; margin: 3px 0 0; color: #806461; font-size: 10px; }
.notice-type { display: inline-flex; margin-right: 7px; padding: 3px 7px; align-items: center; border-radius: 7px; color: var(--coral-deep); background: #ffe8e5; font-size: 9px; }
.settings-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.settings-form { display: grid; gap: 12px; }
.data-maintenance p { color: var(--muted); font-size: 11px; }
.danger-button { min-height: 34px; padding: 0 12px; border: 1px solid #f2c4c0; border-radius: 9px; color: #bd3432; background: #fff3f1; font-size: 10px; }
.danger-button:hover { background: #ffe5e2; }
.operation-admin-mount { display: grid; gap: 16px; }
.operation-form-panel { padding: 17px 18px; }
.operation-date-guide { display: flex; min-height: 50px; margin: -2px 0 14px; padding: 9px 12px; align-items: center; gap: 10px; border: 1px solid #f0cbc5; border-radius: 12px; background: linear-gradient(100deg,#fff0ed,#fffaf1 55%,#fff); }
.operation-date-guide > span { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(145deg,#f1625b,#d83a36); box-shadow: 0 6px 12px rgba(210,56,52,.17); }
.operation-date-guide svg { width: 16px; height: 16px; }
.operation-date-guide > div { display: grid; gap: 2px; }.operation-date-guide strong { color: #673c38; font-size: 11px; }.operation-date-guide small { color: #9b7773; font-size: 9px; }
.operation-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 14px; }
.operation-form-fields { display: grid; grid-template-columns: repeat(5,minmax(120px,1fr)); gap: 12px; align-items: end; }
.operation-form-fields label { display: grid; gap: 6px; color: #654845; font-size: 10px; }
.operation-form-fields input, .operation-form-fields select { width: 100%; }
.operation-form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.operation-form-actions .secondary-button { min-width: 130px; }
.operation-table-panel { padding: 0; overflow: hidden; }
.operation-admin-toolbar { display: flex; min-height: 57px; padding: 12px 16px; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); background: #fffaf9; }
.operation-admin-toolbar > div { display: flex; align-items: baseline; gap: 9px; }.operation-admin-toolbar span { color: var(--coral-deep); font-size: 10px; font-weight: 800; }.operation-admin-toolbar strong { color: #513633; font-size: 13px; }
.operation-admin-toolbar small { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }.operation-admin-toolbar small i { width: 7px; height: 7px; border-radius: 50%; background: #37ad79; box-shadow: 0 0 0 4px rgba(55,173,121,.08); }
.operation-admin-table { width: 100%; min-width: 920px; border-collapse: separate; border-spacing: 0; }
.operation-admin-table td { height: 50px; }
.operation-admin-table tbody tr:hover td { background: #fff8f7; }
.inline-status { width: 90px; height: 31px; padding: 0 8px; border: 0; border-radius: 8px; font-size: 9px; font-weight: 750; }
.inline-status.is-pending { color: #c84a45; background: #ffe8e5; }.inline-status.is-progress { color: #315eb2; background: #e8efff; }.inline-status.is-complete { color: #2c8058; background: #e7f5ed; }
.row-actions { display: flex; gap: 7px; }.row-actions button { min-height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: #72514e; background: #fff; font-size: 9px; }.row-actions button:hover { border-color: #e9968f; color: var(--coral-deep); }.row-actions button.danger { color: #c33c38; background: #fff4f2; }
.empty-state { display: grid; min-height: 130px; place-items: center; color: var(--muted); font-size: 11px; text-align: center; }
.toast { position: fixed; left: calc(50% + var(--sidebar-width)/2); bottom: 26px; z-index: 80; padding: 11px 16px; border-radius: 10px; color: #fff; background: rgba(67,31,29,.94); box-shadow: 0 10px 24px rgba(72,34,31,.2); opacity: 0; pointer-events: none; transform: translate(-50%,20px); font-size: 11px; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }

/* 全局可读性与全宽内容规范 */
.page-content { padding: 16px 12px 36px; }
.view-panel, .admin-content .view-panel { width: 100%; max-width: none; }
.summit-banner-wrap { width: 100%; max-width: none; margin: 0 0 18px; }
body.cockpit-mode .page-content { padding: 12px 12px 22px; }
.brand-block img, .admin-sidebar .brand-block img { width: 72px; height: 72px; }
.brand-block img.brand-switch-logo {
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
}
.brand-switch-logo { cursor: pointer; user-select: none; -webkit-user-drag: none; touch-action: manipulation; }
.brand-switch-logo:focus-visible { outline: 3px solid rgba(255,226,137,.92); outline-offset: 5px; }
.logo-text-badge {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid rgba(255,232,173,.75);
  border-radius: 16px;
  color: #fff5d2;
  background: linear-gradient(145deg, #d92b28, #8d1214);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 18px rgba(85,12,12,.18);
}
.login-logo-badge {
  display: block;
  width: 78px;
  height: 78px;
  border: 3px solid rgba(255,232,173,.85);
  border-radius: 18px;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(36, 90, 138, .16);
}
.season-card { margin-top: auto; }
.topbar-page strong { font-size: 15px; }
.topbar-page span, .sync-indicator, .live-clock { font-size: 12px; }
.live-clock b { font-size: 14px; }
.outline-button, .primary-button, .secondary-button { min-height: 43px; padding-inline: 16px; font-size: 13px; }
.page-heading { min-height: 76px; margin-bottom: 15px; }
.page-heading h1 { font-size: 32px; }
.page-heading p { margin-top: 7px; font-size: 14px; line-height: 1.6; }
.live-status { font-size: 12px; }
.kpi-grid { gap: 16px; margin-bottom: 16px; }
.kpi-card { min-height: 96px; padding: 16px 20px; }
.kpi-icon { width: 49px; height: 49px; }
.kpi-icon svg { width: 26px; height: 26px; }
.kpi-card div > span { font-size: 13px; }
.kpi-card strong { font-size: 30px; }
.public-toolbar { margin-bottom: 12px; }
.public-tabs button { min-width: 136px; height: 41px; font-size: 14px; }
.search-field { width: 280px; height: 42px; }
.search-field input { font-size: 13px; }
th { height: 44px; padding-inline: 16px; font-size: 12px; }
td { height: 50px; padding: 6px 16px; font-size: 13px; }
.ranking-table { min-width: 980px; }
.company-cell { min-width: 300px; gap: 11px; }
.company-avatar { width: 34px; height: 34px; border-radius: 9px; }
.company-name { font-size: 13px; }
.progress-cell { min-width: 290px; }
.progress-track { height: 8px; }
.progress-value { width: 58px; font-size: 13px; }
.table-footer { min-height: 44px; padding: 13px 16px; font-size: 12px; }
.process-title h2 { font-size: 21px; }
.process-title span, .process-step small { font-size: 12px; }
.process-step strong { font-size: 21px; }
.process-step p { font-size: 11px; }
.calendar-toolbar { min-height: 88px; }
.calendar-toolbar-title small { font-size: 11px; }
.calendar-toolbar-title strong { font-size: 22px; }
.calendar-toolbar-summary span { font-size: 11px; }
.calendar-step, .calendar-today-button, .calendar-month-picker { height: 42px; }
.calendar-today-button, .calendar-month-picker span, .calendar-month-picker input { font-size: 12px; }
.calendar-weekdays { min-height: 44px; }
.calendar-weekdays span { font-size: 12px; }
.calendar-day { min-height: 132px; padding: 10px; }
.calendar-day > header { height: 32px; }
.calendar-day > header time { width: 30px; height: 30px; font-size: 14px; }
.calendar-day > header span { font-size: 10px; }
.calendar-event { min-height: 36px; padding: 6px 8px 6px 11px; }
.calendar-event strong { font-size: 11px; }
.calendar-event small, .calendar-more { font-size: 9px; }
.calendar-footer { min-height: 48px; padding: 11px 16px; font-size: 11px; }
.calendar-footer strong { font-size: 11px; }

/* 驾驶舱可读性 */
.cockpit-shell { padding: 20px; }
.cockpit-header { min-height: 76px; }
.cockpit-header h1 { font-size: clamp(34px,2.55vw,44px); }
.cockpit-header p { font-size: 15px; }
.cockpit-header > span { font-size: 12px; }
.cockpit-kpis { gap: 14px; margin-bottom: 14px; }
.cockpit-kpi { min-height: 92px; padding: 15px 19px; }
.cockpit-kpi > span { font-size: 13px; }
.cockpit-kpi strong { font-size: 34px; }
.cockpit-kpi b { font-size: 12px; }
.cockpit-main-grid { min-height: 340px; gap: 14px; }
.cockpit-panel-title { padding: 18px 18px 10px; }
.cockpit-panel-title span { font-size: 12px; }
.cockpit-panel-title h2 { font-size: 20px; }
.cockpit-panel-title small, .cockpit-panel-title a { font-size: 12px; }
.cockpit-bars { gap: 16px; padding: 18px; }
.cockpit-bar-row { grid-template-columns: 30px minmax(150px,.82fr) minmax(100px,1fr) 58px; gap: 11px; }
.combat-rank { width: 28px; height: 28px; font-size: 11px; }
.cockpit-bar-row label { font-size: 12px; }
.cockpit-bar-row strong { font-size: 13px; }
.combat-track { height: 9px; }
.ring-caption { font-size: 18px; }
.ring-core > span { font-size: 13px; }
.ring-core > strong { font-size: 45px; }
.ring-core p { font-size: 15px; }
.ring-foot span { font-size: 11px; }
.ring-foot b { font-size: 16px; }
.cockpit-contributions { gap: 16px; padding: 14px 18px 18px; }
.contribution-row { grid-template-columns: 32px 1fr 92px; gap: 12px; }
.contribution-row > span { width: 31px; height: 31px; font-size: 10px; }
.contribution-row label { font-size: 12px; }
.contribution-row > strong { font-size: 14px; }
.contribution-row small { font-size: 10px; }
.cockpit-bottom-grid { margin-top: 14px; }
.cockpit-table-wrap { margin: 0 14px 14px; border-radius: 10px; }
.cockpit-table { min-width: 900px; }
.cockpit-table th { height: 40px; padding: 0 12px; font-size: 12.5px; }
.cockpit-table td { height: 42px; padding: 7px 12px; font-size: 13.5px; }
.matrix-company { min-width: 280px; gap: 9px; }
.matrix-company img { width: 27px; height: 27px; padding: 3px; border-radius: 7px; }

/* 管理后台可读性 */
.admin-panel, .add-company-panel { padding: 22px; }
.section-header span { font-size: 11px; }
.section-header h2 { font-size: 20px; }
.entry-hint strong, .entry-hint span, .entry-hint em { font-size: 12px; }
.entry-table, .company-admin-table { min-width: 1080px; }
.entry-table td:first-child { min-width: 320px; }
.entry-input, .company-input, .rule-form-grid input, .threshold-control input { height: 38px; font-size: 13px; }
.rule-form-grid label, .threshold-control { font-size: 13px; }
.rule-form-grid label span, .rule-note { font-size: 12px; }
.poster-link, .add-company-form label, .settings-form label, .notice-editor label { font-size: 12px; }
input, select, textarea { font-size: 13px; }
input, select { height: 42px; }
.logo-select { height: 38px; font-size: 12px; }
.logo-upload-button { height: 38px; font-size: 12px; }
.logo-upload-input { font-size: 12px; }
.notice-item strong { font-size: 14px; }
.notice-item time, .notice-type { font-size: 11px; }
.notice-item p, .data-maintenance p { font-size: 12px; }
.danger-button { min-height: 38px; font-size: 12px; }
.operation-date-guide strong { font-size: 13px; }
.operation-date-guide small, .operation-form-fields label { font-size: 12px; }
.operation-admin-toolbar span, .operation-admin-toolbar small { font-size: 11px; }
.operation-admin-toolbar strong { font-size: 15px; }
.operation-admin-table { min-width: 1080px; }
.operation-admin-table td { height: 58px; }
.inline-status { height: 35px; font-size: 11px; }
.row-actions button { min-height: 32px; padding-inline: 11px; font-size: 11px; }
.empty-state, .toast { font-size: 13px; }

/* 长辈可读字号：仅放大桌面端的文字层级与对应承载空间，不改变业务结构 */
@media (min-width: 921px) {
  body { font-size: 20px; }

  /* 左侧导航与顶部状态 */
  .brand-block span { font-size: 14px; line-height: 1.5; }
  .nav-label { font-size: 12px; }
  .nav-item { min-height: 60px; padding-inline: 12px; gap: 10px; font-size: 20px; line-height: 1.35; }
  .nav-item svg { width: 23px; height: 23px; }
  .nav-count { width: 23px; height: 23px; font-size: 13px; }
  .admin-sidebar .nav-item { min-height: 45px; font-size: 15px; }
  .admin-sidebar .nav-item svg { width: 20px; height: 20px; }
  .admin-sidebar .nav-menu { gap: 3px; }
  .season-card { padding: 16px; }
  .season-card svg { width: 20px; height: 20px; }
  .season-card strong { font-size: 18px; }
  .season-card span { font-size: 18px; line-height: 1.5; }
  .admin-sidebar .season-card { padding: 13px 12px; }
  .admin-sidebar .season-card strong { font-size: 16px; }
  .admin-sidebar .season-card span { font-size: 16px; }
  .topbar { height: 78px; }
  .topbar-page { gap: 3px; }
  .topbar-page strong { font-size: 20px; }
  .topbar-page span, .sync-indicator, .live-clock { font-size: 16px; }
  .live-clock { height: 46px; }
  .live-clock b { min-width: 76px; font-size: 18px; }
  .outline-button, .primary-button, .secondary-button { min-height: 52px; padding-inline: 20px; font-size: 18px; }
  .outline-button svg, .primary-button svg, .secondary-button svg { width: 20px; height: 20px; }

  /* 公示页通用标题、指标与排行表 */
  .page-heading { min-height: 102px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 40px; line-height: 1.18; }
  .page-heading p { margin-top: 10px; font-size: 20px; line-height: 1.65; }
  .live-status { font-size: 16px; }
  .kpi-grid { gap: 18px; margin-bottom: 18px; }
  .kpi-card { min-height: 118px; padding: 20px 22px; gap: 17px; }
  .kpi-icon { width: 58px; height: 58px; }
  .kpi-icon svg { width: 31px; height: 31px; }
  .kpi-card div { gap: 5px; }
  .kpi-card div > span { font-size: 20px; line-height: 1.35; }
  .kpi-card strong { font-size: 40px; }
  .public-toolbar { margin-bottom: 14px; }
  .public-tabs button { min-width: 166px; height: 52px; font-size: 20px; }
  .search-field { width: 350px; height: 52px; padding-inline: 17px; }
  .search-field svg { width: 21px; height: 21px; }
  .search-field input { font-size: 20px; }
  th { height: 58px; padding-inline: 20px; font-size: 18px; line-height: 1.4; }
  td { height: 70px; padding: 10px 20px; font-size: 20px; line-height: 1.45; }
  .ranking-table { min-width: 1320px; }
  .company-cell { min-width: 390px; gap: 14px; }
  .company-avatar { width: 44px; height: 44px; }
  .company-name { font-size: 20px; }
  .rank-award strong { font-size: 18px; }
  .rank-award small { font-size: 16px; }
  .rank-badge { width: 38px; height: 38px; font-size: 16px; }
  .rank-standard .rank-badge { top: 1px; }
  .progress-cell { min-width: 360px; }
  .progress-track { height: 11px; }
  .progress-value { width: 78px; font-size: 18px; }
  .table-footer { min-height: 56px; padding: 15px 20px; font-size: 16px; line-height: 1.5; }
  .priority-badge, .operation-status { min-height: 36px; padding-inline: 12px; font-size: 15px; }


  /* 日历类页面 */
  .calendar-toolbar { min-height: 104px; padding: 18px 20px; }
  .calendar-toolbar-title small { font-size: 14px; }
  .calendar-toolbar-title strong { font-size: 30px; }
  .calendar-toolbar-summary span { font-size: 17px; line-height: 1.5; }
  .calendar-step, .calendar-today-button, .calendar-month-picker { height: 52px; }
  .calendar-step { width: 52px; }
  .calendar-today-button, .calendar-month-picker span, .calendar-month-picker input { font-size: 17px; }
  .calendar-month-picker input { width: 180px; }
  .calendar-weekdays { min-height: 56px; }
  .calendar-weekdays span { font-size: 18px; }
  .calendar-day { min-height: 172px; padding: 13px; }
  .calendar-day > header { height: 42px; }
  .calendar-day > header time { width: 38px; height: 38px; font-size: 19px; }
  .calendar-day > header span { font-size: 15px; }
  .calendar-event { min-height: 52px; padding: 9px 11px 9px 14px; }
  .calendar-event strong { font-size: 18px; line-height: 1.35; }
  .calendar-event small, .calendar-more { font-size: 15px; line-height: 1.4; }
  .calendar-footer { min-height: 62px; padding: 14px 20px; font-size: 17px; line-height: 1.5; }
  .calendar-footer strong { font-size: 17px; }

  /* 数据驾驶舱，包括“赛程执行” */
  .cockpit-shell { padding: 22px; }
  .cockpit-header { min-height: 88px; }
  .cockpit-header h1 { font-size: clamp(40px,2.8vw,50px); }
  .cockpit-header p { font-size: 20px; line-height: 1.5; }
  .cockpit-header > span { font-size: 16px; }
  .cockpit-kpis { gap: 16px; margin-bottom: 16px; }
  .cockpit-kpi { min-height: 104px; padding: 18px 21px; }
  .cockpit-kpi > span { font-size: 20px; }
  .cockpit-kpi strong { font-size: 42px; }
  .cockpit-kpi b { font-size: 16px; }
  .cockpit-main-grid { min-height: 390px; gap: 16px; }
  .cockpit-panel-title { padding: 20px 20px 12px; }
  .cockpit-panel-title span { font-size: 17px; }
  .cockpit-panel-title h2 { font-size: 28px; }
  .cockpit-panel-title small, .cockpit-panel-title a { font-size: 16px; }
  .cockpit-bars { gap: 18px; padding: 20px; }
  .cockpit-bar-row { grid-template-columns: 38px minmax(210px,.9fr) minmax(120px,1fr) 74px; gap: 14px; }
  .combat-rank { width: 36px; height: 36px; font-size: 15px; }
  .cockpit-bar-row label { font-size: 18px; }
  .cockpit-bar-row strong { font-size: 18px; }
  .combat-track { height: 10px; }
  .ring-caption { font-size: 20px; }
  .ring-core > span { font-size: 17px; }
  .ring-core > strong { font-size: 52px; }
  .ring-core p { font-size: 20px; }
  .ring-foot span { font-size: 15px; }
  .ring-foot b { font-size: 20px; }
  .cockpit-contributions { gap: 18px; padding: 16px 20px 20px; }
  .contribution-row { grid-template-columns: 40px 1fr 116px; gap: 15px; }
  .contribution-row > span { width: 39px; height: 39px; font-size: 14px; }
  .contribution-row label { font-size: 18px; }
  .contribution-row > strong { font-size: 20px; }
  .contribution-row small { font-size: 15px; }
  .cockpit-table-wrap { margin: 0 16px 16px; }
  .cockpit-table { min-width: 1280px; }
  .cockpit-table th { height: 52px; padding: 0 17px; font-size: 18px; }
  .cockpit-table td { height: 60px; padding: 9px 17px; font-size: 20px; }
  .matrix-company { min-width: 380px; gap: 12px; }
  .matrix-company img { width: 36px; height: 36px; }

  /* 管理后台 */
  .admin-panel, .add-company-panel { padding: 24px; }
  .section-header span { font-size: 16px; }
  .section-header h2 { font-size: 28px; }
  .entry-hint strong, .entry-hint span, .entry-hint em { font-size: 18px; line-height: 1.5; }
  .entry-table, .company-admin-table { min-width: 1360px; }
  .entry-table td:first-child { min-width: 400px; }
  .entry-input, .company-input, .rule-form-grid input, .threshold-control input { height: 52px; font-size: 20px; }
  .rule-form-grid label, .threshold-control { min-height: 66px; font-size: 20px; }
  .rule-form-grid label span, .rule-note { font-size: 17px; line-height: 1.5; }
  .poster-link, .add-company-form label, .settings-form label, .notice-editor label { font-size: 18px; }
  input, select, textarea { font-size: 20px; line-height: 1.45; }
  input, select { height: 54px; }
  .logo-select { height: 52px; font-size: 18px; }
  .logo-upload-button { height: 52px; padding-inline: 16px; font-size: 18px; }
  .logo-upload-input { font-size: 16px; }
  .notice-item strong { font-size: 20px; }
  .notice-item time, .notice-type { font-size: 15px; }
  .notice-item p, .data-maintenance p { font-size: 18px; line-height: 1.6; }
  .danger-button { min-height: 48px; font-size: 17px; }
  .operation-date-guide { min-height: 62px; }
  .operation-date-guide strong { font-size: 20px; }
  .operation-date-guide small, .operation-form-fields label { font-size: 17px; line-height: 1.45; }
  .operation-admin-toolbar { min-height: 68px; }
  .operation-admin-toolbar span, .operation-admin-toolbar small { font-size: 16px; }
  .operation-admin-toolbar strong { font-size: 20px; }
  .operation-admin-table { min-width: 1360px; }
  .operation-admin-table td { height: 74px; }
  .inline-status { width: 116px; height: 46px; font-size: 17px; }
  .row-actions button { min-height: 44px; padding-inline: 15px; font-size: 17px; }
  .empty-state, .toast { font-size: 18px; line-height: 1.55; }

  /* AI大赢家横幅下方的日期与倒计时 */
  .summit-countdown { min-height: 72px; }
  .summit-date span, .countdown-label span, .countdown-values > span { font-size: 16px; }
  .summit-date strong { font-size: 18px; }
  .countdown-values strong { min-width: 36px; font-size: 32px; }
  .countdown-values i { font-size: 15px; }
}

/* 30px 超大可读层级：菜单独立滚动，赛程时间始终留在侧栏底部 */
@media (min-width: 921px) {
  :root { --sidebar-width: 248px; }
  body { font-size: 30px; }

  .sidebar { overflow: hidden; }
  .sidebar .nav-menu {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 186px;
    padding-right: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    align-content: start;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.48) transparent;
  }
  body.cockpit-mode .sidebar .nav-menu { scrollbar-color: rgba(216,61,57,.42) transparent; }
  .sidebar .nav-menu::-webkit-scrollbar { width: 6px; }
  .sidebar .nav-menu::-webkit-scrollbar-track { background: transparent; }
  .sidebar .nav-menu::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(255,255,255,.48); }
  body.cockpit-mode .sidebar .nav-menu::-webkit-scrollbar-thumb { background: rgba(216,61,57,.42); }

  .brand-block { padding-bottom: 16px; }
  .brand-block img, .admin-sidebar .brand-block img { width: 78px; height: 78px; }
  .brand-block strong { font-size: 30px; }
  .brand-block span { font-size: 18px; }
  .nav-label { padding-top: 6px; font-size: 16px; }
  .nav-item,
  .admin-sidebar .nav-item {
    min-height: 70px;
    padding-inline: 8px;
    gap: 8px;
    font-size: 30px;
    line-height: 1.22;
    white-space: nowrap;
  }
  .nav-item svg,
  .admin-sidebar .nav-item svg { width: 26px; height: 26px; }
  .nav-count { width: 30px; height: 30px; font-size: 18px; }
  .admin-sidebar .nav-menu { gap: 4px; }
  .season-card,
  .admin-sidebar .season-card {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 24px;
    min-height: 174px;
    margin: 0;
    padding: 17px 16px;
    flex: 0 0 auto;
    grid-template-columns: 26px 1fr;
    gap: 9px 10px;
  }
  .season-card svg { width: 26px; height: 26px; }
  .season-card strong,
  .admin-sidebar .season-card strong { font-size: 26px; }
  .season-card span,
  .admin-sidebar .season-card span { font-size: 26px; line-height: 1.35; }

  .topbar { height: 86px; }
  .topbar-page strong { font-size: 26px; }
  .topbar-page span, .sync-indicator, .live-clock { font-size: 20px; }
  .live-clock { height: 52px; }
  .live-clock b { min-width: 92px; font-size: 22px; }
  .outline-button, .primary-button, .secondary-button { min-height: 60px; padding-inline: 24px; font-size: 24px; }
  .outline-button svg, .primary-button svg, .secondary-button svg { width: 24px; height: 24px; }

  .page-heading { min-height: 128px; margin-bottom: 24px; }
  .page-heading h1 { font-size: 45px; line-height: 1.16; }
  .page-heading p { margin-top: 12px; font-size: 30px; line-height: 1.55; }
  .live-status { font-size: 20px; }

  .kpi-grid { gap: 20px; margin-bottom: 22px; }
  .kpi-card { min-height: 142px; padding: 23px 25px; gap: 20px; }
  .kpi-icon { width: 68px; height: 68px; }
  .kpi-icon svg { width: 36px; height: 36px; }
  .kpi-card div > span { font-size: 26px; line-height: 1.3; }
  .kpi-card strong { font-size: 48px; }
  .public-toolbar { margin-bottom: 18px; }
  .public-tabs button { min-width: 192px; height: 62px; font-size: 26px; }
  .search-field { width: 400px; height: 62px; padding-inline: 20px; }
  .search-field svg { width: 25px; height: 25px; }
  .search-field input { font-size: 26px; }

  th { height: 68px; padding-inline: 22px; font-size: 24px; line-height: 1.35; }
  td { height: 86px; padding: 12px 22px; font-size: 30px; line-height: 1.4; }
  .ranking-table { min-width: 1650px; }
  .company-cell { min-width: 470px; gap: 16px; }
  .company-avatar { width: 52px; height: 52px; }
  .company-name { font-size: 30px; }
  .rank-award, .rank-standard { height: 60px; }
  .rank-trophy { top: 6px; width: 46px; height: 46px; }
  .rank-award > span { top: 3px; width: 78px; gap: 3px; }
  .rank-award strong { font-size: 24px; }
  .rank-award small { font-size: 20px; }
  .rank-badge { width: 48px; height: 48px; font-size: 20px; }
  .rank-standard .rank-badge { top: 6px; }
  .progress-cell { min-width: 430px; }
  .progress-track { height: 13px; }
  .progress-value { width: 96px; font-size: 24px; }
  .table-footer { min-height: 68px; padding: 18px 22px; font-size: 22px; }
  .priority-badge, .operation-status { min-height: 44px; padding-inline: 15px; font-size: 20px; }


  .calendar-toolbar { min-height: 126px; padding: 22px 24px; }
  .calendar-toolbar-title small { font-size: 20px; }
  .calendar-toolbar-title strong { font-size: 38px; }
  .calendar-toolbar-summary span { font-size: 24px; }
  .calendar-step, .calendar-today-button, .calendar-month-picker { height: 62px; }
  .calendar-step { width: 62px; }
  .calendar-today-button, .calendar-month-picker span, .calendar-month-picker input { font-size: 24px; }
  .calendar-month-picker input { width: 220px; }
  .calendar-weekdays { min-height: 68px; }
  .calendar-weekdays span { font-size: 25px; }
  .calendar-day { min-height: 214px; padding: 16px; }
  .calendar-day > header { height: 50px; }
  .calendar-day > header time { width: 46px; height: 46px; font-size: 25px; }
  .calendar-day > header span { font-size: 20px; }
  .calendar-event { min-height: 68px; padding: 12px 13px 12px 17px; }
  .calendar-event strong { font-size: 26px; }
  .calendar-event small, .calendar-more { font-size: 20px; }
  .calendar-footer { min-height: 76px; padding: 17px 22px; font-size: 24px; }
  .calendar-footer strong { font-size: 24px; }

  .cockpit-shell { padding: 24px; }
  .cockpit-header { min-height: 104px; }
  .cockpit-header h1 { font-size: clamp(45px,3vw,54px); }
  .cockpit-header p { font-size: 26px; }
  .cockpit-header > span { font-size: 20px; }
  .cockpit-kpis { gap: 18px; margin-bottom: 18px; }
  .cockpit-kpi { min-height: 126px; padding: 21px 24px; }
  .cockpit-kpi > span { font-size: 26px; }
  .cockpit-kpi strong { font-size: 48px; }
  .cockpit-kpi b { font-size: 21px; }
  .cockpit-main-grid { min-height: 500px; gap: 18px; }
  .cockpit-panel-title { padding: 23px 22px 14px; }
  .cockpit-panel-title span { font-size: 21px; }
  .cockpit-panel-title h2 { font-size: 32px; }
  .cockpit-panel-title small, .cockpit-panel-title a { font-size: 20px; }
  .cockpit-bars { gap: 21px; padding: 22px; }
  .cockpit-bar-row { grid-template-columns: 44px minmax(210px,.9fr) minmax(80px,1fr) 88px; gap: 12px; }
  .combat-rank { width: 42px; height: 42px; font-size: 19px; }
  .cockpit-bar-row label { font-size: 26px; }
  .cockpit-bar-row strong { font-size: 24px; }
  .combat-track { height: 12px; }
  .ring-caption { font-size: 26px; }
  .ring-core > span { font-size: 22px; }
  .ring-core > strong { font-size: 58px; }
  .ring-core p { font-size: 26px; }
  .ring-foot span { font-size: 20px; }
  .ring-foot b { font-size: 26px; }
  .cockpit-contributions { gap: 21px; padding: 18px 22px 22px; }
  .contribution-row { grid-template-columns: 46px 1fr 132px; gap: 16px; }
  .contribution-row > span { width: 45px; height: 45px; font-size: 18px; }
  .contribution-row label { font-size: 26px; }
  .contribution-row > strong { font-size: 26px; }
  .contribution-row small { font-size: 20px; }
  .cockpit-table { min-width: 1580px; }
  .cockpit-table th { height: 64px; padding-inline: 20px; font-size: 24px; }
  .cockpit-table td { height: 76px; padding: 11px 20px; font-size: 30px; }
  .matrix-company { min-width: 460px; gap: 14px; }
  .matrix-company img { width: 44px; height: 44px; }

  .admin-panel, .add-company-panel { padding: 28px; }
  .section-header span { font-size: 21px; }
  .section-header h2 { font-size: 36px; }
  .entry-hint strong, .entry-hint span, .entry-hint em { font-size: 25px; }
  .entry-table, .company-admin-table { min-width: 1720px; }
  .entry-table td:first-child { min-width: 500px; }
  .entry-input, .company-input, .rule-form-grid input, .threshold-control input { height: 66px; font-size: 30px; }
  .rule-form-grid label, .threshold-control { min-height: 82px; font-size: 28px; }
  .rule-form-grid label span, .rule-note { font-size: 23px; }
  .poster-link, .add-company-form label, .settings-form label, .notice-editor label { font-size: 25px; }
  input, select, textarea { font-size: 30px; line-height: 1.4; }
  input, select { height: 68px; }
  .oo-select { height: 64px; font-size: 25px; }
  .notice-item strong { font-size: 28px; }
  .notice-item time, .notice-type { font-size: 21px; }
  .notice-item p, .data-maintenance p { font-size: 25px; }
  .danger-button { min-height: 58px; font-size: 23px; }
  .operation-date-guide { min-height: 80px; }
  .operation-date-guide strong { font-size: 28px; }
  .operation-date-guide small, .operation-form-fields label { font-size: 24px; }
  .operation-admin-toolbar { min-height: 84px; }
  .operation-admin-toolbar span, .operation-admin-toolbar small { font-size: 22px; }
  .operation-admin-toolbar strong { font-size: 28px; }
  .operation-admin-table { min-width: 1720px; }
  .operation-admin-table td { height: 90px; }
  .inline-status { width: 136px; height: 56px; font-size: 23px; }
  .row-actions button { min-height: 54px; padding-inline: 18px; font-size: 23px; }
  .empty-state, .toast { font-size: 25px; }

  .summit-countdown { min-height: 82px; }
  .summit-date span, .countdown-label span, .countdown-values > span { font-size: 22px; }
  .summit-date strong { font-size: 25px; }
  .countdown-values strong { min-width: 42px; font-size: 38px; }
  .countdown-values i { font-size: 20px; }
}

@media (min-width: 1500px) {
  .cockpit-shell { padding-inline: 20px; }
}

@media (max-width: 1180px) {
  .summit-countdown { grid-template-columns: minmax(240px,1fr) minmax(430px,1.3fr); gap: 18px; }
  .countdown-label { display: none; }
  .calendar-toolbar { grid-template-columns: 1fr auto; }
  .calendar-toolbar-summary { display: none; }
  .operation-form { grid-template-columns: 1fr; }
  .operation-form-fields { grid-template-columns: repeat(3,minmax(150px,1fr)); }
  .cockpit-main-grid { grid-template-columns: 1fr 1fr; }
  .combat-ring-panel { grid-column: 1/-1; grid-row: 1; min-height: 300px; }
  .cockpit-bottom-grid, .notice-layout { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  :root { --sidebar-width: 0px; }
  .sidebar { width: 230px; transform: translateX(-104%); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 35; display: block; border: 0; background: rgba(42,13,13,.38); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .workspace { margin-left: 0; }
  .mobile-menu { display: grid; }
  .topbar-page { margin-left: 12px; }
  .topbar { padding-inline: 14px; }
  .topbar-actions { margin-left: auto; }
  .page-content { padding-inline: 18px; }
  .summit-banner-main { padding-inline: 28px; grid-template-columns: minmax(170px,.55fr) minmax(390px,1.45fr); }
  .summit-title { font-size: 54px; }
  .summit-countdown { grid-template-columns: minmax(210px,.8fr) minmax(420px,1.2fr); padding-inline: 24px; }
  .operation-form-fields { grid-template-columns: repeat(2,minmax(150px,1fr)); }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .rules-admin-grid, .settings-grid { grid-template-columns: 1fr; }
  .add-company-form { grid-template-columns: 1fr 1fr; }
  .cockpit-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .topbar { height: 60px; padding: 8px 12px; }
  .topbar-page { display: none; }
  .topbar-actions { gap: 5px; }
  .sync-indicator { display: none; }
  .live-clock { padding: 0 8px; border-left: 0; }
  .outline-button { width: 40px; padding: 0; }
  .outline-button span { display: none; }
  .page-content { padding: 17px 12px 24px; }
  .summit-banner-wrap { margin-bottom: 14px; border-radius: 15px; }
  .summit-banner-main { min-height: 124px; padding: 15px 16px; grid-template-columns: 92px minmax(0,1fr); gap: 11px; }
  .summit-title { justify-content: center; font-size: 43px; }
  .summit-champion { grid-template-columns: 70px minmax(0,1fr); justify-self: stretch; gap: 12px; }
  .summit-logo-frame { width: 68px; height: 68px; border-width: 3px; border-radius: 18px; }
  .summit-logo-frame img { width: 53px; height: 53px; border-radius: 12px; }
  .summit-logo-frame::before, .summit-logo-frame::after { display: none; }
  .summit-crown { top: 7px; left: calc(50% + 8px); width: 23px; height: 23px; }
  .summit-champion-copy { gap: 4px; }.summit-champion-copy strong { font-size: 22px; }.summit-champion-copy span { font-size: 11px; white-space: normal; }
  .summit-countdown { min-height: 93px; padding: 10px 13px; grid-template-columns: 1fr; align-content: center; justify-items: center; gap: 7px; }
  .summit-date { justify-self: center; }.summit-date span { font-size: 9px; }.summit-date strong { font-size: 10px; }
  .countdown-values { justify-content: center; gap: 3px; }.countdown-values > span { margin-right: 3px; font-size: 9px; }.countdown-values strong { min-width: 23px; font-size: 20px; }.countdown-values i { font-size: 8px; }
  .calendar-toolbar { padding: 12px; grid-template-columns: 1fr; gap: 11px; }
  .calendar-toolbar-title strong { font-size: 17px; }
  .calendar-controls { display: grid; grid-template-columns: 38px minmax(0,1fr) 38px; justify-content: stretch; }
  .calendar-month-picker { min-width: 0; }.calendar-month-picker span { display: none; }.calendar-month-picker input { width: 100%; }
  .calendar-today-button { grid-column: 1/-1; }
  .calendar-weekdays, .calendar-grid { min-width: 840px; grid-template-columns: repeat(7,120px); }
  .calendar-day { min-height: 104px; }
  .calendar-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
  .operation-form-fields { grid-template-columns: 1fr; }
  .operation-form-actions { justify-content: stretch; }.operation-form-actions button { flex: 1; }
  .page-heading { align-items: center; margin-inline: 2px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading p { max-width: 260px; font-size: 10px; }
  .page-heading > .primary-button { width: 42px; padding: 0; font-size: 0; }
  .live-status { display: none; }
  .kpi-grid { gap: 9px; }
  .kpi-card { min-height: 76px; padding: 11px 12px; gap: 9px; }
  .kpi-icon { width: 35px; height: 35px; }
  .kpi-icon svg { width: 20px; height: 20px; }
  .kpi-card div > span { font-size: 9px; }
  .kpi-card strong { font-size: 21px; }
  .public-toolbar { align-items: stretch; flex-direction: column; }
  .public-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .public-tabs button { min-width: 0; }
  .search-field { width: 100%; }
  .admin-panel, .add-company-panel { padding: 14px; }
  .rule-form-grid { grid-template-columns: 1fr; }
  .add-company-form { grid-template-columns: 1fr; }
  .table-footer, .entry-hint { align-items: flex-start; flex-direction: column; }
  .entry-hint em { margin-left: 0; }
  .toast { left: 50%; }
  body.cockpit-mode .page-content { padding: 0; }
  body.cockpit-mode .summit-banner-wrap { margin: 0; border-radius: 0; }
  .cockpit-shell { min-height: calc(100vh - 60px); padding: 13px 10px 18px; border: 0; border-radius: 0; }
  .cockpit-header { min-height: 74px; padding-top: 4px; }
  .cockpit-header h1 { font-size: 24px; letter-spacing: .03em; }
  .cockpit-header p { font-size: 10px; }
  .cockpit-header > span { position: absolute; top: 56px; left: 50%; right: auto; transform: translateX(-50%); }
  .cockpit-kpis { gap: 8px; }
  .cockpit-kpi { min-height: 68px; padding: 10px 12px; }
  .cockpit-kpi strong { font-size: 21px; }
  .cockpit-main-grid { grid-template-columns: 1fr; gap: 9px; }
  .combat-ring-panel { grid-column: auto; grid-row: auto; order: -1; }
  .cockpit-bar-row { grid-template-columns: 24px 92px 1fr 45px; }
  .cockpit-bottom-grid { grid-template-columns: 1fr; gap: 9px; }
  .cockpit-panel-title { padding-inline: 12px; }
  .cockpit-table-wrap { margin-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 紧凑月历：42 个日期始终同屏呈现，日期详情通过弹窗展开 */
.calendar-panel .calendar-toolbar { min-height: 62px; padding: 9px 13px; gap: 12px; }
.calendar-panel .calendar-icon { width: 36px; height: 36px; border-radius: 10px; }
.calendar-panel .calendar-icon svg { width: 18px; height: 18px; }
.calendar-panel .calendar-toolbar-title { gap: 8px; }
.calendar-panel .calendar-toolbar-title small { font-size: 8px; }
.calendar-panel .calendar-toolbar-title strong { font-size: 16px; letter-spacing: 0; }
.calendar-panel .calendar-toolbar-summary b { font-size: 15px; }
.calendar-panel .calendar-toolbar-summary span { font-size: 8px; }
.calendar-panel .calendar-controls { gap: 6px; }
.calendar-panel .calendar-step,
.calendar-panel .calendar-today-button,
.calendar-panel .calendar-month-picker { height: 34px; border-radius: 8px; }
.calendar-panel .calendar-step { width: 34px; font-size: 20px; }
.calendar-panel .calendar-today-button,
.calendar-panel .calendar-month-picker span,
.calendar-panel .calendar-month-picker input { font-size: 9px; }
.calendar-panel .calendar-month-picker input { width: 126px; height: 32px; }
.calendar-panel .calendar-scroll { overflow-x: hidden; }
.calendar-panel .calendar-weekdays,
.calendar-panel .calendar-grid { width: 100%; min-width: 0; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-panel .calendar-weekdays { min-height: 28px; }
.calendar-panel .calendar-weekdays span { min-width: 0; font-size: 9px; }
.calendar-panel .calendar-day { min-width: 0; height: 72px; min-height: 72px; padding: 3px 4px; overflow: hidden; }
.calendar-panel .calendar-day > header { height: 20px; }
.calendar-panel .calendar-day > header time { width: 20px; height: 20px; font-size: 10px; line-height: 1; }
.calendar-panel .calendar-day > header span { font-size: 7px; line-height: 1; }
.calendar-panel .calendar-day.has-events { cursor: pointer; transition: background .16s ease,box-shadow .16s ease; }
.calendar-panel .calendar-day.has-events:hover { z-index: 1; background: #fff3ef; box-shadow: inset 0 0 0 1px rgba(216,61,56,.28); }
.calendar-panel .calendar-day.has-events:focus-visible { z-index: 2; outline: 2px solid #d83d38; outline-offset: -2px; }
.calendar-panel .calendar-events { gap: 2px; margin-top: 1px; }
.calendar-panel .calendar-event { min-height: 18px; padding: 2px 3px 2px 7px; gap: 0; border-radius: 4px; line-height: 1.15; }
.calendar-panel .calendar-event::before { top: 3px; bottom: 3px; width: 2px; }
.calendar-panel .calendar-event strong { font-size: 8px; line-height: 1.15; letter-spacing: 0; }
.calendar-panel .calendar-event small { font-size: 6.5px; line-height: 1.15; letter-spacing: 0; }
.calendar-panel .calendar-more { padding: 0 2px; overflow: hidden; color: #a44c45; font-size: 6.5px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.calendar-panel .calendar-footer { min-height: 34px; padding: 7px 12px; font-size: 8px; }
.calendar-panel .calendar-footer strong { font-size: 8px; }

body.calendar-modal-open { overflow: hidden; }
.calendar-day-modal { position: fixed; z-index: 100; inset: 0; display: grid; padding: 24px; place-items: center; opacity: 0; pointer-events: none; transition: opacity .16s ease; }
.calendar-day-modal[hidden] { display: none; }
.calendar-day-modal.is-open { opacity: 1; pointer-events: auto; }
.calendar-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: rgba(49,20,18,.56); backdrop-filter: blur(4px); }
.calendar-modal-dialog { position: relative; width: min(720px,100%); max-height: min(760px,calc(100vh - 48px)); overflow: hidden; border: 1px solid #e9b7b0; border-radius: 8px; background: #fffaf8; box-shadow: 0 24px 70px rgba(63,19,17,.28); transform: translateY(10px) scale(.985); transition: transform .16s ease; }
.calendar-day-modal.is-open .calendar-modal-dialog { transform: translateY(0) scale(1); }
.calendar-modal-header { display: flex; min-height: 72px; padding: 14px 18px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #efd2ce; background: linear-gradient(110deg,#fff0ed,#fffaf3); }
.calendar-modal-header > div { display: grid; gap: 3px; }
.calendar-modal-header span { color: #a6635e; font-size: 12px; font-weight: 700; }
.calendar-modal-header h2 { margin: 0; color: #4d2926; font-size: 20px; letter-spacing: 0; }
.calendar-modal-close { display: grid; width: 36px; height: 36px; flex: 0 0 auto; padding: 0 0 3px; place-items: center; border: 1px solid #e8bbb5; border-radius: 50%; color: #a83833; background: #fff; font-family: Arial,sans-serif; font-size: 25px; line-height: 1; }
.calendar-modal-close:hover { color: #fff; background: #d83d38; }
.calendar-modal-list { display: grid; max-height: calc(min(760px,100vh - 48px) - 72px); padding: 14px; overflow-y: auto; gap: 10px; }
.calendar-modal-record { position: relative; padding: 13px 14px 14px; overflow: hidden; border: 1px solid #efd5d1; border-radius: 7px; background: #fff; }
.calendar-modal-record::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: currentColor; }
.calendar-modal-record > header { display: flex; align-items: flex-start; gap: 10px; }
.calendar-modal-record > header > span { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: currentColor; font-family: var(--font-number); font-size: 10px; }
.calendar-modal-record > header > div { display: grid; min-width: 0; gap: 2px; }
.calendar-modal-record > header strong { color: #432825; font-size: 15px; line-height: 1.35; }
.calendar-modal-record > header small { color: #8e6c68; font-size: 11px; line-height: 1.4; }
.calendar-modal-record dl { display: grid; margin: 12px 0 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 12px; }
.calendar-modal-record dl > div { display: grid; min-width: 0; padding: 7px 9px; grid-template-columns: 72px minmax(0,1fr); gap: 8px; border-radius: 5px; background: #fff7f5; }
.calendar-modal-record dt { color: #aa7772; font-size: 10px; font-weight: 700; }
.calendar-modal-record dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #4f3431; font-size: 11px; }
.calendar-modal-record.tone-coral { color: #cf443d; }
.calendar-modal-record.tone-gold { color: #b57b15; }
.calendar-modal-record.tone-blue { color: #3e6ab7; }
.calendar-modal-record.tone-green { color: #33805d; }

@media (max-width: 640px) {
  .calendar-panel .calendar-toolbar { min-height: 0; padding: 8px; grid-template-columns: 1fr; gap: 7px; }
  .calendar-panel .calendar-controls { grid-template-columns: 32px minmax(0,1fr) 32px; gap: 5px; }
  .calendar-panel .calendar-step { width: 32px; }
  .calendar-panel .calendar-today-button { height: 28px; }
  .calendar-panel .calendar-weekdays { min-height: 24px; }
  .calendar-panel .calendar-weekdays span { font-size: 8px; }
  .calendar-panel .calendar-day { height: 62px; min-height: 62px; padding: 2px; }
  .calendar-panel .calendar-day > header { height: 18px; }
  .calendar-panel .calendar-day > header time { width: 18px; height: 18px; font-size: 9px; }
  .calendar-panel .calendar-day > header span { display: none; }
  .calendar-panel .calendar-events { gap: 1px; margin-top: 1px; }
  .calendar-panel .calendar-event { min-height: 14px; padding: 2px 2px 2px 5px; }
  .calendar-panel .calendar-event strong { font-size: 6.5px; }
  .calendar-panel .calendar-event small { display: none; }
  .calendar-panel .calendar-more { font-size: 5.5px; }
  .calendar-panel .calendar-footer { align-items: flex-start; flex-direction: column; gap: 3px; }
  .calendar-day-modal { padding: 10px; }
  .calendar-modal-dialog { max-height: calc(100vh - 20px); }
  .calendar-modal-header { min-height: 62px; padding: 10px 12px; }
  .calendar-modal-header span { font-size: 10px; }
  .calendar-modal-header h2 { font-size: 16px; }
  .calendar-modal-close { width: 32px; height: 32px; font-size: 22px; }
  .calendar-modal-list { max-height: calc(100vh - 82px); padding: 9px; gap: 8px; }
  .calendar-modal-record { padding: 11px 10px 11px 12px; }
  .calendar-modal-record dl { grid-template-columns: 1fr; }
  .calendar-modal-record dl > div { grid-template-columns: 64px minmax(0,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-day-modal,
  .calendar-modal-dialog,
  .calendar-panel .calendar-day.has-events { transition: none; }
}

/* AI 大赢家品牌与稳定卡片悬停 */
.motion-card:hover { filter: none; transform: none; }
.summit-title { gap: 2px; font-size: clamp(38px,3.7vw,58px); letter-spacing: 0; white-space: nowrap; }

.admin-login-page { display: grid; min-height: 100vh; padding: 24px; place-items: center; color: #4d302d; background: #fff8f6; }
.admin-login-shell { width: min(430px,100%); padding: 28px; border: 1px solid #e8bdb7; border-radius: 8px; background: #fff; box-shadow: 0 20px 55px rgba(102,38,33,.16); }
.admin-login-shell > header { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid #f0d7d3; }
.admin-login-shell > header img { width: 58px; height: 58px; object-fit: contain; }
.admin-login-shell > header div { display: grid; gap: 3px; }
.admin-login-shell > header span { color: #d6413c; font-size: 13px; font-weight: 800; }
.admin-login-shell h1 { margin: 0; color: #472724; font-size: 24px; letter-spacing: 0; }
.admin-login-shell form { display: grid; margin-top: 22px; gap: 10px; }
.admin-login-shell label { color: #684743; font-size: 13px; font-weight: 750; }
.admin-login-shell input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #dfb7b2; border-radius: 6px; outline: 0; color: #432a27; background: #fffdfc; font-size: 14px; }
.admin-login-shell input:focus { border-color: #d9443f; box-shadow: 0 0 0 3px rgba(217,68,63,.1); }
.admin-login-shell button { height: 46px; margin-top: 6px; border: 1px solid #c9322f; border-radius: 6px; color: #fff; background: #d9443f; font-size: 14px; font-weight: 800; }
.admin-login-shell button:hover { background: #bd2d2a; }
.admin-login-shell > a { display: block; margin-top: 16px; color: #926b67; font-size: 12px; text-align: center; text-decoration: none; }
.admin-login-shell > a:hover { color: #c63834; }
.admin-login-error { margin: 0; color: #c12f2b; font-size: 12px; }

@media (max-width: 1180px) {
  .summit-title { font-size: 44px; }
}

@media (max-width: 640px) {
  .summit-title { font-size: 30px; }
  .admin-login-page { padding: 14px; }
  .admin-login-shell { padding: 22px 18px; }
}

/* Full-screen operation calendars */
.operation-public-page {
  min-height: calc(100vh - 24px);
}
.operation-public-page .public-operation-mount {
  min-height: inherit;
  display: grid;
}
.operation-public-page .calendar-panel {
  min-height: inherit;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-color: rgba(228, 93, 85, .32);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,249,247,.94)),
    radial-gradient(circle at 15% 0, rgba(255,220,190,.28), transparent 34%);
  box-shadow: 0 18px 46px rgba(91, 34, 31, .11);
}
.operation-public-page .calendar-toolbar {
  min-height: 92px;
  padding: 18px 22px;
  grid-template-columns: minmax(260px, 1.15fr) auto minmax(430px, 1fr);
  border-bottom-color: rgba(225, 104, 96, .28);
  background: linear-gradient(120deg, #fff4ef 0%, #fffdfc 52%, #fff7e8 100%);
}
.operation-public-page .calendar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
.operation-public-page .calendar-icon svg {
  width: 25px;
  height: 25px;
}
.operation-public-page .calendar-toolbar-title small {
  font-size: 13px;
}
.operation-public-page .calendar-toolbar-title strong {
  font-size: 28px;
  letter-spacing: 0;
}
.operation-public-page .calendar-toolbar-summary b {
  font-size: 27px;
}
.operation-public-page .calendar-toolbar-summary span {
  font-size: 13px;
}
.operation-public-page .calendar-step,
.operation-public-page .calendar-today-button,
.operation-public-page .calendar-month-picker {
  height: 48px;
  border-radius: 10px;
}
.operation-public-page .calendar-step {
  width: 48px;
  font-size: 30px;
}
.operation-public-page .calendar-today-button {
  padding-inline: 16px;
  font-size: 14px;
}
.operation-public-page .calendar-month-picker span,
.operation-public-page .calendar-month-picker input {
  font-size: 14px;
}
.operation-public-page .calendar-month-picker input {
  width: 160px;
}
.operation-public-page .calendar-scroll {
  min-height: 0;
  display: grid;
  grid-template-rows: 48px 1fr;
  overflow: hidden;
  background: rgba(255, 255, 255, .74);
}
.operation-public-page .calendar-weekdays,
.operation-public-page .calendar-grid {
  min-width: 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.operation-public-page .calendar-weekdays {
  min-height: 48px;
  border-bottom-color: rgba(224, 115, 107, .26);
  background: rgba(255, 242, 239, .82);
}
.operation-public-page .calendar-weekdays span {
  font-size: 15px;
  letter-spacing: 0;
}
.operation-public-page .calendar-grid {
  min-height: 0;
  grid-template-rows: repeat(6, minmax(96px, 1fr));
}
.operation-public-page .calendar-day {
  min-height: 0;
  padding: 12px;
  display: grid;
  grid-template-rows: 36px minmax(0, 1fr);
  border-color: rgba(226, 160, 153, .45);
  background: linear-gradient(155deg, rgba(255,255,255,.96), rgba(255,250,248,.9));
}
.operation-public-page .calendar-day.is-outside {
  background: linear-gradient(155deg, rgba(250,247,246,.82), rgba(246,241,240,.74));
}
.operation-public-page .calendar-day > header {
  height: 36px;
}
.operation-public-page .calendar-day > header time {
  width: 34px;
  height: 34px;
  font-size: 16px;
}
.operation-public-page .calendar-day > header span {
  font-size: 12px;
}
.operation-public-page .calendar-events {
  min-height: 0;
  gap: 7px;
  margin-top: 6px;
  overflow: hidden;
}
.operation-public-page .calendar-event {
  min-height: 44px;
  padding: 8px 10px 8px 13px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.operation-public-page .calendar-event::before {
  top: 7px;
  bottom: 7px;
  width: 4px;
}
.operation-public-page .calendar-event strong {
  font-size: 15px;
  line-height: 1.25;
}
.operation-public-page .calendar-event small {
  font-size: 12px;
  line-height: 1.25;
}
.operation-public-page .calendar-more {
  font-size: 11px;
}
.operation-public-page .calendar-footer {
  min-height: 52px;
  padding: 12px 18px;
  font-size: 13px;
}
.operation-public-page .calendar-footer strong {
  font-size: 13px;
}

@media (min-height: 880px) {
  .operation-public-page {
    min-height: calc(100vh - 40px);
  }
  .operation-public-page .calendar-grid {
    grid-template-rows: repeat(6, minmax(118px, 1fr));
  }
  .operation-public-page .calendar-day {
    padding: 15px;
  }
  .operation-public-page .calendar-event strong {
    font-size: 17px;
  }
  .operation-public-page .calendar-event small {
    font-size: 13px;
  }
}

@media (min-width: 1500px) and (min-height: 820px) {
  .operation-public-page .calendar-toolbar {
    min-height: 104px;
    padding: 20px 26px;
  }
  .operation-public-page .calendar-toolbar-title strong {
    font-size: 34px;
  }
  .operation-public-page .calendar-weekdays span {
    font-size: 18px;
  }
  .operation-public-page .calendar-day > header time {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .operation-public-page .calendar-event {
    min-height: 54px;
    padding: 10px 12px 10px 16px;
  }
  .operation-public-page .calendar-event strong {
    font-size: 20px;
  }
  .operation-public-page .calendar-event small {
    font-size: 16px;
  }
}

@media (max-width: 1180px) {
  .operation-public-page .calendar-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .operation-public-page .calendar-controls {
    justify-content: stretch;
  }
  .operation-public-page .calendar-month-picker {
    flex: 1;
  }
  .operation-public-page .calendar-month-picker input {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .operation-public-page {
    min-height: calc(100vh - 20px);
  }
  .operation-public-page .calendar-panel {
    border-radius: 10px;
  }
  .operation-public-page .calendar-toolbar {
    min-height: 0;
    padding: 12px;
  }
  .operation-public-page .calendar-toolbar-title strong {
    font-size: 22px;
  }
  .operation-public-page .calendar-toolbar-summary {
    display: flex;
  }
  .operation-public-page .calendar-controls {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }
  .operation-public-page .calendar-step {
    width: 42px;
  }
  .operation-public-page .calendar-today-button {
    grid-column: 1 / -1;
  }
  .operation-public-page .calendar-scroll {
    grid-template-rows: 36px 1fr;
    overflow-x: auto;
  }
  .operation-public-page .calendar-weekdays,
  .operation-public-page .calendar-grid {
    min-width: 760px;
  }
  .operation-public-page .calendar-weekdays {
    min-height: 36px;
  }
  .operation-public-page .calendar-weekdays span {
    font-size: 12px;
  }
  .operation-public-page .calendar-grid {
    grid-template-rows: repeat(6, minmax(86px, 1fr));
  }
  .operation-public-page .calendar-day {
    padding: 8px;
    grid-template-rows: 30px minmax(0, 1fr);
  }
  .operation-public-page .calendar-day > header time {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .operation-public-page .calendar-event {
    min-height: 34px;
    padding: 6px 8px 6px 11px;
  }
  .operation-public-page .calendar-event strong {
    font-size: 12px;
  }
  .operation-public-page .calendar-event small {
    font-size: 10px;
  }
  .operation-public-page .calendar-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
  }
}

/* 8 月业绩、商机与新客户赛程 */
.page-content { padding-top: 12px; }
.admin-content { padding-top: 20px; }
.ranking-table { min-width: 1160px; }
.money-cell { color: #a86811; white-space: nowrap; }
.rank-award > span { top: 11px; }
.business-main-grid { grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); }
.cockpit-table { min-width: 1580px; }
.entry-table { min-width: 820px; }
.entry-input.performance-input { width: 140px; }
.company-admin-table { min-width: 1320px; }
.business-company-form { grid-template-columns: 1.4fr .75fr .75fr .75fr .9fr auto; }
.rules-admin-grid { grid-template-columns: 1.25fr .75fr; }

@media (max-width: 1180px) {
  .business-company-form { grid-template-columns: repeat(3, minmax(170px, 1fr)); }
}

@media (max-width: 920px) {
  .workspace-menu { position: fixed; right: 14px; bottom: 14px; z-index: 34; box-shadow: 0 8px 24px rgba(91,34,31,.2); }
  .business-company-form { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}

@media (max-width: 640px) {
  .business-main-grid, .business-company-form { grid-template-columns: 1fr; }
  .page-content, .admin-content { padding-top: 10px; }
  .ranking-table { min-width: 980px; }
  .cockpit-table { min-width: 1380px; }
}

/* Calendar pages: summit banner + calendar fit into one screen */
body.operation-calendar-mode {
  --sidebar-width: 198px;
  overflow: hidden;
  font-size: 24px;
}
body.operation-calendar-mode .app-shell,
body.operation-calendar-mode .workspace {
  min-height: 100vh;
  height: 100vh;
}
body.operation-calendar-mode .workspace {
  overflow: hidden;
}
body.operation-calendar-mode .page-content {
  display: grid;
  height: 100vh;
  min-height: 0;
  padding: 8px 10px 10px;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
}
body.operation-calendar-mode .view-panel {
  min-height: 0;
}
body.operation-calendar-mode .operation-public-page.is-active {
  display: grid;
  height: 100%;
  min-height: 0;
}
body.operation-calendar-mode .operation-public-page .public-operation-mount {
  height: 100%;
  min-height: 0;
}
body.operation-calendar-mode .summit-banner-wrap {
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(116, 37, 33, .12);
}
body.operation-calendar-mode .summit-banner-main {
  min-height: 94px;
  padding: 10px clamp(22px, 4.2vw, 64px);
  grid-template-columns: minmax(180px, .58fr) minmax(360px, 1.42fr);
}
body.operation-calendar-mode .summit-title {
  font-size: clamp(34px, 3vw, 48px);
}
body.operation-calendar-mode .summit-champion {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 17px;
}
body.operation-calendar-mode .summit-logo-frame {
  width: 76px;
  height: 76px;
  border-width: 3px;
  border-radius: 18px;
}
body.operation-calendar-mode .summit-logo-frame::before,
body.operation-calendar-mode .summit-logo-frame::after {
  top: 17px;
  width: 18px;
  height: 43px;
}
body.operation-calendar-mode .summit-logo-frame::before {
  left: -18px;
}
body.operation-calendar-mode .summit-logo-frame::after {
  right: -18px;
}
body.operation-calendar-mode .summit-logo-frame img {
  width: 58px;
  height: 58px;
  border-radius: 13px;
}
body.operation-calendar-mode .summit-crown {
  top: 3px;
  width: 24px;
  height: 24px;
}
body.operation-calendar-mode .summit-champion-copy {
  gap: 5px;
}
body.operation-calendar-mode .summit-champion-copy strong {
  font-size: clamp(24px, 2.1vw, 33px);
}
body.operation-calendar-mode .summit-champion-copy span {
  font-size: clamp(13px, 1.15vw, 18px);
}
body.operation-calendar-mode .summit-countdown {
  min-height: 42px;
  padding: 0 clamp(18px, 2.4vw, 34px);
  grid-template-columns: minmax(250px, 1fr) auto minmax(380px, 1.15fr);
  gap: 16px;
}
body.operation-calendar-mode .countdown-label {
  display: flex;
}
body.operation-calendar-mode .summit-date,
body.operation-calendar-mode .countdown-label {
  gap: 7px;
}
body.operation-calendar-mode .summit-date svg,
body.operation-calendar-mode .countdown-label svg {
  width: 14px;
  height: 14px;
}
body.operation-calendar-mode .summit-date span,
body.operation-calendar-mode .countdown-label span,
body.operation-calendar-mode .countdown-values > span {
  font-size: 10px;
}
body.operation-calendar-mode .summit-date strong {
  font-size: 12px;
}
body.operation-calendar-mode .countdown-values {
  gap: 5px;
}
body.operation-calendar-mode .countdown-values strong {
  min-width: 26px;
  font-size: 24px;
}
body.operation-calendar-mode .countdown-values i {
  font-size: 10px;
}
body.operation-calendar-mode .calendar-panel {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-color: rgba(228, 93, 85, .28);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 250, 248, .96)),
    radial-gradient(circle at 12% 0, rgba(255, 214, 178, .24), transparent 34%);
  box-shadow: 0 12px 34px rgba(91, 34, 31, .1);
}
body.operation-calendar-mode .calendar-toolbar {
  min-height: 54px;
  padding: 8px 12px;
  grid-template-columns: minmax(210px, 1fr) auto minmax(330px, 1fr);
  gap: 12px;
  border-bottom-color: rgba(225, 104, 96, .28);
}
body.operation-calendar-mode .calendar-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
body.operation-calendar-mode .calendar-icon svg {
  width: 16px;
  height: 16px;
}
body.operation-calendar-mode .calendar-toolbar-title {
  gap: 8px;
}
body.operation-calendar-mode .calendar-toolbar-title small {
  font-size: 9px;
  letter-spacing: .12em;
}
body.operation-calendar-mode .calendar-toolbar-title strong {
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1.12;
}
body.operation-calendar-mode .calendar-toolbar-summary b {
  font-size: 20px;
  line-height: 1;
}
body.operation-calendar-mode .calendar-toolbar-summary span {
  font-size: 9px;
  line-height: 1;
}
body.operation-calendar-mode .calendar-toolbar-summary i {
  height: 16px;
}
body.operation-calendar-mode .calendar-controls {
  gap: 6px;
}
body.operation-calendar-mode .calendar-step,
body.operation-calendar-mode .calendar-today-button,
body.operation-calendar-mode .calendar-month-picker {
  height: 34px;
  border-radius: 8px;
}
body.operation-calendar-mode .calendar-step {
  width: 34px;
  font-size: 20px;
  line-height: 1;
}
body.operation-calendar-mode .calendar-today-button {
  padding-inline: 10px;
  font-size: 10px;
  line-height: 1;
}
body.operation-calendar-mode .calendar-today-button svg {
  width: 13px;
  height: 13px;
}
body.operation-calendar-mode .calendar-month-picker span,
body.operation-calendar-mode .calendar-month-picker input {
  font-size: 10px;
  line-height: 1;
}
body.operation-calendar-mode .calendar-month-picker input {
  width: 126px;
  height: 32px;
}
body.operation-calendar-mode .calendar-scroll {
  min-height: 0;
  display: grid;
  grid-template-rows: 32px minmax(0, 1fr);
  overflow: hidden;
  background: rgba(255, 255, 255, .82);
}
body.operation-calendar-mode .calendar-weekdays,
body.operation-calendar-mode .calendar-grid {
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
body.operation-calendar-mode .calendar-weekdays {
  min-height: 32px;
  border-bottom-color: rgba(222, 124, 116, .3);
  background: linear-gradient(180deg, #fff4f0, #fffaf8);
}
body.operation-calendar-mode .calendar-weekdays span {
  min-width: 0;
  font-size: clamp(10px, .72vw, 13px);
}
body.operation-calendar-mode .calendar-grid {
  height: 100%;
  min-height: 0;
  grid-template-rows: repeat(6, minmax(0, 1fr));
}
body.operation-calendar-mode .calendar-day {
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 7px 10px;
  display: grid;
  grid-template-rows: 26px minmax(0, 1fr);
  overflow: hidden;
  border-color: rgba(226, 160, 153, .42);
  background: linear-gradient(155deg, rgba(255, 255, 255, .98), rgba(255, 252, 250, .93));
}
body.operation-calendar-mode .calendar-day:hover {
  background: linear-gradient(155deg, #fff, #fff6f2);
}
body.operation-calendar-mode .calendar-day.has-events:hover {
  background: linear-gradient(155deg, #fff, #fff3ee);
  box-shadow: inset 0 0 0 1px rgba(216, 61, 56, .24);
}
body.operation-calendar-mode .calendar-day.is-outside {
  background: linear-gradient(155deg, rgba(250, 247, 246, .78), rgba(247, 241, 239, .68));
}
body.operation-calendar-mode .calendar-day > header {
  height: 26px;
  min-height: 0;
}
body.operation-calendar-mode .calendar-day > header time {
  width: 24px;
  height: 24px;
  font-size: clamp(11px, .78vw, 14px);
  line-height: 1;
}
body.operation-calendar-mode .calendar-day > header span {
  font-size: 9px;
}
body.operation-calendar-mode .calendar-events {
  min-height: 0;
  gap: 4px;
  margin-top: 4px;
  overflow: hidden;
  align-content: start;
}
body.operation-calendar-mode .calendar-event {
  min-height: 25px;
  padding: 4px 8px 4px 11px;
  gap: 0;
  border-radius: 6px;
  line-height: 1.2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .62);
}
body.operation-calendar-mode .calendar-event::before {
  top: 5px;
  bottom: 5px;
  width: 3px;
}
body.operation-calendar-mode .calendar-event strong {
  font-size: clamp(11px, .82vw, 15px);
  line-height: 1.2;
}
body.operation-calendar-mode .calendar-event small {
  font-size: clamp(9px, .62vw, 12px);
  line-height: 1.2;
}
body.operation-calendar-mode .calendar-more {
  font-size: clamp(8px, .58vw, 10px);
}
body.operation-calendar-mode .calendar-footer {
  display: none;
}

@media (min-width: 921px) {
  body.operation-calendar-mode .sidebar {
    padding: 14px 11px 18px;
  }
  body.operation-calendar-mode .brand-block {
    padding-bottom: 13px;
  }
  body.operation-calendar-mode .brand-block img,
  body.operation-calendar-mode .admin-sidebar .brand-block img {
    width: 62px;
    height: 62px;
  }
  body.operation-calendar-mode .brand-block strong {
    font-size: 24px;
  }
  body.operation-calendar-mode .sidebar .nav-menu {
    margin-bottom: 149px;
    gap: 4px;
  }
  body.operation-calendar-mode .nav-item,
  body.operation-calendar-mode .admin-sidebar .nav-item {
    min-height: 56px;
    padding-inline: 6px;
    gap: 7px;
    font-size: 24px;
  }
  body.operation-calendar-mode .nav-item svg,
  body.operation-calendar-mode .admin-sidebar .nav-item svg {
    width: 21px;
    height: 21px;
  }
  body.operation-calendar-mode .season-card,
  body.operation-calendar-mode .admin-sidebar .season-card {
    left: 11px;
    right: 11px;
    bottom: 19px;
    min-height: 139px;
    padding: 14px 13px;
    grid-template-columns: 21px 1fr;
    gap: 7px 8px;
  }
  body.operation-calendar-mode .season-card svg {
    width: 21px;
    height: 21px;
  }
  body.operation-calendar-mode .season-card strong,
  body.operation-calendar-mode .admin-sidebar .season-card strong,
  body.operation-calendar-mode .season-card span,
  body.operation-calendar-mode .admin-sidebar .season-card span {
    font-size: 21px;
  }
}

@media (max-width: 1180px) {
  body.operation-calendar-mode .summit-countdown {
    grid-template-columns: minmax(210px, .9fr) minmax(340px, 1.1fr);
  }
  body.operation-calendar-mode .calendar-toolbar {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 920px) {
  body.operation-calendar-mode {
    --sidebar-width: 0px;
    overflow: auto;
  }
  body.operation-calendar-mode .workspace,
  body.operation-calendar-mode .page-content {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  body.operation-calendar-mode .page-content {
    display: block;
    padding: 12px;
  }
  body.operation-calendar-mode .summit-banner-wrap {
    margin-bottom: 10px;
  }
  body.operation-calendar-mode .summit-banner-main {
    min-height: 92px;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }
  body.operation-calendar-mode .summit-title {
    font-size: 36px;
  }
  body.operation-calendar-mode .calendar-panel {
    height: auto;
    min-height: calc(100vh - 220px);
  }
  body.operation-calendar-mode .calendar-scroll {
    overflow-x: auto;
  }
  body.operation-calendar-mode .calendar-weekdays,
  body.operation-calendar-mode .calendar-grid {
    min-width: 760px;
  }
  body.operation-calendar-mode .calendar-grid {
    grid-template-rows: repeat(6, minmax(84px, 1fr));
  }
}

/* Three-end responsive refinement: desktop, tablet, phone */
@media (max-width: 920px) {
  body { padding-bottom: 0; }
  .app-shell { min-height: 100svh; }
  .workspace { min-width: 0; }
  .page-content { padding: 14px 18px 22px; }
  .sidebar {
    position: sticky;
    inset: 0 0 auto 0;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 7px max(10px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
    overflow: visible;
    transform: none;
    color: #fff;
    background: linear-gradient(180deg, rgba(226,73,68,.98), rgba(194,37,39,.98));
    box-shadow: 0 8px 24px rgba(109,34,33,.13);
  }
  body.sidebar-open .sidebar { transform: none; }
  .sidebar::after, .sidebar-aurora, .brand-block, .season-card, .nav-label, .admin-entry-link { display: none; }
  .nav-menu {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(74px, 1fr);
    gap: 5px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .nav-menu::-webkit-scrollbar { display: none; }
  .nav-item,
  .admin-sidebar .nav-item {
    min-height: 55px;
    padding: 5px 6px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }
  .nav-item svg,
  .admin-sidebar .nav-item svg { width: 19px; height: 19px; }
  .nav-count { position: absolute; top: 3px; right: 7px; width: 16px; height: 16px; margin: 0; font-size: 9px; }
  .sidebar-overlay, body.sidebar-open .sidebar-overlay, .workspace-menu, .mobile-menu { display: none; }

  .summit-banner-wrap { margin-bottom: 14px; border-radius: 12px; }
  .summit-banner-main {
    min-height: 124px;
    padding: 14px 18px;
    grid-template-columns: minmax(145px,.82fr) minmax(0,1.18fr);
    gap: 14px;
  }
  .summit-title { justify-content: flex-start; font-size: clamp(34px,7.2vw,50px); letter-spacing: 0; }
  .summit-champion { grid-template-columns: 72px minmax(0,1fr); justify-self: stretch; gap: 13px; }
  .summit-logo-frame { width: 70px; height: 70px; border-width: 3px; border-radius: 18px; }
  .summit-logo-frame img { width: 54px; height: 54px; border-radius: 12px; }
  .summit-logo-frame::before, .summit-logo-frame::after { display: none; }
  .summit-crown { top: 4px; width: 23px; height: 23px; }
  .summit-champion-copy { gap: 5px; }
  .summit-champion-copy strong { font-size: clamp(22px,5vw,32px); }
  .summit-champion-copy span {
    font-size: clamp(12px,2.5vw,16px);
    line-height: 1.35;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .summit-countdown { min-height: 56px; padding: 8px 16px; grid-template-columns: 1fr auto; gap: 10px; }
  .countdown-label { display: none; }
  .summit-date { min-width: 0; }
  .summit-date span { font-size: 10px; }
  .summit-date strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
  .countdown-values { justify-content: flex-end; gap: 3px; }
  .countdown-values > span { margin-right: 2px; font-size: 10px; }
  .countdown-values strong { min-width: 22px; font-size: 22px; }
  .countdown-values i { font-size: 9px; }

  .ranking-panel { border-radius: 12px; }
  .ranking-panel .table-wrap { overflow: visible; }
  .ranking-table { display: block; width: 100%; min-width: 0; border-spacing: 0; }
  .ranking-table thead { display: none; }
  .ranking-table tbody { display: grid; gap: 8px; padding: 8px; }
  .ranking-table tbody tr,
  .ranking-table tbody tr.top-rank {
    display: grid;
    grid-template-columns: 94px minmax(220px, 1fr) 72px 72px 72px minmax(150px, .8fr);
    align-items: center;
    gap: 8px 10px;
    min-height: 68px;
    padding: 10px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fff;
  }
  .ranking-table tbody tr.top-rank { border-color: #ff9089; background: #fff3f1; }
  .ranking-table tbody tr.top-rank td,
  .ranking-table tbody tr.top-rank td:first-child,
  .ranking-table tbody tr.top-rank td:last-child,
  .ranking-table tbody tr.top-rank-1 td,
  .ranking-table tbody tr.top-rank-3 td { border: 0; background: transparent; }
  .ranking-table td { display: block; height: auto; min-width: 0; padding: 0; border: 0; background: transparent; font-size: 12px; }
  .ranking-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .ranking-table td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .ranking-table td:nth-child(3)::before { content: "业绩"; }
  .ranking-table td:nth-child(4)::before { content: "新客户"; }
  .ranking-table td:nth-child(5)::before { content: "商机"; }
  .ranking-table td:nth-child(3),
  .ranking-table td:nth-child(4),
  .ranking-table td:nth-child(5) {
    display: grid;
    min-width: 56px;
    gap: 2px;
    color: #402926;
    font-family: var(--font-number);
    text-align: left;
  }
  .ranking-table td:nth-child(3)::before,
  .ranking-table td:nth-child(4)::before,
  .ranking-table td:nth-child(5)::before { color: #a88884; font-family: var(--font-body); font-size: 10px; }
  .ranking-table td:nth-child(6) { grid-column: 6; grid-row: 1; }
  .rank-cell { width: auto; min-width: 0; padding-left: 0; }
  .rank-award,
  .rank-standard { width: 76px; min-width: 76px; height: 44px; }
  .rank-award { display: flex; align-items: center; gap: 7px; }
  .rank-award > span { position: static; display: block; width: auto; transform: none; text-align: left; }
  .rank-trophy { position: static; width: 28px; height: 28px; flex: 0 0 auto; }
  .rank-award strong { display: block; font-size: 12px; }
  .rank-award small { display: none; }
  .rank-standard .rank-badge { left: 0; top: 7px; transform: none; }
  .company-cell { min-width: 0; gap: 8px; }
  .company-avatar { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 8px; }
  .company-name { min-width: 0; overflow: hidden; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
  .progress-cell { min-width: 0; }
  .progress-line { gap: 8px; }
  .progress-track { min-width: 0; }
  .progress-value { width: 44px; font-size: 12px; }
  .table-footer { padding: 10px 12px; font-size: 11px; }

  .cockpit-shell { min-height: 0; padding: 12px; border-radius: 12px; }
  .cockpit-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cockpit-kpi { min-height: 74px; padding: 11px 12px; }
  .cockpit-kpi strong { font-size: 24px; }
  .cockpit-main-grid, .cockpit-bottom-grid, .business-main-grid { grid-template-columns: 1fr; }
  .combat-ring-panel { grid-column: auto; grid-row: auto; }
  .cockpit-table-wrap { overflow-x: auto; }
  .cockpit-table { min-width: 920px; }

  .admin-content { padding: 14px 18px 22px; }
  .page-heading { min-height: 0; margin: 0 0 12px; align-items: stretch; flex-direction: column; gap: 10px; }
  .page-heading h1 { font-size: 22px; letter-spacing: 0; }
  .page-heading p { max-width: none; font-size: 12px; line-height: 1.5; }
  .page-heading > .primary-button { width: 100%; min-height: 42px; padding: 0 12px; font-size: 12px; }
  .admin-panel, .add-company-panel { padding: 14px; border-radius: 12px; }
  .business-company-form, .add-company-form, .settings-form, .notice-editor form { grid-template-columns: 1fr 1fr; gap: 10px; }
  .entry-table { min-width: 720px; }
  .company-admin-table, .operation-admin-table { min-width: 980px; }
  .entry-input, .company-input, .rule-form-grid input, .threshold-control input { height: 38px; font-size: 14px; }
}

@media (max-width: 640px) {
  body { padding-bottom: 0; }
  .page-content, .admin-content { padding: 10px 12px 18px; }
  .nav-menu { grid-auto-columns: minmax(67px, 1fr); }
  .nav-item, .admin-sidebar .nav-item { min-height: 52px; padding: 5px 4px; font-size: 10px; }
  .nav-item svg, .admin-sidebar .nav-item svg { width: 18px; height: 18px; }
  .summit-banner-main { min-height: 104px; padding: 12px; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .summit-title { font-size: 30px; line-height: 1.05; }
  .summit-champion { grid-template-columns: 58px minmax(0, 1fr); gap: 9px; }
  .summit-logo-frame { width: 56px; height: 56px; border-radius: 14px; }
  .summit-logo-frame img { width: 43px; height: 43px; border-radius: 10px; }
  .summit-crown { width: 19px; height: 19px; }
  .summit-champion-copy strong { font-size: 18px; }
  .summit-champion-copy span { font-size: 10px; }
  .summit-countdown { min-height: 64px; padding: 8px 10px; grid-template-columns: 1fr; justify-items: center; gap: 5px; }
  .summit-date span { font-size: 9px; }
  .summit-date strong { font-size: 10px; }
  .countdown-values { justify-content: center; }
  .countdown-values strong { min-width: 20px; font-size: 19px; }

  .ranking-table tbody { gap: 7px; padding: 7px; }
  .ranking-table tbody tr,
  .ranking-table tbody tr.top-rank {
    grid-template-columns: 62px repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 96px;
    padding: 10px;
  }
  .ranking-table td:nth-child(1) { grid-column: 1; grid-row: 1 / span 3; }
  .ranking-table td:nth-child(2) { grid-column: 2 / -1; grid-row: 1; }
  .ranking-table td:nth-child(3) { grid-column: 2; grid-row: 2; }
  .ranking-table td:nth-child(4) { grid-column: 3; grid-row: 2; }
  .ranking-table td:nth-child(5) { grid-column: 4; grid-row: 2; }
  .ranking-table td:nth-child(6) { grid-column: 2 / -1; grid-row: 3; }
  .rank-award, .rank-standard { width: 52px; min-width: 52px; height: 62px; }
  .rank-award { flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
  .rank-trophy { width: 24px; height: 24px; }
  .rank-award strong { font-size: 11px; text-align: center; }
  .rank-badge { width: 29px; height: 29px; font-size: 11px; }
  .rank-standard .rank-badge { left: 50%; top: 16px; transform: translateX(-50%); }
  .company-avatar { width: 30px; height: 30px; }
  .company-name { font-size: 12px; }
  .ranking-table td:nth-child(3),
  .ranking-table td:nth-child(4),
  .ranking-table td:nth-child(5) { min-width: 0; font-size: 12px; }
  .progress-line { align-items: center; }
  .progress-value { width: 42px; font-size: 11px; }
  .table-footer { flex-direction: column; gap: 4px; }

  .kpi-grid, .cockpit-kpis { grid-template-columns: 1fr; }
  .cockpit-table { min-width: 760px; }
  .business-company-form, .add-company-form, .settings-form, .notice-editor form { grid-template-columns: 1fr; }
  .entry-table { min-width: 620px; }
  .company-admin-table, .operation-admin-table { min-width: 840px; }
  .operation-admin-toolbar { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 921px) and (max-width: 1180px) {
  :root { --sidebar-width: 176px; }
  .sidebar { padding-inline: 12px; }
  .brand-block img { width: 58px; height: 58px; }
  .brand-block strong { font-size: 21px; letter-spacing: 0; }
  .nav-item { min-height: 44px; padding-inline: 10px; gap: 9px; font-size: 12px; }
  .season-card { padding: 11px; }
  .workspace { margin-left: var(--sidebar-width); }
  .page-content { padding: 14px 18px 22px; }
  .summit-banner-main { min-height: 122px; padding-inline: 24px; grid-template-columns: minmax(170px,.6fr) minmax(0,1.4fr); }
  .summit-title { font-size: 42px; letter-spacing: 0; }
  .summit-countdown { min-height: 56px; grid-template-columns: minmax(210px,.9fr) minmax(0,1.1fr); gap: 14px; }
  .ranking-table { min-width: 0; }
  .rank-cell { width: 140px; min-width: 140px; }
  .progress-cell { min-width: 150px; }
  .company-cell { min-width: 260px; }
  th, td { padding-inline: 10px; }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .ranking-table { min-width: 1040px; }
  .rank-cell { width: 136px; min-width: 136px; }
  .company-cell { min-width: 310px; }
  .progress-cell { min-width: 170px; }
  th, td { padding-inline: 10px; }
}

/* Admin responsive containment: keep wide management controls inside the page */
.workspace,
.page-content,
.view-panel,
.panel,
.admin-panel,
.add-company-panel,
.table-wrap {
  min-width: 0;
}

.admin-content {
  max-width: 100%;
  overflow-x: hidden;
}

.admin-content .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.business-company-form,
.add-company-form {
  width: 100%;
  max-width: 100%;
}

.business-company-form > *,
.add-company-form > *,
.settings-form > *,
.notice-editor form > * {
  min-width: 0;
}

@media (min-width: 921px) {
  .business-company-form {
    grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(120px, .75fr)) minmax(180px, .9fr) minmax(120px, auto);
  }
  .add-company-form input,
  .add-company-form select {
    width: 100%;
    min-width: 0;
  }
  .add-company-form .secondary-button {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
    white-space: nowrap;
  }
  .logo-upload-input {
    width: 100%;
    min-width: 0;
  }
  .company-table-panel {
    overflow: hidden;
  }
  .company-table-panel .table-wrap,
  .admin-panel .table-wrap {
    width: 100%;
  }
}

@media (min-width: 921px) and (max-width: 1500px) {
  .business-company-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .add-company-form .secondary-button {
    min-height: 46px;
  }
}

/* Phone calendar fit: all seven dates stay visible without side scrolling. */
.panel,
.kpi-card,
.public-operation-panel,
.cockpit-panel,
.admin-panel,
.add-company-panel,
.season-card {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (max-width: 640px) {
  body.operation-calendar-mode .summit-countdown {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 5px;
  }
  body.operation-calendar-mode .countdown-label {
    display: none;
  }
  body.operation-calendar-mode .countdown-values {
    width: 100%;
    min-width: 0;
    justify-content: center;
    flex-wrap: wrap;
  }
  body.operation-calendar-mode .page-content {
    padding: 10px 12px 16px;
  }
  body.operation-calendar-mode .calendar-panel {
    min-height: 0;
    border-radius: 10px;
    overflow: hidden;
  }
  body.operation-calendar-mode .calendar-toolbar {
    min-height: 0;
    padding: 9px 10px;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  body.operation-calendar-mode .calendar-toolbar-title {
    gap: 7px;
  }
  body.operation-calendar-mode .calendar-icon {
    width: 30px;
    height: 30px;
  }
  body.operation-calendar-mode .calendar-toolbar-title small {
    font-size: 8px;
  }
  body.operation-calendar-mode .calendar-toolbar-title strong {
    font-size: 18px;
  }
  body.operation-calendar-mode .calendar-toolbar-summary {
    justify-content: flex-start;
    gap: 8px;
  }
  body.operation-calendar-mode .calendar-toolbar-summary b {
    font-size: 16px;
  }
  body.operation-calendar-mode .calendar-toolbar-summary span {
    font-size: 8px;
  }
  body.operation-calendar-mode .calendar-controls {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
  }
  body.operation-calendar-mode .calendar-step,
  body.operation-calendar-mode .calendar-month-picker,
  body.operation-calendar-mode .calendar-today-button {
    height: 32px;
  }
  body.operation-calendar-mode .calendar-today-button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  body.operation-calendar-mode .calendar-month-picker {
    min-width: 0;
  }
  body.operation-calendar-mode .calendar-month-picker input {
    width: 100%;
    min-width: 0;
    height: 30px;
    font-size: 10px;
  }
  body.operation-calendar-mode .calendar-scroll {
    width: 100%;
    overflow-x: hidden;
    grid-template-rows: 30px auto;
  }
  body.operation-calendar-mode .calendar-weekdays,
  body.operation-calendar-mode .calendar-grid,
  .operation-public-page .calendar-weekdays,
  .operation-public-page .calendar-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  body.operation-calendar-mode .calendar-weekdays {
    min-height: 30px;
  }
  body.operation-calendar-mode .calendar-weekdays span {
    min-width: 0;
    font-size: 9px;
  }
  body.operation-calendar-mode .calendar-grid {
    height: auto;
    grid-template-rows: repeat(6, minmax(67px, 1fr));
  }
  body.operation-calendar-mode .calendar-day {
    min-width: 0;
    min-height: 67px;
    height: 67px;
    padding: 3px 2px;
    grid-template-rows: 18px minmax(0, 1fr);
  }
  body.operation-calendar-mode .calendar-day > header {
    height: 18px;
  }
  body.operation-calendar-mode .calendar-day > header time {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
  body.operation-calendar-mode .calendar-day > header span {
    display: none;
  }
  body.operation-calendar-mode .calendar-events {
    gap: 1px;
    margin-top: 2px;
  }
  body.operation-calendar-mode .calendar-event {
    min-height: 14px;
    padding: 2px 2px 2px 5px;
    border-radius: 4px;
    line-height: 1.1;
  }
  body.operation-calendar-mode .calendar-event::before {
    top: 3px;
    bottom: 3px;
    width: 2px;
  }
  body.operation-calendar-mode .calendar-event strong {
    font-size: 6.5px;
    line-height: 1.1;
  }
  body.operation-calendar-mode .calendar-event small {
    display: none;
  }
  body.operation-calendar-mode .calendar-more {
    padding: 0 1px;
    font-size: 5.5px;
    line-height: 1.05;
  }
}

@media (min-width: 641px) and (max-width: 920px) {
  body.operation-calendar-mode .calendar-scroll {
    overflow-x: hidden;
  }
  body.operation-calendar-mode .calendar-weekdays,
  body.operation-calendar-mode .calendar-grid,
  .operation-public-page .calendar-weekdays,
  .operation-public-page .calendar-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  body.operation-calendar-mode .calendar-grid {
    grid-template-rows: repeat(6, minmax(86px, 1fr));
  }
  body.operation-calendar-mode .calendar-day {
    min-width: 0;
    min-height: 86px;
    padding: 5px 6px;
  }
  body.operation-calendar-mode .calendar-event {
    min-height: 18px;
    padding: 3px 5px 3px 8px;
  }
  body.operation-calendar-mode .calendar-event strong {
    font-size: 9px;
  }
  body.operation-calendar-mode .calendar-event small {
    font-size: 7px;
  }
}

/* Phone summit banner: keep the brand readable and push champion info right. */
@media (max-width: 640px) {
  .summit-banner-main {
    padding: 11px 12px;
    grid-template-columns: minmax(118px, .78fr) minmax(0, 1fr);
    gap: 6px;
  }
  .summit-title {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 1px;
    overflow: visible;
    font-size: clamp(24px, 7vw, 28px);
    letter-spacing: 0;
    white-space: nowrap;
  }
  .summit-champion {
    width: min(100%, 170px);
    grid-template-columns: 48px minmax(0, 1fr);
    justify-self: end;
    gap: 7px;
  }
  .summit-logo-frame {
    width: 48px;
    height: 48px;
    border-width: 3px;
    border-radius: 13px;
  }
  .summit-logo-frame img {
    width: 37px;
    height: 37px;
    border-radius: 9px;
  }
  .summit-crown {
    top: -2px;
    width: 17px;
    height: 17px;
  }
  .summit-champion-copy {
    min-width: 0;
    gap: 3px;
  }
  .summit-champion-copy strong {
    font-size: 18px;
  }
  .summit-champion-copy span {
    max-width: 112px;
    font-size: 9px;
    line-height: 1.25;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

@media (max-width: 360px) {
  .summit-banner-main {
    grid-template-columns: minmax(110px, .75fr) minmax(0, 1fr);
    gap: 4px;
  }
  .summit-title {
    font-size: 23px;
  }
  .summit-champion {
    width: min(100%, 154px);
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 6px;
  }
  .summit-logo-frame {
    width: 42px;
    height: 42px;
  }
  .summit-logo-frame img {
    width: 32px;
    height: 32px;
  }
  .summit-champion-copy strong {
    font-size: 16px;
  }
  .summit-champion-copy span {
    max-width: 100px;
    font-size: 8px;
  }
}

.duty-admin-mount,
.duty-admin-section + .operation-table-panel {
  margin-top: 14px;
}

.duty-admin-section:not(:first-child) {
  margin-top: 18px;
}

.duty-admin-mount .operation-date-guide strong {
  font-size: 14px;
}

/* PK维度榜 */
.pk-public-page { max-width: 1400px; }
.pk-panel { overflow: hidden; border-color: #efc6c0; background: rgba(255,253,252,.92); }
.pk-panel-header { display: flex; min-height: 82px; padding: 17px 20px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #efd4d0; background: linear-gradient(110deg,#fff0ed,#fffaf6 62%,#fff1e4); }
.pk-panel-header div { display: grid; gap: 4px; }
.pk-panel-header span { color: #d34842; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.pk-panel-header h1 { margin: 0; color: #442421; font-size: 27px; line-height: 1.15; letter-spacing: 0; }
.pk-panel-header strong { display: inline-flex; min-height: 34px; padding: 0 13px; align-items: center; gap: 4px; border: 1px solid #eeb8b2; border-radius: 10px; color: #8a5652; background: #fff; font-size: 12px; white-space: nowrap; }
.pk-panel-header strong b { color: #d83d38; font-family: var(--font-number); font-size: 20px; }
.pk-table-wrap { overflow: auto; }
.pk-table, .pk-admin-table { width: 100%; min-width: 1040px; border-collapse: separate; border-spacing: 0; }
.pk-table th, .pk-admin-table th { height: 42px; font-size: 11px; }
.pk-table td, .pk-admin-table td { height: 58px; font-size: 12px; line-height: 1.45; }
.pk-table td:nth-child(1), .pk-admin-table td:nth-child(1) { width: 70px; }
.pk-table td:nth-child(3) { width: 56px; padding-inline: 4px; text-align: center; }
.pk-table td:nth-child(5), .pk-admin-table td:nth-child(4) { width: 170px; color: #6c4a47; white-space: nowrap; }
.pk-table td:nth-child(6), .pk-admin-table td:nth-child(5) { width: 31%; }
.pk-table td:nth-child(7), .pk-admin-table td:nth-child(6) { width: 34%; }
.pk-table tbody tr:hover td, .pk-admin-table tbody tr:hover td { background: #fff8f7; }
.pk-index { display: inline-grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #d83d38; background: #fff0ed; font-family: var(--font-number); font-size: 12px; font-weight: 800; }
.pk-company { display: inline-block; color: #3f2320; font-size: 17px; line-height: 1.3; white-space: nowrap; }
.pk-versus { display: grid; place-items: center; }
.pk-versus span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e9aaa3; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#f26159,#c92f2c); font-family: var(--font-number); font-size: 12px; font-weight: 900; box-shadow: 0 7px 14px rgba(207,53,48,.16); }
.pk-dimension, .pk-wager { white-space: pre-line; overflow-wrap: anywhere; }
.pk-dimension { color: #432926; font-weight: 650; }
.pk-wager { color: #60413e; }
.pk-wager.is-pending { color: #df2f2f; font-weight: 850; }
.pk-form-panel { margin-bottom: 14px; }
.pk-form { display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)) repeat(2,minmax(210px,1.25fr)) auto; gap: 12px; align-items: end; }
.pk-form label { display: grid; min-width: 0; gap: 6px; color: #654845; font-size: 12px; font-weight: 700; }
.pk-form input, .pk-form textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; color: #4f312e; background: #fff; outline: 0; }
.pk-form input { height: 42px; padding: 0 12px; }
.pk-form textarea { min-height: 72px; padding: 9px 11px; resize: vertical; line-height: 1.45; }
.pk-form input:focus, .pk-form textarea:focus { border-color: #ec8d85; box-shadow: 0 0 0 3px rgba(239,85,79,.09); }
.pk-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.pk-admin-panel { overflow: hidden; }

@media (max-width: 1180px) {
  .pk-form { grid-template-columns: repeat(2,minmax(180px,1fr)); }
  .pk-form-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 920px) {
  .pk-panel-header { min-height: 72px; padding: 14px 16px; }
  .pk-panel-header h1 { font-size: 23px; }
  .pk-table, .pk-admin-table { min-width: 920px; }
  .pk-company { font-size: 15px; }
}

@media (max-width: 640px) {
  .pk-panel { border-radius: 14px; }
  .pk-panel-header { align-items: flex-start; flex-direction: column; gap: 9px; }
  .pk-panel-header span { font-size: 9px; }
  .pk-panel-header h1 { font-size: 22px; }
  .pk-panel-header strong { min-height: 30px; font-size: 11px; }
  .pk-table-wrap { overflow: visible; }
  .pk-table { display: block; min-width: 0; }
  .pk-table thead { display: none; }
  .pk-table tbody { display: grid; gap: 10px; padding: 10px; }
  .pk-table tr { display: grid; grid-template-columns: 40px minmax(0,1fr) 42px minmax(0,1fr); gap: 9px 7px; padding: 12px; border: 1px solid #efd2ce; border-radius: 12px; background: #fff; box-shadow: 0 7px 17px rgba(102,49,45,.07); }
  .pk-table td { display: block; width: auto !important; height: auto; min-width: 0; padding: 0; border: 0; background: transparent; font-size: 12px; line-height: 1.45; }
  .pk-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .pk-table td:nth-child(2) { grid-column: 2; grid-row: 1; align-self: center; }
  .pk-table td:nth-child(3) { grid-column: 3; grid-row: 1; align-self: center; }
  .pk-table td:nth-child(4) { grid-column: 4; grid-row: 1; align-self: center; }
  .pk-table td:nth-child(5) { grid-column: 1 / -1; grid-row: 2; color: #7a5956; }
  .pk-table td:nth-child(6) { grid-column: 1 / -1; grid-row: 3; }
  .pk-table td:nth-child(7) { grid-column: 1 / -1; grid-row: 4; }
  .pk-table td:nth-child(5)::before,
  .pk-table td:nth-child(6)::before,
  .pk-table td:nth-child(7)::before { display: block; margin-bottom: 3px; color: #aa817d; font-size: 10px; font-weight: 800; }
  .pk-table td:nth-child(5)::before { content: "时间段"; }
  .pk-table td:nth-child(6)::before { content: "PK维度"; }
  .pk-table td:nth-child(7)::before { content: "PK赌注"; }
  .pk-index { width: 32px; height: 32px; }
  .pk-company { max-width: 100%; font-size: 16px; white-space: normal; overflow-wrap: anywhere; }
  .pk-versus span { width: 32px; height: 32px; font-size: 11px; }
  .pk-form { grid-template-columns: 1fr; }
  .pk-form-actions { justify-content: stretch; }
  .pk-form-actions button { flex: 1; }
  .pk-admin-table { min-width: 920px; }
}

/* PK大屏：企业 VS 企业实时进度 */
body.pk-screen-mode {
  overflow-x: hidden;
  background: #190608;
}
body.pk-screen-mode .workspace {
  background:
    radial-gradient(circle at 48% 18%, rgba(255, 91, 82, .14), transparent 28%),
    radial-gradient(circle at 82% 76%, rgba(246, 189, 67, .09), transparent 28%),
    linear-gradient(135deg, #1b070a, #2a0b10 42%, #140507);
}
body.pk-screen-mode .page-content {
  max-width: none;
  padding: 10px 12px 14px;
}
body.pk-screen-mode .view-panel,
.pk-public-page {
  max-width: none;
}
body.pk-screen-mode .summit-banner-wrap {
  display: none;
}
body.pk-screen-mode .sidebar {
  color: #f5d7d0;
  background: linear-gradient(180deg, #320c10, #170609);
  box-shadow: 8px 0 28px rgba(0, 0, 0, .28);
}
body.pk-screen-mode .brand-block strong {
  color: #ffd980;
  text-shadow: 0 0 14px rgba(255, 210, 108, .22);
}
body.pk-screen-mode .nav-item {
  color: #f1c5bf;
}
body.pk-screen-mode .nav-item:hover {
  background: rgba(255, 91, 82, .12);
}
body.pk-screen-mode .nav-item.is-active {
  color: #fff7e8;
  background: linear-gradient(135deg, #e03d38, #8d1719);
  box-shadow: 0 10px 24px rgba(224, 61, 56, .24);
}
body.pk-screen-mode .season-card {
  border-color: rgba(255, 209, 117, .22);
  color: #f2d1cb;
  background: rgba(70, 18, 21, .74);
}
.pk-screen {
  position: relative;
  display: grid;
  min-height: calc(100vh - 24px);
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 12px;
  color: #f9ded8;
}
.pk-screen::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(255, 91, 82, .12);
  clip-path: polygon(0 0, 17% 0, 19% 2px, 81% 2px, 83% 0, 100% 0, 100% 100%, 0 100%);
}
.pk-battle-menu,
.pk-duel-stage {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid #71302e;
  border-radius: 13px;
  background: linear-gradient(155deg, rgba(44, 12, 18, .95), rgba(20, 7, 10, .94));
  box-shadow: inset 0 0 28px rgba(255, 70, 63, .04), 0 16px 38px rgba(0, 0, 0, .18);
}
.pk-battle-menu::before,
.pk-duel-stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 94, 85, .82), transparent);
}
.pk-battle-menu {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}
.pk-battle-menu-title {
  display: flex;
  min-height: 70px;
  padding: 15px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 91, 82, .13);
}
.pk-battle-menu-title span {
  color: #f05d55;
  font-size: 13px;
  font-weight: 850;
}
.pk-battle-menu-title strong {
  display: inline-flex;
  min-height: 30px;
  padding: 0 10px;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(246, 189, 67, .28);
  border-radius: 999px;
  color: #d5aaa4;
  background: rgba(255, 255, 255, .04);
  font-size: 11px;
  white-space: nowrap;
}
.pk-battle-menu-title b {
  color: #f6bd43;
  font-family: var(--font-number);
  font-size: 17px;
}
.pk-battle-tabs {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 0;
  padding: 12px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 91, 82, .52) transparent;
}
.pk-battle-tabs::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.pk-battle-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.pk-battle-tabs::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(255, 91, 82, .52);
}
.pk-battle-tab {
  display: grid;
  width: 100%;
  min-height: 76px;
  padding: 11px 12px;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 3px 10px;
  border: 1px solid rgba(255, 91, 82, .16);
  border-radius: 10px;
  color: #f1cbc5;
  background: rgba(255, 255, 255, .035);
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.pk-battle-tab:hover,
.pk-battle-tab.is-active {
  border-color: rgba(246, 189, 67, .66);
  background: linear-gradient(135deg, rgba(224, 61, 56, .32), rgba(246, 189, 67, .08));
  transform: translateY(-1px);
}
.pk-battle-tab > span {
  display: grid;
  width: 31px;
  height: 31px;
  grid-row: 1 / 3;
  place-items: center;
  border: 1px solid rgba(246, 189, 67, .35);
  border-radius: 50%;
  color: #f6bd43;
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 900;
}
.pk-battle-tab strong {
  min-width: 0;
  overflow: hidden;
  color: #fff1ea;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pk-battle-tab strong b {
  color: #f6bd43;
  font-family: var(--font-number);
  font-size: 11px;
}
.pk-battle-tab small {
  min-width: 0;
  overflow: hidden;
  color: #a97e78;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pk-duel-stage {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.pk-stage-header {
  display: flex;
  min-height: 82px;
  padding: 17px 20px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 91, 82, .13);
}
.pk-stage-header div {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.pk-stage-header span {
  color: #f05d55;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
}
.pk-stage-header h1 {
  margin: 0;
  overflow: hidden;
  color: #fff2e9;
  font-size: clamp(25px, 2.2vw, 38px);
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 0 #6d1f1c, 0 0 20px rgba(255, 97, 74, .22);
}
.pk-stage-header > strong {
  display: inline-flex;
  min-height: 38px;
  padding: 0 16px;
  align-items: center;
  border: 1px solid rgba(246, 189, 67, .5);
  border-radius: 999px;
  color: #281200;
  background: linear-gradient(145deg, #ffe598, #f4b840);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(246, 189, 67, .14);
}
.pk-duel-arena {
  position: relative;
  display: grid;
  min-height: 0;
  padding: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(92px, .18fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}
.pk-duel-arena::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 91, 82, .6), transparent);
  box-shadow: 0 0 14px rgba(255, 91, 82, .42);
}
.pk-duel-card {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 18px;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 91, 82, .18);
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(71, 18, 23, .9), rgba(18, 6, 9, .84));
  box-shadow: inset 0 0 34px rgba(255, 86, 78, .04);
}
.pk-duel-card.right {
  background: linear-gradient(160deg, rgba(49, 20, 55, .8), rgba(18, 6, 9, .84));
}
.pk-duel-card.is-leading {
  border-color: rgba(246, 189, 67, .58);
  box-shadow: inset 0 0 34px rgba(246, 189, 67, .08), 0 0 24px rgba(246, 189, 67, .08);
}
.pk-duel-card.is-chasing {
  opacity: .92;
}
.pk-duel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .07), transparent 22% 74%, rgba(255, 91, 82, .05));
}
.pk-duel-card-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pk-duel-card-top span {
  display: inline-flex;
  min-height: 28px;
  padding: 0 10px;
  align-items: center;
  border: 1px solid rgba(255, 91, 82, .28);
  border-radius: 999px;
  color: #ff8b7d;
  background: rgba(255, 91, 82, .09);
  font-size: 12px;
  font-weight: 850;
}
.pk-duel-card.right .pk-duel-card-top span {
  border-color: rgba(246, 189, 67, .24);
  color: #ffd980;
  background: rgba(246, 189, 67, .08);
}
.pk-duel-card-top strong {
  color: #c79a93;
  font-size: 12px;
}
.pk-duel-company {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
}
.pk-duel-company img {
  width: 74px;
  height: 74px;
  padding: 8px;
  border: 1px solid rgba(246, 189, 67, .28);
  border-radius: 15px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}
.pk-duel-company div {
  min-width: 0;
}
.pk-duel-company h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #fff7ef;
  font-size: clamp(27px, 2.4vw, 40px);
  line-height: 1.08;
}
.pk-duel-company small {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #f6bd43;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.pk-duel-score {
  position: relative;
  display: grid;
  gap: 3px;
  justify-items: start;
}
.pk-duel-card.right .pk-duel-score {
  justify-items: end;
  text-align: right;
}
.pk-duel-score span {
  color: #c9948d;
  font-size: 12px;
}
.pk-duel-score strong {
  color: #ff665d;
  font-family: var(--font-number);
  font-size: clamp(52px, 5.2vw, 86px);
  line-height: .9;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(255, 91, 82, .18);
}
.pk-duel-card.right .pk-duel-score strong,
.pk-duel-card.is-leading .pk-duel-score strong {
  color: #f6bd43;
  text-shadow: 0 0 24px rgba(246, 189, 67, .17);
}
.pk-duel-score b {
  margin-left: 4px;
  font-size: .38em;
}
.pk-score-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 91, 82, .24);
  border-radius: 999px;
  background: rgba(8, 3, 5, .82);
}
.pk-score-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d72e31, #ff6b5e);
  box-shadow: 0 0 13px #f24a43;
  transition: width .45s ease;
}
.pk-duel-card.right .pk-score-track i {
  background: linear-gradient(90deg, #f6bd43, #ffdf84);
  box-shadow: 0 0 13px rgba(246, 189, 67, .8);
}
.pk-metric-list {
  position: relative;
  display: grid;
  align-content: start;
  gap: 11px;
  min-height: 0;
}
.pk-metric-row {
  display: grid;
  gap: 5px;
}
.pk-metric-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pk-metric-line span {
  color: #ecd1cb;
  font-size: 14px;
  font-weight: 750;
}
.pk-metric-line strong {
  color: #ff8b7d;
  font-family: var(--font-number);
  font-size: 18px;
}
.pk-metric-row.right .pk-metric-line strong {
  color: #ffd980;
}
.pk-metric-track {
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 91, 82, .18);
  border-radius: 999px;
  background: rgba(0, 0, 0, .34);
}
.pk-metric-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d72e31, #ff6b5e);
  transition: width .45s ease;
}
.pk-metric-row.right .pk-metric-track i {
  background: linear-gradient(90deg, #f6bd43, #ffdf84);
}
.pk-metric-row small {
  overflow: hidden;
  color: #a97e78;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pk-duel-center {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  place-items: center;
  align-content: center;
  gap: 12px;
}
.pk-duel-center > span {
  color: #d7aaa4;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
}
.pk-duel-center > strong {
  display: grid;
  width: clamp(78px, 7vw, 122px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(246, 189, 67, .48);
  border-radius: 50%;
  color: #280f00;
  background:
    radial-gradient(circle at 50% 38%, #fff0b5, #f6bd43 58%, #b96c12);
  font-family: var(--font-number);
  font-size: clamp(26px, 2.5vw, 43px);
  font-weight: 950;
  box-shadow: 0 0 28px rgba(246, 189, 67, .18), inset 0 0 18px rgba(255, 255, 255, .22);
}
.pk-duel-diff {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #d7aaa4;
}
.pk-duel-diff small {
  font-size: 10px;
}
.pk-duel-diff b {
  color: #fff0d2;
  font-family: var(--font-number);
  font-size: 18px;
}
.pk-duel-info-grid {
  display: grid;
  padding: 0 18px 18px;
  grid-template-columns: minmax(170px, .72fr) minmax(260px, 1.1fr) minmax(240px, 1fr);
  gap: 12px;
}
.pk-duel-info-grid article {
  min-width: 0;
  min-height: 86px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 91, 82, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}
.pk-duel-info-grid span {
  display: block;
  margin-bottom: 7px;
  color: #f05d55;
  font-size: 11px;
  font-weight: 850;
}
.pk-duel-info-grid strong {
  display: block;
  color: #fff2e9;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.pk-duel-info-grid strong.is-pending {
  color: #ff6b5e;
}
.pk-duel-info-grid p {
  margin: 6px 0 0;
  color: #b98d86;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-line;
}
.pk-empty-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  color: #cda59f;
  font-size: 18px;
}

@media (min-width: 921px) {
  body.pk-screen-mode .page-content {
    padding: 12px;
  }
  body.pk-screen-mode .sidebar .nav-menu {
    scrollbar-color: rgba(255, 91, 82, .42) transparent;
  }
}

@media (min-width: 1500px) {
  .pk-screen {
    grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
    gap: 16px;
  }
  .pk-duel-arena {
    padding: 22px;
    gap: 18px;
  }
  .pk-duel-card {
    padding: 22px;
  }
}

@media (max-width: 1180px) {
  .pk-screen {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: auto;
  }
  .pk-battle-menu {
    min-height: 0;
  }
  .pk-battle-menu-title {
    min-height: 52px;
    padding: 10px 12px;
  }
  .pk-battle-tabs {
    display: flex;
    padding: 10px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .pk-battle-tab {
    width: min(280px, 72vw);
    flex: 0 0 auto;
  }
  .pk-duel-stage {
    min-height: 620px;
  }
  .pk-duel-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  body.pk-screen-mode .page-content {
    padding: 12px;
  }
  .pk-duel-arena {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .pk-duel-arena::before {
    top: 49%;
    left: 50%;
    width: 1px;
    height: 72%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, transparent, rgba(255, 91, 82, .45), transparent);
  }
  .pk-duel-center {
    min-height: 92px;
    grid-row: 2;
  }
  .pk-duel-center > span {
    writing-mode: horizontal-tb;
  }
  .pk-duel-center > strong {
    width: 78px;
  }
  .pk-duel-info-grid {
    padding: 0 12px 12px;
  }
}

@media (max-width: 640px) {
  body.pk-screen-mode .page-content {
    padding: 10px;
  }
  .pk-screen {
    gap: 10px;
  }
  .pk-battle-menu,
  .pk-duel-stage {
    border-radius: 10px;
  }
  .pk-battle-menu-title span {
    font-size: 11px;
  }
  .pk-battle-tab {
    width: min(246px, 78vw);
    min-height: 67px;
    padding: 9px 10px;
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .pk-battle-tab > span {
    width: 28px;
    height: 28px;
  }
  .pk-battle-tab strong {
    font-size: 13px;
  }
  .pk-stage-header {
    min-height: 76px;
    padding: 13px 13px 10px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .pk-stage-header h1 {
    width: 100%;
    font-size: 23px;
    white-space: normal;
  }
  .pk-stage-header > strong {
    min-height: 32px;
    padding-inline: 12px;
    font-size: 13px;
  }
  .pk-duel-stage {
    min-height: 0;
  }
  .pk-duel-arena {
    padding: 10px;
  }
  .pk-duel-card {
    padding: 13px;
    gap: 10px;
    border-radius: 10px;
  }
  .pk-duel-company {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }
  .pk-duel-company img {
    width: 54px;
    height: 54px;
    padding: 6px;
    border-radius: 12px;
  }
  .pk-duel-company h2 {
    font-size: 24px;
  }
  .pk-duel-company small {
    margin-top: 5px;
    font-size: 10px;
    -webkit-line-clamp: 2;
  }
  .pk-duel-score strong {
    font-size: 48px;
  }
  .pk-metric-line span {
    font-size: 12px;
  }
  .pk-metric-line strong {
    font-size: 15px;
  }
  .pk-metric-row small {
    font-size: 10px;
  }
  .pk-duel-info-grid article {
    min-height: 0;
    padding: 11px 12px;
  }
  .pk-duel-info-grid strong {
    font-size: 13px;
  }
  .pk-duel-info-grid p {
    font-size: 11px;
  }
}

/* PK大屏 HUD 强化：数据可视化质感 */
body.pk-screen-mode .workspace {
  background:
    linear-gradient(rgba(255, 72, 63, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 72, 63, .035) 1px, transparent 1px),
    repeating-linear-gradient(115deg, rgba(255, 201, 90, .04) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, #120407 0%, #25070c 42%, #0a0508 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
}
body.pk-screen-mode .page-content {
  position: relative;
}
body.pk-screen-mode .page-content::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 90, 80, .08) 8.2%, transparent 8.6% 49.6%, rgba(58, 214, 255, .07) 50%, transparent 50.5%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: .78;
}
.pk-screen {
  isolation: isolate;
  gap: 14px;
}
.pk-screen::before {
  inset: 0;
  border-color: rgba(255, 202, 97, .24);
  background:
    linear-gradient(90deg, rgba(255, 77, 68, .18), transparent 18% 82%, rgba(66, 220, 255, .16)),
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 20% 82%, rgba(255, 195, 70, .04));
  box-shadow: inset 0 0 55px rgba(255, 61, 54, .08);
  animation: pkHudPulse 4.8s ease-in-out infinite;
}
.pk-screen::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: -18%;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 214, 118, .08), rgba(255, 78, 68, .12), transparent);
  transform: skewY(-3deg);
  animation: pkScreenSweep 5.6s linear infinite;
}
.pk-battle-menu,
.pk-duel-stage {
  border-color: rgba(255, 92, 80, .36);
  background:
    linear-gradient(rgba(255, 78, 68, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 78, 68, .04) 1px, transparent 1px),
    linear-gradient(150deg, rgba(58, 10, 16, .96), rgba(14, 5, 9, .98));
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow:
    inset 0 0 42px rgba(255, 64, 58, .08),
    inset 0 0 0 1px rgba(255, 216, 126, .07),
    0 20px 50px rgba(0, 0, 0, .34);
}
.pk-battle-menu::after,
.pk-duel-stage::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(#ffc653, #ffc653) left top / 42px 1px no-repeat,
    linear-gradient(#ffc653, #ffc653) left top / 1px 42px no-repeat,
    linear-gradient(#ff554d, #ff554d) right top / 42px 1px no-repeat,
    linear-gradient(#ff554d, #ff554d) right top / 1px 42px no-repeat,
    linear-gradient(#37d7ff, #37d7ff) right bottom / 42px 1px no-repeat,
    linear-gradient(#37d7ff, #37d7ff) right bottom / 1px 42px no-repeat,
    linear-gradient(#ffc653, #ffc653) left bottom / 42px 1px no-repeat,
    linear-gradient(#ffc653, #ffc653) left bottom / 1px 42px no-repeat;
  opacity: .54;
}
.pk-battle-menu > *,
.pk-duel-stage > * {
  position: relative;
  z-index: 1;
}
.pk-battle-menu-title {
  background: linear-gradient(90deg, rgba(255, 84, 75, .12), rgba(255, 203, 90, .05), transparent);
}
.pk-battle-menu-title span,
.pk-stage-header span,
.pk-duel-info-grid span {
  color: #ffce67;
  text-shadow: 0 0 12px rgba(255, 202, 97, .25);
}
.pk-battle-tab {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 92, 80, .24);
  background:
    linear-gradient(100deg, rgba(255, 83, 73, .12), rgba(255,255,255,.025) 52%, rgba(56, 212, 255, .05)),
    rgba(16, 6, 10, .7);
}
.pk-battle-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0 34%, rgba(255,255,255,.16) 46%, transparent 58%);
  transform: translateX(-125%);
}
.pk-battle-tab.is-active::after,
.pk-battle-tab:hover::after {
  animation: pkDataSweep 1.6s ease-in-out;
}
.pk-battle-tab:hover,
.pk-battle-tab.is-active {
  border-color: rgba(255, 207, 101, .78);
  background:
    linear-gradient(110deg, rgba(215, 46, 49, .36), rgba(255, 203, 90, .12) 58%, rgba(62, 216, 255, .1)),
    rgba(30, 7, 10, .86);
  box-shadow: inset 0 0 28px rgba(255, 91, 82, .11), 0 0 18px rgba(255, 198, 83, .08);
}
.pk-stage-header {
  min-height: 92px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 75, 67, .14), transparent 48%, rgba(55, 212, 255, .08)),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent);
}
.pk-stage-header::before {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 42%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 225, 143, .18), transparent);
  animation: pkHeaderSweep 3.8s ease-in-out infinite;
}
.pk-stage-header h1 {
  color: #fff8ed;
  text-shadow: 0 0 18px rgba(255, 88, 77, .42), 0 3px 0 #651a16;
}
.pk-stage-status {
  display: grid;
  justify-items: end;
  gap: 7px;
  white-space: nowrap;
}
.pk-stage-status strong {
  display: inline-flex;
  min-height: 40px;
  padding: 0 18px;
  align-items: center;
  border: 1px solid rgba(255, 215, 122, .72);
  border-radius: 999px;
  color: #251000;
  background: linear-gradient(145deg, #fff0ad, #f5bd42 62%, #df8f18);
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 0 28px rgba(255, 199, 83, .24);
}
.pk-stage-status small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #55ddff;
  font-family: var(--font-number);
  font-size: 11px;
}
.pk-stage-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54e2ff;
  box-shadow: 0 0 10px #54e2ff;
  animation: pkBlink 1.15s ease-in-out infinite;
}
.pk-duel-arena {
  background:
    linear-gradient(90deg, rgba(255, 86, 76, .07), transparent 45%, rgba(54, 216, 255, .055)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 80px);
}
.pk-duel-arena::before {
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 83, 73, .65), rgba(255, 213, 111, .86), rgba(55, 216, 255, .56), transparent);
  box-shadow: 0 0 18px rgba(255, 200, 83, .38);
}
.pk-duel-card {
  border-color: rgba(255, 83, 73, .33);
  background:
    linear-gradient(rgba(255, 75, 67, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 75, 67, .028) 1px, transparent 1px),
    linear-gradient(145deg, rgba(80, 15, 22, .93), rgba(14, 5, 9, .91));
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: inset 0 0 48px rgba(255, 76, 67, .08), 0 0 28px rgba(255, 76, 67, .06);
}
.pk-duel-card.right {
  border-color: rgba(61, 214, 255, .32);
  background:
    linear-gradient(rgba(55, 216, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 216, 255, .025) 1px, transparent 1px),
    linear-gradient(145deg, rgba(45, 20, 61, .92), rgba(9, 5, 13, .92));
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: inset 0 0 48px rgba(56, 216, 255, .07), 0 0 28px rgba(56, 216, 255, .05);
}
.pk-duel-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background:
    linear-gradient(#ff5d53, #ff5d53) left top / 34px 1px no-repeat,
    linear-gradient(#ff5d53, #ff5d53) left top / 1px 34px no-repeat,
    linear-gradient(#ffcf67, #ffcf67) right top / 34px 1px no-repeat,
    linear-gradient(#ffcf67, #ffcf67) right top / 1px 34px no-repeat,
    linear-gradient(rgba(255,255,255,.13), rgba(255,255,255,.13)) left 47% / 100% 1px no-repeat;
  opacity: .58;
}
.pk-duel-card.right::after {
  background:
    linear-gradient(#37d7ff, #37d7ff) left top / 34px 1px no-repeat,
    linear-gradient(#37d7ff, #37d7ff) left top / 1px 34px no-repeat,
    linear-gradient(#ffcf67, #ffcf67) right top / 34px 1px no-repeat,
    linear-gradient(#ffcf67, #ffcf67) right top / 1px 34px no-repeat,
    linear-gradient(rgba(255,255,255,.13), rgba(255,255,255,.13)) left 47% / 100% 1px no-repeat;
}
.pk-duel-card-top span {
  border-color: rgba(255, 96, 84, .52);
  color: #fff0e7;
  background: linear-gradient(90deg, rgba(216, 46, 49, .5), rgba(255, 92, 80, .12));
  box-shadow: inset 0 0 14px rgba(255, 90, 80, .12);
}
.pk-duel-card.right .pk-duel-card-top span {
  border-color: rgba(61, 214, 255, .48);
  color: #effcff;
  background: linear-gradient(90deg, rgba(31, 148, 193, .45), rgba(61, 214, 255, .1));
}
.pk-duel-company img {
  border-color: rgba(255, 211, 112, .45);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 12px 30px rgba(0, 0, 0, .35), 0 0 22px rgba(255, 199, 83, .08);
}
.pk-duel-company h2 {
  color: #fffaf0;
  text-shadow: 0 0 16px rgba(255, 104, 91, .35);
}
.pk-duel-card.right .pk-duel-company h2 {
  text-shadow: 0 0 16px rgba(61, 214, 255, .28);
}
.pk-duel-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 18px;
}
.pk-duel-card.right .pk-duel-visual {
  grid-template-columns: 132px minmax(0, 1fr);
}
.pk-duel-card.right .pk-duel-score {
  grid-column: 2;
  grid-row: 1;
}
.pk-duel-card.right .pk-radar-gauge {
  grid-column: 1;
  grid-row: 1;
}
.pk-radar-gauge {
  position: relative;
  display: grid;
  width: 126px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #160609 0 42%, transparent 43%),
    conic-gradient(from -90deg, #ff6259 0 var(--pk-gauge), rgba(255,255,255,.08) var(--pk-gauge) 360deg);
  box-shadow: inset 0 0 22px rgba(255, 95, 86, .16), 0 0 24px rgba(255, 95, 86, .12);
}
.pk-duel-card.right .pk-radar-gauge {
  background:
    radial-gradient(circle at 50% 50%, #10060f 0 42%, transparent 43%),
    conic-gradient(from -90deg, #3bd9ff 0 var(--pk-gauge), rgba(255,255,255,.08) var(--pk-gauge) 360deg);
  box-shadow: inset 0 0 22px rgba(61, 214, 255, .14), 0 0 24px rgba(61, 214, 255, .1);
}
.pk-radar-gauge i {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 216, 126, .28);
  border-radius: 50%;
}
.pk-radar-gauge i::before,
.pk-radar-gauge i::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 216, 126, .75), transparent);
  transform-origin: 0 50%;
  animation: pkRadarSpin 3.8s linear infinite;
}
.pk-radar-gauge i::after {
  animation-delay: -1.9s;
}
.pk-radar-gauge em {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(255,255,255,.16) 50%, transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(50% - .5px), rgba(255,255,255,.16) 50%, transparent calc(50% + .5px));
}
.pk-radar-gauge > strong {
  color: #fff6e9;
  font-family: var(--font-number);
  font-size: 25px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 96, 84, .35);
}
.pk-radar-gauge > small {
  margin-top: 28px;
  color: #cda59f;
  font-size: 9px;
}
.pk-duel-score strong {
  text-shadow: 0 0 24px rgba(255, 96, 84, .32), 0 0 42px rgba(255, 96, 84, .12);
}
.pk-duel-card.right .pk-duel-score strong {
  color: #43dcff;
  text-shadow: 0 0 24px rgba(61, 214, 255, .32), 0 0 42px rgba(61, 214, 255, .12);
}
.pk-score-track,
.pk-metric-track {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 12px),
    rgba(0,0,0,.52);
}
.pk-score-track i,
.pk-metric-track i {
  position: relative;
  overflow: hidden;
}
.pk-score-track i::after,
.pk-metric-track i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  transform: translateX(-120%);
  animation: pkFlow 1.8s ease-in-out infinite;
}
.pk-metric-row {
  padding: 8px 10px;
  border: 1px solid rgba(255, 91, 82, .12);
  border-radius: 8px;
  background: rgba(255,255,255,.026);
}
.pk-metric-row.right {
  border-color: rgba(61, 214, 255, .12);
}
.pk-metric-line strong {
  text-shadow: 0 0 10px rgba(255, 96, 84, .22);
}
.pk-metric-row.right .pk-metric-line strong {
  color: #58e0ff;
  text-shadow: 0 0 10px rgba(61, 214, 255, .24);
}
.pk-duel-center {
  gap: 14px;
}
.pk-duel-center > span {
  color: #ffcf67;
  text-shadow: 0 0 14px rgba(255, 207, 103, .28);
}
.pk-versus-core {
  position: relative;
  display: grid;
  width: clamp(92px, 8vw, 136px);
  aspect-ratio: 1;
  place-items: center;
}
.pk-versus-core::before,
.pk-versus-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 207, 103, .42);
  border-radius: 50%;
  border-left-color: rgba(255, 90, 80, .95);
  border-right-color: rgba(61, 214, 255, .88);
  animation: pkRadarSpin 5s linear infinite;
}
.pk-versus-core::after {
  inset: 9px;
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 7s;
}
.pk-versus-core i,
.pk-versus-core em {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(255,255,255,.2) 50%, transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(50% - .5px), rgba(255,255,255,.2) 50%, transparent calc(50% + .5px));
}
.pk-versus-core strong {
  position: relative;
  z-index: 1;
  display: grid;
  width: 68%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #220f00;
  background: radial-gradient(circle at 50% 38%, #fff3b4, #ffc64e 58%, #d98d19);
  font-family: var(--font-number);
  font-size: clamp(29px, 2.8vw, 48px);
  font-weight: 950;
  box-shadow: inset 0 0 18px rgba(255,255,255,.26), 0 0 34px rgba(255, 205, 96, .28);
}
.pk-duel-diff {
  padding: 7px 12px;
  border: 1px solid rgba(255, 207, 103, .18);
  border-radius: 999px;
  background: rgba(0,0,0,.22);
}
.pk-duel-info-grid article {
  border-color: rgba(255, 91, 82, .28);
  background:
    linear-gradient(100deg, rgba(255, 83, 73, .1), transparent 56%, rgba(61, 214, 255, .045)),
    rgba(255,255,255,.035);
  box-shadow: inset 0 0 22px rgba(255, 83, 73, .035);
}
.pk-duel-info-grid article:nth-child(2) {
  border-color: rgba(255, 207, 103, .28);
}
.pk-duel-info-grid article:nth-child(3) {
  border-color: rgba(61, 214, 255, .22);
}

@media (max-width: 1180px) {
  .pk-duel-visual,
  .pk-duel-card.right .pk-duel-visual {
    grid-template-columns: minmax(0, 1fr) 120px;
  }
  .pk-duel-card.right .pk-duel-score {
    grid-column: 1;
    text-align: left;
    justify-items: start;
  }
  .pk-duel-card.right .pk-radar-gauge {
    grid-column: 2;
  }
  .pk-radar-gauge {
    width: 116px;
  }
}

@media (max-width: 640px) {
  .pk-stage-header {
    min-height: 95px;
  }
  .pk-stage-status {
    justify-items: start;
  }
  .pk-duel-visual,
  .pk-duel-card.right .pk-duel-visual {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 10px;
  }
  .pk-radar-gauge {
    width: 84px;
  }
  .pk-radar-gauge > strong {
    font-size: 18px;
  }
  .pk-radar-gauge > small {
    margin-top: 21px;
    font-size: 8px;
  }
  .pk-versus-core {
    width: 92px;
  }
}

@keyframes pkHudPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: .95; }
}
@keyframes pkScreenSweep {
  from { transform: translateY(-45%) skewY(-3deg); }
  to { transform: translateY(520%) skewY(-3deg); }
}
@keyframes pkHeaderSweep {
  0% { transform: translateX(0); opacity: 0; }
  20%, 65% { opacity: 1; }
  100% { transform: translateX(320%); opacity: 0; }
}
@keyframes pkDataSweep {
  from { transform: translateX(-125%); }
  to { transform: translateX(125%); }
}
@keyframes pkFlow {
  0% { transform: translateX(-120%); }
  62%, 100% { transform: translateX(120%); }
}
@keyframes pkRadarSpin {
  to { transform: rotate(360deg); }
}
@keyframes pkBlink {
  0%, 100% { opacity: .45; transform: scale(.88); }
  50% { opacity: 1; transform: scale(1.18); }
}

/* PK大屏 Command 版：增强数据可视化指挥舱质感 */
body.pk-screen-mode .workspace {
  background:
    linear-gradient(rgba(255, 204, 103, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 218, 255, .04) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(255, 73, 64, .16), transparent 30%),
    radial-gradient(circle at 82% 35%, rgba(52, 220, 255, .12), transparent 32%),
    linear-gradient(135deg, #0a0406 0%, #24070c 46%, #05080d 100%);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
}

body.pk-screen-mode .page-content::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 75, 67, .22), transparent 18% 82%, rgba(48, 218, 255, .18)),
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(255, 255, 255, .026) 9px);
  opacity: .42;
  mix-blend-mode: screen;
}

.pk-screen {
  grid-template-columns: minmax(244px, 310px) minmax(0, 1fr);
  max-width: 100%;
  overflow-x: hidden;
}

.pk-duel-stage {
  min-width: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  background:
    linear-gradient(100deg, rgba(255, 84, 75, .09), transparent 42%, rgba(54, 215, 255, .075)),
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 22% 78%, rgba(255, 204, 103, .035)),
    #08070c;
}

.pk-command-topbar {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  padding: 14px 18px;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 205, 103, .18);
  background:
    linear-gradient(90deg, rgba(255, 70, 61, .18), rgba(255, 205, 103, .055), rgba(47, 217, 255, .12)),
    rgba(0, 0, 0, .16);
}

.pk-command-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 0 42%, rgba(255, 255, 255, .2) 50%, transparent 58%);
  transform: translateX(-120%);
  animation: pkDataSweep 3.4s ease-in-out infinite;
}

.pk-command-title {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 5px;
}

.pk-command-title span {
  color: #38dcff;
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-shadow: 0 0 12px rgba(56, 220, 255, .4);
}

.pk-command-title strong {
  overflow: hidden;
  color: #fff4dc;
  font-size: clamp(18px, 1.45vw, 25px);
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 204, 103, .28);
}

.pk-command-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pk-command-stats article {
  position: relative;
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 103, .2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 77, 67, .12), rgba(255, 255, 255, .035) 46%, rgba(54, 215, 255, .075)),
    rgba(0, 0, 0, .2);
  box-shadow: inset 0 0 18px rgba(255, 204, 103, .035);
}

.pk-command-stats article::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 7px;
  height: 2px;
  background: linear-gradient(90deg, #ff564d, #ffd36b, #39dcff);
  box-shadow: 0 0 12px rgba(255, 204, 103, .35);
}

.pk-command-stats span {
  display: block;
  margin-bottom: 5px;
  color: #b6c9d7;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
}

.pk-command-stats strong {
  display: block;
  overflow: hidden;
  color: #fff7e6;
  font-family: var(--font-number);
  font-size: clamp(18px, 1.65vw, 30px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-stage-header {
  min-height: 104px;
  padding: 18px 22px 14px;
}

.pk-stage-header h1 {
  color: #fff9ec;
  font-size: clamp(28px, 2.8vw, 52px);
  text-shadow:
    0 0 18px rgba(255, 88, 78, .52),
    0 0 36px rgba(56, 220, 255, .18),
    0 3px 0 rgba(93, 19, 16, .9);
}

.pk-duel-arena {
  min-width: 0;
  padding: 20px 22px 14px;
  gap: 16px;
}

.pk-duel-arena::after {
  content: "";
  position: absolute;
  inset: 10% 6%;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 89, 79, .14), transparent 36% 64%, rgba(55, 220, 255, .12)),
    linear-gradient(transparent calc(50% - 1px), rgba(255, 204, 103, .32) 50%, transparent calc(50% + 1px));
  opacity: .52;
  filter: drop-shadow(0 0 14px rgba(255, 204, 103, .28));
}

.pk-duel-card {
  min-height: 510px;
  border-radius: 16px;
  transform: translateZ(0);
}

.pk-duel-card::before {
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .09), transparent 20% 75%, rgba(255, 91, 82, .08)),
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(255, 255, 255, .025) 33px);
}

.pk-duel-card.is-leading {
  box-shadow:
    inset 0 0 44px rgba(255, 204, 103, .11),
    0 0 28px rgba(255, 204, 103, .16),
    0 24px 52px rgba(0, 0, 0, .32);
}

.pk-duel-company img {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  filter: drop-shadow(0 0 14px rgba(255, 210, 113, .22));
}

.pk-duel-company h2 {
  font-size: clamp(31px, 2.9vw, 54px);
}

.pk-duel-score strong {
  display: block;
  max-width: 100%;
  font-size: clamp(60px, 6.1vw, 108px);
  white-space: nowrap;
}

.pk-duel-card.right .pk-duel-score strong {
  font-size: clamp(56px, 5.4vw, 96px);
}

.pk-duel-visual {
  grid-template-columns: minmax(0, 1fr) 150px;
}

.pk-duel-card.right .pk-duel-visual {
  grid-template-columns: 150px minmax(0, 1fr);
}

.pk-radar-gauge {
  width: 146px;
  border: 1px solid rgba(255, 204, 103, .34);
}

.pk-radar-gauge::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 204, 103, .26);
  animation: pkRadarSpin 8s linear infinite reverse;
}

.pk-radar-gauge > strong {
  font-size: 29px;
}

.pk-energy-columns {
  position: relative;
  display: grid;
  height: 84px;
  padding: 9px 10px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 103, .13);
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    rgba(0, 0, 0, .22);
  background-size: 100% 20px;
}

.pk-energy-columns::before {
  content: "POWER FLOW";
  position: absolute;
  left: 10px;
  top: 6px;
  color: rgba(255, 229, 169, .42);
  font-family: var(--font-number);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.pk-energy-columns i {
  display: block;
  height: var(--pk-bar-h);
  min-height: 10px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, rgba(255, 229, 169, .4), rgba(255, 85, 76, .26));
  opacity: .28;
}

.pk-energy-columns i.is-live {
  background: linear-gradient(180deg, #fff1ad, #ff695d 58%, #b71f25);
  opacity: 1;
  box-shadow: 0 0 12px rgba(255, 96, 84, .42);
  animation: pkColumnPulse 1.7s ease-in-out infinite;
  animation-delay: var(--pk-bar-d);
}

.pk-duel-card.right .pk-energy-columns i.is-live {
  background: linear-gradient(180deg, #dffaff, #43ddff 58%, #1668b8);
  box-shadow: 0 0 12px rgba(67, 221, 255, .42);
}

.pk-battle-spectrum {
  position: relative;
  z-index: 1;
  display: grid;
  padding: 0 22px 14px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.pk-battle-spectrum strong {
  display: inline-grid;
  min-width: 132px;
  min-height: 36px;
  padding: 0 13px;
  place-items: center;
  border: 1px solid rgba(255, 204, 103, .32);
  border-radius: 999px;
  color: #fff1c0;
  background: rgba(0, 0, 0, .34);
  font-family: var(--font-number);
  font-size: 17px;
  box-shadow: inset 0 0 18px rgba(255, 204, 103, .06);
}

.pk-spectrum-side {
  position: relative;
  height: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 91, 82, .18);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 14px),
    rgba(0, 0, 0, .48);
}

.pk-spectrum-side i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pk-spectrum);
  border-radius: inherit;
  background: linear-gradient(90deg, #a91920, #ff4f47, #ffd36b);
  box-shadow: 0 0 18px rgba(255, 86, 76, .42);
}

.pk-spectrum-side.right i {
  inset-inline: auto 0;
  background: linear-gradient(90deg, #ffd36b, #45dcff, #126cb7);
  box-shadow: 0 0 18px rgba(69, 220, 255, .36);
}

.pk-telemetry-grid {
  position: relative;
  z-index: 1;
  display: grid;
  padding: 0 22px 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pk-telemetry-card {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 204, 103, .15);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 80, 70, .1), rgba(255, 255, 255, .03) 48%, rgba(55, 220, 255, .07)),
    rgba(0, 0, 0, .22);
}

.pk-telemetry-card header,
.pk-telemetry-card footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pk-telemetry-card header span {
  color: #ffce67;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.pk-telemetry-card header strong {
  overflow: hidden;
  color: #fff4e0;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-telemetry-card.is-left header strong {
  color: #ff8176;
}

.pk-telemetry-card.is-right header strong {
  color: #52deff;
}

.pk-telemetry-bars {
  display: grid;
  gap: 6px;
  margin: 10px 0 8px;
}

.pk-telemetry-bars div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
}

.pk-telemetry-bars i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c02027, #ff6156, #ffd36b);
  box-shadow: 0 0 12px rgba(255, 96, 84, .34);
}

.pk-telemetry-bars div:nth-child(2) i {
  background: linear-gradient(90deg, #126cb7, #42ddff, #dffaff);
  box-shadow: 0 0 12px rgba(66, 221, 255, .3);
}

.pk-telemetry-card footer small {
  display: grid;
  min-width: 0;
  color: #b8c3ca;
  font-size: 10px;
  line-height: 1.25;
}

.pk-telemetry-card footer small:last-child {
  text-align: right;
}

.pk-telemetry-card footer b {
  color: #fff5dc;
  font-family: var(--font-number);
  font-size: 13px;
}

.pk-duel-info-grid {
  padding: 0 22px 20px;
}

@media (max-width: 1280px) {
  .pk-command-topbar {
    grid-template-columns: 1fr;
  }

  .pk-command-stats {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    overflow-x: auto;
  }

  .pk-telemetry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .pk-screen {
    grid-template-columns: 1fr;
  }

  .pk-duel-stage {
    grid-template-rows: auto auto auto auto auto;
  }

  .pk-duel-card {
    min-height: 0;
  }

  .pk-duel-visual,
  .pk-duel-card.right .pk-duel-visual {
    grid-template-columns: minmax(0, 1fr) 128px;
  }

  .pk-radar-gauge {
    width: 124px;
  }
}

@media (max-width: 760px) {
  .pk-command-topbar {
    padding: 12px;
  }

  .pk-command-title strong {
    white-space: normal;
  }

  .pk-command-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .pk-command-stats article {
    min-height: 52px;
  }

  .pk-stage-header {
    min-height: 0;
    padding: 14px 13px 11px;
  }

  .pk-stage-header h1 {
    font-size: 24px;
  }

  .pk-duel-arena {
    padding: 12px;
  }

  .pk-duel-company img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
  }

  .pk-duel-company h2 {
    font-size: 24px;
  }

  .pk-duel-score strong {
    font-size: 50px;
  }

  .pk-duel-visual,
  .pk-duel-card.right .pk-duel-visual {
    grid-template-columns: 1fr;
  }

  .pk-radar-gauge {
    width: 84px;
    justify-self: center;
  }

  .pk-duel-card.right .pk-duel-score {
    grid-column: 1;
    justify-items: start;
    text-align: left;
  }

  .pk-duel-card.right .pk-duel-score strong {
    font-size: 50px;
  }

  .pk-duel-card.right .pk-radar-gauge {
    grid-column: 1;
  }

  .pk-energy-columns {
    height: 62px;
    gap: 3px;
  }

  .pk-battle-spectrum {
    padding: 0 12px 12px;
    grid-template-columns: 1fr;
  }

  .pk-battle-spectrum strong {
    order: -1;
    justify-self: center;
  }

  .pk-telemetry-grid {
    padding: 0 12px 12px;
    grid-template-columns: 1fr;
  }

  .pk-duel-info-grid {
    padding: 0 12px 12px;
  }
}

@keyframes pkColumnPulse {
  0%, 100% { transform: scaleY(.86); filter: brightness(.92); }
  50% { transform: scaleY(1.08); filter: brightness(1.18); }
}

/* 概念大屏最终版：PK + 数据驾驶舱单屏可视化 */
.concept-fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: none;
  pointer-events: none;
}

body.concept-fx-active .concept-fx-canvas {
  display: block;
}

body.pk-screen-mode,
body.cockpit-mode {
  overflow: hidden;
  background: #05070d;
}

body.pk-screen-mode .workspace,
body.cockpit-mode .workspace {
  position: relative;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 209, 105, .12), transparent 28%),
    radial-gradient(circle at 12% 76%, rgba(255, 77, 68, .16), transparent 32%),
    radial-gradient(circle at 88% 72%, rgba(53, 220, 255, .13), transparent 34%),
    #05070d;
}

body.pk-screen-mode .page-content,
body.cockpit-mode .page-content {
  position: relative;
  z-index: 1;
  height: 100vh;
  min-height: 0;
  padding: clamp(6px, .8vw, 12px);
  overflow: hidden;
}

body.pk-screen-mode .summit-banner-wrap,
body.cockpit-mode .summit-banner-wrap {
  display: none;
}

body.pk-screen-mode .view-panel,
body.cockpit-mode .view-panel {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.pk-screen-mode .sidebar,
body.cockpit-mode .sidebar {
  background:
    linear-gradient(rgba(255, 76, 67, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 204, 103, .04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(52, 6, 11, .98), rgba(7, 8, 14, .98));
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: 10px 0 36px rgba(0, 0, 0, .38), inset -1px 0 rgba(255, 203, 105, .14);
}

body.pk-screen-mode .brand-block strong,
body.cockpit-mode .brand-block strong {
  color: #ffe6a7;
  text-shadow: 0 0 18px rgba(255, 205, 102, .52), 0 0 38px rgba(255, 86, 77, .28);
}

body.pk-screen-mode .nav-item,
body.cockpit-mode .nav-item {
  color: #ffd7d0;
}

body.pk-screen-mode .nav-item.is-active,
body.cockpit-mode .nav-item.is-active {
  color: #fff8ec;
  background:
    linear-gradient(100deg, rgba(255, 83, 74, .92), rgba(255, 203, 96, .4), rgba(56, 220, 255, .2)),
    #9d151b;
  box-shadow: 0 0 24px rgba(255, 84, 74, .34), inset 0 0 18px rgba(255, 255, 255, .12);
}

body.pk-screen-mode .season-card,
body.cockpit-mode .season-card {
  color: #fff0d4;
  border-color: rgba(255, 213, 113, .28);
  background: rgba(30, 5, 10, .72);
  box-shadow: inset 0 0 22px rgba(255, 205, 103, .08);
}

@media (max-width: 920px) {
  body.pk-screen-mode .sidebar,
  body.cockpit-mode .sidebar {
    display: none;
  }

  body.pk-screen-mode .workspace,
  body.cockpit-mode .workspace {
    margin-left: 0;
  }
}

.pk-screen {
  height: 100%;
  min-height: 0;
  gap: clamp(6px, .85vw, 12px);
  grid-template-columns: minmax(188px, 17vw) minmax(0, 1fr);
}

.pk-screen::before {
  inset: 0;
  border-color: rgba(255, 203, 102, .38);
  box-shadow: inset 0 0 70px rgba(255, 82, 73, .08);
}

.pk-battle-menu,
.pk-duel-stage,
.cockpit-shell {
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(135deg, rgba(54, 7, 13, .86), rgba(5, 9, 17, .92));
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow:
    inset 0 0 54px rgba(255, 84, 75, .08),
    inset 0 0 0 1px rgba(255, 209, 112, .09),
    0 20px 50px rgba(0, 0, 0, .36);
}

.pk-battle-menu {
  grid-template-rows: 42px minmax(0, 1fr);
}

.pk-battle-menu-title {
  min-height: 42px;
  padding: 8px 10px;
  border-bottom-color: rgba(255, 204, 103, .18);
}

.pk-battle-menu-title span {
  color: #ffd66f;
  font-size: 12px;
}

.pk-battle-menu-title strong {
  min-height: 24px;
  padding: 0 8px;
  font-size: 10px;
}

.pk-battle-tabs {
  gap: 7px;
  padding: 8px;
  overflow: hidden;
}

.pk-battle-tab {
  min-height: 0;
  height: calc((100vh - 114px) / 8);
  max-height: 76px;
  min-width: 0;
  padding: 8px 9px;
  grid-template-columns: 26px minmax(0, 1fr);
  align-content: center;
}

.pk-battle-tab > span {
  width: 25px;
  height: 25px;
  font-size: 10px;
}

.pk-battle-tab strong {
  font-size: clamp(11px, .88vw, 14px);
}

.pk-battle-tab small {
  font-size: 9px;
}

.pk-duel-stage {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.pk-command-topbar {
  min-height: 0;
  padding: clamp(6px, .7vw, 10px) clamp(8px, .9vw, 14px);
  grid-template-columns: 1fr;
}

.pk-command-title {
  display: none;
}

.pk-command-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pk-command-stats article {
  min-height: clamp(42px, 5vh, 58px);
  padding: 7px 10px;
}

.pk-command-stats span {
  margin-bottom: 4px;
  color: #8de9ff;
  font-size: clamp(9px, .7vw, 11px);
}

.pk-command-stats strong {
  font-size: clamp(18px, 1.9vw, 30px);
}

.pk-stage-header {
  min-height: 0;
  padding: clamp(7px, .8vw, 12px) clamp(10px, 1vw, 18px);
}

.pk-stage-header span,
.pk-stage-status,
.pk-duel-card-top,
.pk-duel-center > span {
  display: none;
}

.pk-stage-header h1 {
  width: 100%;
  font-size: clamp(24px, 3.5vw, 58px);
  white-space: nowrap;
}

.pk-duel-arena {
  padding: clamp(8px, 1vw, 15px);
  grid-template-columns: minmax(0, 1fr) minmax(66px, .13fr) minmax(0, 1fr);
  gap: clamp(7px, .9vw, 14px);
}

.pk-duel-card {
  min-height: 0;
  padding: clamp(10px, 1.2vw, 16px);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: clamp(7px, .85vw, 12px);
  border-radius: 12px;
}

.pk-duel-company {
  grid-template-columns: clamp(50px, 5vw, 78px) minmax(0, 1fr);
  gap: clamp(8px, .9vw, 14px);
}

.pk-duel-company img {
  width: clamp(50px, 5vw, 78px);
  height: clamp(50px, 5vw, 78px);
  padding: 6px;
}

.pk-duel-company h2 {
  font-size: clamp(24px, 3.1vw, 54px);
}

.pk-duel-company small {
  margin-top: 4px;
  font-size: clamp(9px, .82vw, 12px);
}

.pk-duel-visual,
.pk-duel-card.right .pk-duel-visual {
  grid-template-columns: minmax(0, 1fr) clamp(86px, 8.4vw, 132px);
  gap: clamp(8px, 1vw, 15px);
}

.pk-duel-score span,
.pk-radar-gauge > small {
  display: none;
}

.pk-duel-score strong,
.pk-duel-card.right .pk-duel-score strong {
  font-size: clamp(42px, 6vw, 96px);
}

.pk-radar-gauge {
  width: clamp(82px, 8.1vw, 126px);
}

.pk-radar-gauge > strong {
  font-size: clamp(18px, 2vw, 29px);
}

.pk-energy-columns {
  height: clamp(46px, 7.2vh, 82px);
  padding: 8px;
}

.pk-energy-columns::before {
  display: none;
}

.pk-metric-list {
  gap: clamp(5px, .7vh, 9px);
  overflow: hidden;
}

.pk-metric-row {
  padding: clamp(5px, .65vh, 8px) 8px;
}

.pk-metric-line span {
  font-size: clamp(10px, .85vw, 13px);
}

.pk-metric-line strong {
  font-size: clamp(12px, 1.05vw, 16px);
}

.pk-metric-row small {
  font-size: clamp(8px, .68vw, 10px);
}

.pk-versus-core {
  width: clamp(62px, 6vw, 104px);
}

.pk-versus-core strong {
  font-size: clamp(23px, 2.6vw, 42px);
}

.pk-duel-diff {
  padding: 5px 8px;
}

.pk-battle-spectrum,
.pk-telemetry-grid,
.pk-duel-info-grid {
  padding-inline: clamp(8px, 1vw, 15px);
}

.pk-battle-spectrum {
  padding-bottom: 8px;
}

.pk-telemetry-grid {
  padding-bottom: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pk-telemetry-card {
  padding: clamp(6px, .72vw, 10px);
}

.pk-telemetry-card header span {
  font-size: 10px;
}

.pk-telemetry-card header strong {
  font-size: 11px;
}

.pk-duel-info-grid {
  padding-bottom: clamp(8px, 1vw, 14px);
  grid-template-columns: minmax(120px, .7fr) minmax(180px, 1fr);
  gap: 8px;
}

.pk-duel-info-grid article {
  min-height: 0;
  padding: 8px 11px;
}

.pk-duel-info-grid article:nth-child(3) {
  display: none;
}

.pk-duel-info-grid span {
  margin-bottom: 4px;
  font-size: 10px;
}

.pk-duel-info-grid strong {
  font-size: clamp(12px, .95vw, 15px);
  line-height: 1.25;
}

.cockpit-shell {
  display: grid;
  height: 100%;
  min-height: 0;
  padding: clamp(8px, 1vw, 14px);
  grid-template-rows: auto minmax(0, 1fr) minmax(260px, 33vh);
  gap: clamp(7px, .9vw, 12px);
  border-radius: 12px;
  color: #f9dfda;
}

.cockpit-shell::after {
  top: 50%;
  width: 82%;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 103, .9), rgba(53, 220, 255, .65), transparent);
}

.cockpit-kpis {
  margin: 0;
  gap: clamp(7px, .85vw, 12px);
}

.cockpit-kpi {
  min-height: clamp(58px, 8.5vh, 86px);
  padding: clamp(8px, .95vw, 13px);
  border-color: rgba(255, 204, 103, .2);
  background:
    linear-gradient(135deg, rgba(255, 82, 73, .16), rgba(255, 255, 255, .035), rgba(53, 220, 255, .1)),
    rgba(0, 0, 0, .24);
}

.cockpit-kpi > span {
  color: #9be9ff;
  font-size: clamp(10px, .78vw, 13px);
}

.cockpit-kpi strong {
  font-size: clamp(22px, 2.4vw, 40px);
}

.cockpit-main-grid {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .86fr);
  gap: clamp(7px, .9vw, 12px);
}

.cockpit-panel,
.combat-ring-panel {
  min-height: 0;
  border-radius: 10px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(150deg, rgba(58, 10, 16, .82), rgba(5, 9, 17, .9));
  background-size: 18px 18px, 18px 18px, auto;
}

.cockpit-panel-title,
.ring-caption {
  display: none;
}

.cockpit-bars {
  height: 100%;
  padding: clamp(9px, 1vw, 14px);
  align-content: space-around;
  gap: clamp(6px, .9vh, 12px);
}

.cockpit-bar-row {
  grid-template-columns: 28px minmax(80px, .7fr) minmax(80px, 1fr) 54px;
}

.cockpit-bar-row label {
  font-size: clamp(10px, .86vw, 13px);
}

.cockpit-bar-row strong {
  font-size: clamp(11px, .9vw, 13px);
}

.combat-track {
  height: 9px;
}

.combat-ring-panel {
  min-height: 0;
}

.command-ring {
  width: clamp(168px, 20vw, 260px);
  height: clamp(168px, 20vw, 260px);
}

.ring-core > strong {
  font-size: clamp(31px, 4vw, 56px);
}

.ring-foot {
  bottom: clamp(3px, .8vh, 10px);
}

.cockpit-bottom-grid {
  min-height: 0;
  margin-top: 0;
}

.cockpit-table-wrap {
  height: calc(100% - 18px);
  margin: 9px;
  overflow: hidden;
}

.cockpit-table {
  min-width: 0;
  table-layout: fixed;
}

.cockpit-table th {
  height: clamp(17px, 2.1vh, 24px);
  padding: 0 6px;
  font-size: clamp(7px, .62vw, 9px);
}

.cockpit-table td {
  height: clamp(17px, 2.2vh, 23px);
  padding: 2px 6px;
  font-size: clamp(7px, .66vw, 9.5px);
}

.cockpit-table th:nth-child(1),
.cockpit-table td:nth-child(1) {
  width: 46px;
}

.cockpit-table th:nth-child(2),
.cockpit-table td:nth-child(2) {
  width: 34%;
}

.matrix-company {
  min-width: 0;
}

.matrix-company img {
  width: clamp(13px, 1.2vw, 18px);
  height: clamp(13px, 1.2vw, 18px);
}

@media (max-width: 1180px) {
  body.pk-screen-mode,
  body.cockpit-mode {
    overflow: hidden;
  }

  body.pk-screen-mode .page-content,
  body.cockpit-mode .page-content {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .pk-screen {
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .pk-battle-menu {
    grid-template-rows: auto auto;
  }

  .pk-battle-tabs {
    display: flex;
    padding: 7px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .pk-battle-tab {
    width: min(260px, 72vw);
    height: 68px;
    flex: 0 0 auto;
  }

  .pk-duel-stage {
    height: 100%;
    min-height: 0;
  }

  .pk-duel-card {
    min-height: 0;
  }

  .cockpit-shell {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) minmax(130px, 24vh);
  }
}

@media (max-width: 760px) {
  body.pk-screen-mode .page-content,
  body.cockpit-mode .page-content {
    padding: 8px;
  }

  .pk-command-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pk-command-stats article {
    min-height: 44px;
    padding: 6px 7px;
  }

  .pk-command-stats strong {
    font-size: 15px;
  }

  .pk-stage-header h1 {
    font-size: 22px;
    white-space: normal;
  }

  .pk-duel-arena {
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    gap: 6px;
  }

  .pk-duel-center {
    min-height: 0;
  }

  .pk-versus-core {
    width: 48px;
  }

  .pk-duel-diff {
    display: none;
  }

  .pk-duel-visual,
  .pk-duel-card.right .pk-duel-visual {
    grid-template-columns: 1fr;
  }

  .pk-duel-card.right .pk-duel-score {
    grid-column: 1;
  }

  .pk-duel-card.right .pk-radar-gauge {
    grid-column: 1;
  }

  .pk-duel-score strong,
  .pk-duel-card.right .pk-duel-score strong {
    font-size: clamp(26px, 8vw, 42px);
  }

  .pk-duel-company {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 7px;
  }

  .pk-duel-company img {
    width: 38px;
    height: 38px;
    padding: 4px;
  }

  .pk-duel-company h2 {
    font-size: clamp(16px, 5.5vw, 24px);
  }

  .pk-duel-company small,
  .pk-energy-columns,
  .pk-battle-spectrum,
  .pk-telemetry-grid {
    display: none;
  }

  .pk-metric-list {
    gap: 4px;
  }

  .pk-metric-row small {
    display: none;
  }

  .pk-radar-gauge {
    width: 62px;
  }

  .pk-radar-gauge > strong {
    font-size: 15px;
  }

  .pk-duel-info-grid {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .pk-duel-info-grid article {
    padding: 6px 8px;
  }

  .pk-duel-info-grid span {
    display: none;
  }

  .pk-duel-info-grid strong {
    font-size: 10px;
  }

  .cockpit-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cockpit-main-grid {
    grid-template-columns: 1fr;
  }

  .cockpit-table-wrap {
    overflow: hidden;
  }

  .cockpit-table th,
  .cockpit-table td {
    padding: 2px 4px;
    font-size: 8px;
  }

  .matrix-company img {
    display: none;
  }
}

/* Final restore: keep PK/dashboard in the red-white product theme and fit duty-cell text. */
body.pk-screen-mode,
body.cockpit-mode {
  overflow: hidden !important;
  background: #fff7f5 !important;
  color: #4c2c29 !important;
}

body.pk-screen-mode.concept-fx-active .concept-fx-canvas,
body.cockpit-mode.concept-fx-active .concept-fx-canvas,
body.pk-screen-mode .concept-fx-canvas,
body.cockpit-mode .concept-fx-canvas {
  display: none !important;
}

body.pk-screen-mode .workspace,
body.cockpit-mode .workspace {
  background:
    radial-gradient(circle at 72% -12%, rgba(255, 222, 216, .68), transparent 32%),
    radial-gradient(circle at 18% 84%, rgba(255, 199, 187, .28), transparent 26%),
    linear-gradient(180deg, #fffafa 0%, #fff4f1 100%) !important;
}

body.pk-screen-mode .page-content,
body.cockpit-mode .page-content {
  color: #4c2c29 !important;
}

body.pk-screen-mode .page-content::before,
body.pk-screen-mode .page-content::after,
body.cockpit-mode .page-content::before,
body.cockpit-mode .page-content::after,
body.pk-screen-mode .pk-screen::after,
body.pk-screen-mode .pk-battle-menu::after,
body.pk-screen-mode .pk-duel-stage::after,
body.pk-screen-mode .pk-stage-header::before,
body.pk-screen-mode .pk-duel-arena::after,
body.pk-screen-mode .pk-duel-card::after {
  content: none !important;
  display: none !important;
}

body.pk-screen-mode .sidebar,
body.cockpit-mode .sidebar {
  color: #fff !important;
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.22), transparent 23%),
    linear-gradient(160deg, #dd534d 0%, #c42f2f 65%, #b72427 100%) !important;
  box-shadow: 8px 0 25px rgba(109, 34, 33, .12) !important;
}

body.pk-screen-mode .brand-block strong,
body.cockpit-mode .brand-block strong {
  color: #fff7dd !important;
  text-shadow: 0 2px 7px rgba(99,24,24,.25) !important;
}

body.pk-screen-mode .brand-block span,
body.cockpit-mode .brand-block span,
body.pk-screen-mode .nav-item,
body.cockpit-mode .nav-item {
  color: rgba(255,255,255,.9) !important;
}

body.pk-screen-mode .nav-item:hover,
body.cockpit-mode .nav-item:hover {
  background: rgba(255,255,255,.11) !important;
}

body.pk-screen-mode .nav-item.is-active,
body.cockpit-mode .nav-item.is-active {
  color: #fff !important;
  background: rgba(255,255,255,.24) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 16px rgba(116,21,23,.13) !important;
}

body.pk-screen-mode .season-card,
body.cockpit-mode .season-card {
  color: #fff !important;
  border-color: rgba(255,255,255,.28) !important;
  background: rgba(110, 43, 39, .34) !important;
  box-shadow: none !important;
}

body.pk-screen-mode .pk-screen {
  color: #4c2c29 !important;
}

body.pk-screen-mode .pk-screen::before {
  border-color: rgba(216, 61, 56, .18) !important;
  background: none !important;
  box-shadow: none !important;
  animation: none !important;
}

body.pk-screen-mode .pk-battle-menu,
body.pk-screen-mode .pk-duel-stage,
body.cockpit-mode .cockpit-shell,
body.cockpit-mode .cockpit-panel,
body.cockpit-mode .combat-ring-panel {
  border: 1px solid rgba(232, 143, 135, .52) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,247,245,.86)),
    radial-gradient(circle at 12% 0, rgba(255, 221, 191, .22), transparent 34%) !important;
  box-shadow: 0 12px 30px rgba(116,37,33,.09) !important;
}

body.pk-screen-mode .pk-battle-menu::before,
body.pk-screen-mode .pk-duel-stage::before,
body.cockpit-mode .cockpit-panel::before {
  background: linear-gradient(90deg, transparent, rgba(216,61,56,.5), transparent) !important;
}

body.pk-screen-mode .pk-command-topbar,
body.pk-screen-mode .pk-stage-header,
body.pk-screen-mode .pk-duel-arena {
  border-color: rgba(232, 143, 135, .32) !important;
  background: linear-gradient(110deg, rgba(255,238,234,.72), rgba(255,255,255,.74) 52%, rgba(255,244,224,.58)) !important;
}

body.pk-screen-mode .pk-command-topbar::before {
  display: none !important;
}

body.pk-screen-mode .pk-command-stats article,
body.pk-screen-mode .pk-duel-info-grid article,
body.pk-screen-mode .pk-telemetry-card,
body.cockpit-mode .cockpit-kpi {
  border-color: rgba(232, 143, 135, .42) !important;
  background: rgba(255,255,255,.82) !important;
  box-shadow: 0 7px 18px rgba(116,37,33,.06) !important;
}

body.pk-screen-mode .pk-command-stats article::after {
  background: linear-gradient(90deg, #ff7b72, #f4bd48, #72cde8) !important;
  box-shadow: none !important;
}

body.pk-screen-mode .pk-command-stats span,
body.pk-screen-mode .pk-battle-menu-title span,
body.pk-screen-mode .pk-duel-info-grid span,
body.cockpit-mode .cockpit-kpi > span {
  color: #d83d38 !important;
  text-shadow: none !important;
}

body.pk-screen-mode .pk-command-stats strong,
body.pk-screen-mode .pk-stage-header h1,
body.pk-screen-mode .pk-duel-company h2,
body.pk-screen-mode .pk-duel-info-grid strong,
body.cockpit-mode .cockpit-kpi strong {
  color: #3f201e !important;
  text-shadow: none !important;
}

body.pk-screen-mode .pk-battle-menu-title {
  border-bottom-color: rgba(232,143,135,.28) !important;
  background: linear-gradient(90deg, rgba(255,238,234,.85), rgba(255,255,255,.5)) !important;
}

body.pk-screen-mode .pk-battle-menu-title strong {
  color: #8a605d !important;
  border-color: rgba(232,143,135,.45) !important;
  background: #fff !important;
}

body.pk-screen-mode .pk-battle-menu-title b,
body.pk-screen-mode .pk-battle-tab b,
body.cockpit-mode .cockpit-kpi.gold strong,
body.cockpit-mode .cockpit-table td b {
  color: #d99b18 !important;
}

body.pk-screen-mode .pk-battle-tab {
  color: #4c2c29 !important;
  border-color: rgba(232,143,135,.32) !important;
  background: rgba(255,255,255,.7) !important;
  box-shadow: 0 6px 16px rgba(116,37,33,.05) !important;
}

body.pk-screen-mode .pk-battle-tab:hover,
body.pk-screen-mode .pk-battle-tab.is-active {
  border-color: rgba(216,61,56,.62) !important;
  background: linear-gradient(135deg, #fff0ed, #fffaf8) !important;
}

body.pk-screen-mode .pk-battle-tab > span,
body.cockpit-mode .combat-rank {
  color: #d83d38 !important;
  border-color: rgba(216,61,56,.38) !important;
  background: #fff8f6 !important;
}

body.pk-screen-mode .pk-battle-tab strong,
body.pk-screen-mode .pk-metric-line span,
body.cockpit-mode .cockpit-bar-row label,
body.cockpit-mode .matrix-company span {
  color: #4c2c29 !important;
}

body.pk-screen-mode .pk-battle-tab small,
body.pk-screen-mode .pk-duel-company small,
body.pk-screen-mode .pk-metric-row small,
body.cockpit-mode .cockpit-kpi b,
body.cockpit-mode .ring-core p,
body.cockpit-mode .ring-foot span {
  color: #8f6b67 !important;
}

body.pk-screen-mode .pk-duel-card,
body.pk-screen-mode .pk-duel-card.right {
  border-color: rgba(232,143,135,.46) !important;
  background:
    linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,247,245,.82)),
    radial-gradient(circle at 84% 14%, rgba(255,214,178,.2), transparent 28%) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 10px 24px rgba(116,37,33,.08) !important;
}

body.pk-screen-mode .pk-duel-card::before {
  background: linear-gradient(115deg, rgba(255,255,255,.42), transparent 38% 72%, rgba(255,126,117,.08)) !important;
}

body.pk-screen-mode .pk-duel-score span,
body.pk-screen-mode .pk-radar-gauge > small {
  color: #9b746f !important;
}

body.pk-screen-mode .pk-duel-score strong,
body.pk-screen-mode .pk-metric-line strong {
  color: #e74742 !important;
  text-shadow: 0 8px 20px rgba(231,71,66,.08) !important;
}

body.pk-screen-mode .pk-duel-card.right .pk-duel-score strong,
body.pk-screen-mode .pk-metric-row.right .pk-metric-line strong {
  color: #1684a6 !important;
  text-shadow: 0 8px 20px rgba(22,132,166,.08) !important;
}

body.pk-screen-mode .pk-score-track,
body.pk-screen-mode .pk-metric-track,
body.cockpit-mode .combat-track {
  border-color: rgba(224, 161, 153, .52) !important;
  background: #f6e5e2 !important;
  box-shadow: none !important;
}

body.pk-screen-mode .pk-score-track i,
body.pk-screen-mode .pk-metric-track i,
body.cockpit-mode .combat-track i {
  background: linear-gradient(90deg, #ff7e75, #e74742) !important;
  box-shadow: none !important;
}

body.pk-screen-mode .pk-duel-card.right .pk-score-track i,
body.pk-screen-mode .pk-metric-row.right .pk-metric-track i {
  background: linear-gradient(90deg, #5fd0ec, #1684a6) !important;
}

body.pk-screen-mode .pk-energy-columns {
  border-color: rgba(232,143,135,.32) !important;
  background: rgba(255,250,248,.82) !important;
}

body.pk-screen-mode .pk-energy-columns::before {
  content: none !important;
}

body.pk-screen-mode .pk-energy-columns i {
  background: #f2ddd9 !important;
  box-shadow: none !important;
}

body.pk-screen-mode .pk-energy-columns i.is-live {
  background: linear-gradient(180deg, #ffd978, #ff786f 62%, #c8292b) !important;
  box-shadow: 0 0 8px rgba(216,61,56,.22) !important;
}

body.pk-screen-mode .pk-duel-card.right .pk-energy-columns i.is-live {
  background: linear-gradient(180deg, #d8f7ff, #5ad5ef 62%, #1684a6) !important;
}

body.pk-screen-mode .pk-radar-gauge,
body.pk-screen-mode .pk-duel-card.right .pk-radar-gauge {
  border-color: rgba(232,143,135,.42) !important;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 42%, transparent 43%),
    conic-gradient(from -90deg, #ff776e 0 var(--pk-gauge), #f0ddd9 var(--pk-gauge) 360deg) !important;
  box-shadow: inset 0 0 18px rgba(216,61,56,.08), 0 0 14px rgba(216,61,56,.08) !important;
}

body.pk-screen-mode .pk-radar-gauge > strong {
  color: #3f201e !important;
  text-shadow: none !important;
}

body.pk-screen-mode .pk-versus-core::before,
body.pk-screen-mode .pk-versus-core::after {
  border-color: rgba(216,61,56,.36) !important;
}

body.pk-screen-mode .pk-versus-core i,
body.pk-screen-mode .pk-versus-core em {
  display: none !important;
}

body.pk-screen-mode .pk-duel-diff,
body.pk-screen-mode .pk-battle-spectrum strong {
  color: #4c2c29 !important;
  border-color: rgba(232,143,135,.42) !important;
  background: rgba(255,255,255,.82) !important;
}

body.pk-screen-mode .pk-spectrum-side {
  border-color: rgba(224, 161, 153, .52) !important;
  background: #f6e5e2 !important;
}

body.pk-screen-mode .pk-telemetry-card header span {
  color: #d83d38 !important;
}

body.pk-screen-mode .pk-telemetry-card header strong,
body.pk-screen-mode .pk-telemetry-card footer b {
  color: #3f201e !important;
}

body.pk-screen-mode .pk-telemetry-card footer small {
  color: #8f6b67 !important;
}

body.pk-screen-mode .pk-telemetry-bars div {
  background: #f6e5e2 !important;
}

body.cockpit-mode .cockpit-shell {
  grid-template-rows: auto minmax(0, 1fr) minmax(230px, 34vh) !important;
}

body.cockpit-mode .cockpit-shell::before {
  border-color: rgba(216,61,56,.16) !important;
}

body.cockpit-mode .cockpit-shell::after {
  background: linear-gradient(90deg, transparent, rgba(216,61,56,.42), transparent) !important;
  box-shadow: none !important;
}

body.cockpit-mode .cockpit-kpi::before {
  background: #ef554f !important;
  box-shadow: 0 0 10px rgba(239,85,79,.22) !important;
}

body.cockpit-mode .cockpit-main-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr) !important;
}

body.cockpit-mode .cockpit-bars {
  align-content: space-evenly !important;
}

body.cockpit-mode .combat-rank.rank-1 {
  color: #2d1800 !important;
  border-color: #f3b83c !important;
  background: #f3b83c !important;
}

body.cockpit-mode .combat-rank.rank-2 {
  color: #302f31 !important;
  background: #e4e6e8 !important;
}

body.cockpit-mode .combat-rank.rank-3 {
  color: #351b0e !important;
  background: #d99361 !important;
}

body.cockpit-mode .cockpit-bar-row strong {
  color: #e74742 !important;
}

body.cockpit-mode .command-ring {
  background: conic-gradient(from -90deg, #ef554f 0 var(--ring-progress), #f5e0dc var(--ring-progress) 360deg) !important;
  box-shadow: 0 0 22px rgba(239,85,79,.14) !important;
}

body.cockpit-mode .command-ring::before {
  border-color: rgba(232,143,135,.48) !important;
  background: radial-gradient(circle, #fff 0 58%, #fff7f5 59%) !important;
  box-shadow: inset 0 0 24px rgba(239,85,79,.07), 0 0 0 5px rgba(255,255,255,.78) !important;
}

body.cockpit-mode .ring-ticks {
  border-color: rgba(239,85,79,.28) !important;
}

body.cockpit-mode .ring-core > span {
  color: #7b5652 !important;
}

body.cockpit-mode .ring-core > strong {
  color: #d83d38 !important;
  text-shadow: 0 8px 20px rgba(216,61,56,.1) !important;
}

body.cockpit-mode .ring-foot b,
body.cockpit-mode .ring-foot span:last-child b {
  color: #d83d38 !important;
}

body.cockpit-mode .cockpit-table-wrap {
  border-color: rgba(232,143,135,.42) !important;
  background: rgba(255,255,255,.62) !important;
}

body.cockpit-mode .cockpit-table th {
  color: #725654 !important;
  border-color: rgba(232,143,135,.36) !important;
  background: rgba(255,248,247,.9) !important;
}

body.cockpit-mode .cockpit-table td {
  color: #4f3735 !important;
  border-color: rgba(245,231,228,.95) !important;
  background: rgba(255,255,255,.42) !important;
}

body.cockpit-mode .cockpit-table tbody tr:hover td {
  background: #fff8f7 !important;
}

body.cockpit-mode .matrix-rank {
  color: #d83d38 !important;
}

/* Dashboard polish: brighter red-gold report board without the rejected dark concept style. */
body.cockpit-mode .workspace {
  background:
    radial-gradient(circle at 72% -12%, rgba(255, 219, 197, .78), transparent 33%),
    radial-gradient(circle at 12% 88%, rgba(255, 184, 172, .26), transparent 30%),
    linear-gradient(180deg, #fffaf8 0%, #fff1ee 100%) !important;
}

body.cockpit-mode .page-content {
  padding: 12px !important;
}

body.cockpit-mode .cockpit-shell {
  height: calc(100vh - 24px) !important;
  min-height: 0 !important;
  padding: 14px !important;
  display: grid !important;
  grid-template-rows: minmax(106px, 13vh) minmax(330px, 42vh) minmax(220px, 1fr) !important;
  gap: 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(229, 106, 94, .42) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(90deg, rgba(216,61,56,.05) 1px, transparent 1px),
    linear-gradient(rgba(216,61,56,.045) 1px, transparent 1px),
    radial-gradient(circle at 88% 6%, rgba(255, 193, 83, .2), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,246,243,.86)) !important;
  background-size: 26px 26px, 26px 26px, auto, auto !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.62),
    0 18px 38px rgba(133,45,39,.12) !important;
}

body.cockpit-mode .cockpit-shell::before {
  inset: 9px !important;
  border: 1px solid rgba(216,61,56,.2) !important;
  border-radius: 12px !important;
  clip-path: polygon(0 0, 18% 0, 20% 2px, 80% 2px, 82% 0, 100% 0, 100% 100%, 0 100%) !important;
}

body.cockpit-mode .cockpit-shell::after {
  top: 112px !important;
  width: 70% !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, rgba(229,66,58,.22), rgba(244,181,58,.58), rgba(32,165,199,.24), transparent) !important;
}

body.cockpit-mode .cockpit-kpis {
  height: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
}

body.cockpit-mode .cockpit-kpi {
  min-height: 0 !important;
  height: 100% !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(231, 106, 96, .44) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,246,243,.85)),
    radial-gradient(circle at 88% 10%, rgba(255,205,103,.28), transparent 38%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.72),
    0 14px 24px rgba(116,37,33,.08) !important;
}

body.cockpit-mode .cockpit-kpi::before {
  left: 0 !important;
  top: 15px !important;
  width: 4px !important;
  height: 38px !important;
  background: linear-gradient(180deg, #ff6b62, #d83d38) !important;
  box-shadow: 0 0 12px rgba(216,61,56,.18) !important;
}

body.cockpit-mode .cockpit-kpi::after {
  content: "" !important;
  position: absolute !important;
  right: 16px !important;
  bottom: 16px !important;
  width: 64px !important;
  height: 24px !important;
  border-top: 2px solid rgba(229,66,58,.2) !important;
  border-bottom: 2px solid rgba(244,181,58,.22) !important;
  transform: skewX(-24deg) !important;
}

body.cockpit-mode .cockpit-kpi > span {
  color: #c83430 !important;
  font-size: clamp(12px, .82vw, 16px) !important;
  font-weight: 850 !important;
}

body.cockpit-mode .cockpit-kpi div {
  margin-top: 9px !important;
}

body.cockpit-mode .cockpit-kpi strong {
  color: #2b1715 !important;
  font-size: clamp(34px, 3vw, 52px) !important;
  line-height: .95 !important;
  letter-spacing: 0 !important;
}

body.cockpit-mode .cockpit-kpi.gold strong {
  color: #d3910f !important;
}

body.cockpit-mode .cockpit-kpi b {
  color: #8f6762 !important;
  font-size: clamp(13px, .9vw, 18px) !important;
  font-weight: 850 !important;
}

body.cockpit-mode .cockpit-main-grid {
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, .82fr) !important;
  gap: 12px !important;
}

body.cockpit-mode .cockpit-panel,
body.cockpit-mode .combat-ring-panel {
  min-height: 0 !important;
  border: 1px solid rgba(231, 106, 96, .48) !important;
  border-radius: 15px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,247,244,.82)),
    radial-gradient(circle at 12% 0, rgba(255,199,91,.18), transparent 32%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.68),
    0 14px 28px rgba(116,37,33,.08) !important;
}

body.cockpit-mode .top-five-panel {
  display: grid !important;
  overflow: hidden !important;
}

body.cockpit-mode .cockpit-bars {
  height: 100% !important;
  padding: 14px !important;
  display: grid !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-content: stretch !important;
}

body.cockpit-mode .cockpit-bar-row {
  position: relative !important;
  min-height: 0 !important;
  padding: 14px 16px !important;
  display: grid !important;
  grid-template-columns: 52px 58px minmax(170px, .82fr) minmax(240px, 1fr) 64px !important;
  align-items: center !important;
  gap: 13px !important;
  overflow: hidden !important;
  border: 1px solid rgba(228, 125, 114, .36) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(110deg, rgba(255,255,255,.94), rgba(255,245,241,.8)),
    radial-gradient(circle at 0 50%, rgba(255, 206, 96, .22), transparent 30%) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.62), 0 9px 18px rgba(116,37,33,.06) !important;
}

body.cockpit-mode .cockpit-bar-row::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 6px !important;
  background: linear-gradient(180deg, #ff7a70, #d83d38) !important;
}

body.cockpit-mode .podium-rank-1 {
  background:
    linear-gradient(110deg, rgba(255,248,231,.98), rgba(255,255,255,.82)),
    radial-gradient(circle at 2% 50%, rgba(255, 199, 58, .34), transparent 30%) !important;
}

body.cockpit-mode .podium-rank-2 {
  background:
    linear-gradient(110deg, rgba(247,249,252,.98), rgba(255,255,255,.82)),
    radial-gradient(circle at 2% 50%, rgba(192, 202, 214, .32), transparent 30%) !important;
}

body.cockpit-mode .podium-rank-3 {
  background:
    linear-gradient(110deg, rgba(255,242,234,.98), rgba(255,255,255,.82)),
    radial-gradient(circle at 2% 50%, rgba(218, 143, 87, .3), transparent 30%) !important;
}

body.cockpit-mode .combat-rank {
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #ef554f, #c72f2d) !important;
  box-shadow: 0 8px 14px rgba(199,47,45,.18) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

body.cockpit-mode .combat-rank.rank-1 {
  color: #351d00 !important;
  background: linear-gradient(135deg, #ffd86a, #f0a91c) !important;
}

body.cockpit-mode .combat-rank.rank-2 {
  color: #2e3338 !important;
  background: linear-gradient(135deg, #f3f5f7, #c9d0d8) !important;
}

body.cockpit-mode .combat-rank.rank-3 {
  color: #3a1f0e !important;
  background: linear-gradient(135deg, #efad75, #d1763d) !important;
}

body.cockpit-mode .cockpit-bar-logo {
  display: grid !important;
  width: 54px !important;
  height: 54px !important;
  padding: 6px !important;
  place-items: center !important;
  border: 1px solid rgba(228,125,114,.36) !important;
  border-radius: 13px !important;
  object-fit: contain !important;
  background: #fff !important;
  box-shadow: 0 8px 16px rgba(116,37,33,.08) !important;
}

body.cockpit-mode .cockpit-bar-badge {
  color: #d83d38 !important;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.9), transparent 32%),
    linear-gradient(135deg, #fff9f2, #ffe2dc) !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

body.cockpit-mode .cockpit-company-block {
  min-width: 0 !important;
  display: grid !important;
  gap: 7px !important;
}

body.cockpit-mode .cockpit-bar-row label {
  color: #3f201e !important;
  font-size: clamp(15px, 1.18vw, 20px) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}

body.cockpit-mode .cockpit-company-block small {
  display: flex !important;
  min-width: 0 !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  color: #8f6b67 !important;
  font-size: 10px !important;
}

body.cockpit-mode .cockpit-company-block em {
  display: inline-flex !important;
  min-height: 22px !important;
  padding: 0 8px !important;
  align-items: center !important;
  gap: 4px !important;
  border: 1px solid rgba(232,143,135,.34) !important;
  border-radius: 99px !important;
  background: rgba(255,255,255,.72) !important;
  font-style: normal !important;
  white-space: nowrap !important;
}

body.cockpit-mode .cockpit-company-block b {
  color: #d83d38 !important;
  font-family: var(--font-number) !important;
}

body.cockpit-mode .combat-track {
  height: 16px !important;
  border: 1px solid rgba(224, 127, 116, .46) !important;
  background: linear-gradient(180deg, #fae8e4, #f2d8d2) !important;
  box-shadow: inset 0 1px 4px rgba(116,37,33,.08) !important;
}

body.cockpit-mode .combat-track i {
  min-width: 10px !important;
  background: linear-gradient(90deg, #ff8c78, #ef554f 54%, #d13231) !important;
  box-shadow: 0 0 14px rgba(216,61,56,.2) !important;
}

body.cockpit-mode .cockpit-bar-row strong {
  color: #d83d38 !important;
  font-size: clamp(16px, 1.25vw, 22px) !important;
  font-weight: 900 !important;
}

body.cockpit-mode .combat-ring-panel {
  align-content: center !important;
  overflow: hidden !important;
}

body.cockpit-mode .combat-ring-panel::before {
  left: 50% !important;
  top: 50% !important;
  width: min(430px, 80%) !important;
  height: min(430px, 80%) !important;
  inset: auto !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, rgba(216,61,56,.12), transparent 58%),
    conic-gradient(from 90deg, rgba(216,61,56,.08), rgba(244,181,58,.16), rgba(255,255,255,0), rgba(216,61,56,.08)) !important;
  filter: blur(0) !important;
  transform: translate(-50%, -50%) !important;
}

body.cockpit-mode .command-ring {
  z-index: 1 !important;
  width: min(272px, 25vw) !important;
  height: min(272px, 25vw) !important;
  background: conic-gradient(from -90deg, #ef554f 0 var(--ring-progress), #f2ddd8 var(--ring-progress) 360deg) !important;
  box-shadow:
    0 0 0 10px rgba(255,255,255,.62),
    0 0 0 12px rgba(232,143,135,.2),
    0 20px 35px rgba(116,37,33,.1) !important;
}

body.cockpit-mode .command-ring::before {
  inset: 18px !important;
  border: 1px solid rgba(232,143,135,.42) !important;
  background:
    radial-gradient(circle, #fff 0 58%, #fff7f5 59%) !important;
}

body.cockpit-mode .ring-ticks {
  inset: -16px !important;
  border-color: rgba(216,61,56,.22) !important;
}

body.cockpit-mode .ring-core > span {
  color: #684945 !important;
  font-size: clamp(16px, 1.25vw, 21px) !important;
  font-weight: 850 !important;
}

body.cockpit-mode .ring-core > strong {
  margin: 8px 0 5px !important;
  color: #d83d38 !important;
  font-size: clamp(44px, 4.6vw, 78px) !important;
}

body.cockpit-mode .ring-core p {
  color: #7f5d58 !important;
  font-size: clamp(18px, 1.45vw, 26px) !important;
  font-weight: 850 !important;
}

body.cockpit-mode .ring-foot {
  z-index: 2 !important;
  bottom: 28px !important;
  gap: 42px !important;
}

body.cockpit-mode .ring-foot span {
  color: #8b6762 !important;
  font-size: clamp(14px, 1vw, 18px) !important;
}

body.cockpit-mode .ring-foot b,
body.cockpit-mode .ring-foot span:last-child b {
  color: #d83d38 !important;
  font-size: clamp(22px, 1.8vw, 32px) !important;
  font-weight: 900 !important;
}

body.cockpit-mode .cockpit-bottom-grid {
  min-height: 0 !important;
  margin-top: 0 !important;
}

body.cockpit-mode .matrix-panel {
  display: grid !important;
  padding: 10px !important;
}

body.cockpit-mode .cockpit-table-wrap {
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(232,143,135,.38) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.58) !important;
}

body.cockpit-mode .cockpit-table {
  min-width: 0 !important;
  height: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body.cockpit-mode .cockpit-table th {
  height: 30px !important;
  padding: 0 10px !important;
  color: #8a605b !important;
  border-bottom: 1px solid rgba(232,143,135,.32) !important;
  background: linear-gradient(90deg, rgba(255,239,235,.95), rgba(255,255,255,.8)) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

body.cockpit-mode .cockpit-table td {
  height: calc((100% - 30px) / 11) !important;
  padding: 2px 10px !important;
  color: #4c2c29 !important;
  border-bottom: 1px solid rgba(245,231,228,.95) !important;
  background: rgba(255,255,255,.46) !important;
  font-size: clamp(10px, .72vw, 13px) !important;
  vertical-align: middle !important;
}

body.cockpit-mode .cockpit-table tbody tr:nth-child(odd) td {
  background: rgba(255,249,247,.68) !important;
}

body.cockpit-mode .cockpit-table td b {
  color: #d83d38 !important;
}

body.cockpit-mode .cockpit-table th:nth-child(1),
body.cockpit-mode .cockpit-table td:nth-child(1) {
  width: 54px !important;
}

body.cockpit-mode .cockpit-table th:nth-child(2),
body.cockpit-mode .cockpit-table td:nth-child(2) {
  width: 42% !important;
}

body.cockpit-mode .matrix-rank {
  color: #d83d38 !important;
  font-family: var(--font-number) !important;
  font-weight: 900 !important;
}

body.cockpit-mode .matrix-company {
  min-width: 0 !important;
  gap: 8px !important;
}

body.cockpit-mode .matrix-company img {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 auto !important;
  border: 1px solid rgba(232,143,135,.24) !important;
  border-radius: 7px !important;
}

body.cockpit-mode .matrix-logo-badge {
  display: grid !important;
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 auto !important;
  place-items: center !important;
  border: 1px solid rgba(232,143,135,.24) !important;
  border-radius: 7px !important;
  color: #d83d38 !important;
  background: #fff7f4 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.cockpit-mode .matrix-company span {
  color: #3f201e !important;
  font-size: clamp(10px, .74vw, 13px) !important;
  font-weight: 750 !important;
}

@media (max-width: 1180px) {
  body.cockpit-mode {
    overflow: auto !important;
  }

  body.cockpit-mode .page-content {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  body.cockpit-mode .cockpit-shell {
    height: auto !important;
    grid-template-rows: auto auto auto !important;
  }

  body.cockpit-mode .cockpit-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.cockpit-mode .cockpit-main-grid {
    grid-template-columns: 1fr !important;
  }

  body.cockpit-mode .cockpit-bars {
    grid-template-rows: none !important;
  }

  body.cockpit-mode .cockpit-bar-row {
    grid-template-columns: 44px 46px minmax(0, 1fr) !important;
  }

  body.cockpit-mode .combat-track,
  body.cockpit-mode .cockpit-bar-row > strong {
    grid-column: 3 !important;
  }

  body.cockpit-mode .command-ring {
    width: min(260px, 58vw) !important;
    height: min(260px, 58vw) !important;
  }

  body.cockpit-mode .cockpit-table {
    min-width: 820px !important;
  }

  body.cockpit-mode .cockpit-table-wrap {
    overflow-x: auto !important;
  }
}

@media (max-width: 760px) {
  body.cockpit-mode .page-content {
    padding: 8px !important;
  }

  body.cockpit-mode .cockpit-shell {
    padding: 10px !important;
    gap: 10px !important;
  }

  body.cockpit-mode .cockpit-kpis {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.cockpit-mode .cockpit-kpi {
    min-height: 78px !important;
    padding: 12px !important;
  }

  body.cockpit-mode .cockpit-kpi strong {
    font-size: 28px !important;
  }

  body.cockpit-mode .cockpit-kpi b {
    font-size: 12px !important;
  }

  body.cockpit-mode .cockpit-bar-row {
    padding: 10px !important;
    grid-template-columns: 38px 40px minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  body.cockpit-mode .combat-rank {
    width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
  }

  body.cockpit-mode .cockpit-bar-logo {
    width: 38px !important;
    height: 38px !important;
    padding: 4px !important;
  }

  body.cockpit-mode .cockpit-bar-row label {
    font-size: 13px !important;
  }

  body.cockpit-mode .cockpit-company-block small {
    display: none !important;
  }

  body.cockpit-mode .ring-foot {
    bottom: 18px !important;
  }

  body.cockpit-mode .cockpit-table {
    min-width: 720px !important;
  }
}

body.operation-calendar-mode .calendar-events,
.operation-public-page .calendar-events {
  gap: 2px !important;
  margin-top: 3px !important;
  overflow: hidden !important;
}

body.operation-calendar-mode .calendar-event,
.operation-public-page .calendar-event {
  height: clamp(20px, 2.45vh, 26px) !important;
  min-height: 0 !important;
  padding: 2px 5px 2px 9px !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-content: center !important;
  gap: 0 !important;
  border-radius: 6px !important;
  line-height: 1.05 !important;
}

body.operation-calendar-mode .calendar-event strong,
body.operation-calendar-mode .calendar-event small,
.operation-public-page .calendar-event strong,
.operation-public-page .calendar-event small {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  letter-spacing: 0 !important;
  line-height: 1.05 !important;
}

body.operation-calendar-mode .calendar-event strong,
.operation-public-page .calendar-event strong {
  font-size: clamp(7.5px, .62vw, 10px) !important;
}

body.operation-calendar-mode .calendar-event small,
.operation-public-page .calendar-event small {
  font-size: clamp(6px, .48vw, 8px) !important;
}

body.operation-calendar-mode .calendar-more,
.operation-public-page .calendar-more {
  font-size: clamp(6px, .48vw, 8px) !important;
  line-height: 1.05 !important;
}

@media (max-width: 1180px) {
  body.pk-screen-mode,
  body.cockpit-mode {
    overflow: auto !important;
  }

  body.pk-screen-mode .page-content,
  body.cockpit-mode .page-content {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  body.cockpit-mode .cockpit-shell {
    height: auto !important;
    grid-template-rows: auto auto auto !important;
  }

  body.cockpit-mode .cockpit-main-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  body.pk-screen-mode .pk-duel-arena {
    grid-template-columns: 1fr !important;
  }

  body.operation-calendar-mode .calendar-event,
  .operation-public-page .calendar-event {
    height: 14px !important;
    padding: 2px 2px 2px 5px !important;
  }

  body.operation-calendar-mode .calendar-event strong,
  .operation-public-page .calendar-event strong {
    font-size: 6.5px !important;
  }

  body.operation-calendar-mode .calendar-event small,
  .operation-public-page .calendar-event small {
    display: none !important;
  }
}

/* Dashboard refresh: light-blue glass cockpit with cleaner data hierarchy. */
body.cockpit-mode .workspace {
  background:
    radial-gradient(circle at 16% 8%, rgba(92, 177, 255, .26), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(255, 203, 116, .22), transparent 28%),
    radial-gradient(circle at 55% 96%, rgba(255, 122, 111, .18), transparent 34%),
    linear-gradient(135deg, #edf8ff 0%, #fbfdff 46%, #fff1ee 100%) !important;
}

body.cockpit-mode .page-content {
  padding: 12px !important;
}

body.cockpit-mode .cockpit-shell {
  height: calc(100vh - 24px) !important;
  min-height: 0 !important;
  padding: 14px !important;
  display: grid !important;
  grid-template-rows: minmax(106px, 12.5vh) minmax(330px, 42vh) minmax(220px, 1fr) !important;
  gap: 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(126, 184, 220, .58) !important;
  border-radius: 18px !important;
  color: #37211f !important;
  background:
    linear-gradient(90deg, rgba(78, 166, 224, .055) 1px, transparent 1px),
    linear-gradient(rgba(78, 166, 224, .045) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(246, 252, 255, .68) 48%, rgba(255, 248, 246, .76)) !important;
  background-size: 36px 36px, 36px 36px, auto !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .82),
    0 22px 48px rgba(74, 122, 161, .16),
    0 10px 26px rgba(202, 58, 53, .07) !important;
}

body.cockpit-mode .cockpit-shell::before {
  inset: -18% -8% auto auto !important;
  width: 56% !important;
  height: 58% !important;
  border: 0 !important;
  border-radius: 50% !important;
  clip-path: none !important;
  opacity: .72 !important;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .86), transparent 35%),
    conic-gradient(from 145deg, rgba(77, 170, 231, .18), rgba(255, 201, 92, .22), rgba(232, 63, 58, .16), rgba(77, 170, 231, .18)) !important;
  animation: cockpitAuraShift 7s ease-in-out infinite alternate !important;
}

body.cockpit-mode .cockpit-shell::after {
  left: 24px !important;
  right: 24px !important;
  top: calc(12.5vh + 25px) !important;
  width: auto !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(64, 154, 215, .5), rgba(233, 67, 60, .42), transparent) !important;
  box-shadow: 0 0 18px rgba(80, 170, 225, .2) !important;
  transform: none !important;
}

body.cockpit-mode .cockpit-kpis,
body.cockpit-mode .cockpit-main-grid,
body.cockpit-mode .cockpit-bottom-grid {
  position: relative !important;
  z-index: 2 !important;
}

body.cockpit-mode .cockpit-kpis {
  height: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
}

body.cockpit-mode .cockpit-kpi {
  min-height: 0 !important;
  height: 100% !important;
  padding: 16px 18px !important;
  overflow: hidden !important;
  border: 1px solid rgba(134, 185, 218, .58) !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 90% 0, rgba(255, 206, 109, .24), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(246, 252, 255, .78)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .85),
    0 12px 28px rgba(70, 130, 168, .12) !important;
  backdrop-filter: blur(18px) !important;
}

body.cockpit-mode .cockpit-kpi::before {
  left: 0 !important;
  top: 16px !important;
  width: 4px !important;
  height: 40px !important;
  border-radius: 0 99px 99px 0 !important;
  background: linear-gradient(180deg, #39a8e8, #ef554f) !important;
  box-shadow: 0 0 16px rgba(57, 168, 232, .3) !important;
}

body.cockpit-mode .cockpit-kpi::after {
  content: "" !important;
  position: absolute !important;
  right: -28px !important;
  bottom: -34px !important;
  width: 128px !important;
  height: 128px !important;
  border: 1px solid rgba(73, 164, 224, .16) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .7), transparent 40%),
    conic-gradient(from 90deg, rgba(69, 162, 221, .18), rgba(239, 85, 79, .16), rgba(255, 202, 96, .14), rgba(69, 162, 221, .18)) !important;
  transform: none !important;
  animation: cockpitHaloSpin 12s linear infinite !important;
}

body.cockpit-mode .cockpit-kpi > span {
  position: relative !important;
  z-index: 1 !important;
  color: #c93430 !important;
  font-size: clamp(12px, .78vw, 15px) !important;
  font-weight: 900 !important;
}

body.cockpit-mode .cockpit-kpi div {
  position: relative !important;
  z-index: 1 !important;
  margin-top: 9px !important;
}

body.cockpit-mode .cockpit-kpi strong {
  color: #251718 !important;
  font-size: clamp(34px, 3.05vw, 52px) !important;
  line-height: .95 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 8px 20px rgba(73, 164, 224, .1) !important;
}

body.cockpit-mode .cockpit-kpi.gold strong {
  color: #d69108 !important;
}

body.cockpit-mode .cockpit-kpi b {
  color: #735a5b !important;
  font-size: clamp(13px, .88vw, 17px) !important;
  font-weight: 900 !important;
}

body.cockpit-mode .cockpit-main-grid {
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1.46fr) minmax(300px, .74fr) !important;
  gap: 12px !important;
}

body.cockpit-mode .cockpit-panel,
body.cockpit-mode .combat-ring-panel {
  min-height: 0 !important;
  border: 1px solid rgba(130, 184, 220, .58) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(248, 253, 255, .56)),
    radial-gradient(circle at 4% 0, rgba(255, 200, 96, .18), transparent 30%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .76),
    0 16px 36px rgba(75, 127, 166, .13) !important;
  backdrop-filter: blur(18px) !important;
}

body.cockpit-mode .cockpit-panel::before,
body.cockpit-mode .combat-ring-panel::after {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  top: 0 !important;
  height: 3px !important;
  border-radius: 0 0 99px 99px !important;
  background: linear-gradient(90deg, #39a8e8, #ffca61, #ef554f) !important;
  opacity: .82 !important;
}

body.cockpit-mode .top-five-panel {
  display: grid !important;
  overflow: hidden !important;
}

body.cockpit-mode .top-five-panel::after {
  content: "" !important;
  position: absolute !important;
  inset: -40% auto -40% -28% !important;
  width: 26% !important;
  height: auto !important;
  border: 0 !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent) !important;
  transform: skewX(-18deg) !important;
  animation: cockpitSheen 4.8s ease-in-out infinite !important;
}

body.cockpit-mode .cockpit-bars {
  height: 100% !important;
  padding: 14px !important;
  display: grid !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-content: stretch !important;
}

body.cockpit-mode .cockpit-bar-row {
  position: relative !important;
  min-height: 0 !important;
  padding: 14px 16px !important;
  display: grid !important;
  grid-template-columns: 46px 56px minmax(220px, .95fr) minmax(165px, 1fr) 66px !important;
  align-items: center !important;
  gap: 12px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 16px !important;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .9), rgba(247, 253, 255, .7)),
    radial-gradient(circle at 4% 50%, rgba(255, 204, 96, .28), transparent 28%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .82),
    0 10px 26px rgba(85, 132, 164, .14) !important;
}

body.cockpit-mode .cockpit-bar-row::before {
  content: "" !important;
  position: absolute !important;
  inset: 14px auto 14px 0 !important;
  width: 5px !important;
  border-radius: 0 99px 99px 0 !important;
  background: linear-gradient(180deg, #39a8e8, #ef554f) !important;
  box-shadow: 0 0 14px rgba(57, 168, 232, .25) !important;
}

body.cockpit-mode .podium-rank-1 {
  background:
    linear-gradient(115deg, rgba(255, 249, 231, .96), rgba(255, 255, 255, .72)),
    radial-gradient(circle at 4% 50%, rgba(255, 198, 58, .38), transparent 30%) !important;
}

body.cockpit-mode .podium-rank-2 {
  background:
    linear-gradient(115deg, rgba(246, 251, 255, .96), rgba(255, 255, 255, .72)),
    radial-gradient(circle at 4% 50%, rgba(82, 169, 227, .23), transparent 30%) !important;
}

body.cockpit-mode .podium-rank-3 {
  background:
    linear-gradient(115deg, rgba(255, 243, 236, .96), rgba(255, 255, 255, .72)),
    radial-gradient(circle at 4% 50%, rgba(220, 128, 74, .26), transparent 30%) !important;
}

body.cockpit-mode .combat-rank {
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #ef554f, #c72f2d) !important;
  box-shadow: 0 8px 18px rgba(199, 47, 45, .16) !important;
  font-size: 17px !important;
  font-weight: 950 !important;
}

body.cockpit-mode .combat-rank.rank-1 {
  color: #332000 !important;
  background: linear-gradient(135deg, #ffd86a, #f0a91c) !important;
  box-shadow: 0 8px 18px rgba(232, 156, 22, .2) !important;
}

body.cockpit-mode .combat-rank.rank-2 {
  color: #233241 !important;
  background: linear-gradient(135deg, #f9fcff, #bcd7e9) !important;
}

body.cockpit-mode .combat-rank.rank-3 {
  color: #40230d !important;
  background: linear-gradient(135deg, #efb078, #d1763d) !important;
}

body.cockpit-mode .cockpit-bar-logo {
  display: grid !important;
  width: 52px !important;
  height: 52px !important;
  padding: 6px !important;
  place-items: center !important;
  border: 1px solid rgba(129, 184, 220, .42) !important;
  border-radius: 14px !important;
  object-fit: contain !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 8px 18px rgba(73, 122, 154, .11) !important;
}

body.cockpit-mode .cockpit-bar-badge {
  color: #d83d38 !important;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .92), transparent 34%),
    linear-gradient(135deg, #f1f9ff, #ffe2dc) !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

body.cockpit-mode .cockpit-company-block {
  min-width: 0 !important;
  display: grid !important;
  gap: 7px !important;
}

body.cockpit-mode .cockpit-bar-row label {
  display: -webkit-box !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: #2b1a18 !important;
  font-size: clamp(13px, 1.02vw, 17px) !important;
  font-weight: 950 !important;
  line-height: 1.18 !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

body.cockpit-mode .cockpit-company-block small {
  display: flex !important;
  min-width: 0 !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  color: #765a57 !important;
  font-size: 10px !important;
}

body.cockpit-mode .cockpit-company-block em {
  display: inline-flex !important;
  min-height: 22px !important;
  padding: 0 8px !important;
  align-items: center !important;
  gap: 4px !important;
  border: 1px solid rgba(129, 184, 220, .36) !important;
  border-radius: 99px !important;
  background: rgba(255, 255, 255, .76) !important;
  font-style: normal !important;
  white-space: nowrap !important;
}

body.cockpit-mode .cockpit-company-block b {
  color: #d83d38 !important;
  font-family: var(--font-number) !important;
}

body.cockpit-mode .combat-track {
  position: relative !important;
  height: 14px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 99px !important;
  background: linear-gradient(180deg, #edf7ff, #ddecf6) !important;
  box-shadow: inset 0 1px 5px rgba(69, 122, 156, .13) !important;
}

body.cockpit-mode .combat-track::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent) !important;
  transform: translateX(-100%) !important;
  animation: cockpitTrackScan 2.8s ease-in-out infinite !important;
}

body.cockpit-mode .combat-track i {
  min-width: 10px !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .38), transparent 28%),
    linear-gradient(90deg, #39a8e8 0%, #ffca61 48%, #ef554f 100%) !important;
  box-shadow: 0 0 16px rgba(239, 85, 79, .22) !important;
}

body.cockpit-mode .cockpit-bar-row strong {
  color: #d83d38 !important;
  font-size: clamp(15px, 1.1vw, 20px) !important;
  font-weight: 950 !important;
}

body.cockpit-mode .combat-ring-panel {
  align-content: center !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 38%, rgba(57, 168, 232, .12), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(247, 253, 255, .58)) !important;
}

body.cockpit-mode .combat-ring-panel::before {
  left: 50% !important;
  top: 45% !important;
  width: min(390px, 84%) !important;
  height: min(390px, 84%) !important;
  inset: auto !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .72) 0 40%, transparent 58%),
    conic-gradient(from 90deg, rgba(57, 168, 232, .16), rgba(255, 202, 97, .18), rgba(239, 85, 79, .14), rgba(57, 168, 232, .16)) !important;
  filter: blur(0) !important;
  transform: translate(-50%, -50%) !important;
  animation: cockpitHaloSpin 16s linear infinite reverse !important;
}

body.cockpit-mode .command-ring {
  z-index: 1 !important;
  width: min(236px, 22vw) !important;
  height: min(236px, 22vw) !important;
  margin-bottom: 34px !important;
  background: conic-gradient(from -90deg, #ef554f 0 var(--ring-progress), #dcecf6 var(--ring-progress) 360deg) !important;
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, .72),
    0 0 0 12px rgba(129, 184, 220, .22),
    0 18px 36px rgba(69, 122, 156, .14) !important;
  animation: cockpitRingBreath 2.8s ease-in-out infinite !important;
}

body.cockpit-mode .command-ring::before {
  inset: 17px !important;
  border: 1px solid rgba(129, 184, 220, .45) !important;
  background:
    radial-gradient(circle at 50% 42%, #fff 0 56%, #f6fbff 57%) !important;
  box-shadow: inset 0 0 34px rgba(57, 168, 232, .09) !important;
}

body.cockpit-mode .command-ring::after {
  content: "" !important;
  position: absolute !important;
  inset: 5px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(239, 85, 79, .18) !important;
  background: conic-gradient(from 120deg, transparent, rgba(255, 255, 255, .46), transparent 22%) !important;
  animation: orbit 6.5s linear infinite !important;
}

body.cockpit-mode .ring-ticks {
  inset: -16px !important;
  border: 1px dashed rgba(57, 168, 232, .32) !important;
}

body.cockpit-mode .ring-ticks::before {
  border-color: rgba(239, 85, 79, .18) !important;
}

body.cockpit-mode .ring-ticks::after {
  border-color: rgba(255, 202, 97, .2) !important;
}

body.cockpit-mode .ring-core > span {
  color: #516b7d !important;
  font-size: clamp(15px, 1.06vw, 19px) !important;
  font-weight: 900 !important;
}

body.cockpit-mode .ring-core > strong {
  margin: 8px 0 5px !important;
  color: #d83d38 !important;
  font-size: clamp(42px, 4.3vw, 72px) !important;
  text-shadow: 0 10px 22px rgba(216, 61, 56, .12) !important;
}

body.cockpit-mode .ring-core p {
  color: #657988 !important;
  font-size: clamp(17px, 1.35vw, 24px) !important;
  font-weight: 900 !important;
}

body.cockpit-mode .ring-core p b {
  color: #d69108 !important;
}

body.cockpit-mode .ring-foot {
  z-index: 2 !important;
  bottom: 20px !important;
  gap: 12px !important;
}

body.cockpit-mode .ring-foot span {
  min-width: 112px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(129, 184, 220, .34) !important;
  border-radius: 12px !important;
  color: #526b7b !important;
  background: rgba(255, 255, 255, .68) !important;
  box-shadow: 0 8px 18px rgba(69, 122, 156, .08) !important;
  font-size: clamp(12px, .84vw, 15px) !important;
  text-align: center !important;
}

body.cockpit-mode .ring-foot b,
body.cockpit-mode .ring-foot span:last-child b {
  color: #d83d38 !important;
  font-size: clamp(20px, 1.55vw, 28px) !important;
  font-weight: 950 !important;
}

body.cockpit-mode .cockpit-bottom-grid {
  min-height: 0 !important;
  margin-top: 0 !important;
}

body.cockpit-mode .matrix-panel {
  display: grid !important;
  padding: 10px !important;
}

body.cockpit-mode .cockpit-table-wrap {
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .68) !important;
  box-shadow: inset 0 0 0 1px rgba(129, 184, 220, .32) !important;
}

body.cockpit-mode .cockpit-table {
  min-width: 0 !important;
  height: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body.cockpit-mode .cockpit-table th {
  height: 32px !important;
  padding: 0 10px !important;
  color: #587083 !important;
  border-bottom: 1px solid rgba(129, 184, 220, .32) !important;
  background: linear-gradient(90deg, rgba(238, 248, 255, .95), rgba(255, 251, 249, .82)) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

body.cockpit-mode .cockpit-table td {
  height: calc((100% - 32px) / 11) !important;
  padding: 2px 10px !important;
  color: #342220 !important;
  border-bottom: 1px solid rgba(222, 236, 244, .78) !important;
  background: rgba(255, 255, 255, .45) !important;
  font-size: clamp(10px, .72vw, 13px) !important;
  vertical-align: middle !important;
}

body.cockpit-mode .cockpit-table tbody tr:nth-child(odd) td {
  background: rgba(246, 252, 255, .58) !important;
}

body.cockpit-mode .cockpit-table tbody tr:hover td {
  background: rgba(255, 244, 241, .88) !important;
}

body.cockpit-mode .cockpit-table td b {
  color: #d83d38 !important;
}

body.cockpit-mode .cockpit-table th:nth-child(1),
body.cockpit-mode .cockpit-table td:nth-child(1) {
  width: 54px !important;
}

body.cockpit-mode .cockpit-table th:nth-child(2),
body.cockpit-mode .cockpit-table td:nth-child(2) {
  width: 42% !important;
}

body.cockpit-mode .matrix-rank {
  display: inline-grid !important;
  min-width: 26px !important;
  height: 22px !important;
  place-items: center !important;
  border-radius: 99px !important;
  color: #d83d38 !important;
  background: #fff0ed !important;
  font-family: var(--font-number) !important;
  font-weight: 950 !important;
}

body.cockpit-mode .matrix-company {
  min-width: 0 !important;
  gap: 8px !important;
}

body.cockpit-mode .matrix-company img {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 auto !important;
  border: 1px solid rgba(129, 184, 220, .3) !important;
  border-radius: 7px !important;
  background: #fff !important;
}

body.cockpit-mode .matrix-logo-badge {
  display: grid !important;
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 auto !important;
  place-items: center !important;
  border: 1px solid rgba(129, 184, 220, .3) !important;
  border-radius: 7px !important;
  color: #d83d38 !important;
  background: #fff7f4 !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

body.cockpit-mode .matrix-company span {
  color: #2f211f !important;
  font-size: clamp(10px, .74vw, 13px) !important;
  font-weight: 800 !important;
}

body.cockpit-mode .motion-card:hover,
body.cockpit-mode .cockpit-kpi:hover,
body.cockpit-mode .cockpit-panel:hover,
body.cockpit-mode .combat-ring-panel:hover {
  filter: none !important;
}

@keyframes cockpitAuraShift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-4%, 5%, 0) rotate(8deg); }
}

@keyframes cockpitHaloSpin {
  to { transform: rotate(360deg); }
}

@keyframes cockpitRingBreath {
  0%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, .72), 0 0 0 12px rgba(129, 184, 220, .22), 0 18px 36px rgba(69, 122, 156, .14); }
  50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, .82), 0 0 0 15px rgba(239, 85, 79, .14), 0 20px 42px rgba(69, 122, 156, .18); }
}

@keyframes cockpitSheen {
  0%, 28% { transform: translateX(0) skewX(-18deg); opacity: 0; }
  50% { opacity: .75; }
  100% { transform: translateX(540%) skewX(-18deg); opacity: 0; }
}

@keyframes cockpitTrackScan {
  0% { transform: translateX(-100%); opacity: 0; }
  36% { opacity: .8; }
  72%, 100% { transform: translateX(100%); opacity: 0; }
}

@media (max-width: 1180px) {
  body.cockpit-mode {
    overflow: auto !important;
  }

  body.cockpit-mode .page-content {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  body.cockpit-mode .cockpit-shell {
    height: auto !important;
    grid-template-rows: auto auto auto !important;
  }

  body.cockpit-mode .cockpit-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.cockpit-mode .cockpit-main-grid {
    grid-template-columns: 1fr !important;
  }

  body.cockpit-mode .cockpit-bars {
    grid-template-rows: none !important;
  }

  body.cockpit-mode .cockpit-bar-row {
    grid-template-columns: 44px 50px minmax(0, 1fr) 64px !important;
  }

  body.cockpit-mode .combat-track {
    grid-column: 3 / 5 !important;
  }

  body.cockpit-mode .cockpit-bar-row > strong {
    grid-column: 4 !important;
    grid-row: 1 !important;
  }

  body.cockpit-mode .combat-ring-panel {
    min-height: 370px !important;
  }

  body.cockpit-mode .command-ring {
    width: min(246px, 52vw) !important;
    height: min(246px, 52vw) !important;
  }

  body.cockpit-mode .cockpit-table {
    min-width: 820px !important;
  }

  body.cockpit-mode .cockpit-table-wrap {
    overflow-x: auto !important;
  }
}

@media (max-width: 760px) {
  body.cockpit-mode .page-content {
    padding: 8px !important;
  }

  body.cockpit-mode .cockpit-shell {
    padding: 10px !important;
    gap: 10px !important;
    border-radius: 14px !important;
  }

  body.cockpit-mode .cockpit-shell::after {
    top: 172px !important;
  }

  body.cockpit-mode .cockpit-kpis {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.cockpit-mode .cockpit-kpi {
    min-height: 78px !important;
    padding: 12px !important;
  }

  body.cockpit-mode .cockpit-kpi strong {
    font-size: 28px !important;
  }

  body.cockpit-mode .cockpit-kpi b {
    font-size: 12px !important;
  }

  body.cockpit-mode .cockpit-bar-row {
    padding: 10px !important;
    grid-template-columns: 36px 40px minmax(0, 1fr) 50px !important;
    gap: 8px !important;
  }

  body.cockpit-mode .combat-rank {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }

  body.cockpit-mode .cockpit-bar-logo {
    width: 38px !important;
    height: 38px !important;
    padding: 4px !important;
  }

  body.cockpit-mode .cockpit-bar-row label {
    font-size: 13px !important;
    -webkit-line-clamp: 1 !important;
  }

  body.cockpit-mode .cockpit-company-block small {
    display: none !important;
  }

  body.cockpit-mode .combat-track {
    grid-column: 3 / 5 !important;
    height: 10px !important;
  }

  body.cockpit-mode .cockpit-bar-row > strong {
    grid-column: 4 !important;
    grid-row: 1 !important;
    font-size: 13px !important;
  }

  body.cockpit-mode .combat-ring-panel {
    min-height: 330px !important;
  }

  body.cockpit-mode .ring-foot {
    bottom: 16px !important;
  }

  body.cockpit-mode .ring-foot span {
    min-width: 94px !important;
    padding: 7px 8px !important;
  }

  body.cockpit-mode .cockpit-table {
    min-width: 0 !important;
    height: auto !important;
    display: block !important;
  }

  body.cockpit-mode .cockpit-table thead {
    display: none !important;
  }

  body.cockpit-mode .cockpit-table tbody {
    display: grid !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  body.cockpit-mode .cockpit-table tr {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 5px 8px !important;
    padding: 10px !important;
    border: 1px solid rgba(129, 184, 220, .28) !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, .72) !important;
  }

  body.cockpit-mode .cockpit-table td {
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 11px !important;
  }

  body.cockpit-mode .cockpit-table td:nth-child(1) {
    grid-row: 1 / 3 !important;
    width: auto !important;
    align-self: center !important;
  }

  body.cockpit-mode .cockpit-table td:nth-child(2) {
    width: auto !important;
  }

  body.cockpit-mode .cockpit-table td:nth-child(n+3) {
    display: inline-flex !important;
    min-height: 24px !important;
    padding: 0 7px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    border: 1px solid rgba(129, 184, 220, .25) !important;
    border-radius: 999px !important;
    background: rgba(246, 252, 255, .72) !important;
    text-align: right !important;
  }

  body.cockpit-mode .cockpit-table td:nth-child(3)::before {
    content: "业绩";
    color: #587083;
    font-weight: 850;
  }

  body.cockpit-mode .cockpit-table td:nth-child(4)::before {
    content: "新客";
    color: #587083;
    font-weight: 850;
  }

  body.cockpit-mode .cockpit-table td:nth-child(5)::before {
    content: "商机";
    color: #587083;
    font-weight: 850;
  }

  body.cockpit-mode .cockpit-table td:nth-child(6)::before {
    content: "完成率";
    color: #587083;
    font-weight: 850;
  }

  body.cockpit-mode .cockpit-table td:nth-child(3),
  body.cockpit-mode .cockpit-table td:nth-child(4),
  body.cockpit-mode .cockpit-table td:nth-child(5),
  body.cockpit-mode .cockpit-table td:nth-child(6) {
    grid-column: 2 !important;
  }

  body.cockpit-mode .matrix-company span {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
}

/* Dashboard trim: remove the marked decorative strips and keep mobile labels complete. */
body.cockpit-mode .cockpit-shell::after,
body.cockpit-mode .cockpit-kpi::before,
body.cockpit-mode .cockpit-kpi::after,
body.cockpit-mode .cockpit-panel::before,
body.cockpit-mode .combat-ring-panel::after,
body.cockpit-mode .top-five-panel::after,
body.cockpit-mode .cockpit-bar-row::before {
  display: none !important;
  content: none !important;
  animation: none !important;
  background: none !important;
  box-shadow: none !important;
}

body.cockpit-mode .cockpit-kpi > i {
  display: none !important;
}

body.cockpit-mode .combat-track i {
  min-width: 0 !important;
}

body.cockpit-mode .combat-track i[style*="width:0%"] {
  box-shadow: none !important;
}

body.cockpit-mode .ring-foot {
  display: none !important;
}

body.cockpit-mode .command-ring {
  margin-bottom: 0 !important;
}

body.cockpit-mode .combat-ring-panel::before {
  top: 50% !important;
}

@media (max-width: 760px) {
  body.cockpit-mode .cockpit-company-block small {
    display: flex !important;
    gap: 3px !important;
  }

  body.cockpit-mode .cockpit-company-block em {
    min-height: 18px !important;
    padding: 0 5px !important;
    font-size: 8px !important;
  }

  body.cockpit-mode .cockpit-table td:nth-child(4)::before {
    content: "新客户" !important;
  }
}
