:root {
  --brand-navy: #071a33;
  --brand-navy-2: #0b2545;
  --brand-blue: #1769e0;
  --brand-blue-2: #2f80ed;
  --brand-cyan: #4cb7c5;
  --brand-bg: #f4f7fb;
  --brand-surface: #ffffff;
  --brand-surface-2: #f8fafc;
  --brand-border: #dde5ef;
  --brand-text: #162033;
  --brand-muted: #64748b;
  --brand-success: #16835c;
  --brand-warning: #d97706;
  --brand-danger: #d63649;
  --brand-info: #2563eb;
  --brand-purple: #7c3aed;
  --brand-shadow: 0 14px 40px rgba(15, 35, 64, 0.09);
  --brand-shadow-soft: 0 8px 24px rgba(15, 35, 64, 0.07);
  --sidebar-width: 280px;
  --topbar-height: 76px;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  color-scheme: light;
}

html[data-theme='dark'] {
  --brand-bg: #07101f;
  --brand-surface: #0d1b2e;
  --brand-surface-2: #11223a;
  --brand-border: #243a58;
  --brand-text: #edf4ff;
  --brand-muted: #9bb0ca;
  --brand-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --brand-shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.2);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--brand-text);
  background: var(--brand-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

img {
  max-width: 100%;
}

.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;
}

.hidden {
  display: none !important;
}

.prototype-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(47, 128, 237, 0.23);
  border-radius: 12px;
  color: #24466f;
  background: rgba(236, 246, 255, 0.91);
  font-size: 12px;
  line-height: 1.45;
}

html[data-theme='dark'] .prototype-notice {
  color: #c2ddff;
  background: rgba(23, 105, 224, 0.12);
  border-color: rgba(76, 183, 197, 0.25);
}

.prototype-notice svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

/* LOGIN */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(420px, 0.87fr);
  background: var(--brand-surface);
}

.login-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(30px, 5vw, 72px);
  color: white;
  background:
    radial-gradient(circle at 76% 18%, rgba(76, 183, 197, 0.34), transparent 28%),
    radial-gradient(circle at 10% 92%, rgba(47, 128, 237, 0.28), transparent 32%),
    linear-gradient(145deg, #06162d 0%, #0a2d54 52%, #0a4160 100%);
}

.login-visual::before,
.login-visual::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.login-visual::before {
  width: 530px;
  height: 530px;
  right: -210px;
  top: -200px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018);
}

.login-visual::after {
  width: 310px;
  height: 310px;
  left: -130px;
  bottom: -90px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 54px rgba(255, 255, 255, 0.018);
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-shell {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.brand-logo-shell.compact {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.brand-logo-shell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.brand-logo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 7px;
  color: var(--brand-navy);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.02em;
}

.brand-lockup strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.brand-lockup span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.login-hero {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 70px 0;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #d8f6ff;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.login-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.login-hero p {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(235, 246, 255, 0.76);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.65;
}

.login-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.login-feature {
  min-height: 112px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.login-feature svg {
  margin-bottom: 14px;
  color: #7ee1ec;
}

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

.login-feature strong {
  font-size: 13px;
}

.login-feature span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.61);
  font-size: 11px;
}

.login-visual-footer {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 36px clamp(26px, 5vw, 72px);
  background: var(--brand-surface);
}

.login-card {
  width: min(100%, 480px);
}

.mobile-brand {
  display: none;
  margin-bottom: 34px;
}

.login-heading {
  margin-bottom: 26px;
}

.login-heading h2 {
  margin: 0;
  color: var(--brand-text);
  font-size: 32px;
  letter-spacing: -0.04em;
}

.login-heading p {
  margin: 9px 0 0;
  color: var(--brand-muted);
}

.form-group {
  margin-bottom: 17px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--brand-text);
  font-size: 13px;
  font-weight: 750;
}

.input-shell {
  position: relative;
}

