:root {
  color-scheme: dark;
  font-family:
    "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #08111f;
  color: #e6edf7;
  --bg: #08111f;
  --panel: #101b2d;
  --panel-strong: #14233a;
  --line: rgba(148, 163, 184, 0.22);
  --text-muted: #93a4bb;
  --cyan: #20d9ff;
  --green: #5ee28c;
  --red: #ff647c;
  --yellow: #ffd166;
}

html {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(32, 217, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #08111f 0%, #0d1f35 48%, #111827 100%);
}

.big-screen-viewport,
.big-screen-stage {
  font-family:
    "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-record-footer {
  position: relative;
  z-index: 2;
  padding: 12px 18px 18px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.site-record-footer a {
  color: inherit;
  text-decoration: none;
}

.site-record-footer a:hover,
.site-record-footer a:focus-visible {
  color: #dbeafe;
  text-decoration: underline;
}

.login-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #07120e;
  color: #eefdf0;
  --login-master-gap: clamp(24px, 3vw, 72px);
  --login-master-ip: clamp(210px, 16vw, 360px);
  --login-master-form: clamp(330px, 22vw, 460px);
  --login-master-title: clamp(78px, 6.4vw, 150px);
  --login-master-subtitle: clamp(38px, 3.25vw, 72px);
  --login-card-w: var(--login-master-form);
  --login-card-h: calc(var(--login-card-w) * 1.16);
  --login-ip-w: var(--login-master-ip);
  --login-accent: #9dff5a;
  --login-cyan: #26e6ff;
  --login-ink: #08120d;
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 16, 12, 0.94) 0%, rgba(4, 16, 12, 0.78) 42%, rgba(4, 16, 12, 0.55) 70%, rgba(4, 16, 12, 0.86) 100%),
    linear-gradient(180deg, rgba(145, 255, 92, 0.08), rgba(38, 230, 255, 0.06) 44%, rgba(4, 16, 12, 0.92)),
    url("/assets/login-data-center-20260710.jpg") center / cover no-repeat;
}

.login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(157, 255, 90, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 230, 255, 0.06) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 42%, rgba(157, 255, 90, 0.12) 42.08%, transparent 42.28% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 7px);
  background-size: 120px 120px, 120px 120px, 100% 100%, auto;
  opacity: 0.92;
  pointer-events: none;
}

.login-hero {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: stretch;
  min-height: calc(100vh - 46px);
  padding: clamp(26px, 3.7vw, 58px);
}

.login-record-footer {
  position: fixed;
  right: 0;
  bottom: 8px;
  left: 0;
  color: rgba(238, 253, 240, 0.72);
}

.login-command {
  display: grid;
  grid-template-columns: var(--login-master-ip) minmax(560px, 1fr) var(--login-master-form);
  gap: var(--login-master-gap);
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - clamp(52px, 7.4vw, 116px));
  width: min(100%, 2360px);
  margin: 0 auto;
}

.login-brand-zone {
  display: contents;
}

.login-title-block {
  grid-column: 2;
  align-self: center;
  justify-self: center;
  width: min(100%, 940px);
  text-align: left;
}

.login-title-block .login-topline {
  margin-bottom: clamp(18px, 2.2vw, 34px);
}

.login-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  padding: 11px 16px 11px 11px;
  border: 1px solid rgba(157, 255, 90, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(157, 255, 90, 0.08)),
    rgba(4, 18, 13, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 24px 70px rgba(0, 0, 0, 0.28),
    0 0 36px rgba(157, 255, 90, 0.12);
  backdrop-filter: blur(18px);
}

.login-topline .brand-mark {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(38, 230, 255, 0.7);
  background:
    linear-gradient(135deg, rgba(38, 230, 255, 0.18), rgba(157, 255, 90, 0.06)),
    rgba(4, 20, 16, 0.82);
  color: #41eaff;
  font-size: 24px;
  box-shadow: inset 0 0 28px rgba(38, 230, 255, 0.16);
}

.login-topline strong {
  color: #f4fff0;
  font-size: clamp(23px, 1.55vw, 32px);
  letter-spacing: 0;
}

.login-topline strong,
.login-topline small {
  display: block;
}

.login-topline small {
  margin-top: 4px;
  color: rgba(213, 255, 197, 0.74);
  font-size: 13px;
  font-weight: 800;
}

.login-title-block h1,
.topbar h1 {
  margin: 0;
  letter-spacing: 0;
}

.login-title-block h1 {
  max-width: none;
  color: #f6fff0;
  font-size: var(--login-master-title);
  line-height: 0.94;
  text-shadow:
    0 0 28px rgba(157, 255, 90, 0.18),
    0 28px 70px rgba(0, 0, 0, 0.52);
}

.login-title-block h1 span,
.login-title-block h1 strong {
  display: block;
}

.login-title-block h1 strong {
  margin-top: clamp(8px, 0.8vw, 16px);
  color: var(--login-accent);
  font-size: var(--login-master-subtitle);
  line-height: 1.02;
}

.login-lead {
  max-width: 760px;
  margin: clamp(20px, 2.2vw, 36px) 0 0;
  color: rgba(235, 255, 229, 0.78);
  font-size: clamp(17px, 1.22vw, 27px);
  font-weight: 700;
  line-height: 1.42;
}

.login-art-panel {
  position: relative;
  isolation: isolate;
  grid-column: 1;
  align-self: center;
  justify-self: center;
  width: var(--login-ip-w);
  height: calc(var(--login-ip-w) * 1.18);
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(157, 255, 90, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(157, 255, 90, 0.15), rgba(38, 230, 255, 0.08) 48%, rgba(5, 18, 13, 0.76)),
    rgba(6, 24, 17, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -30px 70px rgba(0, 0, 0, 0.36),
    0 34px 90px rgba(0, 0, 0, 0.34),
    0 0 48px rgba(157, 255, 90, 0.12);
  backdrop-filter: blur(14px);
  opacity: 0.92;
}

.login-art-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(38, 230, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(rgba(157, 255, 90, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 230, 255, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.72;
}

.login-art-panel::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: 8%;
  width: 120%;
  height: 34%;
  transform: rotate(-9deg);
  background: linear-gradient(90deg, transparent, rgba(157, 255, 90, 0.22), transparent);
  filter: blur(2px);
}

.login-ip-figure {
  display: block;
  position: absolute;
  left: 50%;
  bottom: -8%;
  z-index: 1;
  width: 110%;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 20px rgba(157, 255, 90, 0.18));
}

.login-art-meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(4, 18, 13, 0.62);
  color: rgba(238, 255, 231, 0.82);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(16px);
}

.login-art-meta strong {
  color: var(--login-accent);
  font-size: 13px;
}

.login-insight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 2.8vw, 46px);
}

.login-insight-strip span {
  display: grid;
  align-items: center;
  min-width: 138px;
  min-height: 58px;
  padding: 10px 16px;
  border: 1px solid rgba(157, 255, 90, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(157, 255, 90, 0.07)),
    rgba(5, 22, 16, 0.68);
  color: #f4fff0;
  font-size: 14px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 46px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.login-insight-strip b,
.login-insight-strip em {
  display: block;
  font-style: normal;
}

.login-insight-strip em {
  margin-top: 3px;
  color: rgba(207, 255, 194, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.login-form,
.stack-form {
  width: 100%;
}

.login-form {
  position: relative;
  z-index: 2;
  grid-column: 3;
  align-self: center;
  justify-self: end;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: var(--login-card-w);
  height: var(--login-card-h);
  min-height: 0;
  max-width: var(--login-card-w);
  box-sizing: border-box;
  margin-top: 0;
  transform: none;
  border: 1px solid rgba(157, 255, 90, 0.28);
  border-radius: 8px;
  padding: 30px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(157, 255, 90, 0.07)),
    rgba(5, 18, 13, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 32px 86px rgba(0, 0, 0, 0.34),
    0 0 42px rgba(157, 255, 90, 0.1);
  backdrop-filter: blur(28px);
}

.login-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(157, 255, 90, 0.18), transparent 38%),
    linear-gradient(315deg, rgba(38, 230, 255, 0.12), transparent 42%);
}

.login-form > * {
  position: relative;
}

.login-form h2 {
  margin: 0;
  color: #f4fff0;
  font-size: 30px;
}

.login-form-head {
  margin-bottom: 18px;
}

.login-form-head span {
  display: block;
  margin-top: 10px;
  color: rgba(216, 255, 205, 0.64);
  font-size: 14px;
}

.login-field {
  margin-bottom: 12px;
}

.login-field > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(236, 255, 228, 0.82);
  font-weight: 800;
}

.login-field input {
  min-height: 52px;
  border-color: rgba(157, 255, 90, 0.24);
  background: rgba(2, 12, 9, 0.48);
  color: #f4fff0;
  font-size: 17px;
}

.login-field input::placeholder {
  color: rgba(213, 255, 197, 0.38);
}

.password-visibility-field {
  position: relative;
  display: block;
}

.password-visibility-field > input {
  width: 100%;
  padding-right: 48px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: currentColor;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible,
.password-visibility-toggle.is-visible {
  background: rgba(72, 132, 255, 0.14);
}

.password-visibility-glyph {
  position: relative;
  display: block;
  width: 17px;
  height: 11px;
  border: 1.7px solid currentColor;
  border-radius: 100% 0;
  transform: rotate(45deg);
}

.password-visibility-glyph::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: '';
  transform: translate(-50%, -50%) rotate(-45deg);
}

.login-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  font-size: 17px;
  background: linear-gradient(135deg, #9dff5a, #26e6ff 92%);
  color: #07120e;
  box-shadow: 0 20px 44px rgba(38, 230, 255, 0.2);
}

.login-metric-strip {
  position: relative;
  z-index: 2;
  display: flex;
  grid-column: 2;
  gap: 10px;
  margin-top: 18px;
}

.login-metric-strip span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 38px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #2563eb;
  font-size: 14px;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 8px;
  color: #40eaff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #bfd1e8;
  font-size: 14px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 6px;
  padding: 0 12px;
  background: #0a1424;
  color: #e6edf7;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(32, 217, 255, 0.12);
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: linear-gradient(135deg, #0db8ff, #29e59f);
  color: #05111f;
  font-weight: 800;
}

.password-visibility-toggle {
  min-height: 32px;
  border-radius: 8px;
  padding: 0;
  color: currentColor;
  background: transparent;
}

.ghost-btn,
.icon-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #dce8f6;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  text-decoration: none;
}

.form-error {
  min-height: 22px;
  color: var(--red);
}

.app-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  width: 246px;
  min-width: 246px;
  min-height: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  padding: 14px 10px 12px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(7, 16, 31, 0.985), rgba(10, 20, 39, 0.98));
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 10px 11px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(14, 31, 58, 0.64), rgba(15, 23, 42, 0.48)),
    rgba(15, 23, 42, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(32, 217, 255, 0.52);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(8, 20, 38, 0.85));
  color: var(--cyan);
  font-size: 16px;
  font-weight: 900;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 18px rgba(32, 217, 255, 0.08);
}

.brand strong {
  display: block;
  color: #f8fbff;
  font-size: 16px;
  font-weight: 900;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: #8ea3bf;
  font-size: 11px;
  line-height: 1.2;
}

.sidebar-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  flex: 1;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-group-label {
  display: block;
  padding: 2px 8px 3px;
  color: #6d85a7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.82;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 7px 9px 7px 11px;
  border: 1px solid rgba(98, 122, 160, 0.14);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(18, 30, 52, 0.72), rgba(11, 21, 39, 0.5)),
    rgba(13, 24, 43, 0.4);
  color: #dbe8f7;
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
  cursor: pointer;
}

a.nav-item {
  text-decoration: none;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(115, 140, 182, 0.22), rgba(255, 255, 255, 0.02));
  opacity: 0.55;
}

.nav-item:hover,
.nav-item:focus-visible {
  border-color: rgba(56, 189, 248, 0.3);
  background:
    linear-gradient(135deg, rgba(22, 43, 74, 0.88), rgba(14, 29, 52, 0.74)),
    rgba(16, 34, 62, 0.78);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  outline: none;
  transform: translateY(-1px);
}

.nav-item-title {
  display: block;
  color: #f3f7fd;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.nav-item-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 21px;
  padding: 0 7px;
  border: 1px solid rgba(133, 151, 179, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #9db0c8;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.nav-item-tag-ai {
  border-color: rgba(94, 226, 140, 0.26);
  background: rgba(94, 226, 140, 0.12);
  color: #8ef2b2;
}

.nav-item-tag-eight {
  border-color: rgba(255, 209, 102, 0.26);
  background: rgba(255, 209, 102, 0.12);
  color: #ffe086;
}

.nav-item-tag-yx {
  border-color: rgba(32, 217, 255, 0.28);
  background: rgba(32, 217, 255, 0.12);
  color: #94efff;
}

.nav-item.active {
  border-color: rgba(34, 211, 238, 0.34);
  background:
    linear-gradient(135deg, rgba(26, 76, 128, 0.98), rgba(17, 34, 58, 0.94)),
    rgba(10, 30, 50, 0.84);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(1, 8, 20, 0.24),
    0 0 20px rgba(32, 217, 255, 0.08);
}

.nav-item.active::before {
  left: 0;
  right: auto;
  top: 8px;
  bottom: 8px;
  width: 4px;
  height: auto;
  background: linear-gradient(180deg, #22d3ee, #38bdf8);
  opacity: 1;
}

.nav-item.active .nav-item-title {
  color: #ffffff;
}

.nav-item.active .nav-item-tag {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-folder-root {
  display: grid;
  gap: 5px;
}

.nav-folder-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.nav-folder-chevron {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #8ea3bf;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.16s ease;
}

.nav-folder-toggle[aria-expanded='true'] .nav-folder-chevron {
  transform: rotate(90deg);
}

.nav-folder-children {
  display: grid;
  gap: 6px;
  margin-left: 13px;
  padding: 3px 0 5px 10px;
  border-left: 1px solid rgba(98, 122, 160, 0.26);
}

.nav-folder-children[hidden] {
  display: none;
}

.nav-item[hidden] {
  display: none;
}

.nav-subitem {
  min-height: 34px;
  padding: 6px 8px 6px 10px;
  border-radius: 8px;
  background: rgba(9, 19, 34, 0.42);
}

.nav-subitem .nav-item-title {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-subitem .nav-item-tag {
  min-width: 30px;
  height: 19px;
  padding: 0 6px;
  font-size: 9px;
}

.nav-root-item {
  min-height: 46px;
}

.workspace-view {
  max-width: 1520px;
  margin: 0 auto;
}

.workspace-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.workspace-head h2 {
  margin: 2px 0 5px;
  font-size: 28px;
}

.workspace-preview-label,
.workspace-store-select {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 8px;
  background: rgba(11, 24, 42, 0.76);
  color: #a9bdd6;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.workspace-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.workspace-kpis article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(98, 122, 160, 0.2);
  border-radius: 10px;
  background: rgba(13, 24, 43, 0.72);
}

.workspace-kpis span,
.workspace-kpis small {
  display: block;
  color: #8ea3bf;
  font-size: 12px;
}

.workspace-kpis strong {
  display: block;
  margin: 8px 0 5px;
  color: #f4f8ff;
  font-size: 24px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.workspace-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.finance-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.finance-cost-kpi {
  display: flex;
  flex-direction: column;
}

.workspace-kpi-action {
  align-self: flex-start;
  min-height: 30px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 7px;
  background: rgba(8, 145, 178, 0.15);
  color: #67e8f9;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.workspace-list {
  display: grid;
}

.workspace-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid rgba(98, 122, 160, 0.16);
}

.workspace-list > div:last-child {
  border-bottom: 0;
}

.workspace-list small {
  color: #8ea3bf;
  white-space: nowrap;
}

.workspace-empty {
  min-height: 150px;
}

.workspace-store-panel,
.workspace-bottom {
  margin-top: 16px;
}

.workspace-store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
}

.workspace-store-grid > div,
.workspace-store-grid > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 42px;
  border-bottom: 1px solid rgba(98, 122, 160, 0.16);
}

.workspace-store-grid > button {
  padding: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.workspace-store-grid > button:hover,
.workspace-store-grid > button:focus-visible {
  background: rgba(34, 211, 238, 0.06);
  outline: none;
}

.workspace-store-grid strong {
  min-width: 0;
  overflow: hidden;
  color: #e8f0fb;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-store-grid small {
  flex: 0 0 auto;
  color: #8ea3bf;
  font-size: 11px;
}

.workspace-task-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workspace-task-columns > section {
  min-width: 0;
}

.workspace-task-columns h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(34, 211, 238, 0.28);
  font-size: 14px;
}

.workspace-task-columns h3 small {
  color: #8ea3bf;
  font-size: 11px;
  font-weight: 700;
}

.workspace-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.6fr);
  gap: 14px;
}

.workspace-upload-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #91a7c3;
  font-size: 12px;
  font-weight: 800;
}

.workspace-upload-form input,
.workspace-upload-form select,
.workspace-store-select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(98, 122, 160, 0.3);
  border-radius: 7px;
  background: #0b182a;
  color: #e8f0fb;
  font: inherit;
}

.workspace-file-field {
  grid-column: 1 / -1;
}

.workspace-file-field input {
  padding: 8px 10px;
}

.workspace-upload-form .primary-btn {
  justify-self: start;
  min-width: 150px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 7px;
  background: #1597a9;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.workspace-upload-form .primary-btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.finance-cost-form {
  align-content: start;
}

.finance-cost-panel {
  scroll-margin-top: 24px;
}

.workspace-form-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #70d7b2;
  font-size: 12px;
}

.workspace-form-status.is-error {
  color: #ff8b96;
}

.workspace-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.finance-submission-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px !important;
  padding: 8px 0;
}

.finance-submission-row > span,
.finance-submission-row > span > small {
  display: block;
}

.finance-submission-row > span > small {
  margin-top: 4px;
  color: #8ea3bf;
  font-size: 11px;
}

.finance-submission-status {
  text-align: right;
}

.finance-submission-row.is-withdrawn {
  opacity: 0.58;
}

.finance-withdraw-btn {
  align-self: center;
  min-height: 32px;
  border: 1px solid rgba(255, 139, 150, 0.34);
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(255, 59, 48, 0.12);
  color: #ff8b96;
  cursor: pointer;
}

.finance-withdraw-confirmation {
  margin-top: 14px;
  border: 1px solid rgba(255, 139, 150, 0.28);
  border-radius: 10px;
  padding: 14px;
  background: rgba(83, 20, 29, 0.24);
}

.finance-withdraw-confirmation p {
  margin: 0 0 10px;
}

.finance-withdraw-confirmation label {
  display: grid;
  gap: 6px;
  color: #b9c6d8;
  font-size: 12px;
  font-weight: 800;
}

.finance-withdraw-confirmation input {
  min-height: 40px;
  padding: 0 11px;
}

.finance-withdraw-confirmation > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.finance-analysis-panel {
  margin-top: 16px;
}

.finance-period-grid,
.finance-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.finance-period-grid article {
  min-width: 0;
  border: 1px solid rgba(98, 122, 160, 0.2);
  border-radius: 10px;
  padding: 14px;
  background: rgba(13, 24, 43, 0.58);
}

.finance-period-grid span,
.finance-period-grid small,
.finance-period-grid em {
  display: block;
}

.finance-period-grid span,
.finance-period-grid small {
  color: #8ea3bf;
  font-size: 12px;
}

.finance-period-grid strong {
  display: block;
  margin: 8px 0 5px;
  color: #f4f8ff;
  font-size: 22px;
}

.finance-period-grid em {
  margin-top: 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.finance-period-grid .is-up { color: #70d7b2; }
.finance-period-grid .is-down { color: #ff8b96; }
.finance-period-grid .is-neutral { color: #8ea3bf; }

.finance-comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.finance-comparison-grid > section {
  min-width: 0;
  border-top: 1px solid rgba(98, 122, 160, 0.2);
  padding-top: 14px;
}

.finance-comparison-grid h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.finance-comparison-grid b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 6px;
  background: rgba(10, 132, 255, 0.14);
  color: #64d2ff;
  font-size: 11px;
}

.main {
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.topbar h1 {
  font-size: 30px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}

.sidebar-actions {
  display: grid;
  gap: 6px;
  flex: 0 0 auto;
  margin-top: 8px;
}

.sidebar-realtime-refresh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 11px;
  background: rgba(34, 211, 238, 0.08);
  color: #dffaff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.sidebar-realtime-refresh strong {
  color: #8feaff;
  font-size: 11px;
  white-space: nowrap;
}

.sidebar-realtime-refresh:hover,
.sidebar-realtime-refresh:focus-visible {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(34, 211, 238, 0.14);
  outline: none;
}

.sidebar-realtime-refresh.is-active strong {
  color: #30d158;
}

.sidebar-realtime-refresh.is-warning strong {
  color: #ff9f0a;
}

.sidebar-realtime-refresh:disabled {
  cursor: default;
  opacity: 1;
}

.sidebar-back-btn {
  display: none;
}

.top-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-color: rgba(32, 217, 255, 0.36);
  background: rgba(32, 217, 255, 0.12);
  color: #ffffff;
  font-weight: 900;
  white-space: nowrap;
}

.sidebar .sidebar-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  margin-top: 0;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(17, 40, 70, 0.88), rgba(11, 24, 42, 0.74)),
    rgba(14, 31, 58, 0.72);
  color: #f3f7fd;
  font-size: 13px;
  font-weight: 900;
}

.sidebar .sidebar-back-btn:hover,
.sidebar .sidebar-back-btn:focus-visible {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(18, 52, 86, 0.92);
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid rgba(133, 151, 179, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #9db0c8;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(18, 52, 86, 0.92);
  color: #ffffff;
  outline: none;
}

.sidebar-toggle-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  font-size: 20px;
  line-height: 1;
}

body.sidebar-collapsed .app-shell {
  grid-template-columns: 58px minmax(0, 1fr);
}

body.sidebar-collapsed .sidebar {
  width: 58px;
  min-width: 58px;
  padding: 10px 7px;
  overflow: hidden;
}

body.sidebar-collapsed .brand {
  justify-content: center;
  margin-bottom: 8px;
  padding: 6px;
}

body.sidebar-collapsed .brand > div,
body.sidebar-collapsed .sidebar-nav,
body.sidebar-collapsed .sidebar-back-btn,
body.sidebar-collapsed .sidebar-toggle-label {
  display: none;
}

body.sidebar-collapsed .sidebar-actions {
  margin-top: auto;
}

