/* iStrategy application navigation. Original content typography and components are retained. */
:root {
  --sidebar-sidebar-width: 272px;
  --sidebar-sidebar-collapsed-width: 80px;
  --sidebar-topbar-height: 74px;
  --sidebar-surface: rgba(17, 24, 39, .88);
  --sidebar-surface-soft: rgba(255, 255, 255, .035);
}

body.sidebar-body {
  display: block;
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
  color-scheme: dark;
}

body.sidebar-body::before {
  z-index: -2;
}

.sidebar-app {
  min-height: 100vh;
  color: var(--text-main, #f3f4f6);
}

.sidebar-app [hidden] { display: none !important; }

.sidebar-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  display: flex;
  width: var(--sidebar-sidebar-width);
  flex-direction: column;
  padding: 0 16px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(165deg, rgba(19,29,47,.98), rgba(9,14,24,.98) 40%);
  box-shadow: 12px 0 40px rgba(0,0,0,.15);
  backdrop-filter: blur(16px);
  transition: width .22s ease, transform .22s ease;
}

.sidebar-sidebar-brand {
  position: relative;
  display: flex;
  min-height: 154px;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  padding: 22px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-sidebar-logo,
.sidebar-mobile-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.sidebar-sidebar-logo { flex: 0 0 auto; border-radius: 5px; }

.sidebar-sidebar-logo .sidebar-logo-full {
  display: block;
  width: 208px;
  max-width: 100%;
  height: auto;
}

.sidebar-logo-mark { display: none; }
.sidebar-logo-mark img { display: block; width: 116px; max-width: none; height: auto; }
.sidebar-sidebar-close { display: none; }

.sidebar-brand-caption {
  color: #8494ad;
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar-sidebar-section-label {
  padding: 24px 14px 12px;
  color: #76859b;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sidebar-nav {
  /* The shared stylesheet also styles landing-page <nav> elements. */
  position: static;
  inset: auto;
  z-index: auto;
  display: grid;
  width: 100%;
  flex: 0 0 auto;
  align-items: stretch;
  justify-content: normal;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.sidebar-nav-item {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #a0aec0;
  background: transparent;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.sidebar-nav-item:hover,
.sidebar-nav-item:focus-visible {
  color: #fff;
  border-color: rgba(255,255,255,.06);
  background: rgba(255,255,255,.045);
  transform: none;
  opacity: 1;
}

.sidebar-nav-item.is-active {
  color: #fff;
  border-color: rgba(96,165,250,.18);
  background: linear-gradient(100deg, rgba(37,99,235,.22), rgba(37,99,235,.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  font-weight: 750;
}

.sidebar-nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #8494ad;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-nav-item.is-active .sidebar-nav-icon { color: #83b5ff; }
.sidebar-nav-active-dot { display: none; width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #83b5ff; }
.sidebar-nav-item.is-active .sidebar-nav-active-dot { display: block; }
.sidebar-nav-divider { height: 1px; margin: 21px 14px 0; background: rgba(255,255,255,.07); }
.sidebar-nav .sidebar-sidebar-section-label { padding-top: 13px; padding-bottom: 8px; }

.sidebar-sidebar-entry { flex: 0 0 auto; margin-top: 19px; }
.sidebar-sidebar-entry > .sidebar-sidebar-section-label { padding-top: 12px; }
.sidebar-entry-shortcut { display: flex; width: 100%; align-items: center; justify-content: flex-start; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.025); color: #e5e7eb; text-align: left; }
.sidebar-entry-shortcut:hover { border-color: rgba(96,165,250,.32); background: rgba(37,99,235,.08); transform: none; }
.sidebar-entry-number { display: inline-flex; width: 34px; height: 36px; flex: 0 0 34px; align-items: center; justify-content: center; border: 1px solid rgba(96,165,250,.2); border-radius: 8px; color: #a8cbff; background: rgba(37,99,235,.13); font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sidebar-entry-shortcut-copy { min-width: 0; }
.sidebar-entry-shortcut-copy strong { display: block; color: #e5e7eb; font-size: .76rem; font-weight: 650; white-space: nowrap; }
.sidebar-entry-shortcut-copy small { display: block; margin-top: 4px; color: #8494ad; font-size: .67rem; font-weight: 400; white-space: nowrap; }
.sidebar-shortcut-arrow { width: 14px; height: 14px; flex: 0 0 14px; margin-left: auto; color: #8494ad; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.sidebar-sidebar-footer {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 17px;
  margin-top: auto;
  padding: 30px 0 0;
  color: var(--text-muted, #9ca3af);
  font-size: .74rem;
  line-height: 1.35;
}

.sidebar-sidebar-status { display: flex; width: 100%; align-items: center; gap: 10px; padding: 0 14px; }
.sidebar-sidebar-status strong,
.sidebar-sidebar-status span { display: block; }
.sidebar-sidebar-status strong { color: #c4cedc; font-size: .72rem; font-weight: 600; }
.sidebar-sidebar-status span { margin-top: 3px; color: #76859b; font-size: .66rem; }
.sidebar-sidebar-status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 999px; background: #56c99f; box-shadow: 0 0 0 4px rgba(16,185,129,.07); }

.sidebar-rail-toggle { display: flex; width: 100%; min-height: 43px; align-items: center; justify-content: flex-start; gap: 12px; padding: 11px 14px; border: 0; border-top: 1px solid rgba(255,255,255,.07); border-radius: 0 0 8px 8px; background: transparent; color: #8494ad; font-size: .73rem; font-weight: 500; white-space: nowrap; }
.sidebar-rail-toggle svg,
.sidebar-sidebar-close svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-rail-toggle:hover { background: rgba(255,255,255,.035); color: #e5e7eb; transform: none; }
.sidebar-sidebar :is(button,a):focus-visible { outline: 2px solid #83b5ff; outline-offset: 3px; }


.sidebar-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  min-height: var(--sidebar-topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-left: var(--sidebar-sidebar-width);
  margin-bottom: 0;
  flex-direction: row;
  padding: 14px clamp(18px, 3vw, 44px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7,10,17,.86);
  backdrop-filter: blur(14px);
  transition: margin-left .22s ease;
}

.sidebar-topbar-left,
.sidebar-topbar-right,
.sidebar-breadcrumb { display: flex; align-items: center; }

.sidebar-topbar-left { gap: 14px; min-width: 0; }
.sidebar-topbar-right { gap: 10px; flex: 0 0 auto; }

.sidebar-menu-toggle {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: 10px;
  color: var(--text-main, #f3f4f6);
  background: rgba(255,255,255,.03);
  font-size: 1.15rem;
  cursor: pointer;
}

.sidebar-menu-toggle:hover,
.sidebar-menu-toggle:focus-visible { border-color: var(--primary, #2563eb); outline: none; }

.sidebar-menu-glyph { display: inline-block; min-width: 1em; font-size: 1.45rem; font-weight: 400; line-height: 1; }

.sidebar-mobile-logo { display: none; }
.sidebar-breadcrumb { gap: 9px; min-width: 0; color: var(--text-main, #f3f4f6); font-size: .9rem; }
.sidebar-breadcrumb-muted { color: var(--text-muted, #9ca3af); }
.sidebar-user-avatar { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid rgba(37,99,235,.35); border-radius: 999px; color: #fff; background: linear-gradient(135deg, rgba(37,99,235,.4), rgba(139,92,246,.28)); font-size: .72rem; font-weight: 900; }
.sidebar-user-name { color: var(--text-muted, #9ca3af); font-size: .82rem; white-space: nowrap; }

.sidebar-main { min-height: calc(100vh - var(--sidebar-topbar-height)); margin-left: var(--sidebar-sidebar-width); transition: margin-left .22s ease; }
.sidebar-scrim { display: none; }

@media (min-width: 861px) {
  .sidebar-app.is-collapsed .sidebar-sidebar { width: var(--sidebar-sidebar-collapsed-width); padding-inline: 12px; }
  .sidebar-app.is-collapsed .sidebar-topbar,
  .sidebar-app.is-collapsed .sidebar-main { margin-left: var(--sidebar-sidebar-collapsed-width); }
  .sidebar-app.is-collapsed .sidebar-sidebar-brand { align-items: center; padding-inline: 0; }
  .sidebar-app.is-collapsed .sidebar-logo-full { display: none; }
  .sidebar-app.is-collapsed .sidebar-logo-mark { display: block; width: 38px; height: 45px; overflow: hidden; }
  .sidebar-app.is-collapsed .sidebar-brand-caption,
  .sidebar-app.is-collapsed .sidebar-sidebar-section-label,
  .sidebar-app.is-collapsed .sidebar-nav-label,
  .sidebar-app.is-collapsed .sidebar-entry-shortcut-copy,
  .sidebar-app.is-collapsed .sidebar-shortcut-arrow,
  .sidebar-app.is-collapsed .sidebar-nav-active-dot { display: none; }
  .sidebar-app.is-collapsed .sidebar-nav { margin-top: 24px; }
  .sidebar-app.is-collapsed .sidebar-nav-item { justify-content: center; padding-inline: 0; }
  .sidebar-app.is-collapsed .sidebar-nav-divider { margin: 15px 8px 12px; }
  .sidebar-app.is-collapsed .sidebar-sidebar-entry { margin-top: 30px; }
  .sidebar-app.is-collapsed .sidebar-entry-shortcut { justify-content: center; padding: 6px 0; border: 0; background: none; }
  .sidebar-app.is-collapsed .sidebar-sidebar-status { justify-content: center; padding-inline: 0; }
  .sidebar-app.is-collapsed .sidebar-rail-toggle { justify-content: center; padding-inline: 0; }
  .sidebar-app.is-collapsed .sidebar-rail-toggle svg { transform: rotate(180deg); }
}



@media (max-width: 720px) {
  .sidebar-topbar { padding-inline: 14px; }
  .sidebar-user-name { display: none; }
  .sidebar-breadcrumb { display: none; }
  .sidebar-mobile-logo { display: inline-flex; }
  .sidebar-mobile-logo img { width: 98px; height: auto; }
}

@media (max-width: 860px) {
  .sidebar-sidebar { width: min(286px, calc(100vw - 52px)); transform: translateX(-105%); }
  .sidebar-topbar,
  .sidebar-main,
  .sidebar-app.is-collapsed .sidebar-topbar,
  .sidebar-app.is-collapsed .sidebar-main { margin-left: 0; }
  .sidebar-app.is-mobile-menu-open .sidebar-sidebar { transform: translateX(0); }
  .sidebar-app.is-mobile-menu-open .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.58); }
  .sidebar-sidebar-brand { padding-top: 47px; }
  .sidebar-sidebar-close { position: absolute; top: 13px; right: 0; display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.025); color: #a0aec0; }
  .sidebar-rail-toggle svg { transform: rotate(0); }
}

@media (max-width: 360px) {
  .sidebar-topbar-right { gap: 0; }
  .sidebar-user-avatar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-sidebar,
  .sidebar-topbar,
  .sidebar-main,
  .sidebar-nav-item,
  .sidebar-menu-toggle { transition: none; }
}

.sidebar-entry-shortcut.is-current { border-color: rgba(96,165,250,.45); background: rgba(37,99,235,.15); }
.sidebar-entry-subnav,
.sidebar-admin-subnav { display: grid; gap: 3px; margin: 10px 0 0 18px; padding-left: 12px; border-left: 1px solid rgba(96,165,250,.18); }
.sidebar-entry-tab,
.sidebar-admin-tab { display: block; padding: 9px 11px; border: 1px solid transparent; border-radius: 8px; color: #91a0b5; font-size: .74rem; font-weight: 500; line-height: 1.3; text-decoration: none; }
.sidebar-entry-tab:hover,
.sidebar-admin-tab:hover { color: #e5e7eb; background: rgba(255,255,255,.035); }
.sidebar-entry-tab.is-active,
.sidebar-admin-tab.is-active { color: #bfdbfe; border-color: rgba(96,165,250,.18); background: rgba(37,99,235,.15); font-weight: 700; }
.sidebar-entry-tab:focus-visible,
.sidebar-admin-tab:focus-visible { outline: 2px solid #83b5ff; outline-offset: 1px; }
.sidebar-app.is-collapsed .sidebar-entry-subnav,
.sidebar-app.is-collapsed .sidebar-admin-subnav { display: none; }
[aria-expanded="true"] > .sidebar-shortcut-arrow { transform: rotate(90deg); }
.sidebar-dashboard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.sidebar-dashboard-stat { display: grid; gap: 8px; padding: 19px 21px; border: 1px solid rgba(96,165,250,.15); border-radius: 14px; background: linear-gradient(130deg, rgba(37,99,235,.09), rgba(17,24,39,.85)); color: #f3f4f6; text-decoration: none; }
.sidebar-dashboard-stat > span { color: #9ca3af; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.sidebar-dashboard-stat > strong { font-size: 1.8rem; font-weight: 850; letter-spacing: -.04em; line-height: 1.1; }
.sidebar-dashboard-stat > small { color: #93c5fd; font-size: .75rem; }
.sidebar-dashboard-stat:hover { border-color: rgba(96,165,250,.45); }
.sidebar-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.sidebar-dashboard-grid > * { min-width: 0; }
.sidebar-dashboard-news { margin-top: 24px; }
.sidebar-profile-view { max-width: 1000px; }
.sidebar-create-team-view { max-width: 720px; }
@media (min-width: 861px) {
  .sidebar-app:not(.is-collapsed) #appRoot .rm-tabs[aria-label="Car workspace"] { display: none; }
}
@media (max-width: 1120px) { .sidebar-dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .sidebar-dashboard-stats { gap: 9px; }
  .sidebar-dashboard-stat { padding: 14px 12px; }
  .sidebar-dashboard-stat > small { font-size: .65rem; }
}

/* Keep the original content styles and use the available workspace width. */
.sidebar-main.rm-main { padding: 42px max(24px, 4%) 64px; }
.app-body .sidebar-main .rm-shell { max-width: 1500px; }
.sidebar-nav-item { text-decoration: none; }
.sidebar-sidebar { scrollbar-width: thin; scrollbar-color: #35435a transparent; }
.sidebar-entry-shortcut:disabled { cursor: default; opacity: .55; }
.sidebar-entry-shortcut-copy { overflow: hidden; }
.sidebar-entry-shortcut-copy :is(strong,small) { overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.sidebar-local-links { display: grid; gap: 4px; }
.sidebar-local-links:not(:empty) { padding: 12px 12px 0; }
.sidebar-local-links a { display: block; padding: 8px 10px; border-left: 1px solid rgba(96,165,250,.2); color: #9ca3af; font-size: .72rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-local-links a:hover { color: #fff; background: rgba(37,99,235,.08); }
.sidebar-app.is-collapsed .sidebar-local-links { display: none; }
.sidebar-donate-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.sidebar-donate-icon + span { font-size: .75rem; }
.sidebar-main .rm-profile-head { margin-top: 0; }
.sidebar-app.is-mobile-menu-open { overflow: clip; }
