:root {
  --bg: #ecf1ef;
  --surface: #ffffff;
  --surface-soft: #f4f7f6;
  --surface-muted: #eef3f2;
  --line: #d6dfdc;
  --line-strong: #bacac6;
  --text: #203038;
  --muted: #6a7775;
  --accent: #0f6a67;
  --accent-strong: #0a4b49;
  --accent-soft: #e3efee;
  --warning: #f1661d;
  --warning-soft: #fff2e9;
  --success: #1f8f47;
  --danger: #d6453d;
  --shadow: 0 20px 44px rgba(15, 53, 51, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(15, 106, 103, 0.12), transparent 24%),
    linear-gradient(180deg, #eef3f2 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

.hidden {
  display: none !important;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.auth-shell::before,
.auth-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.auth-shell::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 82%);
  opacity: 0.45;
  z-index: -2;
}

.auth-shell::after {
  width: 620px;
  height: 620px;
  border-radius: 50%;
  right: -180px;
  top: -180px;
  background: radial-gradient(circle, rgba(15, 106, 103, 0.18), rgba(15, 106, 103, 0.04) 42%, transparent 72%);
  z-index: -1;
}

.login-hero {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 1.3rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.login-brand,
.login-card,
.module-card,
.topbar,
.strip-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-brand {
  padding: 2.1rem;
  display: grid;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(4, 31, 39, 0.98), rgba(11, 82, 80, 0.96) 54%, rgba(15, 106, 103, 0.86)),
    var(--accent-strong);
  border-color: rgba(8, 43, 51, 0.3);
  box-shadow:
    0 28px 56px rgba(6, 25, 36, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-brand::before,
.login-brand::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.login-brand::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.32;
}

.login-brand::after {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
  right: -80px;
  bottom: -120px;
}

.login-brand-head,
.login-highlight {
  position: relative;
  z-index: 1;
}

.login-brand-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
}

.login-brand-visual {
  min-width: 180px;
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08));
  box-shadow: 0 18px 34px rgba(5, 22, 32, 0.24);
  backdrop-filter: blur(12px);
}

.login-brand-copywrap {
  display: grid;
  gap: 0.3rem;
}

.brand-mark {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  clip-path: polygon(25% 6%, 75% 6%, 94% 50%, 75% 94%, 25% 94%, 6% 50%);
  position: relative;
  background: linear-gradient(145deg, #fbfdfd, #dce7e4);
  border: 1px solid rgba(15, 106, 103, 0.14);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.76),
    0 18px 34px rgba(15, 53, 51, 0.14);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  clip-path: inherit;
  inset: 11px;
  border: 2px solid rgba(15, 106, 103, 0.12);
  transform: rotate(7deg);
}

.brand-mark::after {
  inset: 18px;
  transform: rotate(-7deg);
}

.brand-mark.small {
  width: 52px;
  height: 52px;
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.74),
    0 10px 18px rgba(15, 53, 51, 0.16);
}

.logo-n,
.logo-o {
  position: absolute;
  line-height: 1;
  font-weight: 700;
  z-index: 2;
}

.logo-n {
  left: 17px;
  top: 18px;
  color: var(--warning);
  font-size: 2.3rem;
}

.logo-o {
  right: 14px;
  top: 12px;
  color: var(--accent);
  font-size: 2.9rem;
}

.brand-mark.small .logo-n {
  left: 10px;
  top: 12px;
  font-size: 1.45rem;
}

.brand-mark.small .logo-o {
  right: 9px;
  top: 7px;
  font-size: 1.82rem;
}

.brand-slot {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-slot-small {
  width: 56px;
  min-width: 56px;
  min-height: 56px;
}

.brand-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-image-logo {
  max-width: 180px;
  max-height: 64px;
}

.brand-image-icon {
  width: 56px;
  height: 56px;
}

.brand-kicker,
.module-kicker,
label span,
.mini-label,
.status-caption,
.topbar-brand span,
.user-meta span {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.login-brand .brand-kicker,
.login-brand .brand-copy,
.login-brand .login-highlight > span,
.login-brand .login-highlight p {
  color: rgba(235, 244, 243, 0.8);
}

.login-brand h1 {
  margin: 0.1rem 0 0.2rem;
  color: #fff;
  font-size: clamp(2.2rem, 4.3vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.login-brand .brand-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.brand-copy {
  max-width: 30rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
  font-size: 0.98rem;
  line-height: 1.5;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.2rem;
  position: relative;
  z-index: 1;
}

.hero-pill {
  padding: 0.48rem 0.86rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: #f9fdfc;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-highlight {
  padding: 1.3rem 1.25rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  box-shadow: 0 18px 34px rgba(5, 20, 30, 0.18);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 0.55rem;
  max-width: 520px;
}

.login-highlight > span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.login-highlight strong {
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.08;
}

.login-highlight p {
  margin: 0;
  line-height: 1.52;
  max-width: 32ch;
}

.login-highlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.login-highlight .login-highlight-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.74);
  color: var(--accent-strong);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.strip-card {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border-color: rgba(15, 106, 103, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 249, 0.95));
  position: relative;
  overflow: hidden;
}

.strip-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--warning));
}

.strip-card span,
.page-path {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.strip-card strong {
  display: block;
  margin-top: 0.24rem;
  font-size: 1.04rem;
}

.strip-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.login-card {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 249, 0.98));
  box-shadow:
    0 26px 52px rgba(12, 40, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.login-card::before,
.login-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.login-card::before {
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--warning));
}

.login-card::after {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -100px;
  top: -80px;
  background: radial-gradient(circle, rgba(15, 106, 103, 0.08), transparent 68%);
}

.login-card-topline {
  position: relative;
  z-index: 1;
}

.login-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-start;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 106, 103, 0.12);
  background: rgba(15, 106, 103, 0.08);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-head h2,
.module-head h3,
.page-head h2,
.chart-head h4 {
  margin: 0;
}

.login-head {
  position: relative;
  z-index: 1;
}

.login-head h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.05;
}