body.sidebar-collapsed .sidebar-toggle {
  min-height: 38px;
  padding: 0;
}

body.sidebar-collapsed .sidebar-toggle-icon {
  font-size: 24px;
}

.status-pill,
.user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #cfe0f4;
  font-size: 13px;
}

.status-pill.ok {
  color: var(--green);
}

.status-pill.error,
.status-pill.warning {
  color: var(--yellow);
}

.source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin-left: 4px;
  padding: 1px 4px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 3px;
  font-size: 0.68em;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  vertical-align: 0.08em;
}

.source-eight {
  border-color: rgba(246, 200, 76, 0.3);
  background: rgba(246, 200, 76, 0.12);
  color: #f6c84c;
}

.source-ai {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
}

.source-yx {
  border-color: rgba(255, 209, 102, 0.28);
  background: rgba(255, 209, 102, 0.12);
  color: #ffd166;
}

.source-paused {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

body.big-screen-mode {
  background: #020711;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

body.big-screen-mode .sidebar,
body.big-screen-mode .topbar {
  display: none;
}

body.big-screen-mode .app-shell {
  display: block;
}

body.big-screen-mode .main {
  width: 100vw;
  height: 100vh;
  padding: 0;
  overflow: hidden;
}

.big-screen-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #020711;
}

.big-screen-fullscreen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 18px;
  border: 1px solid rgba(185, 247, 106, 0.48);
  border-radius: 7px;
  background: rgba(4, 18, 14, 0.72);
  color: #efffe7;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(2, 10, 7, 0.2);
  backdrop-filter: blur(8px);
}

.big-screen-fullscreen:hover,
.big-screen-fullscreen:focus-visible {
  border-color: rgba(185, 247, 106, 0.86);
  background: rgba(18, 58, 31, 0.88);
  outline: none;
}

.big-screen-left {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 8px;
  width: 410px;
}

.big-screen-realtime-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  min-height: 42px;
  margin-left: 18px;
  padding: 0 16px;
  border: 1px solid rgba(185, 247, 106, 0.48);
  border-radius: 7px;
  background: rgba(4, 18, 14, 0.72);
  color: #efffe7;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.big-screen-realtime-refresh:hover,
.big-screen-realtime-refresh:focus-visible {
  border-color: rgba(185, 247, 106, 0.86);
  background: rgba(18, 58, 31, 0.88);
  outline: none;
}

.big-screen-realtime-refresh.is-active {
  border-color: rgba(96, 255, 147, 0.8);
  background: rgba(20, 92, 49, 0.86);
  color: #b9ffca;
}

.big-screen-realtime-refresh.is-warning {
  border-color: rgba(255, 193, 92, 0.7);
  color: #ffd98e;
}

.big-screen-realtime-refresh:disabled {
  cursor: default;
  opacity: 1;
}

@media (max-width: 600px) {
  .big-screen-fullscreen {
    min-width: 64px;
    min-height: 28px;
    margin-top: 5px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 11px;
  }

  .big-screen-realtime-refresh {
    width: auto;
    min-height: 28px;
    margin-left: 0;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 11px;
  }

  body.big-screen-mode {
    height: auto;
    min-height: 0;
  }

  body.big-screen-mode .main {
    height: auto;
    min-height: 0;
  }

  body.big-screen-mode .big-screen-viewport {
    height: 56.25vw;
  }

  #bigScreenView:fullscreen .big-screen-viewport,
  #bigScreenView:-webkit-full-screen .big-screen-viewport {
    height: 100vh;
  }
}

#bigScreenView:fullscreen,
#bigScreenView:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #020711;
}

.big-screen-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--big-screen-stage-width, 2560px);
  height: var(--big-screen-stage-height, 1440px);
  --big-hall-x: 46px;
  --big-hall-top: 34px;
  --big-hall-gap: 24px;
  --big-hall-bottom: 34px;
  transform-origin: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(246, 255, 239, 0.92), rgba(210, 241, 194, 0.82) 42%, rgba(9, 25, 26, 0.84) 100%),
    url("/assets/ht-ip-brush.jpg") center/cover;
  color: #e9f7ff;
}

.big-screen-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38, 125, 54, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(38, 125, 54, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(159, 233, 119, 0.34), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(42, 107, 55, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(4, 18, 16, 0.4));
  background-size: 72px 72px, 72px 72px, auto, auto;
  pointer-events: none;
}

.big-screen-header,
.big-screen-kpi-board,
.big-screen-kpis,
.big-screen-grid {
  position: relative;
  z-index: 1;
}

.big-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 152px;
  margin: var(--big-hall-top) var(--big-hall-x) var(--big-hall-gap);
  padding: 0 28px;
  border: 1px solid rgba(172, 240, 128, 0.36);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(8, 37, 24, 0.58), rgba(219, 255, 197, 0.2) 48%, rgba(8, 37, 24, 0.62)),
    rgba(4, 18, 14, 0.32);
  box-shadow:
    inset 0 0 32px rgba(185, 247, 106, 0.1),
    0 18px 44px rgba(2, 10, 7, 0.2),
    0 0 30px rgba(126, 231, 91, 0.12);
}

.big-screen-title-wrap {
  position: absolute;
  top: 16px;
  left: 50%;
  right: auto;
  box-sizing: border-box;
  width: min(1040px, calc(100% - 360px));
  transform: translateX(-50%);
  text-align: center;
}

.big-screen-title-wrap::before,
.big-screen-title-wrap::after {
  position: absolute;
  top: 56px;
  width: 410px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(77, 226, 255, 0.88));
  content: "";
}

.big-screen-title-wrap::before {
  right: calc(50% + 360px);
}

.big-screen-title-wrap::after {
  left: calc(50% + 360px);
  transform: scaleX(-1);
}

.big-screen-title-wrap::before,
.big-screen-title-wrap::after {
  background: linear-gradient(90deg, transparent, rgba(111, 190, 71, 0.9));
}

.big-screen-title-wrap span {
  color: #83e46f;
  font-size: 20px;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(131, 228, 111, 0.55);
}

.big-screen-title-wrap h1 {
  margin: 8px 0 0;
  color: #f9fff5;
  font-size: 56px;
  line-height: 1.05;
  text-shadow:
    0 2px 0 rgba(31, 92, 45, 0.55),
    0 0 34px rgba(135, 220, 92, 0.82);
}

.big-screen-subtitle {
  display: block;
  margin: 10px auto 0;
  color: #efffe7;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(31, 92, 45, 0.45),
    0 0 24px rgba(135, 220, 92, 0.72);
}

.big-screen-back {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 8px;
  width: 100%;
  min-height: 72px;
  border: 0;
  border-radius: 0;
  padding: 12px 18px;
  background: transparent;
  color: #e8ffe1;
  text-align: left;
  cursor: pointer;
}

.big-screen-back span,
.big-screen-back strong {
  display: block;
  overflow: hidden;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-screen-back span {
  color: #d9ff78;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 16px rgba(167, 240, 108, 0.54);
}

.big-screen-back strong {
  color: #f9fff5;
  font-size: 20px;
  font-weight: 800;
}

.big-screen-back:hover,
.big-screen-back:focus-visible {
  outline: none;
  box-shadow: none;
}

.big-screen-clock {
  position: relative;
  z-index: 2;
  width: 410px;
  text-align: right;
}

.big-screen-clock strong {
  display: block;
  color: #f9fff5;
  font-size: 48px;
  line-height: 1;
  text-shadow: 0 0 26px rgba(167, 240, 108, 0.7);
}

.big-screen-clock span {
  display: block;
  margin-top: 8px;
  color: #dff8d1;
  font-size: 20px;
  font-weight: 800;
}

.big-screen-kpi-board {
  margin: 0 var(--big-hall-x) var(--big-hall-gap);
  border: 1px solid rgba(172, 240, 128, 0.34);
  border-radius: 10px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(245, 255, 232, 0.16), rgba(23, 76, 41, 0.16) 34%, rgba(2, 19, 14, 0.32)),
    rgba(5, 28, 18, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(241, 255, 226, 0.18),
    inset 0 0 34px rgba(165, 255, 124, 0.08),
    0 16px 34px rgba(3, 14, 8, 0.22),
    0 0 32px rgba(129, 223, 84, 0.14);
}

.big-screen-kpi-board::before {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(211, 255, 158, 0.86), transparent);
  content: "";
}

.big-screen-kpis,
.dashboard-kpi-copy {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
}

.big-screen-kpis article,
.dashboard-kpi-copy article,
.big-screen-panel {
  border: 1px solid rgba(172, 240, 128, 0.42);
  background:
    linear-gradient(180deg, rgba(221, 255, 188, 0.08), transparent 32%),
    linear-gradient(135deg, rgba(16, 67, 42, 0.88), rgba(5, 31, 27, 0.8)),
    rgba(4, 18, 14, 0.72);
  box-shadow:
    inset 0 0 28px rgba(166, 255, 124, 0.1),
    0 0 28px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(137, 246, 97, 0.08);
}

.big-screen-kpis article,
.dashboard-kpi-copy article {
  height: 132px;
  min-width: 0;
  padding: 14px 16px 13px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.big-screen-kpis article.big-clickable,
.dashboard-kpi-copy article.big-clickable {
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.big-screen-kpis article.display-only,
.dashboard-kpi-copy article.display-only {
  cursor: default;
}

.big-screen-kpis article.big-clickable:hover,
.big-screen-kpis article.big-clickable:focus-visible,
.dashboard-kpi-copy article.big-clickable:hover,
.dashboard-kpi-copy article.big-clickable:focus-visible {
  border-color: rgba(217, 255, 120, 0.74);
  outline: none;
  box-shadow:
    inset 0 0 30px rgba(217, 255, 120, 0.13),
    0 0 30px rgba(172, 240, 128, 0.22);
  transform: translateY(-1px);
}

.big-screen-kpis span,
.dashboard-kpi-copy span,
.big-business-grid span,
.big-mini-list span,
.big-ops-strip span {
  display: block;
  color: #c4ebbd;
  font-size: 18px;
  font-weight: 700;
}

.big-screen-kpis span,
.dashboard-kpi-copy span {
  display: block;
  overflow: visible;
  min-height: 34px;
  color: #d9f5c8;
  font-size: 16px;
  line-height: 1.12;
  text-overflow: clip;
  white-space: normal;
}

.big-screen-kpis strong,
.dashboard-kpi-copy strong {
  display: block;
  overflow: hidden;
  margin-top: 9px;
  color: #d8ff6f;
  font-size: 38px;
  letter-spacing: 0;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-screen-kpis small,
.dashboard-kpi-copy small {
  display: block;
  overflow: visible;
  min-height: 32px;
  margin-top: 8px;
  color: #a8c99e;
  font-size: 14px;
  line-height: 1.14;
  text-overflow: clip;
  white-space: normal;
}

.big-screen-kpis article.big-kpi-rank-card {
  padding-top: 9px;
}

.big-kpi-mini-rank {
  position: relative;
  height: 58px;
  margin-top: 6px;
  overflow: hidden;
}

.big-kpi-mini-rank > div {
  display: grid;
  gap: 4px;
  animation: bigKpiRankScroll 12s linear infinite;
}

.big-kpi-mini-rank p {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: #d9ff78;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.15;
}

.big-kpi-mini-rank b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: rgba(217, 255, 120, 0.16);
  color: #d9ff78;
  font-size: 11px;
}

.big-kpi-mini-rank span,
.big-kpi-mini-rank strong {
  overflow: hidden;
  min-width: 0;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-kpi-mini-rank span {
  color: #f4ffe2;
  font-size: 13.5px;
}

.big-kpi-mini-rank strong {
  color: #ffd166;
  font-size: 13.5px;
  line-height: 1;
}

.big-kpi-mini-rank em {
  display: block;
  margin-top: 10px;
  color: #9bc79a;
  font-size: 13px;
  font-style: normal;
}

@keyframes bigKpiRankScroll {
  0%,
  28% {
    transform: translateY(0);
  }

  42%,
  70% {
    transform: translateY(-24px);
  }

  84%,
  100% {
    transform: translateY(0);
  }
}

.big-screen-kpis article.warning strong,
.dashboard-kpi-copy article.warning strong {
  color: #ffd166;
}

.big-screen-kpis article.danger strong,
.dashboard-kpi-copy article.danger strong {
  color: #ff6b82;
}

.big-screen-grid {
  display: grid;
  grid-template-columns: 620px minmax(0, 1fr) 620px;
  grid-template-rows: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 20px;
  height: max(986px, calc(var(--big-screen-stage-height, 1440px) - 420px));
  padding: 0 var(--big-hall-x) var(--big-hall-bottom);
}

.big-screen-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-radius: 8px;
  padding: 20px;
  overflow: hidden;
}

.big-screen-panel::before {
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(206, 255, 149, 0.72), transparent);
  content: "";
}

.store-command {
  grid-row: 1 / 3;
}

.store-command,
.game-command {
  align-self: start;
  max-height: 100%;
}

.store-command {
  padding-top: 16px;
}

.core-command {
  grid-column: 2;
  grid-row: 1 / 3;
}

.game-command {
  grid-column: 3;
  grid-row: 1 / 3;
}

.big-panel-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 36px;
  margin-bottom: 14px;
}

.store-command .big-panel-head {
  min-height: 24px;
  margin-bottom: 6px;
}

.store-command .big-panel-head h2 {
  flex: 0 0 auto;
  font-size: 19px;
  white-space: nowrap;
}

.store-command .big-panel-head span {
  min-width: 0;
  color: #ff4d5f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.16;
  text-align: right;
  text-shadow: 0 0 12px rgba(255, 77, 95, 0.64);
  white-space: normal;
  overflow-wrap: anywhere;
}

.game-command .big-panel-head {
  min-height: 24px;
  margin-bottom: 6px;
}

.game-command .big-panel-head h2 {
  flex: 0 0 auto;
  font-size: 19px;
  white-space: nowrap;
}

.game-command .big-panel-head span {
  min-width: 0;
  color: #ff4d5f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.16;
  text-align: right;
  text-shadow: 0 0 12px rgba(255, 77, 95, 0.64);
  white-space: normal;
  overflow-wrap: anywhere;
}

.big-panel-head.center {
  justify-content: center;
  text-align: center;
}

.big-panel-head h2 {
  margin: 0;
  color: #f8fff2;
  font-size: 25px;
  line-height: 1.08;
}

.big-panel-head span {
  overflow: hidden;
  color: #a5d6a1;
  font-size: 15.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-store-list,
.big-rank-list,
.big-alert-list,
.big-mini-list {
  display: grid;
  gap: 10px;
  scrollbar-color: rgba(217, 255, 120, 0.88) rgba(11, 35, 28, 0.82);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.store-command .big-list-scroll-shell,
.game-command .big-list-scroll-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
  max-height: calc(var(--big-screen-stage-height, 1440px) - 524px);
  overflow: hidden;
  padding-right: 16px;
}

.store-command .big-store-list,
.game-command .big-rank-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  scroll-behavior: auto;
  padding-right: 0;
}

.store-command .big-store-list {
  grid-auto-rows: minmax(56px, auto);
  gap: 4px;
}

.game-command .big-rank-list {
  flex: 0 1 auto;
  min-height: 0;
  max-height: calc(var(--big-screen-stage-height, 1440px) - 524px);
  overflow-y: hidden;
  scroll-behavior: auto;
  padding-right: 10px;
  grid-auto-rows: minmax(56px, auto);
  gap: 4px;
}

.store-command .big-store-list.is-scrollable,
.game-command .big-rank-list.is-scrollable {
  overflow-y: auto;
}

.store-command .big-store-list.is-scrollable {
  overflow-y: scroll;
}

.game-command,
.game-command .big-rank-list,
.game-command .big-rank-list article {
  cursor: pointer;
}

.big-store-list::-webkit-scrollbar,
.big-rank-list::-webkit-scrollbar,
.big-alert-list::-webkit-scrollbar,
.big-mini-list::-webkit-scrollbar {
  width: 12px;
}

.big-store-list::-webkit-scrollbar-track,
.big-rank-list::-webkit-scrollbar-track,
.big-alert-list::-webkit-scrollbar-track,
.big-mini-list::-webkit-scrollbar-track {
  border: 1px solid rgba(172, 240, 128, 0.16);
  border-radius: 999px;
  background: rgba(5, 24, 18, 0.62);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.28);
}

