/* ── Theme Variables (rhinogroup.kz palette) ── */
:root {
  /* Base solid accents — SAME in both themes (accent never inverts).
     Edit here → changes everywhere (CSS var + T.* JS token both point here). */
  --blue: #5469FA; --blue-hover: #3d52e0;
  --green: #34C759; --green-hover: #2DA44E;
  --amber: #FF9500;
  --red: #FF3B30;
  --violet: #AF52DE;
  /* Text/icon color placed ON a solid accent fill (button label, logomark). */
  --on-accent: #fff;
  /* Theme-CONSTANT islands — always dark/light regardless of [data-theme].
     Defined ONCE here, NOT duplicated in the dark block (must not flip). */
  --sidebar-bg: #1C1C1E; --sidebar-text: #e0e0e0; --sidebar-muted: #ababab;
  --sidebar-hover: rgba(255,255,255,.06); --sidebar-active: rgba(84,105,250,.15);
  --login-bg: #111; --login-card: #fff; --login-text: #151515;

  --bg: #f5f5f5; --card: #fff; --border: #dadada; --border-light: #eee;
  --text: #151515; --text-sec: #555; --text-ter: #9b9b9b;
  --blue-light: #eef0ff; --blue-border: #b4bffd; --blue-text: #1e3a8a;
  --green-light: #ecfdf5; --green-border: #a7f3d0; --green-text: #14532d;
  --amber-light: #fffbeb; --amber-border: #fde68a; --amber-text: #92400e;
  --red-light: #fef2f2; --red-border: #fecaca; --red-text: #991b1b;
  --violet-light: #eef1ff; --violet-border: #8fa0e6; --violet-text: #4c1d95;
  --warn-bg: #fff7ed; --warn-border: #fed7aa; --warn-text: #92400e;
  --mixed-row-bg: #fef3c7;
  --sh-sm: 0 1px 2px rgba(0,0,0,.05);
  --sh: 0 1px 3px rgba(0,0,0,.09), 0 1px 2px rgba(0,0,0,.05);
  --sh-md: 0 4px 6px -1px rgba(0,0,0,.09), 0 2px 4px -1px rgba(0,0,0,.05);
  --sh-lg: 0 10px 15px -3px rgba(0,0,0,.09), 0 4px 6px -2px rgba(0,0,0,.04);
  --sh-xl: 0 20px 25px -5px rgba(0,0,0,.09), 0 10px 10px -5px rgba(0,0,0,.03);
  --card-hover: #f5f5f5; --tab-bg: #efefef; --th-bg: #f5f5f5;
  --placeholder: #bebebe; --scrollbar: #c6c6c6;
}
[data-theme=dark] {
  /* Нейтральный тёмно-серый (убран синий подтон #0f1117/#1a1d2e/#2a2d3d).
     Синий #5469FA остаётся ТОЛЬКО акцентом — на нейтральном фоне он играет. */
  --bg: #0f0f0f; --card: #1a1a1a; --border: #2a2a2a; --border-light: #232323;
  --text: #e8e8e8; --text-sec: #9a9a9a; --text-ter: #6b6b6b;
  --blue-light: #1a2244; --blue-border: #2e3d7a; --blue-text: #a5b4fc;
  --green-light: #0d2818; --green-border: #14532d; --green-text: #6ee7b7;
  --amber-light: #2d2005; --amber-border: #78350f; --amber-text: #fcd34d;
  --red-light: #2d0f0f; --red-border: #7f1d1d; --red-text: #fca5a5;
  --violet-light: #0d1a3d; --violet-border: #1e3470; --violet-text: #c4b5fd;
  --warn-bg: #2a1d05; --warn-border: #78350f; --warn-text: #fcd34d;
  --mixed-row-bg: #2a1d05;
  --sh-sm: 0 1px 2px rgba(0,0,0,.3);
  --sh: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --sh-md: 0 4px 6px -1px rgba(0,0,0,.4), 0 2px 4px -1px rgba(0,0,0,.3);
  --sh-lg: 0 10px 15px -3px rgba(0,0,0,.4), 0 4px 6px -2px rgba(0,0,0,.2);
  --sh-xl: 0 20px 25px -5px rgba(0,0,0,.4), 0 10px 10px -5px rgba(0,0,0,.2);
  --card-hover: #232323; --tab-bg: #161616; --th-bg: #161616;
  --placeholder: #555555; --scrollbar: #3a3a3a;
}