.login-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.login-message {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.login-caption {
  margin: 0.05rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.login-card label,
.login-card .primary-btn {
  position: relative;
  z-index: 1;
}

.login-card input {
  border-radius: 14px;
  padding: 0.92rem 0.96rem;
  background: linear-gradient(180deg, #ffffff, #f7fbfa);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.login-card .primary-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border-color: var(--accent-strong);
  box-shadow: 0 16px 28px rgba(15, 106, 103, 0.18);
}

.app-shell {
  min-height: 100vh;
}

.dashboard-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.35rem 1.35rem 1.8rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.92rem 1.3rem;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  background:
    linear-gradient(90deg, rgba(10, 75, 73, 0.98), rgba(15, 106, 103, 0.96)),
    var(--accent-strong);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #fff;
}

.topbar-left,
.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.topbar-user {
  justify-content: flex-end;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.topbar-menu {
  position: relative;
}

.topbar-icon-btn {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.topbar-icon-btn:hover,
.topbar-icon-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 26px rgba(6, 24, 33, 0.2);
}

.topbar-icon-btn svg,
.topbar-dropdown-icon svg {
  width: 18px;
  height: 18px;
}

.topbar-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  min-width: 255px;
  padding: 0.45rem;
  display: grid;
  gap: 0.25rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 249, 0.98));
  box-shadow: 0 24px 46px rgba(8, 30, 39, 0.18);
  z-index: 80;
}

.topbar-dropdown-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 0.82rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.topbar-dropdown-item:hover {
  background: linear-gradient(90deg, rgba(15, 106, 103, 0.1), rgba(241, 102, 29, 0.06));
  transform: translateX(1px);
}

.topbar-dropdown-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(15, 106, 103, 0.08);
  color: var(--accent-strong);
}

.topbar-dropdown-copy {
  display: grid;
  gap: 0.18rem;
}

.topbar-dropdown-copy strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.15;
}

.topbar-dropdown-copy span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.topbar-dropdown-button {
  font: inherit;
}

.topbar-info-panel {
  min-width: 380px;
  width: min(420px, calc(100vw - 2rem));
  max-height: min(76vh, 680px);
  padding: 0.9rem;
  gap: 0.75rem;
  overflow-y: auto;
}

.topbar-info-head {
  display: grid;
  gap: 0.24rem;
  padding: 0.35rem 0.2rem 0.15rem;
}

.topbar-info-head strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.15;
}

.topbar-info-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.topbar-info-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.topbar-info-fact {
  display: grid;
  gap: 0.22rem;
  padding: 0.8rem 0.86rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7faf9);
}

.topbar-info-fact span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.topbar-info-fact strong {
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.25;
}

.topbar-info-section {
  display: grid;
  gap: 0.55rem;
  padding: 0.25rem 0.2rem 0;
  border-top: 1px solid rgba(15, 106, 103, 0.1);
}

.topbar-info-section h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.2;
}

.topbar-info-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.ghost-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-brand {
  display: grid;
}

.topbar-brand strong,
.topbar-brand span,
.user-meta strong,
.user-meta span {
  color: #f6fbfa;
}

.main-nav {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  padding: 0.6rem 0.82rem;
  border-radius: 8px;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.main-nav a.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.user-meta {
  display: grid;
  text-align: right;
}

.workspace {
  min-width: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.trust-bar {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(241, 102, 29, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 248, 0.96));
  box-shadow: var(--shadow);
}

.trust-bar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.trust-bar-head strong {
  display: block;
  margin-top: 0.18rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.15;
}

.trust-bar-head p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: right;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.trust-card {
  display: grid;
  gap: 0.32rem;
  padding: 0.9rem 0.92rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 106, 103, 0.12);
  background: linear-gradient(180deg, #ffffff, #f7faf9);
}

.trust-card span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-card strong {
  color: var(--text);
  font-size: 1.14rem;
  line-height: 1.1;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.trust-card.is-warn {
  background: linear-gradient(180deg, #fffaf5, #ffffff);
  border-color: rgba(241, 102, 29, 0.16);
}

.trust-card.is-accent {
  background: linear-gradient(180deg, rgba(15, 106, 103, 0.08), rgba(255, 255, 255, 0.98));
}

.notice-banner,
.workspace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 249, 0.95));
  box-shadow: var(--shadow);
}

.notice-banner strong {
  flex: 0 0 auto;
}

.notice-banner span {
  flex: 1;
  min-width: 0;
  color: inherit;
  line-height: 1.45;
}

.notice-banner.is-success {
  border-color: rgba(31, 143, 71, 0.22);
  background: linear-gradient(180deg, rgba(232, 247, 235, 0.96), rgba(255, 255, 255, 0.98));
  color: var(--success);
}

.notice-banner.is-error {
  border-color: rgba(214, 69, 61, 0.2);
  background: linear-gradient(180deg, rgba(255, 240, 239, 0.98), rgba(255, 255, 255, 0.98));
  color: var(--danger);
}

.notice-banner.is-info {
  border-color: rgba(15, 106, 103, 0.16);
  color: var(--accent-strong);
}

.workspace-footer {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.workspace-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 1rem;
}

.side-panel,
.side-mini-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 249, 0.95));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.side-panel {
  padding: 1rem;
}

.side-brand-panel {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.side-brand-panel .brand-mark {
  width: 72px;
  height: 72px;
}

.side-brand-panel h3,
.side-highlight h3 {
  margin: 0.15rem 0 0.45rem;
}

.side-brand-panel p,
.side-highlight p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.side-nav {
  padding: 0.5rem;
  display: grid;
  gap: 0.28rem;
}

.side-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 0.78rem 0.9rem;
  border-radius: 12px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.side-nav a:hover {
  background: linear-gradient(90deg, rgba(15, 106, 103, 0.12), rgba(241, 102, 29, 0.08));
  color: var(--accent-strong);
  transform: translateX(2px);
}

.side-nav a.is-active {
  background: linear-gradient(90deg, rgba(15, 106, 103, 0.16), rgba(241, 102, 29, 0.1));
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(15, 106, 103, 0.08);
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 106, 103, 0.12);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.side-highlight {
  background:
    linear-gradient(180deg, rgba(15, 106, 103, 0.94), rgba(10, 75, 73, 0.98)),
    var(--accent-strong);
  color: #fff;
  border-color: rgba(15, 106, 103, 0.18);
}

.side-highlight .panel-tag {
  background: rgba(255, 255, 255, 0.14);
  color: #eefaf8;
}

.side-highlight p,
.side-highlight h3 {
  color: #f6fbfa;
}

.side-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.side-mini-card {
  padding: 0.9rem;
}

.side-mini-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.side-mini-card strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--text);
  line-height: 1.25;
}

.page-head,
.overview-row,
.dual-row,
.control-strip {
  display: grid;
  gap: 1rem;
}

.page-head {
  grid-template-columns: 1fr auto;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(247,250,249,0.94));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem;
}

.page-head.page-head-report {
  grid-template-columns: 1fr;
}