.input-shell > svg {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: #8a9bb1;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-control {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  outline: 0;
  color: var(--brand-text);
  background: var(--brand-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-shell .form-control {
  padding-left: 44px;
}

.input-shell.has-action .form-control {
  padding-right: 48px;
}

.form-control::placeholder {
  color: #9aa9bb;
}

.form-control:focus {
  border-color: rgba(23, 105, 224, 0.74);
  box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.1);
}

.form-control[aria-invalid='true'] {
  border-color: var(--brand-danger);
  box-shadow: 0 0 0 4px rgba(214, 54, 73, 0.08);
}

.field-action {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--brand-muted);
  background: transparent;
  cursor: pointer;
}

.field-action:hover,
.field-action:focus-visible {
  color: var(--brand-blue);
  background: var(--brand-surface-2);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 5px 0 20px;
  color: var(--brand-muted);
  font-size: 13px;
}

.check-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.check-control input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand-blue);
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.nav-link:focus-visible,
.quick-profile:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.25);
  outline-offset: 2px;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--brand-blue), #0d56c9);
  box-shadow: 0 10px 22px rgba(23, 105, 224, 0.23);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(23, 105, 224, 0.28);
}

.btn-secondary {
  color: var(--brand-text);
  background: var(--brand-surface-2);
  border: 1px solid var(--brand-border);
}

.btn-danger {
  color: white;
  background: var(--brand-danger);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.72s linear infinite;
}

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

.quick-access {
  margin-top: 27px;
  padding-top: 23px;
  border-top: 1px solid var(--brand-border);
}

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

.quick-access-head strong {
  font-size: 13px;
}

.quick-access-head span {
  color: var(--brand-muted);
  font-size: 11px;
}

.quick-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quick-profile {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  color: var(--brand-muted);
  background: var(--brand-surface-2);
  font-size: 10px;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.quick-profile:hover,
.quick-profile.is-selected {
  color: var(--brand-blue);
  border-color: rgba(23, 105, 224, 0.35);
  background: rgba(23, 105, 224, 0.07);
}

.quick-profile svg {
  width: 20px;
  height: 20px;
}

.login-card .prototype-notice {
  margin-top: 22px;
}

.form-error {
  min-height: 18px;
  margin-top: 6px;
  color: var(--brand-danger);
  font-size: 12px;
}

/* APP LAYOUT */
.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  color: #dbe9f8;
  background:
    radial-gradient(circle at 100% 0%, rgba(76, 183, 197, 0.15), transparent 27%),
    linear-gradient(180deg, var(--brand-navy) 0%, #08182c 100%);
  box-shadow: 16px 0 48px rgba(5, 17, 34, 0.12);
  transition: width 0.22s ease, transform 0.25s ease;
}

.sidebar-header {
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand-copy {
  min-width: 0;
}

.sidebar-brand-copy strong,
.sidebar-brand-copy span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-brand-copy strong {
  color: white;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.sidebar-brand-copy span {
  margin-top: 2px;
  color: #7f9dbf;
  font-size: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--brand-muted);
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.icon-btn:hover {
  color: var(--brand-blue);
  background: rgba(23, 105, 224, 0.08);
}

.sidebar .icon-btn {
  color: #85a2c2;
}

.sidebar .icon-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 13px 11px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.nav-group-label {
  margin: 21px 11px 7px;
  color: #6381a2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0;
  padding: 10px 11px;
  border-radius: 11px;
  color: #a9bfd8;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.055);
}

.nav-link.is-active {
  color: white;
  background: linear-gradient(100deg, rgba(23, 105, 224, 0.4), rgba(76, 183, 197, 0.11));
  box-shadow: inset 3px 0 0 #54c7d4;
}

.nav-link svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.nav-link-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 650;
}

.nav-badge {
  min-width: 22px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: white;
  background: var(--brand-danger);
  font-size: 10px;
  font-weight: 800;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #32c48d;
  box-shadow: 0 0 0 4px rgba(50, 196, 141, 0.13);
}

.sidebar-status strong,
.sidebar-status span {
  display: block;
}

.sidebar-status strong {
  color: #d8e8f8;
  font-size: 11px;
}

.sidebar-status span {
  margin-top: 1px;
  color: #6987a8;
  font-size: 9px;
}

.app-main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.22s ease;
}

.topbar {
  position: sticky;
  z-index: 35;
  top: 0;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 26px;
  border-bottom: 1px solid rgba(221, 229, 239, 0.78);
  background: color-mix(in srgb, var(--brand-surface) 91%, transparent);
  backdrop-filter: blur(14px);
}

html[data-theme='dark'] .topbar {
  border-bottom-color: rgba(36, 58, 88, 0.82);
}

.topbar-left,
.topbar-actions,
.user-control {
  display: flex;
  align-items: center;
}

.topbar-left {
  min-width: 0;
  gap: 13px;
}

.mobile-menu-btn {
  display: none;
}

.breadcrumbs {
  min-width: 0;
}

.breadcrumbs small {
  display: block;
  color: var(--brand-muted);
  font-size: 10px;
}

.breadcrumbs strong {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--brand-text);
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.topbar-actions {
  gap: 7px;
}

.notification-btn {
  position: relative;
}

.notification-dot {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--brand-surface);
  border-radius: 50%;
  background: var(--brand-danger);
}

