    :root {
      --navy: #1C3259;
      --navy-2: #101E36;
      --orange: #FF3D19;
      --orange-2: #D9330F;
      --sky: #EAF2FF;
      --soft: #F6F8FC;
      --card: #FFFFFF;
      --text: #1C2434;
      --muted: #657086;
      --line: #DFE6F2;
      --green: #0FA66B;
      --amber: #F4A62A;
      --red: #D73838;
      --violet: #6941C6;
      --shadow: 0 1px 2px rgba(16, 30, 54, .06), 0 10px 28px rgba(16, 30, 54, .08);
      --radius: 14px;
      --radius-sm: 10px;
      --sidebar: 290px;
    }

    * {
      box-sizing: border-box
    }

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: #F5F6F9;
      color: var(--text);
      min-height: 100vh;
    }

    button,
    input,
    select,
    textarea {
      font: inherit
    }

    button {
      cursor: pointer
    }

    a {
      color: inherit
    }

    .hidden {
      display: none !important
    }

    .login-wrap {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1.05fr;
      gap: 0;
    }

    .login-hero {
      position: relative;
      padding: 54px;
      color: #fff;
      background: linear-gradient(160deg, var(--navy-2), var(--navy));
      overflow: hidden;
    }

    .login-hero:after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 5px;
      background: var(--orange);
    }

    .brand-mark {
      display: flex;
      align-items: center;
      gap: 14px;
      position: relative;
      z-index: 1;
    }

    .logo-cube {
      width: 54px;
      height: 54px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: var(--orange);
      box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 14px rgba(255, 61, 25, .18);
      font-weight: 800;
      letter-spacing: -.02em;
    }

    .brand-title {
      font-size: 20px;
      font-weight: 800;
      line-height: 1.05
    }

    .brand-sub {
      font-size: 12px;
      opacity: .78;
      margin-top: 4px;
      letter-spacing: .08em;
      text-transform: uppercase
    }

    .hero-copy {
      position: relative;
      z-index: 1;
      margin-top: 100px;
      max-width: 600px
    }

    .hero-copy h1 {
      font-size: 42px;
      line-height: 1.15;
      margin: 0 0 20px;
      font-weight: 700;
      letter-spacing: -.02em
    }

    .hero-copy p {
      font-size: 16px;
      line-height: 1.65;
      margin: 0;
      color: rgba(255, 255, 255, .72)
    }

    .hero-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 42px;
      position: relative;
      z-index: 1
    }

    .hero-stat {
      padding: 18px;
      border: 1px solid rgba(255, 255, 255, .14);
      background: rgba(255, 255, 255, .05);
      border-radius: 12px
    }

    .hero-stat b {
      font-size: 28px;
      display: block
    }

    .hero-stat span {
      font-size: 12px;
      color: rgba(255, 255, 255, .7)
    }

    .login-panel {
      display: grid;
      place-items: center;
      padding: 42px
    }

    .login-card {
      width: min(480px, 100%);
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 34px;
      box-shadow: var(--shadow)
    }

    .eyebrow {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      color: var(--orange);
      background: #fff0ea;
      padding: 6px 12px;
      border-radius: 8px;
      font-weight: 700;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .06em
    }

    .login-card h2 {
      font-size: 26px;
      letter-spacing: -.02em;
      margin: 20px 0 8px;
      font-weight: 700
    }

    .login-card p {
      margin: 0 0 24px;
      color: var(--muted);
      line-height: 1.55
    }

    .field {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 16px
    }

    .field label {
      font-size: 12px;
      font-weight: 800;
      color: #38465f;
      text-transform: uppercase;
      letter-spacing: .05em
    }

    .field input,
    .field select,
    .field textarea {
      width: 100%;
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 14px;
      padding: 13px 14px;
      outline: none;
      color: var(--text);
      transition: .18s;
    }

    .field textarea {
      min-height: 88px;
      resize: vertical
    }

    .field input:focus,
    .field select:focus,
    .field textarea:focus {
      border-color: var(--orange);
      box-shadow: 0 0 0 3px rgba(255, 61, 25, .14)
    }

    .mkt-expand-textarea {
      transition: min-height .25s ease, box-shadow .25s ease
    }

    .mkt-expand-textarea:focus {
      min-height: 280px !important;
      position: relative;
      z-index: 30;
      box-shadow: 0 0 0 3px rgba(255, 61, 25, .14), 0 10px 24px rgba(16, 30, 54, .12) !important
    }

    .btn {
      border: 0;
      border-radius: 10px;
      padding: 11px 16px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: .15s;
      white-space: nowrap
    }

    .btn-primary {
      background: var(--orange);
      color: #fff;
      box-shadow: 0 1px 2px rgba(0, 0, 0, .08)
    }

    .btn-primary:hover {
      background: var(--orange-2);
      box-shadow: 0 1px 2px rgba(0, 0, 0, .08)
    }

    .btn-soft {
      background: #fff;
      color: var(--navy);
      border: 1px solid var(--line)
    }

    .btn-soft:hover {
      border-color: #c6d2e5;
      background: #f9fbff
    }

    .btn-danger {
      background: #fff1f1;
      color: var(--red);
      border: 1px solid #ffd3d3
    }

    .btn-block {
      width: 100%
    }

    .demo-users {
      display: grid;
      gap: 10px;
      margin-top: 18px
    }

    .demo-chip {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      padding: 12px 14px;
      border-radius: 14px;
      background: #f7f9fe;
      border: 1px solid var(--line);
      font-size: 13px;
      color: #34415a
    }

    .app {
      display: grid;
      grid-template-columns: var(--sidebar) 1fr;
      min-height: 100vh
    }

    .sidebar {
      position: sticky;
      top: 0;
      height: 100vh;
      overflow: auto;
      padding: 22px;
      background: linear-gradient(180deg, var(--navy-2), var(--navy));
      color: #fff;
    }

    .sidebar .brand-mark {
      margin-bottom: 26px
    }

    .sidebar .logo-cube {
      width: 48px;
      height: 48px
    }

    .sidebar .brand-title {
      font-size: 18px
    }

    .user-box {
      background: rgba(255, 255, 255, .08);
      border: 1px solid rgba(255, 255, 255, .13);
      border-radius: 18px;
      padding: 14px;
      margin-bottom: 18px
    }

    .user-box .name {
      font-weight: 900
    }

    .user-box .role {
      font-size: 12px;
      color: rgba(255, 255, 255, .7);
      margin-top: 4px
    }

    .user-box .tag {
      margin-top: 10px
    }

    .nav {
      display: grid;
      gap: 8px;
      margin-top: 12px
    }

    .nav button {
      width: 100%;
      border: 0;
      background: transparent;
      color: rgba(255, 255, 255, .78);
      text-align: left;
      padding: 12px 13px;
      border-radius: 14px;
      font-weight: 750;
      display: flex;
      align-items: center;
      gap: 11px;
    }

    .nav button:hover,
    .nav button.active {
      background: rgba(255, 255, 255, .11);
      color: #fff
    }

    .nav .icon {
      width: 23px;
      text-align: center
    }

    .blu-glyph-icon {
      color: currentColor;
      opacity: .92;
      line-height: 1
    }

    .nav .icon .blu-glyph-icon {
      font-size: 14px
    }

    #togglePasswordIcon {
      color: var(--muted);
      opacity: .85;
      transition: .15s;
      display: inline-flex
    }

    #togglePasswordIcon:hover {
      color: var(--navy);
      opacity: 1
    }

    #togglePasswordIcon .blu-glyph-icon {
      font-size: 15px
    }

    .nav-group {
      display: grid;
      gap: 8px
    }

    .nav-group-toggle {
      cursor: pointer
    }

    .nav-group-toggle .nav-caret {
      margin-left: auto;
      font-size: 11px;
      transition: .18s
    }

    .nav-group.collapsed .nav-subitems {
      display: none
    }

    .nav-group.collapsed .nav-caret {
      transform: rotate(-90deg)
    }

    .nav-subitems {
      display: grid;
      gap: 6px;
      padding-left: 16px;
      border-left: 2px solid rgba(255, 255, 255, .14);
      margin-left: 11px
    }

    .nav-subitems button {
      padding: 10px 13px;
      font-size: 13.5px
    }

    .main {
      min-width: 0
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 5;
      background: #fff;
      border-bottom: 1px solid var(--line);
      padding: 18px 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .topbar h1 {
      font-size: 24px;
      margin: 0;
      letter-spacing: -.03em
    }

    .topbar p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 13px
    }

    .top-actions {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap
    }

    .content {
      padding: 28px;
      display: grid;
      gap: 22px
    }

    .view {
      display: none
    }

    .view.active {
      display: grid;
      gap: 22px
    }

    .ss-tabs {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 16px
    }

    .grid {
      display: grid;
      gap: 18px
    }

    .grid-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .grid-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .grid-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr))
    }

    .card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 20px;
      min-width: 0
    }

    .card-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 16px
    }

    .card h3 {
      margin: 0;
      font-size: 18px;
      letter-spacing: -.02em
    }

    .card small {
      color: var(--muted);
      line-height: 1.45
    }

    .kpi {
      position: relative;
      overflow: hidden;
      border-top: 3px solid var(--orange)
    }

    .kpi:after {
      display: none
    }

    .kpi .label {
      font-size: 12px;
      color: var(--muted);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .06em
    }

    .kpi .value {
      font-size: clamp(13px, 2.2vw, 32px);
      font-weight: 800;
      letter-spacing: -.02em;
      margin-top: 8px;
      word-break: break-all;
      overflow-wrap: break-word;
      line-height: 1.15
    }

    .kpi .note {
      color: var(--muted);
      font-size: 12px;
      margin-top: 8px
    }

    .kpi .badge {
      margin-top: 14px
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 8px;
      padding: 5px 10px;
      font-size: 12px;
      font-weight: 700;
      background: #edf3ff;
      color: var(--navy)
    }

    .badge.orange {
      background: #fff0ea;
      color: var(--orange)
    }

    .badge.green {
      background: #eafaf3;
      color: var(--green)
    }

    .badge.red {
      background: #fff0f0;
      color: var(--red)
    }

    .badge.amber {
      background: #fff7e8;
      color: #b87500
    }

    .badge.violet {
      background: #f3efff;
      color: var(--violet)
    }

    .toolbar {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap
    }

    .toolbar input,
    .toolbar select {
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 12px;
      padding: 10px 12px;
      outline: none;
      color: var(--text)
    }

    .table-wrap {
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff
    }

    .data-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 980px
    }

    .data-table th,
    .data-table td {
      padding: 12px 12px;
      border-bottom: 1px solid #eef2f8;
      text-align: left;
      font-size: 13px;
      vertical-align: top
    }

    .data-table th {
      position: sticky;
      top: 0;
      background: #f7f9fe;
      color: #34415a;
      text-transform: uppercase;
      font-size: 11px;
      letter-spacing: .055em;
      z-index: 1
    }

    .data-table tr:hover td {
      background: #fbfcff
    }

    .empty {
      padding: 30px;
      text-align: center;
      color: var(--muted)
    }

    .pipeline-board {
      display: grid;
      grid-template-columns: repeat(5, minmax(190px, 1fr));
      gap: 14px;
      overflow: auto
    }

    .stage-col {
      background: #f7f9fe;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px;
      min-height: 210px
    }

    .stage-title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      font-weight: 700
    }

    .deal-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 12px;
      margin-bottom: 10px;
      box-shadow: none
    }

    .deal-card b {
      display: block;
      margin-bottom: 4px
    }

    .deal-card span {
      color: var(--muted);
      font-size: 12px
    }

    .deal-card .row {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      margin-top: 10px;
      font-size: 12px
    }

    .ic-tabs {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 16px
    }

    .ic-tab-btn {
      border: 1px solid var(--line);
      background: #f7f9fc;
      color: var(--muted);
      padding: 8px 14px;
      border-radius: 999px;
      font-size: 12.5px;
      font-weight: 700;
      cursor: pointer;
      transition: .15s
    }

    .ic-tab-btn:hover {
      background: #eef3fb
    }

    .ic-tab-btn.active {
      background: #1565c0;
      color: #fff;
      border-color: #1565c0
    }

    .ic-tab-body {
      min-height: 80px
    }

    .ic-channel-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 14px;
      margin-top: 10px
    }

    .ic-channel-card {
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 16px;
      text-align: center;
      background: #fff;
      transition: .18s
    }

    .ic-channel-card:hover {
      box-shadow: 0 8px 24px rgba(28, 50, 89, .10)
    }

    .ic-channel-icon {
      font-size: 30px;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      justify-content: center
    }

    .ic-channel-name {
      font-weight: 900;
      margin-bottom: 8px;
      color: var(--navy)
    }

    .ic-channel-account {
      font-size: 12px;
      color: var(--muted);
      margin-top: 8px;
      word-break: break-word
    }

    .ic-channel-actions {
      margin-top: 12px
    }

    .inbox-layout {
      display: grid;
      grid-template-columns: 360px 1fr;
      gap: 18px
    }

    .chat-list {
      display: grid;
      gap: 10px;
      max-height: 630px;
      overflow: auto
    }

    .chat-item {
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fff;
      cursor: pointer;
      transition: .18s
    }

    .chat-item:hover,
    .chat-item.active {
      border-color: var(--orange);
      box-shadow: 0 12px 28px rgba(255, 61, 25, .10)
    }

    .chat-top {
      display: flex;
      justify-content: space-between;
      gap: 8px
    }

    .chat-name {
      font-weight: 900
    }

    .chat-msg {
      color: var(--muted);
      font-size: 13px;
      margin-top: 7px;
      line-height: 1.4
    }

    .chat-panel {
      min-height: 620px;
      display: flex;
      flex-direction: column
    }

    .conversation {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 16px;
      background: #f7f9fe;
      border: 1px solid var(--line);
      border-radius: 18px;
      overflow: auto
    }

    .bubble {
      max-width: 72%;
      padding: 12px 14px;
      border-radius: 17px;
      line-height: 1.45;
      font-size: 14px
    }

    .bubble.in {
      background: #fff;
      border: 1px solid var(--line);
      align-self: flex-start
    }

    .bubble.out {
      background: var(--navy);
      color: #fff;
      align-self: flex-end
    }

    .composer {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 10px;
      margin-top: 14px
    }

    .composer textarea {
      min-height: 52px;
      resize: vertical;
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 13px 14px;
      outline: none
    }

    .agent-box {
      background: linear-gradient(135deg, #fff, #fff8f5);
      border: 1px solid #ffe0d2;
      border-radius: 18px;
      padding: 16px;
      margin-top: 14px
    }

    .agent-box b {
      display: block;
      margin-bottom: 6px
    }

    .suggestion {
      font-size: 13px;
      color: #4b556a;
      line-height: 1.45
    }

    .gc-layout {
      display: grid;
      grid-template-columns: 300px 1.6fr 260px;
      gap: 18px;
      align-items: start
    }

    .gc-list {
      display: grid;
      gap: 10px;
      max-height: 560px;
      overflow: auto
    }

    .gc-item {
      padding: 12px 14px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
      cursor: pointer;
      transition: .18s
    }

    .gc-item:hover,
    .gc-item.active {
      border-color: var(--orange);
      box-shadow: 0 12px 28px rgba(255, 61, 25, .10)
    }

    .gc-center-card {
      display: flex;
      flex-direction: column;
      min-height: 640px
    }

    .gc-pin-card {
      max-height: 720px;
      overflow: auto
    }

    .gc-composer {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 10px;
      margin-top: 14px;
      align-items: end
    }

    .gc-composer textarea {
      min-height: 48px;
      resize: vertical;
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 12px 14px;
      outline: none
    }

    .gc-icon-btn {
      font-size: 20px;
      line-height: 1;
      padding: 10px 16px;
      border-radius: 14px
    }

    @media (max-width:1100px) {
      .gc-layout {
        grid-template-columns: 1fr
      }
    }

    .switch {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-weight: 800
    }

    .switch input {
      display: none
    }

    .slider {
      width: 52px;
      height: 30px;
      border-radius: 999px;
      background: #cad4e4;
      position: relative;
      transition: .18s
    }

    .slider:before {
      content: "";
      position: absolute;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      left: 3px;
      top: 3px;
      background: #fff;
      transition: .18s;
      box-shadow: 0 3px 8px rgba(0, 0, 0, .18)
    }

    .switch input:checked+.slider {
      background: var(--orange)
    }

    .switch input:checked+.slider:before {
      transform: translateX(22px)
    }

    .rule-list {
      display: grid;
      gap: 12px
    }

    .rule {
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 16px;
      padding: 14px
    }

    .rule b {
      display: block
    }

    .rule p {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45
    }

    .progress {
      height: 10px;
      background: #eef2f8;
      border-radius: 999px;
      overflow: hidden
    }

    .progress span {
      display: block;
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--orange), var(--orange-2));
      width: 0%
    }

    .bar-list {
      display: grid;
      gap: 12px
    }

    .bar-row {
      display: grid;
      grid-template-columns: 110px 1fr 56px;
      gap: 12px;
      align-items: center;
      font-size: 13px
    }

    .bar-track {
      height: 11px;
      border-radius: 999px;
      background: #eef2f8;
      overflow: hidden
    }

    .bar-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--navy), var(--orange))
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px
    }

    .form-grid .span-2 {
      grid-column: span 2
    }

    .form-grid .span-3 {
      grid-column: span 3
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(16, 30, 54, .45);
      z-index: 50;
      display: grid;
      place-items: center;
      padding: 24px
    }

    .modal {
      width: min(980px, 100%);
      max-height: 90vh;
      overflow: auto;
      background: #fff;
      border-radius: 16px;
      padding: 24px;
      box-shadow: 0 20px 50px rgba(16, 30, 54, .20)
    }

    .modal-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 14px;
      margin-bottom: 18px
    }

    .modal h2 {
      margin: 0;
      font-size: 24px;
      letter-spacing: -.03em
    }

    .xbtn {
      border: 0;
      background: #f4f6fb;
      border-radius: 12px;
      width: 38px;
      height: 38px;
      font-size: 22px;
      line-height: 1
    }

    .mini-card {
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 16px;
      padding: 14px
    }

    .mini-card b {
      display: block
    }

    .mini-card p {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45
    }

    .footer-note {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.5
    }

    .mobile-toggle {
      display: none
    }

    .toast {
      position: fixed;
      right: 22px;
      bottom: 22px;
      background: var(--navy-2);
      color: #fff;
      padding: 14px 16px;
      border-radius: 12px;
      box-shadow: 0 10px 28px rgba(16, 30, 54, .20);
      z-index: 70;
      max-width: 360px
    }

    .toast b {
      display: block;
      margin-bottom: 4px
    }

    .toast span {
      font-size: 13px;
      color: rgba(255, 255, 255, .78)
    }

    @media(max-width:1100px) {
      .grid-4 {
        grid-template-columns: repeat(2, 1fr)
      }

      .grid-3 {
        grid-template-columns: repeat(2, 1fr)
      }

      .inbox-layout {
        grid-template-columns: 1fr
      }

      .pipeline-board {
        grid-template-columns: repeat(5, 260px)
      }

      .login-wrap {
        grid-template-columns: 1fr
      }

      .login-hero {
        display: none
      }

      .form-grid {
        grid-template-columns: 1fr
      }

      .form-grid .span-2,
      .form-grid .span-3 {
        grid-column: span 1
      }
    }

    @media(max-width:820px) {
      :root {
        --sidebar: 0
      }

      .app {
        grid-template-columns: 1fr
      }

      .sidebar {
        position: fixed;
        z-index: 40;
        left: -310px;
        width: 290px;
        transition: .22s
      }

      .sidebar.open {
        left: 0
      }

      .mobile-toggle {
        display: inline-flex
      }

      .topbar {
        padding: 14px 16px
      }

      .content {
        padding: 16px
      }

      .grid-4,
      .grid-3,
      .grid-2 {
        grid-template-columns: 1fr
      }

      .top-actions {
        justify-content: flex-start
      }

      .toolbar {
        width: 100%
      }

      .toolbar input,
      .toolbar select {
        width: 100%
      }

      .login-panel {
        padding: 18px
      }

      .login-card {
        padding: 24px
      }

      .kpi .value {
        font-size: 28px
      }
    }