.page-head-copy {
  display: grid;
  gap: 0.35rem;
}

.page-head-actions {
  margin-top: 0.45rem;
}

.page-path {
  margin-bottom: 0.1rem;
}

.control-strip {
  grid-template-columns: repeat(3, 1fr);
}

.overview-row,
.dual-row {
  grid-template-columns: 1fr 1fr;
}

.module-grid {
  display: grid;
  gap: 1rem;
}

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

.status-stack {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}

.status-dock {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  display: grid;
  justify-items: end;
  gap: 0.75rem;
}

.status-dock-toggle {
  width: auto;
  min-width: 188px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(15, 106, 103, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 106, 103, 0.94), rgba(10, 75, 73, 0.98));
  box-shadow: 0 18px 36px rgba(15, 53, 51, 0.18);
  color: #fff;
  cursor: pointer;
}

.status-dock-toggle strong,
.status-dock-toggle span {
  color: inherit;
}

.status-dock-toggle.is-ok {
  background: linear-gradient(135deg, rgba(31, 143, 71, 0.96), rgba(22, 109, 52, 0.98));
  border-color: rgba(31, 143, 71, 0.26);
}

.status-dock-toggle.is-warn {
  background: linear-gradient(135deg, rgba(241, 102, 29, 0.96), rgba(191, 76, 13, 0.98));
  border-color: rgba(241, 102, 29, 0.24);
}

.status-dock-toggle.is-error {
  background: linear-gradient(135deg, rgba(214, 69, 61, 0.96), rgba(162, 45, 38, 0.98));
  border-color: rgba(214, 69, 61, 0.24);
}

.status-dock-toggle-copy {
  display: grid;
  gap: 0.1rem;
  text-align: left;
}

.status-dock-toggle-copy strong {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.84;
}

.status-dock-toggle-copy span {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.status-dock-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.16);
}

.status-dock-panel {
  width: min(360px, calc(100vw - 2rem));
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 249, 0.96));
  box-shadow: 0 24px 48px rgba(15, 53, 51, 0.16);
}

.status-dock-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.status-dock-hint {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.module-card {
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(241, 102, 29, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 249, 0.96));
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 106, 103, 0.16), rgba(241, 102, 29, 0.16));
  pointer-events: none;
}

.dashboard-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-module {
  background:
    linear-gradient(135deg, rgba(15, 106, 103, 0.1), rgba(241, 102, 29, 0.08)),
    var(--surface);
}

.module-head {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.module-copy {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.primary-link,
.inline-link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.primary-link:hover,
.inline-link:hover {
  color: var(--accent);
}

.module-head.split {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.panel-actions,
.profile-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.client-toolbar {
  display: flex;
  align-items: end;
  gap: 0.75rem;
}

.client-picker {
  min-width: 220px;
}

.managed-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(15, 106, 103, 0.14);
  background: linear-gradient(135deg, rgba(15, 106, 103, 0.1), rgba(255, 255, 255, 0.7));
  border-radius: 10px;
}

.managed-banner p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.external-grid.is-managed {
  display: none;
}

.subnav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.subnav-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.subnav-pill.is-active {
  color: var(--accent-strong);
  border-color: rgba(15, 106, 103, 0.22);
  background: linear-gradient(135deg, rgba(15, 106, 103, 0.14), rgba(241, 102, 29, 0.1));
}

.preset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.preset-chip {
  border: 1px solid rgba(15, 106, 103, 0.12);
  background: linear-gradient(180deg, #ffffff, #f7faf9);
  color: var(--accent-strong);
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
}

.preset-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 53, 51, 0.08);
}

.admin-shell {
  align-items: start;
}

.branding-preview-card {
  display: grid;
  gap: 1rem;
}

.branding-preview-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.branding-preview-swatches,
.preview-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.branding-preview-swatches span,
.preview-swatches span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 42px;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 106, 103, 0.1);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

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

.upload-card {
  padding: 1rem;
  border: 1px dashed rgba(15, 106, 103, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 246, 0.92));
}

.upload-card input[type="file"] {
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.92);
}

.upload-preview {
  width: 100%;
  max-height: 110px;
  margin-top: 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #fff;
}

.upload-preview-icon {
  width: 110px;
}

.preview-shell {
  --preview-primary: var(--accent);
  --preview-accent: var(--warning);
  --preview-surface: var(--bg);
  display: grid;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 106, 103, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 249, 0.94));
  box-shadow: var(--shadow);
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(90deg, var(--preview-primary), var(--accent-strong));
  color: #fff;
}

.preview-brand-group {
  display: grid;
  gap: 0.2rem;
}

.preview-brand-group span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
}

