
    :root {
      --topbar-bg: #f6f8fa;
      --topbar-border: #d0d7de;
      --tab-hover: #eef1f4;
      --tab-active: #1f6feb;
      --text-muted: #57606a;
      --badge-bg: #fdd3d7;
      --badge-text: #cf222e;
      --mobile-header-height: 72px;
      --layer-header: 9000;
      --layer-header-dropdown: 9050;
      --layer-dropdown: 9100;
      --layer-overlay: 10000;
      --layer-admin-sidebar: 11000;
      --admin-sidebar-top: 112px;
    }
  
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f9f9f9;
      color: #24292f;
      margin: 0;
      padding-bottom: 0;
    }

    body.no-scroll {
      overflow: hidden;
    }

    .lk-footer {
      padding: 0.8rem 1rem 1.1rem;
      text-align: center;
      color: #6b7280;
      font-size: 0.82rem;
    }

    .lk-footer a {
      color: #4b5563;
      text-decoration: none;
      font-weight: 500;
    }

    .lk-footer a:hover {
      text-decoration: underline;
    }

    .portal-onboarding {
      position: fixed;
      inset: 0;
      z-index: calc(var(--layer-overlay, 10000) + 20);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1.25rem;
      background: rgba(15, 23, 42, 0.46);
      backdrop-filter: blur(8px);
    }

    .portal-onboarding.is-open {
      display: flex;
    }

    .portal-onboarding__card {
      width: min(720px, 100%);
      border-radius: 28px;
      border: 1px solid rgba(148, 163, 184, 0.28);
      background: #ffffff;
      box-shadow: 0 28px 90px rgba(15, 23, 42, 0.22);
      overflow: hidden;
    }

    .portal-onboarding__header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
      padding: 1.35rem 1.5rem 1rem;
      border-bottom: 1px solid #e5e7eb;
      background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    }

    .portal-onboarding__eyebrow {
      margin: 0 0 0.35rem;
      color: #2563eb;
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .portal-onboarding__title {
      margin: 0;
      color: #111827;
      font-size: clamp(1.45rem, 3vw, 2.15rem);
      line-height: 1.08;
    }

    .portal-onboarding__close {
      width: 40px;
      height: 40px;
      border: 1px solid #d1d5db;
      border-radius: 14px;
      background: #ffffff;
      color: #334155;
      cursor: pointer;
      font-size: 1rem;
    }

    .portal-onboarding__body {
      padding: 1.35rem 1.5rem;
    }

    .portal-onboarding__step {
      display: none;
      gap: 1rem;
      align-items: flex-start;
    }

    .portal-onboarding__step.is-active {
      display: grid;
      grid-template-columns: 56px minmax(0, 1fr);
    }

    .portal-onboarding__icon {
      width: 56px;
      height: 56px;
      display: grid;
      place-items: center;
      border-radius: 18px;
      background: #eff6ff;
      color: #2563eb;
      font-size: 1.4rem;
    }

    .portal-onboarding__step h3 {
      margin: 0 0 0.5rem;
      color: #111827;
      font-size: 1.25rem;
    }

    .portal-onboarding__step p {
      margin: 0;
      color: #4b5563;
      font-size: 1rem;
      line-height: 1.55;
    }

    .portal-onboarding__progress {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0 1.5rem 1rem;
    }

    .portal-onboarding__dot {
      width: 9px;
      height: 9px;
      border-radius: 999px;
      background: #cbd5e1;
      transition: width 0.2s ease, background 0.2s ease;
    }

    .portal-onboarding__dot.is-active {
      width: 28px;
      background: #2563eb;
    }

    .portal-onboarding__actions {
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 1rem 1.5rem 1.35rem;
      border-top: 1px solid #e5e7eb;
      flex-wrap: wrap;
    }

    .portal-onboarding__actions-group {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .portal-onboarding__button {
      border: 0;
      border-radius: 14px;
      padding: 0.72rem 1rem;
      background: #eef2ff;
      color: #1d4ed8;
      cursor: pointer;
      font-weight: 800;
      font-size: 0.95rem;
    }

    .portal-onboarding__button--primary {
      background: #2563eb;
      color: #ffffff;
      box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
    }

    .portal-onboarding__button--quiet {
      background: transparent;
      color: #64748b;
    }

    header {
      background-color: #ffffff;
      border-bottom: 1px solid #e2e8f0;
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
      position: -webkit-sticky;
      position: sticky;
      top: 0;
      z-index: var(--layer-header, 9000);
      isolation: isolate;
    }

    header,
    header .top-bar,
    header .tab-nav {
      background-color: #ffffff;
    }

    header::before {
      content: "";
      position: absolute;
      inset: 0;
      background: #ffffff;
      z-index: -1;
      pointer-events: none;
    }

    .top-bar {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      padding: 0.75rem 1.5rem 0.5rem;
      position: relative;
      z-index: var(--layer-header, 9000);
    }

    .top-bar-row {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .repo-identity {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      min-width: 200px;
    }

    .company-switcher-bar {
      display: flex;
      align-items: center;
      margin-left: 1.5rem;
      min-width: 220px;
    }

    .company-switcher__toggle-label {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      line-height: 1.2;
      flex-wrap: wrap;
    }

    .company-switcher__toggle-label--empty {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.2rem;
    }

    .company-switcher__name {
      font-weight: 600;
      font-size: 0.95rem;
      color: #1f2328;
    }

    .company-switcher__inn {
      font-size: 0.78rem;
      color: var(--text-muted);
      white-space: nowrap;
    }

    .company-switcher__placeholder {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .company-switcher__static {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.5rem 0.9rem;
      border-radius: 12px;
      border: 1px solid var(--topbar-border);
      background: #ffffff;
      color: #1f2328;
    }

    .company-switcher__static i {
      color: var(--text-muted);
      font-size: 1rem;
    }

    .brand-logo {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: #1f6feb1a;
      color: #1f6feb;
      font-size: 1.1rem;
    }

    .repo-breadcrumb {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.95rem;
      color: var(--text-muted);
    }

    .repo-breadcrumb a {
      color: #1f2328;
      font-weight: 600;
      text-decoration: none;
    }

    .repo-breadcrumb span.separator {
      color: var(--text-muted);
    }

    .repo-section {
      background: var(--topbar-bg);
      color: var(--text-muted);
      padding: 0.2rem 0.5rem;
      border-radius: 999px;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .global-search {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.35rem 0.75rem;
      border-radius: 999px;
      border: 1px solid var(--topbar-border);
      background: #ffffff;
      flex: 1 1 300px;
      max-width: 420px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .global-search i {
      color: var(--text-muted);
    }

    .global-search input[type="search"] {
      flex: 1;
      border: none;
      background: transparent;
      font-size: 0.95rem;
      outline: none;
      color: #1f2328;
    }

    .global-search input[type="search"]::placeholder {
      color: var(--text-muted);
    }

    .admin-dropdown {
      position: relative;
      display: flex;
      align-items: stretch;
      margin-left: 1rem;
    }

    .admin-dropdown--manage {
      display: none;
    }

    .admin-sidebar-launch {
      display: none;
      align-items: center;
      margin-left: 1rem;
    }

    .admin-sidebar-trigger {
      min-width: 220px;
      justify-content: space-between;
      gap: 0.7rem;
      border-color: rgba(37, 99, 235, 0.28);
      box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
    }

    .admin-sidebar-trigger__text {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      line-height: 1.08;
      text-align: left;
      flex: 1;
      min-width: 0;
    }

    .admin-sidebar-trigger__title {
      font-weight: 700;
      color: #2563eb;
      font-size: 0.98rem;
    }

    .admin-sidebar-trigger__hint {
      color: var(--text-muted);
      font-size: 0.74rem;
    }

    .admin-sidebar-dock {
      display: none;
    }

    .admin-sidebar-dock:hover,
    .admin-sidebar-dock:focus {
      outline: none;
    }

    .admin-sidebar-dock i {
      font-size: 1rem;
    }

    .admin-sidebar-dock span {
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .admin-shell {
      display: block;
    }

    .admin-shell__content {
      min-width: 0;
    }

    .admin-sidebar-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.2);
      backdrop-filter: blur(3px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.24s ease;
      z-index: calc(var(--layer-admin-sidebar, 11000) - 1);
    }

    .admin-sidebar {
      position: relative;
      top: auto;
      left: auto;
      bottom: auto;
      width: 58px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fbff 100%);
      border: 1px solid rgba(148, 163, 184, 0.22);
      border-radius: 20px;
      box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
      transform: none;
      transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, background 0.24s ease;
      z-index: var(--layer-admin-sidebar, 11000);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    body.admin-sidebar-open .admin-sidebar {
      width: min(286px, calc(100vw - 1.25rem));
      box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
    }

    .admin-sidebar__header {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      padding: 0.58rem 0.45rem 0.38rem;
      border-bottom: 1px solid rgba(148, 163, 184, 0.22);
      background: rgba(255, 255, 255, 0.86);
    }

    .admin-sidebar__header > div {
      display: none;
    }

    .admin-sidebar__eyebrow {
      margin: 0 0 0.2rem;
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #64748b;
    }

    .admin-sidebar__title {
      margin: 0;
      font-size: 1.25rem;
      font-weight: 800;
      color: #0f172a;
    }

    .admin-sidebar__subtitle {
      margin: 0.25rem 0 0;
      font-size: 0.78rem;
      color: var(--text-muted);
      line-height: 1.4;
    }

    .admin-sidebar__close {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 12px;
      border: 1px solid rgba(148, 163, 184, 0.28);
      background: #ffffff;
      color: #334155;
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
      transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
      margin: 0 auto;
      flex: 0 0 auto;
    }

    .admin-sidebar__close:hover,
    .admin-sidebar__close:focus {
      border-color: rgba(37, 99, 235, 0.3);
      color: #2563eb;
      transform: translateY(-1px);
      outline: none;
    }

    .admin-sidebar__close i {
      transition: transform 0.22s ease;
    }

    body.admin-sidebar-open .admin-sidebar__close i {
      transform: rotate(180deg);
    }

    .admin-sidebar__nav {
      flex: 1;
      overflow-y: auto;
      padding: 0.4rem;
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }

    .admin-sidebar__section {
      display: flex;
      flex-direction: column;
      gap: 0.28rem;
    }

    .admin-sidebar__section-title {
      padding: 0;
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #64748b;
      opacity: 0;
      max-height: 0;
      overflow: hidden;
      margin: 0;
      transform: translateX(-8px);
      transition: opacity 0.2s ease, max-height 0.2s ease, transform 0.2s ease, margin 0.2s ease, padding 0.2s ease;
    }

    .admin-sidebar__link {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      padding: 0.64rem 0.48rem;
      border-radius: 16px;
      border: 1px solid transparent;
      background: rgba(255, 255, 255, 0.76);
      color: #1f2328;
      text-decoration: none;
      transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, padding 0.18s ease;
    }

    .admin-sidebar__link:hover,
    .admin-sidebar__link:focus {
      text-decoration: none;
      color: #1d4ed8;
      background: #ffffff;
      border-color: rgba(37, 99, 235, 0.22);
      transform: translateX(1px);
      outline: none;
    }

    .admin-sidebar__link.is-active {
      background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.06));
      border-color: rgba(37, 99, 235, 0.24);
      color: #1d4ed8;
      box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
    }

    .admin-sidebar__link i {
      width: 0.95rem;
      text-align: center;
      color: #334155;
      font-size: 0.9rem;
      flex: 0 0 0.95rem;
    }

    .admin-sidebar__link.is-active i {
      color: #1d4ed8;
    }

    .admin-sidebar__link-label {
      display: flex;
      flex-direction: column;
      gap: 0.18rem;
      min-width: 0;
      max-width: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateX(-10px);
      transition: opacity 0.2s ease, max-width 0.2s ease, transform 0.2s ease;
    }

    .admin-sidebar__link-title {
      font-size: 0.86rem;
      font-weight: 700;
      line-height: 1.25;
      white-space: nowrap;
    }

    .admin-sidebar__link-meta {
      font-size: 0.71rem;
      line-height: 1.3;
      color: #64748b;
      display: none;
    }

    body.admin-sidebar-open .admin-sidebar__header {
      align-items: flex-start;
      justify-content: space-between;
      padding: 0.78rem 0.72rem 0.68rem;
    }

    body.admin-sidebar-open .admin-sidebar__header > div {
      display: block;
    }

    body.admin-sidebar-open .admin-sidebar__close {
      margin: 0;
    }

    body.admin-sidebar-open .admin-sidebar__section-title {
      opacity: 1;
      max-height: 40px;
      margin: 0 0 0.12rem;
      padding: 0 0.3rem;
      transform: translateX(0);
    }

    body.admin-sidebar-open .admin-sidebar__link {
      justify-content: flex-start;
      padding: 0.62rem 0.7rem;
    }

    body.admin-sidebar-open .admin-sidebar__link-label {
      max-width: 196px;
      opacity: 1;
      transform: translateX(0);
    }

    body.admin-sidebar-open .admin-sidebar__link-meta {
      display: block;
    }

    @media (min-width: 1025px) {
      .admin-shell {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.7rem 0.85rem 0;
      }

      .admin-shell__content {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
      }

      .admin-sidebar-overlay {
        display: none;
      }

      .admin-sidebar {
        position: sticky;
        top: var(--admin-sidebar-top, 112px);
        flex: 0 0 auto;
        height: calc(100vh - var(--admin-sidebar-top, 112px) - 1rem);
        max-height: calc(100vh - var(--admin-sidebar-top, 112px) - 1rem);
        z-index: 1;
      }

      body.admin-sidebar-open .admin-sidebar {
        width: 286px;
      }

      body.admin-sidebar-available main,
      body.admin-sidebar-available .lk-footer,
      body.admin-sidebar-available.admin-sidebar-open main,
      body.admin-sidebar-available.admin-sidebar-open .lk-footer {
        margin-left: 0;
        transition: none;
      }

      body.admin-sidebar-available .admin-shell__content main {
        margin-top: 0;
      }
    }

    .admin-dropdown__toggle {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      border: 1px solid var(--topbar-border);
      border-radius: 999px;
      padding: 0.35rem 0.9rem;
      background: #ffffff;
      color: #1f2328;
      font-size: 0.9rem;
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    }

    .admin-dropdown__toggle:hover,
    .admin-dropdown__toggle:focus {
      border-color: rgba(31, 111, 235, 0.4);
      background: var(--topbar-bg);
      color: var(--tab-active);
      outline: none;
    }

    .admin-dropdown__chevron {
      transition: transform 0.2s ease;
    }

    .admin-dropdown.is-open .admin-dropdown__chevron {
      transform: rotate(-180deg);
    }

    .admin-dropdown__menu {
      position: absolute;
      top: calc(100% + 0.4rem);
      right: 0;
      min-width: 220px;
      background: #ffffff;
      border: 1px solid var(--topbar-border);
      border-radius: 12px;
      box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
      padding: 0.5rem 0;
      display: none;
      flex-direction: column;
      z-index: var(--layer-header-dropdown, 9050);
    }

    .admin-dropdown.is-open .admin-dropdown__menu,
    .admin-dropdown:focus-within .admin-dropdown__menu {
      display: flex;
    }

    .admin-dropdown__item {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.6rem 1rem;
      color: #1f2328;
      text-decoration: none;
      font-size: 0.9rem;
      transition: background 0.15s ease, color 0.15s ease;
    }

    .admin-dropdown__item:hover,
    .admin-dropdown__item:focus {
      background: var(--tab-hover);
      color: var(--tab-active);
      outline: none;
    }

    .admin-dropdown__item.is-active {
      background: rgba(31, 111, 235, 0.12);
      color: var(--tab-active);
      font-weight: 600;
    }

    .admin-dropdown__item.is-active i {
      color: var(--tab-active);
    }

    .admin-dropdown__item--button {
      width: 100%;
      background: none;
      border: none;
      text-align: left;
      padding: 0.6rem 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.75rem;
      color: inherit;
      cursor: pointer;
      font: inherit;
    }

    .admin-dropdown__item--button.is-active {
      background: rgba(31, 111, 235, 0.12);
      color: var(--tab-active);
      font-weight: 600;
    }

    .company-switcher .admin-dropdown__toggle {
      border-radius: 12px;
    }

    .company-switcher .admin-dropdown__menu {
      min-width: 280px;
    }

    .company-switcher__option {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
    }

    .company-switcher__name {
      font-weight: 600;
      font-size: 0.9rem;
      color: #1f2328;
    }

    .company-switcher__meta {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .portal-switcher .admin-dropdown__toggle {
      gap: 0.5rem;
      min-width: 220px;
    }

    .portal-switcher__label {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      line-height: 1.2;
    }

    .portal-switcher__title {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.02em;
      color: #64748b;
    }

    .portal-switcher__value {
      font-weight: 600;
      color: #111827;
    }

    .portal-switcher__option {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
    }

    .portal-switcher__name {
      font-weight: 600;
    }

    .portal-switcher__meta {
      color: #6b7280;
      font-size: 0.78rem;
    }

    .top-bar-actions {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      margin-left: auto;
    }

    .top-bar-telegram-link {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.32rem 0.75rem;
      border-radius: 12px;
      border: 1px solid var(--topbar-border);
      background: #ffffff;
      color: #1f2328;
      font-size: 0.85rem;
      text-decoration: none;
      cursor: pointer;
      font: inherit;
      line-height: 1.1;
      box-shadow: none;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }

    .top-bar-telegram-link:hover,
    .top-bar-telegram-link:focus {
      background: var(--topbar-bg);
      border-color: rgba(31, 111, 235, 0.4);
      color: var(--tab-active);
      outline: none;
    }

    .top-bar-telegram-link i {
      color: #229ed9;
      font-size: 0.95rem;
    }

    .top-bar-telegram-links {
      display: flex;
      flex-direction: row;
      gap: 0.45rem;
      align-items: center;
      flex-wrap: wrap;
    }

    .menu-toggle {
      display: none;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 8px;
      border: 1px solid var(--topbar-border);
      background: #ffffff;
      color: #1f2328;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
    }

    .menu-toggle:hover,
    .menu-toggle:focus {
      background: var(--topbar-bg);
      border-color: rgba(31, 111, 235, 0.4);
      color: var(--tab-active);
    }

    .icon-button {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 6px;
      border: 1px solid transparent;
      color: #1f2328;
      background: transparent;
      text-decoration: none;
      transition: background 0.15s, border-color 0.15s;
    }

    .top-bar-actions .icon-button--task-notifications {width:auto;gap:6px;padding:0 9px;border-color:var(--topbar-border);color:#245579;}
    .task-notifications-label {font-size:12px;font-weight:600;}
    @media(max-width:768px){.task-notifications-label{display:none}.top-bar-actions .icon-button--task-notifications{width:32px;padding:0;flex:0 0 32px;}}

    .icon-button--admin-sidebar {
      display: none;
    }

    .icon-button:hover,
    .icon-button:focus {
      background: var(--topbar-bg);
      border-color: var(--topbar-border);
    }

    .icon-badge {
      position: absolute;
      top: -4px;
      right: -4px;
      background: var(--badge-bg);
      color: var(--badge-text);
      border-radius: 10px;
      padding: 0 6px;
      font-size: 0.65rem;
      font-weight: 600;
    }

    .profile-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.25rem 0.6rem;
      border-radius: 999px;
      border: 1px solid transparent;
      color: #1f2328;
      text-decoration: none;
      transition: background 0.15s, border-color 0.15s;
    }

    .profile-link:hover,
    .profile-link:focus {
      background: var(--topbar-bg);
      border-color: var(--topbar-border);
    }

    .profile-link .avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: #1f6feb1a;
      color: #1f6feb;
      font-weight: 600;
      font-size: 0.85rem;
      text-transform: uppercase;
    }

    .profile-name {
      font-size: 0.85rem;
      color: var(--text-muted);
      max-width: 140px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .tab-nav {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.45rem;
      margin: 0;
      overflow-x: auto;
      position: relative;
      z-index: var(--layer-header, 9000);
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      background: #f8fafc;
    }

    .global-search--mobile {
      display: none;
    }

    .tab-nav-row {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      gap: 0.35rem;
      flex: 0 0 auto;
    }

    .tab-nav-row--secondary {
      padding-top: 0;
      padding-left: 0;
      margin-left: 0;
      border-top: none;
    }

    .tab-link {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.45rem 0.8rem;
      border-radius: 999px;
      font-size: 0.85rem;
      color: #1f2328;
      text-decoration: none;
      border: 1px solid transparent;
      white-space: nowrap;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
    }

    .tab-link i {
      font-size: 0.9rem;
      color: var(--text-muted);
    }

    .tab-link:hover,
    .tab-link:focus {
      background: var(--tab-hover);
      border-color: var(--topbar-border);
    }

    .tab-link.is-active {
      background: #2563eb;
      border-color: #2563eb;
      color: #ffffff;
      font-weight: 600;
      box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
    }

    .tab-link.is-active i {
      color: #ffffff;
    }

    .tab-link .badge {
      margin-left: 0.25rem;
      background: var(--badge-bg);
      color: var(--badge-text);
      border-radius: 999px;
      padding: 0 0.45rem;
      font-size: 0.7rem;
      font-weight: 600;
    }

    .tab-link__text {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      line-height: 1.05;
    }

    .tab-link__title {
      font-weight: 500;
      color: inherit;
    }

    .tab-link__soon {
      font-size: 0.65rem;
      color: var(--text-muted);
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .tab-link--soon {
      color: var(--text-muted);
      background: rgba(15, 23, 42, 0.04);
      border-color: rgba(31, 35, 40, 0.08);
      cursor: default;
      pointer-events: none;
    }

    .tab-link--soon i {
      color: rgba(100, 116, 139, 0.85);
    }

    .tab-link--soon .tab-link__title {
      color: #4b5563;
      font-weight: 600;
    }

    main {
        width: 100%;
        padding: 2rem 3rem;
        box-sizing: border-box;
        margin-top: 1.25rem;
        position: relative;
        z-index: 0;
    }

    .search-page {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .search-page__header h1 {
      margin: 0;
      font-size: 1.75rem;
      font-weight: 600;
    }

    .search-page__header p {
      margin: 0.25rem 0 0;
      color: var(--text-muted);
    }

    .search-page__form {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: center;
    }

    .search-page__field {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex: 1 1 320px;
      border: 1px solid var(--topbar-border);
      border-radius: 999px;
      padding: 0.65rem 1rem;
      background: #fff;
    }

    .search-page__field i {
      color: var(--text-muted);
    }

    .search-page__field input[type="search"] {
      border: none;
      outline: none;
      flex: 1;
      font-size: 1rem;
    }

    .search-page__reset {
      color: var(--text-muted);
      font-size: 1.25rem;
      line-height: 1;
      text-decoration: none;
    }

    .search-page__reset:hover {
      color: #cf222e;
    }

    .search-page__submit {
      background: #1f6feb;
      color: #fff;
      border: none;
      border-radius: 999px;
      padding: 0.65rem 1.5rem;
      font-size: 1rem;
      cursor: pointer;
      transition: background 0.2s;
    }

    .search-page__submit:hover {
      background: #1158c7;
    }

    .search-page__summary {
      font-size: 0.95rem;
      color: var(--text-muted);
    }

    .search-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1rem;
    }

    .search-card {
      background: #fff;
      border: 1px solid #d8dee4;
      border-radius: 12px;
      padding: 1.25rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      min-height: 240px;
    }

    .search-card header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      color: var(--text-muted);
      text-transform: uppercase;
      font-size: 0.75rem;
      letter-spacing: 0.04em;
    }

    .search-card h2 {
      margin: 0;
      font-size: 0.9rem;
      font-weight: 600;
      color: #1f2328;
      text-transform: none;
      letter-spacing: normal;
    }

    .search-card__count {
      background: var(--topbar-bg);
      color: var(--text-muted);
      border-radius: 999px;
      padding: 0.15rem 0.55rem;
      font-weight: 600;
      font-size: 0.75rem;
    }

    .search-card ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
    }

    .search-card__link {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      text-decoration: none;
      border: 1px solid transparent;
      border-radius: 10px;
      padding: 0.6rem 0.75rem;
      transition: border-color 0.2s, background 0.2s;
      color: #1f2328;
    }

    .search-card__link:hover,
    .search-card__link:focus {
      border-color: rgba(31, 111, 235, 0.35);
      background: #1f6feb0d;
    }

    .search-card__title {
      font-weight: 600;
    }

    .search-card__meta {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .search-card__empty {
      margin: 0;
      color: var(--text-muted);
      font-size: 0.9rem;
    }

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

    @media (max-width: 1024px) {
      body.admin-sidebar-open {
        overflow: hidden;
      }

      main {
        padding: 1.5rem;
        margin-top: 1.25rem;
      }

      .admin-shell {
        display: block;
        padding: 0;
      }

      body.admin-sidebar-available main,
      body.admin-sidebar-available .lk-footer,
      body.admin-sidebar-available.admin-sidebar-open main,
      body.admin-sidebar-available.admin-sidebar-open .lk-footer {
        margin-left: 0;
      }

      body.admin-sidebar-open .admin-sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
      }
    }

    @media (max-width: 768px) {
      html,
      body {
        max-width: 100%;
        overflow-x: hidden;
      }

      .top-bar {
        padding: 0.75rem 1rem 0.5rem;
      }

      .admin-sidebar {
        width: calc(100vw - 0.35rem);
      }

      .top-bar-actions {
        width: 100%;
        justify-content: center;
        gap: 0.6rem;
      }

      .top-bar-actions .icon-button,
      .top-bar-actions .top-bar-telegram-link {
        flex: 1 1 100%;
      }

      .profile-name {
        display: none;
      }

      main {
        padding: 1.25rem;
        margin-top: 1.25rem;
      }
    }



    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 1rem;
      background: #fff;
      border: 1px solid #eaeaea;
    }

    th, td {
      text-align: left;
      padding: 12px 16px;
      border-top: 1px solid #eee;
    }

    th {
      background: #f3f3f3;
      font-weight: 600;
    }

    a {
      color: #007aff;
    }

    a:hover {
      text-decoration: underline;
    }

    input[type="text"], input[type="date"], select {
      padding: 0.5rem;
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    button {
      background: #007aff;
      color: #fff;
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      cursor: pointer;
    }

    button:hover {
      background: #005fcc;
    }

    .badge {
      background: red;
      color: #fff;
      border-radius: 10px;
      padding: 0 5px;
      font-size: 0.75rem;
      margin-left: 4px;
    }

    .mobile-nav-overlay {
      display: none;
    }

    @media (max-width: 1024px) {
      .top-bar {
        padding: 0.75rem 1rem 1rem;
        gap: 0.75rem;
      }

      .top-bar-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
      }

      .repo-identity {
        min-width: 0;
      }

      .repo-breadcrumb {
        flex-wrap: wrap;
      }

      .global-search,
      .global-search--mobile {
        display: none;
      }

      .admin-dropdown {
        width: 100%;
        margin-left: 0;
      }

      .admin-sidebar-launch {
        display: none !important;
      }

      .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(380px, calc(100vw - 0.8rem));
        border-radius: 0 28px 28px 0;
        transform: translateX(-108%);
      }

      body.admin-sidebar-open .admin-sidebar {
        width: min(380px, calc(100vw - 0.8rem));
        transform: translateX(0);
      }

      .admin-sidebar__header {
        align-items: flex-start;
        justify-content: space-between;
        padding: 1.15rem 1rem 0.95rem;
      }

      .admin-sidebar__header > div {
        display: block;
      }

      .admin-sidebar__close {
        margin: 0;
      }

      .admin-sidebar__section-title {
        opacity: 1;
        max-height: 40px;
        margin: 0 0 0.12rem;
        padding: 0 0.35rem;
        transform: translateX(0);
      }

      .admin-sidebar__link {
        justify-content: flex-start;
        padding: 0.82rem 0.92rem;
      }

      .admin-sidebar__link-label {
        max-width: 260px;
        opacity: 1;
        transform: translateX(0);
      }

      .admin-sidebar__link-meta {
        display: block;
      }

      .admin-dropdown + .admin-dropdown {
        margin-top: 0.35rem;
      }

      .admin-dropdown__toggle {
        width: 100%;
        justify-content: space-between;
        border-radius: 10px;
        padding: 0.6rem 0.9rem;
      }

      .admin-dropdown__menu {
        position: static;
        width: 100%;
        margin-top: 0.4rem;
        box-shadow: none;
        border-radius: 12px;
      }

      .admin-dropdown__item {
        padding: 0.7rem 0.9rem;
      }

      .admin-dropdown--manage {
        display: flex;
      }

      .company-switcher-bar {
        margin-left: 0;
        width: 100%;
      }

      .company-switcher {
        width: 100%;
      }

      .company-switcher .admin-dropdown__toggle {
        width: 100%;
      }

      .company-switcher__static {
        width: 100%;
        border-radius: 10px;
      }

      .top-bar-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        gap: 0.45rem;
        min-height: 56px;
        padding: 0.45rem 0.35rem 0.6rem;
        scroll-padding-inline: 0.2rem;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
      }

      .top-bar-actions::-webkit-scrollbar {
        display: none;
      }

      .top-bar-actions .icon-button {
        box-sizing: border-box;
        flex: 0 0 auto;
        min-width: 0;
        width: 46px;
        height: 46px;
        border: 1px solid var(--topbar-border);
        border-radius: 12px;
        padding: 0;
        background: #ffffff;
        justify-content: center;
        scroll-snap-align: start;
      }

      .top-bar-actions .icon-badge {
        top: 0;
        right: 0;
        transform: translate(22%, -28%);
      }

      .top-bar-actions .icon-button i {
        font-size: 1rem;
      }

      .top-bar-actions .top-bar-telegram-link {
        flex: 0 1 auto;
        justify-content: center;
        border-radius: 12px;
        padding: 0.45rem 0.7rem;
        font-size: 0.8rem;
        scroll-snap-align: start;
      }

      .top-bar-actions .profile-link {
        display: inline-flex;
        flex: 1 1 100%;
        width: 100%;
        justify-content: space-between;
        background: #ffffff;
        border: 1px solid var(--topbar-border);
        border-radius: 10px;
        padding: 0.65rem 0.9rem;
        order: 5;
      }

      .admin-dropdown--manage-mobile,
      .profile-link--mobile-hide,
      .icon-button--mobile-hide {
        display: none !important;
      }

      .top-bar-actions {
        justify-content: flex-start;
        align-items: center;
      }

      .top-bar-actions > .icon-button:not(.icon-button--mobile-hide) {
        display: inline-flex !important;
      }

      .top-bar-actions > .top-bar-telegram-links:not(.top-bar-telegram-links--mobile),
      .top-bar-actions > .profile-link:not(.profile-link--mobile-hide) {
        display: none !important;
      }

      .top-bar-telegram-links--mobile {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        flex: 0 0 auto;
        padding-right: 0.2rem;
      }

      .top-bar-telegram-link--telegram span {
        display: none;
      }

      .top-bar-telegram-link--telegram {
        width: 44px;
        height: 44px;
        padding: 0;
      }

      .profile-name {
        display: inline;
      }

      .menu-toggle,
      .mobile-nav-overlay {
        display: none !important;
      }

      .tab-nav {
        display: flex !important;
        gap: 0.45rem;
        padding: 0.5rem 0.55rem;
        overflow-x: auto;
        overflow-y: visible;
        scroll-padding-inline: 0.55rem;
        scrollbar-width: none;
      }

      .tab-nav::-webkit-scrollbar {
        display: none;
      }

      .tab-nav-row {
        gap: 0.4rem;
        padding-right: 0.15rem;
      }

      .tab-link {
        min-height: 44px;
        padding: 0.55rem 0.88rem;
        border-radius: 12px;
      }

      .icon-button--admin-sidebar {
        display: inline-flex !important;
      }

      .top-bar-telegram-link--accounting {
        display: none;
      }

      main {
        padding: 1.25rem 1rem;
        margin-top: 1rem;
        max-width: 100vw;
        overflow-x: hidden;
      }

      main img,
      main svg,
      main canvas,
      main video {
        max-width: 100%;
        height: auto;
      }

      main .mobile-table-scroll,
      main .overflow-x-auto,
      main .table-wrapper,
      main .cr-table-wrap,
      main .nok-table-wrap {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
      }

      main .mobile-table-scroll {
        margin-top: 1rem;
        padding-bottom: 0.15rem;
      }

      main .mobile-table-scroll > table {
        margin-top: 0;
      }

      main table {
        width: max-content;
        min-width: 100%;
        max-width: none;
        white-space: nowrap;
      }

      main th,
      main td {
        white-space: nowrap;
      }

      main input,
      main select,
      main textarea,
      main button {
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px;
      }

      .portal-onboarding {
        align-items: flex-end;
        padding: 0.75rem;
      }

      .portal-onboarding__card {
        border-radius: 24px;
        max-height: calc(100vh - 1.5rem);
        overflow-y: auto;
      }

      .portal-onboarding__step.is-active {
        grid-template-columns: 1fr;
      }

      .portal-onboarding__actions,
      .portal-onboarding__actions-group {
        flex-direction: column-reverse;
      }

      .portal-onboarding__button {
        width: 100%;
      }
    }

    .nrs-manager-banner {
      margin: 1rem auto 0;
      max-width: 1100px;
      background: linear-gradient(135deg, rgba(14, 116, 144, 0.12), rgba(14, 116, 144, 0.04));
      border: 1px solid rgba(14, 116, 144, 0.3);
      border-radius: 16px;
      padding: 0.9rem 1.2rem;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.6rem 1.2rem;
      color: #0f172a;
      font-weight: 600;
      font-size: 0.95rem;
    }

    .nrs-manager-banner span {
      font-weight: 700;
      color: #0f172a;
    }


    /* GitHub-like nav alignment */
    .tab-nav {
      border-radius: 16px;
      border-color: #d0d7de;
      background: #f6f8fa;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    }

    .tab-link {
      border-radius: 10px;
      color: #24292f;
    }

    .tab-link.is-active {
      background: #1f6feb;
      border-color: #1f6feb;
      box-shadow: 0 6px 14px rgba(31, 111, 235, 0.25);
    }

    /* UI Preview: light editorial redesign inspired by the reference boards */
    html.theme-next {
      --page-bg: #f4f6fa;
      --page-bg-soft: #eef2f7;
      --surface-panel: rgba(255, 255, 255, 0.94);
      --surface-panel-strong: #ffffff;
      --surface-muted: #f7f9fc;
      --surface-line: #e5ebf2;
      --surface-line-strong: #d5dde8;
      --surface-shadow: 0 20px 48px rgba(15, 23, 42, 0.06);
      --surface-shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.045);
      --ink-main: #111827;
      --ink-soft: #4b5563;
      --ink-muted: #7b8798;
      --brand-main: #2563eb;
      --brand-main-2: #1d4ed8;
      --brand-soft: #edf4ff;
      --success-soft: #eaf9f0;
      --warning-soft: #fff4df;
      --danger-soft: #fff1f2;
    }

    html.theme-next body {
      background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.04), transparent 26%),
        linear-gradient(180deg, #f8fafc 0%, var(--page-bg) 100%);
      color: var(--ink-main);
    }

    html.theme-next body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.24), transparent 22%),
        radial-gradient(circle at 80% 0%, rgba(148, 163, 184, 0.08), transparent 24%);
      z-index: -1;
    }

    html.theme-next header {
      border-bottom: 1px solid transparent;
      background: transparent;
      box-shadow: none;
      padding: 0.95rem 1.15rem 0;
    }

    html.theme-next header::before {
      display: none;
    }

    html.theme-next .top-bar,
    html.theme-next .tab-nav {
      max-width: 1680px;
      margin: 0 auto;
      border: 1px solid var(--surface-line);
      background: var(--surface-panel);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      box-shadow: var(--surface-shadow-soft);
    }

    html.theme-next .top-bar {
      border-radius: 26px;
      padding: 1rem 1.15rem;
      gap: 1rem;
    }

    html.theme-next .top-bar-row {
      gap: 1rem;
    }

    html.theme-next .repo-identity {
      gap: 0.95rem;
    }

    html.theme-next .brand-logo {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      background: #edf4ff;
      border: 1px solid #dbe7fb;
      color: var(--brand-main);
      font-size: 1.1rem;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
    }

    html.theme-next .repo-breadcrumb {
      gap: 0.4rem;
      font-size: 0.98rem;
      color: var(--ink-muted);
    }

    html.theme-next .repo-breadcrumb a {
      color: var(--ink-main);
      font-weight: 800;
      letter-spacing: -0.035em;
    }

    html.theme-next .repo-section {
      background: #f1f5f9;
      color: var(--ink-soft);
      padding: 0.3rem 0.7rem;
      font-size: 0.72rem;
      font-weight: 700;
      border-radius: 999px;
      border: 1px solid #e2e8f0;
    }

    html.theme-next .global-search {
      min-height: 46px;
      border: 1px solid var(--surface-line);
      background: var(--surface-panel-strong);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
      padding: 0.45rem 1rem;
      border-radius: 16px;
      max-width: 520px;
    }

    html.theme-next .global-search i,
    html.theme-next .profile-name,
    html.theme-next .top-bar-telegram-link,
    html.theme-next .company-switcher__inn,
    html.theme-next .company-switcher__placeholder {
      color: var(--ink-muted);
    }

    html.theme-next .top-bar-actions {
      gap: 0.5rem;
    }

    html.theme-next .icon-button,
    html.theme-next .profile-link,
    html.theme-next .top-bar-telegram-link,
    html.theme-next .company-switcher__static,
    html.theme-next .admin-dropdown__toggle {
      border: 1px solid var(--surface-line);
      background: var(--surface-panel-strong);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
    }

    html.theme-next .icon-button {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      color: var(--ink-soft);
    }

    html.theme-next .icon-button:hover,
    html.theme-next .icon-button:focus,
    html.theme-next .profile-link:hover,
    html.theme-next .profile-link:focus,
    html.theme-next .top-bar-telegram-link:hover,
    html.theme-next .top-bar-telegram-link:focus,
    html.theme-next .admin-dropdown__toggle:hover,
    html.theme-next .admin-dropdown__toggle:focus {
      border-color: #cfdbeb;
      background: #ffffff;
      color: var(--brand-main);
      transform: translateY(-1px);
    }

    html.theme-next .icon-badge {
      top: -3px;
      right: -3px;
      background: #ffe3e6;
      color: #dc2626;
      box-shadow: 0 8px 20px rgba(239, 68, 68, 0.12);
    }

    html.theme-next .icon-button--theme-preview.is-active {
      background: var(--brand-soft);
      border-color: #cfe0ff;
      color: var(--brand-main-2);
      box-shadow: none;
    }

    html.theme-next .profile-link {
      border-radius: 16px;
      padding: 0.36rem 0.72rem 0.36rem 0.45rem;
    }

    html.theme-next .profile-link .avatar {
      width: 32px;
      height: 32px;
      background: #edf4ff;
      border: 1px solid #d8e6ff;
      color: var(--brand-main);
    }

    html.theme-next .tab-nav {
      margin-top: 0.8rem;
      padding: 0.72rem;
      border-radius: 24px;
      gap: 0.6rem;
      background: rgba(255,255,255,0.92);
    }

    html.theme-next .tab-nav-row {
      gap: 0.45rem;
    }

    html.theme-next .tab-link {
      min-height: 44px;
      border-radius: 14px;
      padding: 0.68rem 0.95rem;
      color: var(--ink-soft);
      font-weight: 700;
      font-size: 0.95rem;
      letter-spacing: -0.01em;
    }

    html.theme-next .tab-link i {
      color: #9aa6b2;
    }

    html.theme-next .tab-link:hover,
    html.theme-next .tab-link:focus {
      background: #f4f7fb;
      border-color: #e3eaf3;
      color: var(--ink-main);
    }

    html.theme-next .tab-link.is-active {
      background: #eef4ff;
      border-color: #cfddf7;
      color: var(--brand-main-2);
      box-shadow: none;
    }

    html.theme-next .tab-link.is-active i {
      color: var(--brand-main-2);
    }

    html.theme-next .tab-link .badge {
      background: #ffffff;
      border: 1px solid #dbe4f0;
      color: var(--ink-soft);
    }

    html.theme-next .admin-shell {
      gap: 1.1rem;
      padding: 1rem 1.15rem 0;
    }

    html.theme-next .admin-sidebar {
      border-radius: 26px;
      border-color: var(--surface-line);
      background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
      box-shadow: var(--surface-shadow);
    }

    html.theme-next body.admin-sidebar-open .admin-sidebar {
      width: min(282px, calc(100vw - 1.5rem));
      box-shadow: 0 26px 56px rgba(15, 23, 42, 0.08);
    }

    html.theme-next .admin-sidebar__header {
      padding: 0.85rem 0.6rem 0.65rem;
      border-bottom-color: var(--surface-line);
      background: transparent;
    }

    html.theme-next .admin-sidebar__close,
    html.theme-next .admin-sidebar-dock {
      border: 1px solid var(--surface-line);
      background: #ffffff;
      color: var(--ink-soft);
      box-shadow: none;
    }

    html.theme-next .admin-sidebar-dock {
      border-radius: 14px;
    }

    html.theme-next .admin-sidebar__section-title {
      color: var(--ink-muted);
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.12em;
    }

    html.theme-next .admin-sidebar__link {
      border-radius: 16px;
      color: var(--ink-soft);
      background: transparent;
    }

    html.theme-next .admin-sidebar__link:hover,
    html.theme-next .admin-sidebar__link:focus {
      background: #f5f8fc;
      color: var(--ink-main);
      transform: none;
      border-color: #e4ebf3;
    }

    html.theme-next .admin-sidebar__link.is-active {
      background: #eef4ff;
      border-color: #d8e4f8;
      color: var(--brand-main-2);
      box-shadow: inset 3px 0 0 var(--brand-main-2);
    }

    html.theme-next .admin-sidebar__link i,
    html.theme-next .admin-sidebar__link.is-active i {
      color: inherit;
    }

    html.theme-next main {
      padding: 1.35rem 1.6rem 2.2rem;
      margin-top: 0.55rem;
    }

    html.theme-next main > h1,
    html.theme-next main > h2 {
      margin: 0 0 1rem;
      color: var(--ink-main);
      font-size: clamp(1.85rem, 2vw + 1rem, 2.7rem);
      font-weight: 800;
      letter-spacing: -0.055em;
      line-height: 1.05;
    }

    html.theme-next main > p {
      color: var(--ink-soft);
    }

    html.theme-next .lk-footer {
      color: var(--ink-muted);
      padding-top: 1.3rem;
    }

    html.theme-next input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    html.theme-next select,
    html.theme-next textarea {
      border-radius: 14px;
      border: 1px solid #dbe3ed;
      background: #ffffff;
      color: var(--ink-main);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.94);
    }

    html.theme-next input:focus,
    html.theme-next select:focus,
    html.theme-next textarea:focus {
      outline: none;
      border-color: #b9cdf6;
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    }

    html.theme-next button,
    html.theme-next .btn-primary,
    html.theme-next .btn-secondary,
    html.theme-next .contact-save,
    html.theme-next .contact-cancel,
    html.theme-next .company-bulk-approval__button,
    html.theme-next .company-focus-refresh__button,
    html.theme-next .company-contract-button,
    html.theme-next .action-button {
      border-radius: 12px;
      font-weight: 700;
      box-shadow: none;
    }

    html.theme-next .btn-primary,
    html.theme-next .contact-save,
    html.theme-next .company-bulk-approval__button,
    html.theme-next .company-focus-refresh__button--start,
    html.theme-next .company-contract-button--primary,
    html.theme-next .action-button {
      background: var(--brand-main);
      color: #ffffff;
      border: none;
      box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
    }

    html.theme-next .btn-secondary,
    html.theme-next .contact-cancel,
    html.theme-next .company-focus-refresh__button--stop,
    html.theme-next .company-focus-refresh__button--ghost,
    html.theme-next .company-contract-button {
      background: #ffffff;
      color: var(--ink-soft);
      border: 1px solid var(--surface-line);
    }

    html.theme-next table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      background: transparent;
      border: 1px solid var(--surface-line);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: var(--surface-shadow-soft);
    }

    html.theme-next table th,
    html.theme-next table td {
      border-bottom: 1px solid #e9eef4;
      padding: 0.92rem 1rem;
      vertical-align: top;
    }

    html.theme-next table th {
      background: #f8fafd;
      color: var(--ink-muted);
      font-size: 0.71rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.12em;
    }

    html.theme-next table td {
      background: rgba(255,255,255,0.96);
      color: var(--ink-main);
    }

    html.theme-next table tr:last-child td {
      border-bottom: none;
    }

    html.theme-next .profile-card,
    html.theme-next .profile-section,
    html.theme-next .company-tabs__panel--card,
    html.theme-next .company-panel__section,
    html.theme-next .stat-card,
    html.theme-next .chart-card,
    html.theme-next .list-card,
    html.theme-next .company-bulk-approval,
    html.theme-next .company-focus-refresh,
    html.theme-next .contact-form,
    html.theme-next .modal__dialog,
    html.theme-next .mycompany-panel,
    html.theme-next .flash-banner,
    html.theme-next .profile-pending-alert,
    html.theme-next .nrs-manager-banner {
      border-radius: 22px;
      border: 1px solid var(--surface-line);
      background: var(--surface-panel);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: var(--surface-shadow-soft);
    }

    html.theme-next .page-shell {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      width: min(100%, 1520px);
      margin: 0 auto;
    }

    html.theme-next .page-hero {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
      gap: 1rem;
      align-items: stretch;
      padding: 1.4rem 1.45rem;
      border-radius: 26px;
      background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
      border: 1px solid var(--surface-line);
      box-shadow: var(--surface-shadow-soft);
    }

    html.theme-next .page-hero__eyebrow {
      margin: 0 0 0.45rem;
      color: var(--ink-muted);
      font-size: 0.72rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.14em;
    }

    html.theme-next .page-hero h1 {
      margin: 0;
      color: var(--ink-main);
      font-size: clamp(1.95rem, 2vw + 1rem, 2.8rem);
      line-height: 1.03;
      letter-spacing: -0.06em;
    }

    html.theme-next .page-hero__description {
      margin: 0.7rem 0 0;
      color: var(--ink-soft);
      line-height: 1.62;
      max-width: 820px;
      font-size: 0.98rem;
    }

    html.theme-next .page-hero__meta {
      display: grid;
      gap: 0.75rem;
      align-content: start;
    }

    html.theme-next .surface-card,
    html.theme-next .toolbar-card,
    html.theme-next .data-table-shell,
    html.theme-next .empty-state {
      border: 1px solid var(--surface-line);
      border-radius: 20px;
      background: var(--surface-panel);
      box-shadow: var(--surface-shadow-soft);
    }

    html.theme-next .toolbar-card,
    html.theme-next .data-table-shell,
    html.theme-next .empty-state {
      padding: 1rem 1.1rem;
    }

    html.theme-next .empty-state {
      color: var(--ink-soft);
      line-height: 1.55;
    }

    html.theme-next .pagination-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.9rem;
      flex-wrap: wrap;
      padding: 0.9rem 1.05rem;
      border-radius: 18px;
      border: 1px solid var(--surface-line);
      background: #ffffff;
      box-shadow: var(--surface-shadow-soft);
    }

    @media (max-width: 1200px) {
      html.theme-next .page-hero {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 1024px) {
      html.theme-next header {
        padding: 0.7rem 0.75rem 0;
      }

      html.theme-next .top-bar,
      html.theme-next .tab-nav {
        border-radius: 22px;
      }

      html.theme-next .admin-shell {
        padding: 0.65rem 0.75rem 0;
      }

      html.theme-next main {
        padding: 1rem 1rem 1.6rem;
      }
    }

    @media (max-width: 768px) {
      html.theme-next .top-bar,
      html.theme-next .tab-nav {
        border-radius: 18px;
      }

      html.theme-next main {
        padding: 0.9rem 0.85rem 1.4rem;
      }

      html.theme-next .page-hero {
        padding: 1rem;
        border-radius: 20px;
      }

      html.theme-next .page-hero h1,
      html.theme-next main > h1,
      html.theme-next main > h2 {
        font-size: clamp(1.55rem, 6vw, 2.18rem);
      }

      html.theme-next table th,
      html.theme-next table td {
        padding: 0.75rem 0.72rem;
      }
    }