/* Fullscreen overlay mode — used by DocUploadScr expanded view. Pure CSS so
 * imperative DOM mutations don't leak past unmount (see DocUploadScr
 * data-rh-fullscreen attribute toggle). */
body[data-rh-fullscreen] aside.sidebar { display: none !important; }
body[data-rh-fullscreen] .layout { overflow: hidden !important; }

/* Skeleton shimmer — used by shared/components/Skeleton.tsx */
@keyframes rh-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
body { -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); transition: background .4s ease, color .4s ease; }
#root { width: 100%; height: 100%; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; font-weight: 500; transition: background .15s ease, opacity .15s ease; border-radius: 6px; font-family: inherit; line-height: 1.4; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn:active { opacity: .85; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn-md { height: 40px; padding: 0 16px; font-size: 13px; }
.btn-primary { background: var(--blue); color: var(--on-accent); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-green { background: var(--green); color: var(--on-accent); }
.btn-green:hover { background: var(--green-hover); }
.btn-violet { background: var(--violet); color: var(--on-accent); }
.btn-violet:hover { filter: brightness(.9); }
.btn-ghost { background: transparent; color: var(--text-ter); padding: 6px 10px; font-size: 12px; }
.btn-ghost:hover { background: var(--border-light); color: var(--text-sec); }
.btn-outline { background: var(--card); border: 1px solid var(--border); color: var(--text-sec); }
.btn-outline:hover { background: var(--card-hover); border-color: var(--border); }
.btn-danger { background: var(--card); border: 1px solid var(--red-border); color: var(--red-text); }
.btn-danger:hover { background: var(--red-light); }

/* ── Badge ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap; line-height: 1.5; }

/* ── Input ── */
.input { width: 100%; height: 40px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--border); font-size: 13px; color: var(--text); font-family: inherit; outline: none; transition: border 150ms, box-shadow 150ms; background: var(--card); }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(84,105,250,.1); }
.input::placeholder { color: var(--placeholder); }
.input-sm { height: 32px; padding: 0 8px; font-size: 12px; }

/* ── Navigation ── */
.nav-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: none; border-radius: 6px; background: transparent; color: var(--sidebar-muted); font-size: 13px; cursor: pointer; text-align: left; transition: background .15s ease, color .15s ease; font-family: inherit; position: relative; }
.nav-btn:hover { background: var(--sidebar-hover); color: var(--sidebar-text); }
.nav-btn.active { background: var(--sidebar-active); color: var(--on-accent); font-weight: 500; }