.preview-brand-mark {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.preview-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.preview-sidebar {
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, var(--preview-surface), #ffffff);
  border-bottom: 1px solid rgba(15, 106, 103, 0.08);
}

.preview-sidebar strong {
  display: block;
  margin-top: 0.35rem;
}

.preview-sidebar p,
.preview-content p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.preview-content {
  padding: 1.2rem;
  background: linear-gradient(180deg, #ffffff, var(--preview-surface));
}

.preview-content h4 {
  margin: 0;
}

.connection-grid,
.filters-grid,
.chart-grid,
.radar-grid {
  display: grid;
  gap: 1rem;
}

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

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

.filters-grid .wide {
  grid-column: span 3;
}

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

.chart-grid-analytics {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.chart-span-12 {
  grid-column: 1 / -1;
}

.chart-span-7 {
  grid-column: span 7;
}

.chart-span-6 {
  grid-column: span 6;
}

.chart-span-5 {
  grid-column: span 5;
}

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

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

.formula-panel {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, var(--surface-soft));
  padding: 1rem;
}

.formula-head {
  margin-bottom: 0.8rem;
}

.formula-head h4 {
  margin: 0.2rem 0 0;
}

.formula-grid {
  display: grid;
  gap: 0.7rem;
}

.formula-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.formula-row span {
  color: var(--text);
  font-size: 0.92rem;
}

.formula-values {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.formula-values em {
  color: var(--muted);
  font-style: normal;
}

.formula-row.total {
  background: linear-gradient(90deg, rgba(15, 106, 103, 0.1), rgba(241, 102, 29, 0.08));
}

.profile-row {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: end;
}

.wide-block {
  flex: 1;
}

.settings-form {
  display: grid;
  gap: 1rem;
}

.settings-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.settings-grid .span-2 {
  grid-column: 1 / -1;
}

.settings-grid .checkbox-row {
  margin-top: 0;
}

.report-source-grid {
  display: grid;
  gap: 0.85rem;
}

.report-source-caption {
  margin-top: 0.55rem;
}

.preset-command {
  margin-bottom: 1.1rem;
}

.report-command-grid {
  margin-bottom: 1rem;
}

.report-command-card {
  border-color: rgba(15, 106, 103, 0.12);
  box-shadow: 0 22px 38px rgba(10, 34, 42, 0.06);
}

.report-command-card .module-head {
  margin-bottom: 0.9rem;
}

.report-head-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.report-head-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.54rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 106, 103, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.preset-command-row {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.78rem 0.88rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 106, 103, 0.14);
  border-color: #7bb8b7;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.checkbox-row input {
  width: auto;
}

.primary-btn,
.ghost-btn,
.table-btn {
  border-radius: 8px;
  padding: 0.7rem 0.96rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.ghost-btn {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.ghost-btn.danger {
  color: var(--danger);
}

.source-switch {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
}

.radio-pill span {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 0.92rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-soft);
}

.radio-pill input:checked + span {
  color: var(--accent-strong);
  border-color: rgba(15, 106, 103, 0.22);
  background: rgba(15, 106, 103, 0.11);
}

.csv-uploader {
  display: none;
}

.csv-uploader.active {
  display: block;
  margin-top: 1rem;
}

.dashboard-command {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: 1rem;
  margin: 0.15rem 0 1rem;
}

.dashboard-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 1rem;
  margin: 0.15rem 0 1rem;
}

.dashboard-focus-card {
  border-radius: 24px;
  border: 1px solid rgba(15, 106, 103, 0.12);
  box-shadow: 0 22px 40px rgba(10, 34, 42, 0.06);
}

.dashboard-focus-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding-left: 1.1rem;
}

.dashboard-focus-list li {
  line-height: 1.6;
}

.dashboard-baseline-card {
  background:
    radial-gradient(circle at top right, rgba(15, 106, 103, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 248, 247, 0.98));
}

.dashboard-baseline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.dashboard-baseline-metric {
  display: grid;
  gap: 0.26rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 106, 103, 0.1);
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.dashboard-baseline-metric span {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-baseline-metric strong {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.1;
}

.dashboard-baseline-metric p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.dashboard-command-hero,
.dashboard-command-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 106, 103, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.dashboard-command-hero {
  padding: 1.35rem 1.4rem 1.4rem;
  background:
    radial-gradient(circle at top right, rgba(241, 102, 29, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(140deg, #081821 0%, #0b393f 45%, #0f6a67 100%);
  color: #fff;
}

.dashboard-command-hero::before,
.dashboard-command-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.dashboard-command-hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.28;
}

.dashboard-command-hero::after {
  width: 320px;
  height: 320px;
  right: -140px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
}

.dashboard-command-head,
.dashboard-command-pills,
.dashboard-command-metrics,
.dashboard-command-actions {
  position: relative;
  z-index: 1;
}

.dashboard-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-command-head h2 {
  margin: 0.28rem 0 0.5rem;
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.dashboard-command-head p {
  margin: 0;
  max-width: 62ch;
  color: rgba(243, 250, 249, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

.dashboard-command-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dashboard-command-mode.is-viewer {
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-command-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 1rem;
}

.dashboard-command-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(247, 251, 250, 0.92);
  font-size: 0.8rem;
  font-weight: 700;
}

.dashboard-command-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.dashboard-command-metric {
  display: grid;
  gap: 0.36rem;
  padding: 0.92rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.dashboard-command-metric span {
  color: rgba(243, 250, 249, 0.72);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-command-metric strong {
  color: #fff;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1;
}

.dashboard-command-metric .delta-pill {
  justify-self: start;
  margin-top: 0.18rem;
}

.dashboard-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.dashboard-command-hero .primary-btn,
.dashboard-command-hero .ghost-btn {
  text-decoration: none;
}

.dashboard-command-hero .primary-btn {
  background: #fff;
  color: var(--accent-strong);
  border-color: rgba(255, 255, 255, 0.2);
}

.dashboard-command-hero .ghost-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-command-side {
  display: grid;
  gap: 1rem;
}

.dashboard-command-panel {
  padding: 1rem 1.05rem;
  background:
    radial-gradient(circle at top right, rgba(15, 106, 103, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 248, 0.97));
}

.module-head.compact {
  margin-bottom: 0.82rem;
}

.dashboard-command-alerts,
.dashboard-command-governance {
  display: grid;
  gap: 0.72rem;
}

.dashboard-command-alert,
.dashboard-command-governance-card {
  display: grid;
  gap: 0.26rem;
  padding: 0.86rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 106, 103, 0.1);
  background: linear-gradient(180deg, #ffffff, #f7faf9);
}

.dashboard-command-alert strong,
.dashboard-command-governance-card strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.15;
}

.dashboard-command-alert p,
.dashboard-command-governance-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.dashboard-command-governance-card span {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-command-alert.is-warn {
  border-color: rgba(241, 102, 29, 0.16);
  background: linear-gradient(180deg, rgba(255, 246, 239, 0.98), #ffffff);
}

.dashboard-command-alert.is-ok {
  border-color: rgba(31, 143, 71, 0.16);
  background: linear-gradient(180deg, rgba(235, 248, 239, 0.98), #ffffff);
}

.executive-board {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  margin: 1rem 0;
}

.pdf-export-panel {
  margin-top: 0.2rem;
}

.pdf-export-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.pdf-scope-card {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 106, 103, 0.1);
  background:
    radial-gradient(circle at top right, rgba(241, 102, 29, 0.09), transparent 25%),
    linear-gradient(180deg, #ffffff, #f7faf9);
  box-shadow: 0 18px 28px rgba(10, 34, 42, 0.05);
}

.pdf-scope-card strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.2;
}

.pdf-scope-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.pdf-scope-card label {
  display: grid;
  gap: 0.42rem;
}

.pdf-scope-card label span {
  display: block;
}

.pdf-scope-card select {
  width: 100%;
}

.pdf-scope-card button {
  margin-top: 0.35rem;
  align-self: start;
}

.executive-hero {
  background:
    radial-gradient(circle at top right, rgba(241, 102, 29, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(15, 106, 103, 0.12), rgba(255, 255, 255, 0.94));
}

.executive-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.executive-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 106, 103, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 600;
}

.executive-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.executive-kpi {
  padding: 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 106, 103, 0.12);
  background: linear-gradient(180deg, #ffffff, #f6faf9);
  box-shadow: var(--shadow);
}

.executive-kpi span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.executive-kpi strong {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.executive-kpi.good strong {
  color: var(--success);
}

.executive-kpi.warn strong {
  color: var(--warning);
}

.executive-kpi.accent {
  background: linear-gradient(135deg, rgba(15, 106, 103, 0.14), rgba(241, 102, 29, 0.12));
}

.executive-kpi.accent strong {
  color: var(--accent);
}

.comparison-stack,
.trend-stack {
  display: grid;
  gap: 0.75rem;
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.comparison-copy {
  display: grid;
  gap: 0.2rem;
}

.comparison-copy strong {
  color: var(--text);
}

.comparison-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.comparison-values {
  display: grid;
  gap: 0.14rem;
  justify-items: end;
  text-align: right;
}

.comparison-current {
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 700;
}

.comparison-previous {
  color: var(--muted);
  font-size: 0.78rem;
}

.health-grid,
.governance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.health-card,
.governance-card {
  display: grid;
  gap: 0.28rem;
  padding: 0.95rem 0.98rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 106, 103, 0.1);
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.health-card span,
.governance-card span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.health-card strong,
.governance-card strong {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.12;
}

.health-card p,
.governance-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.health-card.is-warn {
  background: linear-gradient(180deg, #fff8f2, #ffffff);
  border-color: rgba(241, 102, 29, 0.18);
}

.health-card.is-ok {
  background: linear-gradient(180deg, rgba(31, 143, 71, 0.08), #ffffff);
  border-color: rgba(31, 143, 71, 0.16);
}

.health-card.is-accent {
  background: linear-gradient(180deg, rgba(15, 106, 103, 0.1), #ffffff);
}

.trend-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.trend-copy {
  display: grid;
  gap: 0.16rem;
}

.trend-copy strong {
  color: var(--text);
}

.trend-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.trend-bar-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 106, 103, 0.08);
}

.trend-bar-fill {
  height: 100%;
  min-width: 10px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 56%, #ffffff));
}

.trend-metric {
  display: grid;
  gap: 0.12rem;
  justify-items: end;
  text-align: right;
}

.trend-metric strong {
  color: var(--text);
  font-size: 1rem;
}

.trend-metric span {
  color: var(--muted);
  font-size: 0.76rem;
}

.dashboard-highlights {
  margin-top: 0.95rem;
}

.delta-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 0.8rem;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  background: rgba(72, 90, 102, 0.08);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.delta-pill.is-up {
  background: rgba(31, 143, 71, 0.12);
  color: var(--success);
}

.delta-pill.is-down {
  background: rgba(214, 69, 61, 0.1);
  color: var(--danger);
}

.cards-panel {
  margin-bottom: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.report-switcher {
  margin-top: 1rem;
  position: sticky;
  top: 1rem;
  z-index: 4;
  backdrop-filter: blur(8px);
}

.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.55rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 106, 103, 0.1);
}

.report-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.report-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 53, 51, 0.08);
  border-color: rgba(15, 106, 103, 0.24);
}

.report-tab.is-active {
  background: linear-gradient(135deg, rgba(15, 106, 103, 0.15), rgba(241, 102, 29, 0.12));
  border-color: rgba(15, 106, 103, 0.24);
  color: var(--accent-strong);
}

.report-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 106, 103, 0.12);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--warning));
}

.card::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  right: -16px;
  bottom: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 106, 103, 0.08), transparent 70%);
}

.card-label {
  color: var(--muted);
  font-size: 0.77rem;
  text-transform: uppercase;
}

.card-value {
  margin-top: 0.4rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.card.good .card-value {
  color: var(--success);
}

.card.warn .card-value {
  color: var(--warning);
}

.card.accent .card-value {
  color: var(--accent);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.88rem;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #c7dddb;
  font-weight: 600;
}

.status-pill.is-ok {
  color: var(--success);
  border-color: rgba(31, 143, 71, 0.2);
  background: #e8f7eb;
}

.status-pill.is-warn {
  color: var(--warning);
  border-color: #f5d1b2;
  background: var(--warning-soft);
}

.status-pill.is-error {
  color: var(--danger);
  border-color: #f3cbc8;
  background: #fff0ef;
}

.summary-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 0.84rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 106, 103, 0.12);
  color: var(--text);
}

.history-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.history-pill {
  min-width: 220px;
  display: grid;
  gap: 0.18rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 249, 0.95));
  color: var(--text);
  text-decoration: none;
}