.user-control {
  position: relative;
  gap: 10px;
  margin-left: 5px;
  padding: 5px 7px 5px 5px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

.user-control:hover,
.user-control[aria-expanded='true'] {
  border-color: var(--brand-border);
  background: var(--brand-surface-2);
}

.avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 7px 16px rgba(23, 105, 224, 0.2);
}

.user-copy {
  max-width: 160px;
  min-width: 0;
}

.user-copy strong,
.user-copy span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-copy strong {
  font-size: 12px;
}

.user-copy span {
  margin-top: 1px;
  color: var(--brand-muted);
  font-size: 10px;
}

.dropdown {
  position: absolute;
  z-index: 100;
  right: 0;
  top: calc(100% + 9px);
  width: 240px;
  padding: 8px;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  background: var(--brand-surface);
  box-shadow: var(--brand-shadow);
  transform-origin: top right;
  animation: popIn 0.15s ease both;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-user {
  padding: 10px;
  border-bottom: 1px solid var(--brand-border);
  margin-bottom: 6px;
}

.dropdown-user strong,
.dropdown-user span {
  display: block;
}

.dropdown-user strong {
  font-size: 12px;
}

.dropdown-user span {
  margin-top: 2px;
  color: var(--brand-muted);
  font-size: 10px;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 9px;
  color: var(--brand-text);
  background: transparent;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--brand-surface-2);
}

.dropdown-item.danger {
  color: var(--brand-danger);
}

.page-content {
  padding: 24px 26px 32px;
}

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

.page-title-wrap h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.page-title-wrap p {
  margin: 6px 0 0;
  color: var(--brand-muted);
  font-size: 13px;
}

.page-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.connection-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(22, 131, 92, 0.2);
  border-radius: 999px;
  color: var(--brand-success);
  background: rgba(22, 131, 92, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.connection-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(22, 131, 92, 0.12);
}

.dashboard-notice {
  margin-bottom: 18px;
}

.card {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  background: var(--brand-surface);
  box-shadow: var(--brand-shadow-soft);
}

.filter-card {
  margin-bottom: 18px;
  padding: 16px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.section-title svg {
  color: var(--brand-blue);
}

.section-title h2,
.section-title h3 {
  margin: 0;
  font-size: 14px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 10px;
}

.filter-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-muted);
  font-size: 10px;
  font-weight: 750;
}

.filter-field .form-control {
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 11px;
}

.filter-actions {
  display: flex;
  align-items: end;
  gap: 7px;
}

.filter-actions .btn {
  min-height: 42px;
  padding: 9px 12px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 17px;
}

.kpi-card::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  right: -37px;
  bottom: -42px;
  border-radius: 50%;
  background: var(--kpi-soft, rgba(23, 105, 224, 0.08));
}

.kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kpi-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--kpi-color, var(--brand-blue));
  background: var(--kpi-soft, rgba(23, 105, 224, 0.09));
}

.kpi-icon svg {
  width: 19px;
  height: 19px;
}

.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--brand-success);
  background: rgba(22, 131, 92, 0.08);
  font-size: 9px;
  font-weight: 800;
}

