@charset "UTF-8";
:root {
  --bg: #f5f6f8;
  --surface: #fff;
  --surface-soft: #f9fafb;
  --text: #272b35;
  --muted: #737b8b;
  --border: #e9ebef;
  --accent: #eb805e;
  --accent-strong: #df6c48;
  --accent-soft: #fff2ec;
  --green: #39a981;
  --green-soft: #eaf7f0;
  --red: #db6872;
  --red-soft: #fff0f1;
  --blue: #6484bc;
  --blue-soft: #edf3fd;
  --shadow: 0 4px 20px #20253204;
  --sidebar: #23262f;
  --sidebar-text: #a7aab5;
  --radius: 14px;
  font-family: Inter, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei",
    system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #181b23;
  --surface: #222630;
  --surface-soft: #292e39;
  --text: #ecedf1;
  --muted: #939ba9;
  --border: #343945;
  --accent-soft: #3e2d2a;
  --green-soft: #233e34;
  --red-soft: #412b32;
  --blue-soft: #29364b;
  --shadow: 0 4px 20px #00000008;
  --sidebar: #12151c;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
input,
select,
textarea {
  min-width: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #ef946c66;
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px #eb805e12;
}
button,
input,
select,
textarea {
  transition:
    background 0.16s,
    border-color 0.16s,
    box-shadow 0.16s,
    color 0.16s;
}
svg {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  flex-shrink: 0;
}
svg.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 15px;
}
.mono,
kbd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: white;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px #ea78542b;
}
.brand-mark svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}
.brand-caption {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 450;
  color: #969aa8;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.3;
}
.button svg {
  width: 16px;
  height: 16px;
}
.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 8px #dc755222;
}
.primary:hover {
  background: var(--accent-strong);
}
.secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.secondary:hover {
  background: var(--surface-soft);
  border-color: #d5dae3;
}
.ghost {
  color: var(--muted);
  padding: 8px;
}
.ghost:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.danger {
  background: var(--red);
  color: #fff;
}
.danger:hover {
  background: #c8505e;
}
.danger-ghost {
  color: var(--red);
  background: var(--red-soft);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  color: var(--muted);
}
.icon-button:hover {
  color: var(--text);
  background: var(--surface-soft);
}
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: #eeece7;
  color: #7b7466;
  font-size: 13px;
  font-weight: 650;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}