.history-pill span {
  color: var(--muted);
  font-size: 0.82rem;
}

.alert-stack,
.activity-list {
  display: grid;
  gap: 0.9rem;
}

.alert-card {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 249, 0.96));
}

.alert-card strong,
.activity-item strong {
  display: block;
  margin-bottom: 0.3rem;
}

.alert-card p,
.activity-item p {
  margin: 0;
  color: var(--muted);
}

.alert-card.is-ok {
  border-color: rgba(31, 143, 71, 0.18);
  background: linear-gradient(180deg, rgba(232, 247, 235, 0.88), rgba(255, 255, 255, 0.96));
}

.alert-card.is-warn {
  border-color: rgba(241, 102, 29, 0.18);
  background: linear-gradient(180deg, rgba(255, 245, 236, 0.92), rgba(255, 255, 255, 0.96));
}

.alert-card.is-error {
  border-color: rgba(214, 69, 61, 0.18);
  background: linear-gradient(180deg, rgba(255, 240, 239, 0.92), rgba(255, 255, 255, 0.96));
}

.activity-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7faf9);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.action-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(15, 106, 103, 0.08), rgba(255, 255, 255, 0.98));
  color: var(--text);
  text-decoration: none;
}

.action-card span,
.table-stack span {
  color: var(--muted);
  font-size: 0.8rem;
}

.action-card strong,
.table-stack strong {
  line-height: 1.25;
}

.action-card p {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.action-card:hover,
.history-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 53, 51, 0.08);
}

.report-loading {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.skeleton {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(228, 234, 233, 0.82), rgba(245, 248, 247, 0.98), rgba(228, 234, 233, 0.82));
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.6s infinite;
}

.skeleton-title {
  width: 240px;
  height: 18px;
}

.skeleton-card {
  height: 92px;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.insights-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.insights-list.soft {
  padding-left: 1rem;
}

.chart-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-soft), #fbfcfc);
  border-radius: 18px;
  padding: 1rem;
  min-height: 330px;
  display: grid;
  align-content: start;
  gap: 1rem;
  box-shadow: 0 18px 30px rgba(10, 34, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.chart-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(15, 106, 103, 0.78), rgba(241, 102, 29, 0.86));
  opacity: 0.9;
}

