/* =========================================================
   公元前 · 数智管理平台
   SAP Fiori inspired enterprise workspace
   ========================================================= */

:root {
  --navy-950: #061326;
  --navy-900: #091d37;
  --navy-850: #0c2545;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --cyan-500: #06b6d4;
  --violet-500: #7c5cfc;
  --amber-500: #f59e0b;
  --green-500: #10b981;
  --rose-500: #f43f5e;
  --bg: #f3f6fb;
  --card: #ffffff;
  --line: #e5ebf4;
  --line-strong: #d7e0ee;
  --ink: #0e1f38;
  --ink-2: #33465f;
  --muted: #6b7d95;
  --muted-2: #93a2b6;
  --shadow-sm: 0 1px 2px rgba(13, 35, 67, 0.05);
  --shadow-md: 0 14px 34px rgba(21, 53, 104, 0.12);
  --shadow-lg: 0 28px 70px rgba(9, 29, 55, 0.24);
  --radius: 14px;
  --sidebar-w: 256px;
  --sidebar-w-collapsed: 76px;
  --shellbar-h: 60px;
  --tabbar-h: 46px;
  --font: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-num: "Bahnschrift", "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

img,
svg {
  display: block;
}

::selection {
  background: rgba(37, 99, 235, 0.18);
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.ic {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

[hidden] {
  display: none !important;
}

/* ----------------------------- sidebar ----------------------------- */

.app-shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}

.sidebar {
  width: var(--sidebar-w);
  flex: none;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 40;
  color: #c4d3e6;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(37, 99, 235, 0.30) 0%, rgba(37, 99, 235, 0) 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0) 60%),
    linear-gradient(180deg, #0a1e39 0%, #081a31 45%, #061528 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
  transition: width 0.22s ease;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
}

.brand {
  flex: none;
  height: 72px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.brand-mark {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #f7f1e5;
  box-shadow: 0 8px 20px rgba(2, 11, 26, 0.46), 0 0 0 1px rgba(214, 188, 137, 0.22);
}

.brand-mark img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.brand-text {
  min-width: 0;
  flex: 1;
  line-height: 1.15;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  white-space: nowrap;
}

.brand-sub {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.7px;
  color: rgba(170, 197, 230, 0.62);
  white-space: nowrap;
}

.brand-edition {
  margin-left: auto;
  flex: none;
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #e5d5b6;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(211, 184, 130, 0.26);
  background: rgba(211, 184, 130, 0.09);
}

.side-nav {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 9px 10px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.side-nav::-webkit-scrollbar {
  width: 5px;
}

.side-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.side-group {
  margin: 0;
}

.side-group + .side-group {
  margin-top: 4px;
}

.side-group-head {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #e8eef8;
  text-align: left;
  user-select: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.side-group-head:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
}

.side-group.has-active > .side-group-head {
  color: #fff;
  background: transparent;
}

.side-group-icon {
  flex: none;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #a9bdd8;
  background: none;
  border: 0;
  transition: filter 0.16s ease;
}

.side-group-icon .ic {
  width: 19px;
  height: 19px;
}

.side-group-icon.tint-blue,
.side-group-icon.tint-cyan,
.side-group-icon.tint-violet,
.side-group-icon.tint-amber,
.side-group-icon.tint-green,
.side-group-icon.tint-slate {
  color: color-mix(in srgb, var(--tint) 62%, #ffffff);
  background: none;
  border: 0;
}

.side-group-head:hover .side-group-icon,
.side-group.has-active .side-group-icon {
  filter: brightness(1.12);
}

.side-group-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #e8eef8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-group.has-active .side-group-name {
  color: #fff;
}

.side-group-head > .side-chevron {
  flex: none;
  width: 12px;
  height: 12px;
  color: rgba(176, 198, 224, 0.48);
  transition: transform 0.2s ease, color 0.16s ease;
}

.side-group-head:hover > .side-chevron {
  color: rgba(220, 235, 252, 0.85);
}

.side-group.is-collapsed .side-chevron {
  transform: rotate(-90deg);
}

.side-items {
  display: grid;
  gap: 2px;
  max-height: 420px;
  margin: 0 0 4px;
  padding: 2px 5px;
  overflow: hidden;
  visibility: visible;
  opacity: 1;
  border: 0;
  background: transparent;
  transition: max-height 0.24s ease, opacity 0.16s ease, margin 0.2s ease,
    padding 0.2s ease, visibility 0s linear 0s;
}

.side-group.is-collapsed .side-items {
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  visibility: hidden;
  opacity: 0;
  transition: max-height 0.24s ease, opacity 0.16s ease, margin 0.2s ease,
    padding 0.2s ease, visibility 0s linear 0.2s;
}

.side-item {
  position: relative;
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px 0 33px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #aebcd0;
  font-size: 11.5px;
  font-weight: 400;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.side-item-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: none;
  place-items: center;
  border-radius: 8px;
  color: #9db8db;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.side-item-icon .ic {
  width: 15px;
  height: 15px;
}

.side-item-icon.tint-blue,
.side-item-icon.tint-cyan,
.side-item-icon.tint-violet,
.side-item-icon.tint-amber,
.side-item-icon.tint-green,
.side-item-icon.tint-rose,
.side-item-icon.tint-slate {
  color: color-mix(in srgb, var(--tint) 46%, #ffffff);
  background: color-mix(in srgb, var(--tint) 16%, transparent);
  border-color: color-mix(in srgb, var(--tint) 24%, transparent);
}

.side-item:hover {
  color: #e7eef8;
  background: rgba(255, 255, 255, 0.04);
}

.side-item:hover .side-item-icon {
  color: #dbeeff;
  background: color-mix(in srgb, var(--tint) 24%, transparent);
  border-color: color-mix(in srgb, var(--tint) 34%, transparent);
}

.side-item.is-active {
  color: #fff;
  background: linear-gradient(180deg, #203b70 0%, #18305d 100%);
  border-color: rgba(96, 145, 231, 0.24);
  box-shadow: 0 5px 14px rgba(1, 9, 22, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.side-item.is-active .side-item-icon {
  color: #e2f1ff;
  background: rgba(96, 165, 250, 0.24);
  border-color: rgba(147, 197, 253, 0.3);
}

.side-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: inherit;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.side-item.is-active .side-label {
  color: #fff;
  font-weight: 600;
}

.side-count {
  flex: none;
  margin-left: 8px;
  padding: 0;
  color: rgba(160, 183, 211, 0.52);
  background: none;
  font-family: var(--font-num);
  font-size: 9.5px;
  line-height: 1;
  text-align: right;
}

.side-item.is-active .side-count {
  color: rgba(255, 255, 255, 0.65);
  background: none;
}

.side-foot {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 11px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(3, 12, 25, 0.18);
}

.side-health {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  color: #93aac7;
  font-size: 11px;
  text-align: left;
}

.side-health:hover {
  color: #cfe0f5;
  background: rgba(255, 255, 255, 0.04);
}

.side-health .ic {
  width: 12px;
  height: 12px;
  margin-left: auto;
  opacity: 0.65;
}

.side-health-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-user {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 9px;
  text-align: left;
}

.side-user:hover {
  background: rgba(255, 255, 255, 0.045);
}

.side-user-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-user-name {
  color: #e8f1fd;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-user-role {
  color: rgba(148, 175, 207, 0.66);
  font-size: 9.5px;
  letter-spacing: 0.3px;
}

.side-user-more {
  margin-left: auto;
  color: rgba(150, 176, 207, 0.45);
}

.side-user-more .ic {
  width: 15px;
  height: 15px;
}

/* collapsed sidebar */
.app-shell.sidebar-collapsed .sidebar {
  width: var(--sidebar-w-collapsed);
}

.app-shell.sidebar-collapsed .brand {
  padding: 0;
  justify-content: center;
}

.app-shell.sidebar-collapsed .brand-text,
.app-shell.sidebar-collapsed .brand-edition,
.app-shell.sidebar-collapsed .side-group-head,
.app-shell.sidebar-collapsed .side-label,
.app-shell.sidebar-collapsed .side-count,
.app-shell.sidebar-collapsed .side-health-text,
.app-shell.sidebar-collapsed .side-user-text,
.app-shell.sidebar-collapsed .side-user-more,
.app-shell.sidebar-collapsed .side-health .ic {
  display: none;
}

@media (min-width: 1025px) {
  .app-shell.sidebar-collapsed .side-nav {
    padding: 9px 8px 8px;
  }

  .app-shell.sidebar-collapsed .side-items,
  .app-shell.sidebar-collapsed .side-group.is-collapsed .side-items {
    max-height: none;
    margin: 0;
    padding: 3px 10px;
    visibility: visible;
    opacity: 1;
    background: transparent;
    border-color: transparent;
  }

  .app-shell.sidebar-collapsed .side-group {
    margin-bottom: 0;
  }

  .app-shell.sidebar-collapsed .side-item {
    height: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
  }

  .app-shell.sidebar-collapsed .side-item-icon {
    display: grid;
    width: 32px;
    height: 32px;
  }

  .app-shell.sidebar-collapsed .side-item-icon .ic {
    width: 16px;
    height: 16px;
  }

  .app-shell.sidebar-collapsed .side-group + .side-group {
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
  }
}

.app-shell.sidebar-collapsed .side-health,
.app-shell.sidebar-collapsed .side-user {
  justify-content: center;
  padding: 7px 0;
}

.sidebar-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(6, 19, 38, 0.45);
  backdrop-filter: blur(2px);
}

/* ----------------------------- shell bar ----------------------------- */

.main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.shellbar {
  flex: none;
  height: var(--shellbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e7edf6;
  position: relative;
  z-index: 30;
}

.sidebar-toggle {
  flex: none;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 300px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.crumbs .crumb {
  overflow: hidden;
  text-overflow: ellipsis;
}

.crumbs .crumb-sep {
  color: #c3cede;
}

.crumbs .crumb.is-current {
  color: var(--ink);
  font-weight: 600;
}

.shell-search {
  margin-left: auto;
  position: relative;
  width: min(430px, 38vw);
  flex: none;
}

.shell-search input {
  width: 100%;
  height: 36px;
  padding: 0 38px 0 36px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: #f2f6fb;
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.shell-search input::placeholder {
  color: #97a6ba;
}

.shell-search input:hover {
  background: #edf3fa;
}

.shell-search input:focus {
  background: #fff;
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.shell-search input::-webkit-search-cancel-button {
  display: none;
}

.search-ic {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #899bb1;
  pointer-events: none;
}

.search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 17px;
  height: 18px;
  padding: 0 4px;
  border-radius: 4px;
  border: 1px solid #dfe7f2;
  background: #fff;
  color: #93a2b6;
  font-family: var(--font);
  font-size: 9.5px;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.shell-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.health-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  margin-right: 3px;
  border: 1px solid #e3eaf4;
  border-radius: 20px;
  background: #f8fafd;
  color: #566980;
  font-size: 11px;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.health-pill:hover {
  background: #fff;
  border-color: #c9d8ec;
}

.health-pill.is-warn {
  color: #a16207;
  border-color: #f5e2b8;
  background: #fffaf0;
}

.health-pill.is-bad {
  color: #b42318;
  border-color: #f5c9c4;
  background: #fff7f6;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.13);
}

.status-dot.is-up {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.13);
}

.status-dot.is-down {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.13);
}

.status-dot.is-checking {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

.status-dot.is-partial {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.38; }
}

.icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #5d7088;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: #f2f6fb;
  color: var(--ink);
}

.icon-btn .ic {
  width: 18px;
  height: 18px;
}

.bell-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px #fff;
}

.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #4f9bff 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
  flex: none;
}

.avatar-sm {
  width: 31px;
  height: 31px;
  font-size: 11px;
}

.avatar-lg {
  width: 40px;
  height: 40px;
  font-size: 13px;
}

#btnAvatar {
  margin-left: 4px;
}

#btnAvatar:hover {
  filter: brightness(1.04);
}

.menu-pop {
  position: absolute;
  z-index: 100;
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #e5ebf4;
  background: #fff;
  box-shadow: 0 18px 44px rgba(11, 31, 58, 0.18);
  animation: pop-in 0.14s ease;
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-pop {
  top: 54px;
  right: 60px;
  width: 252px;
}

.user-pop-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px 11px;
}

.user-pop-name {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}

.user-pop-role {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}

.menu-sep {
  height: 1px;
  margin: 4px 6px;
  background: #edf1f7;
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--ink-2);
  font-size: 12.5px;
  text-align: left;
}

.menu-item:hover {
  background: #f3f7fc;
  color: var(--ink);
}

.menu-item .ic {
  width: 16px;
  height: 16px;
  color: #8193aa;
}

.menu-item .menu-count {
  min-width: 17px;
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 999px;
  color: #fff;
  background: #e8590c;
  font-family: var(--font-num);
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
}

.menu-note {
  padding: 7px 10px 6px;
  color: #9aa9bc;
  font-size: 10px;
}

.bell-pop {
  top: 54px;
  right: 102px;
  width: 336px;
}

.pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 9px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
}

.text-btn {
  color: var(--blue-600);
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 4px;
}

.text-btn:hover {
  background: #eff5ff;
}

.bell-list {
  display: flex;
  flex-direction: column;
}

.bell-item {
  display: flex;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  text-align: left;
  width: 100%;
}

.bell-item:hover {
  background: #f5f8fd;
}

.bell-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  background: #edf4ff;
  color: #2563eb;
}

.bell-icon.is-warn {
  background: #fff5e6;
  color: #d97706;
}

.bell-icon.is-ok {
  background: #e9f9f1;
  color: #059669;
}

.bell-icon .ic {
  width: 15px;
  height: 15px;
}

.bell-title {
  color: var(--ink-2);
  font-size: 11.8px;
  line-height: 1.45;
}

.bell-sub {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.45;
}

/* ----------------------------- tabs ----------------------------- */

.tabbar {
  flex: none;
  height: var(--tabbar-h);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #edf2f9;
  border-bottom: 1px solid #dfe7f2;
  position: relative;
  z-index: 20;
}

.tab-add {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #64778f;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid #dfe7f2;
}

.tab-add:hover {
  background: #fff;
  color: var(--blue-600);
  border-color: #cbdaf0;
}

.tab-add .ic {
  width: 15px;
  height: 15px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 1px 0;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: none;
  height: 31px;
  max-width: 186px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.56);
  color: #5b6e86;
  font-size: 11.8px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
  background: #fff;
  border-color: #e6edf6;
  color: var(--ink);
}

.tab .ic {
  width: 14px;
  height: 14px;
  color: #7d8fa6;
}

.tab.is-active {
  color: #fff;
  background: linear-gradient(180deg, #2f74f2 0%, #2563eb 100%);
  border-color: #2563eb;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}

.tab.is-active .ic {
  color: rgba(255, 255, 255, 0.92);
}

.tab-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tab-close {
  width: 16px;
  height: 16px;
  padding: 0;
  margin-right: -2px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #98a7ba;
  flex: none;
}

.tab-close .ic {
  width: 11px;
  height: 11px;
}

.tab-close:hover {
  background: #e8eef7;
  color: #33465f;
}

.tab.is-active .tab-close {
  color: rgba(255, 255, 255, 0.65);
}

.tab.is-active .tab-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.tabbar-right {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding-left: 7px;
  border-left: 1px solid #dce5f1;
}

.tab-tool {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #6b7d95;
}

.tab-tool:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

.tab-tool .ic {
  width: 15px;
  height: 15px;
}

/* 页签右键菜单 */
.tab-menu {
  position: fixed;
  z-index: 400;
  min-width: 172px;
  padding: 6px;
  background: #fff;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(9, 30, 66, 0.18), 0 2px 6px rgba(9, 30, 66, 0.08);
  animation: tab-menu-in 0.12s ease;
}

@keyframes tab-menu-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  color: #3c5069;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.tab-menu-item:hover:not(:disabled),
.tab-menu-item:focus-visible {
  background: #eef4ff;
  color: var(--blue-600);
  outline: none;
}

.tab-menu-item:disabled {
  color: #b6c2d2;
}

.tab-menu-item.is-danger {
  color: #b42318;
}

.tab-menu-item.is-danger:hover:not(:disabled),
.tab-menu-item.is-danger:focus-visible {
  background: #fef3f2;
  color: #b42318;
}

.tab-menu-sep {
  height: 1px;
  margin: 5px 7px;
  background: #edf2f8;
}

@media (prefers-reduced-motion: reduce) {
  .tab-menu {
    animation: none;
  }
}

/* ----------------------------- views ----------------------------- */

.viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.views {
  position: absolute;
  inset: 0;
}

.view {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
}

.view.is-active {
  display: block;
  animation: view-in 0.18s ease;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.view::-webkit-scrollbar {
  width: 9px;
}

.view::-webkit-scrollbar-thumb {
  background: #cdd8e7;
  border-radius: 10px;
  border: 2px solid var(--bg);
}

.page-wrap {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 22px 26px 40px;
}

/* ----------------------------- home hero ----------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: space-between;
  min-height: 124px;
  padding: 22px 26px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(90% 130% at 82% 0%, rgba(56, 189, 248, 0.26) 0%, rgba(56, 189, 248, 0) 52%),
    radial-gradient(80% 120% at 8% 110%, rgba(79, 70, 229, 0.28) 0%, rgba(79, 70, 229, 0) 55%),
    linear-gradient(112deg, #0a1d37 0%, #0f3266 48%, #1552a8 100%);
  box-shadow: 0 18px 42px rgba(13, 44, 88, 0.23);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(100deg, transparent 20%, #000 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 100%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -90px;
  top: -190px;
  border-radius: 50%;
  border: 1px solid rgba(126, 190, 255, 0.18);
  box-shadow: 0 0 0 46px rgba(126, 190, 255, 0.035), 0 0 0 96px rgba(126, 190, 255, 0.02);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9cc7ff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
}

.hero-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(156, 199, 255, 0.75);
}

.hero h1 {
  margin: 7px 0 5px;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: 0.3px;
}

.hero h1 .hero-name {
  color: #a8d3ff;
}

.hero-sub {
  margin: 0;
  color: rgba(219, 235, 255, 0.72);
  font-size: 12.3px;
  line-height: 1.55;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(225, 239, 255, 0.82);
  font-size: 10.5px;
  backdrop-filter: blur(6px);
}

.hero-status .status-dot {
  width: 6px;
  height: 6px;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(94px, 1fr));
  gap: 9px;
  min-width: 470px;
  flex: none;
}

.quick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 11px 12px;
  min-height: 80px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-align: left;
  backdrop-filter: blur(8px);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.quick:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.quick .ic {
  width: 18px;
  height: 18px;
  color: #b7dcff;
}

.quick-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.quick-sub {
  margin-top: 1px;
  color: rgba(209, 231, 255, 0.55);
  font-size: 9.5px;
  white-space: nowrap;
}

/* ----------------------------- kpi ----------------------------- */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 13px;
  margin-top: 15px;
}

.kpi {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-align: left;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.kpi::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -34px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--tint-soft, #eef4ff);
  opacity: 0.55;
  pointer-events: none;
}

.kpi:hover {
  transform: translateY(-2px);
  border-color: #c9daf4;
  box-shadow: 0 12px 30px rgba(21, 53, 104, 0.10);
}

.kpi-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--tint, #2563eb);
  background: var(--tint-soft, #eaf2ff);
}

.kpi-icon .ic {
  width: 20px;
  height: 20px;
}

.kpi-body {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.kpi-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
}

.kpi-value .unit {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.kpi-sub {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 10.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-tag {
  position: absolute;
  z-index: 1;
  right: 12px;
  top: 12px;
  padding: 2px 7px;
  border-radius: 20px;
  background: #f4f7fb;
  color: #8b9caf;
  font-size: 9px;
  font-weight: 500;
}

/* tint helpers */
.tint-blue { --tint: #2563eb; --tint-soft: #eaf2ff; }
.tint-cyan { --tint: #0891b2; --tint-soft: #e6f8fc; }
.tint-violet { --tint: #7c3aed; --tint-soft: #f1ebff; }
.tint-amber { --tint: #b45309; --tint-soft: #fff3e2; }
.tint-green { --tint: #0f9f76; --tint-soft: #e7f8f2; }
.tint-rose { --tint: #e11d48; --tint-soft: #ffe9ef; }
.tint-slate { --tint: #475569; --tint-soft: #eef2f7; }

/* ----------------------------- layout ----------------------------- */

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 16px;
  align-items: start;
  margin-top: 22px;
}

.home-main {
  min-width: 0;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: sticky;
  top: 0;
}

/* ----------------------------- sections & tiles ----------------------------- */

.app-section + .app-section {
  margin-top: 19px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  min-height: 22px;
}

.section-bar {
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.07);
  flex: none;
}

.section-title {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: 0.2px;
}

.section-hint {
  color: var(--muted-2);
  font-size: 10.8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.section-count {
  margin-left: auto;
  flex: none;
  padding: 2px 8px;
  border-radius: 20px;
  background: #e9f0fa;
  color: #6b7d95;
  font-family: var(--font-num);
  font-size: 9.5px;
  letter-spacing: 0.2px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 10px;
}

.tile {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 77px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  overflow: hidden;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--tint, #2563eb);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: #c7d9f3;
  box-shadow: 0 10px 26px rgba(21, 53, 104, 0.10);
}

.tile:hover::before {
  opacity: 1;
}

.tile-icon {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--tint, #2563eb);
  background: var(--tint-soft, #eaf2ff);
}

.tile-icon .ic {
  width: 18px;
  height: 18px;
}

.tile-body {
  min-width: 0;
  padding-right: 10px;
}

.tile-title {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 12.6px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
  min-height: 21px;
}

.tile-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: #9aa9bc;
  font-size: 9px;
  letter-spacing: 0.2px;
}

.tile-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tint, #2563eb);
  opacity: 0.55;
}

.tile-arrow {
  position: absolute;
  top: 11px;
  right: 9px;
  width: 14px;
  height: 14px;
  color: #a2b2c5;
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.tile:hover .tile-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ----------------------------- side panels ----------------------------- */

.panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
}

.panel-title .ic {
  width: 15px;
  height: 15px;
  color: #7d90a8;
}

.panel-action {
  margin-left: auto;
  color: var(--blue-600);
  font-size: 10.5px;
  padding: 2px 4px;
  border-radius: 4px;
}

.panel-action:hover {
  background: #eff5ff;
}

.panel-chip {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 600;
  background: #e9f9f1;
  color: #059669;
}

.panel-chip.is-warn {
  background: #fff6e6;
  color: #b45309;
}

.panel-chip.is-bad {
  background: #fff0ee;
  color: #b42318;
}

.service-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  border-bottom: 1px dashed #eef2f7;
  text-align: left;
}

.service-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.service-row:hover .service-name {
  color: var(--blue-600);
}

.service-row .status-dot {
  width: 6px;
  height: 6px;
}

.service-name {
  color: var(--ink-2);
  font-size: 11.6px;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.service-port {
  margin-left: auto;
  color: #9aa9bc;
  font-family: var(--font-num);
  font-size: 9.5px;
}

.service-state {
  min-width: 30px;
  text-align: right;
  color: #9aa9bc;
  font-size: 9.5px;
}

.service-state.is-up {
  color: #0f9f76;
}

.service-state.is-down {
  color: #d92d20;
}

/* data bars */

.bar-row + .bar-row {
  margin-top: 9px;
}

.bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.bar-head b {
  color: var(--ink-2);
  font-family: var(--font-num);
  font-size: 10.5px;
  font-weight: 600;
}

.bar-track {
  height: 5px;
  border-radius: 10px;
  background: #eef2f8;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #4f9bff 0%, #2563eb 100%);
  transition: width 0.5s ease;
}

.bar-fill.is-amber {
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

.bar-fill.is-green {
  background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
}

.bar-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed #eef2f7;
  color: var(--muted-2);
  font-size: 9.5px;
}

/* guide mini */

.guide-step {
  display: flex;
  gap: 9px;
  padding: 6px 2px;
  align-items: flex-start;
}

.guide-step + .guide-step {
  border-top: 1px dashed #f0f3f8;
}

.guide-num {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: none;
  background: #edf4ff;
  color: #2563eb;
  font-family: var(--font-num);
  font-size: 9.5px;
  font-weight: 700;
}

.guide-text {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.guide-text b {
  color: var(--ink-2);
  font-weight: 600;
}

.kbd-inline {
  display: inline-block;
  min-width: 16px;
  padding: 0 4px;
  border: 1px solid #dde5f0;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fff;
  color: #5d7088;
  font-family: var(--font);
  font-size: 9px;
  line-height: 15px;
  text-align: center;
}

.home-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px dashed #dfe6f0;
  color: #9aa9bc;
  font-size: 9.8px;
}

.home-foot .dot-sep {
  margin: 0 5px;
  color: #c3cede;
}

/* ----------------------------- internal pages ----------------------------- */

.page-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.page-head-copy {
  min-width: 0;
}

.page-eyebrow {
  color: #6d86a8;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
}

.page-head h1 {
  margin: 5px 0 4px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11.8px;
  line-height: 1.55;
}

.page-head-actions {
  margin-left: auto;
  display: flex;
  gap: 7px;
  align-items: center;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  border-color: #c8d8ee;
  background: #f8fafe;
  color: var(--ink);
}

.btn .ic {
  width: 15px;
  height: 15px;
}

.btn-primary {
  border-color: #2563eb;
  background: linear-gradient(180deg, #2f74f2 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  border-color: #1d4ed8;
  background: linear-gradient(180deg, #2b6ce8 0%, #1d4ed8 100%);
  color: #fff;
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
}

.btn-ghost:hover {
  background: #f2f6fb;
  border-color: transparent;
}

.btn-sm {
  height: 28px;
  padding: 0 9px;
  font-size: 10.5px;
  border-radius: 7px;
}

.btn-sm .ic {
  width: 13px;
  height: 13px;
}

/* apps page */
.apps-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 11px;
  margin-bottom: 18px;
}

.summary-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.summary-chip:hover {
  border-color: #c7d9f3;
}

.summary-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--tint, #2563eb);
  background: var(--tint-soft, #eaf2ff);
  flex: none;
}

.summary-icon .ic {
  width: 17px;
  height: 17px;
}

.summary-chip > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.summary-title {
  display: block;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

.summary-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.apps-grid .tile {
  min-height: 84px;
  padding: 14px;
}

.apps-grid .tile-title {
  font-size: 13.2px;
}

.apps-grid {
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
}

.apps-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 19px;
  border-radius: 13px;
  background:
    radial-gradient(80% 130% at 100% 0%, rgba(59, 130, 246, 0.13) 0%, rgba(59, 130, 246, 0) 55%),
    linear-gradient(110deg, #f7faff 0%, #eef5ff 100%);
  border: 1px solid #dfeafb;
  margin-bottom: 18px;
}

.apps-hero-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #2563eb;
  background: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.10);
  flex: none;
}

.apps-hero-icon .ic {
  width: 24px;
  height: 24px;
}

.apps-hero b {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
}

.apps-hero > div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.8px;
  line-height: 1.5;
}

.apps-hero .btn {
  margin-left: auto;
  flex: none;
}

/* status page */

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--tint, #2563eb);
  opacity: 0.8;
}

.service-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--tint, #2563eb);
  background: var(--tint-soft, #eaf2ff);
  flex: none;
}

.service-card-icon .ic {
  width: 19px;
  height: 19px;
}

.service-card-title {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
}

.service-card-sub {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
}

.service-card-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 20px;
  background: #f2f6fb;
  color: #6b7d95;
  font-size: 10px;
  font-weight: 500;
}

.service-card-status.is-up {
  background: #e9f9f1;
  color: #059669;
}

.service-card-status.is-down {
  background: #fff0ee;
  color: #b42318;
}

.service-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 13px;
}

.meta-box {
  padding: 9px 10px;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  background: #fafcff;
}

.meta-label {
  color: #9aa9bc;
  font-size: 9px;
  letter-spacing: 0.3px;
}

.meta-value {
  margin-top: 3px;
  color: var(--ink-2);
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.meta-value.is-mono {
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 10.3px;
  font-weight: 500;
}

.service-card-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.service-card-foot .endpoint {
  flex: 1;
  min-width: 0;
  color: #94a3b8;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 9.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.status-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.info-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
}

.info-card h3 .ic {
  width: 15px;
  height: 15px;
  color: #7d90a8;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10.8px;
  line-height: 1.7;
}

.code-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #e8eef7;
  border-radius: 7px;
  background: #f8fafd;
  color: #475569;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 10px;
  overflow: hidden;
}

.code-line span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.port-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}

.port-table th {
  text-align: left;
  padding: 6px 8px;
  color: #9aa9bc;
  font-weight: 500;
  border-bottom: 1px solid #edf1f7;
}

.port-table td {
  padding: 7px 8px;
  color: var(--ink-2);
  border-bottom: 1px dashed #f0f3f8;
}

.port-table tr:last-child td {
  border-bottom: 0;
}

.port-table .mono {
  font-family: "Cascadia Mono", "Consolas", monospace;
  color: #64748b;
  font-size: 9.8px;
}

/* guide page */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.guide-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 11px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.guide-card h3 .ic {
  width: 16px;
  height: 16px;
  color: #6d86a8;
}

.guide-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.guide-card ol li {
  position: relative;
  padding: 0 0 10px 27px;
  color: var(--muted);
  font-size: 10.8px;
  line-height: 1.65;
  counter-increment: step;
}

.guide-card ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #edf4ff;
  color: #2563eb;
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 700;
}

.guide-card ol li:last-child {
  padding-bottom: 0;
}

.guide-card b {
  color: var(--ink-2);
  font-weight: 600;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.guide-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 10.7px;
  line-height: 1.65;
}

.guide-row .dot {
  width: 5px;
  height: 5px;
  margin-top: 6px;
  border-radius: 50%;
  background: #8fb3e8;
  flex: none;
}

.guide-row b {
  color: var(--ink-2);
  font-weight: 600;
}

.shortcut-list {
  display: grid;
  gap: 7px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10.6px;
}

.shortcut-row .keys {
  display: flex;
  gap: 3px;
  flex: none;
}

.callout {
  margin-top: 11px;
  padding: 10px 11px;
  border: 1px solid #dfeafb;
  border-radius: 8px;
  background: #f7faff;
  color: #57708f;
  font-size: 10.2px;
  line-height: 1.65;
}

.callout.is-warn {
  border-color: #f5e2b8;
  background: #fffaf0;
  color: #92610a;
}

.callout b {
  font-weight: 650;
}

/* ----------------------------- module view ----------------------------- */

.module-view {
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.module-view.is-active {
  display: flex;
}

.module-toolbar {
  flex: none;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px;
}

.module-title-icon {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--tint, #2563eb);
  background: var(--tint-soft, #eaf2ff);
  flex: none;
}

.module-title-icon .ic {
  width: 17px;
  height: 17px;
}

.module-headings {
  min-width: 0;
}

.module-name {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
}

.module-name .tag {
  padding: 1px 6px;
  border-radius: 4px;
  background: #eef3fa;
  color: #7b8da3;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.module-desc {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.module-toolbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.module-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 9px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
}

.module-state.is-up {
  color: #0f9f76;
  border-color: #cfeee1;
  background: #f6fdfa;
}

.module-state.is-down {
  color: #b42318;
  border-color: #f5d0cc;
  background: #fff8f7;
}

.frame-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.frame-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.frame-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: #f9fbfe;
  transition: opacity 0.2s ease;
}

.frame-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #e1eafa;
  border-top-color: #2563eb;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.frame-offline {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(59, 130, 246, 0.06) 0%, rgba(59, 130, 246, 0) 60%),
    #f9fbfe;
}

.offline-card {
  max-width: 430px;
  text-align: center;
}

.offline-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 13px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff5e6;
  color: #d97706;
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.10);
}

.offline-icon .ic {
  width: 26px;
  height: 26px;
}

.offline-card h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 650;
}

.offline-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11.2px;
  line-height: 1.7;
}