/* ── List button ── */
.list-btn { display: block; width: 100%; text-align: left; padding: 12px 16px; border: none; border-left: 3px solid transparent; cursor: pointer; transition: all .12s; background: var(--card); font-family: inherit; }
.list-btn:hover { background: var(--card-hover); }
.list-btn.active { background: var(--blue-light); border-left-color: #5469FA; }

/* ── Table ── */
.tbl { min-width: 100%; border-collapse: collapse; }
.tbl th { padding: 8px 12px; font-size: 11px; font-weight: 500; color: var(--text-ter); text-align: left; white-space: nowrap; background: var(--th-bg); border-bottom: 1px solid var(--border-light); user-select: none; transition: color .12s; }
.tbl th:hover { color: var(--text-sec); }
.tbl td { padding: 8px 12px; font-size: 13px; color: var(--text-sec); white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.tbl tbody tr { transition: background .08s; }
.tbl tbody tr:hover { background: var(--card-hover); }

/* ── Tabs ── */
.tab-bar { display: flex; gap: 2px; background: var(--tab-bg); border-radius: 8px; padding: 3px; overflow-x: auto; }
.tab-btn { padding: 6px 12px; border: none; border-radius: 6px; font-size: 11px; font-weight: 500; cursor: pointer; text-align: center; transition: background .15s ease, color .15s ease; font-family: inherit; background: transparent; color: var(--text-ter); white-space: nowrap; flex-shrink: 0; }
.tab-btn:hover:not(.active) { color: var(--text-sec); background: rgba(0,0,0,.03); }
.tab-btn.active { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ── Overlay & Modal ── */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(4px); z-index: 1030; animation: overlayIn 200ms ease both; }
.modal { position: relative; background: var(--card); border-radius: 12px; max-width: 480px; width: calc(100% - 32px); box-shadow: var(--sh-xl); border: 1px solid var(--border); z-index: 1040; animation: modalIn 250ms ease both; }

/* ── Toast ── */
.toast { position: fixed; top: 16px; right: 16px; z-index: 1070; padding: 12px 24px; border-radius: 8px; background: #059669; color: #fff; font-size: 13px; font-weight: 500; box-shadow: var(--sh-lg); animation: toastIn 300ms ease both; }

/* ── Card ── */
.card { background: var(--card); border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--sh); transition: box-shadow .2s ease, border-color .2s ease; }

/* ── Row item ── */
.row-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-light); transition: background .12s; position: relative; }
.row-item:hover { background: var(--card-hover); }
.row-item:last-child { border-bottom: none; }

/* ── Spinner ── */
.spinner { width: 20px; height: 20px; border: 2px solid var(--blue-border); border-top-color: #5469FA; border-radius: 50%; animation: spin 600ms linear infinite; }

/* ── Table header ── */
.th-wrap { display: flex; align-items: center; gap: 2px; }
.th-label { cursor: pointer; padding: 2px 4px; border-radius: 3px; transition: background .1s; }
.th-label:hover { background: rgba(0,0,0,.04); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 4px; }

/* ── Animations ── */
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.98) translateY(4px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Hamburger button (hidden on desktop) ── */
.hamburger-btn {
  display: none;
  background: none; border: none; padding: 6px; cursor: pointer;
  color: var(--text); border-radius: 6px; margin-right: auto;
}
.hamburger-btn:hover { background: rgba(0,0,0,.06); }

/* ── Sidebar overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199;
  animation: overlayIn 200ms ease;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  .sidebar-overlay { display: block; }
  .sidebar {
    position: fixed !important; top: 0; left: 0; bottom: 0;
    width: 260px !important; z-index: 200;
    transform: translateX(-100%);
    transition: transform .25s ease;
    flex-shrink: 0 !important;
  }
  .sidebar.open { transform: translateX(0); }
  .main-grid { grid-template-columns: 1fr !important; }
  .stat-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr !important; }
  .modal { max-width: 100%; width: calc(100% - 16px); }
  .tbl td, .tbl th { padding: 6px 8px; font-size: 12px; }
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  height: 100%;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}
._sidebar_1mwg6_1 {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  position: relative;
  overflow: visible; /* allow dropdown to overflow */
  height: 100vh;
}

/* ── SWITCHER (brand header) ───────────────────────────────────────── */

._switcher_1mwg6_14 {
  position: relative;
  z-index: 100;
  padding: 12px 12px 0;
}

._switcherBtn_1mwg6_20 {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

._switcherBtn_1mwg6_20:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Default brand (no active module) */
._brandDefault_1mwg6_40 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

._brandLogo_1mwg6_48 {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--on-accent);
  flex-shrink: 0;
}

._brandName_1mwg6_62 {
  font-size: 15px;
  font-weight: 700;
  color: var(--sidebar-text);
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Module logo in white card (dislocation style) */
._brandModuleLogo_1mwg6_73 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 7px;
  padding: 6px 10px;
  box-sizing: border-box;
  min-width: 0;
}

._brandModuleLogoImg_1mwg6_85 {
  max-width: 100%;
  max-height: 32px;
  object-fit: contain;
}

._switcherChevron_1mwg6_91 {
  font-size: 10px;
  color: var(--sidebar-muted);
  flex-shrink: 0;
  margin-left: auto;
  line-height: 1;
}