.chart-box-hero {
  background:
    radial-gradient(circle at top right, rgba(241, 102, 29, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 247, 0.96));
}

.chart-head {
  display: grid;
  gap: 0.28rem;
}

.chart-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.chart-svg {
  min-height: 250px;
}

.chart-svg-flow {
  min-height: 340px;
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.analytics-summary-card {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 106, 103, 0.12);
  background: linear-gradient(180deg, #ffffff, #f7faf9);
  box-shadow: 0 16px 28px rgba(10, 34, 42, 0.05);
}

.analytics-summary-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--warning));
}

.analytics-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.analytics-summary-card strong {
  display: block;
  margin-top: 0.55rem;
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  line-height: 1.02;
  color: var(--text);
}

.analytics-summary-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.chart-ring-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 1rem;
  align-items: center;
}

.chart-ring-stage {
  position: relative;
  width: min(220px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}

.chart-ring-stage svg {
  width: 100%;
  height: 100%;
}

.chart-ring-track {
  stroke: rgba(15, 106, 103, 0.08);
}

.chart-ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}

.chart-ring-center strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1;
}

.chart-ring-center span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chart-legend {
  display: grid;
  gap: 0.7rem;
}

.chart-legend-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.68rem 0.78rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 106, 103, 0.1);
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.chart-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(15, 106, 103, 0.08);
}

.chart-legend-copy {
  display: grid;
  gap: 0.12rem;
}

.chart-legend-copy strong {
  color: var(--text);
  font-size: 0.9rem;
}

.chart-legend-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.chart-legend-value {
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.metric-bars {
  display: grid;
  gap: 0.82rem;
}

.metric-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(120px, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.metric-bar-copy {
  display: grid;
  gap: 0.14rem;
}

.metric-bar-copy strong {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.2;
}

.metric-bar-copy span {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.3;
}

.metric-bar-track {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 106, 103, 0.08), rgba(15, 106, 103, 0.03));
  overflow: hidden;
}

.metric-bar-fill {
  width: calc(var(--bar-size, 0) * 1%);
  height: 100%;
  min-width: 12px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bar-color, var(--accent)), color-mix(in srgb, var(--bar-color, var(--accent)) 62%, #ffffff));
}

.metric-bar-value {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.flow-chart-layout {
  display: grid;
  gap: 1rem;
}

.flow-chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.flow-chart-chip {
  padding: 0.88rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 106, 103, 0.1);
  background: linear-gradient(180deg, #ffffff, #f7faf9);
}

.flow-chart-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flow-chart-chip strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1.05;
}

.flow-chart-chip p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.flow-chart-stage {
  border-radius: 18px;
  border: 1px solid rgba(15, 106, 103, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 248, 0.96));
  padding: 0.9rem 1rem 0.75rem;
  overflow: hidden;
}

.flow-chart-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.flow-chart-stage-copy {
  display: grid;
  gap: 0.18rem;
}

.flow-chart-stage-copy strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.2;
}

.flow-chart-stage-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.flow-chart-stage svg {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 19 / 8;
}