.offline-card code {
  display: inline-block;
  margin-top: 9px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #eef3f9;
  color: #64748b;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 10px;
}

.offline-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

/* ----------------------------- modal ----------------------------- */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 19, 38, 0.46);
  backdrop-filter: blur(4px);
  animation: fade-in 0.16s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: min(600px, 100%);
  max-height: min(84vh, 760px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #edf1f7;
}

.modal-head img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.modal-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.modal-sub {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.4px;
}

.modal-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #8092a8;
}

.modal-close:hover {
  background: #f2f6fb;
  color: var(--ink);
}

.modal-body {
  padding: 18px 20px 20px;
  overflow-y: auto;
}

.modal-body p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}

.modal-body h4 {
  margin: 15px 0 7px;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 650;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-chips span {
  padding: 4px 8px;
  border-radius: 6px;
  background: #f2f7fd;
  color: #5f7693;
  font-size: 10px;
}

.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.about-meta div {
  padding: 9px 10px;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  background: #fafcff;
}

.about-meta dt {
  color: #9aa9bc;
  font-size: 9px;
}

.about-meta dd {
  margin: 3px 0 0;
  color: var(--ink-2);
  font-size: 10.8px;
  font-weight: 500;
}

.modal-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid #edf1f7;
  background: #fafcff;
}