.big-store-list::-webkit-scrollbar-thumb,
.big-rank-list::-webkit-scrollbar-thumb,
.big-alert-list::-webkit-scrollbar-thumb,
.big-mini-list::-webkit-scrollbar-thumb {
  min-height: 72px;
  border: 2px solid rgba(5, 24, 18, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, #d9ff78, #67dc71 48%, #20d9ff);
  box-shadow: 0 0 18px rgba(172, 240, 128, 0.48);
}

.big-store-row,
.big-rank-list article {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 146px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border: 1px solid rgba(172, 240, 128, 0.22);
  border-radius: 6px;
  padding: 6px 11px;
  background: rgba(5, 24, 18, 0.58);
}

.store-command .big-store-row {
  row-gap: 3px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.game-command .big-rank-list article {
  row-gap: 3px;
}

.big-list-scroll-shell.has-scrollbar .big-store-list,
.big-list-scroll-shell.has-scrollbar .big-rank-list {
  scrollbar-width: none;
}

.big-list-scroll-shell.has-scrollbar .big-store-list::-webkit-scrollbar,
.big-list-scroll-shell.has-scrollbar .big-rank-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.big-list-scrollbar {
  position: absolute;
  top: 0;
  right: 1px;
  bottom: 0;
  width: 10px;
  border: 1px solid rgba(172, 240, 128, 0.28);
  border-radius: 999px;
  background: rgba(5, 24, 18, 0.72);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 120ms ease;
  cursor: ns-resize;
  z-index: 2;
}

.big-list-scroll-shell.has-scrollbar .big-list-scrollbar {
  opacity: 1;
}

.big-list-scrollbar-thumb {
  position: absolute;
  top: var(--big-scroll-thumb-offset, 0px);
  right: 1px;
  left: 1px;
  height: var(--big-scroll-thumb-size, 72px);
  border: 1px solid rgba(5, 24, 18, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, #d9ff78, #67dc71 48%, #20d9ff);
  box-shadow: 0 0 14px rgba(172, 240, 128, 0.58);
  cursor: grab;
}

.big-list-scrollbar-thumb:active {
  cursor: grabbing;
}

.store-command .big-empty,
.game-command .big-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 20px;
  text-align: center;
}

.game-command .big-rank-list b {
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.store-command .big-store-row b {
  width: 33px;
  height: 33px;
  font-size: 15.8px;
}

.store-command .big-store-row strong {
  font-size: 18px;
}

.store-command .big-store-row span {
  font-size: 15.3px;
}

.store-command .big-store-row em {
  font-size: 17px;
}

.big-store-row b,
.big-rank-list b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: rgba(172, 240, 128, 0.16);
  color: #d9ff78;
  font-size: 18px;
}

.big-store-row strong,
.big-store-row span,
.big-rank-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-store-row div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.big-store-row strong {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.14;
}

.big-store-row span {
  color: #a9d3dc;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0;
  text-align: left;
}

.big-store-row em {
  color: #a7f06c;
  font-size: 19.5px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  text-align: right;
}

.big-rank-list span {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.14;
}

.big-rank-list em {
  color: #a7f06c;
  font-size: 19px;
  line-height: 1.1;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.big-store-row.placeholder {
  border-style: dashed;
  border-color: rgba(172, 240, 128, 0.14);
  background: rgba(5, 24, 18, 0.32);
}

.big-store-row.placeholder b,
.big-store-row.placeholder strong,
.big-store-row.placeholder span,
.big-store-row.placeholder em {
  color: rgba(196, 235, 189, 0.46);
}

.big-store-row.placeholder i::before {
  width: 0;
}

.big-store-row.opening-soon {
  border-style: dashed;
  border-color: rgba(217, 255, 120, 0.34);
  background:
    linear-gradient(90deg, rgba(172, 240, 128, 0.1), rgba(5, 24, 18, 0.5)),
    rgba(5, 24, 18, 0.4);
}

.big-store-row.opening-soon b {
  background: rgba(217, 255, 120, 0.12);
  color: #d9ff78;
}

.big-store-row.opening-soon strong {
  color: #d9ff78;
}

.big-store-row.opening-soon span,
.big-store-row.opening-soon em {
  color: rgba(217, 255, 120, 0.76);
}

.big-store-row.opening-soon i::before {
  width: 100%;
  background: linear-gradient(90deg, rgba(217, 255, 120, 0.28), rgba(32, 217, 255, 0.22));
}

.big-store-row.watch {
  border-color: rgba(255, 86, 86, 0.58);
  background:
    linear-gradient(90deg, rgba(116, 20, 20, 0.42), rgba(5, 24, 18, 0.62) 44%),
    rgba(5, 24, 18, 0.58);
  animation: bigStoreWarnPulse 30s infinite;
}

.big-store-row.watch b,
.big-store-row.watch strong,
.big-store-row.watch span,
.big-store-row.watch em {
  color: #ff6b6b;
}

.big-store-row.watch i::before {
  background: linear-gradient(90deg, #ff4d4d, #ff8a5c);
}

.big-area-bars .tmwanba-floor-switch {
  border-color: rgba(124, 228, 255, 0.3);
  background:
    linear-gradient(90deg, rgba(32, 116, 142, 0.32), rgba(5, 24, 18, 0.62) 48%),
    rgba(2, 12, 24, 0.58);
}

.big-area-bars .tmwanba-floor-switch.primary {
  border-color: rgba(255, 210, 102, 0.52);
  background:
    linear-gradient(90deg, rgba(158, 92, 12, 0.46), rgba(8, 38, 33, 0.76) 54%),
    rgba(2, 12, 24, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 22px rgba(255, 190, 82, 0.16);
}

.big-area-bars .tmwanba-floor-switch.primary span,
.big-area-bars .tmwanba-floor-switch.primary b {
  color: #ffe29a;
  text-shadow: 0 0 12px rgba(255, 210, 102, 0.28);
}

.big-area-bars .tmwanba-floor-switch.primary i::before {
  background: linear-gradient(90deg, #ffcb66, #69f0ff, #9dff6b);
}

@keyframes bigStoreWarnPulse {
  0%,
  4% {
    box-shadow:
      0 0 0 1px rgba(255, 86, 86, 0.34),
      0 0 22px rgba(255, 56, 56, 0.24);
  }

  8%,
  100% {
    box-shadow: none;
  }
}

.big-store-row i,
.big-rank-list i,
.big-area-bars i {
  grid-column: 2 / -1;
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(137, 185, 200, 0.18);
}

.big-store-row i::before,
.big-rank-list i::before,
.big-area-bars i::before {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b9f76a, #67dc71, #ffd166);
  content: "";
}

.big-store-row.rate-pending i::before {
  display: none;
}

.big-core-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.big-core-metrics article {
  min-height: 128px;
  border: 1px solid rgba(172, 240, 128, 0.24);
  border-radius: 8px;
  padding: 20px;
  background: rgba(2, 12, 24, 0.52);
  text-align: center;
}

.big-core-metrics span {
  color: #c4ebbd;
  font-size: 20px;
}

.big-core-metrics strong {
  display: block;
  margin-top: 12px;
  color: #d9ff78;
  font-size: 54px;
  line-height: 1;
}

.big-core-rank-card {
  display: grid;
  gap: 12px;
  align-content: start;
  text-align: left;
}

.big-core-rank-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.big-core-hardware-card {
  min-height: 620px;
  padding: 18px 16px 14px;
}

.big-core-hardware-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  grid-auto-rows: 53px;
  align-content: start;
  min-width: 0;
  height: 533px;
  overflow-y: hidden;
  padding-right: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 255, 120, 0.42) rgba(4, 16, 30, 0.35);
}

.big-core-hardware-list.is-scrollable {
  overflow-y: auto;
  padding-right: 4px;
}

.big-core-hardware-list::-webkit-scrollbar {
  width: 8px;
}

.big-core-hardware-list::-webkit-scrollbar-track {
  background: rgba(4, 16, 30, 0.35);
  border-radius: 999px;
}

.big-core-hardware-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(4, 16, 30, 0.35);
  border-radius: 999px;
  background: rgba(217, 255, 120, 0.42);
}

.big-core-hardware-store {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 8px;
  overflow: hidden;
  min-width: 0;
  min-height: 53px;
  border: 1px solid rgba(32, 217, 255, 0.26);
  border-radius: 8px;
  padding: 6px 9px 7px;
  background:
    linear-gradient(135deg, rgba(32, 217, 255, 0.1), rgba(217, 255, 120, 0.08)),
    rgba(4, 16, 30, 0.62);
  color: #e9fff7;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}

.big-core-hardware-store:hover,
.big-core-hardware-store:focus-visible {
  border-color: rgba(217, 255, 120, 0.7);
  color: #d9ff78;
  outline: none;
  box-shadow: 0 0 18px rgba(32, 217, 255, 0.18);
}

.big-core-hardware-store strong {
  display: flex;
  align-items: center;
  gap: 5px;
  grid-column: 1;
  overflow: hidden;
  margin: 0;
  color: #e9fff7;
  font-size: 14.5px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-core-hardware-store strong span {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 19px;
  border-radius: 999px;
  background: rgba(32, 217, 255, 0.15);
  color: #86f5ff;
  font-size: 11.5px;
  font-weight: 950;
}

.big-core-hardware-store b {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #ffd766;
  font-size: 15.8px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.big-core-hardware-store em {
  grid-column: 1;
  overflow: hidden;
  color: #9fc7ad;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-core-hardware-store.online {
  border-color: rgba(217, 255, 120, 0.44);
  background:
    linear-gradient(135deg, rgba(32, 217, 255, 0.12), rgba(217, 255, 120, 0.16)),
    rgba(33, 103, 52, 0.28);
}

.big-core-hardware-store.online em {
  color: #d9ff78;
}

.big-core-hardware-store.pending {
  border-color: rgba(255, 215, 102, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 215, 102, 0.1), rgba(4, 16, 30, 0.68));
}

.big-core-hardware-store.pending b {
  color: #ffd766;
  font-size: 15px;
}

.big-core-hardware-store.unlinked {
  border-color: rgba(134, 245, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(134, 245, 255, 0.08), rgba(4, 16, 30, 0.7));
  cursor: default;
}

.big-core-hardware-store.unlinked b {
  color: #86f5ff;
  font-size: 14px;
}

.big-core-hardware-store.unlinked em {
  color: #9fc7ad;
}

.big-core-hardware-store.reserved {
  border-style: dashed;
  opacity: 0.72;
  cursor: default;
}

.big-core-hardware-store.reserved b,
.big-core-hardware-store.reserved em {
  color: #93a4bb;
}

.big-radar-card {
  position: relative;
  display: grid;
  grid-template-columns: 324px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 250px;
  margin-top: 10px;
  border: 1px solid rgba(172, 240, 128, 0.22);
  border-radius: 8px;
  padding: 14px 20px 14px 18px;
  background:
    linear-gradient(135deg, rgba(26, 77, 50, 0.24), rgba(2, 12, 24, 0.42)),
    rgba(2, 12, 24, 0.28);
}

.big-radar {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  margin: auto;
  border: 1px solid rgba(172, 240, 128, 0.3);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(172, 240, 128, 0.16), transparent 54%),
    conic-gradient(from 90deg, rgba(172, 240, 128, 0.05), rgba(172, 240, 128, 0.34), rgba(44, 125, 61, 0.12), rgba(172, 240, 128, 0.05));
  opacity: 0.64;
}

.big-ip-hero {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 320px;
  height: 248px;
  margin-top: -6px;
  display: grid;
  place-items: end center;
  pointer-events: none;
}

.big-ip-hero::before {
  content: none;
}

.big-ip-hero img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 14px 22px rgba(0, 0, 0, 0.24))
    drop-shadow(0 0 32px rgba(195, 255, 141, 0.36));
}

.big-radar span {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(172, 240, 128, 0.2);
  border-radius: 50%;
}

.big-radar span:nth-child(2) {
  inset: 46px;
}

.big-radar span:nth-child(3) {
  inset: 72px;
}

.big-radar strong {
  color: rgba(248, 255, 242, 0.34);
  font-size: 38px;
  text-shadow: 0 0 28px rgba(172, 240, 128, 0.6);
}

.big-radar-copy b {
  display: block;
  color: #f8fff2;
  font-size: 29px;
}

.big-radar-copy p {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
  color: #cbe8c4;
  font-size: 16px;
  line-height: 1.45;
}

.big-radar-copy p > span {
  grid-column: 1 / -1;
  color: #cbe8c4;
  font-size: 15px;
  font-weight: 800;
}

.repeat-dialog-card {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 82px;
  border: 1px solid rgba(134, 245, 255, 0.26);
  border-radius: 8px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(23, 59, 74, 0.72), rgba(7, 19, 34, 0.76)),
    rgba(2, 12, 24, 0.48);
  color: #eefcf0;
  text-align: left;
  box-shadow: inset 0 0 18px rgba(134, 245, 255, 0.06);
  cursor: pointer;
}

.repeat-dialog-card.primary {
  border-color: rgba(217, 255, 120, 0.34);
  background:
    linear-gradient(135deg, rgba(36, 86, 51, 0.76), rgba(7, 19, 34, 0.78)),
    rgba(2, 12, 24, 0.5);
}

.repeat-dialog-card:hover {
  border-color: rgba(255, 215, 102, 0.72);
  box-shadow:
    inset 0 0 22px rgba(255, 215, 102, 0.08),
    0 0 18px rgba(255, 215, 102, 0.1);
}

.repeat-dialog-card em {
  overflow: hidden;
  color: #bfe6d2;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repeat-dialog-card strong {
  color: #ffd766;
  font-size: 26px;
  font-weight: 1000;
  line-height: 1;
}

.repeat-dialog-card small {
  overflow: hidden;
  color: #9fc7ad;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-wide-ops {
  display: grid;
  grid-template-columns: minmax(148px, 0.82fr) minmax(0, 2.3fr) minmax(152px, 0.88fr);
  align-items: stretch;
  gap: 14px;
  margin: 14px 0 14px;
  border: 1px solid rgba(172, 240, 128, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(13, 50, 40, 0.46), rgba(2, 12, 24, 0.58)),
    rgba(2, 12, 24, 0.42);
  box-shadow: inset 0 0 22px rgba(172, 240, 128, 0.05);
}

.big-wide-ops article,
.big-wide-ops section {
  min-width: 0;
  border: 1px solid rgba(172, 240, 128, 0.24);
  border-radius: 6px;
  padding: 8px 10px;
  background:
    linear-gradient(135deg, rgba(49, 92, 74, 0.34), rgba(2, 12, 24, 0.56)),
    rgba(2, 12, 24, 0.45);
}

.big-wide-ops-main,
.big-wide-ops-time {
  display: grid;
  align-content: center;
  min-height: 74px;
}

.big-wide-ops-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.big-wide-ops span,
.big-wide-ops strong,
.big-wide-ops em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-wide-ops span {
  color: #c4ebbd;
  font-size: 14.5px;
  font-weight: 800;
}

.big-wide-ops strong {
  margin-top: 4px;
  color: #d9ff78;
  font-size: 22px;
  line-height: 1.05;
}

.big-wide-ops-main strong {
  color: #d9ff78;
  font-size: 34px;
}

.big-wide-ops-main strong small {
  margin-left: 2px;
  font-size: 15px;
}

.big-wide-ops-time strong {
  color: #f8fff2;
  font-size: 17.5px;
}

.big-wide-ops em {
  margin-top: 4px;
  color: #89b9c8;
  font-size: 12.5px;
  line-height: 1.12;
  font-style: normal;
}

.big-area-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  scrollbar-gutter: stable;
}

.big-area-bars article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  border: 1px solid rgba(172, 240, 128, 0.2);
  border-radius: 6px;
  padding: 15px 16px;
  background: rgba(2, 12, 24, 0.4);
}

.big-area-bars span,
.big-area-bars b {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-area-bars span {
  color: #e5f7df;
}

.big-area-bars b {
  color: #a7f06c;
}

.big-area-bars article.zero {
  border-color: rgba(255, 100, 124, 0.46);
  background: rgba(80, 12, 24, 0.42);
  animation: zeroAreaPulse 1.8s ease-in-out infinite;
}

.big-area-bars article.zero span,
.big-area-bars article.zero b {
  color: var(--red);
  text-shadow: 0 0 12px rgba(255, 100, 124, 0.45);
}

.big-area-bars article.unmatched {
  border-color: rgba(255, 209, 102, 0.42);
  background: rgba(92, 62, 8, 0.28);
}

.big-area-bars article.unmatched span,
.big-area-bars article.unmatched b {
  color: var(--yellow);
}

.big-business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.big-business-grid article,
.big-mini-list article,
.big-alert-list article,
.big-ops-strip article {
  border: 1px solid rgba(172, 240, 128, 0.2);
  border-radius: 6px;
  background: rgba(2, 12, 24, 0.45);
}

.big-business-grid article {
  min-height: 68px;
  padding: 10px 12px;
}

.big-business-grid strong {
  display: block;
  margin-top: 10px;
  color: #d9ff78;
  font-size: 24px;
  line-height: 1;
}

.big-mini-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.big-mini-list article {
  min-height: 58px;
  padding: 10px 12px;
}

.big-mini-list strong,
.big-mini-list em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-mini-list strong {
  margin-top: 7px;
  color: #f8fff2;
  font-size: 20px;
  line-height: 1.12;
}

.big-mini-list em {
  margin-top: 6px;
  color: #89b9c8;
  font-size: 13.5px;
  line-height: 1.16;
  font-style: normal;
}

.big-alert-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-content: start;
}

.big-alert-list article {
  min-height: 78px;
  padding: 12px 14px;
}

.big-alert-list strong,
.big-alert-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-alert-list strong {
  color: #f8fff2;
  font-size: 16px;
  line-height: 1.15;
}

.big-alert-list span {
  margin-top: 8px;
  color: #ffd166;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.16;
}

.big-alert-list article.hot {
  border-color: rgba(255, 107, 130, 0.36);
}

.big-alert-list article.hot span {
  color: #ff8da0;
}

.big-alert-list article.summary {
  border-color: rgba(217, 255, 120, 0.32);
  background:
    linear-gradient(135deg, rgba(98, 160, 58, 0.3), rgba(4, 24, 16, 0.58)),
    rgba(2, 12, 24, 0.45);
}

.big-ops-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.big-ops-strip article {
  min-width: 0;
  min-height: 72px;
  padding: 10px 12px;
}

.big-auto-pager {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-height: 22px;
  color: #bff5ad;
  font-size: 13px;
  font-weight: 800;
}

.big-auto-pager span {
  color: #6fe26b;
  font-size: 12px;
}

.big-auto-pager b {
  color: #f3ffe7;
  font-size: 14px;
}

.big-auto-pager i {
  color: rgba(196, 235, 189, 0.58);
  font-style: normal;
}

.big-ops-strip strong,
.big-ops-strip em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big-ops-strip strong {
  margin-top: 5px;
  color: #d9ff78;
  font-size: 19px;
  line-height: 1.12;
}

.big-ops-strip em {
  margin-top: 5px;
  color: #89b9c8;
  font-size: 12.5px;
  line-height: 1.16;
  font-style: normal;
}