.flow-grid-line {
  stroke: rgba(15, 106, 103, 0.08);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.flow-grid-line.is-base {
  stroke: rgba(15, 106, 103, 0.16);
}

.flow-grid-label,
.flow-axis-label,
.flow-end-tag-value {
  font-family: inherit;
}

.flow-grid-label {
  fill: rgba(100, 114, 111, 0.92);
  font-size: 11px;
  text-anchor: end;
}

.flow-axis-label {
  fill: rgba(112, 126, 123, 0.96);
  font-size: 11px;
  text-anchor: middle;
}

.flow-tick {
  stroke: rgba(15, 106, 103, 0.14);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.flow-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.flow-line-open {
  stroke: #0f6a67;
}

.flow-line-close {
  stroke: #f1661d;
}

.flow-dot {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.flow-dot-open {
  fill: #0f6a67;
}

.flow-dot-close {
  fill: #f1661d;
}

.flow-end-tag-value {
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}

.flow-axis {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.flow-axis span {
  white-space: nowrap;
}

.flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: flex-end;
}

.flow-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.flow-legend-line {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 106, 103, 0.18);
}

.flow-legend-line.is-open {
  background: linear-gradient(90deg, #0f6a67, #47908d);
}

.flow-legend-line.is-close {
  background: linear-gradient(90deg, #f1661d, #f2a04f);
}

.table-wrap,
.directory-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfcfc);
}

.table-shell {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 106, 103, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 249, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.table-shell th {
  top: 58px;
}

.table-toolbar {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 250, 0.92);
  backdrop-filter: blur(8px);
}

.table-toolbar-head {
  display: grid;
  gap: 0.14rem;
}

.table-toolbar-head strong {
  color: var(--text);
}

.table-count {
  color: var(--muted);
  font-size: 0.8rem;
}

.table-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.table-search {
  min-width: 220px;
  padding: 0.62rem 0.8rem;
}

.table-reset-btn,
.table-export-btn,
.table-density-btn,
.table-columns-btn {
  padding: 0.62rem 0.84rem;
}

.table-columns-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 220px;
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 32px rgba(15, 53, 51, 0.12);
}

.table-column-toggle {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
}

.table-column-toggle input {
  width: auto;
}

.column-hidden {
  display: none;
}

.table-empty-state {
  position: absolute;
  inset: 74px 1rem 1rem;
  display: grid;
  place-content: center;
  gap: 0.3rem;
  padding: 1.25rem;
  border: 1px dashed rgba(15, 106, 103, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.table-empty-state strong {
  color: var(--text);
}

.table-empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.directory-table-wrap {
  max-height: 420px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.table-row-total {
  font-weight: 700;
  background: rgba(15, 106, 103, 0.08);
}

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

.table-shell.is-compact th,
.table-shell.is-compact td {
  padding: 0.58rem 0.65rem;
}

.table-shell.is-compact td {
  font-size: 0.88rem;
}

th {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}

.sortable-head {
  cursor: pointer;
}

.sortable-head.is-sorted {
  color: var(--accent-strong);
}

.sortable-head.is-sorted::after {
  content: attr(data-sort-direction);
  margin-left: 0.45rem;
  color: var(--accent);
  font-size: 0.68rem;
}

tbody tr:hover {
  background: #f8fbfa;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.64rem;
  border-radius: 14px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge.ok {
  background: #e8f7eb;
  color: var(--success);
}

.badge.info {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge.warning {
  background: #fff2e3;
  color: #a35b18;
}

.badge.neutral {
  background: #f3f6fa;
  color: var(--muted);
}

.badge.no {
  background: #fff0ef;
  color: var(--danger);
}

.export-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.table-btn {
  border: none;
  padding: 0.42rem 0.72rem;
  color: #fff;
  font-size: 0.82rem;
}

.table-btn.info,
.primary-btn {
  background: var(--accent);
  color: #fff;
}

.table-btn.success {
  background: var(--success);
}

.table-btn.warning {
  background: var(--warning);
}

.table-btn.primary {
  background: #485a66;
}

.table-stack {
  display: grid;
  gap: 0.12rem;
}

.primary-btn:hover,
.ghost-btn:hover,
.table-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 53, 51, 0.08);
}

button:disabled,
.ghost-btn.is-busy,
.primary-btn.is-busy {
  opacity: 0.72;
  cursor: wait;
}

.radar-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, var(--surface-soft));
}

.radar-stat span {
  color: var(--muted);
  font-size: 0.82rem;
}

.radar-stat strong {
  font-size: 1.1rem;
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.security-stat {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7faf9);
}

.security-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.security-stat strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.18rem;
}

@media (max-width: 1100px) {
  .dashboard-grid,
  .login-hero,
  .executive-board,
  .overview-row,
  .dual-row,
  .chart-grid,
  .control-strip,
  .hero-panels {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: static;
  }

  .connection-grid,
  .filters-grid,
  .settings-grid,
  .uploads-grid,
  .module-grid-3,
  .report-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters-grid .wide {
    grid-column: span 2;
  }

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

  .trust-grid,
  .health-grid,
  .governance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .chart-span-12,
  .chart-span-7,
  .chart-span-6,
  .chart-span-5 {
    grid-column: auto;
  }

  .chart-box-hero {
    grid-column: 1 / -1;
  }

  .action-grid,
  .skeleton-grid,
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .comparison-row,
  .trend-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .comparison-values,
  .trend-metric {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 780px) {
  .dashboard-grid,
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .main-nav,
  .topbar-user {
    justify-content: flex-start;
  }

  .connection-grid,
  .filters-grid,
  .settings-grid,
  .uploads-grid,
  .module-grid-3,
  .report-source-grid,
  .radar-grid,
  .trust-grid,
  .executive-kpis,
  .health-grid,
  .governance-grid,
  .cards-grid,
  .side-mini-grid,
  .action-grid,
  .skeleton-grid,
  .security-grid,
  .analytics-summary,
  .chart-grid-analytics,
  .flow-chart-summary {
    grid-template-columns: 1fr;
  }

  .chart-ring-layout,
  .metric-bar-row {
    grid-template-columns: 1fr;
  }

  .metric-bar-value {
    justify-self: start;
  }

  .auth-shell {
    padding: 1rem;
  }

  .login-brand,
  .login-card {
    padding: 1.35rem;
  }

  .flow-chart-stage-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-legend {
    justify-content: flex-start;
  }

  .login-brand-head {
    grid-template-columns: 1fr;
  }

  .login-brand-visual {
    min-width: 0;
    width: 100%;
  }

  .login-card-topline {
    justify-content: flex-start;
  }

  .filters-grid .wide {
    grid-column: auto;
  }

  .managed-banner,
  .module-head.split,
  .profile-row,
  .page-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .status-stack {
    justify-items: start;
  }

  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .table-toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .table-search {
    min-width: 0;
  }

  .notice-banner,
  .workspace-footer,
  .preview-topbar,
  .branding-preview-top,
  .status-dock-panel-head,
  .trust-bar-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .client-picker {
    min-width: 0;
  }

  .status-dock {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .status-dock-toggle,
  .status-dock-panel {
    width: 100%;
  }
}

.app-shell {
  min-height: 100vh;
}

.dashboard-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem 1.1rem 1.2rem;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.shell-content {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.shell-rail {
  position: sticky;
  top: 1rem;
  min-height: calc(100vh - 2rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 1.1rem;
  padding: 1rem 0.72rem 0.9rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #07121a 0%, #0a1a22 48%, #0c232a 100%);
  box-shadow: 0 32px 54px rgba(5, 17, 21, 0.34);
  color: #f8fbfa;
  z-index: 60;
  overflow: visible;
}

.rail-brand {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.rail-brand .brand-slot,
.rail-brand-visual {
  min-height: 58px;
}

.rail-brand-visual {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rail-brand-visual .brand-image-icon,
.rail-brand-visual .brand-mark.small {
  width: 54px;
  height: 54px;
}

.rail-brand-copy {
  display: none;
}

.rail-nav {
  width: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.55rem;
  padding-block: 0.25rem;
}

.rail-group {
  position: relative;
  width: 100%;
  display: grid;
  justify-items: center;
  --rail-group-start: rgba(15, 106, 103, 0.96);
  --rail-group-end: rgba(241, 102, 29, 0.8);
  --rail-group-soft: rgba(15, 106, 103, 0.12);
}

.rail-group:hover,
.rail-group.is-open {
  z-index: 90;
}

.rail-group-slate {
  --rail-group-start: rgba(41, 67, 84, 0.98);
  --rail-group-end: rgba(87, 116, 135, 0.86);
  --rail-group-soft: rgba(57, 87, 108, 0.14);
}

.rail-group-teal {
  --rail-group-start: rgba(11, 91, 88, 0.98);
  --rail-group-end: rgba(21, 135, 130, 0.82);
  --rail-group-soft: rgba(11, 91, 88, 0.14);
}

.rail-group-amber {
  --rail-group-start: rgba(155, 95, 16, 0.98);
  --rail-group-end: rgba(241, 140, 37, 0.86);
  --rail-group-soft: rgba(241, 140, 37, 0.16);
}

.rail-group-rose {
  --rail-group-start: rgba(116, 33, 62, 0.98);
  --rail-group-end: rgba(190, 76, 112, 0.84);
  --rail-group-soft: rgba(190, 76, 112, 0.14);
}

.rail-trigger {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(244, 251, 250, 0.72);
  display: grid;
  place-items: center;
  position: relative;
}

.rail-trigger:hover,
.rail-trigger.is-active,
.rail-group.is-open .rail-trigger,
.rail-group:hover .rail-trigger {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, var(--rail-group-start), var(--rail-group-end));
  box-shadow: 0 18px 26px rgba(6, 20, 24, 0.3);
}

.rail-trigger-icon,
.rail-option-icon,
.rail-flyout-mark-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rail-trigger-icon svg,
.rail-option-icon svg,
.rail-flyout-mark-icon svg {
  width: 22px;
  height: 22px;
}

.rail-flyout-mark-icon svg {
  width: 28px;
  height: 28px;
}

.rail-trigger-copy {
  display: none;
}

.rail-flyout {
  position: absolute;
  top: var(--rail-flyout-top, -0.25rem);
  left: calc(100% + 0.45rem);
  width: min(378px, calc(100vw - 150px));
  max-height: calc(100vh - 2rem);
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 106, 103, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 249, 0.98));
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 40px rgba(12, 29, 35, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-10px, 0, 0);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  z-index: 120;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.rail-flyout::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -0.55rem;
  width: 0.7rem;
}

.rail-group:hover .rail-flyout,
.rail-group.is-open .rail-flyout {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.rail-flyout-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(15, 106, 103, 0.1);
}

.rail-flyout-head h3 {
  margin: 0.12rem 0 0.2rem;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
}

.rail-flyout-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.rail-flyout-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rail-group-soft), rgba(255, 255, 255, 0.82));
  color: var(--rail-group-start);
}

.rail-flyout-sections {
  display: grid;
  gap: 0.9rem;
}

.rail-flyout-section {
  display: grid;
  gap: 0.7rem;
}

.rail-section-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rail-flyout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.rail-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.72rem;
  align-items: center;
  min-height: 72px;
  padding: 0.74rem 0.84rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7faf9);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rail-option:hover,