.kpi-label {
  margin-top: 16px;
  color: var(--brand-muted);
  font-size: 11px;
  font-weight: 650;
}

.kpi-value {
  margin-top: 3px;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.kpi-helper {
  margin-top: 3px;
  color: var(--brand-muted);
  font-size: 9px;
}

.kpi-card[data-tone='green'] { --kpi-color: #16835c; --kpi-soft: rgba(22, 131, 92, 0.09); }
.kpi-card[data-tone='teal'] { --kpi-color: #0f8b8d; --kpi-soft: rgba(15, 139, 141, 0.09); }
.kpi-card[data-tone='red'] { --kpi-color: #d63649; --kpi-soft: rgba(214, 54, 73, 0.09); }
.kpi-card[data-tone='purple'] { --kpi-color: #7c3aed; --kpi-soft: rgba(124, 58, 237, 0.09); }
.kpi-card[data-tone='orange'] { --kpi-color: #d97706; --kpi-soft: rgba(217, 119, 6, 0.09); }
.kpi-card[data-tone='indigo'] { --kpi-color: #4f46e5; --kpi-soft: rgba(79, 70, 229, 0.09); }
.kpi-card[data-tone='yellow'] { --kpi-color: #b7791f; --kpi-soft: rgba(183, 121, 31, 0.1); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.chart-card {
  min-height: 335px;
  padding: 17px;
}

.chart-card.span-7 { grid-column: span 7; }
.chart-card.span-5 { grid-column: span 5; }
.chart-card.span-4 { grid-column: span 4; }
.chart-card.span-8 { grid-column: span 8; }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.card-head h2,
.card-head h3 {
  margin: 0;
  font-size: 14px;
}

.card-head p {
  margin: 4px 0 0;
  color: var(--brand-muted);
  font-size: 10px;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--brand-blue);
  background: rgba(23, 105, 224, 0.07);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.chart-wrap {
  position: relative;
  height: 250px;
}

.chart-wrap.small {
  height: 225px;
}

.table-card {
  overflow: hidden;
}

.table-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 17px;
  border-bottom: 1px solid var(--brand-border);
}

.table-card-head h2 {
  margin: 0;
  font-size: 14px;
}

.table-card-head p {
  margin: 4px 0 0;
  color: var(--brand-muted);
  font-size: 10px;
}

.table-search {
  position: relative;
  width: min(260px, 100%);
}

.table-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 15px;
  height: 15px;
  color: var(--brand-muted);
  transform: translateY(-50%);
}

.table-search input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px 8px 33px;
  border: 1px solid var(--brand-border);
  border-radius: 9px;
  outline: 0;
  color: var(--brand-text);
  background: var(--brand-surface-2);
  font-size: 10px;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.data-table th,
.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--brand-border);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--brand-muted);
  background: var(--brand-surface-2);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.data-table td {
  font-size: 10px;
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: rgba(23, 105, 224, 0.025);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-primary {
  color: var(--brand-text);
  font-weight: 780;
}

.table-secondary {
  display: block;
  margin-top: 2px;
  color: var(--brand-muted);
  font-size: 9px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-critical {
  color: #be123c;
  background: rgba(225, 29, 72, 0.09);
}

.badge-high {
  color: #c2410c;
  background: rgba(234, 88, 12, 0.09);
}

.badge-preventive {
  color: #a16207;
  background: rgba(202, 138, 4, 0.1);
}

.badge-informative {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.09);
}

.badge-open {
  color: #be123c;
  background: rgba(225, 29, 72, 0.08);
}

.badge-progress {
  color: #9a6700;
  background: rgba(217, 119, 6, 0.09);
}

.table-actions {
  display: flex;
  gap: 5px;
}

.table-action-btn {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  color: var(--brand-muted);
  background: var(--brand-surface);
  cursor: pointer;
}

.table-action-btn:hover {
  color: var(--brand-blue);
  border-color: rgba(23, 105, 224, 0.28);
  background: rgba(23, 105, 224, 0.05);
}

.activity-list {
  display: grid;
  gap: 3px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--brand-border);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--brand-blue);
  background: rgba(23, 105, 224, 0.08);
}

.activity-icon[data-tone='success'] { color: var(--brand-success); background: rgba(22, 131, 92, 0.08); }
.activity-icon[data-tone='danger'] { color: var(--brand-danger); background: rgba(214, 54, 73, 0.08); }
.activity-icon[data-tone='warning'] { color: var(--brand-warning); background: rgba(217, 119, 6, 0.08); }

.activity-copy {
  min-width: 0;
  flex: 1;
}

.activity-copy strong,
.activity-copy span {
  display: block;
}

.activity-copy strong {
  font-size: 10px;
}

.activity-copy span {
  margin-top: 2px;
  overflow: hidden;
  color: var(--brand-muted);
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.activity-time {
  color: var(--brand-muted);
  font-size: 8px;
  white-space: nowrap;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 17px 2px 0;
  border-top: 1px solid var(--brand-border);
  color: var(--brand-muted);
  font-size: 9px;
}

.page-footer .prototype-copy {
  max-width: 720px;
}

/* SIDEBAR COLLAPSED */
body.sidebar-collapsed .sidebar {
  width: 76px;
}

body.sidebar-collapsed .app-main {
  margin-left: 76px;
}

body.sidebar-collapsed .sidebar-brand-copy,
body.sidebar-collapsed .nav-link-label,
body.sidebar-collapsed .nav-group-label,
body.sidebar-collapsed .nav-badge,
body.sidebar-collapsed .sidebar-status > div,
body.sidebar-collapsed .sidebar-header > .icon-btn {
  display: none;
}

body.sidebar-collapsed .sidebar-brand {
  justify-content: center;
}

body.sidebar-collapsed .sidebar-header {
  justify-content: center;
  padding-inline: 9px;
}

body.sidebar-collapsed .sidebar-nav {
  padding-inline: 9px;
}

body.sidebar-collapsed .nav-link {
  justify-content: center;
  padding-inline: 0;
}

body.sidebar-collapsed .sidebar-status {
  justify-content: center;
}

/* MOBILE OVERLAY */
.sidebar-overlay {
  position: fixed;
  z-index: 45;
  inset: 0;
  background: rgba(2, 10, 21, 0.58);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}

/* TOASTS */
.toast-region {
  position: fixed;
  z-index: 200;
  right: 18px;
  top: 18px;
  width: min(390px, calc(100vw - 36px));
  display: grid;
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--brand-border);
  border-radius: 13px;
  color: var(--brand-text);
  background: var(--brand-surface);
  box-shadow: var(--brand-shadow);
  pointer-events: auto;
  animation: toastIn 0.24s ease both;
}

.toast.is-leaving {
  animation: toastOut 0.2s ease both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(14px) translateY(-5px); }
  to { opacity: 1; transform: translateX(0) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(18px); }
}

.toast-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--brand-blue);
  background: rgba(23, 105, 224, 0.08);
}