.big-empty {
  margin: 0;
  color: #83b3c4;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  body.big-screen-mode .big-screen-viewport {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.big-screen-mode .big-screen-stage {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    transform: none !important;
    overflow: visible;
  }

  body.big-screen-mode .big-screen-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    margin: 8px;
    padding: 10px;
    gap: 6px 8px;
  }

  body.big-screen-mode .big-screen-title-wrap {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    grid-column: 1 / -1;
    grid-row: 1;
    width: auto;
    transform: none;
    order: -1;
  }

  body.big-screen-mode .big-screen-title-wrap::before,
  body.big-screen-mode .big-screen-title-wrap::after {
    display: none;
  }

  body.big-screen-mode .big-screen-title-wrap span {
    font-size: 10px;
  }

  body.big-screen-mode .big-screen-title-wrap h1 {
    margin-top: 4px;
    font-size: 24px;
  }

  body.big-screen-mode .big-screen-subtitle {
    margin-top: 5px;
    font-size: 13px;
  }

  body.big-screen-mode .big-screen-left,
  body.big-screen-mode .big-screen-clock {
    width: auto;
    min-height: 0;
  }

  body.big-screen-mode .big-screen-left {
    grid-column: 1;
    grid-row: 2;
    gap: 5px;
  }

  body.big-screen-mode .big-screen-back {
    padding: 4px 0 0;
  }

  body.big-screen-mode .big-screen-back span {
    font-size: 18px;
  }

  body.big-screen-mode .big-screen-back strong,
  body.big-screen-mode .big-screen-clock span {
    font-size: 10px;
  }

  body.big-screen-mode .big-screen-clock {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
  }

  body.big-screen-mode .big-screen-clock strong {
    font-size: 18px;
  }

  body.big-screen-mode .big-screen-kpi-board {
    margin: 0 8px 10px;
    padding: 8px;
  }

  body.big-screen-mode .big-screen-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.big-screen-mode .big-screen-kpis article {
    height: auto;
    min-height: 88px;
    padding: 9px 10px 8px;
    clip-path: none;
  }

  body.big-screen-mode .big-screen-kpis span {
    min-height: 26px;
    font-size: 12px;
  }

  body.big-screen-mode .big-screen-kpis strong {
    margin-top: 5px;
    font-size: 23px;
  }

  body.big-screen-mode .big-screen-kpis small {
    min-height: 24px;
    margin-top: 4px;
    font-size: 10px;
  }

  body.big-screen-mode .big-screen-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    height: auto;
    padding: 0 8px 12px;
    gap: 10px;
  }

  body.big-screen-mode .big-screen-panel,
  body.big-screen-mode .store-command,
  body.big-screen-mode .core-command,
  body.big-screen-mode .game-command {
    grid-column: auto;
    grid-row: auto;
    max-height: none;
    overflow: visible;
    padding: 10px;
  }

  body.big-screen-mode .big-panel-head {
    flex-wrap: wrap;
    gap: 4px 8px;
    min-height: 0;
    margin-bottom: 8px;
  }

  body.big-screen-mode .big-panel-head h2,
  body.big-screen-mode .store-command .big-panel-head h2,
  body.big-screen-mode .game-command .big-panel-head h2 {
    font-size: 16px;
  }

  body.big-screen-mode .big-panel-head span,
  body.big-screen-mode .store-command .big-panel-head span,
  body.big-screen-mode .game-command .big-panel-head span {
    font-size: 11px;
  }

  body.big-screen-mode .store-command .big-store-list {
    max-height: none;
    overflow-y: auto;
    padding-right: 0;
    scrollbar-gutter: stable;
    gap: 6px;
  }

  body.big-screen-mode .store-command .big-list-scroll-shell,
  body.big-screen-mode .game-command .big-list-scroll-shell {
    max-height: 560px;
    padding-right: 14px;
  }

  body.big-screen-mode .game-command .big-rank-list {
    max-height: none;
    overflow-y: auto;
    padding-right: 0;
    scrollbar-gutter: stable;
    gap: 6px;
  }

  body.big-screen-mode .big-store-row,
  body.big-screen-mode .big-rank-list article {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 46px;
    padding: 6px 7px;
  }

  body.big-screen-mode .store-command .big-store-row div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  body.big-screen-mode .big-store-row b,
  body.big-screen-mode .big-rank-list b {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  body.big-screen-mode .store-command .big-store-row strong,
  body.big-screen-mode .big-rank-list span {
    font-size: 12px;
  }

  body.big-screen-mode .store-command .big-store-row span,
  body.big-screen-mode .store-command .big-store-row em,
  body.big-screen-mode .big-rank-list em {
    font-size: 11px;
  }

  body.big-screen-mode .big-store-row i,
  body.big-screen-mode .big-rank-list i {
    grid-column: 2 / -1;
  }

  body.big-screen-mode .big-core-hardware-card {
    min-height: 0;
    padding: 10px;
  }

  body.big-screen-mode .big-core-hardware-list {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    max-height: none;
    overflow: visible;
    gap: 6px;
  }

  body.big-screen-mode .big-core-hardware-store {
    min-height: 44px;
    font-size: 11px;
  }

  body.big-screen-mode .big-core-hardware-store strong {
    font-size: 12px;
  }

  body.big-screen-mode .big-core-hardware-store b {
    font-size: 12px;
  }

  body.big-screen-mode .big-core-hardware-store em {
    font-size: 10px;
  }

  body.big-screen-mode .big-radar-card {
    grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
    gap: 8px;
    min-height: 156px;
    padding: 8px;
  }

  body.big-screen-mode .big-ip-hero {
    width: 112px;
    height: 132px;
  }

  body.big-screen-mode .big-radar {
    width: 102px;
    height: 102px;
  }

  body.big-screen-mode .big-radar-copy b {
    font-size: 17px;
  }

  body.big-screen-mode .big-radar-copy p {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    margin-top: 5px;
    font-size: 11px;
  }

  body.big-screen-mode .big-radar-copy p > span {
    font-size: 11px;
  }
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.metric-grid.dashboard-kpi-copy {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 14px;
  overflow-x: visible;
  overflow-y: hidden;
  padding-bottom: 0;
}

.dashboard-kpi-copy article {
  height: 132px;
  padding: 12px 8px;
  background:
    linear-gradient(180deg, rgba(214, 255, 173, 0.09), transparent 34%),
    linear-gradient(135deg, rgba(15, 75, 45, 0.9), rgba(5, 32, 30, 0.84)),
    rgba(4, 18, 14, 0.76);
}

.dashboard-kpi-copy article.dashboard-realtime-refresh-card {
  padding: 0;
}

.dashboard-realtime-refresh {
  display: block;
  width: 100%;
  height: 100%;
  padding: 12px 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-realtime-refresh:hover,
.dashboard-realtime-refresh:focus-visible {
  outline: none;
  background: rgba(10, 132, 255, 0.08);
}

.dashboard-realtime-refresh:disabled {
  cursor: default;
  opacity: 1;
}

.dashboard-realtime-refresh-heading b {
  font: inherit;
}

.dashboard-realtime-refresh > strong {
  font-weight: 700;
}

.dashboard-realtime-refresh > small {
  font-weight: 400;
}

.dashboard-kpi-copy .dashboard-realtime-refresh.has-long-value strong {
  overflow: visible;
  color: #30d158;
  font-size: 29px;
  line-height: 1;
  overflow-wrap: normal;
  text-overflow: clip;
  white-space: nowrap;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-realtime-refresh.is-active strong {
  color: #30d158;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-realtime-refresh.is-warning strong {
  color: #ff9f0a;
}

.dashboard-kpi-copy span,
.dashboard-kpi-copy small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.dashboard-kpi-copy span {
  display: block;
  min-height: 34px;
  color: #d9f5c8;
  font-size: 14px;
  line-height: 1.12;
}

.dashboard-kpi-copy strong {
  overflow: visible;
  margin-top: 8px;
  color: #d8ff6f;
  font-size: 29px;
  letter-spacing: 0;
  text-overflow: clip;
}

.dashboard-kpi-copy small {
  display: block;
  min-height: 32px;
  margin-top: 7px;
  color: #a8c99e;
  font-size: 12px;
  line-height: 1.14;
}

.metric-grid.dashboard-kpi-copy {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  overflow-x: hidden;
}

.dashboard-kpi-copy .mobile-talent-assessment {
  display: none;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 27, 45, 0.84);
}

.metric-card {
  box-sizing: border-box;
  height: 132px;
  min-height: 132px;
  padding: 20px;
  overflow: hidden;
}

.metric-card-compact-stats {
  padding-top: 18px;
}

.metric-card span {
  color: var(--text-muted);
}

.metric-card strong {
  display: block;
  margin-top: 16px;
  font-size: 34px;
  line-height: 1;
  white-space: nowrap;
}

.metric-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-dual strong {
  margin-top: 0;
  min-width: 0;
}

.metric-card-compact-stats strong {
  color: var(--green);
  margin-top: 8px;
}

.metric-card-compact-stats small {
  margin-top: 7px;
}

.metric-subline {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.metric-card small {
  display: block;
  margin-top: 10px;
  color: var(--cyan);
  font-size: 12px;
}

.clickable-card {
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.clickable-card:hover,
.clickable-card:focus-visible {
  border-color: rgba(32, 217, 255, 0.58);
  background: rgba(32, 217, 255, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.alert-card strong {
  color: var(--yellow);
}

.dashboard-grid,
.users-layout,
.bot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 16px;
}

.dashboard-area-grid {
  grid-template-columns: 1fr;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  margin-top: 16px;
}

.ops-grid .ops-lock-panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 520px;
  min-height: 520px;
  max-height: 520px;
  overflow: hidden;
}

.ops-grid .ops-lock-panel .panel-head {
  flex: 0 0 auto;
}

.ops-grid #alarmSummary,
.ops-grid #urgentIssues {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.ops-grid #alarmSummary {
  align-content: start;
}

.ops-grid #alarmSummary.alarm-monitor-grid,
.ops-grid #urgentIssues {
  gap: 10px;
}

.dashboard-alarm-store-card,
.dashboard-urgent-store-card {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(64, 196, 255, 0.24);
  border-radius: 8px;
  padding: 12px 14px;
  background:
    linear-gradient(90deg, rgba(17, 35, 60, 0.88), rgba(8, 18, 34, 0.72)),
    rgba(8, 17, 31, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.dashboard-alarm-store-card {
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.dashboard-alarm-store-card:hover,
.dashboard-alarm-store-card:focus-visible {
  border-color: rgba(64, 196, 255, 0.42);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
  transform: translateY(-1px);
}

.dashboard-alarm-store-card > strong,
.dashboard-urgent-store-card > strong {
  overflow: hidden;
  color: #ff4d5e;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-alarm-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-alarm-counts span,
.dashboard-urgent-store-card div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 7px;
  padding: 9px 10px;
  background: rgba(2, 10, 21, 0.5);
  color: #b9c8dc;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.dashboard-alarm-counts span {
  cursor: pointer;
}

.dashboard-alarm-counts span:hover {
  border-color: rgba(250, 204, 21, 0.34);
  background: rgba(250, 204, 21, 0.08);
}

.dashboard-alarm-counts b,
.dashboard-urgent-store-card b {
  color: var(--yellow);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.dashboard-urgent-store-card {
  border-color: rgba(255, 100, 124, 0.28);
  background:
    linear-gradient(90deg, rgba(45, 24, 42, 0.78), rgba(8, 18, 34, 0.72)),
    rgba(255, 100, 124, 0.06);
}

.ops-grid #alarmSummary .alarm-store-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-grid #alarmSummary .alarm-preview-items {
  height: 344px;
  max-height: 344px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.wide-panel {
  grid-column: 1 / -1;
}

@media (min-width: 901px) {
  body:not(.big-screen-mode) #storeGameMonitorView.active > .wide-panel {
    min-height: calc(100vh - 140px);
  }
}

.game-monitor-focus {
  margin-bottom: 16px;
}

.metric-detail-panel {
  width: 100%;
  max-width: none;
}

.metric-detail-list {
  display: grid;
  gap: 10px;
}

.metric-detail-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.metric-detail-row span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(32, 217, 255, 0.1);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.metric-detail-row strong {
  overflow: hidden;
  color: #e6edf7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-detail-values {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 4px 14px;
  justify-items: end;
}

.metric-detail-values b,
.metric-detail-row b {
  color: var(--green);
  font-size: 20px;
  white-space: nowrap;
}

.metric-detail-values em {
  color: var(--yellow);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.hardware-detail-page {
  display: grid;
  gap: 16px;
}

.hardware-detail-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.hardware-detail-summary article {
  border: 1px solid rgba(32, 217, 255, 0.2);
  border-radius: 8px;
  min-width: 0;
  padding: 11px 12px;
  background: rgba(32, 217, 255, 0.06);
}

.hardware-detail-summary span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.hardware-detail-summary strong {
  display: block;
  margin-top: 7px;
  color: var(--green);
  font-size: 20px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.hardware-config-summary {
  border: 1px solid rgba(32, 217, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(32, 217, 255, 0.08), rgba(217, 255, 120, 0.05)),
    rgba(2, 12, 24, 0.54);
}

.hardware-config-summary header,
.hardware-single-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hardware-config-summary header {
  margin-bottom: 14px;
}

.hardware-config-summary header strong,
.hardware-single-head strong {
  display: block;
  color: #f4f8ff;
  font-size: 20px;
  font-weight: 950;
}

.hardware-config-summary header span,
.hardware-single-head span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.hardware-config-summary header em {
  flex: 0 0 auto;
  border: 1px solid rgba(217, 255, 120, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(217, 255, 120, 0.08);
  color: var(--green);
  font-size: 16px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.hardware-config-table {
  display: grid;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.hardware-config-row {
  display: grid;
  grid-template-columns:
    48px
    minmax(160px, 1.08fr)
    minmax(180px, 1.14fr)
    minmax(88px, 0.6fr)
    minmax(112px, 0.72fr)
    68px
    minmax(220px, 1.35fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.035);
}

.hardware-config-head {
  border-color: rgba(32, 217, 255, 0.24);
  background: rgba(32, 217, 255, 0.08);
}

.hardware-config-row > span {
  display: grid;
  place-items: center;
  min-height: 30px;
  border-radius: 6px;
  background: rgba(32, 217, 255, 0.1);
  color: #86f5ff;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.hardware-config-head span {
  justify-content: start;
  padding: 0 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
}

.hardware-config-row strong {
  display: block;
  color: #e6edf7;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.hardware-config-row b {
  color: var(--green);
  font-size: 16px;
  font-weight: 950;
  white-space: nowrap;
}

.hardware-config-row em {
  color: #f4f8ff;
  font-size: 13px;
  font-style: normal;
  font-weight: 780;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hardware-config-total {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 12px;
  color: var(--text-muted);
  text-align: right;
}

.hardware-config-total span {
  font-size: 12px;
  font-weight: 800;
}

.hardware-config-total strong {
  color: var(--green);
  font-size: 15px;
  font-weight: 950;
}

.hardware-single-head {
  border-left: 4px solid rgba(32, 217, 255, 0.58);
  padding: 2px 0 2px 12px;
}

.hardware-asset-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.hardware-asset-card {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.hardware-asset-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.hardware-asset-card header strong {
  overflow: hidden;
  color: #f16363;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hardware-asset-card header span {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.hardware-asset-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 12px;
}

.hardware-asset-fields div {
  min-width: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 8px;
}

.hardware-asset-fields span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.hardware-asset-fields b {
  display: block;
  margin-top: 4px;
  color: #e6edf7;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.hardware-asset-fields .hardware-asset-field-wide {
  grid-column: span 2;
  min-height: 74px;
  border-top-color: rgba(32, 217, 255, 0.2);
}

.hardware-asset-fields .hardware-asset-field-wide b {
  color: #f4f8ff;
  font-size: 15px;
}

@media (max-width: 1180px) {
  .hardware-detail-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hardware-config-row {
    min-width: 980px;
  }
}

@media (max-width: 680px) {
  .metric-detail-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .metric-detail-values {
    grid-column: 2;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .hardware-asset-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hardware-asset-fields .hardware-asset-field-wide {
    grid-column: span 2;
  }

  .hardware-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hardware-config-summary header,
  .hardware-single-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hardware-config-table {
    overflow-x: visible;
    gap: 10px;
  }

  .hardware-config-head {
    display: none;
  }

  .hardware-config-row {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    min-width: 0;
    padding: 10px;
  }

  .hardware-config-row > span {
    grid-row: 1 / span 6;
    min-height: 100%;
  }

  .hardware-config-row strong::before,
  .hardware-config-row b::before,
  .hardware-config-row em::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 900;
  }

  .hardware-config-total {
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 222px minmax(0, 1fr);
  }

  .sidebar {
    width: 222px;
    min-width: 222px;
    padding: 12px 8px 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .nav-item {
    min-height: 40px;
    padding: 7px 8px 7px 10px;
  }

  .nav-item-title {
    font-size: 13px;
  }

  .nav-item-tag {
    min-width: 32px;
    height: 21px;
    padding: 0 7px;
    font-size: 9px;
  }

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

  .game-monitor-cards,
  .game-monitor-cards.full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-game-monitor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .workspace-columns,
  .finance-entry-grid,
  .workspace-task-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .workspace-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-kpis,
  .workspace-store-grid {
    grid-template-columns: 1fr;
  }

  .workspace-preview-label,
  .workspace-store-select {
    white-space: normal;
  }

  .workspace-upload-form {
    grid-template-columns: 1fr;
  }

  .workspace-file-field {
    grid-column: auto;
  }

  .finance-period-grid,
  .finance-comparison-grid {
    grid-template-columns: 1fr;
  }

  .finance-submission-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .finance-submission-status {
    grid-column: 1 / -1;
    text-align: left;
  }
}

.panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.panel h2 {
  margin: 0;
  font-size: 18px;
}

.large-panel canvas {
  width: 100%;
  height: 320px;
}

.area-occupancy-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: auto;
  min-height: 0;
  max-height: none;
  align-content: start;
  overflow-y: visible;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.area-occupancy-row {
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
  gap: 8px;
  box-sizing: border-box;
  container-type: inline-size;
  min-height: 168px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(8, 17, 31, 0.46);
}

.area-occupancy-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}

.area-occupancy-main strong {
  overflow: hidden;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: normal;
  text-shadow: 0 0 10px rgba(255, 100, 124, 0.28);
  text-overflow: clip;
  white-space: normal;
}

.area-occupancy-main span {
  grid-column: 1;
  color: #bfd1e8;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.area-occupancy-main b {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 58px;
  border-radius: 6px;
  padding: 5px 7px;
  background: rgba(82, 211, 125, 0.14);
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.area-occupancy-areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(28px, auto);
  align-content: start;
  gap: 6px;
  max-height: none;
  overflow-y: visible;
  overflow-x: hidden;
  padding-right: 0;
}

.area-occupancy-area {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  box-sizing: border-box;
  width: 100%;
  min-height: 28px;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  border-radius: 7px;
  padding: 5px 7px;
  background: rgba(226, 232, 240, 0.12);
  color: #dce8f6;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.area-occupancy-area span {
  flex: 1 1 auto;
  overflow: visible;
  min-width: 0;
  max-width: none;
  color: #e6edf7;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.area-occupancy-area em {
  flex: 0 0 auto;
  color: #bfd1e8;
  font-style: normal;
  white-space: nowrap;
}

.area-occupancy-area b {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.area-occupancy-area.idle {
  background: rgba(148, 163, 184, 0.16);
  color: #93a4bb;
}

.area-occupancy-area.cool {
  background: rgba(32, 217, 255, 0.16);
  color: var(--cyan);
}

.area-occupancy-area.warm {
  background: rgba(250, 204, 21, 0.2);
  color: var(--yellow);
}

.area-occupancy-area.hot {
  background: rgba(255, 100, 124, 0.2);
  color: var(--red);
}

.area-occupancy-area.unmatched {
  background: rgba(255, 209, 102, 0.2);
  color: var(--yellow);
}

.area-occupancy-area.unmatched em,
.area-occupancy-area.unmatched b {
  color: var(--yellow);
}

.area-occupancy-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .area-occupancy-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .area-occupancy-areas {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .area-occupancy-lines {
    grid-template-columns: 1fr;
  }
}

.sync-detail {
  display: grid;
  gap: 12px;
  color: #cfe0f4;
  line-height: 1.6;
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
}

th {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.store-data-table th {
  font-size: 15px;
}

.store-data-table th .source-badge {
  font-size: 12px;
}

.table-link-btn {
  display: inline-grid;
  min-width: 64px;
  place-items: center;
  border: 1px solid rgba(32, 217, 255, 0.36);
  border-radius: 6px;
  padding: 6px 10px;
  background: rgba(32, 217, 255, 0.08);
  color: var(--cyan);
  font-weight: 800;
}

.table-link-btn:hover,
.table-link-btn:focus-visible {
  border-color: rgba(94, 226, 140, 0.7);
  color: var(--green);
  outline: none;
}

.table-link-static,
.table-link-static:hover,
.table-link-static:focus-visible {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  cursor: default;
}

.table-link-btn small {
  margin-left: 4px;
  color: #dce8f6;
  font-size: 14px;
  font-weight: 800;
}

.store-metric-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.store-metric-detail-grid div,
.store-metric-history div {
  display: grid;
  gap: 5px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 10px;
}

.store-metric-detail-grid b,
.store-metric-history b {
  color: var(--text-muted);
  font-size: 13px;
}

.store-metric-detail-grid strong {
  color: var(--green);
  font-size: 18px;
}

.store-metric-detail-grid span,
.store-metric-history span {
  color: #dce8f6;
}

.store-metric-history {
  display: grid;
  gap: 8px;
}

.store-metric-history h3 {
  margin: 12px 0 2px;
  color: #dce8f6;
  font-size: 15px;
}

.qr {
  display: block;
  width: 260px;
  height: 260px;
  margin: 12px auto;
  border-radius: 8px;
  background: #fff;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--text-muted);
  text-align: center;
}

.independent-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.independent-card > div {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.independent-card strong {
  color: #e6edf7;
}

.independent-card p {
  margin: 10px 0 0;
  color: #b9c8da;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tmwanba-panel {
  min-height: calc(100vh - 118px);
}

#tmwanbaView,
#tmwanbaView * {
  font-size: 15px !important;
}

.tmwanba-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.tmwanba-cards article,
.tmwanba-store-row {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(10, 20, 36, 0.72);
}

.tmwanba-cards article {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 14px;
}

.tmwanba-cards span,
.tmwanba-cards small,
.tmwanba-store-row span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tmwanba-mcp-line {
  color: #f6c453;
  font-size: 11px;
  line-height: 1.3;
}

.tmwanba-rental-freshness.is-fresh {
  color: var(--green);
}

.tmwanba-rental-freshness.is-warning {
  color: #f6c453;
}

.tmwanba-rental-freshness.is-expired {
  color: #ff9aa5;
  font-weight: 700;
}

.tmwanba-rental-freshness.is-pending {
  color: var(--text-muted);
}

.tmwanba-mcp-line.is-ok {
  color: var(--green);
}

.tmwanba-mcp-line.is-error {
  color: #ff6b6b;
}

.tmwanba-cards strong {
  color: var(--green);
  font-size: 26px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.tmwanba-layout {
  min-width: 0;
}

.tmwanba-store-section {
  min-width: 0;
}

.tmwanba-store-section h3 {
  margin: 0 0 10px;
  color: #bfd1e8;
  font-size: 14px;
}

.tmwanba-store-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: calc(100vh - 260px);
  overflow-y: scroll;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.tmwanba-exception-tools {
  margin-top: 14px;
}

.tmwanba-exception-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.tmwanba-exception-row {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(255, 186, 92, 0.35);
  border-radius: 8px;
  background: rgba(44, 29, 12, 0.38);
}

.tmwanba-exception-row span,
.tmwanba-exception-row small {
  color: var(--muted);
  font-size: 12px;
}

.tmwanba-exception-changes {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px !important;
}

.tmwanba-exception-changes > span {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 6px;
  background: rgba(8, 25, 42, 0.58);
}

.tmwanba-exception-changes strong {
  color: #ffffff;
  font-size: 16px;
}

.tmwanba-exception-changes em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.tmwanba-exception-changes em.is-up { color: var(--yellow); }
.tmwanba-exception-changes em.is-down { color: var(--red); }
.tmwanba-exception-changes em.is-same { color: var(--green); }

.tmwanba-exception-reason {
  color: #f5c979 !important;
  line-height: 1.5;
}

.tmwanba-exception-actions {
  display: flex;
  gap: 6px;
}

.tmwanba-exception-row button {
  padding: 4px 8px;
  border: 1px solid rgba(169, 228, 255, 0.3);
  border-radius: 5px;
  color: inherit;
  background: rgba(8, 25, 42, 0.8);
  cursor: pointer;
}

.tmwanba-store-row {
  display: grid;
  gap: 5px;
  min-height: 176px;
}

.tmwanba-store-button {
  display: grid;
  gap: 9px;
  width: 100%;
  min-height: 176px;
  border: 0;
  padding: 8px 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.tmwanba-store-button:hover {
  background: rgba(51, 214, 159, 0.08);
}

.tmwanba-store-button.is-selected {
  background: rgba(51, 214, 159, 0.12);
  box-shadow: inset 0 0 0 1px rgba(51, 214, 159, 0.42);
}

.tmwanba-store-row strong,
.tmwanba-store-button strong {
  color: #e6edf7;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tmwanba-store-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.tmwanba-store-title span {
  min-width: 0;
}

.tmwanba-store-title b {
  min-width: 28px;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(255, 95, 109, 0.16);
  color: #ff9aa5;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.tmwanba-store-metrics {
  display: grid;
  gap: 6px;
}

.tmwanba-store-core-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.tmwanba-store-core-metrics > span,
.tmwanba-store-overdue-metric {
  display: grid;
  gap: 3px;
  border-radius: 6px;
  padding: 6px 4px;
  background: rgba(82, 211, 125, 0.07);
  text-align: center;
}

.tmwanba-store-overdue-metric {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-inline: 10px;
  text-align: left;
}

.tmwanba-store-metrics small {
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
}

.tmwanba-store-metrics strong {
  color: var(--green);
  font-size: 18px;
}

.tmwanba-store-overdue-metric.is-overdue {
  background: rgba(255, 95, 109, 0.14);
}

.tmwanba-store-overdue-metric.is-overdue strong,
.tmwanba-rental-status.is-error {
  color: #ff9aa5;
}

.tmwanba-rental-status.is-expired {
  font-weight: 800;
}

.tmwanba-rental-status {
  color: var(--text-muted);
  font-size: 11px;
}

.tmwanba-detail-panel {
  margin-top: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(8, 17, 31, 0.34);
}

.tmwanba-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 12px;
}

.tmwanba-detail-head h3 {
  margin: 0;
  color: #ff5f6d;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tmwanba-detail-head span {
  color: #ff5f6d;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.tmwanba-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.tmwanba-detail-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  height: 320px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(10, 20, 36, 0.72);
  overflow: hidden;
}

.tmwanba-detail-card span,
.tmwanba-detail-card small {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tmwanba-detail-card strong {
  flex: 1;
  min-height: 0;
  margin: 0;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  white-space: normal;
}

.tmwanba-detail-value {
  display: block;
  color: var(--green);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.22;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.tmwanba-platform-card {
  grid-column: span 2;
}

.tmwanba-platform-summary {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.tmwanba-platform-summary b {
  color: var(--green);
  font-size: 22px;
  line-height: 1.2;
}

.tmwanba-platform-summary i {
  color: var(--text-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.tmwanba-platform-list {
  display: grid;
  gap: 8px;
}

.tmwanba-platform-list em,
.tmwanba-platform-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.68);
  color: var(--text-main);
  font-style: normal;
}

.tmwanba-platform-item span {
  min-width: 0;
  color: var(--text-main);
  font-weight: 700;
}

.tmwanba-platform-item b {
  color: var(--green);
  white-space: nowrap;
}

.tmwanba-platform-item i {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 13px;
  font-style: normal;
}

.tmwanba-rental-card strong {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tmwanba-rental-focus-card {
  grid-column: span 2;
  height: 520px;
}

.tmwanba-rental-focus-card > span {
  color: #e6edf7;
  font-weight: 800;
}

.tmwanba-rental-focus-card strong {
  gap: 12px;
}

.tmwanba-rental-focus-card .tmwanba-rental-list {
  gap: 7px;
}

.tmwanba-rental-focus-card .tmwanba-rental-summary b {
  min-height: 88px;
  font-size: 24px !important;
}

.tmwanba-rental-focus-card .tmwanba-rental-group > b,
.tmwanba-rental-focus-card .tmwanba-rental-list em,
.tmwanba-rental-focus-card .tmwanba-active-rental-item span,
.tmwanba-rental-focus-card .tmwanba-active-rental-item i {
  font-size: 15px !important;
  line-height: 1.32;
}

.tmwanba-rental-focus-card .tmwanba-rental-list em {
  min-height: 28px;
  align-items: center;
}

.tmwanba-rental-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tmwanba-rental-summary-single {
  grid-template-columns: 1fr;
}

.tmwanba-rental-summary b {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(82, 211, 125, 0.24);
  border-radius: 6px;
  min-height: 74px;
  padding: 8px 6px;
  background: rgba(82, 211, 125, 0.08);
  color: var(--green);
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.08;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.tmwanba-rental-list {
  display: grid;
  gap: 8px;
}

.tmwanba-rental-group {
  display: grid;
  gap: 4px;
}

.tmwanba-rental-group > b {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-radius: 6px;
  padding: 4px 6px;
  background: rgba(255, 213, 74, 0.1);
  color: #ffd54a;
  font-size: 14px;
  line-height: 1.2;
}

.tmwanba-rental-list em {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 4px;
  color: #d7e4f5;
  font-size: 14px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.25;
}

.tmwanba-rental-list i {
  flex: 0 0 auto;
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

.tmwanba-active-rental-list {
  gap: 6px;
}

.tmwanba-active-rental-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.tmwanba-active-rental-item span {
  color: #d7e4f5;
  font-size: 13px;
  line-height: 1.25;
}

.tmwanba-active-rental-item b {
  display: inline-block;
  margin-right: 5px;
  color: #ffd54a;
}

.tmwanba-active-rental-item i {
  color: var(--green);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.bot-status {
  color: #cfe0f4;
  text-align: center;
}

.message-list,
.user-list,
.compact-list {
  display: grid;
  gap: 12px;
}

.message-item,
.user-item,
.compact-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.user-item,
.compact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compact-item p {
  margin: 6px 0 0;
  line-height: 1.5;
}

.compact-item.urgent {
  border-color: rgba(255, 100, 124, 0.42);
  background: rgba(255, 100, 124, 0.08);
}

.count-pair {
  display: grid;
  gap: 6px;
  min-width: 104px;
  color: #dce8f6;
  font-size: 13px;
  text-align: right;
}

.store-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.store-ops-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(107, 114, 128, 0.26);
  border-radius: 14px;
  padding: 14px 14px 16px;
  background:
    linear-gradient(180deg, rgba(12, 20, 40, 0.96), rgba(9, 14, 28, 0.9)),
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 45%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 14px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.store-ops-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #22d3ee, #38bdf8 52%, #60a5fa);
}

.store-ops-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin: -14px -14px 0;
  padding: 14px 16px 12px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(30, 41, 59, 0.72));
}

.store-ops-card-head strong {
  display: block;
  overflow: hidden;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-ops-card-tag {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.store-ops-card .store-ops-metrics,
.store-ops-card .store-ops-alerts,
.store-ops-card .store-ops-section {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.46);
}

.store-ops-card .store-ops-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.store-ops-card .store-ops-metrics > div,
.store-ops-card .store-ops-alerts > div {
  min-width: 0;
}

.store-ops-card .store-ops-alerts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.store-ops-card .store-ops-alerts > span,
.store-ops-card .store-ops-section > span {
  grid-column: 1 / -1;
  display: block;
  margin-bottom: 2px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1400px) {
  .store-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.store-game-rankings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.peripheral-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.peripheral-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.peripheral-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 8px;
}

.peripheral-card span,
.peripheral-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.peripheral-card b {
  color: var(--green);
}

.store-game-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.store-game-card strong {
  display: block;
  margin-bottom: 10px;
}

.store-game-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-game-card li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 8px;
}

.store-game-card span {
  overflow: hidden;
  color: #dce8f6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-game-card b {
  color: var(--green);
  font-size: 13px;
}

.store-game-card em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
}

.store-game-card i {
  color: var(--yellow);
  font-size: 12px;
  font-style: normal;
}

.game-monitor-table {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.game-monitor-table th,
.game-monitor-table td {
  padding: 10px 12px;
}

.game-monitor-table tbody td:first-child {
  color: var(--text-muted);
  width: 64px;
}

.game-monitor-table tbody td:nth-child(4) {
  color: var(--green);
  font-weight: 700;
}

.game-monitor-table tbody td:nth-child(6) {
  color: var(--yellow);
  white-space: normal;
  word-break: break-word;
}

.table-store-list {
  line-height: 1.45;
}

.game-monitor-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.game-monitor-cards.full {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.game-monitor-card,
.store-game-monitor-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.game-monitor-card header,
.store-game-monitor-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.game-monitor-card header strong {
  overflow: hidden;
  color: #e6edf7;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-game-monitor-card header strong {
  overflow: hidden;
  color: #e6edf7;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-monitor-card header span {
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.store-game-monitor-card header span {
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.game-monitor-card ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-monitor-card li {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 6px;
  font-size: 15px;
}

.game-monitor-card li:last-child {
  align-items: start;
}

.game-monitor-card li span {
  overflow: hidden;
  color: #dce8f6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-monitor-card li b {
  color: var(--cyan);
  text-align: right;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.game-store-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 7px;
  margin-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 10px;
}

.table-store-list::-webkit-scrollbar {
  width: 8px;
}

.table-store-list::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.1);
  border-radius: 999px;
}

.table-store-list::-webkit-scrollbar-thumb {
  background: rgba(32, 217, 255, 0.45);
  border-radius: 999px;
}

.game-store-chips span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(32, 217, 255, 0.18);
  border-radius: 6px;
  padding: 5px 8px;
  background: rgba(32, 217, 255, 0.06);
  color: #dce8f6;
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-store-chips b {
  color: var(--cyan);
  white-space: nowrap;
}

.sub-head {
  margin-top: 18px;
}

.store-game-monitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.store-game-monitor-card li b {
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.store-game-monitor-card ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-game-monitor-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 5px;
  font-size: 13px;
}

.store-game-monitor-card li span {
  overflow: hidden;
  color: #dce8f6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alarm-monitor-grid {
  display: grid;
  gap: 12px;
}

.alarm-monitor-card header span {
  color: var(--yellow);
}

.alarm-monitor-card > header strong,
.alarm-monitor-card .alarm-count-boxes span,
.alarm-monitor-card .alarm-count-boxes strong,
.alarm-monitor-card .alarm-store-row > strong,
.alarm-monitor-card .alarm-preview-section h3,
.alarm-monitor-card .alarm-preview-section h3 b,
.alarm-monitor-card .alarm-preview-items b,
.alarm-monitor-card .alarm-preview-items span,
.alarm-monitor-card .alarm-preview-items .muted {
  font-size: 15px;
}

.alarm-count-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 8px 0 10px;
}

.alarm-count-box {
  min-width: 0;
  border: 1px solid rgba(32, 217, 255, 0.28);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(7, 18, 34, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.alarm-count-today {
  border-color: rgba(248, 113, 113, 0.42);
}

.alarm-count-month {
  border-color: rgba(250, 204, 21, 0.42);
}

.alarm-count-boxes span {
  display: block;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alarm-count-boxes strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--yellow);
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alarm-store-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.alarm-store-row {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(8, 17, 31, 0.46);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.alarm-store-row:hover,
.alarm-store-row:focus-visible {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  transform: translateY(-1px);
}

.alarm-store-row > strong {
  overflow: hidden;
  color: #ff4d5e;
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alarm-store-name {
  color: #ff4d5e;
}

.alarm-preview-section {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(7, 18, 34, 0.52);
  overflow: hidden;
}

.alarm-preview-section + .alarm-preview-section {
  border-color: rgba(148, 163, 184, 0.14);
}

.alarm-preview-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 8px 10px;
  color: #dce8f6;
  font-size: 15px;
}

.alarm-preview-section h3 b {
  color: var(--yellow);
  font-size: 15px;
}

.alarm-preview-items {
  display: grid;
  align-content: start;
  grid-auto-rows: 92px;
  height: 368px;
  max-height: 368px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-color: rgba(32, 217, 255, 0.55) rgba(148, 163, 184, 0.12);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.alarm-preview-items::-webkit-scrollbar {
  width: 8px;
}

.alarm-preview-items::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.alarm-preview-items::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(32, 217, 255, 0.55);
}

.alarm-preview-items div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.09);
  padding: 8px 10px;
}

.alarm-preview-items .alarm-compact-row {
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  height: 92px;
  min-height: 92px;
  padding: 9px 10px;
}

.alarm-preview-items div:first-child {
  border-top: 0;
}

.alarm-preview-items b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(82, 211, 125, 0.28);
  border-radius: 6px;
  background: rgba(82, 211, 125, 0.1);
  color: #5ff08f;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
}

.alarm-preview-items .alarm-empty-row {
  background: rgba(255, 255, 255, 0.01);
}

.alarm-preview-items .alarm-empty-row b {
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(148, 163, 184, 0.04);
  color: transparent;
}

.alarm-preview-items .alarm-empty-row span {
  color: rgba(147, 164, 187, 0.62);
}

.alarm-preview-items span {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: #dce8f6;
  font-size: 15px;
  line-height: 1.28;
  overflow: hidden;
}

.alarm-preview-items span strong,
.alarm-preview-items span em,
.alarm-preview-items span small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alarm-preview-items span strong {
  color: #f8fff2;
  font-size: 15px;
  font-weight: 900;
}

.alarm-preview-items span em {
  color: var(--yellow);
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.alarm-preview-items span small {
  display: -webkit-box;
  color: #a9bed6;
  font-size: 15px;
  line-height: 1.3;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.alarm-preview-items .muted {
  margin: 0;
  padding: 12px;
  font-size: 15px;
}

#alarmPageSummary .alarm-preview-section + .alarm-preview-section .alarm-preview-items {
  height: 368px;
  max-height: 368px;
}

.alarm-detail-list {
  display: grid;
  gap: 12px;
}

.alarm-detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.alarm-detail-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.alarm-detail-card header strong {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.alarm-detail-card header span {
  color: var(--yellow);
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

#metricDetailView .alarm-detail-card,
#metricDetailView .alarm-detail-card header strong,
#metricDetailView .alarm-detail-card header span,
#metricDetailView .alarm-count-boxes span,
#metricDetailView .alarm-count-boxes strong,
#metricDetailView .alarm-detail-section h3,
#metricDetailView .alarm-items-note,
#metricDetailView .alarm-item-box > header strong,
#metricDetailView .alarm-item-box > header span,
#metricDetailView .alarm-item-box-rows b,
#metricDetailView .alarm-item-box-rows span,
#metricDetailView .alarm-item-box-rows em,
#metricDetailView .alarm-item-box-rows p,
#metricDetailView .alarm-detail-section .muted {
  font-size: 15px;
}

.alarm-detail-section {
  border: 1px solid rgba(32, 217, 255, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(7, 18, 34, 0.58);
}

.alarm-detail-section + .alarm-detail-section {
  margin-top: 48px;
}

.alarm-month-section {
  border-color: rgba(250, 204, 21, 0.36);
}

.alarm-today-section {
  border-color: rgba(248, 113, 113, 0.36);
}

.alarm-detail-section h3 {
  margin: 0 0 8px;
  color: #dce8f6;
  font-size: 15px;
}

.alarm-items-wrap {
  display: grid;
  gap: 10px;
}

.alarm-items-note {
  border: 1px solid rgba(32, 217, 255, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(32, 217, 255, 0.06);
  color: #a9c2d7;
  font-size: 15px;
  line-height: 1.45;
}

.alarm-today-items,
.alarm-month-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
  gap: 10px;
}

@media (min-width: 1560px) {
  .alarm-today-items,
  .alarm-month-items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.alarm-today-items {
  overflow: visible;
}

.alarm-month-items {
  overflow: visible;
}

.alarm-item-box {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(8, 17, 31, 0.5);
}

.alarm-item-box > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.03);
}

.alarm-item-box > header strong {
  color: #dce8f6;
  font-size: 15px;
  line-height: 1.35;
}

.alarm-item-box > header span {
  margin-left: 0;
  color: var(--yellow);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.alarm-item-box-rows {
  display: grid;
  max-height: 640px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}

.alarm-item-box-rows div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 10px 12px;
}

.alarm-item-box-rows .alarm-detail-compact-row {
  grid-template-columns: 128px 76px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 9px 10px;
}

.alarm-item-box-rows div:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.alarm-item-box-rows b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(82, 211, 125, 0.28);
  border-radius: 6px;
  background: rgba(82, 211, 125, 0.1);
  color: #5ff08f;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alarm-item-box-rows span {
  display: grid;
  grid-column: auto;
  min-width: 0;
  gap: 3px;
  color: #dce8f6;
  font-size: 14px;
  line-height: 1.25;
  overflow: hidden;
}

.alarm-item-box-rows span strong,
.alarm-item-box-rows span i,
.alarm-item-box-rows span small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alarm-item-box-rows span strong {
  color: #f8fff2;
  font-size: 15px;
  font-weight: 900;
}

.alarm-item-box-rows span i {
  color: var(--yellow);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.alarm-item-box-rows span small {
  display: -webkit-box;
  color: #a9bed6;
  font-size: 13px;
  line-height: 1.28;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.alarm-item-box-rows em {
  color: var(--text-muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alarm-item-box-rows p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

#metricDetailView .alarm-month-section .alarm-item-box-rows span,
#metricDetailView .alarm-month-section .alarm-item-box-rows span strong,
#metricDetailView .alarm-month-section .alarm-item-box-rows span i,
#metricDetailView .alarm-month-section .alarm-item-box-rows span small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

#metricDetailView .alarm-month-section .alarm-item-box-rows span small {
  display: block;
  -webkit-line-clamp: unset;
}

#metricDetailView .alarm-month-section .alarm-item-box-rows {
  max-height: 760px;
}

.alarm-item-box-rows::-webkit-scrollbar {
  width: 8px;
}

.alarm-item-box-rows::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.1);
  border-radius: 999px;
}

.alarm-item-box-rows::-webkit-scrollbar-thumb {
  background: rgba(32, 217, 255, 0.45);
  border-radius: 999px;
}

.store-ops-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.store-ops-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.store-ops-card > header > strong {
  color: #ff647c;
  font-size: 15px;
}

.store-ops-card > header > span {
  max-width: 48%;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.store-ops-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.store-ops-metrics div,
.store-ops-alerts div {
  min-height: 58px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 6px;
  padding: 8px;
  background: rgba(8, 17, 31, 0.42);
}

.store-ops-metrics small,
.store-ops-alerts small,
.store-ops-section span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
}

.store-ops-metrics b,
.store-ops-alerts b {
  display: block;
  margin-top: 6px;
  color: #e6edf7;
  font-size: 18px;
}

.store-ops-alerts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border-top: 1px solid rgba(255, 100, 124, 0.32);
  padding-top: 10px;
  margin-bottom: 10px;
}

.store-ops-alerts > span {
  grid-column: 1 / -1;
  color: #ff9cae;
  font-size: 12px;
}

.store-ops-section {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 10px;
  margin-top: 10px;
}

.store-ops-section + .store-ops-section {
  margin-top: 64px;
}

.store-ops-section p {
  margin: 6px 0 0;
  color: #dce8f6;
  line-height: 1.6;
}

.store-ops-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 5px;
  margin-top: 6px;
}

.store-ops-game-card {
  border: 1px solid rgba(32, 217, 255, 0.24);
  border-radius: 5px;
  padding: 5px 6px;
  background: rgba(32, 217, 255, 0.06);
}

.store-ops-game-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding-bottom: 4px;
}

.store-ops-game-card strong {
  overflow: hidden;
  color: #e6edf7;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-ops-game-card b {
  color: var(--green);
  font-size: 14px;
  white-space: nowrap;
}

.store-ops-game-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 4px;
  color: #dce8f6;
  font-size: 10px;
}

.store-ops-game-card em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 800;
}

.store-ops-section ul {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.store-ops-section li {
  display: grid;
  gap: 4px;
  border-left: 3px solid rgba(255, 209, 102, 0.64);
  padding-left: 8px;
  color: #dce8f6;
  line-height: 1.45;
}

.store-ops-section li span {
  color: #bfd1e8;
  font-size: 13px;
}

.daily-card {
  grid-column: 1 / -1;
}

.daily-report {
  min-height: 180px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #0a1424;
  color: #dce8f6;
  line-height: 1.7;
  white-space: pre-wrap;
}

.store-total-detail-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.store-total-panel {
  border-color: rgba(255, 77, 95, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 77, 95, 0.12), rgba(255, 77, 95, 0) 220px),
    rgba(10, 20, 36, 0.78);
  box-shadow: 0 0 42px rgba(255, 77, 95, 0.1);
}

.store-total-panel .panel-head h2 {
  color: #ff4d5f;
  font-size: 30px;
  text-shadow: 0 0 18px rgba(255, 77, 95, 0.48);
}

.store-total-panel .panel-head .muted {
  color: #d9ff78;
  font-size: 16px;
  font-weight: 900;
}

.store-total-detail-card {
  overflow: hidden;
  gap: 0;
  grid-template-rows: auto;
  align-self: stretch;
  min-height: 0;
  height: 154px;
  max-height: none;
  border-color: rgba(255, 77, 95, 0.44);
  border-width: 2px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 77, 95, 0.1), rgba(255, 77, 95, 0) 34%),
    linear-gradient(135deg, rgba(172, 240, 128, 0.11), rgba(32, 217, 255, 0.08)),
    rgba(5, 24, 18, 0.84);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(255, 77, 95, 0.12),
    inset 0 0 28px rgba(172, 240, 128, 0.08);
}

.store-total-detail-card header {
  grid-template-columns: 30px minmax(0, 1fr) 112px;
  gap: 10px;
  align-items: stretch;
  min-height: 88px;
  border-bottom: 0;
  padding-bottom: 0;
}

.store-total-detail-card header span {
  align-self: center;
  justify-self: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 77, 95, 0.5);
  background: rgba(255, 77, 95, 0.16);
  color: #ff4d5f;
  font-size: 14px;
  box-shadow: inset 0 0 18px rgba(172, 240, 128, 0.08);
}

.store-total-detail-card header strong {
  align-self: end;
  display: block;
  min-width: 0;
  color: #ff4d5f;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.08;
  overflow: hidden;
  text-shadow: 0 0 14px rgba(255, 77, 95, 0.42);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-total-detail-card header b {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid rgba(103, 220, 113, 0.28);
  border-radius: 6px;
  padding: 6px 8px;
  background: rgba(103, 220, 113, 0.12);
  color: #d9ff78;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  box-shadow: 0 0 18px rgba(103, 220, 113, 0.14);
}

.store-total-detail-card header b em,
.store-total-detail-card header b small {
  display: block;
  color: #c9dfd2;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.16;
  white-space: nowrap;
}

.store-total-detail-card header b strong {
  display: block;
  color: #d9ff78;
  font-size: 24px;
  line-height: 1.05;
  text-shadow: 0 0 14px rgba(217, 255, 120, 0.3);
  white-space: nowrap;
}

.store-total-detail-card > p {
  margin: 0;
  color: #9fb7c8;
  font-size: 14px;
  font-weight: 800;
}

.store-total-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-self: stretch;
}

.store-total-stat-grid div {
  display: grid;
  align-content: center;
  min-width: 0;
  border: 1px solid rgba(32, 217, 255, 0.18);
  border-radius: 6px;
  min-height: 50px;
  padding: 8px 12px;
  background: rgba(3, 17, 16, 0.62);
}

.store-total-stat-grid span {
  display: block;
  color: #9cc8b5;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.store-total-stat-grid strong {
  display: block;
  margin-top: 4px;
  color: #20d9ff;
  font-size: 21px;
  line-height: 1.05;
  white-space: nowrap;
}

.store-total-area-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  height: 40px;
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  border-radius: 10px;
  padding: 0 10px !important;
  background: rgba(31, 45, 60, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.store-total-area-row strong,
.store-total-area-row span {
  position: relative;
  z-index: 1;
}

.store-total-area-row strong {
  align-self: center;
  color: #f8fff2;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-total-area-row span {
  align-self: center;
  justify-self: end;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #c7d5e7;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-align: right;
  white-space: nowrap;
}

.store-total-area-row span b,
.store-total-area-row span small {
  position: relative;
  z-index: 1;
  display: inline-block;
  font: inherit;
}

.store-total-area-row span b {
  color: #c8d7eb;
}

.store-total-area-row span small {
  min-width: 46px;
  color: #9aa8bc;
}

.store-total-area-row em {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--area-rate, 0%);
  min-width: 0;
  height: 100%;
  border-radius: inherit;
  background: rgba(32, 217, 255, 0.18);
  opacity: 0.8;
}

.store-total-area-row.hot {
  background: rgba(76, 34, 60, 0.86);
}

.store-total-area-row.hot em {
  background: rgba(255, 100, 124, 0.18);
}

.store-total-area-row.hot span small {
  color: #ff647c;
}

.store-total-area-row.warm {
  background: rgba(59, 58, 38, 0.86);
}

.store-total-area-row.warm em {
  background: rgba(255, 209, 102, 0.18);
}

.store-total-area-row.warm span small {
  color: #ffd166;
}

.store-total-area-row.cool {
  background: rgba(15, 63, 83, 0.82);
}

.store-total-area-row.cool em {
  background: rgba(32, 217, 255, 0.2);
}

.store-total-area-row.cool span small {
  color: #20d9ff;
}

.store-total-area-row.idle {
  background: rgba(31, 45, 60, 0.82);
}

.store-total-area-row.unmatched {
  background: rgba(92, 62, 8, 0.76);
}

.store-total-area-row.unmatched span small {
  min-width: 82px;
  color: #ffd166;
}

.store-total-area-row.empty {
  border-color: rgba(148, 163, 184, 0.1) !important;
  height: 40px;
  min-height: 40px;
  background: rgba(31, 45, 60, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.terminal-total-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: calc(100vh - 112px);
  min-height: 0;
  overflow: hidden;
  border-color: rgba(32, 217, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(32, 217, 255, 0.08), rgba(32, 217, 255, 0) 220px),
    rgba(10, 20, 36, 0.78);
}

.terminal-total-panel .panel-head {
  margin-bottom: 10px;
}

.terminal-total-panel .panel-head h2 {
  color: #e6edf7;
  font-size: 30px;
  text-shadow: 0 0 18px rgba(32, 217, 255, 0.22);
}

.terminal-total-detail-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

.terminal-total-detail-card {
  overflow: hidden;
  gap: 6px;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  border-color: rgba(148, 163, 184, 0.24);
  padding: 10px;
  background: rgba(8, 17, 31, 0.72);
}

.terminal-total-detail-card header {
  grid-template-columns: 34px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
}

.terminal-total-detail-card header > span {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(32, 217, 255, 0.12);
  color: var(--cyan);
  font-size: 14px;
}

.terminal-total-detail-card header b {
  display: block;
  min-width: 0;
  text-align: right;
}

.terminal-total-detail-card > p {
  margin: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding-bottom: 5px;
  color: #bfd1e8;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1800px) {
  .terminal-total-detail-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }
}

@media (max-width: 1280px) {
  .terminal-total-detail-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .terminal-total-detail-card {
    padding: 8px;
  }

  .terminal-total-detail-card header {
    grid-template-columns: 30px minmax(0, 1fr) 82px;
    gap: 6px;
  }

  .terminal-total-detail-card header > span {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 1800px) {
  .store-total-detail-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .store-total-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-total-detail-card {
    height: 154px;
  }
}

@keyframes zeroAreaPulse {
  0%,
  100% {
    opacity: 0.72;
  }

  50% {
    opacity: 1;
  }
}

.user-actions {
  display: flex;
  gap: 8px;
}

.account-management-panel {
  display: grid;
  gap: 14px;
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 20px 22px;
}

.account-management-head {
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.account-summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 6px;
  background: rgba(8, 145, 178, 0.1);
  color: #67e8f9;
  font-size: 12px;
  white-space: nowrap;
}

.account-list-section,
.deleted-account-section {
  display: grid;
  gap: 8px;
}

.account-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.account-section-heading h3,
.account-editor-form h3 {
  margin: 0;
  font-size: 16px;
}

.account-section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.account-list-header,
.account-list-row {
  display: grid;
  grid-template-columns: minmax(145px, 0.9fr) minmax(76px, 0.4fr) minmax(175px, 1.05fr) minmax(220px, 1.35fr) minmax(76px, 0.42fr) minmax(118px, 0.62fr);
  align-items: center;
  gap: 10px;
}

.account-list-header {
  padding: 0 10px 6px;
  color: #8293ad;
  font-size: 12px;
  font-weight: 800;
}

.account-list {
  border-top: 1px solid var(--line);
}

.account-list-row {
  min-height: 54px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.account-list-row > span {
  min-width: 0;
  color: #c8d4e6;
  overflow-wrap: anywhere;
}

.account-list-row strong,
.account-list-row small {
  display: block;
}

.account-list-row strong {
  color: #f3f7ff;
  font-size: 14px;
}

.account-list-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.account-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(74, 222, 128, 0.34);
  border-radius: 6px;
  color: #86efac;
  background: rgba(22, 101, 52, 0.2);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.account-status-inactive,
.account-status-deleted {
  border-color: rgba(148, 163, 184, 0.28);
  color: #a8b3c7;
  background: rgba(71, 85, 105, 0.2);
}

.account-protected-status {
  color: #8fa0b9;
  font-size: 12px;
  font-weight: 700;
}

.danger-link-btn,
.danger-btn {
  border: 1px solid rgba(248, 113, 113, 0.42);
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.2);
}

.danger-link-btn {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.danger-link-btn:hover,
.danger-btn:hover {
  border-color: rgba(248, 113, 113, 0.75);
  background: rgba(153, 27, 27, 0.3);
}

.account-confirmation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(248, 113, 113, 0.36);
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.14);
}

.account-confirmation[hidden] {
  display: none;
}

.account-confirmation p {
  margin: 0;
  color: #fecaca;
}

.account-confirmation div {
  display: flex;
  gap: 8px;
}

.deleted-account-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.deleted-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  color: #c8d4e6;
}

.account-empty-state {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.account-loading-state::before {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #22d3ee;
  content: "";
}

.account-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 2px;
}

.account-editor-form {
  --account-editor-title-height: 28px;
  --account-editor-field-height: 60px;
  --account-editor-store-height: 77px;
  --account-editor-view-height: 286.5px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 19, 34, 0.42);
}

.account-editor-form h3,
.account-editor-form .account-permission-fieldset,
.account-editor-form > button,
.account-editor-form .form-error {
  grid-column: 1 / -1;
}

.account-editor-form .form-error {
  height: 22px;
  min-height: 22px;
  margin: 0;
}

.account-editor-form h3 {
  display: flex;
  align-items: flex-start;
  height: var(--account-editor-title-height);
  min-height: var(--account-editor-title-height);
}

.account-editor-form > label {
  height: var(--account-editor-field-height);
  min-width: 0;
  min-height: var(--account-editor-field-height);
  grid-template-rows: 17px 38px;
  align-content: start;
  gap: 5px;
  margin-bottom: 0;
  font-size: 12px;
}

.account-editor-form > label > input,
.account-editor-form > label > select,
.account-editor-form > label > .password-visibility-field,
.account-editor-form > label > .password-visibility-field > input {
  box-sizing: border-box;
  height: 38px;
  min-height: 38px;
}

.account-permission-fieldset {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
}

.account-permission-fieldset legend {
  padding: 0 5px;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 800;
}

.account-permission-fieldset > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
}

.account-editor-form > .account-permission-fieldset:nth-of-type(1) {
  height: auto;
  min-height: var(--account-editor-store-height);
}

.account-editor-form > .account-permission-fieldset:nth-of-type(2) {
  height: auto;
  min-height: var(--account-editor-view-height);
}

.account-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.account-checkbox-option {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
}

.account-checkbox-option:has(input:checked) {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(8, 145, 178, 0.16);
}

.account-checkbox-option input {
  width: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0 7px 0 0;
  padding: 0;
  accent-color: #22d3ee;
}

.account-checkbox-option span {
  min-width: 0;
  color: #d5deec;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.account-checkbox-empty {
  color: var(--muted);
  font-size: 12px;
}

.account-editor-form input,
.account-editor-form select {
  min-height: 38px;
  padding: 0 10px;
  font-size: 13px;
}

.account-editor-form .account-checkbox-option input {
  min-height: 16px;
}

.account-editor-form select[multiple] {
  min-height: 132px;
  padding: 6px;
}

.account-editor-form > button,
.account-section-heading > button {
  min-height: 38px;
  font-size: 13px;
}

.account-editor-form > button {
  height: 38px;
  width: min(100%, 190px);
  justify-self: end;
}

.account-status-message {
  min-height: 20px;
  margin: 0;
  color: #86efac;
  font-weight: 700;
  font-size: 12px;
}

.account-editor-form .form-error:empty {
  display: block;
  visibility: hidden;
}

.account-status-message:empty {
  display: none;
}

body.account-management-mode .main {
  padding: 20px 24px;
}

body.account-management-mode .topbar {
  margin-bottom: 18px;
}

body.account-management-mode .topbar h1 {
  font-size: 24px;
}

body.account-management-mode .account-management-panel {
  font-size: 13px;
}

body.account-management-mode .account-management-head h2 {
  font-size: 17px;
}

body.account-management-mode .account-management-head .muted {
  font-size: 12px;
}

.account-status-message.is-error {
  color: #fca5a5;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
}

.store-card-grid {
  align-items: start;
  grid-template-columns: repeat(2, minmax(420px, 1fr));
  gap: 18px;
}

.store-ops-card {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 12px;
  padding: 0 22px 22px;
  background:
    linear-gradient(180deg, rgba(17, 27, 47, 0.98), rgba(12, 20, 38, 0.96)),
    radial-gradient(circle at 16% 0%, rgba(34, 211, 238, 0.14), transparent 34%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 18px 34px rgba(0, 0, 0, 0.24);
}

.store-ops-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #22d3ee, #38bdf8 48%, #60a5fa);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.5);
}

.store-ops-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  margin: 0 -22px;
  min-height: 76px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 24px 18px 32px;
  background: linear-gradient(90deg, rgba(8, 13, 27, 0.96), rgba(30, 41, 59, 0.78));
}

.store-ops-card-head strong {
  overflow: hidden;
  color: #ff6680;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-ops-card-tag {
  flex: 0 0 auto;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(34, 211, 238, 0.12);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 900;
}

.store-ops-card .store-ops-metrics,
.store-ops-card .store-ops-alerts,
.store-ops-card .store-ops-section {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
}

.store-ops-card .store-ops-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.store-ops-card .store-ops-alerts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.store-ops-card .store-ops-metrics > div,
.store-ops-card .store-ops-alerts > div {
  display: grid;
  align-content: space-between;
  min-height: 92px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(8, 17, 31, 0.5);
}

.store-ops-card .store-ops-metrics small,
.store-ops-card .store-ops-alerts small {
  display: block;
  color: #9fb0c9;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.store-ops-card .store-ops-metrics b,
.store-ops-card .store-ops-alerts b {
  display: block;
  margin-top: 10px;
  color: #eef6ff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.store-ops-card .store-ops-alerts > span,
.store-ops-card .store-ops-section > span {
  grid-column: 1 / -1;
  display: block;
  margin: 0 0 8px;
  color: #9bd1ff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.store-ops-card .store-ops-section {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  margin: 0;
  padding-top: 18px;
}

.store-ops-game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.store-ops-game-card {
  min-width: 0;
  border: 1px solid rgba(32, 217, 255, 0.28);
  border-radius: 7px;
  padding: 10px;
  background: rgba(14, 47, 72, 0.5);
}

.store-ops-game-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding-bottom: 8px;
}

.store-ops-game-card strong {
  overflow: hidden;
  color: #eef6ff;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-ops-game-card b {
  color: #4ade80;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.store-ops-game-card div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  color: #9fb0c9;
  font-size: 12px;
  line-height: 1.35;
}

.store-ops-game-card em {
  color: #22d3ee;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 980px) {
  .dashboard-grid,
  .ops-grid,
  .users-layout,
  .bot-layout,
  .metric-grid,
  .peripheral-grid,
  .store-game-rankings,
	  .game-monitor-cards,
	  .game-monitor-cards.full,
	  .store-game-monitor-grid,
	  .store-card-grid,
	  .store-ops-metrics,
	  .store-ops-alerts,
	  .alarm-store-list,
	  .alarm-today-items,
	  .alarm-month-items,
	  .tmwanba-cards,
  .tmwanba-layout {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .account-list-header {
    display: none;
  }

  .account-list-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .account-list-row > span:nth-child(3),
  .account-list-row > span:nth-child(4),
  .account-list-row > span:nth-child(6) {
    grid-column: 1 / -1;
  }

  .account-editor-grid,
  .account-editor-form {
    grid-template-columns: 1fr;
  }

  .account-editor-form {
    --account-editor-title-height: 44px;
    --account-editor-store-height: 104px;
    --account-editor-view-height: 334px;
  }

  .account-permission-fieldset > p {
    min-height: 30px;
  }

  .account-editor-form > button {
    width: 100%;
    justify-self: stretch;
  }

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

  .account-section-heading,
  .account-confirmation {
    align-items: stretch;
    flex-direction: column;
  }

  .login-hero {
    padding: 22px;
  }

  .login-command {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 22px;
    align-content: start;
  }

  .login-brand-zone {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 18px;
  }

  .login-topline,
  .login-art-panel,
  .login-title-block,
  .login-insight-strip {
    grid-column: 1;
    grid-row: auto;
  }

  .login-art-panel,
  .login-title-block,
  .login-insight-strip {
    grid-column: 1;
  }

  .login-art-panel {
    grid-row: auto;
    width: min(100%, var(--login-card-w));
    height: var(--login-card-h);
  }

  .login-title-block h1 {
    font-size: 44px;
  }

  .login-lead {
    font-size: 18px;
    margin-top: 18px;
  }

  .login-form {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
    justify-self: stretch;
    width: min(100%, var(--login-card-w));
    height: auto;
    min-height: auto;
    max-width: var(--login-card-w);
    padding: 22px;
  }

  .login-insight-strip {
    order: 4;
  }

  .login-metric-strip {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
  }
}

@media (max-width: 360px) {
  .account-editor-form {
    --account-editor-view-height: 386px;
  }
}

@media (max-width: 600px) {
  body.account-management-mode .app-shell {
    display: block;
    min-height: 100vh;
    overflow: visible;
  }

  body.account-management-mode .sidebar {
    width: 100%;
    min-width: 0;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    overflow: visible;
  }

  body.account-management-mode .sidebar-nav,
  body.account-management-mode .nav-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.account-management-mode .nav-group {
    grid-column: 1 / -1;
  }

  body.account-management-mode .nav-group-label {
    grid-column: 1 / -1;
  }

  body.account-management-mode .nav-item {
    min-width: 0;
  }

  body.account-management-mode .nav-item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.account-management-mode .main {
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 16px;
    overflow: visible;
  }

  body.account-management-mode .topbar,
  body.account-management-mode .topbar-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  body.account-management-mode .topbar {
    margin-bottom: 16px;
  }

  body.account-management-mode .account-management-panel {
    gap: 18px;
    padding: 16px;
  }

  body.account-management-mode .account-summary {
    white-space: normal;
  }

  body.account-management-mode .account-list-row {
    padding-right: 6px;
    padding-left: 6px;
  }
}

@media (max-width: 1280px) {
  .login-page {
    --login-master-gap: clamp(16px, 2vw, 28px);
    --login-master-ip: clamp(150px, 16vw, 230px);
    --login-master-form: clamp(280px, 24vw, 330px);
    --login-master-title: clamp(54px, 6vw, 78px);
    --login-master-subtitle: clamp(28px, 3vw, 42px);
  }

  .login-hero {
    padding: clamp(16px, 2.2vw, 28px);
  }

  .login-command {
    grid-template-columns: var(--login-master-ip) minmax(400px, 1fr) var(--login-master-form);
  }

  .login-topline .brand-mark {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .login-topline strong {
    font-size: 20px;
  }

  .login-lead {
    max-width: 560px;
    font-size: 16px;
  }

  .login-insight-strip span {
    min-width: 104px;
    min-height: 48px;
    padding: 8px 10px;
  }

  .login-form {
    padding: 22px 20px;
  }
}

@media (min-width: 1560px) and (max-width: 2200px) {
  .login-page {
    --login-master-gap: clamp(44px, 3.2vw, 82px);
    --login-master-ip: clamp(280px, 17vw, 410px);
    --login-master-form: clamp(390px, 22vw, 500px);
    --login-master-title: clamp(108px, 6.2vw, 156px);
    --login-master-subtitle: clamp(52px, 3.2vw, 78px);
  }
}

@media (min-width: 2201px) {
  .login-page {
    --login-master-gap: clamp(76px, 4vw, 130px);
    --login-master-ip: clamp(360px, 14vw, 520px);
    --login-master-form: clamp(460px, 18vw, 600px);
    --login-master-title: clamp(140px, 5.6vw, 190px);
    --login-master-subtitle: clamp(68px, 2.8vw, 96px);
  }
}

@media (max-width: 980px) {
  .login-page {
    overflow: auto;
    --login-master-ip: min(260px, 68vw);
    --login-master-form: min(420px, 92vw);
    --login-master-title: clamp(42px, 12vw, 72px);
    --login-master-subtitle: clamp(24px, 7vw, 42px);
  }

  .login-command {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    align-content: start;
  }

  .login-art-panel,
  .login-title-block,
  .login-form {
    grid-column: 1 !important;
    justify-self: center !important;
  }

  .login-title-block {
    text-align: center;
  }

  .login-topline,
  .login-insight-strip {
    margin-right: auto;
    margin-left: auto;
    justify-content: center;
  }

  .login-form {
    height: auto !important;
    min-height: 360px;
  }
}

.store-ops-game-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.store-ops-game-card {
  min-height: 54px;
  padding: 10px 12px;
}

.store-ops-game-card header {
  border-bottom: 0;
  padding-bottom: 0;
}

.store-ops-game-card strong {
  font-size: 14px;
}

.store-ops-game-card b {
  font-size: 19px;
}

.store-card-grid {
  grid-template-columns: repeat(2, minmax(520px, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
}

.store-ops-card {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  border-radius: 10px;
  padding: 0 14px 14px;
}

.store-ops-card::before {
  width: 5px;
}

.store-ops-card-head {
  min-height: 48px;
  margin: 0 -14px;
  padding: 10px 16px 10px 22px;
}

.store-ops-card-head strong {
  font-size: 16px;
}

.store-ops-card-tag {
  padding: 4px 8px;
  font-size: 10px;
}

.store-ops-card .store-ops-metrics,
.store-ops-card .store-ops-alerts,
.store-ops-card .store-ops-section {
  border-radius: 9px;
  padding: 10px;
}

.store-ops-card .store-ops-metrics,
.store-ops-card .store-ops-alerts {
  gap: 8px;
}

.store-ops-card .store-ops-metrics > div,
.store-ops-card .store-ops-alerts > div {
  min-height: 58px;
  border-radius: 7px;
  padding: 9px 10px;
}

.store-ops-card .store-ops-metrics small,
.store-ops-card .store-ops-alerts small {
  font-size: 12px;
}

.store-ops-card .store-ops-metrics b,
.store-ops-card .store-ops-alerts b {
  margin-top: 6px;
  font-size: 22px;
}

.store-ops-card .store-ops-alerts > span,
.store-ops-card .store-ops-section > span {
  margin-bottom: 5px;
  font-size: 13px;
}

.store-ops-card .store-ops-section {
  padding-top: 10px;
}

.store-ops-source-note {
  margin: 8px 0 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 6px;
  padding: 12px;
  color: #9fb0c7;
  background: rgba(8, 17, 31, 0.24);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.store-ops-game-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(58px, auto);
  gap: 6px;
  margin-top: 6px;
}

.store-ops-game-card {
  display: grid;
  align-items: center;
  min-height: 58px;
  border-radius: 6px;
  padding: 7px 8px;
}

.store-ops-game-card.empty {
  opacity: 0.2;
  background: rgba(8, 17, 31, 0.22);
}

.store-ops-game-card header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 5px;
}

.store-ops-game-card strong {
  overflow: hidden;
  color: #eef6ff;
  font-size: 11px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.store-ops-game-card b {
  color: #4ade80;
  font-size: 13px;
  line-height: 1.05;
  white-space: nowrap;
}

.store-ops-card .store-ops-game-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 40px;
  gap: 6px;
  max-height: 190px;
  min-height: 190px;
  margin-top: 6px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.store-card-grid {
  align-items: stretch;
}

.store-ops-card .store-ops-game-list.is-empty {
  place-items: stretch;
}

.store-ops-card .store-ops-game-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  height: 40px;
  min-height: 40px;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(32, 217, 255, 0.3);
  border-radius: 6px;
  padding: 5px 8px;
  background: rgba(14, 47, 72, 0.5);
}

.store-ops-card .store-ops-game-row span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  color: #d9f3ff;
  background: rgba(32, 217, 255, 0.12);
  font-size: 11px;
  font-weight: 900;
}

.store-ops-card .store-ops-game-row strong {
  min-width: 0;
  overflow: hidden;
  color: #eef6ff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.store-ops-card .store-ops-game-row b {
  color: #4ade80;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.store-ops-card .store-ops-game-row.empty {
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(8, 17, 31, 0.2);
  opacity: 0.32;
}

.store-ops-card .store-ops-game-row.is-unused-ai {
  opacity: 1;
}

@media (max-width: 600px) {
  body:not(.big-screen-mode):not(.login-page):not(.sidebar-collapsed)::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 49;
    background: #020817;
  }

  body:not(.big-screen-mode) .app-shell {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 100vh;
    overflow: hidden;
  }

  body:not(.big-screen-mode) .sidebar {
    width: 58px;
    min-width: 58px;
    max-height: 100vh;
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    border-bottom: 0;
    overflow: hidden;
  }

  body:not(.big-screen-mode):not(.sidebar-collapsed) .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(320px, calc(100vw - 40px));
    min-width: 0;
    max-height: none;
    background-color: #0a1427;
    overflow-y: auto;
    box-shadow: 18px 0 40px rgba(2, 8, 23, 0.58);
  }

  body:not(.big-screen-mode) .main {
    grid-column: 2;
    width: auto;
    height: 100vh;
    min-height: 0;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .login-page .login-hero {
    min-height: 100svh;
    padding: 16px;
  }

  .login-page .login-command {
    min-height: calc(100svh - 32px);
    gap: 0 !important;
    align-content: center;
  }

  .login-page .login-art-panel,
  .login-page .login-title-block {
    display: none;
  }

  .login-page .login-form {
    width: 100%;
    min-height: 0;
    padding: 24px 20px;
  }
}

@media (max-width: 600px) {
  body:not(.big-screen-mode) .app-shell,
  body:not(.big-screen-mode).sidebar-collapsed .app-shell {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  body:not(.big-screen-mode) .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(312px, calc(100vw - 28px));
    min-width: 0;
    max-height: none;
    padding: 12px 10px 14px;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    border-bottom: 0;
    overflow-y: auto;
    transform: translateX(0);
    transition: transform 0.2s ease;
    box-shadow: 18px 0 40px rgba(2, 8, 23, 0.58);
  }

  body:not(.big-screen-mode).sidebar-collapsed .sidebar {
    width: min(312px, calc(100vw - 28px));
    min-width: 0;
    padding: 12px 10px 14px;
    transform: translateX(-105%);
  }

  body:not(.big-screen-mode) .sidebar-nav {
    display: grid;
  }

  body:not(.big-screen-mode).sidebar-collapsed .sidebar-nav {
    display: grid;
  }

  body:not(.big-screen-mode) .brand > div,
  body:not(.big-screen-mode).sidebar-collapsed .brand > div {
    display: block;
  }

  body:not(.big-screen-mode) .sidebar-toggle-label,
  body:not(.big-screen-mode).sidebar-collapsed .sidebar-toggle-label {
    display: inline;
  }

  body:not(.big-screen-mode) .sidebar-back-btn,
  body:not(.big-screen-mode).sidebar-collapsed .sidebar-back-btn {
    display: inline-flex;
  }

  body:not(.big-screen-mode) .main {
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 14px 12px 30px;
    overflow: visible;
  }

  body:not(.big-screen-mode) .topbar {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 18px;
  }

  body:not(.big-screen-mode) .topbar > div:first-child {
    min-width: 0;
  }

  body:not(.big-screen-mode) .topbar h1 {
    overflow: hidden;
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.big-screen-mode) .topbar-actions {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  body:not(.big-screen-mode) .topbar-actions .user-badge {
    display: none;
  }

  body:not(.big-screen-mode) .topbar-actions .top-back-btn {
    flex: 0 0 auto;
    min-height: 30px;
    min-width: 62px;
    padding: 0 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  body:not(.big-screen-mode) .topbar-actions .status-pill {
    min-height: 30px;
    max-width: 84px;
    overflow: hidden;
    padding: 0 8px;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.big-screen-mode) .topbar-actions #topbarRefreshBtn {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }

  .mobile-menu-btn {
    display: inline-flex;
    position: relative;
    z-index: 51;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid rgba(34, 211, 238, 0.32);
    border-radius: 7px;
    background: rgba(34, 211, 238, 0.1);
    color: #dffaff;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
  }

  .mobile-menu-btn:focus-visible,
  .mobile-menu-btn:hover {
    border-color: rgba(34, 211, 238, 0.7);
    outline: none;
  }

  .mobile-menu-icon {
    font-size: 15px;
    line-height: 1;
  }

  body:not(.big-screen-mode) .workspace-head {
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }

  body:not(.big-screen-mode) .workspace-head h2 {
    font-size: 22px;
  }

  body:not(.big-screen-mode) .workspace-preview-label,
  body:not(.big-screen-mode) .workspace-store-select {
    align-self: stretch;
    width: 100%;
    margin-bottom: 0;
  }

  body:not(.big-screen-mode) .workspace-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }

  body:not(.big-screen-mode) .workspace-kpis article {
    padding: 12px;
    border-radius: 8px;
  }

  body:not(.big-screen-mode) .workspace-kpis strong {
    margin: 6px 0 4px;
    font-size: 19px;
  }

  body:not(.big-screen-mode) .workspace-kpis span,
  body:not(.big-screen-mode) .workspace-kpis small {
    font-size: 11px;
    line-height: 1.3;
  }

  body:not(.big-screen-mode) .metric-grid.dashboard-kpi-copy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  body:not(.big-screen-mode) .dashboard-kpi-copy article {
    height: 108px;
    min-width: 0;
    padding: 10px 9px;
  }

  body:not(.big-screen-mode) .dashboard-kpi-copy article.dashboard-realtime-refresh-card {
    padding: 0;
  }

  body:not(.big-screen-mode) .dashboard-realtime-refresh {
    padding: 10px 9px;
  }

  body:not(.big-screen-mode) .dashboard-kpi-copy .dashboard-realtime-refresh.has-long-value strong {
    font-size: 24px;
    line-height: 1;
  }

  body:not(.big-screen-mode) .dashboard-kpi-copy .mobile-talent-assessment:not([hidden]) {
    display: block;
  }

  body:not(.big-screen-mode) .dashboard-kpi-copy span {
    min-height: 30px;
    font-size: 11px;
  }

  body:not(.big-screen-mode) .dashboard-kpi-copy strong {
    margin-top: 5px;
    font-size: 22px;
  }

  body:not(.big-screen-mode) .dashboard-kpi-copy small {
    min-height: 24px;
    margin-top: 4px;
    font-size: 10px;
  }

  body:not(.big-screen-mode) .ops-grid,
  body:not(.big-screen-mode) .dashboard-grid,
  body:not(.big-screen-mode) .ops-grid .ops-lock-panel {
    width: 100%;
    min-width: 0;
  }

  body:not(.big-screen-mode) .ops-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.big-screen-mode) .store-card-grid,
  body:not(.big-screen-mode) .game-monitor-cards,
  body:not(.big-screen-mode) .store-game-monitor-grid {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  body:not(.big-screen-mode) .store-card-grid > *,
  body:not(.big-screen-mode) .game-monitor-cards > *,
  body:not(.big-screen-mode) .store-game-monitor-grid > * {
    min-width: 0;
  }

  body:not(.big-screen-mode) .ops-grid .ops-lock-panel {
    max-width: 100%;
  }

  body:not(.big-screen-mode) .ops-grid .panel-head,
  body:not(.big-screen-mode) .ops-grid #alarmSummary,
  body:not(.big-screen-mode) .ops-grid #urgentIssues {
    min-width: 0;
    max-width: 100%;
  }

  body:not(.big-screen-mode) .workspace-columns,
  body:not(.big-screen-mode) .workspace-task-columns,
  body:not(.big-screen-mode) .workspace-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body:not(.big-screen-mode) .panel {
    padding: 14px;
  }

  body:not(.big-screen-mode) .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }

  body:not(.big-screen-mode) .panel h2 {
    font-size: 16px;
  }

  body:not(.big-screen-mode) .store-total-detail-list,
  body:not(.big-screen-mode) .tmwanba-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body:not(.big-screen-mode) .store-total-detail-card {
    height: auto;
    min-height: 132px;
  }

  body:not(.big-screen-mode) .store-total-detail-card header {
    grid-template-columns: 30px minmax(0, 1fr) minmax(86px, 88px);
    gap: 8px;
    min-height: 96px;
  }

  body:not(.big-screen-mode) .store-total-detail-card header strong {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body:not(.big-screen-mode) .store-total-detail-card header b strong {
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    font-size: 20px;
  }

  body:not(.big-screen-mode) .store-total-detail-card header b {
    padding: 5px 6px;
    font-size: 15px;
  }

  body:not(.big-screen-mode) .tmwanba-rental-focus-card,
  body:not(.big-screen-mode) .tmwanba-platform-card {
    grid-column: auto;
  }

  body:not(.big-screen-mode) .tmwanba-store-list {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.big-screen-mode) .tmwanba-detail-card {
    width: 100%;
  }

  body:not(.big-screen-mode) .workspace-list > div {
    min-height: 42px;
    gap: 8px;
  }

  body:not(.big-screen-mode) .workspace-list small {
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body:not(.big-screen-mode) .workspace-store-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body:not(.big-screen-mode) .workspace-store-grid > div,
  body:not(.big-screen-mode) .workspace-store-grid > button {
    min-height: 44px;
  }

  body:not(.big-screen-mode) .workspace-upload-form {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  body:not(.big-screen-mode) .workspace-upload-form .primary-btn {
    width: 100%;
    justify-self: stretch;
  }

  body:not(.big-screen-mode) .workspace-task-columns h3 {
    font-size: 13px;
  }
}

@media (min-width: 601px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Apple-inspired material treatment for the operational surfaces. The external display keeps its own visual system. */
body:not(.big-screen-mode):not(.login-page) {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  background: #0b0c0f;
  color: #f5f5f7;
  --line: rgba(255, 255, 255, 0.1);
  --text-muted: #98989f;
  --cyan: #64d2ff;
  --green: #30d158;
  --red: #ff453a;
  --yellow: #ff9f0a;
}

body:not(.big-screen-mode):not(.login-page) .app-shell,
body:not(.big-screen-mode):not(.login-page) .main {
  background: #0b0c0f;
}

body:not(.big-screen-mode):not(.login-page) .sidebar {
  width: 250px;
  min-width: 250px;
  border-right-color: rgba(255, 255, 255, 0.08);
  background: rgba(20, 21, 24, 0.88);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(24px) saturate(135%);
}

body:not(.big-screen-mode):not(.login-page) .brand {
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body:not(.big-screen-mode):not(.login-page) .brand-mark {
  border-color: rgba(100, 210, 255, 0.38);
  border-radius: 11px;
  background: rgba(100, 210, 255, 0.1);
  color: #64d2ff;
  box-shadow: none;
}

body:not(.big-screen-mode):not(.login-page) .nav-group-label,
body:not(.big-screen-mode):not(.login-page) .eyebrow {
  color: #8e8e93;
}

body:not(.big-screen-mode):not(.login-page) .nav-item {
  min-height: 39px;
  border-color: transparent;
  border-radius: 10px;
  background: transparent;
  color: #d1d1d6;
  box-shadow: none;
  transform: none;
}

body:not(.big-screen-mode):not(.login-page) .nav-item::before {
  display: none;
}

body:not(.big-screen-mode):not(.login-page) .nav-item:hover,
body:not(.big-screen-mode):not(.login-page) .nav-item:focus-visible {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  transform: none;
}

body:not(.big-screen-mode):not(.login-page) .nav-item.active {
  border-color: rgba(10, 132, 255, 0.2);
  background: rgba(10, 132, 255, 0.18);
  box-shadow: none;
}

body:not(.big-screen-mode):not(.login-page) .nav-item.active::before {
  display: block;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #0a84ff;
  box-shadow: none;
}

body:not(.big-screen-mode):not(.login-page) .nav-item-title,
body:not(.big-screen-mode):not(.login-page) .nav-item.active .nav-item-title {
  color: #f5f5f7;
}

body:not(.big-screen-mode):not(.login-page) .nav-item-tag {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #a1a1a6;
}

body:not(.big-screen-mode):not(.login-page) .nav-item-tag-ai {
  border-color: rgba(48, 209, 88, 0.24);
  background: rgba(48, 209, 88, 0.12);
  color: #30d158;
}

body:not(.big-screen-mode):not(.login-page) .nav-item-tag-eight {
  border-color: rgba(255, 159, 10, 0.24);
  background: rgba(255, 159, 10, 0.12);
  color: #ff9f0a;
}

body:not(.big-screen-mode):not(.login-page) .nav-item-tag-yx {
  border-color: rgba(100, 210, 255, 0.24);
  background: rgba(100, 210, 255, 0.12);
  color: #64d2ff;
}

body:not(.big-screen-mode):not(.login-page) .nav-folder-children {
  border-left-color: rgba(255, 255, 255, 0.12);
}

body:not(.big-screen-mode):not(.login-page) .main {
  padding-top: 24px;
}

body:not(.big-screen-mode):not(.login-page) .topbar {
  margin-bottom: 24px;
}

body:not(.big-screen-mode):not(.login-page) .topbar h1,
body:not(.big-screen-mode):not(.login-page) .workspace-head h2,
body:not(.big-screen-mode):not(.login-page) .panel h2,
body:not(.big-screen-mode):not(.login-page) .panel h3 {
  color: #f5f5f7;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body:not(.big-screen-mode):not(.login-page) .topbar h1 {
  font-size: 28px;
}

body:not(.big-screen-mode):not(.login-page) .panel,
body:not(.big-screen-mode):not(.login-page) .metric-card,
body:not(.big-screen-mode):not(.login-page) .workspace-kpis article,
body:not(.big-screen-mode):not(.login-page) .store-ops-card,
body:not(.big-screen-mode):not(.login-page) .account-management-panel {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(28, 29, 34, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 16px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px) saturate(120%);
}

body:not(.big-screen-mode):not(.login-page) .metric-card,
body:not(.big-screen-mode):not(.login-page) .workspace-kpis article {
  background: rgba(36, 37, 42, 0.72);
}

body:not(.big-screen-mode):not(.login-page) .metric-card strong,
body:not(.big-screen-mode):not(.login-page) .workspace-kpis strong {
  color: #f5f5f7;
  font-weight: 700;
}

body:not(.big-screen-mode):not(.login-page) .metric-card small,
body:not(.big-screen-mode):not(.login-page) .workspace-kpis small,
body:not(.big-screen-mode):not(.login-page) .muted,
body:not(.big-screen-mode):not(.login-page) .text-muted {
  color: #98989f;
}

body:not(.big-screen-mode):not(.login-page) button {
  border-radius: 10px;
  background: #0a84ff;
  color: #ffffff;
  font-weight: 700;
  box-shadow: none;
}

body:not(.big-screen-mode):not(.login-page) button:hover,
body:not(.big-screen-mode):not(.login-page) button:focus-visible {
  background: #409cff;
  outline: none;
}

body:not(.big-screen-mode):not(.login-page) .tmwanba-store-button {
  background: transparent;
  color: inherit;
}

body:not(.big-screen-mode):not(.login-page) .tmwanba-store-button:hover,
body:not(.big-screen-mode):not(.login-page) .tmwanba-store-button:focus-visible {
  background: rgba(51, 214, 159, 0.08);
}

body:not(.big-screen-mode):not(.login-page) .ghost-btn,
body:not(.big-screen-mode):not(.login-page) .icon-btn,
body:not(.big-screen-mode):not(.login-page) .sidebar-toggle,
body:not(.big-screen-mode):not(.login-page) .mobile-menu-btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #f5f5f7;
}

body:not(.big-screen-mode):not(.login-page) .ghost-btn:hover,
body:not(.big-screen-mode):not(.login-page) .ghost-btn:focus-visible,
body:not(.big-screen-mode):not(.login-page) .sidebar-toggle:hover,
body:not(.big-screen-mode):not(.login-page) .sidebar-toggle:focus-visible,
body:not(.big-screen-mode):not(.login-page) .mobile-menu-btn:hover,
body:not(.big-screen-mode):not(.login-page) .mobile-menu-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

body:not(.big-screen-mode):not(.login-page) input,
body:not(.big-screen-mode):not(.login-page) select,
body:not(.big-screen-mode):not(.login-page) textarea {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(18, 19, 22, 0.86);
  color: #f5f5f7;
}

body:not(.big-screen-mode):not(.login-page) input:focus,
body:not(.big-screen-mode):not(.login-page) select:focus,
body:not(.big-screen-mode):not(.login-page) textarea:focus {
  border-color: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

body:not(.big-screen-mode):not(.login-page) .status-pill,
body:not(.big-screen-mode):not(.login-page) .user-badge,
body:not(.big-screen-mode):not(.login-page) .workspace-preview-label,
body:not(.big-screen-mode):not(.login-page) .workspace-store-select {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #d1d1d6;
}

body:not(.big-screen-mode):not(.login-page) .status-pill.ok {
  color: #30d158;
}

body:not(.big-screen-mode):not(.login-page) .status-pill.error,
body:not(.big-screen-mode):not(.login-page) .status-pill.warning {
  color: #ff9f0a;
}

body:not(.big-screen-mode):not(.login-page) .workspace-list > div,
body:not(.big-screen-mode):not(.login-page) th,
body:not(.big-screen-mode):not(.login-page) td {
  border-color: rgba(255, 255, 255, 0.08);
}

body:not(.big-screen-mode):not(.login-page) .table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(18, 19, 22, 0.54);
}

body:not(.big-screen-mode):not(.login-page) .table-link-btn {
  border-color: rgba(10, 132, 255, 0.34);
  border-radius: 9px;
  background: rgba(10, 132, 255, 0.14);
  color: #64d2ff;
}

body:not(.big-screen-mode):not(.login-page) .source-badge {
  border-radius: 999px;
}

body:not(.big-screen-mode):not(.login-page) .sidebar-toggle,
body:not(.big-screen-mode):not(.login-page) .sidebar .sidebar-back-btn {
  border-radius: 10px;
}

.login-page {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  --login-accent: #0a84ff;
  --login-cyan: #64d2ff;
  --login-ink: #f5f5f7;
  background: #0b0c0f;
  color: #f5f5f7;
}

.login-page::before {
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.96), rgba(8, 9, 11, 0.72) 48%, rgba(8, 9, 11, 0.9)),
    linear-gradient(180deg, rgba(10, 132, 255, 0.08), rgba(8, 9, 11, 0.92)),
    url("/assets/login-data-center-20260710.jpg") center / cover no-repeat;
  filter: saturate(0.72) brightness(0.72);
}

.login-page::after {
  background-image: none;
  opacity: 0;
}

.login-page .login-topline,
.login-page .login-art-panel,
.login-page .login-form,
.login-page .login-insight-strip span,
.login-page .login-art-meta {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(28, 29, 34, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(26px) saturate(120%);
}

.login-page .login-topline .brand-mark {
  border-color: rgba(100, 210, 255, 0.36);
  border-radius: 14px;
  background: rgba(100, 210, 255, 0.12);
  color: #64d2ff;
  box-shadow: none;
}

.login-page .login-topline strong,
.login-page .login-title-block h1,
.login-page .login-form h2,
.login-page .login-insight-strip span {
  color: #f5f5f7;
}

.login-page .login-title-block h1 strong,
.login-page .login-art-meta strong {
  color: #64d2ff;
}

.login-page .login-lead,
.login-page .login-topline small,
.login-page .login-form-head span,
.login-page .login-art-meta,
.login-page .login-insight-strip em {
  color: #a1a1a6;
}

.login-page .login-field input {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(18, 19, 22, 0.86);
  color: #f5f5f7;
}

.login-page .login-field input:focus {
  border-color: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

.login-page .login-submit {
  border-radius: 12px;
  background: #0a84ff;
  color: #ffffff;
  box-shadow: none;
}

.login-page .login-submit:hover,
.login-page .login-submit:focus-visible {
  background: #409cff;
}

body:not(.big-screen-mode):not(.login-page) .metric-grid.dashboard-kpi-copy {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 12px;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy article {
  display: grid;
  grid-template-rows: 42px 33px 27px;
  align-content: start;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  clip-path: none;
  height: 132px;
  padding: 12px 12px 10px;
  background: rgba(36, 37, 42, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 16px 36px rgba(0, 0, 0, 0.2);
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy article.dashboard-realtime-refresh-card {
  display: block;
  padding: 0;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy article.mobile-talent-assessment:not([hidden]) {
  display: grid;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy .dashboard-realtime-refresh {
  display: grid;
  grid-template-rows: 42px 33px 27px;
  align-content: start;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: transparent;
  color: inherit;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy .dashboard-realtime-refresh:hover,
body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy .dashboard-realtime-refresh:focus-visible {
  background: rgba(10, 132, 255, 0.08);
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy .dashboard-realtime-refresh:disabled {
  background: transparent;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy article.big-clickable:hover,
body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy article.big-clickable:focus-visible {
  border-color: rgba(10, 132, 255, 0.5);
  background: rgba(10, 132, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 36px rgba(10, 132, 255, 0.14);
  transform: translateY(-1px);
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy span {
  display: block;
  height: 38px;
  min-height: 38px;
  overflow: hidden;
  color: #d1d1d6;
  font-size: 15px;
  line-height: 1.1;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy .dashboard-realtime-refresh-heading > b {
  font-size: 16px;
  line-height: 1.1;
  font-weight: 700;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy span .source-badge {
  display: inline-block;
  margin-top: 1px;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy strong {
  margin-top: 0;
  color: #f5f5f7;
  font-size: 26px;
  line-height: 1;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy .dashboard-realtime-refresh > strong {
  font-size: 16px;
  letter-spacing: 0;
  white-space: nowrap;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy .dashboard-realtime-refresh > strong {
  color: #30d158;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy .dashboard-realtime-refresh.is-warning > strong {
  color: #ff9f0a;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy small {
  display: -webkit-box;
  min-height: 27px;
  margin-top: 0;
  overflow: hidden;
  color: #98989f;
  font-size: 11px;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy article.warning strong {
  color: #ff9f0a;
}

body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy article.danger strong {
  color: #ff453a;
}

@media (max-width: 600px) {
  body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy span {
    display: block;
    height: 30px;
    min-height: 30px;
    font-size: 11px;
    line-height: 1.1;
  }

  body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy .dashboard-realtime-refresh-heading > b {
    font-size: 11px;
  }

  body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy span .source-badge {
    display: inline-block;
    margin: 0 0 0 3px;
  }

  body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy strong {
    margin-top: 0;
    font-size: 22px;
  }

  body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy .dashboard-realtime-refresh > strong {
    font-size: 15px;
  }

  body:not(.big-screen-mode):not(.login-page) .dashboard-kpi-copy small {
    min-height: 24px;
    margin-top: 0;
    font-size: 10px;
    line-height: 1.12;
  }
}

.dashboard-ecosystem-overview {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-ecosystem-section,
.dashboard-collaboration-section {
  display: grid;
  gap: 12px;
}

.dashboard-ecosystem-section > h2,
.dashboard-collaboration-section > h2 {
  margin: 0;
  color: #f5f5f7;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.dashboard-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-ecosystem-card {
  display: flex;
  min-width: 0;
  min-height: 168px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(36, 37, 42, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 16px 36px rgba(0, 0, 0, 0.18);
}

.dashboard-ecosystem-card header {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.dashboard-ecosystem-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #8e8e93;
}

.dashboard-ecosystem-card.is-verified .dashboard-ecosystem-dot {
  background: #0a84ff;
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.5);
}

.dashboard-ecosystem-card h3 {
  min-width: 0;
  margin: 0;
  color: #f5f5f7;
  font-size: 18px;
  line-height: 1.2;
}

.dashboard-ecosystem-card header em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(142, 142, 147, 0.12);
  color: #aeaeb2;
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
}

.dashboard-ecosystem-card.is-verified header em {
  border-color: rgba(10, 132, 255, 0.34);
  background: rgba(10, 132, 255, 0.12);
  color: #64b5ff;
}

.dashboard-ecosystem-card > p {
  margin: 13px 0 6px 17px;
  color: #d1d1d6;
  font-size: 14px;
  line-height: 1.35;
}

.dashboard-ecosystem-detail {
  margin-left: 17px;
  color: #98989f;
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-ecosystem-detail strong {
  color: #f5f5f7;
  font-weight: 750;
}

.dashboard-ecosystem-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: auto 0 0 17px;
  padding-top: 14px;
  color: #7f7f86;
  font-size: 11px;
  line-height: 1.35;
}

.dashboard-collaboration-panel {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(36, 37, 42, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 16px 36px rgba(0, 0, 0, 0.18);
}

.dashboard-collaboration-flow {
  display: flex;
  width: 100%;
  min-width: 860px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-collaboration-flow li {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  align-items: center;
}

.dashboard-collaboration-flow article {
  display: grid;
  width: 100%;
  min-width: 96px;
  min-height: 94px;
  place-content: center;
  gap: 3px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(18, 19, 22, 0.78);
  text-align: center;
}

.dashboard-collaboration-flow article span,
.dashboard-collaboration-flow article p {
  margin: 0;
  color: #8e8e93;
  font-size: 11px;
  line-height: 1.3;
}

.dashboard-collaboration-flow article strong {
  color: #f5f5f7;
  font-size: 14px;
  line-height: 1.3;
}

.dashboard-collaboration-flow li > i {
  width: 24px;
  flex: 0 0 24px;
  color: #636366;
  font-size: 19px;
  font-style: normal;
  text-align: center;
}

@media (max-width: 1100px) {
  .dashboard-ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .dashboard-ecosystem-overview {
    gap: 20px;
    margin-bottom: 20px;
  }

  .dashboard-ecosystem-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .dashboard-ecosystem-card {
    min-height: 0;
    padding: 16px;
  }

  .dashboard-collaboration-panel {
    padding: 14px;
  }
}

@media (max-width: 600px) {
  body:not(.big-screen-mode):not(.login-page) .topbar h1 {
    font-size: 19px;
  }

  body:not(.big-screen-mode):not(.login-page) .sidebar-nav {
    align-content: start;
    gap: 4px;
  }

  body:not(.big-screen-mode):not(.login-page) .nav-item,
  body:not(.big-screen-mode):not(.login-page) .nav-root-item {
    min-height: 40px;
    padding: 6px 9px 6px 10px;
    gap: 8px;
  }

  body:not(.big-screen-mode):not(.login-page) .nav-item-title,
  body:not(.big-screen-mode):not(.login-page) .nav-item.active .nav-item-title {
    min-width: 0;
    font-size: 14px;
    line-height: 1.24;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body:not(.big-screen-mode):not(.login-page) .nav-item-tag {
    flex: 0 0 auto;
    min-width: 38px;
    height: 23px;
    padding: 0 8px;
    font-size: 11px;
  }

  body:not(.big-screen-mode):not(.login-page) .sidebar-actions {
    gap: 4px;
    margin-top: 6px;
  }

  body:not(.big-screen-mode):not(.login-page) .sidebar .sidebar-back-btn,
  body:not(.big-screen-mode):not(.login-page) .sidebar-toggle {
    min-height: 34px;
    border-radius: 9px;
  }

  body:not(.big-screen-mode):not(.login-page) .sidebar .sidebar-back-btn {
    font-size: 13px;
  }

  body:not(.big-screen-mode):not(.login-page) .sidebar-toggle {
    gap: 5px;
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  body:not(.big-screen-mode):not(.login-page) .mobile-menu-btn[aria-expanded='true'] {
    display: none;
  }
}

@media (min-width: 601px) {
  body.sidebar-collapsed:not(.big-screen-mode) .sidebar {
    width: 58px;
    min-width: 58px;
  }
}

/* The directory shell owns navigation when the app is displayed on its right. */
body.embedded-mode .app-shell {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
}

/* Keep the primary navigation compact and reserve a distinct footer action area. */
body:not(.big-screen-mode):not(.login-page) .sidebar-nav {
  flex: 0 0 auto;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr);
}

body:not(.big-screen-mode):not(.login-page) .sidebar .nav-root-item {
  min-height: 44px;
}

body:not(.big-screen-mode):not(.login-page) .sidebar-actions {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
  body:not(.big-screen-mode):not(.login-page) .sidebar-nav {
    gap: 4px;
  }

  body:not(.big-screen-mode):not(.login-page) .sidebar-actions {
    padding-top: 10px;
  }
}

body.embedded-mode .sidebar {
  display: none !important;
}

body.embedded-mode .main {
  min-width: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
}

body.embedded-mode #storeOpsView,
body.embedded-mode #storeGameMonitorView,
body.embedded-mode #storeOpsView > .panel,
body.embedded-mode #storeGameMonitorView > .panel,
body.embedded-mode #storeOpsPageCards,
body.embedded-mode #storeGameMonitorOnlyCards {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.embedded-mode #storeOpsPageCards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

body.embedded-mode #storeGameMonitorOnlyCards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

body.embedded-mode:not(.big-screen-mode) #storeGameMonitorView.active > .wide-panel,
body.embedded-mode:not(.big-screen-mode) #tmwanbaView.active > .tmwanba-panel {
  min-height: 0;
}

body.embedded-mode #tmwanbaView .tmwanba-store-list,
body.embedded-mode #storeOpsView .store-ops-game-list {
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding-right: 0;
  scrollbar-gutter: auto;
}

body.embedded-mode #tmwanbaView .tmwanba-detail-card,
body.embedded-mode #tmwanbaView .tmwanba-detail-card strong {
  height: auto;
  min-height: 0;
  overflow: visible;
  scrollbar-gutter: auto;
}

body.embedded-mode .app-back-btn,
body.embedded-mode .mobile-menu-btn {
  display: none !important;
}

/* Dashboard alarm section: compact proportions without changing alarm behavior. */
#dashboardView .dashboard-area-grid {
  align-items: start;
}

#dashboardView .dashboard-area-grid > .large-panel {
  align-self: start;
  min-height: 0;
  padding: 14px 16px;
}

#dashboardView .dashboard-area-grid > .large-panel .panel-head {
  margin-bottom: 10px;
}

#dashboardView #manualSync,
#dashboardView #alarmHallBack {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

#dashboardView .ops-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

#dashboardView .ops-grid .ops-lock-panel {
  height: 460px;
  min-height: 460px;
  max-height: 460px;
  padding: 14px;
}

#dashboardView .ops-grid .ops-lock-panel .panel-head {
  min-height: 34px;
  margin-bottom: 10px;
}

#dashboardView .dashboard-alarm-store-card,
#dashboardView .dashboard-urgent-store-card {
  grid-template-columns: minmax(135px, 1fr) minmax(210px, 1.25fr);
  gap: 10px;
  padding: 10px 12px;
}

#dashboardView .dashboard-alarm-store-card > strong,
#dashboardView .dashboard-urgent-store-card > strong {
  font-size: 16px;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}

#dashboardView .dashboard-alarm-counts span,
#dashboardView .dashboard-urgent-store-card div {
  min-height: 42px;
  padding: 7px 9px;
  font-size: 13px;
  line-height: 1.15;
}

#dashboardView .dashboard-alarm-counts span {
  grid-template-columns: minmax(68px, 1fr) auto;
  white-space: nowrap;
}

#dashboardView .dashboard-alarm-counts b,
#dashboardView .dashboard-urgent-store-card b {
  font-size: 18px;
}

@media (max-width: 980px) {
  #dashboardView .ops-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #dashboardView .ops-grid .ops-lock-panel {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  #dashboardView .ops-grid #alarmSummary,
  #dashboardView .ops-grid #urgentIssues {
    overflow: visible;
    padding-right: 0;
  }

  #dashboardView .dashboard-alarm-store-card,
  #dashboardView .dashboard-urgent-store-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.yx-business-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.yx-business-preview article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.yx-business-preview span,
.yx-business-preview small {
  color: var(--muted);
}

.yx-business-preview strong {
  font-size: 24px;
}

.handoff-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}

.handoff-filters label,
.handoff-action-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.handoff-filters select {
  min-width: 150px;
  min-height: 38px;
}

.handoff-filters .workspace-preview-label {
  margin-left: auto;
}

.handoff-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.8fr);
  align-items: start;
  gap: 16px;
}

.handoff-list-panel,
.handoff-detail-panel,
.handoff-layout > * {
  min-width: 0;
}

.handoff-list-panel {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}

.handoff-task-list {
  display: grid;
  gap: 8px;
}

.handoff-task {
  display: grid;
  gap: 9px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.handoff-task:hover,
.handoff-task:focus-visible,
.handoff-task.is-active {
  border-color: rgba(10, 132, 255, 0.48);
  background: rgba(10, 132, 255, 0.12);
  outline: none;
}

.handoff-task-top,
.handoff-task-meta,
.handoff-task-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.handoff-task-top strong,
.handoff-task-meta b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.handoff-task-meta,
.handoff-task-bottom {
  color: var(--muted);
  font-size: 11px;
}

.handoff-task-bottom time {
  white-space: nowrap;
}

.handoff-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(142, 142, 147, 0.16);
  color: #d1d1d6;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.handoff-status-running {
  background: rgba(10, 132, 255, 0.16);
  color: #64d2ff;
}

.handoff-status-blocked {
  background: rgba(255, 159, 10, 0.16);
  color: #ffb340;
}

.handoff-status-done {
  background: rgba(142, 142, 147, 0.2);
  color: #f5f5f7;
}

.handoff-empty {
  margin: 0;
  padding: 20px 6px;
  color: var(--muted);
  text-align: center;
}

.handoff-detail-panel {
  display: grid;
  gap: 16px;
}

.handoff-mirror {
  border: 1px solid rgba(10, 132, 255, 0.42);
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.13), rgba(100, 210, 255, 0.045));
}

.handoff-mirror-stale {
  border-color: rgba(255, 159, 10, 0.42);
  background: linear-gradient(135deg, rgba(255, 159, 10, 0.12), rgba(255, 255, 255, 0.025));
}

.handoff-mirror header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.handoff-mirror header span,
.handoff-mirror dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.handoff-mirror h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

.handoff-mirror dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.handoff-mirror dl div {
  min-width: 0;
}

.handoff-mirror dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.handoff-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.handoff-detail-head span,
.handoff-detail-head p,
.handoff-detail-state small {
  color: var(--muted);
  font-size: 12px;
}

.handoff-detail-head h2 {
  margin: 5px 0;
  overflow-wrap: anywhere;
}

.handoff-detail-head p {
  margin: 0;
}

.handoff-detail-state {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: 0 0 auto;
}

.handoff-detail-state strong {
  font-size: 12px;
}

.handoff-fact-grid,
.handoff-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.handoff-fact-grid > section,
.handoff-section,
.handoff-action-form {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.handoff-fact-grid h3,
.handoff-section h3,
.handoff-action-form h3 {
  margin: 0 0 9px;
  font-size: 14px;
}

.handoff-fact-grid p,
.handoff-section p,
.handoff-section li,
.handoff-fact-list dd {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.handoff-section ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.handoff-fact-list {
  display: grid;
  grid-template-columns: minmax(88px, 0.3fr) minmax(0, 1fr);
  gap: 7px 12px;
  margin: 0;
}

.handoff-fact-list dt {
  color: var(--muted);
  font-size: 12px;
}

.handoff-fact-list dd {
  min-width: 0;
}

.handoff-action-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
}

.handoff-action-form h3,
.handoff-wide-field {
  grid-column: 1 / -1;
}

.handoff-action-form input,
.handoff-action-form select,
.handoff-action-form textarea {
  width: 100%;
  min-width: 0;
}

.handoff-action-form input,
.handoff-action-form select {
  min-height: 38px;
}

.handoff-action-form textarea {
  resize: vertical;
}

.handoff-action-form .primary-btn {
  justify-self: start;
  min-height: 40px;
}

.handoff-timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
}

.handoff-timeline::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: 1px;
  background: var(--line);
  content: '';
}

.handoff-timeline li {
  position: relative;
}

.handoff-timeline li::before {
  position: absolute;
  top: 5px;
  left: -19px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0a84ff;
  content: '';
}

.handoff-timeline time,
.handoff-timeline p,
.handoff-detail-updated {
  color: var(--muted);
  font-size: 11px;
}

.handoff-timeline strong,
.handoff-timeline time {
  display: block;
}

.handoff-detail-updated {
  margin: 0;
  text-align: right;
}

@media (max-width: 760px) {
  .yx-business-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .handoff-layout,
  .handoff-fact-grid,
  .handoff-action-grid,
  .handoff-mirror dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .handoff-list-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 600px) {
  .handoff-filters,
  .handoff-detail-head {
    align-items: stretch;
    flex-direction: column;
  }

  .handoff-filters label,
  .handoff-filters select,
  .handoff-filters .workspace-preview-label {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .handoff-detail-state {
    justify-items: start;
  }

  .handoff-action-form,
  .handoff-fact-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .handoff-action-form > *,
  .handoff-wide-field {
    grid-column: 1;
  }

  .handoff-task-top,
  .handoff-task-bottom {
    align-items: flex-start;
  }

  .handoff-task-bottom time {
    max-width: 48%;
    text-align: right;
    white-space: normal;
  }
}

/* htdj.games 实时指挥舱迁入 htdj.cloud：保持 cloud 现有深色视觉。 */
.command-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 16px 0;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(18, 19, 22, 0.72);
}

body:not(.big-screen-mode):not(.login-page) .command-tabs button {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #98989f;
}

body:not(.big-screen-mode):not(.login-page) .command-tabs button:hover,
body:not(.big-screen-mode):not(.login-page) .command-tabs button:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #f5f5f7;
}

body:not(.big-screen-mode):not(.login-page) .command-tabs button.is-active {
  background: #0a84ff;
  color: #ffffff;
}

.command-risk-panel,
.command-record-panel,
.command-alarm-panel {
  min-width: 0;
}

.command-record-panel {
  margin-top: 16px;
}

.command-truth-label {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(100, 210, 255, 0.2);
  border-radius: 999px;
  background: rgba(100, 210, 255, 0.08);
  color: #64d2ff;
  font-size: 11px;
  font-weight: 700;
}

.command-risk-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(110px, 0.28fr) minmax(120px, 0.32fr);
  gap: 12px;
  margin-bottom: 16px;
}

.command-risk-toolbar label,
.command-record-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #98989f;
  font-size: 12px;
  font-weight: 700;
}

.command-risk-toolbar input,
.command-risk-toolbar select,
.command-record-form input,
.command-record-form select,
.command-record-form textarea {
  width: 100%;
  min-width: 0;
}

.command-risk-toolbar input,
.command-risk-toolbar select,
.command-record-form input,
.command-record-form select {
  min-height: 40px;
}

.command-risk-layout,
.command-record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.command-risk-list,
.command-record-list,
.command-alarm-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

body:not(.big-screen-mode):not(.login-page) .command-risk-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 66px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  color: #f5f5f7;
  text-align: left;
}

body:not(.big-screen-mode):not(.login-page) .command-risk-card:hover,
body:not(.big-screen-mode):not(.login-page) .command-risk-card:focus-visible,
body:not(.big-screen-mode):not(.login-page) .command-risk-card.is-selected {
  border-color: rgba(100, 210, 255, 0.5);
  background: rgba(10, 132, 255, 0.1);
}

.command-risk-card > span:nth-child(2) {
  min-width: 0;
}

.command-risk-card strong,
.command-risk-card small {
  display: block;
  overflow-wrap: anywhere;
}

.command-risk-card strong {
  color: #f5f5f7;
  font-size: 13px;
}

.command-risk-card small {
  margin-top: 5px;
  color: #98989f;
  font-size: 11px;
}

.command-risk-level,
.command-risk-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.command-risk-level.is-high,
.command-risk-state.is-danger {
  background: rgba(255, 69, 58, 0.14);
  color: #ff6961;
}

.command-risk-level.is-medium,
.command-risk-state.is-pending {
  background: rgba(255, 159, 10, 0.14);
  color: #ffb340;
}

.command-risk-state.is-ok {
  background: rgba(48, 209, 88, 0.14);
  color: #30d158;
}

.command-risk-detail,
.command-record-form,
.command-record-card,
.command-alarm-group,
.command-empty-state {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.command-risk-detail {
  position: sticky;
  top: 12px;
  padding: 18px;
}

.command-risk-detail > span,
.command-record-card > span {
  color: #64d2ff;
  font-size: 11px;
  font-weight: 700;
}

.command-risk-detail h3 {
  margin: 8px 0;
  color: #f5f5f7;
  font-size: 18px;
}

.command-risk-detail p {
  margin: 0;
  color: #98989f;
  line-height: 1.65;
}

.command-risk-detail dl,
.command-record-card dl {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
}

.command-risk-detail dl div,
.command-record-card dl div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
}

.command-risk-detail dt,
.command-record-card dt {
  color: #98989f;
  font-size: 11px;
}

.command-risk-detail dd,
.command-record-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #d1d1d6;
  font-size: 12px;
}

.command-record-layout {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
}

.command-record-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.command-record-form textarea {
  resize: vertical;
}

.command-record-form button {
  min-height: 40px;
}

.command-record-form p {
  min-height: 18px;
  margin: 0;
  color: #64d2ff;
  font-size: 11px;
  line-height: 1.5;
}

.command-record-card {
  padding: 15px;
}

.command-record-card > strong {
  display: block;
  margin-top: 6px;
  color: #f5f5f7;
  font-size: 14px;
}

.command-empty-state {
  padding: 22px;
  color: #98989f;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.command-alarm-group {
  overflow: hidden;
}

.command-alarm-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  cursor: pointer;
}

.command-alarm-group summary strong {
  color: #f5f5f7;
}

.command-alarm-group summary span {
  color: #98989f;
  font-size: 11px;
}

.command-alarm-stores {
  display: grid;
  gap: 10px;
  padding: 0 15px 15px;
}

.command-alarm-stores article {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
}

.command-alarm-stores header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.command-alarm-stores header small,
.command-alarm-stores p,
.command-alarm-stores time {
  color: #98989f;
  font-size: 11px;
}

.command-alarm-stores ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.command-alarm-stores li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #d1d1d6;
  font-size: 12px;
  line-height: 1.55;
}

.command-alarm-stores li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.command-alarm-stores time {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .command-risk-layout,
  .command-record-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .command-risk-detail {
    position: static;
  }
}

@media (max-width: 600px) {
  .command-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .command-risk-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.big-screen-mode):not(.login-page) .command-risk-card {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .command-risk-state {
    grid-column: 2;
    justify-self: start;
  }

  .command-risk-detail dl div,
  .command-record-card dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .command-alarm-group summary,
  .command-alarm-stores header,
  .command-alarm-stores li {
    align-items: flex-start;
    flex-direction: column;
  }

  .command-alarm-stores time {
    white-space: normal;
  }
}

/* 风险态势按门店汇总：两列展示告警数量，不限制卡片行数，不做内部滚动。 */
.command-risk-layout {
  display: block;
}

.command-risk-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: none;
  overflow: visible;
}

body:not(.big-screen-mode):not(.login-page) .command-risk-card {
  grid-template-columns: 66px minmax(0, 1fr) auto;
}

.command-risk-state b {
  margin-right: 3px;
  color: inherit;
  font-size: 16px;
}

@media (max-width: 600px) {
  .command-risk-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 经营总览告警区：左侧保留明细空间，右侧两家门店等宽展示；高度由内容撑开，不在面板内截断。 */
#dashboardView .ops-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

#dashboardView .ops-grid .ops-lock-panel {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

#dashboardView .ops-grid #alarmSummary,
#dashboardView .ops-grid #urgentIssues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  overflow: visible;
  padding-right: 0;
  scrollbar-gutter: auto;
}

#dashboardView .ops-grid #alarmSummary > .dashboard-alarm-store-card,
#dashboardView .ops-grid #urgentIssues > .dashboard-urgent-store-card {
  min-width: 0;
  width: 100%;
}

#dashboardView .ops-grid .dashboard-urgent-store-card {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 76px;
}

#dashboardView #storeOpsCards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

@media (max-width: 980px) {
  #dashboardView .ops-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  #dashboardView .ops-grid #alarmSummary,
  #dashboardView .ops-grid #urgentIssues,
  #dashboardView #storeOpsCards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 经营总览告警收口：移除重复汇总，主区完整明细按两列网吧卡片展开。 */
#dashboardView .ops-grid {
  grid-template-columns: minmax(0, 1fr);
}

#dashboardView #alarmSummary.alarm-monitor-grid {
  display: block;
  overflow: visible;
  padding-right: 0;
}

#dashboardView #alarmSummary .alarm-monitor-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 14px 16px;
  margin-bottom: 14px;
  border-color: rgba(64, 196, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(20, 28, 43, 0.98), rgba(11, 20, 34, 0.96)),
    rgba(8, 17, 31, 0.74);
}

#dashboardView #alarmSummary .alarm-monitor-card > header {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

#dashboardView #alarmSummary .alarm-monitor-card > header strong {
  font-size: 18px;
  line-height: 1.3;
}