.rail-option.is-active {
  border-color: rgba(15, 106, 103, 0.2);
  background: linear-gradient(135deg, rgba(15, 106, 103, 0.14), rgba(241, 102, 29, 0.08));
  box-shadow: 0 14px 24px rgba(15, 53, 51, 0.08);
  transform: translateY(-1px);
}

.rail-option-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--rail-group-soft);
  color: var(--rail-group-start);
}

.rail-option-copy {
  display: grid;
  align-content: center;
  gap: 0;
}

.rail-option-copy strong {
  font-size: 0.91rem;
  line-height: 1.2;
}

.rail-option-copy span {
  display: none;
}

.rail-meta {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.rail-meta-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  max-width: 100%;
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef8f7;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: center;
}

.rail-meta p {
  margin: 0;
  max-width: 72px;
  color: rgba(240, 247, 245, 0.64);
  font-size: 0.69rem;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 18;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(9, 26, 34, 0.08);
  background:
    radial-gradient(circle at top right, rgba(241, 102, 29, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(9, 27, 37, 0.96), rgba(11, 80, 77, 0.94));
  box-shadow: 0 24px 42px rgba(11, 29, 34, 0.18);
  color: #fff;
}

.topbar-copy {
  display: grid;
  gap: 0.18rem;
}

.topbar-kicker {
  color: rgba(243, 249, 248, 0.64);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar-copy strong {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.15;
}

.topbar-copy p {
  margin: 0;
  color: rgba(245, 251, 250, 0.76);
  font-size: 0.88rem;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.topbar .ghost-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.topbar .ghost-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.workspace {
  min-width: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.page-head {
  grid-template-columns: 1fr;
  border-radius: 22px;
  padding: 1.35rem 1.4rem;
}

.status-dock {
  right: 1.2rem;
  bottom: 1.2rem;
}

.status-dock-toggle {
  min-width: 212px;
  border-radius: 20px;
}

.status-dock-panel {
  border-radius: 22px;
}

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

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

  .dashboard-command-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdf-export-grid {
    grid-template-columns: 1fr;
  }

  .rail-flyout {
    width: min(360px, calc(100vw - 130px));
  }
}

@media (max-width: 1100px) {
  .dashboard-grid {
    padding: 0.8rem;
    grid-template-columns: 1fr;
  }

  .dashboard-command-head {
    flex-direction: column;
  }

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

  .dashboard-command-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shell-rail {
    position: sticky;
    top: 0.8rem;
    min-height: auto;
    grid-template-rows: auto auto;
    grid-template-columns: auto 1fr auto;
    justify-items: stretch;
    align-items: center;
    padding: 0.8rem;
  }

  .rail-brand {
    justify-items: start;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .rail-brand-copy {
    display: grid;
    gap: 0.15rem;
  }

  .rail-brand-copy strong {
    color: #fff;
    line-height: 1.15;
  }

  .rail-brand-copy span {
    color: rgba(245, 251, 250, 0.68);
    font-size: 0.78rem;
  }

  .rail-nav {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .rail-group {
    flex: 0 0 auto;
  }

  .rail-flyout {
    top: calc(100% + 0.8rem);
    left: 0;
    width: min(100vw - 1.6rem, 520px);
    pointer-events: none;
  }

  .rail-group:hover .rail-flyout,
  .rail-group.is-open .rail-flyout {
    pointer-events: auto;
  }

  .rail-meta {
    justify-items: end;
    text-align: right;
    border-top: none;
    padding-top: 0;
  }

  .topbar {
    top: 0.8rem;
  }
}

@media (max-width: 780px) {
  .preset-command-row {
    grid-template-columns: 1fr;
  }

  .report-head-pills {
    gap: 0.55rem;
  }

  .dashboard-command-hero,
  .dashboard-command-panel {
    border-radius: 20px;
  }

  .dashboard-command-hero {
    padding: 1.1rem;
  }

  .dashboard-command-metrics,
  .dashboard-command-side,
  .dashboard-baseline-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-command-actions {
    flex-direction: column;
  }

  .dashboard-command-actions .primary-btn,
  .dashboard-command-actions .ghost-btn {
    width: 100%;
    justify-content: center;
  }

  .shell-rail,
  .topbar {
    grid-template-columns: 1fr;
  }

  .shell-rail {
    gap: 0.75rem;
  }

  .rail-brand,
  .topbar-user {
    justify-items: start;
  }

  .topbar-user {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .rail-meta,
  .user-meta {
    text-align: left;
    justify-items: start;
  }

  .rail-flyout {
    width: min(100vw - 1.6rem, 100%);
  }

  .rail-flyout-grid {
    grid-template-columns: 1fr;
  }

  .topbar-info-panel {
    min-width: 0;
    width: min(100vw - 1.6rem, 420px);
  }

  .topbar-info-facts {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }
}