.toast[data-type='success'] .toast-icon {
  color: var(--brand-success);
  background: rgba(22, 131, 92, 0.08);
}

.toast[data-type='warning'] .toast-icon {
  color: var(--brand-warning);
  background: rgba(217, 119, 6, 0.08);
}

.toast[data-type='error'] .toast-icon {
  color: var(--brand-danger);
  background: rgba(214, 54, 73, 0.08);
}

.toast-copy {
  min-width: 0;
  flex: 1;
}

.toast-copy strong,
.toast-copy span {
  display: block;
}

.toast-copy strong {
  font-size: 11px;
}

.toast-copy span {
  margin-top: 3px;
  color: var(--brand-muted);
  font-size: 10px;
}

.toast-close {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--brand-muted);
  background: transparent;
  cursor: pointer;
}

.toast-close:hover {
  background: var(--brand-surface-2);
}

/* MODAL */
.modal-backdrop {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 10, 21, 0.63);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.18s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: min(100%, 470px);
  overflow: hidden;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  background: var(--brand-surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  animation: modalIn 0.2s ease both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head,
.modal-body,
.modal-actions {
  padding: 17px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--brand-border);
}

.modal-head h3 {
  margin: 0;
  font-size: 15px;
}

.modal-body {
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.65;
}

.modal-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.modal-detail {
  padding: 10px;
  border-radius: 10px;
  background: var(--brand-surface-2);
}