#dashboardView #alarmSummary .alarm-count-boxes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

#dashboardView #alarmSummary .alarm-count-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 56px;
  padding: 9px 11px;
}

#dashboardView #alarmSummary .alarm-count-boxes span {
  font-size: 12px;
}

#dashboardView #alarmSummary .alarm-count-boxes strong {
  margin-top: 0;
  font-size: 20px;
}

#dashboardView #alarmSummary .alarm-store-list {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#dashboardView #alarmSummary .alarm-store-row {
  grid-template-columns: minmax(132px, 0.68fr) repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  min-height: 142px;
  border-color: rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(26, 31, 43, 0.94), rgba(10, 20, 35, 0.84)),
    rgba(8, 17, 31, 0.62);
}

#dashboardView #alarmSummary .alarm-store-row > strong {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 6px;
  font-size: 16px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

#dashboardView #alarmSummary .alarm-store-row > strong .source-badge {
  flex: 0 0 auto;
}

#dashboardView #alarmSummary .alarm-preview-section {
  min-height: 116px;
  border-color: rgba(148, 163, 184, 0.16);
  border-radius: 9px;
  background: rgba(5, 16, 31, 0.7);
}

#dashboardView #alarmSummary .alarm-preview-section h3 {
  padding: 8px 10px;
  font-size: 13px;
}