/* Dropdown */
._switcherDropdown_1mwg6_100 {
  position: absolute;
  top: calc(100% + 6px);
  left: 12px;
  right: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 200;
}

._switcherItem_1mwg6_113 {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  transition: background 0.12s ease;
}

._switcherItem_1mwg6_113:hover {
  background: var(--bg);
}

._switcherItemActive_1mwg6_133 {
  background: rgba(84, 105, 250, 0.08);
  color: var(--blue);
}

._switcherItemLogo_1mwg6_138 {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  padding: 2px;
  flex-shrink: 0;
}

._switcherItemKey_1mwg6_148 {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--on-accent);
  flex-shrink: 0;
}

._switcherItemLabel_1mwg6_162 {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._switcherItemCheck_1mwg6_169 {
  font-size: 12px;
  color: var(--blue);
  flex-shrink: 0;
}

/* ── DIVIDER ────────────────────────────────────────────────────────── */

._divider_1mwg6_177 {
  margin: 10px 16px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

/* ── NAV ────────────────────────────────────────────────────────────── */

._nav_1mwg6_186 {
  flex: 1;
  padding: 0 12px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

._navBtn_1mwg6_197 {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--sidebar-muted);
  font-size: 13px;
  font-weight: 400;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

._navBtn_1mwg6_197:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text);
}

._navBtnActive_1mwg6_220 {
  background: rgba(84, 105, 250, 0.15);
  color: var(--on-accent);
  font-weight: 500;
}

/* navIcon is now an emoji span — no SVG stroke needed */
._navIcon_1mwg6_227 {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  width: 18px;
  text-align: center;
}

._navLabel_1mwg6_235 {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._navBadge_1mwg6_242 {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--red-text);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── FOOTER ─────────────────────────────────────────────────────────── */

._footer_1mwg6_255 {
  padding: 10px 16px 14px;
  text-align: center;
  position: relative;
  z-index: 2;
}

._footerText_1mwg6_262 {
  font-size: 11px;
  color: var(--sidebar-muted);
  letter-spacing: 0.3px;
}

._footerText_1mwg6_262 strong {
  font-weight: 600;
  color: var(--sidebar-text);
}

._backBtn_1mwg6_273 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  text-decoration: none;
  color: var(--sidebar-muted);
  font-size: 12px;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

._backBtn_1mwg6_273:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text);
}
/* TenantPicker — обёртка для Select фильтра юрлица в хедере (superadmin). */
._picker_14vtu_2 {
  min-width: 200px;
  max-width: 280px;
  margin-right: 12px;
}
._header_1s6pq_1 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  min-height: 52px;
}

._spacer_1s6pq_14 {
  flex: 1;
}

._profileWrapper_1s6pq_18 {
  position: relative;
}

._profileBtn_1s6pq_22 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s;
}

._profileBtn_1s6pq_22:hover {
  background: var(--card-hover);
}

._avatar_1s6pq_41 {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--on-accent);
  flex-shrink: 0;
}

._displayName_1s6pq_55 {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._backdrop_1s6pq_62 {
  position: fixed;
  inset: 0;
  z-index: 10;
}

._menu_1s6pq_68 {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--sh-md);
  overflow: hidden;
  z-index: 20;
  border: 1px solid var(--border);
}

._menuEmail_1s6pq_81 {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-ter);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._menuDivider_1s6pq_90 {
  height: 1px;
  background: var(--border-light);
  margin: 0 14px;
}

._menuItem_1s6pq_96 {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--red-text);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.1s;
}

._menuItem_1s6pq_96:hover {
  background: var(--red-light);
}
._layout_1eig2_1 {
  display: flex;
  height: 100vh;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  overflow: hidden;
}

._main_1eig2_9 {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

._content_1eig2_17 {
  flex: 1;
  /* НЕ скролл-контейнер и без padding: скролл+фон+отступ живут на обёртке внутри
     каждого Module.tsx (один full-width элемент → скроллбар у края экрана, белый
     фон до краёв, контент с отступом 24). Два вложенных scroll-контейнера давали
     серую рамку + скролл внутри отступа. */
  overflow: hidden;
  min-height: 0;
}
._page_352gh_1 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--login-bg);
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
}