.avatar.a1 {
  background: #f2e9e4;
  color: #ba8068;
}
.avatar.a2 {
  background: #e9edf5;
  color: #778ba9;
}
.avatar.a3 {
  background: #e9efe8;
  color: #819078;
}
.avatar.a4 {
  background: #efe8f2;
  color: #a180ae;
}
.avatar.a5 {
  background: #e6eef0;
  color: #75959e;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-soft);
}
.badge.success {
  color: var(--green);
  background: var(--green-soft);
}
.badge.warning {
  color: var(--accent-strong);
  background: var(--accent-soft);
}
.badge.error {
  color: var(--red);
  background: var(--red-soft);
}
.badge.blue {
  color: var(--blue);
  background: var(--blue-soft);
}
.badge .status-dot {
  width: 5px;
  height: 5px;
}
.status-dot,
.small-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.subtext {
  font-size: 13px;
  color: var(--muted);
}
.text-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 240px;
}
.inline-error {
  padding: 12px 14px;
  border: 1px solid #e8889430;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 14px;
  line-height: 1.7;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 21px;
}
.field > span {
  font-size: 14px;
  font-weight: 550;
}
.field small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.field input,
.field select,
.field textarea,
.plain-input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.field textarea {
  resize: vertical;
  min-height: 125px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #a7adba;
}
.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon > span {
  position: absolute;
  left: 13px;
  display: grid;
  place-items: center;
  color: #a0a7b4;
  pointer-events: none;
}
.input-icon input {
  padding-left: 42px;
  padding-right: 42px;
  height: 46px;
}
.input-button {
  position: absolute;
  right: 9px;
  display: grid;
  place-items: center;
  padding: 5px;
  color: var(--muted);
}
.input-button svg {
  width: 17px;
  height: 17px;
}
/* Connection screen */
.login-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 47% 53%;
  background: var(--surface);
}
.login-story {
  position: relative;
  padding: 48px 60px;
  background: #252831;
  overflow: hidden;
  color: #fff;
  min-height: 750px;
}
.login-brand {
  position: relative;
  z-index: 2;
}
.story-copy {
  position: relative;
  z-index: 2;
  margin-top: 105px;
}
.story-copy .eyebrow {
  color: #9296a4;
  font-size: 11px;
  letter-spacing: 2.4px;
}
.story-copy h1 {
  font-size: 42px;
  line-height: 1.55;
  letter-spacing: -1.5px;
  font-weight: 600;
  margin: 18px 0;
}
.orange-dot {
  color: var(--accent);
}
.story-copy p {
  font-size: 14px;
  line-height: 2.1;
  color: #9297a6;
}
.orbit-art {
  position: absolute;
  width: 440px;
  height: 440px;
  left: 50%;
  bottom: -90px;
  transform: translateX(-42%);
}
.orbit {
  position: absolute;
  border: 1px solid #ffffff0c;
  border-radius: 50%;
  inset: 0;
  transform: rotate(-30deg) scaleY(0.68);
}
.orbit-two {
  inset: 40px;
  transform: rotate(30deg) scaleY(0.68);
  border-color: #ffffff0e;
}
.orbit-three {
  inset: 84px;
  transform: rotate(80deg) scaleY(0.7);
  border-color: #f39c7328;
}
.orbit-center {
  position: absolute;
  top: 115px;
  left: 166px;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  transform: rotate(-12deg);
  background: linear-gradient(145deg, #f8af82, #e77654);
  box-shadow:
    0 20px 80px #ed84543a,
    inset 1px 1px 0 #ffcaaa55;
}
.orbit-center svg {
  width: 65px;
  height: 65px;
  stroke-width: 1.3;
  color: #fff4e9;
}
.orbit-star {
  position: absolute;
  color: #e8a67f;
  font-size: 25px;
}
.star-one {
  top: 68px;
  left: 320px;
}
.star-two {
  top: 247px;
  left: 83px;
  font-size: 14px;
}
.orbit-point {
  position: absolute;
  top: 155px;
  left: 33px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5af8790;
  box-shadow: 0 0 20px #ffa67070;
}
.art-coordinate {
  position: absolute;
  top: 270px;
  left: 260px;
  font: 10px monospace;
  color: #9398a3;
  letter-spacing: 1px;
  transform: rotate(-9deg);
}
.story-footer {
  position: absolute;
  bottom: 32px;
  left: 60px;
  right: 45px;
  color: #858995;
  font-size: 10px;
  letter-spacing: 1.7px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.story-footer .small-dot {
  background: var(--accent);
  width: 4px;
  height: 4px;
}
.story-footer-right {
  margin-left: auto;
  color: #6f7380;
}
.login-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 48px 100px;
}
.login-card {
  width: 100%;
  max-width: 355px;
}
.login-kicker {
  font-size: 13px;
  color: var(--accent);
  font-weight: 550;
}
.login-card h2 {
  font-size: 26px;
  letter-spacing: -0.6px;
  margin: 14px 0 10px;
}
.login-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 30px;
}
.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
  margin-bottom: 28px;
}
.login-tabs button {
  padding: 9px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--muted);
}
.login-tabs .selected {
  background: var(--surface);
  box-shadow: 0 2px 5px #262c3b08;
  color: var(--text);
  font-weight: 600;
}
.login-submit {
  width: 100%;
  height: 44px;
  justify-content: space-between;
  margin: 4px 0 20px;
}
.login-endpoint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 29px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.login-endpoint svg {
  width: 14px;
  height: 14px;
}
.endpoint-tag {
  margin-left: auto;
  font-size: 11px;
  color: #a5aab4;
}
.login-footer {
  position: absolute;
  bottom: 32px;
  left: 48px;
  right: 48px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #a1a6b1;
}
.mobile-brand {
  display: none;
}
/* Workspace shell */
.app-layout {
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 224px;
  padding: 31px 17px 0;
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
}
.sidebar > .brand {
  margin-left: 12px;
  font-size: 22px;
}
.sidebar .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.sidebar .brand-mark svg {
  width: 23px;
  height: 23px;
}
.sidebar .brand-caption {
  font-size: 9px;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 31px 9px 23px;
  padding: 12px 9px;
  border: 1px solid #ffffff0a;
  border-radius: 9px;
  color: #d9dce6;
  font-size: 13px;
}
.workspace-symbol {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: #ffffff08;
  border-radius: 7px;
  color: #d5d8e0;
}
.workspace-symbol svg {
  width: 16px;
  height: 16px;
}
.workspace-label small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #818695;
  margin-top: 5px;
}
.workspace-label > span:last-child {
  margin-left: auto;
  color: #797e8e;
}
.workspace-label > span:last-child svg {
  width: 12px;
  height: 12px;
}
#navigation {
  overflow: auto;
  scrollbar-width: thin;
  flex: 1;
  padding-bottom: 25px;
}
.nav-group {
  margin-bottom: 20px;
}
.nav-group-label {
  font-size: 11px;
  color: #737989;
  letter-spacing: 0.5px;
  margin: 0 15px 9px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 3px;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  color: #a2a8b8;
  position: relative;
}
.nav-item svg {
  width: 17px;
  height: 17px;
  color: #8d94a5;
  stroke-width: 1.6;
}
.nav-item:hover {
  background: #ffffff06;
  color: #d9dce5;
}
.nav-item.active {
  background: #ec825d19;
  color: #f19d7a;
  font-weight: 550;
}
.nav-item.active svg {
  color: #ee9b76;
}
.nav-item.active:before {
  content: "";
  width: 3px;
  height: 15px;
  background: var(--accent);
  position: absolute;
  left: 0;
  border-radius: 3px;
}
.nav-count {
  margin-left: auto;
  min-width: 23px;
  padding: 2px 6px;
  background: #ffffff0a;
  border-radius: 5px;
  color: #aab0bd;
  font-size: 11px;
  text-align: center;
}
.nav-item.active .nav-count {
  color: #efaa8d;
  background: #ed96621a;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #ffffff08;
  padding: 17px 7px 21px;
}
.connection-indicator {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #a0a7b5;
  padding: 0 5px 17px;
}
.connection-indicator .status-dot {
  width: 5px;
  height: 5px;
  background: #78bb99;
}
.connection-indicator .mono {
  margin-left: auto;
  color: #6e7482;
  font-size: 9px;
}
.account-box {
  display: flex;
  align-items: center;
  gap: 9px;
}
.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #e8c6b3;
  background: #ba866425;
}
.account-name {
  min-width: 0;
}
.account-name strong {
  display: block;
  color: #dadde7;
  font-size: 12px;
  max-width: 95px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 500;
}
.account-name small {
  color: #777e8e;
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
.account-box .icon-button {
  margin-left: auto;
  color: #727b8c;
  width: 27px;
  height: 27px;
}
.account-box .icon-button:hover {
  background: #ffffff08;
  color: #dadde7;
}
.account-box .icon-button svg {
  width: 15px;
  height: 15px;
}
.main-layout {
  margin-left: 224px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  height: 75px;
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 0 34px;
  background: var(--surface);
  gap: 15px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.topbar-left {
  font-size: 13px;
}
.breadcrumb-home {
  color: #a2a8b4;
}
.breadcrumb-home svg {
  width: 15px;
  height: 15px;
}
.breadcrumb-separator {
  color: #c9cdd5;
}
.quick-search {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a1a7b3;
  font-size: 12px;
}
.quick-search svg {
  width: 15px;
  height: 15px;
}
.quick-search kbd {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  margin-left: 16px;
  color: #a9afba;
}
.topbar-divider {
  width: 1px;
  height: 19px;
  background: var(--border);
  margin-left: 5px;
}
.topbar-right .icon-button {
  height: 29px;
  width: 29px;
}
.topbar-avatar {
  background: #f5e7df;
  color: #b7846c;
  width: 30px;
  height: 30px;
  font-size: 11px;
  border-radius: 10px;
}
.workspace {
  padding: 30px 34px 23px;
  flex: 1;
  min-width: 0;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  outline: 0;
}
.app-footer {
  padding: 15px 34px 23px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #a6acb7;
}
.footer-dot {
  margin: 0 7px;
  color: #c0c5cf;
}
.sidebar-backdrop,
.menu-toggle {
  display: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 20px;
}
.page-heading h1 {
  font-size: 24px;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.heading-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.heading-actions .date-label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  margin-right: 5px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 23px 0;
}
.card-head h2 {
  font-size: 14px;
  font-weight: 600;
}
.card-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.7;
}
.card-head a,
.text-button {
  color: var(--accent);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
}
.text-button svg {
  width: 12px;
  height: 12px;
}
.text-button:hover {
  color: var(--accent-strong);
}
/* Overview */
.welcome-card {
  position: relative;
  overflow: hidden;
  min-height: 151px;
  display: flex;
  align-items: center;
  padding: 25px 28px;
  margin-bottom: 22px;
  background: linear-gradient(105deg, var(--surface) 40%, var(--accent-soft));
  border-color: #eddfd52b;
}
.welcome-content {
  position: relative;
  z-index: 1;
}
.welcome-card .eyebrow {
  font-size: 10px;
  color: #b49e91;
  letter-spacing: 1.7px;
}
.welcome-card h2 {
  font-size: 21px;
  margin: 12px 0 9px;
  letter-spacing: -0.4px;
}
.welcome-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.welcome-card .text-button {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
}
.welcome-decoration {
  position: absolute;
  right: 47px;
  top: 16px;
  width: 155px;
  height: 155px;
  transform: rotate(-15deg);
}
.welcome-circle {
  position: absolute;
  border: 1px solid #e9bba02b;
  border-radius: 50%;
  inset: 0;
}
.welcome-circle:nth-child(2) {
  inset: 20px;
}
.welcome-circle:nth-child(3) {
  inset: 40px;
}
.welcome-emblem {
  position: absolute;
  left: 47px;
  top: 32px;
  width: 66px;
  height: 70px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f5b38b, #e58b66);
  color: #fff8f2;
  box-shadow: 0 13px 32px #d4825420;
  border: 1px solid #ffffff80;
}
.welcome-emblem svg {
  width: 37px;
  height: 37px;
  stroke-width: 1.4;
}
.welcome-star {
  position: absolute;
  right: -12px;
  top: 22px;
  color: #d9a184;
  font-size: 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.stat-card {
  padding: 20px 21px 17px;
  position: relative;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}
.stat-label {
  color: var(--muted);
  font-size: 12px;
}
.stat-icon {
  display: grid;
  place-items: center;
  height: 32px;
  width: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}
.stat-icon svg {
  height: 17px;
  width: 17px;
}
.stat-card:nth-child(2) .stat-icon {
  background: var(--blue-soft);
  color: var(--blue);
}
.stat-card:nth-child(3) .stat-icon {
  background: var(--green-soft);
  color: var(--green);
}
.stat-card:nth-child(4) .stat-icon {
  background: #efeafa;
  color: #9c86b9;
}
[data-theme="dark"] .stat-card:nth-child(4) .stat-icon {
  background: #342e43;
}
.stat-value {
  font-size: 31px;
  letter-spacing: -1.2px;
  font-weight: 650;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-bottom {
  border-top: 1px solid var(--border);
  margin-top: 15px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.stat-bottom svg {
  height: 12px;
  width: 12px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 21px;
  margin-bottom: 22px;
}
.chart-card {
  min-height: 260px;
}
.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 17px 24px 0;
}
.chart-summary strong {
  font-size: 27px;
  letter-spacing: -0.7px;
}
.chart-summary span {
  font-size: 12px;
  color: var(--muted);
}
.registration-chart {
  height: 143px;
  padding: 13px 24px 17px;
  display: flex;
  gap: 19px;
  align-items: stretch;
}
.chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 22px;
  font-size: 10px;
  color: #a3aab6;
  min-width: 17px;
  line-height: 1;
}
.chart-columns {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  flex: 1;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent calc(33.33% - 1px),
    var(--border) calc(33.33% - 1px),
    var(--border) 33.33%
  );
  background-size: 100% calc(100% - 25px);
  background-repeat: no-repeat;
}
.chart-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  padding-bottom: 24px;
  min-height: 0;
  gap: 7px;
}
.chart-bar {
  width: 100%;
  max-width: 28px;
  border-radius: 5px 5px 1px 1px;
  background: #efd6c7;
  position: relative;
  min-height: 0;
}
.chart-column:last-child .chart-bar {
  background: var(--accent);
}
[data-theme="dark"] .chart-bar {
  background: #745a4e;
}
.chart-column-label {
  position: absolute;
  bottom: 0;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.chart-bar-value {
  font-size: 10px;
  color: var(--accent-strong);
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
}
.chart-note {
  font-size: 11px;
  color: var(--muted);
  padding: 0 24px 18px;
}
.quick-actions-card {
  padding-bottom: 9px;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 17px;
  margin: 7px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  width: calc(100% - 26px);
  text-align: left;
}
.quick-action:hover {
  background: var(--surface-soft);
  border-color: var(--border);
}
.quick-action-icon {
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  width: 33px;
  height: 33px;
  border-radius: 9px;
  color: #929aa9;
  flex-shrink: 0;
}
.quick-action-icon svg {
  width: 16px;
  height: 16px;
}
.quick-action strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.quick-action small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.quick-action > svg {
  margin-left: auto;
  color: #b1b7c2;
  width: 13px;
  height: 13px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 21px;
}
.recent-list {
  padding: 7px 23px 16px;
}
.recent-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.recent-player:last-child {
  border-bottom: 0;
}
.recent-player strong {
  font-size: 13px;
  font-weight: 550;
}
.recent-player small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.recent-player .avatar {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  font-size: 11px;
}
.recent-player .recent-date {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.service-list {
  padding: 7px 23px 5px;
}
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.service-row:last-child {
  border-bottom: 0;
}
.service-row .service-label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}
.service-row .service-label svg {
  width: 14px;
  height: 14px;
}
.service-meta {
  font: 11px monospace;
  color: var(--muted);
}
.service-card-footer {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 7px 22px 20px;
  padding: 11px;
  background: var(--surface-soft);
  border-radius: 7px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.service-card-footer svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
/* Resource lists */
.resource-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--border);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  min-width: 0;
  width: 285px;
}
.search-field svg {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  color: #a5abb6;
  pointer-events: none;
}
.search-field input {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text);
  width: 100%;
  border-radius: 7px;
  padding: 10px 12px 10px 34px;
  font-size: 12px;
  height: 37px;
}
.search-field input::placeholder {
  color: #9ba3b1;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
}
.toolbar-right select {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 28px 9px 11px;
  background-color: var(--surface);
  color: var(--muted);
  font-size: 12px;
  height: 37px;
}
.toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 3px;
}
.table-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.table-scroll {
  overflow: auto;
  scrollbar-width: thin;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
  min-width: 700px;
}
.data-table th {
  padding: 13px 22px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}