#dashboardView #alarmSummary .alarm-preview-section h3 b {
  font-size: 16px;
}

#dashboardView #alarmSummary .alarm-preview-items {
  height: 86px;
  max-height: 86px;
  grid-auto-rows: 86px;
}

#dashboardView #alarmSummary .alarm-preview-items .alarm-compact-row {
  grid-template-columns: 54px minmax(0, 1fr);
  height: 86px;
  min-height: 86px;
  gap: 8px;
  padding: 8px;
}

#dashboardView #alarmSummary .alarm-preview-items span strong,
#dashboardView #alarmSummary .alarm-preview-items span em,
#dashboardView #alarmSummary .alarm-preview-items span small {
  font-size: 12px;
}

.dashboard-alarm-overview {
  min-width: 0;
}

.dashboard-alarm-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-alarm-overview-grid article {
  min-width: 0;
  min-height: 86px;
  border: 1px solid rgba(64, 196, 255, 0.24);
  border-radius: 10px;
  padding: 11px 12px;
  background: rgba(8, 18, 34, 0.72);
}

.dashboard-alarm-overview-grid article:nth-child(2),
.dashboard-alarm-overview-grid article:nth-child(4) {
  border-color: rgba(250, 204, 21, 0.3);
}

.dashboard-alarm-overview-grid span,
.dashboard-alarm-overview-grid small {
  display: block;
  color: #a9bed6;
  font-size: 12px;
  line-height: 1.25;
}