._card_352gh_12 {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 380px;
  padding: 36px 32px;
  background: var(--login-card);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--sh-xl);
  text-align: center;
}

._logo_352gh_25 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  height: 64px;
}

._logoText_352gh_33 {
  font-size: 16px;
  font-weight: 800;
  color: var(--login-text);
  letter-spacing: -0.5px;
}

._title_352gh_40 {
  font-size: 22px;
  font-weight: 700;
  color: var(--login-text);
  margin: 0 0 4px;
}

._subtitle_352gh_47 {
  font-size: 14px;
  color: var(--text-ter);
  margin: 0 0 24px;
}

._form_352gh_53 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

._field_352gh_60 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

._label_352gh_66 {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sec);
}

._error_352gh_72 {
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  color: var(--red-text);
  font-size: 13px;
  text-align: left;
}

._submitBtn_352gh_82 {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
/* Launchpad: fullscreen module picker, light theme, company-picker style */
._page_vjbrl_2 {
  min-height: 100vh;
  width: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  box-sizing: border-box;
  position: relative;
}

/* Top-right actions bar */
._topBar_vjbrl_14 {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 0;
}

/* Centered content wrapper */
._center_vjbrl_23 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

._header_vjbrl_32 {
  margin-bottom: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

._logoMark_vjbrl_41 {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--on-accent);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

._greeting_vjbrl_56 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

._subtitle_vjbrl_64 {
  font-size: 14px;
  color: var(--text-ter);
  margin: 0;
}

/* Company-picker style list — centered, max 700px */
._list_vjbrl_71 {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sh);
}

/* Each module row */
._row_vjbrl_84 {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
  width: 100%;
  font-family: inherit;
}

._row_vjbrl_84:last-child {
  border-bottom: none;
}

._row_vjbrl_84:hover {
  background: var(--card-hover);
}

._row_vjbrl_84:hover ._rowArrow_vjbrl_107 {
  transform: translateX(3px);
  color: var(--text-sec);
}

._rowIcon_vjbrl_112 {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

._rowIconFallback_vjbrl_125 {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}

._rowIconLogo_vjbrl_132 {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

._rowBody_vjbrl_139 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

._rowTitle_vjbrl_147 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._rowDesc_vjbrl_156 {
  font-size: 12px;
  color: var(--text-ter);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._rowArrow_vjbrl_107 {
  flex-shrink: 0;
  color: var(--text-ter);
  transition: color 0.15s, transform 0.15s;
}

/* Empty state */
._empty_vjbrl_171 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  text-align: center;
  gap: 12px;
  max-width: 700px;
  width: 100%;
}

._emptyIcon_vjbrl_183 {
  color: var(--border);
  margin-bottom: 4px;
}

._emptyText_vjbrl_188 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-sec);
  margin: 0;
}

._emptyHint_vjbrl_195 {
  font-size: 13px;
  color: var(--text-ter);
  margin: 0;
}
/* ProfileScr — shell-owned profile page */

._page_1127p_3 {
  min-height: 100vh;
  width: 100%;
  background: var(--bg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px;
  box-sizing: border-box;
}

._card_1127p_14 {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--sh);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */
._cardHeader_1127p_28 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

._title_1127p_34 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

._subtitle_1127p_42 {
  font-size: 13px;
  color: var(--text-ter);
  margin: 0;
}

/* Avatar */
._avatarRow_1127p_49 {
  display: flex;
  align-items: center;
  gap: 16px;
}

._avatarWrap_1127p_55 {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
}

._avatarImg_1127p_65 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

._avatarPlaceholder_1127p_72 {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

._avatarFallback_1127p_80 {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}

._avatarActions_1127p_87 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

._fileInput_1127p_94 {
  display: none;
}

/* Fields */
._fields_1127p_99 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

._fieldLabel_1127p_105 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
}

._fieldInput_1127p_114 {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  width: 100%;
}

._fieldInput_1127p_114:focus {
  border-color: var(--blue);
}

._fieldInput_1127p_114:disabled {
  color: var(--text-ter);
  background: var(--card-hover, var(--bg));
  cursor: not-allowed;
}

/* Error */
._errorMsg_1127p_139 {
  font-size: 13px;
  color: var(--error, #c0392b);
  margin: 0;
}

/* Save row */
._saveRow_1127p_146 {
  display: flex;
  align-items: center;
  gap: 12px;
}

._savedHint_1127p_152 {
  font-size: 13px;
  color: var(--text-ter);
}

/* Hint (loading state) */
._hint_1127p_158 {
  font-size: 14px;
  color: var(--text-ter);
  margin: 0;
  text-align: center;
  padding: 32px 0;
}
._page_1rujv_1 {
  min-height: 100vh;
  background: var(--bg);
  padding: 32px 40px;
  box-sizing: border-box;
}

._header_1rujv_8 {
  margin-bottom: 28px;
}

._title_1rujv_12 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

._subtitle_1rujv_20 {
  font-size: 14px;
  color: var(--text-sec);
  margin: 0;
}

._grid_1rujv_26 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

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

  ._page_1rujv_1 {
    padding: 20px 16px;
  }
}

/* ── Card ── */
._card_1rujv_44 {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

._cardTitle_1rujv_51 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}

/* ── Form fields ── */
._field_1rujv_59 {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

._field_1rujv_59:last-child {
  margin-bottom: 0;
}

._label_1rujv_70 {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sec);
}

._input_1rujv_76 {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

._input_1rujv_76:focus {
  border-color: var(--blue);
}

._input_1rujv_76::placeholder {
  color: var(--text-ter);
}

/* ── Row: two inputs side by side ── */
._row_1rujv_100 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

._portInput_1rujv_107 {
  width: 80px;
}

/* ── Section divider ── */
._divider_1rujv_112 {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 16px 0;
}

/* ── Actions ── */
._actions_1rujv_119 {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ── Presets row ── */
._presets_1rujv_127 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

._presetBtn_1rujv_134 {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-sec);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease, border-color 0.12s ease;
}

._presetBtn_1rujv_134:hover {
  background: var(--border-light);
  border-color: var(--border);
  color: var(--text);
}

._presetBtnActive_1rujv_153 {
  background: var(--blue-light);
  border-color: var(--blue-border);
  color: var(--blue-text);
}

/* ── Time tags ── */
._timeTags_1rujv_160 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

._timeTag_1rujv_160 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  color: var(--blue-text);
  font-size: 12px;
  font-weight: 500;
}

._timeTagRemove_1rujv_180 {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue-text);
  padding: 0;
  line-height: 1;
  font-size: 14px;
  opacity: 0.7;
  font-family: inherit;
}

._timeTagRemove_1rujv_180:hover {
  opacity: 1;
}

/* ── Status feedback ── */
._flash_1rujv_197 {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}

._flashOk_1rujv_204 {
  background: var(--green-light);
  border: 1px solid var(--green-border);
  color: var(--green-text);
}

._flashErr_1rujv_210 {
  background: var(--red-light);
  border: 1px solid var(--red-border);
  color: var(--red-text);
}

/* ── Link row (active modules) ── */
._linkRow_1rujv_217 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

._linkRow_1rujv_217:last-child {
  border-bottom: none;
}

._linkLabel_1rujv_229 {
  font-size: 14px;
  color: var(--text);
}

._linkSub_1rujv_234 {
  font-size: 12px;
  color: var(--text-sec);
  margin-top: 2px;
}

._toggleSection_1rujv_240 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

._collapseTrigger_1rujv_246 {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 12px;
  font-family: inherit;
  text-align: left;
}

._collapseTriggerLabel_1rujv_259 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

._collapseChevron_1rujv_265 {
  color: var(--text-ter);
  font-size: 12px;
  transition: transform 0.2s ease;
}

._collapseChevronOpen_1rujv_271 {
  transform: rotate(180deg);
}