.modal-foot .spacer {
  flex: 1;
}

.modal-foot .note {
  color: #9aa9bc;
  font-size: 9.5px;
}

/* ----------------------------- search results ----------------------------- */

.search-pop {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 120;
  max-height: 440px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #e3eaf4;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(11, 31, 58, 0.17);
  animation: pop-in 0.14s ease;
}

.search-empty {
  padding: 22px 12px;
  text-align: center;
  color: var(--muted-2);
  font-size: 11px;
}

.search-group-label {
  padding: 7px 9px 4px;
  color: #93a2b6;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.search-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 8px;
  text-align: left;
}

.search-item:hover,
.search-item.is-active {
  background: #f1f6fe;
}

.search-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--tint, #2563eb);
  background: var(--tint-soft, #eaf2ff);
}

.search-item-icon .ic {
  width: 14px;
  height: 14px;
}

.search-item-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.search-item-title {
  display: block;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

.search-item-desc {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 9.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-item-path {
  margin-left: auto;
  color: #a6b4c6;
  font-size: 8.8px;
  white-space: nowrap;
}

/* ----------------------------- toast ----------------------------- */

.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 9px;
  background: rgba(10, 29, 55, 0.94);
  color: #edf5ff;
  font-size: 11.5px;
  box-shadow: 0 12px 30px rgba(5, 17, 35, 0.28);
  animation: toast-in 0.2s ease;
  backdrop-filter: blur(8px);
}

.toast .ic {
  width: 15px;
  height: 15px;
  color: #7dd3a8;
}

.toast.is-warn .ic {
  color: #fbbf24;
}

.toast.is-out {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------- skeleton & misc ----------------------------- */

.skeleton {
  display: inline-block;
  min-width: 52px;
  height: 1em;
  border-radius: 5px;
  background: linear-gradient(90deg, #eef2f8 25%, #f7f9fc 37%, #eef2f8 63%);
  background-size: 400% 100%;
  animation: shimmer 1.35s ease infinite;
  color: transparent !important;
  user-select: none;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: "Cascadia Mono", "Consolas", monospace;
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------- responsive ----------------------------- */

@media (max-width: 1400px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 292px;
  }

  .hero-actions {
    min-width: 420px;
  }

  .kpi-value {
    font-size: 23px;
  }
}

@media (max-width: 1220px) {
  .crumbs {
    display: none;
  }

  .shell-search {
    margin-left: 0;
    width: min(420px, 42vw);
  }

  .home-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    margin-top: 2px;
  }

  .rail .panel {
    height: 100%;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .hero-actions {
    width: 100%;
    min-width: 0;
  }

  .quick {
    min-height: 68px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .quick-sub {
    display: none;
  }
}

@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 45;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    width: var(--sidebar-w);
    box-shadow: 20px 0 50px rgba(5, 17, 35, 0.25);
  }

  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .app-shell.sidebar-collapsed .sidebar {
    width: var(--sidebar-w);
  }

  .app-shell.sidebar-collapsed .brand {
    padding: 0 17px;
    justify-content: flex-start;
  }

  .app-shell.sidebar-collapsed .brand-text,
  .app-shell.sidebar-collapsed .brand-edition,
  .app-shell.sidebar-collapsed .side-group-head,
  .app-shell.sidebar-collapsed .side-label,
  .app-shell.sidebar-collapsed .side-count,
  .app-shell.sidebar-collapsed .side-health-text,
  .app-shell.sidebar-collapsed .side-user-text,
  .app-shell.sidebar-collapsed .side-user-more,
  .app-shell.sidebar-collapsed .side-health .ic {
    display: initial;
  }

  .app-shell.sidebar-collapsed .brand-text {
    display: block;
  }

  .app-shell.sidebar-collapsed .side-group-head {
    display: flex;
  }

  .app-shell.sidebar-collapsed .side-items {
    padding: 2px 5px;
  }

  .app-shell.sidebar-collapsed .side-item {
    height: auto;
    min-height: 38px;
    justify-content: flex-start;
    padding: 0 10px 0 33px;
  }

  .side-item {
    min-height: 38px;
  }

  .side-label {
    font-size: 12px;
  }

  .app-shell.sidebar-collapsed .side-health,
  .app-shell.sidebar-collapsed .side-user {
    justify-content: flex-start;
    padding: 7px 8px;
  }

  .app-shell.sidebar-collapsed .side-group + .side-group {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .sidebar-toggle .ic {
    transform: none;
  }

  .shell-search {
    width: min(360px, 38vw);
  }

  .service-cards,
  .guide-grid,
  .status-lower {
    grid-template-columns: 1fr;
  }

  .apps-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shellbar {
    padding: 0 10px;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
    gap: 6px;
  }

  .shell-search {
    width: auto;
    flex: 1;
    min-width: 0;
  }

  .health-pill span:last-child {
    display: none;
  }

  .health-pill {
    width: 30px;
    padding: 0;
    justify-content: center;
  }

  .health-pill .status-dot {
    width: 8px;
    height: 8px;
  }

  .tabbar {
    padding: 0 8px;
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
  }

  .page-wrap {
    padding: 15px 14px 30px;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
  }

  .home-grid {
    margin-top: 15px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding: 19px 18px;
  }

  .hero h1 {
    font-size: 21px;
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick {
    min-height: 54px;
  }

  .rail {
    grid-template-columns: 1fr;
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .apps-summary {
    grid-template-columns: 1fr;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-head-actions {
    margin-left: 0;
  }

  .section-hint {
    display: none;
  }

  .module-view {
    padding: 0;
  }

  .module-toolbar {
    flex-wrap: wrap;
    gap: 7px;
  }

  .module-desc {
    max-width: 52vw;
  }

  .module-toolbar-actions .btn span {
    display: none;
  }

  .module-toolbar-actions .btn {
    width: 28px;
    padding: 0;
  }

  .service-meta {
    grid-template-columns: 1fr;
  }

  .about-meta {
    grid-template-columns: 1fr;
  }

  .user-pop {
    right: 10px;
  }

  .bell-pop {
    right: 10px;
    width: min(336px, calc(100vw - 20px));
  }
}

@media (max-width: 460px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .tabs .tab {
    max-width: 136px;
  }

  .tabbar-right {
    display: none;
  }

  .search-kbd {
    display: none;
  }

  .shell-search input {
    padding-right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