.dashboard-alarm-overview-grid strong {
  display: block;
  margin: 5px 0 3px;
  color: #f5f5f7;
  font-size: 23px;
  line-height: 1;
}

.dashboard-alarm-overview-grid small {
  color: #7f91a8;
  font-size: 11px;
}

.dashboard-alarm-overview-note {
  margin: 12px 2px 0;
  color: #8e9eb3;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  #dashboardView #alarmSummary .alarm-monitor-card,
  #dashboardView #alarmSummary .alarm-store-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {

  #dashboardView #alarmSummary .alarm-preview-items {
    height: 120px;
    max-height: 120px;
    grid-auto-rows: 120px;
  }

  #dashboardView #alarmSummary .alarm-preview-items .alarm-compact-row {
    height: 120px;
    min-height: 120px;
  }
}

@media (max-width: 600px) {
  .dashboard-alarm-overview-grid,
  #alarmPageSummary .alarm-store-list,
  #dashboardView #alarmSummary .alarm-store-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 告警门店在平板宽度仍保持两列，手机端再收为单列，避免每家网吧占满整行。 */
@media (min-width: 601px) and (max-width: 980px) {
  #alarmPageSummary .alarm-store-list,
  #dashboardView #alarmSummary .alarm-store-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  #dashboardView .ops-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #dashboardView .ops-grid .ops-lock-panel {
    width: 100%;
  }
}