.data-table th:first-child {
  padding-left: 23px;
}
.data-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  line-height: 1.45;
}
.data-table tbody tr:hover {
  background: var(--surface-soft);
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table td:last-child,
.data-table th:last-child {
  text-align: right;
  padding-right: 22px;
}
.identity-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.identity-cell strong {
  font-size: 13px;
  font-weight: 550;
}
.identity-cell small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.cell-muted {
  color: var(--muted);
  font-size: 12px;
}
.cell-numeric {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.rating-value {
  font-weight: 600;
  font-size: 14px;
}
.mini-label {
  font-size: 10px;
  color: var(--muted);
  margin-left: 5px;
}
.table-action {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
}
.table-action svg {
  width: 13px;
  height: 13px;
}
.table-action:hover {
  color: var(--accent);
}
.difficulty-list {
  display: flex;
  gap: 5px;
}
.difficulty {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 6px;
  background: var(--surface-soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.difficulty b {
  font-size: 9px;
  color: #909eb6;
  font-weight: 500;
}
.difficulty.d3 b {
  color: #a987a9;
}
.difficulty.d4 b {
  color: var(--accent);
}
.empty-difficulty {
  opacity: 0.5;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 22px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.pagination-left,
.pagination-right {
  display: flex;
  align-items: center;
  gap: 11px;
}
.pagination select {
  font-size: 11px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 7px;
}
.page-button {
  min-width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--surface);
  font-size: 11px;
  padding: 0 8px;
}
.page-button:hover:not(:disabled) {
  border-color: #d1d7e1;
  color: var(--accent);
}
.page-button.current {
  color: var(--accent);
  border-color: #eb805e38;
  background: var(--accent-soft);
}
.page-button:disabled {
  opacity: 0.35;
  cursor: default;
}
.page-button svg {
  height: 13px;
  width: 13px;
}
.empty-state {
  text-align: center;
  padding: 55px 25px 59px;
  color: var(--muted);
}
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 47px;
  height: 47px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 13px;
  margin-bottom: 17px;
  color: #a5adba;
}
.empty-icon svg {
  height: 22px;
  width: 22px;
}
.empty-state h3 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.9;
  max-width: 320px;
  margin: 0 auto;
}
.empty-state .button {
  margin-top: 18px;
}
.skeleton {
  display: inline-block;
  height: 10px;
  width: 100px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--border),
    var(--surface-soft),
    var(--border)
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
.skeleton.tall {
  height: 32px;
  width: 67px;
}
.skeleton.short {
  width: 55px;
}
.skeleton-row td {
  height: 69px;
}
.notice {
  padding: 13px 17px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 18px;
}
.notice svg {
  width: 14px;
  height: 14px;
  margin-right: 5px;
  color: var(--accent);
}
/* System and API tools */
.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 23px;
}
.info-card {
  padding: 22px;
}
.info-card > span {
  font-size: 12px;
  color: var(--muted);
}
.info-card > strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.2px;
  margin-top: 15px;
  overflow-wrap: anywhere;
}
.info-card > small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 23px;
}
.maintenance-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
}
.maintenance-card > span {
  padding: 9px;
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--accent);
  display: inline-flex;
}
.maintenance-card h3 {
  font-size: 13px;
  margin-top: 3px;
}
.maintenance-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 8px;
}
.maintenance-card .button {
  margin-top: 13px;
  padding: 7px 12px;
  font-size: 12px;
}
.maintenance-card:last-child {
  grid-column: 1/-1;
}
.parameters {
  padding: 20px 23px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.parameter {
  font-size: 12px;
  color: var(--muted);
}
.parameter b {
  display: block;
  font-size: 16px;
  color: var(--text);
  margin-top: 8px;
  font-weight: 550;
}
.api-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.api-card {
  overflow: hidden;
}
.api-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 21px;
  border-bottom: 1px solid var(--border);
}
.api-top h2 {
  font-size: 14px;
}
.api-request {
  padding: 21px;
}
.api-address {
  display: flex;
  gap: 8px;
}
.api-address select {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--accent);
  padding: 9px;
  font: 13px monospace;
  width: 89px;
}
.api-address input {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 7px;
  padding: 10px;
  font: 13px monospace;
  flex: 1;
  min-width: 0;
}
.api-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 22px;
}
.api-preset {
  font-size: 11px;
  color: var(--muted);
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
}
.api-preset:hover {
  background: var(--surface-soft);
  color: var(--accent);
}
.code-editor {
  min-height: 230px !important;
  font-size: 13px !important;
  tab-size: 2;
}
.api-request-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.api-result {
  min-height: 400px;
  max-height: 650px;
  overflow: auto;
  margin: 0;
  padding: 22px;
  font:
    13px/1.85 "SFMono-Regular",
    Consolas,
    monospace;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.api-result.has-content {
  color: var(--text);
}
.api-result-status {
  font-size: 11px;
  color: var(--muted);
}
/* Side editor and confirmations */
.drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #161b2850;
  backdrop-filter: blur(2px);
  cursor: default;
}
.drawer {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 490px;
  max-width: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 65px #00000015;
  animation: drawer-in 0.2s ease;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 27px;
  border-bottom: 1px solid var(--border);
}
.drawer-header .eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--accent);
}
.drawer-header h2 {
  font-size: 18px;
  margin-top: 9px;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
}
.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 25px 27px;
}
.drawer-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--border);
  padding: 17px 27px;
  background: var(--surface);
}
.drawer-footer .button {
  font-size: 13px;
}
.drawer-footer .danger-ghost {
  margin-right: auto;
}
.detail-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 23px;
  margin-bottom: 22px;
}
.detail-identity .avatar {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  font-size: 14px;
}
.detail-identity h3 {
  font-size: 16px;
  margin-bottom: 7px;
}
.detail-identity small {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
  margin-bottom: 28px;
}
.detail-field > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.detail-field > strong {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
  display: block;
}
.detail-section-title {
  font-size: 13px;
  font-weight: 550;
  margin: 21px 0 13px;
}
.detail-json {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 310px;
  overflow: auto;
  padding: 15px;
  margin: 0;
  font:
    12px/1.8 "SFMono-Regular",
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 17px;
}
.form-grid .field.wide {
  grid-column: 1/-1;
}
.form-grid .field input,
.form-grid .field select {
  padding: 10px;
  font-size: 13px;
}
.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  grid-column: 1/-1;
  margin-bottom: 17px;
}
.checkbox-field input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}
.editor-description {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 24px;
}
.editor-error {
  margin: 12px 0 0;
}
.confirm-dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 15px;
  width: 390px;
  max-width: calc(100% - 36px);
  box-shadow: 0 25px 90px #00000018;
}
.confirm-dialog::backdrop {
  background: #161b285d;
  backdrop-filter: blur(2px);
}
.confirm-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 11px;
  margin-bottom: 18px;
}
.confirm-dialog h2 {
  font-size: 17px;
  margin-bottom: 12px;
}
.confirm-dialog p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 25px;
}
.toast-stack {
  position: fixed;
  bottom: 26px;
  right: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(410px, calc(100% - 40px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 13px 17px;
  border-radius: 10px;
  box-shadow: 0 5px 30px #20253215;
  font-size: 13px;
  line-height: 1.8;
  animation: toast-in 0.2s ease;
}
.toast svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  margin-top: 2px;
}
.toast.error svg {
  color: var(--red);
}
.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
.noscript-message {
  padding: 20px;
  text-align: center;
}
.is-loading {
  opacity: 0.6;
}
.row-click {
  cursor: pointer;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
@keyframes drawer-in {
  from {
    transform: translateX(30px);
    opacity: 0.6;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes toast-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (min-width: 1500px) {
  .workspace {
    padding: 35px 45px;
  }
  .topbar {
    padding: 0 45px;
  }
  .app-footer {
    padding-left: 45px;
    padding-right: 45px;
  }
  .stat-card {
    padding: 23px;
  }
  .stats-grid {
    gap: 22px;
  }
  .chart-columns {
    gap: 30px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 204px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-layout {
    margin-left: 204px;
  }
  .workspace {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .app-footer {
    padding-left: 26px;
    padding-right: 26px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 17px;
  }
  .overview-grid,
  .bottom-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
    gap: 17px;
  }
  .welcome-decoration {
    right: 25px;
  }
  .date-label {
    display: none;
  }
  .chart-columns {
    gap: 14px;
  }
  .login-story {
    padding-left: 42px;
    padding-right: 36px;
  }
  .story-copy h1 {
    font-size: 35px;
  }
  .story-footer {
    left: 42px;
  }
  .table-count {
    display: none;
  }
  .api-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 950px) {
  .overview-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .quick-actions-card {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .system-grid {
    grid-template-columns: 1fr 1fr;
  }
  .system-grid .info-card:last-child {
    grid-column: 1/-1;
  }
  .login-story {
    padding-left: 30px;
  }
  .story-copy {
    margin-top: 100px;
  }
  .story-copy h1 {
    font-size: 28px;
  }
  .story-copy p {
    font-size: 13px;
  }
  .login-main {
    padding-left: 35px;
    padding-right: 35px;
  }
  .story-footer {
    left: 30px;
    font-size: 9px;
  }
  .story-footer-right {
    display: none;
  }
  .orbit-art {
    transform: translateX(-50%) scale(0.85);
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 224px;
  }
  .main-layout {
    margin-left: 0;
  }
  .menu-toggle {
    display: inline-grid;
    margin-left: -9px;
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: #14192365;
    width: 100%;
    height: 100%;
  }
  .nav-open .sidebar-backdrop {
    display: block;
  }
  .topbar {
    height: 65px;
    min-height: 65px;
    padding: 0 22px;
  }
  .topbar-left {
    gap: 10px;
  }
  .breadcrumb-home,
  .breadcrumb-separator,
  .quick-search > span:nth-child(2),
  .quick-search kbd {
    display: none;
  }
  .topbar-right {
    gap: 9px;
  }
  .topbar-divider {
    margin-left: 0;
  }
  .quick-search svg {
    width: 18px;
    height: 18px;
  }
  .workspace {
    padding: 24px 20px 15px;
  }
  .page-heading {
    margin-bottom: 20px;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading p {
    font-size: 12px;
    max-width: 230px;
  }
  .heading-actions {
    gap: 7px;
    flex-shrink: 0;
  }
  .heading-actions .button {
    padding: 9px 11px;
    font-size: 12px;
  }
  .welcome-card {
    padding: 22px;
    min-height: 140px;
  }
  .welcome-card h2 {
    font-size: 18px;
  }
  .welcome-card p {
    max-width: 250px;
    font-size: 12px;
  }
  .welcome-decoration {
    right: 3px;
    opacity: 0.65;
    transform: rotate(-15deg) scale(0.8);
  }
  .welcome-content {
    max-width: 73%;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-value {
    font-size: 27px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-icon {
    height: 29px;
    width: 29px;
  }
  .stat-bottom {
    font-size: 10px;
    margin-top: 12px;
    padding-top: 10px;
  }
  .resource-toolbar {
    padding: 15px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .search-field {
    width: 100%;
    flex: 1;
    min-width: 150px;
  }
  .toolbar-right {
    gap: 6px;
  }
  .toolbar-right select {
    max-width: 100px;
    font-size: 11px;
  }
  .toolbar-divider {
    display: none;
  }
  .data-table td,
  .data-table th {
    padding-left: 17px;
    padding-right: 17px;
  }
  .pagination {
    padding: 15px;
    gap: 8px;
  }
  .pagination-left {
    gap: 6px;
    font-size: 11px;
  }
  .pagination-right {
    gap: 5px;
  }
  .page-button {
    min-width: 25px;
    width: 25px;
    height: 25px;
    padding: 0;
  }
  .app-footer {
    padding: 15px 20px 20px;
    font-size: 10px;
  }
  .export-label {
    display: none;
  }
  .export-button {
    min-width: 31px;
    padding: 8px !important;
  }
  .system-grid {
    grid-template-columns: 1fr;
  }
  .system-grid .info-card:last-child {
    grid-column: auto;
  }
  .maintenance-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .parameters {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
    gap: 24px;
  }
  .maintenance-card:last-child {
    grid-column: auto;
  }
  .login-layout {
    display: block;
  }
  .login-story {
    display: none;
  }
  .login-main {
    min-height: 100dvh;
    padding: 60px 30px 110px;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: -0.6px;
  }
  .mobile-brand .brand-mark {
    width: 33px;
    height: 33px;
    border-radius: 10px;
  }
  .mobile-brand svg {
    width: 22px;
    height: 22px;
  }
  .login-footer {
    left: 30px;
    right: 30px;
    font-size: 11px;
  }
  .login-card h2 {
    font-size: 25px;
  }
  .drawer {
    width: 100%;
  }
  .drawer-header {
    padding: 22px;
  }
  .drawer-body {
    padding: 22px;
  }
  .drawer-footer {
    padding: 17px 22px;
  }
  .toast-stack {
    bottom: 20px;
    right: 20px;
  }
  .api-request {
    padding: 17px;
  }
  .api-address input {
    font-size: 12px;
  }
  .chart-columns {
    gap: 18px;
  }
}
@media (max-width: 390px) {
  .heading-actions .primary {
    font-size: 11px;
    padding: 9px;
  }
  .welcome-decoration {
    display: none;
  }
  .welcome-content {
    max-width: 100%;
  }
  .pagination-left span {
    max-width: 110px;
  }
  .topbar-right {
    gap: 5px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-bottom {
    font-size: 9px;
  }
  .chart-columns {
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.leaderboard-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.podium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.podium-card {
  padding: 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  position: relative;
}
.podium-card .avatar {
  width: 54px;
  height: 54px;
  font-size: 18px;
  margin: 4px 0 2px;
}
.podium-card h3 {
  margin: 0;
  font-size: 17px;
}
.podium-ptt {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.podium-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.podium-rank {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.podium-card.rank-1 {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(235, 128, 94, 0.12);
}
.podium-card.rank-1 .podium-rank {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.podium-trophy {
  color: var(--accent);
  display: inline-grid;
  place-items: center;
}
.podium-trophy .icon {
  width: 22px;
  height: 22px;
}
.rank-number {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.data-table.compact td,
.data-table.compact th {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 12px;
}
.detail-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0 4px;
}
.inline-hint {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0 4px;
}
.table-empty-inline {
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.row-click:focus-within {
  background: var(--surface-soft);
}
@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .podium-card h3 {
    overflow-wrap: anywhere;
  }
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 17px;
  margin-bottom: 23px;
}
.echart {
  width: 100%;
  height: 300px;
}
@media (max-width: 950px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 390px) {
  .echart {
    height: 260px;
  }
}

.ban-dialog { width: 460px; }
.ban-dialog .field { margin-top: 14px; }
.ban-dialog .field select,
.ban-dialog .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  outline: none;
}
.ban-dialog .field textarea { resize: vertical; min-height: 76px; }
.ban-dialog .field select:focus,
.ban-dialog .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