.modal-detail span,
.modal-detail strong {
  display: block;
}

.modal-detail span {
  color: var(--brand-muted);
  font-size: 9px;
}

.modal-detail strong {
  margin-top: 3px;
  color: var(--brand-text);
  font-size: 11px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--brand-border);
}

/* SKELETON */
.skeleton {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  background: var(--brand-surface-2) !important;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.18), transparent);
  animation: shimmer 1.1s infinite;
}

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

/* RESPONSIVE */
@media (max-width: 1280px) {
  .filter-grid {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

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

@media (max-width: 1080px) {
  .login-page {
    grid-template-columns: 1fr 440px;
  }

  .login-features {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .login-feature {
    min-height: auto;
  }

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

  .chart-card.span-7,
  .chart-card.span-5,
  .chart-card.span-4,
  .chart-card.span-8 {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  .login-page {
    display: block;
    background: linear-gradient(155deg, #071a33 0, #0a4160 250px, var(--brand-surface) 251px);
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 34px;
    background: transparent;
  }

  .login-card {
    padding: 24px;
    border: 1px solid var(--brand-border);
    border-radius: 20px;
    background: var(--brand-surface);
    box-shadow: 0 22px 60px rgba(3, 20, 42, 0.2);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
  }

  .mobile-brand strong,
  .mobile-brand span {
    display: block;
  }

  .mobile-brand strong {
    font-size: 14px;
  }

  .mobile-brand span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
  }

  .sidebar {
    width: min(320px, calc(100vw - 40px));
    transform: translateX(-104%);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-collapsed .sidebar {
    width: min(320px, calc(100vw - 40px));
  }

  body.sidebar-collapsed .sidebar-brand-copy,
  body.sidebar-collapsed .nav-link-label,
  body.sidebar-collapsed .nav-group-label,
  body.sidebar-collapsed .nav-badge,
  body.sidebar-collapsed .sidebar-status > div,
  body.sidebar-collapsed .sidebar-header > .icon-btn {
    display: initial;
  }

  body.sidebar-collapsed .sidebar-brand,
  body.sidebar-collapsed .sidebar-header,
  body.sidebar-collapsed .nav-link,
  body.sidebar-collapsed .sidebar-status {
    justify-content: initial;
  }

  body.sidebar-collapsed .sidebar-header {
    justify-content: space-between;
    padding-inline: 16px;
  }

  body.sidebar-collapsed .sidebar-nav {
    padding-inline: 11px;
  }

  body.sidebar-collapsed .nav-link {
    padding-inline: 11px;
  }

  .app-main,
  body.sidebar-collapsed .app-main {
    margin-left: 0;
  }

  .mobile-menu-btn {
    display: grid;
  }

  .topbar {
    padding-inline: 16px;
  }

  .page-content {
    padding: 20px 16px 28px;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .chart-card.span-7,
  .chart-card.span-5,
  .chart-card.span-4,
  .chart-card.span-8 {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .login-panel {
    padding: 23px 13px 28px;
  }

  .login-card {
    padding: 20px 17px;
  }

  .login-heading h2 {
    font-size: 27px;
  }

  .quick-profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar {
    min-height: 68px;
    padding: 10px 12px;
  }

  .breadcrumbs small,
  .user-copy,
  .topbar-actions > .icon-btn:nth-child(2) {
    display: none;
  }

  .user-control {
    margin-left: 0;
    padding-right: 3px;
  }

  .page-content {
    padding: 17px 12px 24px;
  }

  .page-head {
    display: block;
  }

  .page-title-wrap h1 {
    font-size: 23px;
  }

  .page-head-actions {
    margin-top: 13px;
  }

  .filter-card {
    padding: 13px;
  }

  .filter-card-head {
    align-items: flex-start;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .kpi-card {
    min-height: 143px;
    padding: 14px;
  }

  .kpi-value {
    font-size: 23px;
  }

  .chart-card {
    min-height: 320px;
    padding: 14px;
  }

  .chart-wrap {
    height: 240px;
  }

  .table-card-head {
    display: block;
    padding: 14px;
  }

  .table-search {
    width: 100%;
    margin-top: 12px;
  }

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

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--brand-border);
  }

  .data-table td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    padding: 5px 0;
    border: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--brand-muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .table-actions {
    justify-content: flex-start;
  }

  .page-footer {
    display: block;
  }

  .page-footer span:last-child {
    display: block;
    margin-top: 7px;
  }

  .modal-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .quick-profile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* =========================================================
   Sprint 1 · Rutas congeladas y páginas de módulos futuros
   ========================================================= */
.nav-sprint {
  margin-left: auto;
  min-width: 24px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.nav-button {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.profile-switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.profile-switch-grid .quick-profile {
  min-height: 76px;
  justify-content: flex-start;
  text-align: left;
}

.profile-switch-grid .quick-profile > span:last-child {
  display: grid;
  gap: 3px;
}

.profile-switch-grid .quick-profile small {
  color: var(--brand-muted);
  font-size: 9px;
}

.modal-note {
  margin-top: 16px !important;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(23, 105, 224, 0.10);
  color: var(--brand-muted) !important;
  font-size: 10px !important;
}

.placeholder-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 10% 10%, rgba(23, 105, 224, 0.11), transparent 28%),
    radial-gradient(circle at 92% 90%, rgba(76, 183, 197, 0.10), transparent 30%),
    var(--brand-bg);
  color: var(--brand-text);
}

.placeholder-topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--brand-border);
  background: color-mix(in srgb, var(--brand-surface) 92%, transparent);
  backdrop-filter: blur(14px);
}

.placeholder-brand,
.placeholder-user {
  display: flex;
  align-items: center;
  gap: 11px;
}

.placeholder-brand strong,
.placeholder-user strong {
  display: block;
  color: var(--brand-text);
  font-size: 11px;
}

.placeholder-brand span,
.placeholder-user span {
  display: block;
  margin-top: 2px;
  color: var(--brand-muted);
  font-size: 9px;
}

.placeholder-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.placeholder-main {
  width: min(900px, calc(100% - 32px));
  margin: auto;
  padding: 44px 0;
}

.placeholder-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  background: var(--brand-surface);
  box-shadow: var(--brand-shadow);
}

.placeholder-card::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: rgba(23, 105, 224, 0.08);
}

.placeholder-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 18px;
  background: linear-gradient(145deg, #1769e0, #0d4fb2);
  color: #fff;
  box-shadow: 0 14px 30px rgba(23, 105, 224, 0.26);
}

.placeholder-icon svg {
  width: 30px;
  height: 30px;
}

.placeholder-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(23, 105, 224, 0.10);
  color: var(--brand-blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.placeholder-card h1 {
  position: relative;
  margin: 0;
  color: var(--brand-text);
  font-size: clamp(27px, 5vw, 46px);
  line-height: 1.08;
}

.placeholder-card > p {
  position: relative;
  max-width: 680px;
  margin: 15px 0 0;
  color: var(--brand-muted);
  font-size: 13px;
  line-height: 1.75;
}

.placeholder-meta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.placeholder-meta article {
  padding: 14px;
  border: 1px solid var(--brand-border);
  border-radius: 13px;
  background: var(--brand-surface-2);
}

.placeholder-meta span {
  display: block;
  color: var(--brand-muted);
  font-size: 9px;
}

.placeholder-meta strong {
  display: block;
  margin-top: 5px;
  color: var(--brand-text);
  font-size: 11px;
}

.placeholder-cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.placeholder-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--brand-border);
  color: var(--brand-muted);
  font-size: 9px;
}

@media (max-width: 700px) {
  .profile-switch-grid,
  .placeholder-meta {
    grid-template-columns: 1fr;
  }

  .placeholder-user .user-copy,
  .placeholder-footer span:last-child {
    display: none;
  }

  .placeholder-topbar {
    padding-inline: 14px;
  }

  .placeholder-actions .btn span {
    display: none;
  }

  .placeholder-footer {
    padding-inline: 16px;
  }
}