/* 经营总览告警按门店合并：温度与内存在同一卡片内统一滚动。 */
.alarm-monitor-card-combined .alarm-store-row-combined {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  gap: 0;
  padding: 0;
  overflow: hidden;
  cursor: default;
}

.alarm-monitor-card-combined .alarm-store-row-combined:hover {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(90deg, rgba(26, 31, 43, 0.94), rgba(10, 20, 35, 0.84)),
    rgba(8, 17, 31, 0.62);
  transform: none;
}

.alarm-monitor-card-combined .alarm-store-row-combined > .alarm-store-header {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.alarm-monitor-card-combined .alarm-store-header .alarm-store-name {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 16px;
  line-height: 1.35;
}

.alarm-monitor-card-combined .alarm-store-stream {
  display: block;
  flex: 0 1 auto;
  min-height: 0;
  height: auto;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.alarm-monitor-card-combined .alarm-type-group {
  min-width: 0;
  background: rgba(5, 16, 31, 0.7);
  cursor: pointer;
}

.alarm-monitor-card-combined .alarm-type-group + .alarm-type-group {
  border-top: 1px solid rgba(64, 196, 255, 0.24);
}

.alarm-monitor-card-combined .alarm-type-group:focus-visible {
  outline: 2px solid rgba(64, 196, 255, 0.72);
  outline-offset: -2px;
}

.alarm-monitor-card-combined .alarm-type-group > header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(9, 21, 38, 0.98);
}

.alarm-monitor-card-combined .alarm-type-group > header strong {
  color: #dce8f6;
  font-size: 13px;
}

.alarm-monitor-card-combined .alarm-type-group > header span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
  color: #9fb2ca;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.alarm-monitor-card-combined .alarm-type-group > header b {
  display: inline;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--yellow);
  font-size: 13px;
  line-height: inherit;
}

.alarm-monitor-card-combined .alarm-store-stream .alarm-compact-row {
  grid-template-columns: 54px minmax(0, 1fr);
  height: 72px;
  min-height: 72px;
  gap: 8px;
  padding: 7px 8px;
}

#dashboardView #alarmSummary .alarm-monitor-card-combined .alarm-store-stream {
  height: auto;
  max-height: 220px;
  grid-auto-rows: auto;
}

#dashboardView #alarmSummary .alarm-monitor-card-combined .alarm-store-stream .alarm-compact-row {
  height: 72px;
  min-height: 72px;
}

@media (max-width: 600px) {
  .alarm-monitor-card-combined {
    grid-template-columns: minmax(0, 1fr);
  }

  .alarm-monitor-card-combined .alarm-store-row-combined {
    height: auto;
    min-height: 0;
  }
}
