/* KnowMore CRM workspace polish. Scoped to brand workspaces so public/auth pages stay unchanged. */
:root {
  --crm-bg: #f5f7fb;
  --crm-surface: #ffffff;
  --crm-line: #e6e9f0;
  --crm-text: #1d2433;
  --crm-muted: #6b7280;
  --crm-primary: #6358de;
  --crm-primary-soft: #efeeff;
  --crm-shadow: 0 2px 10px rgba(32, 43, 67, .06);
  --crm-radius: 14px;
}

body.km-crm-page { background: var(--crm-bg); color: var(--crm-text); }
body.km-crm-page > .container-fluid { max-width: 1540px; margin: 0 auto; padding-left: 26px; padding-right: 26px; }

@media (min-width: 768px) {
  /* Two-column workspace: a stable navigation rail and a fluid CRM canvas. */
  .km-app-shell {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 22px 0 54px;
  }
  .km-app-shell > .km-sidebar {
    flex: 0 0 248px;
    width: 248px;
    float: none;
    margin-left: 0;
    position: sticky;
    top: 78px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .km-app-shell > .km-main {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    float: none;
    margin-left: 0;
  }

  /* Sidebar as a compact CRM navigation rail. */
  .km-sidebar .sidebar-box {
    overflow: hidden;
    border: 1px solid var(--crm-line);
    border-radius: var(--crm-radius);
    background: var(--crm-surface);
    box-shadow: var(--crm-shadow);
  }
  .km-sidebar .sidebar-nav { padding: 0 0 12px; }
  .km-sidebar .nav-list { margin: 0; padding: 0 12px; }
  .km-sidebar .nav-list + .nav-list { margin-top: 8px; padding-top: 8px; border-top: 1px solid #f0f1f5; }
  .km-sidebar .nav-list .nav-header {
    padding: 14px 10px 6px;
    color: var(--crm-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .km-sidebar .nav-list > li > a {
    min-height: 20px;
    margin: 2px 0;
    padding: 10px 11px;
    border-radius: 9px;
    color: var(--crm-text);
    font-size: 13px;
    line-height: 20px;
  }
  .km-sidebar .nav-list > li > a i { width: 18px; margin-right: 5px; color: #7b8190; }
  .km-sidebar .nav-list > li > a:hover { background: var(--crm-primary-soft); color: var(--crm-primary); }
  .km-sidebar .nav-list > li.active > a,
  .km-sidebar .nav-list > li.active > a:hover {
    background: var(--crm-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(99, 88, 222, .18);
  }
  .km-sidebar .nav-list > li.active > a i { color: #fff; }
  .km-sidebar .km-tasks { margin: 0; border: 0; border-radius: var(--crm-radius) var(--crm-radius) 0 0; box-shadow: none; }
  .km-sidebar .km-tasks-head { padding: 13px 14px; }
  .km-sidebar .km-tasks-body { padding: 13px 14px 9px; }

  /* Brand context and page title. */
  .km-main .km-brand-context {
    margin: 0 0 5px;
    color: var(--crm-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
  }
  .km-main .km-brand-context a { color: var(--crm-muted); text-decoration: none; }
  .km-main .km-brand-context a:hover { color: var(--crm-primary); }
  .km-main .km-page-title {
    margin: 0 0 18px !important;
    color: var(--crm-text);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.7px;
    line-height: 1.2;
  }
  .km-main .km-page-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    clear: both;
    margin: 0 0 18px !important;
  }
  .km-main .km-page-toolbar > .dropdown { float: none !important; margin: 0 !important; }
  .km-main .km-page-toolbar > .dropdown > .btn {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--crm-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(99, 88, 222, .18);
    font-weight: 700;
  }
  .km-main .km-page-toolbar > .form-search {
    display: flex;
    align-items: center;
    gap: 8px;
    float: none !important;
    margin: 0 0 0 auto !important;
  }
  .km-main .km-page-toolbar > .form-search .search-query {
    width: 260px !important;
    height: 42px;
    border: 1px solid var(--crm-line);
    border-radius: 10px;
    background: var(--crm-surface);
    box-shadow: none;
  }
  .km-main .km-page-toolbar > .form-search .btn,
  .km-main .km-page-toolbar > .campaigns-rss-btn {
    min-height: 42px;
    border-radius: 10px;
    box-shadow: none;
  }
  .km-main .km-page-toolbar > .campaigns-rss-btn { float: none !important; margin: 0 !important; width: 42px !important; }

  /* Full-width data surfaces prevent the legacy responsive table from collapsing. */
  .km-main .km-table-wrap,
  .km-main .table-wrapper { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--crm-line); border-radius: var(--crm-radius); background: var(--crm-surface); box-shadow: var(--crm-shadow); }
  .km-main .km-table-wrap > table,
  .km-main .table-wrapper table { width: 100% !important; min-width: 720px; margin: 0 !important; border: 0; background: var(--crm-surface); }
  .km-main .table-wrapper .scrollable { width: 100%; overflow-x: auto; }
  .km-main .table-wrapper .scrollable table { margin-left: 0 !important; }
  .km-main .table thead th {
    padding: 13px 16px;
    background: #fafbfc;
    border-bottom: 1px solid var(--crm-line);
    color: #687184;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .km-main .table tbody td { padding: 15px 16px; border-top: 1px solid #f0f2f6; color: var(--crm-text); vertical-align: middle; }
  .km-main .table tbody tr:hover td { background: #fafaff; }
  .km-main .km-campaign-table tbody tr td:only-child { padding: 56px 20px; color: var(--crm-muted); text-align: center; font-size: 15px; }

  /* Dashboard cards and CRM summary panels. */
  .km-dashboard-page .km-brand-head {
    margin: 0 0 18px;
    padding: 20px 22px;
    border: 1px solid var(--crm-line);
    border-radius: var(--crm-radius);
    background: var(--crm-surface);
    box-shadow: var(--crm-shadow);
  }
  .km-dashboard-page .km-brand-title { color: var(--crm-text); font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
  .km-dashboard-page .km-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
  .km-dashboard-page .km-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--crm-line);
    border-radius: var(--crm-radius);
    background: var(--crm-surface);
    box-shadow: var(--crm-shadow);
  }
  .km-dashboard-page .km-card-num { font-size: 27px; font-weight: 750; }
  .km-dashboard-page .km-card-label { color: var(--crm-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
  .km-dashboard-page .km-panel {
    padding: 20px;
    border: 1px solid var(--crm-line);
    border-radius: var(--crm-radius);
    background: var(--crm-surface);
    box-shadow: var(--crm-shadow);
  }
  .km-dashboard-page > .km-main > .km-panel { margin-bottom: 20px; }
  .km-dashboard-page .km-dashboard-split { display: flex; gap: 20px; margin: 20px 0 0 !important; }
  .km-dashboard-page .km-dashboard-split > .span6 { flex: 1 1 0; width: auto; margin-left: 0; float: none; min-width: 0; }
  .km-dashboard-page .km-chart { height: 126px; padding: 14px; border-color: var(--crm-line); background: #fafbff; }
}

@media (max-width: 1100px) and (min-width: 768px) {
  .km-dashboard-page .km-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .km-main .km-page-toolbar > .form-search { margin-left: 0 !important; width: 100%; }
  .km-main .km-page-toolbar > .form-search .search-query { flex: 1; width: auto !important; }
}

@media (max-width: 767px) {
  body.km-crm-page { background: var(--crm-bg); }
  body.km-crm-page > .container-fluid { padding-left: 14px; padding-right: 14px; }
  .km-app-shell { padding-top: 12px; }
  .km-main .km-page-title { margin-top: 6px !important; }
  .km-main .km-page-toolbar { gap: 8px; }
  .km-main .km-page-toolbar > .form-search { width: 100%; margin-left: 0 !important; }
  .km-main .km-page-toolbar > .form-search .search-query { flex: 1; width: auto !important; }
  .km-main .km-table-wrap { border-radius: 12px; }
  .km-main .km-table-wrap > table { min-width: 640px; }
  .km-dashboard-page .km-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .km-dashboard-page .km-card { min-width: 0; padding: 14px; }
  .km-dashboard-page .km-dashboard-split { display: block; }
  .km-dashboard-page .km-dashboard-split > .span6 { width: 100%; margin: 0 0 14px; }
}


/* ===== Brevo-inspired polish pass ===== */
body.km-crm-page .navbar-fixed-top { box-shadow: 0 1px 0 #e6e9f0, 0 3px 12px rgba(32,43,67,.05); }
body.km-crm-page .navbar-inner { min-height: 60px; }
body.km-crm-page .navbar-inner > .container-fluid { max-width: 1540px; margin: 0 auto; }
body.km-crm-page .navbar .brand { font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
body.km-crm-page .navbar .btn-white,
body.km-crm-page .navbar .btn-inverse { border: 1px solid #e4e7ee; border-radius: 10px; background: #fff; color: #1d2433; box-shadow: none; text-shadow: none; }
body.km-crm-page .navbar .btn-white:hover,
body.km-crm-page .navbar .btn-inverse:hover { background: #f7f8fc; color: #6358de; }
body.km-crm-page .navbar .btn-inverse i { color: #6358de; }

.km-main .km-brand-context { letter-spacing: .01em; }
.km-campaigns-page .km-page-title { font-size: 32px; }
.km-campaigns-page .km-page-toolbar { padding: 14px 16px; border: 1px solid #e6e9f0; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(32,43,67,.04); }
.km-campaigns-page .km-page-toolbar > .dropdown > .btn { padding: 10px 16px; }
.km-campaigns-page .km-page-toolbar > .form-search .search-query { background: #f8f9fc; }

/* Empty states are treated as a useful next step rather than a blank table row. */
.km-main .km-campaign-table .crm-empty-campaigns td { padding: 0 !important; border: 0 !important; background: #fff !important; }
.crm-empty-state { max-width: 560px; margin: 0 auto; padding: 58px 24px 64px; text-align: center; }
.crm-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; margin-bottom: 16px; border-radius: 20px; background: #efeeff; color: #6358de; font-size: 26px; }
.crm-empty-state h3 { margin: 0 0 8px; color: #1d2433; font-size: 21px; font-weight: 750; letter-spacing: -.25px; }
.crm-empty-state p { margin: 0 auto 20px; color: #6b7280; font-size: 14px; line-height: 1.55; }
.crm-empty-state .btn { min-height: 42px; padding: 10px 17px; border-radius: 10px; font-weight: 700; box-shadow: 0 4px 10px rgba(99,88,222,.18); }

.km-dashboard-page .km-brand-head { position: relative; }
.km-dashboard-page .km-brand-head:after { content: ''; position: absolute; left: 22px; bottom: -1px; width: 56px; height: 3px; border-radius: 4px; background: #6358de; }
.km-dashboard-page .km-card-link { text-decoration: none; }
.km-dashboard-page .km-card-link:hover { text-decoration: underline; }
.km-dashboard-page .km-panel h3, .km-dashboard-page .km-dashboard-split h3 { color: #1d2433; font-size: 17px; font-weight: 750; }
.km-dashboard-page .km-panel .km-inline-form { gap: 10px; }


/* ===== Bravo-style dashboard: warm, action-led marketing workspace ===== */
body.km-crm-page { background: #fffaf5; }
body.km-crm-page .navbar-fixed-top { background: #fffdf9; border-bottom: 1px solid #f1e5d9; }
body.km-crm-page .navbar-inner { background: #fffdf9; }
body.km-crm-page .navbar .btn-inverse,
body.km-crm-page .navbar .btn-white { border-color: #f0dfcf; background: #fffdf9; }
body.km-crm-page .navbar .btn-inverse i { color: #f47721; }

.km-dashboard-page { color: #1f2329; }
.km-dashboard-page .km-dashboard-stage { display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 18px; align-items: start; }
.km-dashboard-page .km-dashboard-content { min-width: 0; }
.km-dashboard-page .km-dashboard-welcome { margin: 2px 0 20px; }
.km-dashboard-page .km-dashboard-kicker { margin-bottom: 7px; color: #8a8d92; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.km-dashboard-page .km-dashboard-kicker a { color: #f47721; text-decoration: none; }
.km-dashboard-page .km-dashboard-kicker span { padding: 0 6px; color: #d3d0cb; }
.km-dashboard-page .km-dashboard-welcome h1 { margin: 0 0 5px; color: #17191c; font-size: 30px; font-weight: 700; letter-spacing: -.8px; line-height: 1.2; }
.km-dashboard-page .km-dashboard-welcome p { margin: 0; color: #777b80; font-size: 14px; }
.km-dashboard-page .km-sun { display: inline-block; margin-left: 4px; color: #f5a313; font-size: 24px; }

.km-dashboard-page .km-dashboard-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.km-dashboard-page .km-dashboard-action { display: flex; align-items: center; min-width: 0; min-height: 88px; padding: 15px 12px; border: 1px solid #f0e4d8; border-radius: 12px; background: #fffdf9; box-shadow: 0 2px 9px rgba(99,65,38,.035); color: #1f2329; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.km-dashboard-page .km-dashboard-action:hover { border-color: #f5c69e; box-shadow: 0 7px 20px rgba(100,62,26,.09); color: #1f2329; text-decoration: none; transform: translateY(-1px); }
.km-dashboard-page .km-action-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 39px; width: 39px; height: 39px; margin-right: 10px; border-radius: 50%; background: #fff0e2; color: #f47721; font-size: 17px; }
.km-dashboard-page .km-action-copy { min-width: 0; }
.km-dashboard-page .km-action-copy strong { display: block; overflow: hidden; color: #25282c; font-size: 12px; font-weight: 750; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.km-dashboard-page .km-action-copy small { display: block; margin-top: 4px; overflow: hidden; color: #878b91; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.km-dashboard-page .km-action-arrow { margin-left: auto; color: #f47721; font-size: 13px; }

.km-dashboard-page .km-dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.km-dashboard-page .km-metric-card { position: relative; min-height: 141px; overflow: hidden; padding: 15px 15px 13px; border: 1px solid #f0e4d8; border-radius: 12px; background: #fffdf9; box-shadow: 0 2px 9px rgba(99,65,38,.035); }
.km-dashboard-page .km-metric-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 9px; border-radius: 50%; background: #fff0e2; color: #f47721; font-size: 16px; }
.km-dashboard-page .km-metric-label { display: block; color: #53585e; font-size: 11px; font-weight: 700; }
.km-dashboard-page .km-metric-value { display: block; margin-top: 2px; color: #191c20; font-size: 24px; font-weight: 750; letter-spacing: -.4px; line-height: 1.15; }
.km-dashboard-page .km-metric-trend { display: inline-block; margin-top: 7px; color: #0b9a6e; font-size: 10px; font-weight: 750; }
.km-dashboard-page .km-metric-trend.is-neutral { color: #969b9f; }
.km-dashboard-page .km-metric-trend i { font-size: 9px; }
.km-dashboard-page .km-metric-card > small { display: block; margin-top: 3px; color: #a0a3a7; font-size: 9px; }
.km-dashboard-page .km-mini-sparkline { position: absolute; right: 12px; bottom: 16px; width: 62px; height: 31px; opacity: .85; background: linear-gradient(145deg, transparent 0 25%, #f9bd84 26% 29%, transparent 30% 42%, #f47721 43% 46%, transparent 47% 61%, #f9bd84 62% 65%, transparent 66%); clip-path: polygon(0 80%, 14% 67%, 28% 72%, 42% 44%, 56% 54%, 70% 22%, 84% 38%, 100% 7%, 100% 100%, 0 100%); }
.km-dashboard-page .km-mini-sparkline.spark-orange-2 { transform: scaleY(.8) rotate(3deg); }
.km-dashboard-page .km-mini-sparkline.spark-orange-3 { transform: scaleY(.9) rotate(-4deg); }
.km-dashboard-page .km-mini-sparkline.spark-orange-4 { transform: scaleY(.7) rotate(7deg); }

.km-dashboard-page .km-dashboard-panel { margin-bottom: 18px; border: 1px solid #f0e4d8; border-radius: 12px; background: #fffdf9; box-shadow: 0 2px 9px rgba(99,65,38,.035); }
.km-dashboard-page .km-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 17px 8px; }
.km-dashboard-page .km-panel-heading h2, .km-dashboard-page .km-rail-panel h2 { margin: 0; color: #222529; font-size: 15px; font-weight: 750; letter-spacing: -.2px; line-height: 1.3; }
.km-dashboard-page .km-panel-heading p { margin: 4px 0 0; color: #92959a; font-size: 10px; }
.km-dashboard-page .km-panel-link, .km-dashboard-page .km-rail-heading a { color: #f47721; font-size: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.km-dashboard-page .km-panel-link:hover, .km-dashboard-page .km-rail-heading a:hover { text-decoration: underline; }
.km-dashboard-page .km-outline-button { padding: 7px 10px; border: 1px solid #f0c39c; border-radius: 7px; color: #e86d15; font-size: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.km-dashboard-page .km-outline-button:hover { background: #fff2e7; color: #d85f0c; text-decoration: none; }
.km-dashboard-page .km-primary-button { display: inline-block; padding: 9px 14px; border: 0; border-radius: 8px; background: #f47721; color: #fff; font-size: 11px; font-weight: 750; text-decoration: none; box-shadow: 0 4px 11px rgba(244,119,33,.22); }
.km-dashboard-page .km-primary-button:hover { background: #df6614; color: #fff; text-decoration: none; }
.km-dashboard-page .km-dashboard-quick-push { padding-bottom: 14px; }
.km-dashboard-page .km-dashboard-quick-push .km-panel-heading { padding-bottom: 10px; }
.km-dashboard-page .km-dashboard-quick-push .km-inline-form { display: flex; align-items: center; gap: 8px; padding: 0 17px; }
.km-dashboard-page .km-dashboard-quick-push .km-inline-form input { box-sizing: border-box; flex: 1 1 0; min-width: 0; height: 36px; margin: 0; border: 1px solid #eadfd5; border-radius: 7px; background: #fff; box-shadow: none; font-size: 11px; }
.km-dashboard-page .km-dashboard-quick-push .km-inline-form input:focus { border-color: #f5a46b; box-shadow: 0 0 0 3px rgba(244,119,33,.11); }
.km-dashboard-page .km-dashboard-note { margin: 10px 17px 0; color: #92959a; font-size: 10px; }
.km-dashboard-page .km-dashboard-note a { color: #f47721; font-weight: 700; }
.km-dashboard-page .km-dashboard-note i { color: #f47721; }
.km-dashboard-page .km-dashboard-quick-push .alert { margin: 0 17px 10px; padding: 8px 10px; font-size: 11px; }
.km-dashboard-page .km-quick-push-drawer { padding: 0; overflow: hidden; }
.km-dashboard-page .km-quick-push-drawer details { margin: 0; }
.km-dashboard-page .km-quick-push-drawer summary { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 11px 13px; cursor: pointer; list-style: none; }
.km-dashboard-page .km-quick-push-drawer summary::-webkit-details-marker { display: none; }
.km-dashboard-page .km-quick-push-drawer summary:hover { background: #fffaf5; }
.km-dashboard-page .km-quick-push-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: #fff0df; color: #f47721; font-size: 14px; }
.km-dashboard-page .km-quick-push-drawer summary > span:nth-child(2) { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.km-dashboard-page .km-quick-push-drawer summary b { color: #25292e; font-size: 11px; font-weight: 750; }
.km-dashboard-page .km-quick-push-drawer summary small { margin-top: 3px; color: #8f9297; font-size: 9px; line-height: 1.2; }
.km-dashboard-page .km-quick-push-chevron { color: #9b9da1; font-size: 10px; transition: transform .15s ease; }
.km-dashboard-page .km-quick-push-drawer details[open] .km-quick-push-chevron { transform: rotate(180deg); }
.km-dashboard-page .km-quick-push-body { padding: 0 13px 13px; border-top: 1px solid #f1e8df; }
.km-dashboard-page .km-quick-push-body .km-inline-form { display: block; padding-top: 12px; }
.km-dashboard-page .km-quick-push-body .km-inline-form input { box-sizing: border-box; width: 100%; height: 34px; margin: 0 0 7px; padding: 0 9px; border: 1px solid #eadfd5; border-radius: 7px; background: #fff; box-shadow: none; font-size: 10px; }
.km-dashboard-page .km-quick-push-body .km-inline-form input:focus { border-color: #f5a46b; box-shadow: 0 0 0 3px rgba(244,119,33,.11); }
.km-dashboard-page .km-quick-push-body .km-inline-form .km-primary-button { width: 100%; border: 0; cursor: pointer; }
.km-dashboard-page .km-quick-push-body .km-dashboard-note { margin: 8px 0 0; font-size: 9px; line-height: 1.45; }
.km-dashboard-page .km-quick-push-body .alert { margin: 11px 0 0; padding: 7px 8px; font-size: 10px; }

.km-dashboard-page .km-dashboard-main-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, .95fr); gap: 14px; align-items: stretch; }
.km-dashboard-page .km-dashboard-main-grid > .km-dashboard-panel { min-width: 0; }
.km-dashboard-page .km-period-select { display: inline-block; padding: 7px 9px; border: 1px solid #eee4db; border-radius: 7px; color: #62666c; font-size: 10px; white-space: nowrap; }
.km-dashboard-page .km-period-select i { margin-left: 5px; color: #9c9fa2; }
.km-dashboard-page .km-chart-legend { display: flex; justify-content: flex-end; gap: 13px; padding: 0 17px 3px; color: #8f9398; font-size: 9px; }
.km-dashboard-page .legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: #f47721; vertical-align: -1px; }
.km-dashboard-page .dot-sent { background: #f47721; }
.km-dashboard-page .dot-opened { background: #f8a86c; }
.km-dashboard-page .dot-clicked { background: #f7c84b; }
.km-dashboard-page .dot-muted { background: #cfd4d9; }
.km-dashboard-page .km-line-chart { height: 214px; padding: 2px 10px 0; }
.km-dashboard-page .km-line-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.km-dashboard-page .chart-grid-line { stroke: #f0e9e2; stroke-width: 1; }
.km-dashboard-page .chart-axis-label { fill: #a1a4a7; font-size: 9px; }
.km-dashboard-page .chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.km-dashboard-page .chart-sent { stroke: #f47721; }
.km-dashboard-page .chart-opened { stroke: #f6a66a; }
.km-dashboard-page .chart-clicked { stroke: #f3c54a; }
.km-dashboard-page .km-chart-labels { display: flex; justify-content: space-between; padding: 2px 17px 13px 46px; color: #a1a4a7; font-size: 9px; }
.km-dashboard-page .km-engagement-panel { padding-bottom: 15px; }
.km-dashboard-page .km-donut-wrap { display: flex; justify-content: center; padding: 11px 0 15px; }
.km-dashboard-page .km-donut { display: flex; align-items: center; justify-content: center; width: 128px; height: 128px; border-radius: 50%; }
.km-dashboard-page .km-donut:before { content: ''; position: absolute; width: 94px; height: 94px; border-radius: 50%; background: #fffdf9; }
.km-dashboard-page .km-donut > div { position: relative; z-index: 1; text-align: center; }
.km-dashboard-page .km-donut strong { display: block; color: #272a2e; font-size: 20px; line-height: 1.1; }
.km-dashboard-page .km-donut span { display: block; margin-top: 4px; color: #8d9196; font-size: 9px; }
.km-dashboard-page .km-engagement-list { padding: 0 17px; }
.km-dashboard-page .km-engagement-list > div { display: grid; grid-template-columns: 1fr auto 64px; gap: 5px; align-items: center; padding: 5px 0; border-top: 1px solid #f5eee8; color: #555a60; font-size: 10px; }
.km-dashboard-page .km-engagement-list b { color: #35393d; font-size: 10px; }
.km-dashboard-page .km-engagement-list em { color: #8d9196; font-size: 10px; font-style: normal; text-align: right; }

.km-dashboard-page .km-top-campaigns { overflow: hidden; }
.km-dashboard-page .km-table-scroll { overflow-x: auto; }
.km-dashboard-page .km-dashboard-table { width: 100%; min-width: 610px; margin: 0; border-collapse: collapse; font-size: 10px; }
.km-dashboard-page .km-dashboard-table th { padding: 9px 15px; border-top: 1px solid #f5eee8; border-bottom: 1px solid #f0e4d8; color: #92959a; font-size: 9px; font-weight: 750; text-align: left; text-transform: uppercase; }
.km-dashboard-page .km-dashboard-table td { padding: 10px 15px; border-bottom: 1px solid #f5eee8; color: #64686d; vertical-align: middle; }
.km-dashboard-page .km-dashboard-table tr:last-child td { border-bottom: 0; }
.km-dashboard-page .km-dashboard-table tr:hover td { background: #fff8f1; }
.km-dashboard-page .km-dashboard-table td:first-child { min-width: 180px; color: #292d31; font-weight: 700; }
.km-dashboard-page .km-dashboard-table td:first-child small { display: block; margin-left: 31px; color: #a0a4a8; font-size: 9px; font-weight: 400; }
.km-dashboard-page .km-campaign-thumb { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; margin-right: 6px; border-radius: 5px; background: #fff0e2; color: #f47721; font-size: 11px; vertical-align: middle; }
.km-dashboard-page .km-table-title { display: inline-block; max-width: 145px; overflow: hidden; vertical-align: middle; text-overflow: ellipsis; white-space: nowrap; }
.km-dashboard-page .km-more-button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid #eee4db; border-radius: 6px; color: #92959a; text-decoration: none; }
.km-dashboard-page .km-more-button:hover { border-color: #f3bd93; color: #f47721; }
.km-dashboard-page .km-dashboard-empty { padding: 38px 20px 42px; text-align: center; }
.km-dashboard-page .km-dashboard-empty.compact { padding: 20px; }
.km-dashboard-page .km-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 9px; border-radius: 14px; background: #fff0e2; color: #f47721; }
.km-dashboard-page .km-dashboard-empty strong { display: block; color: #2b2e32; font-size: 14px; }
.km-dashboard-page .km-dashboard-empty p { margin: 5px 0 14px; color: #969a9e; font-size: 11px; }
.km-dashboard-page .km-dashboard-empty a:not(.km-primary-button) { color: #f47721; font-size: 11px; font-weight: 750; }

.km-dashboard-page .km-dashboard-bottom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.km-dashboard-page .km-simple-list a { display: flex; align-items: center; justify-content: space-between; padding: 10px 17px; border-top: 1px solid #f5eee8; color: #4b5055; font-size: 11px; text-decoration: none; }
.km-dashboard-page .km-simple-list a:hover { background: #fff8f1; color: #f47721; }
.km-dashboard-page .km-simple-list i { width: 20px; margin-right: 4px; color: #f47721; }
.km-dashboard-page .km-simple-list b { color: #33373b; }
.km-dashboard-page .km-activity-list { padding: 0 17px 5px; }
.km-dashboard-page .km-activity-item { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid #f5eee8; }
.km-dashboard-page .km-activity-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 50%; background: #fff0e2; color: #f47721; font-size: 11px; }
.km-dashboard-page .km-activity-item div { min-width: 0; flex: 1; }
.km-dashboard-page .km-activity-item strong, .km-dashboard-page .km-activity-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km-dashboard-page .km-activity-item strong { color: #474b50; font-size: 10px; }
.km-dashboard-page .km-activity-item small { margin-top: 2px; color: #969a9e; font-size: 10px; }
.km-dashboard-page .km-activity-item time { color: #a2a5a8; font-size: 9px; white-space: nowrap; }

.km-dashboard-page .km-dashboard-rail { min-width: 0; }
.km-dashboard-page .km-dashboard-hero { position: relative; display: flex; min-height: 104px; align-items: center; justify-content: space-between; overflow: hidden; margin-bottom: 14px; padding: 17px 15px; border-radius: 12px; background: linear-gradient(135deg, #fff0df 0%, #ffd7b3 100%); }
.km-dashboard-page .km-dashboard-hero:after { content: ''; position: absolute; right: -23px; bottom: -44px; width: 145px; height: 145px; border: 19px solid rgba(244,119,33,.18); border-radius: 50%; }
.km-dashboard-page .km-dashboard-hero > div { position: relative; z-index: 1; }
.km-dashboard-page .km-hero-kicker { display: block; max-width: 145px; overflow: hidden; margin-bottom: 7px; color: #c4601d; font-size: 9px; font-weight: 750; letter-spacing: .05em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.km-dashboard-page .km-dashboard-hero strong { display: block; color: #2b2018; font-size: 16px; line-height: 1.12; }
.km-dashboard-page .km-dashboard-hero small { display: block; max-width: 170px; margin-top: 6px; color: #a55d31; font-size: 9px; }
.km-dashboard-page .km-hero-art { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 69px; height: 69px; margin-right: 6px; border-radius: 17px; background: #f47721; box-shadow: 0 8px 14px rgba(191,83,17,.18); color: #fff; font-size: 31px; transform: rotate(-10deg); }
.km-dashboard-page .km-rail-panel { padding: 15px; }
.km-dashboard-page .km-rail-panel > h2 { margin-bottom: 9px; }
.km-dashboard-page .km-rail-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.km-dashboard-page .km-rail-heading h2 { margin: 0; }
.km-dashboard-page .km-rail-action { display: flex; align-items: center; gap: 8px; min-height: 48px; border-top: 1px solid #f5eee8; color: #454a4f; text-decoration: none; }
.km-dashboard-page .km-rail-action:hover { color: #f47721; text-decoration: none; }
.km-dashboard-page .km-rail-action .km-action-icon { flex-basis: 28px; width: 28px; height: 28px; margin: 0; font-size: 12px; }
.km-dashboard-page .km-rail-action > span:nth-child(2) { min-width: 0; flex: 1; }
.km-dashboard-page .km-rail-action b, .km-dashboard-page .km-rail-action small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km-dashboard-page .km-rail-action b { font-size: 10px; }
.km-dashboard-page .km-rail-action small { margin-top: 3px; color: #979b9f; font-size: 9px; }
.km-dashboard-page .km-rail-action > i { color: #a7aaad; font-size: 10px; }
.km-dashboard-page .km-recent-campaign { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 9px 0; border-top: 1px solid #f5eee8; color: #44494e; text-decoration: none; }
.km-dashboard-page .km-recent-campaign:hover { color: #f47721; text-decoration: none; }
.km-dashboard-page .km-recent-campaign .km-campaign-thumb { flex: 0 0 34px; width: 34px; height: 34px; margin: 0; }
.km-dashboard-page .km-recent-campaign > span:nth-child(2) { min-width: 0; flex: 1; }
.km-dashboard-page .km-recent-campaign b, .km-dashboard-page .km-recent-campaign small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km-dashboard-page .km-recent-campaign b { color: #454a4f; font-size: 10px; }
.km-dashboard-page .km-recent-campaign small { margin-top: 3px; color: #979b9f; font-size: 9px; }
.km-dashboard-page .km-status-pill { padding: 4px 6px; border-radius: 6px; font-size: 8px; font-style: normal; font-weight: 750; }
.km-dashboard-page .km-status-pill.sent { background: #e0f6ec; color: #149966; }
.km-dashboard-page .km-status-pill.scheduled { background: #fff1ce; color: #ac7800; }
.km-dashboard-page .km-status-pill.draft { background: #eef0f2; color: #777e84; }
.km-dashboard-page .km-rail-empty { padding: 18px 0 6px; color: #999da1; font-size: 10px; text-align: center; }
.km-dashboard-page .km-push-overview { padding: 6px 0 9px; text-align: center; }
.km-dashboard-page .km-push-overview strong { display: block; color: #25292d; font-size: 25px; line-height: 1.1; }
.km-dashboard-page .km-push-overview span { display: block; margin-top: 3px; color: #8e9398; font-size: 10px; }
.km-dashboard-page .km-push-overview div { margin-top: 10px; color: #9a9ea1; font-size: 9px; }
.km-dashboard-page .km-push-overview div i { color: #f47721; }
.km-dashboard-page .km-install-link { display: block; padding-top: 10px; border-top: 1px solid #f5eee8; color: #f47721; font-size: 10px; font-weight: 750; text-align: center; text-decoration: none; }

@media (max-width: 1200px) and (min-width: 768px) {
  .km-dashboard-page .km-dashboard-stage { grid-template-columns: minmax(0, 1fr) 285px; }
  .km-dashboard-page .km-dashboard-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .km-dashboard-page .km-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .km-dashboard-page .km-dashboard-stage { display: block; }
  .km-dashboard-page .km-dashboard-quick-grid, .km-dashboard-page .km-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .km-dashboard-page .km-dashboard-main-grid, .km-dashboard-page .km-dashboard-bottom-grid { display: block; }
  .km-dashboard-page .km-dashboard-main-grid > .km-dashboard-panel, .km-dashboard-page .km-dashboard-bottom-grid > .km-dashboard-panel { margin-bottom: 12px; }
  .km-dashboard-page .km-dashboard-action { min-height: 75px; padding: 10px; }
  .km-dashboard-page .km-action-copy strong { font-size: 10px; }
  .km-dashboard-page .km-action-copy small { display: none; }
  .km-dashboard-page .km-metric-card { min-height: 127px; padding: 12px; }
  .km-dashboard-page .km-metric-value { font-size: 20px; }
  .km-dashboard-page .km-dashboard-quick-push .km-inline-form { display: block; }
  .km-dashboard-page .km-dashboard-quick-push .km-inline-form input, .km-dashboard-page .km-dashboard-quick-push .km-inline-form button { width: 100%; margin-bottom: 7px; }
  .km-dashboard-page .km-dashboard-rail { margin-top: 14px; }
  .km-dashboard-page .km-dashboard-hero { min-height: 96px; }
  .km-dashboard-page .km-chart-legend { justify-content: flex-start; }
  .km-dashboard-page .km-panel-heading { padding-left: 13px; padding-right: 13px; }
}

/* Warm orange navigation accents to match the Bhaiyaji CRM brand. */
.km-dashboard-page .km-sidebar .nav-list > li > a:hover { background: #fff0e2; color: #e96b18; }
.km-dashboard-page .km-sidebar .nav-list > li.active > a,
.km-dashboard-page .km-sidebar .nav-list > li.active > a:hover { background: #f47721 !important; color: #fff !important; box-shadow: 0 4px 10px rgba(244,119,33,.20); }
.km-dashboard-page .km-sidebar .nav-list > li.active > a i { color: #fff; }
.km-dashboard-page .km-sidebar .nav-list .nav-header { color: #e06d22; }


/* Dashboard header search + notification affordance. */
body.km-crm-page .km-header-search { display: flex; align-items: center; gap: 8px; width: min(410px, 32vw); height: 36px; margin: 11px 16px 0 0; padding: 0 12px; box-sizing: border-box; border: 1px solid #f0e4d8; border-radius: 9px; background: #fffaf5; }
body.km-crm-page .km-header-search i { color: #95999d; font-size: 12px; }
body.km-crm-page .km-header-search input { flex: 1; min-width: 0; height: 30px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: #3c4146; font-size: 11px; }
body.km-crm-page .km-header-search input:focus { outline: 0; box-shadow: none; }
body.km-crm-page .km-header-search input::placeholder { color: #a4a6a9; }
body.km-crm-page .km-header-notify { margin: 14px 13px 0 0; }
body.km-crm-page .km-header-notify a { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; color: #44494e; text-decoration: none; }
body.km-crm-page .km-header-notify a:hover { background: #fff0e2; color: #f47721; }
body.km-crm-page .km-header-notify a > span { position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; border: 2px solid #fffdf9; border-radius: 50%; background: #f47721; }
@media (max-width: 900px) and (min-width: 768px) { body.km-crm-page .km-header-search { width: 220px; } body.km-crm-page .km-header-search input { font-size: 10px; } }
@media (max-width: 767px) { body.km-crm-page .km-header-search { display: none; } body.km-crm-page .km-header-notify { margin-right: 5px; } }


/* ===== Reference-match pass: full-height cream nav, tighter first viewport ===== */
body.km-crm-page > .container-fluid { max-width: none; padding-left: 0; padding-right: 0; }
@media (min-width: 768px) {
  .km-app-shell { max-width: none; margin: 0; gap: 28px; padding: 0 18px 42px 0; }
  .km-app-shell > .km-sidebar { flex: 0 0 230px; width: 230px; top: 60px; max-height: calc(100vh - 60px); padding: 16px 8px 40px; background: #fff5eb; border-right: 1px solid #f1dfcf; }
  .km-sidebar .sidebar-box { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .km-sidebar .sidebar-nav { padding-bottom: 24px; }
  .km-sidebar .nav-list { padding-left: 6px; padding-right: 6px; }
  .km-app-shell > .km-main { padding-top: 20px; }
  .km-dashboard-page .km-dashboard-stage { grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; }
  .km-dashboard-page .km-dashboard-welcome h1 { font-size: 31px; }
  .km-dashboard-page .km-dashboard-quick-grid { gap: 13px; }
  .km-dashboard-page .km-dashboard-metrics { gap: 13px; }
}
.km-dashboard-page .km-dashboard-content > .km-dashboard-main-grid { margin-top: 0; }
.km-dashboard-page .km-dashboard-main-grid > .km-dashboard-panel { margin-bottom: 16px; }
.km-dashboard-page .km-dashboard-rail > .km-dashboard-panel { margin-bottom: 14px; }
.km-dashboard-page .km-campaign-thumb.thumb-1 { background: linear-gradient(145deg,#f9c099,#ef6f28); color:#fff; }
.km-dashboard-page .km-campaign-thumb.thumb-2 { background: linear-gradient(145deg,#8fc9da,#2d7696); color:#fff; }
.km-dashboard-page .km-campaign-thumb.thumb-3 { background: linear-gradient(145deg,#f3e1c1,#cc8a42); color:#fff; }
.km-dashboard-page .km-campaign-thumb.thumb-4 { background: linear-gradient(145deg,#eab0a0,#9e4635); color:#fff; }
.km-dashboard-page .km-rail-activity { display:flex; align-items:center; gap:8px; padding:10px 0; border-top:1px solid #f5eee8; }
.km-dashboard-page .km-rail-activity > span:nth-child(2) { min-width:0; flex:1; }
.km-dashboard-page .km-rail-activity b,.km-dashboard-page .km-rail-activity small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.km-dashboard-page .km-rail-activity b { color:#454a4f; font-size:10px; }
.km-dashboard-page .km-rail-activity small { margin-top:3px; color:#979b9f; font-size:9px; }
.km-dashboard-page .km-rail-activity time { color:#a2a5a8; font-size:9px; white-space:nowrap; }
@media (max-width: 767px) {
  body.km-crm-page > .container-fluid { padding-left: 0; padding-right: 0; }
  .km-app-shell { padding: 12px 14px 36px; }
  .km-dashboard-page .km-dashboard-rail { margin-top: 14px; }
}

/* ===== Dashboard shell: match the supplied Bhaiyaji CRM reference ===== */
@media (min-width: 768px) {
  body.km-workspace-shell { min-width: 980px; overflow-x: hidden; background: #fffaf5; }
  body.km-workspace-shell .navbar-fixed-top { left: 230px; right: 0; width: auto; background: #fffaf5; border-bottom: 1px solid #f1dfcf; box-shadow: none; }
  body.km-workspace-shell .navbar-inner { min-height: 60px; height: 60px; background: #fffaf5; box-shadow: none; }
  body.km-workspace-shell .navbar-inner > .container-fluid { max-width: none; padding-left: 18px; padding-right: 18px; }
  body.km-workspace-shell .navbar .brand,
  body.km-workspace-shell .navbar .btn-navbar { display: none; }
  body.km-workspace-shell > .container-fluid { max-width: none; margin: 0; padding: 10px 0 0; }
  body.km-workspace-shell .km-app-shell { display: block; min-height: calc(100vh - 60px); max-width: none; margin: 0; padding: 0 18px 48px 0; }
  body.km-workspace-shell .km-sidebar { position: fixed; z-index: 1031; top: 0; bottom: 0; left: 0; box-sizing: border-box; display: block; width: 230px; max-height: none; margin: 0; padding: 0 9px 36px; overflow-y: auto; background: #fff5eb; border-right: 1px solid #f1dfcf; }
  body.km-workspace-shell .km-sidebar .sidebar-box { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  body.km-workspace-shell .km-sidebar .km-tasks { display: none; }
  body.km-workspace-shell .km-reference-brand { display: flex; align-items: center; gap: 8px; box-sizing: border-box; height: 72px; margin: 0 -9px 8px; padding: 12px 17px 10px; border-bottom: 1px solid #f2dfcf; }
  body.km-workspace-shell .km-reference-brand-mark { flex: 0 0 34px; width: 34px; height: 34px; }
  body.km-workspace-shell .km-reference-brand > span { display: flex; flex-direction: column; min-width: 0; }
  body.km-workspace-shell .km-reference-brand strong { color: #202329; font-size: 21px; font-weight: 800; letter-spacing: -.7px; line-height: 1; }
  body.km-workspace-shell .km-reference-brand small { margin-top: 4px; color: #6d7074; font-size: 8px; letter-spacing: .02em; line-height: 1; }
  body.km-workspace-shell .km-sidebar .sidebar-nav { padding: 0 0 20px; }
  body.km-workspace-shell .km-sidebar .nav-list { margin: 0; padding: 0 5px; }
  body.km-workspace-shell .km-sidebar .nav-list + .nav-list { margin-top: 7px; padding-top: 0; border-top: 0; }
  body.km-workspace-shell .km-sidebar .nav-list .nav-header { padding: 10px 9px 4px; color: #df6b22; font-size: 10px; font-weight: 800; letter-spacing: .045em; line-height: 16px; text-transform: none; }
  body.km-workspace-shell .km-sidebar .nav-list:first-of-type .nav-header { padding-top: 2px; }
  body.km-workspace-shell .km-sidebar .nav-list > li > a { min-height: 18px; margin: 1px 0; padding: 5px 8px; border-radius: 8px; color: #34383d; font-size: 11px; line-height: 18px; }
  body.km-workspace-shell .km-sidebar .nav-list > li > a i { width: 16px; margin-right: 5px; color: #6c747c; font-size: 12px; text-align: center; }
  body.km-workspace-shell .km-sidebar .nav-list > li > a:hover { background: #ffead8; color: #df6b22; }
  body.km-workspace-shell .km-sidebar .nav-list > li.active > a,
  body.km-workspace-shell .km-sidebar .nav-list > li.active > a:hover { background: #ffdcbf !important; color: #df6b22 !important; box-shadow: none; font-weight: 700; }
  body.km-workspace-shell .km-sidebar .nav-list > li.active > a i { color: #df6b22; }
  body.km-workspace-shell .km-main { width: auto; min-width: 0; margin: 0 0 0 258px; padding-top: 20px; float: none; }
  body.km-workspace-shell .km-dashboard-page .km-dashboard-stage { grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; }
  body.km-workspace-shell .km-dashboard-page .km-dashboard-welcome { margin-top: 0; }
}
@media (max-width: 767px) {
  body.km-workspace-shell { background: #fffaf5; }
  body.km-workspace-shell .navbar-fixed-top { left: 0; right: 0; }
  body.km-workspace-shell > .container-fluid { padding-top: 60px; }
  body.km-workspace-shell .km-app-shell { display: block; padding: 12px 14px 36px; }
  body.km-workspace-shell .km-sidebar { position: relative; width: auto; max-height: none; margin: 0 0 14px; padding: 0 0 12px; background: #fff5eb; border: 1px solid #f1dfcf; }
  body.km-workspace-shell .km-reference-brand { display: flex; align-items: center; gap: 8px; height: 62px; padding: 10px 14px; }
  body.km-workspace-shell .km-reference-brand-mark { width: 30px; height: 30px; }
  body.km-workspace-shell .km-sidebar .km-tasks { display: none; }
  body.km-workspace-shell .km-main { width: auto; margin: 0; padding: 0; }
}

/* Legacy workspace pages (push stats, reports, lists, settings, etc.) use a
   plain Bootstrap row instead of km-app-shell. Bring them into the same shell
   without changing their page-specific content or routes. */
@media (min-width: 768px) {
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) {
    display: block;
    min-height: calc(100vh - 60px);
    max-width: none;
    margin: 0;
    padding: 0 18px 48px 0;
  }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 {
    position: fixed;
    z-index: 1031;
    top: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    display: block;
    width: 230px !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 9px 36px;
    overflow-y: auto;
    float: none !important;
    background: #fff5eb;
    border-right: 1px solid #f1dfcf;
  }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span10,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) {
    display: block;
    width: auto !important;
    min-width: 0;
    margin: 0 0 0 258px !important;
    padding-top: 20px;
    float: none !important;
  }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .sidebar-box {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .km-tasks,
  body.km-workspace-shell .km-sidebar .km-tasks { display: none !important; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .sidebar-nav { padding: 0 0 20px; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list { margin: 0; padding: 0 5px; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list + .nav-list { margin-top: 7px; padding-top: 0; border-top: 0; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list .nav-header { padding: 10px 9px 4px; color: #df6b22; font-size: 10px; font-weight: 800; letter-spacing: .045em; line-height: 16px; text-transform: none; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list:first-of-type .nav-header { padding-top: 2px; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a { min-height: 18px; margin: 1px 0; padding: 5px 8px; border-radius: 8px; color: #34383d; font-size: 11px; line-height: 18px; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a i { width: 16px; margin-right: 5px; color: #6c747c; font-size: 12px; text-align: center; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a:hover { background: #ffead8; color: #df6b22; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li.active > a,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li.active > a:hover { background: #ffdcbf !important; color: #df6b22 !important; box-shadow: none; font-weight: 700; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li.active > a i { color: #df6b22; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .km-reference-brand { display: flex; align-items: center; gap: 8px; box-sizing: border-box; height: 72px; margin: 0 -9px 8px; padding: 12px 17px 10px; border-bottom: 1px solid #f2dfcf; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .km-reference-brand-mark { flex: 0 0 34px; width: 34px; height: 34px; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .km-reference-brand > span { display: flex; flex-direction: column; min-width: 0; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .km-reference-brand strong { color: #202329; font-size: 21px; font-weight: 800; letter-spacing: -.7px; line-height: 1; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .km-reference-brand small { margin-top: 4px; color: #6d7074; font-size: 8px; letter-spacing: .02em; line-height: 1; }
}
@media (max-width: 767px) {
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) { display: block; padding: 12px 14px 36px; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span10,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) { width: auto !important; margin: 0 0 14px !important; float: none !important; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 { min-height: 0; padding: 0 0 12px; background: #fff5eb; border: 1px solid #f1dfcf; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .km-tasks { display: none !important; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .km-reference-brand { height: 62px; padding: 10px 14px; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .km-reference-brand-mark { width: 30px; height: 30px; }
}

/* Keep the canvas inside the viewport. The legacy Bootstrap span widths
   otherwise leave the first dashboard cards underneath the fixed rail. */
@media (min-width: 768px) {
  body.km-workspace-shell .km-app-shell > .km-main,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) {
    box-sizing: border-box;
    width: calc(100% - 258px) !important;
    max-width: calc(100% - 258px);
    margin-left: 258px !important;
    overflow-x: hidden;
  }
  body.km-workspace-shell .km-dashboard-page { box-sizing: border-box; width: 100% !important; max-width: 100%; margin-left: 0 !important; }
  body.km-workspace-shell .km-dashboard-page .km-dashboard-stage,
  body.km-workspace-shell .km-dashboard-page .km-dashboard-content { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; }
  body.km-workspace-shell .km-dashboard-page .km-dashboard-content { overflow-x: hidden; }
}

/* ===== Top-level brand manager shell ===== */
@media (min-width: 768px) {
  body.km-brands-shell { min-width: 980px; overflow-x: hidden; background: #fffaf5; }
  body.km-brands-shell .navbar-fixed-top { left: 230px; right: 0; width: auto; background: #fffaf5; border-bottom: 1px solid #f1dfcf; box-shadow: none; }
  body.km-brands-shell .navbar-inner { min-height: 60px; height: 60px; background: #fffaf5; box-shadow: none; }
  body.km-brands-shell .navbar-inner > .container-fluid { max-width: none; padding-left: 18px; padding-right: 18px; }
  body.km-brands-shell .navbar .brand,
  body.km-brands-shell .navbar .btn-navbar { display: none; }
  body.km-brands-shell > .container-fluid { max-width: none; margin: 0; padding: 60px 0 0; }
  body.km-brands-shell .km-brands-page { display: block; min-height: calc(100vh - 60px); max-width: none; margin: 0; padding: 0 18px 48px 0; }
  body.km-brands-shell .km-brands-page > .km-brands-rail,
  body.km-brands-shell .km-brands-page > .span2 { position: fixed; z-index: 1031; top: 0; bottom: 0; left: 0; box-sizing: border-box; display: block; width: 230px !important; min-height: 100vh; margin: 0 !important; padding: 0 9px 36px; overflow-y: auto; float: none !important; background: #fff5eb; border-right: 1px solid #f1dfcf; }
  body.km-brands-shell .km-brands-page > .km-brands-main,
  body.km-brands-shell .km-brands-page > .span10 { display: block; box-sizing: border-box; width: calc(100% - 258px) !important; max-width: calc(100% - 258px); min-width: 0; margin: 0 0 0 258px !important; padding-top: 20px; float: none !important; }
  body.km-brands-shell .km-brands-rail .km-reference-brand { display: flex; align-items: center; gap: 8px; box-sizing: border-box; height: 72px; margin: 0 -9px 8px; padding: 12px 17px 10px; border-bottom: 1px solid #f2dfcf; }
  body.km-brands-shell .km-brands-rail .km-reference-brand-mark { flex: 0 0 34px; width: 34px; height: 34px; }
  body.km-brands-shell .km-brands-rail .km-reference-brand > span { display: flex; flex-direction: column; min-width: 0; }
  body.km-brands-shell .km-brands-rail .km-reference-brand strong { color: #202329; font-size: 21px; font-weight: 800; letter-spacing: -.7px; line-height: 1; }
  body.km-brands-shell .km-brands-rail .km-reference-brand small { margin-top: 4px; color: #6d7074; font-size: 8px; letter-spacing: .02em; line-height: 1; }
  body.km-brands-shell .km-brands-nav { padding: 0 5px 12px; }
  body.km-brands-shell .km-brands-nav-heading { padding: 10px 9px 4px; color: #df6b22; font-size: 10px; font-weight: 800; letter-spacing: .045em; line-height: 16px; }
  body.km-brands-shell .km-brands-nav a { display: block; min-height: 18px; margin: 1px 0; padding: 5px 8px; border-radius: 8px; color: #34383d; font-size: 11px; line-height: 18px; text-decoration: none; }
  body.km-brands-shell .km-brands-nav a i { width: 16px; margin-right: 5px; color: #6c747c; font-size: 12px; text-align: center; }
  body.km-brands-shell .km-brands-nav a.active,
  body.km-brands-shell .km-brands-nav a:hover { background: #ffdcbf; color: #df6b22; font-weight: 700; }
  body.km-brands-shell .km-brands-nav a.active i,
  body.km-brands-shell .km-brands-nav a:hover i { color: #df6b22; }
  body.km-brands-shell .km-brands-legacy-box { display: none; }
  body.km-brands-shell .km-home-title { margin: 8px 0 22px; color: #17191c; font-size: 31px; font-weight: 700; letter-spacing: -.8px; line-height: 1.2; }
  body.km-brands-shell .km-home-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 18px; }
  body.km-brands-shell .km-home-toolbar > .btn-primary { min-height: 42px; padding: 10px 16px; border: 0; border-radius: 10px; background: #f47721; color: #fff; font-size: 13px; font-weight: 750; text-shadow: none; box-shadow: 0 4px 10px rgba(244,119,33,.18); }
  body.km-brands-shell .km-home-toolbar > .btn-primary:hover { background: #df6614; }
  body.km-brands-shell .km-home-search { display: flex; align-items: center; gap: 8px; margin: 0; }
  body.km-brands-shell .km-home-search .search-query { box-sizing: border-box; width: 290px; height: 42px; margin: 0; border: 1px solid #eadfd5; border-radius: 10px; background: #fffdf9; box-shadow: none; }
  body.km-brands-shell .km-home-search .btn { height: 42px; border: 1px solid #eadfd5; border-radius: 10px; background: #fffdf9; box-shadow: none; font-weight: 700; }
  body.km-brands-shell .km-table-wrap { overflow-x: auto; border: 1px solid #f0e4d8; border-radius: 14px; background: #fffdf9; box-shadow: 0 2px 9px rgba(99,65,38,.035); }
  body.km-brands-shell #brands-table { width: 100%; min-width: 900px; margin: 0; border: 0; border-collapse: collapse; background: #fffdf9; }
  body.km-brands-shell #brands-table thead th { padding: 14px 12px; border-bottom: 1px solid #f0e4d8; background: #fffaf5; color: #64686d; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  body.km-brands-shell #brands-table tbody td { padding: 15px 12px; border-top: 1px solid #f5eee8; color: #4a4f54; font-size: 12px; vertical-align: middle; }
  body.km-brands-shell #brands-table tbody tr:hover td { background: #fff8f1; }
  body.km-brands-shell #brands-table tbody td p { margin: 0; }
  body.km-brands-shell #brands-table tbody td a { color: #34383d; text-decoration: none; }
  body.km-brands-shell #brands-table tbody td a:hover { color: #df6b22; }
  body.km-brands-shell #brands-table .btn { min-width: 28px; height: 28px; box-sizing: border-box; margin: 0 2px 0 0; padding: 4px 7px; border: 1px solid #eee0d3; border-radius: 7px; background: #fffdf9; box-shadow: none; color: #555b60; text-shadow: none; }
  body.km-brands-shell #brands-table .btn:hover { border-color: #f3bd93; background: #fff0e2; color: #df6b22; }
  body.km-brands-shell #brands-table .label { border-radius: 6px; background: #f1f3f4; color: #676d73; text-shadow: none; }
  body.km-brands-shell #brands-table .label-success { background: #dff5e9; color: #149966; }
}
@media (max-width: 767px) {
  body.km-brands-shell { background: #fffaf5; }
  body.km-brands-shell .navbar-fixed-top { left: 0; right: 0; }
  body.km-brands-shell > .container-fluid { padding-top: 60px; }
  body.km-brands-shell .km-brands-page { display: block; padding: 12px 14px 36px; }
  body.km-brands-shell .km-brands-page > .span2,
  body.km-brands-shell .km-brands-page > .span10 { width: auto !important; margin: 0 0 14px !important; float: none !important; }
  body.km-brands-shell .km-brands-rail { min-height: 0; padding: 0 0 12px; background: #fff5eb; border: 1px solid #f1dfcf; }
  body.km-brands-shell .km-brands-rail .km-reference-brand { height: 62px; margin: 0; padding: 10px 14px; }
  body.km-brands-shell .km-brands-rail .km-reference-brand-mark { width: 30px; height: 30px; }
  body.km-brands-shell .km-home-toolbar { display: block; }
  body.km-brands-shell .km-home-search { margin-top: 12px; }
  body.km-brands-shell .km-home-search .search-query { flex: 1; width: auto; }
}

/* Self-serve customer account notice on New Brand */
body.km-brands-shell .km-self-serve-note { max-width: 680px; margin: 0 0 20px; padding: 15px 17px; border: 1px solid #f1d3b6; border-radius: 12px; background: #fff4e8; color: #4d4036; box-shadow: 0 2px 8px rgba(99,65,38,.03); }
body.km-brands-shell .km-self-serve-note strong { display: block; color: #2b241f; font-size: 15px; }
body.km-brands-shell .km-self-serve-note p { margin: 5px 0 8px; color: #776b62; font-size: 12px; line-height: 1.5; }
body.km-brands-shell .km-self-serve-status { margin-bottom: 10px; color: #149966; font-size: 11px; font-weight: 700; }
body.km-brands-shell .km-self-serve-note .btn { margin-right: 6px; border-radius: 8px; box-shadow: none; text-shadow: none; }
body.km-brands-shell .km-self-serve-note .btn-primary { border: 0; background: #f47721; color: #fff; }
body.km-brands-shell .km-self-serve-note .btn-primary:hover { background: #df6614; }

/* ===== Fixed chrome and collapsible navigation ===== */
body.km-workspace-shell,
body.km-brands-shell { --km-rail-width: 230px; --km-content-offset: 258px; }
body.km-workspace-shell.km-sidebar-collapsed,
body.km-brands-shell.km-sidebar-collapsed { --km-rail-width: 68px; --km-content-offset: 86px; }

body.km-workspace-shell .km-sidebar-toggle,
body.km-brands-shell .km-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  margin: 13px 10px 0 0;
  padding: 0;
  border: 1px solid #f0dfcf;
  border-radius: 8px;
  background: #fffdf9;
  color: #6c747c;
  cursor: pointer;
  float: left;
  box-shadow: none;
  text-shadow: none;
}
body.km-workspace-shell .km-sidebar-toggle:hover,
body.km-brands-shell .km-sidebar-toggle:hover { background: #fff0e2; color: #df6b22; }
body.km-workspace-shell .km-sidebar-toggle i,
body.km-brands-shell .km-sidebar-toggle i { margin: 0; font-size: 15px; }
body.km-workspace-shell .km-sidebar-toggle span,
body.km-brands-shell .km-sidebar-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (min-width: 768px) {
  body.km-workspace-shell .navbar-fixed-top,
  body.km-brands-shell .navbar-fixed-top { left: var(--km-rail-width) !important; }
  body.km-workspace-shell .km-sidebar,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 {
    width: var(--km-rail-width) !important;
  }
  body.km-brands-shell .km-brands-page > .km-brands-rail,
  body.km-brands-shell .km-brands-page > .span2 { width: var(--km-rail-width) !important; }
  body.km-workspace-shell .km-app-shell > .km-main,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) {
    width: calc(100% - var(--km-content-offset)) !important;
    max-width: calc(100% - var(--km-content-offset));
    margin-left: var(--km-content-offset) !important;
  }
  body.km-brands-shell .km-brands-page > .km-brands-main,
  body.km-brands-shell .km-brands-page > .span10 {
    width: calc(100% - var(--km-content-offset)) !important;
    max-width: calc(100% - var(--km-content-offset));
    margin-left: var(--km-content-offset) !important;
  }
  body.km-workspace-shell .km-sidebar .km-reference-brand,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .km-reference-brand,
  body.km-brands-shell .km-brands-rail .km-reference-brand {
    transition: padding .18s ease, margin .18s ease;
  }
  body.km-sidebar-collapsed .km-reference-brand > span { display: none !important; }
  body.km-sidebar-collapsed .km-reference-brand { justify-content: center; padding-left: 0 !important; padding-right: 0 !important; }
  body.km-sidebar-collapsed .km-reference-brand-mark { margin: 0; }
  body.km-sidebar-collapsed .km-sidebar .nav-list .nav-header,
  body.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list .nav-header,
  body.km-sidebar-collapsed .km-brands-nav-heading { display: none !important; }
  body.km-sidebar-collapsed .km-sidebar .nav-list,
  body.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list,
  body.km-sidebar-collapsed .km-brands-nav { padding-left: 4px; padding-right: 4px; }
  body.km-sidebar-collapsed .km-sidebar .nav-list > li > a,
  body.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a,
  body.km-sidebar-collapsed .km-brands-nav a {
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    font-size: 0;
    white-space: nowrap;
  }
  body.km-sidebar-collapsed .km-sidebar .nav-list > li > a i,
  body.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a i,
  body.km-sidebar-collapsed .km-brands-nav a i { width: auto; margin: 0 !important; font-size: 14px; }
  body.km-sidebar-collapsed .km-sidebar { overflow-x: hidden; }
  body.km-sidebar-collapsed .km-brands-rail { overflow-x: hidden; }
}

/* The footer remains visible while page content scrolls. */
body.km-workspace-shell > .container-fluid > hr,
body.km-brands-shell > .container-fluid > hr { display: none; }
body.km-workspace-shell > .container-fluid > footer,
body.km-brands-shell > .container-fluid > footer {
  position: fixed;
  z-index: 1025;
  right: 0;
  bottom: 0;
  left: var(--km-rail-width);
  box-sizing: border-box;
  height: 38px;
  margin: 0;
  padding: 0 18px;
  overflow: hidden;
  border-top: 1px solid #f1dfcf;
  background: #fffaf5;
  color: #77736e;
  font-size: 11px;
  line-height: 38px;
}
body.km-workspace-shell > .container-fluid > footer .footer-left,
body.km-brands-shell > .container-fluid > footer .footer-left { margin: 0; float: left; line-height: 38px; }
body.km-workspace-shell > .container-fluid > footer .footer-right,
body.km-brands-shell > .container-fluid > footer .footer-right { margin: 0; float: right; line-height: 38px; }
body.km-workspace-shell > .container-fluid > footer a,
body.km-brands-shell > .container-fluid > footer a { color: #77736e; }
body.km-workspace-shell > .container-fluid > footer #footer-mode,
body.km-brands-shell > .container-fluid > footer #footer-mode { position: relative; top: 5px; line-height: normal; }
body.km-workspace-shell > .container-fluid,
body.km-brands-shell > .container-fluid { padding-bottom: 54px !important; }

@media (max-width: 767px) {
  body.km-workspace-shell .navbar-fixed-top,
  body.km-brands-shell .navbar-fixed-top { left: 0 !important; }
  body.km-workspace-shell > .container-fluid > footer,
  body.km-brands-shell > .container-fluid > footer { left: 0; height: 36px; line-height: 36px; padding: 0 10px; }
  body.km-workspace-shell > .container-fluid > footer .footer-left,
  body.km-brands-shell > .container-fluid > footer .footer-left { line-height: 36px; }
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-rail { display: none !important; }
  body.km-workspace-shell .km-sidebar-toggle,
  body.km-brands-shell .km-sidebar-toggle { margin-top: 13px; }
}

/* ===== Responsive repair: fluid tablet/mobile shell ===== */
/* Bootstrap's legacy responsive sheet switches the navbar to static and
   keeps fixed 980px desktop rails. The CRM shell overrides those defaults so
   the same pages remain usable from a phone through a tablet. */
body.km-workspace-shell,
body.km-brands-shell {
  min-width: 0 !important;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 1023px) {
  body.km-workspace-shell .navbar-fixed-top,
  body.km-brands-shell .navbar-fixed-top {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: auto !important;
    height: 60px;
    margin: 0 !important;
    z-index: 1030;
  }
  body.km-workspace-shell .navbar-inner,
  body.km-brands-shell .navbar-inner {
    min-height: 60px;
    height: 60px;
  }
  body.km-workspace-shell .navbar-inner > .container-fluid,
  body.km-brands-shell .navbar-inner > .container-fluid {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 60px;
    padding: 0 12px;
    gap: 4px;
  }
  body.km-workspace-shell > .container-fluid,
  body.km-brands-shell > .container-fluid {
    width: 100%;
    box-sizing: border-box;
    padding-top: 60px !important;
    padding-bottom: 54px !important;
  }
  body.km-workspace-shell .km-sidebar-toggle,
  body.km-brands-shell .km-sidebar-toggle {
    flex: 0 0 34px;
    float: none;
    margin: 0 4px 0 0;
  }
  body.km-workspace-shell .navbar .btn-navbar,
  body.km-brands-shell .navbar .btn-navbar { display: none !important; }
  body.km-workspace-shell .navbar .brand,
  body.km-brands-shell .navbar .brand {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 5px;
    color: #202329;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.km-workspace-shell .navbar .brand .main-gravatar,
  body.km-brands-shell .navbar .brand .main-gravatar {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin-right: 6px;
  }
  body.km-workspace-shell .navbar .btn-group.pull-right,
  body.km-brands-shell .navbar .btn-group.pull-right {
    flex: 0 0 auto;
    float: none !important;
    margin: 0 !important;
  }
  body.km-workspace-shell .navbar .btn-group.pull-right > .btn,
  body.km-brands-shell .navbar .btn-group.pull-right > .btn {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.km-workspace-shell .km-header-notify,
  body.km-brands-shell .km-header-notify {
    flex: 0 0 30px;
    order: 3;
    margin: 0 1px !important;
  }
  body.km-workspace-shell .km-brand-menu,
  body.km-brands-shell .km-brand-menu { order: 4; }
  body.km-workspace-shell .km-user-menu,
  body.km-brands-shell .km-user-menu { order: 5; }
  body.km-workspace-shell .km-header-search,
  body.km-brands-shell .km-header-search { display: none !important; }
  body.km-workspace-shell .nav-collapse,
  body.km-brands-shell .nav-collapse { display: none !important; }

  /* Use a stacked content flow below the tablet breakpoint instead of
     squeezing a 230px fixed rail into a narrow viewport. */
  body.km-workspace-shell .km-app-shell {
    display: block;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 14px 54px;
  }
  body.km-workspace-shell .km-app-shell > .km-sidebar {
    position: relative;
    top: auto;
    width: 100% !important;
    max-width: none;
    max-height: 265px;
    box-sizing: border-box;
    margin: 0 0 14px;
    padding: 0 0 12px;
    overflow-y: auto;
    border: 1px solid #f1dfcf;
    background: #fff5eb;
  }
  body.km-workspace-shell .km-app-shell > .km-main {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0;
    overflow: visible;
  }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) {
    display: block;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 14px 54px;
  }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span10,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) {
    display: block;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 0 14px !important;
    padding-left: 0;
    padding-right: 0;
  }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 {
    min-height: 0;
    max-height: 265px;
    padding: 0 0 12px;
    overflow-y: auto;
    border: 1px solid #f1dfcf;
    background: #fff5eb;
  }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .km-tasks { display: none !important; }
  body.km-workspace-shell .km-sidebar .sidebar-box,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .sidebar-box {
    border: 0;
    box-shadow: none;
  }

  /* Dashboard grids become one readable column while action/metric cards
     retain two columns where there is enough room. */
  body.km-workspace-shell .km-dashboard-page .km-dashboard-stage { display: block; }
  body.km-workspace-shell .km-dashboard-page .km-dashboard-content,
  body.km-workspace-shell .km-dashboard-page .km-dashboard-rail { width: 100%; max-width: none; min-width: 0; }
  body.km-workspace-shell .km-dashboard-page .km-dashboard-rail { margin-top: 14px; }
  body.km-workspace-shell .km-dashboard-page .km-dashboard-main-grid,
  body.km-workspace-shell .km-dashboard-page .km-dashboard-bottom-grid { display: block; }
  body.km-workspace-shell .km-dashboard-page .km-dashboard-main-grid > .km-dashboard-panel,
  body.km-workspace-shell .km-dashboard-page .km-dashboard-bottom-grid > .km-dashboard-panel { margin-bottom: 14px; }
  body.km-workspace-shell .km-dashboard-page .km-dashboard-quick-grid,
  body.km-workspace-shell .km-dashboard-page .km-dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* Brand manager and New Brand form. */
  body.km-brands-shell .km-brands-page {
    display: block;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 14px 54px;
  }
  body.km-brands-shell .km-brands-page > .km-brands-rail,
  body.km-brands-shell .km-brands-page > .span2 {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    float: none !important;
    width: 100% !important;
    max-width: none;
    min-height: 0;
    box-sizing: border-box;
    margin: 0 0 14px !important;
    padding: 0 0 12px;
    overflow-y: visible;
    border: 1px solid #f1dfcf;
    background: #fff5eb;
  }
  body.km-brands-shell .km-brands-page > .km-brands-main,
  body.km-brands-shell .km-brands-page > .span10 {
    display: block;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 0 14px !important;
    padding: 0;
  }
  body.km-brands-shell .km-brands-main > .span5 {
    display: block;
    float: none !important;
    width: 100% !important;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 0 24px !important;
    padding: 0;
  }
  body.km-brands-shell .km-brands-main input[type="text"],
  body.km-brands-shell .km-brands-main input[type="password"],
  body.km-brands-shell .km-brands-main input[type="file"],
  body.km-brands-shell .km-brands-main select,
  body.km-brands-shell .km-brands-main textarea,
  body.km-brands-shell .km-brands-main .input-xlarge {
    box-sizing: border-box;
    max-width: 100%;
  }
  body.km-brands-shell .km-home-toolbar { flex-wrap: wrap; }
  body.km-brands-shell .km-home-search { flex: 1 1 280px; min-width: 0; }
  body.km-brands-shell .km-home-search .search-query { width: auto; min-width: 0; flex: 1 1 auto; }

  /* Tables and old workspace pages scroll inside their surface, never the
     entire document. */
  body.km-workspace-shell .km-table-wrap,
  body.km-workspace-shell .table-wrapper,
  body.km-workspace-shell .table-responsive,
  body.km-brands-shell .km-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.km-workspace-shell .km-table-wrap > table,
  body.km-workspace-shell .table-wrapper table,
  body.km-workspace-shell .table-responsive table,
  body.km-brands-shell .km-table-wrap > table { max-width: none; }

  /* The left rail is a real drawer on small screens. */
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-rail { display: none !important; }

  body.km-workspace-shell > .container-fluid > footer,
  body.km-brands-shell > .container-fluid > footer {
    left: 0 !important;
    width: 100%;
  }
}

@media (max-width: 600px) {
  body.km-workspace-shell,
  body.km-brands-shell { padding-left: 0 !important; padding-right: 0 !important; }
  body.km-workspace-shell .navbar-inner > .container-fluid,
  body.km-brands-shell .navbar-inner > .container-fluid { padding-left: 8px; padding-right: 8px; }
  body.km-workspace-shell .navbar .brand,
  body.km-brands-shell .navbar .brand {
    flex-basis: 34px;
    flex-grow: 0;
    padding-left: 2px;
    padding-right: 2px;
    font-size: 0;
  }
  body.km-workspace-shell .navbar .brand .main-gravatar,
  body.km-brands-shell .navbar .brand .main-gravatar { margin-right: 0; }
  body.km-workspace-shell .navbar .btn-group.pull-right > .btn,
  body.km-brands-shell .navbar .btn-group.pull-right > .btn {
    max-width: 72px;
    padding-left: 7px;
    padding-right: 7px;
    font-size: 0;
  }
  body.km-workspace-shell .navbar .btn-group.pull-right > .btn i,
  body.km-brands-shell .navbar .btn-group.pull-right > .btn i,
  body.km-workspace-shell .navbar .btn-group.pull-right > .btn .caret,
  body.km-brands-shell .navbar .btn-group.pull-right > .btn .caret { font-size: 13px; }
  body.km-workspace-shell .navbar .btn-group.pull-right > .btn img,
  body.km-brands-shell .navbar .btn-group.pull-right > .btn img { margin-right: 0 !important; }
  body.km-workspace-shell .km-header-notify,
  body.km-brands-shell .km-header-notify { flex-basis: 28px; margin: 0 !important; }
  body.km-workspace-shell .km-sidebar,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2,
  body.km-brands-shell .km-brands-rail { max-height: 235px; }
  body.km-workspace-shell .km-dashboard-page .km-dashboard-quick-grid,
  body.km-workspace-shell .km-dashboard-page .km-dashboard-metrics { gap: 8px; }
  body.km-workspace-shell .km-dashboard-page .km-dashboard-action { min-height: 70px; padding: 9px 8px; }
  body.km-workspace-shell .km-dashboard-page .km-action-icon { flex-basis: 30px; width: 30px; height: 30px; margin-right: 7px; font-size: 13px; }
  body.km-workspace-shell .km-dashboard-page .km-metric-card { min-height: 118px; padding: 10px; }
  body.km-brands-shell .km-home-toolbar > .btn-primary { width: 100%; }
  body.km-brands-shell .km-home-search { width: 100%; flex-basis: 100%; }
  body.km-brands-shell .km-home-search .btn { flex: 0 0 auto; }
  body.km-workspace-shell > .container-fluid > footer,
  body.km-brands-shell > .container-fluid > footer {
    font-size: 10px;
    padding-left: 8px;
    padding-right: 8px;
  }
  body.km-workspace-shell > .container-fluid > footer .footer-right,
  body.km-brands-shell > .container-fluid > footer .footer-right { display: none; }
}

/* Legacy campaign/list/report toolbars: stop the old floated controls from
   extending under the rail or beyond a narrow content column. */
@media (min-width: 1024px) {
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) > div[style*="clear:both"] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) > div[style*="clear:both"] > .dropdown,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) > div[style*="clear:both"] > .form-search,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) > div[style*="clear:both"] > .campaigns-rss-btn {
    float: none !important;
    margin: 0 !important;
  }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) > div[style*="clear:both"] > .form-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto !important;
    min-width: 250px;
  }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) > div[style*="clear:both"] > .form-search .search-query {
    flex: 1 1 160px;
    min-width: 0;
    width: auto !important;
  }
}

@media (max-width: 1023px) {
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) > div[style*="clear:both"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) > div[style*="clear:both"] > .dropdown,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) > div[style*="clear:both"] > .form-search,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) > div[style*="clear:both"] > .campaigns-rss-btn {
    display: flex;
    align-items: center;
    float: none !important;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 0 10px !important;
  }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) > div[style*="clear:both"] > .dropdown > .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) > div[style*="clear:both"] > .form-search .search-query { flex: 1 1 auto; min-width: 0; width: auto !important; }
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) > div[style*="clear:both"] > .campaigns-rss-btn { justify-content: center; }
}

/* ===== Collapsed rail alignment fix =====
   Keep the fixed rail width in sync with the content/header offsets. This is
   explicit rather than variable-only so older Bootstrap span rules cannot
   leave a 230px rail sitting over an 86px content offset. */
@media (min-width: 1024px) {
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-page > .km-brands-rail,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-page > .span2 {
    flex: 0 0 68px !important;
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    left: 0 !important;
    right: auto !important;
    overflow-x: hidden;
  }
  body.km-workspace-shell.km-sidebar-collapsed .km-app-shell > .km-main,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2),
  body.km-brands-shell.km-sidebar-collapsed .km-brands-page > .km-brands-main,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-page > .span10 {
    width: calc(100% - 86px) !important;
    max-width: calc(100% - 86px) !important;
    min-width: 0 !important;
    margin-left: 86px !important;
    margin-right: 0 !important;
  }
  body.km-workspace-shell.km-sidebar-collapsed .navbar-fixed-top,
  body.km-brands-shell.km-sidebar-collapsed .navbar-fixed-top,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > footer,
  body.km-brands-shell.km-sidebar-collapsed > .container-fluid > footer { left: 68px !important; }
}

/* ===== Final mobile override after legacy app-mobile.css =====
/* app-mobile.css contains an old 220px sidebar minimum and a translated
   drawer rule. The branded CRM shell owns these pages, so cancel those rules
   for the CRM rail and keep the phone/tablet flow fluid. */
@media (max-width: 1023px) {
  body.km-workspace-shell,
  body.km-brands-shell {
    background: #fffaf5 !important;
  }
  body.km-workspace-shell .navbar-fixed-top .navbar-inner,
  body.km-brands-shell .navbar-fixed-top .navbar-inner {
    background: #fffaf5 !important;
  }
  body.km-workspace-shell .km-app-shell > .km-sidebar,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2,
  body.km-brands-shell .km-brands-page > .km-brands-rail,
  body.km-brands-shell .km-brands-page > .span2 {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box;
    transform: none !important;
    transition: none !important;
  }
  body.km-workspace-shell.km-sidebar-collapsed .km-app-shell > .km-sidebar,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-page > .km-brands-rail,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-page > .span2 {
    display: none !important;
  }
}

/* ===== Branded page mobile layout corrections ===== */
@media (max-width: 767px) {
  /* app-mobile.css intentionally hides the old home title and primary action
     for its legacy FAB layout. The branded Brands page has its own toolbar. */
  body.km-brands-shell .km-home-title {
    display: block !important;
    margin: 8px 0 16px !important;
    color: #17191c !important;
    font-size: 24px !important;
    line-height: 1.2;
  }
  body.km-brands-shell .km-home-toolbar > .btn-primary {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 0 10px !important;
  }
  body.km-brands-shell .km-home-search {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 0 12px !important;
  }
  body.km-brands-shell > .container-fluid > footer,
  body.km-workspace-shell > .container-fluid > footer {
    display: block !important;
  }
}

/* app-mobile.css has a higher type-selector count on its legacy .span2
   drawer rule. Include the span class in the branded selector so the CRM
   width/transform override wins by specificity as well as by source order. */
@media (max-width: 1023px) {
  body.km-workspace-shell .km-app-shell > .km-sidebar.span2,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2,
  body.km-brands-shell .km-brands-page > .km-brands-rail.span2,
  body.km-brands-shell .km-brands-page > .span2 {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    transform: none !important;
    transition: none !important;
  }
  body.km-workspace-shell.km-sidebar-collapsed .km-app-shell > .km-sidebar.span2,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-page > .km-brands-rail.span2,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-page > .span2 {
    display: none !important;
  }
}

/* ===== Sidebar toggle placement ===== */
/* The toggle lives in the navigation rail. Keep the header completely free
   of navigation controls and give the rail button a consistent hit target. */
body.km-workspace-shell .navbar .km-sidebar-toggle-source,
body.km-brands-shell .navbar .km-sidebar-toggle-source { display: none !important; }

body.km-workspace-shell .km-sidebar > .km-sidebar-toggle,
body.km-brands-shell .km-brands-rail > .km-sidebar-toggle,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 > .km-sidebar-toggle {
  position: relative;
  z-index: 1034;
  display: flex !important;
  float: none !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 10px auto 8px;
  padding: 0;
}

@media (max-width: 1023px) {
  /* When collapsed on a small viewport, retain a slim fixed rail containing
     the toggle so the user can expand navigation again. */
  body.km-workspace-shell.km-sidebar-collapsed .km-app-shell > .km-sidebar,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-page > .km-brands-rail,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-page > .span2 {
    position: fixed !important;
    z-index: 1032;
    top: 60px;
    bottom: 36px;
    left: 0;
    right: auto;
    display: block !important;
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    min-height: 0;
    height: auto;
    margin: 0 !important;
    padding: 0 4px 12px !important;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    border: 0;
    border-right: 1px solid #f1dfcf;
    background: #fff5eb;
    transform: none !important;
    transition: none !important;
  }
  body.km-workspace-shell.km-sidebar-collapsed .km-app-shell > .km-main,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2),
  body.km-brands-shell.km-sidebar-collapsed .km-brands-page > .km-brands-main,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-page > .span10 {
    width: calc(100% - 64px) !important;
    max-width: calc(100% - 64px) !important;
    min-width: 0 !important;
    margin-left: 64px !important;
    margin-right: 0 !important;
  }
  body.km-workspace-shell.km-sidebar-collapsed .km-reference-brand,
  body.km-brands-shell.km-sidebar-collapsed .km-reference-brand {
    height: 48px;
    margin: 0 -4px 6px;
    padding: 8px 0;
    justify-content: center;
  }
  body.km-workspace-shell.km-sidebar-collapsed .km-reference-brand > span,
  body.km-brands-shell.km-sidebar-collapsed .km-reference-brand > span { display: none !important; }
  body.km-workspace-shell.km-sidebar-collapsed .km-reference-brand-mark,
  body.km-brands-shell.km-sidebar-collapsed .km-reference-brand-mark { width: 28px; height: 28px; }
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar .nav-header,
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar .km-tasks,
  body.km-workspace-shell.km-sidebar-collapsed .km-brands-nav-heading { display: none !important; }
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar .nav-list,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-nav { padding-left: 2px; padding-right: 2px; }
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar .nav-list > li > a,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-nav a {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 0 !important;
    text-align: center;
    font-size: 0 !important;
    white-space: nowrap;
  }
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar .nav-list > li > a i,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-nav a i {
    width: auto;
    margin: 0 !important;
    font-size: 14px;
  }
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar > .km-sidebar-toggle,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-rail > .km-sidebar-toggle,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 > .km-sidebar-toggle {
    margin: 8px auto 6px;
  }
}

/* ===== Toggle aligned with the sidebar logo ===== */
/* The control belongs in the same brand row, immediately to the right of
   the logo/wordmark, not as a separate row below it. */
body.km-workspace-shell .km-reference-brand > .km-sidebar-toggle,
body.km-brands-shell .km-reference-brand > .km-sidebar-toggle {
  position: relative;
  z-index: 1034;
  display: inline-flex !important;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0 0 0 auto;
  padding: 0;
  float: none !important;
}
body.km-workspace-shell .km-reference-brand > .km-sidebar-toggle i,
body.km-brands-shell .km-reference-brand > .km-sidebar-toggle i { margin: 0; }

@media (max-width: 1023px) {
  body.km-workspace-shell .km-reference-brand > .km-sidebar-toggle,
  body.km-brands-shell .km-reference-brand > .km-sidebar-toggle {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 1023px) {
  body.km-workspace-shell.km-sidebar-collapsed .km-reference-brand,
  body.km-brands-shell.km-sidebar-collapsed .km-reference-brand { gap: 2px; }
  body.km-workspace-shell.km-sidebar-collapsed .km-reference-brand > .km-sidebar-toggle,
  body.km-brands-shell.km-sidebar-collapsed .km-reference-brand > .km-sidebar-toggle {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }
}

/* ===== Consistent dashboard navigation-tab padding ===== */
/* Every sidebar tab now uses the same vertical rhythm and icon spacing.
   This applies to the shared workspace sidebar, legacy workspace tabs, and
   the top-level Brands rail. */
body.km-workspace-shell .km-sidebar .nav-list,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list {
  padding-left: 5px;
  padding-right: 5px;
}
body.km-workspace-shell .km-sidebar .nav-list > li,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li {
  margin: 0 0 3px;
}
body.km-workspace-shell .km-sidebar .nav-list > li > a,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a,
body.km-brands-shell .km-brands-nav a {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 34px;
  height: auto;
  padding: 8px 10px !important;
  line-height: 18px !important;
}
body.km-workspace-shell .km-sidebar .nav-list > li > a i,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a i,
body.km-brands-shell .km-brands-nav a i {
  flex: 0 0 18px;
  width: 18px;
  margin-right: 8px !important;
  text-align: center;
}
body.km-workspace-shell .km-sidebar .nav-list .nav-header,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list .nav-header,
body.km-brands-shell .km-brands-nav-heading {
  padding: 12px 10px 6px;
  line-height: 16px;
}

@media (min-width: 768px) {
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar .nav-list,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-nav { padding-left: 4px; padding-right: 4px; }
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar .nav-list > li > a,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-nav a {
    justify-content: center;
    min-height: 34px;
    padding: 8px 0 !important;
  }
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar .nav-list > li > a i,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a i,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-nav a i {
    flex: 0 0 auto;
    width: auto;
    margin: 0 !important;
  }
}

@media (max-width: 767px) {
  body.km-workspace-shell .km-sidebar .nav-list > li > a,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a,
  body.km-brands-shell .km-brands-nav a {
    min-height: 42px;
    padding: 10px 12px !important;
  }
}

/* ===== Dashboard tab top padding refinement ===== */
/* Keep the label vertically centered with a little more breathing room at
   the top of every dashboard tab. */
body.km-workspace-shell .km-sidebar .nav-list > li > a,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a,
body.km-brands-shell .km-brands-nav a {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
body.km-workspace-shell .km-sidebar .nav-list + .nav-list,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list + .nav-list {
  margin-top: 4px;
  padding-top: 6px;
}
@media (min-width: 768px) {
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar .nav-list > li > a,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-nav a {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}
@media (max-width: 767px) {
  body.km-workspace-shell .km-sidebar .nav-list > li > a,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a,
  body.km-brands-shell .km-brands-nav a {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

/* ===== Selected brand in the header before search ===== */
/* The page-level brand breadcrumb is duplicated in legacy workspace tabs.
   Keep the selected brand in the global header instead. */
body.km-workspace-shell .km-main .km-brand-context,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > :not(.span2) > div:first-child > p.lead {
  display: none !important;
}

@media (min-width: 1024px) {
  body.km-workspace-shell .navbar-inner > .container-fluid,
  body.km-brands-shell .navbar-inner > .container-fluid {
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    min-height: 60px;
    gap: 10px;
  }
  body.km-workspace-shell .navbar .km-brand-menu,
  body.km-brands-shell .navbar .km-brand-menu {
    order: 1;
    flex: 0 0 auto;
    float: none !important;
    margin: 13px 0 0 !important;
  }
  body.km-workspace-shell .navbar .km-header-search,
  body.km-brands-shell .navbar .km-header-search {
    order: 2;
    flex: 0 1 410px;
    float: none !important;
    width: min(410px, 32vw);
    margin: 11px 0 0 8px !important;
  }
  body.km-workspace-shell .navbar .km-header-notify,
  body.km-brands-shell .navbar .km-header-notify {
    order: 3;
    flex: 0 0 30px;
    float: none !important;
    margin: 14px 0 0 auto !important;
  }
  body.km-workspace-shell .navbar .km-user-menu,
  body.km-brands-shell .navbar .km-user-menu {
    order: 4;
    flex: 0 0 auto;
    float: none !important;
    margin: 5px 0 0 !important;
  }
  body.km-workspace-shell .navbar .nav-collapse,
  body.km-brands-shell .navbar .nav-collapse { order: 5; }
}

@media (min-width: 1024px) {
  body.km-brands-shell .navbar .km-user-menu { margin-left: auto !important; }
}

/* Remove the duplicate selected-brand breadcrumb from every brand tab. The
   selected brand is now shown only in the global header. */
body.km-workspace-shell .span10 > div:first-child > p.lead,
body.km-workspace-shell .span10 > p.lead,
body.km-workspace-shell .km-main .km-brand-context,
body.km-workspace-shell .km-brand-context {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* The selected brand is managed from the profile dropdown; do not show a
   second brand selector beside the workspace search field. */
body.km-workspace-shell .navbar .km-brand-menu { display: none !important; }

/* Edit-brand is a legacy form nested inside the page container. Give it the
   same fixed navigation rail and CRM canvas as every other brand tab. */
@media (min-width: 768px) {
  body.km-workspace-shell form#settings-form > .km-settings-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    box-sizing: border-box;
    min-height: calc(100vh - 60px);
    margin: 0 18px 0 258px;
    padding: 20px 0 48px;
  }
  body.km-workspace-shell form#settings-form > .km-settings-shell > .km-sidebar {
    position: fixed;
    z-index: 1031;
    top: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 230px;
    min-height: 100vh;
    margin: 0;
    padding: 0 9px 36px;
    overflow-y: auto;
    background: #fff5eb;
    border-right: 1px solid #f1dfcf;
  }
  body.km-workspace-shell form#settings-form > .km-settings-shell > .span5 {
    box-sizing: border-box;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    float: none !important;
  }
  body.km-workspace-shell form#settings-form > .km-settings-shell h2 {
    margin-top: 0;
    color: #202329;
    font-size: 28px;
    letter-spacing: -.5px;
  }
  body.km-workspace-shell form#settings-form > .km-settings-shell .well {
    border: 1px solid #f1dfcf;
    border-radius: 14px;
    background: #fffdfb;
    box-shadow: 0 2px 10px rgba(32,43,67,.06);
  }
}
@media (max-width: 767px) {
  body.km-workspace-shell form#settings-form > .km-settings-shell {
    display: block;
    padding: 12px 14px 36px;
  }
  body.km-workspace-shell form#settings-form > .km-settings-shell > .span5 {
    width: auto !important;
    margin: 0 0 20px !important;
    float: none !important;
  }
}

/* Keep the fixed rail out of the edit form's two-column flow. */
@media (min-width: 768px) {
  body.km-workspace-shell form#settings-form > .km-settings-shell > .km-sidebar {
    grid-column: 1;
    grid-row: 1;
  }
  body.km-workspace-shell form#settings-form > .km-settings-shell > .span5:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }
  body.km-workspace-shell form#settings-form > .km-settings-shell > .span5:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
}

/* Keep the edit form inside the viewport: the legacy row's width is 100%,
   so its left rail offset must be subtracted before applying side padding. */
@media (min-width: 768px) {
  body.km-workspace-shell form#settings-form > .km-settings-shell {
    display: flex !important;
    align-items: flex-start;
    gap: 28px;
    box-sizing: border-box;
    width: calc(100% - 276px) !important;
    max-width: none;
    margin-left: 258px !important;
    margin-right: 18px !important;
    padding: 20px 0 48px !important;
  }
  body.km-workspace-shell form#settings-form > .km-settings-shell > .span5 {
    flex: 1 1 0;
    width: 0 !important;
    max-width: none;
    min-width: 0;
    margin: 0 !important;
    float: none !important;
  }
}

/* Legacy tabs render the selected-brand lead directly inside their content
   column. Hide that duplicate everywhere in the authenticated CRM shell;
   the brand is already represented in the sidebar. */
body.km-crm-page p.lead,
body.km-crm-page .top-brand-pencil { display: none !important; }

/* Collapsible sidebar sections with accessible dropdown affordances. */
body.km-workspace-shell .sidebar-nav > ul.nav-list > li.km-sidebar-section-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
}
body.km-workspace-shell .sidebar-nav > ul.nav-list > li.km-sidebar-section-toggle:hover {
  color: #df6b22;
}
body.km-workspace-shell .km-sidebar-section-label { min-width: 0; }
body.km-workspace-shell .km-sidebar-caret {
  flex: 0 0 auto;
  margin-left: 8px;
  color: #a4a7aa;
  font-size: 10px;
  transition: transform .16s ease;
}
body.km-workspace-shell .km-sidebar-section.is-collapsed > .km-sidebar-section-toggle .km-sidebar-caret {
  transform: rotate(-90deg);
}
body.km-workspace-shell .km-sidebar-section.is-collapsed > li:not(.km-sidebar-section-toggle) {
  display: none !important;
}

/* Keep sidebar navigation links interactive even when a section is being
   animated/collapsed. */
body.km-workspace-shell .sidebar-nav a {
  position: relative;
  z-index: 2;
  pointer-events: auto !important;
  cursor: pointer;
}

/* ===== Final collapsed-rail text cleanup =====
   Keep the compact rail genuinely icon-only. Some legacy Bootstrap rules set
   an explicit font size and can otherwise reintroduce link labels after the
   rail is collapsed. */
@media (min-width: 768px) {
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar .nav-list > li > a,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-nav a {
    color: transparent !important;
    font-size: 0 !important;
    letter-spacing: 0 !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
  }
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar .nav-list > li > a i,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a i,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-nav a i {
    color: #6c747c !important;
    font-size: 14px !important;
    letter-spacing: normal !important;
    text-indent: 0 !important;
  }
  body.km-workspace-shell.km-sidebar-collapsed .km-sidebar .nav-list > li.active > a i,
  body.km-workspace-shell.km-sidebar-collapsed > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li.active > a i,
  body.km-brands-shell.km-sidebar-collapsed .km-brands-nav a.active i {
    color: #df6b22 !important;
  }
}

/* ===== Warm workspace polish for legacy push/automation tabs =====
   These pages intentionally keep their existing forms and endpoints, but
   inherit the same cream/orange CRM language as the redesigned dashboard. */
body.km-workspace-shell .km-wrap {
  max-width: none;
  box-sizing: border-box;
  color: #1f2329;
}
body.km-workspace-shell .km-wrap .km-page-title {
  margin: 0 0 8px !important;
  color: #17191c;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.7px;
  line-height: 1.2;
}
body.km-workspace-shell .km-wrap .km-sub {
  max-width: 980px;
  margin: 0 0 22px;
  color: #777b80;
  font-size: 14px;
  line-height: 1.55;
}
body.km-workspace-shell .km-wrap .km-row { gap: 12px; }
body.km-workspace-shell .km-wrap .km-row-end { margin-bottom: 16px; }
body.km-workspace-shell .km-wrap .km-row-end > .km-muted {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  box-sizing: border-box;
  padding: 5px 10px;
  border: 1px solid #f1dfcf;
  border-radius: 999px;
  background: #fff4e8;
  color: #9b6b4a;
  font-size: 12px;
  font-weight: 700;
}

/* Make every primary action in a brand workspace use the orange CRM accent. */
body.km-workspace-shell .btn-primary,
body.km-workspace-shell .btn-primary:hover,
body.km-workspace-shell .btn-primary:focus,
body.km-workspace-shell .btn-primary:active,
body.km-workspace-shell .btn-primary.active {
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 16px;
  border: 1px solid #df6614 !important;
  border-radius: 10px;
  background: #f47721 !important;
  background-image: none !important;
  color: #fff !important;
  font-weight: 700;
  text-shadow: none;
  box-shadow: 0 4px 10px rgba(244,119,33,.18);
}
body.km-workspace-shell .btn-primary:hover,
body.km-workspace-shell .btn-primary:focus { background: #df6614 !important; }
body.km-workspace-shell .btn-primary i { color: #fff !important; }

/* Neutral and destructive actions get deliberate, quiet button treatments. */
body.km-workspace-shell .km-wrap .btn:not(.btn-primary):not(.btn-danger) {
  border: 1px solid #eadfd5;
  border-radius: 8px;
  background: #fffdf9;
  color: #555b60;
  text-shadow: none;
  box-shadow: none;
}
body.km-workspace-shell .km-wrap .btn:not(.btn-primary):not(.btn-danger):hover {
  border-color: #f3bd93;
  background: #fff0e2;
  color: #c4601d;
}
body.km-workspace-shell .km-wrap .btn-danger,
body.km-workspace-shell .km-wrap .btn-danger:hover,
body.km-workspace-shell .km-wrap .btn-danger:focus {
  border: 1px solid #efc6bd;
  border-radius: 8px;
  background: #fff1ed !important;
  background-image: none !important;
  color: #b84f3e !important;
  text-shadow: none;
  box-shadow: none;
}
body.km-workspace-shell .km-wrap .btn-danger i { color: #b84f3e !important; }

/* Warm surfaces for empty states, tables, forms, and instructional panels. */
body.km-workspace-shell .km-wrap .km-empty {
  margin-bottom: 18px;
  padding: 30px 24px 32px;
  border: 1px dashed #efc9a6;
  border-radius: 14px;
  background: #fff8f1;
  color: #736960;
  font-size: 15px;
  line-height: 1.55;
}
body.km-workspace-shell .km-wrap .km-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #35302c;
  font-size: 17px;
}
body.km-workspace-shell .km-wrap .km-empty code,
body.km-workspace-shell .km-wrap code {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #f1d5bc;
  border-radius: 5px;
  background: #fff0e2;
  color: #b45d22;
  font-family: inherit;
  font-size: .92em;
}
body.km-workspace-shell .km-wrap .km-panel {
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid #f0e4d8;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 2px 9px rgba(99,65,38,.045);
}
body.km-workspace-shell .km-wrap .km-panel > h3,
body.km-workspace-shell .km-wrap .km-panel > h4 {
  margin: 0 0 14px;
  color: #272a2e;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
body.km-workspace-shell .km-wrap .km-plain-list { margin-bottom: 16px; }
body.km-workspace-shell .km-wrap .km-plain-list li { margin-bottom: 8px; }
body.km-workspace-shell .km-wrap .km-hint { color: #85827d; line-height: 1.5; }
body.km-workspace-shell .km-wrap .km-table-wrap {
  margin-bottom: 18px;
  overflow-x: auto;
  border: 1px solid #f0e4d8;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 2px 9px rgba(99,65,38,.04);
}
body.km-workspace-shell .km-wrap .km-table {
  margin: 0;
  background: #fffdf9;
}
body.km-workspace-shell .km-wrap .km-table th {
  padding: 13px 14px;
  border-bottom: 1px solid #f0e4d8;
  background: #fffaf5;
  color: #77716a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}
body.km-workspace-shell .km-wrap .km-table td {
  padding: 14px;
  border-top: 1px solid #f5eee8;
  color: #4a4f54;
}
body.km-workspace-shell .km-wrap .km-table tbody tr:hover td { background: #fff8f1; }
body.km-workspace-shell .km-wrap .km-form input[type=text],
body.km-workspace-shell .km-wrap .km-form input[type=url],
body.km-workspace-shell .km-wrap .km-form input[type=password],
body.km-workspace-shell .km-wrap .km-form input[type=number],
body.km-workspace-shell .km-wrap .km-form select,
body.km-workspace-shell .km-wrap .km-form textarea {
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #eadfd5;
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: none;
}
body.km-workspace-shell .km-wrap .km-form textarea { padding-top: 10px; }
body.km-workspace-shell .km-wrap .km-form input:focus,
body.km-workspace-shell .km-wrap .km-form select:focus,
body.km-workspace-shell .km-wrap .km-form textarea:focus {
  border-color: #f0a16c;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(244,119,33,.12);
}

/* Journey editor cards use the same surfaces and spacing as the list page. */
body.km-workspace-shell .km-wrap .km-journey-node {
  overflow: hidden;
  border: 1px solid #f0e4d8;
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 2px 9px rgba(99,65,38,.035);
}
body.km-workspace-shell .km-wrap .km-journey-node-head {
  padding: 11px 13px;
  border-bottom: 1px solid #f0e4d8;
  background: #fff6ee;
  border-radius: 0;
}
body.km-workspace-shell .km-wrap .km-journey-node-head select {
  min-height: 36px;
  border: 1px solid #eadfd5;
  border-radius: 8px;
  background: #fffdf9;
}
body.km-workspace-shell .km-wrap .km-journey-body { padding: 14px; gap: 10px; }
body.km-workspace-shell .km-wrap #km-journey-add { margin: 0 0 20px; }
body.km-workspace-shell .km-wrap #km-journey-form > h3 {
  margin: 22px 0 10px;
  color: #272a2e;
  font-size: 18px;
}

@media (max-width: 767px) {
  body.km-workspace-shell .km-wrap .km-page-title { font-size: 25px; }
  body.km-workspace-shell .km-wrap .km-sub { font-size: 13px; }
  body.km-workspace-shell .km-wrap .km-row-end { align-items: stretch; }
  body.km-workspace-shell .km-wrap .km-row-end .btn-primary { width: 100%; text-align: center; }
  body.km-workspace-shell .km-wrap .km-panel { padding: 16px; }
}

/* ===== Unified styling for every brand workspace tab =====
   Legacy push, automation, reports, AI, rules, and settings screens share the
   same content column. Keep their existing markup and actions, but give every
   tab one predictable CRM surface system. */
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span10,
body.km-workspace-shell .km-main {
  box-sizing: border-box;
  color: #1f2329;
}
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span10 > h1,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span10 > h2,
body.km-workspace-shell .km-main > h1,
body.km-workspace-shell .km-main > h2 {
  margin: 0 0 8px !important;
  color: #17191c;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.7px;
  line-height: 1.2;
}
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span10 > .km-sub,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span10 .km-sub,
body.km-workspace-shell .km-main .km-sub {
  max-width: 980px;
  margin: 0 0 22px;
  color: #777b80;
  font-size: 14px;
  line-height: 1.55;
}
body.km-workspace-shell .span10 > p:has(> .btn),
body.km-workspace-shell .km-main > p:has(> .btn) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}
body.km-workspace-shell .span10 > p:has(> .btn) > .btn,
body.km-workspace-shell .km-main > p:has(> .btn) > .btn { margin: 0; }

/* Campaign/list pages use a full-width, calm empty-state surface. */
body.km-workspace-shell .span10 > .alert,
body.km-workspace-shell .km-main > .alert {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid #f1d3b6;
  border-radius: 10px;
  background: #fff4e8;
  color: #805c42;
  box-shadow: 0 2px 8px rgba(99,65,38,.03);
  font-size: 14px;
  line-height: 1.45;
  text-shadow: none;
}
body.km-workspace-shell .span10 > .alert-success,
body.km-workspace-shell .km-main > .alert-success { border-color: #bde8d2; background: #effaf4; color: #18764f; }
body.km-workspace-shell .span10 > .alert-error,
body.km-workspace-shell .km-main > .alert-error { border-color: #efc6bd; background: #fff1ed; color: #a44335; }
body.km-workspace-shell .span10 > .alert-info,
body.km-workspace-shell .km-main > .alert-info { border-color: #f1d3b6; background: #fff4e8; color: #805c42; }

/* Bring the remaining push-suite colour tokens into the orange CRM palette. */
body.km-workspace-shell .km-chip {
  border: 1px solid #f1d3b6;
  background: #fff0e2;
  color: #c4601d;
}
body.km-workspace-shell .km-chip:hover { background: #ffe2c9; color: #a94f13; }
body.km-workspace-shell .km-chip-on,
body.km-workspace-shell .km-chip-on:hover { border-color: #df6614; background: #f47721; color: #fff; }
body.km-workspace-shell .km-tag-web,
body.km-workspace-shell .km-tag-drip { background: #fff0e2; color: #b45d22; }
body.km-workspace-shell .km-bar-track { background: #fff0e2; }
body.km-workspace-shell .km-bar-fill { background: #f47721; }
body.km-workspace-shell .km-step { border-color: #f0d6be; border-left-color: #f47721; background: #fffaf5; }
body.km-workspace-shell .km-step-num { background: #f47721; }
body.km-workspace-shell .km-filter { border-color: #f0d6be; background: #fffaf5; }
body.km-workspace-shell .km-filter-group { border-left-color: #f47721; }
body.km-workspace-shell .km-filter-grouphead strong { color: #c4601d; }
body.km-workspace-shell .km-prompt-preview { border-color: #efc9a6; background: #fff8f1; }
body.km-workspace-shell .km-card,
body.km-workspace-shell .km-ai-card,
body.km-workspace-shell .km-crew-card,
body.km-workspace-shell .km-ab-variant,
body.km-workspace-shell .km-platform-card {
  border-color: #f0e4d8;
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 2px 9px rgba(99,65,38,.035);
}
body.km-workspace-shell .km-card-purple .km-card-num { color: #f47721; }
body.km-workspace-shell .km-ai-card.is-primary { border-color: #f47721; box-shadow: 0 0 0 2px rgba(244,119,33,.14); }
body.km-workspace-shell .km-ai-card .km-ai-note,
body.km-workspace-shell .km-crew-card .km-crew-desc { color: #777b80; }

/* Consistent forms and table surfaces for every tab, including reports/rules. */
body.km-workspace-shell .span10 .well,
body.km-workspace-shell .km-main .well {
  border: 1px solid #f0e4d8;
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 2px 9px rgba(99,65,38,.035);
  text-shadow: none;
}
body.km-workspace-shell .span10 .km-table-wrap,
body.km-workspace-shell .km-main .km-table-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-color: #f0e4d8;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 2px 9px rgba(99,65,38,.04);
}
body.km-workspace-shell .span10 .km-table,
body.km-workspace-shell .km-main .km-table {
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  background: #fffdf9;
}
body.km-workspace-shell .span10 .km-table th,
body.km-workspace-shell .km-main .km-table th {
  padding: 13px 14px;
  border-bottom: 1px solid #f0e4d8;
  background: #fffaf5;
  color: #77716a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}
body.km-workspace-shell .span10 .km-table td,
body.km-workspace-shell .km-main .km-table td {
  padding: 14px;
  border-top: 1px solid #f5eee8;
  color: #4a4f54;
  vertical-align: middle;
}
body.km-workspace-shell .span10 .km-table tbody tr:hover td,
body.km-workspace-shell .km-main .km-table tbody tr:hover td { background: #fff8f1; }
body.km-workspace-shell .span10 input[type=text],
body.km-workspace-shell .span10 input[type=url],
body.km-workspace-shell .span10 input[type=password],
body.km-workspace-shell .span10 input[type=email],
body.km-workspace-shell .span10 input[type=number],
body.km-workspace-shell .span10 select,
body.km-workspace-shell .span10 textarea,
body.km-workspace-shell .km-main input[type=text],
body.km-workspace-shell .km-main input[type=url],
body.km-workspace-shell .km-main input[type=password],
body.km-workspace-shell .km-main input[type=email],
body.km-workspace-shell .km-main input[type=number],
body.km-workspace-shell .km-main select,
body.km-workspace-shell .km-main textarea {
  border-color: #eadfd5;
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: none;
}
body.km-workspace-shell .span10 input:focus,
body.km-workspace-shell .span10 select:focus,
body.km-workspace-shell .span10 textarea:focus,
body.km-workspace-shell .km-main input:focus,
body.km-workspace-shell .km-main select:focus,
body.km-workspace-shell .km-main textarea:focus {
  border-color: #f0a16c;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(244,119,33,.12);
}
body.km-workspace-shell .span10 .form-horizontal,
body.km-workspace-shell .km-main .form-horizontal {
  max-width: 980px !important;
  padding: 20px 22px;
  box-sizing: border-box;
  border: 1px solid #f0e4d8;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 2px 9px rgba(99,65,38,.035);
}
body.km-workspace-shell .span10 .help-block,
body.km-workspace-shell .km-main .help-block { color: #85827d; }

@media (max-width: 767px) {
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span10 > h1,
  body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span10 > h2,
  body.km-workspace-shell .km-main > h1,
  body.km-workspace-shell .km-main > h2 { font-size: 25px; }
  body.km-workspace-shell .span10 .form-horizontal,
  body.km-workspace-shell .km-main .form-horizontal { padding: 16px; }
}

/* Secondary actions on every workspace tab share the same dependable hit target. */
body.km-workspace-shell .span10 .btn:not(.btn-primary):not(.btn-danger):not(.btn-mini),
body.km-workspace-shell .km-main .btn:not(.btn-primary):not(.btn-danger):not(.btn-mini) {
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #eadfd5;
  border-radius: 10px;
  background: #fffdf9;
  color: #3f454a;
  text-shadow: none;
  box-shadow: none;
}
body.km-workspace-shell .span10 .btn:not(.btn-primary):not(.btn-danger):not(.btn-mini):hover,
body.km-workspace-shell .km-main .btn:not(.btn-primary):not(.btn-danger):not(.btn-mini):hover {
  border-color: #f3bd93;
  background: #fff0e2;
  color: #c4601d;
}
body.km-workspace-shell .span10 .btn-mini,
body.km-workspace-shell .km-main .btn-mini {
  min-height: 32px;
  box-sizing: border-box;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
}
body.km-workspace-shell .span10 .btn-danger,
body.km-workspace-shell .km-main .btn-danger {
  border-color: #efc6bd;
  background: #fff1ed !important;
  background-image: none !important;
  color: #b84f3e !important;
  text-shadow: none;
  box-shadow: none;
}
body.km-workspace-shell .span10 .btn-danger i,
body.km-workspace-shell .km-main .btn-danger i { color: #b84f3e !important; }

/* ===== Campaign send flow: clear sections and action hierarchy =====
   The legacy send-to screen has working forms but old unstyled controls. Keep
   every endpoint and validation hook intact while presenting the flow as two
   clear, responsive CRM steps. */
body.km-workspace-shell .span10 > h2 + br,
body.km-workspace-shell .km-main > h2 + br { display: none; }
body.km-workspace-shell #test-form,
body.km-workspace-shell #real-form,
body.km-workspace-shell #pay-form {
  width: 100%;
  max-width: 1120px !important;
  box-sizing: border-box;
  margin: 0 0 30px;
  padding: 22px;
  border: 1px solid #f0e4d8;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 2px 9px rgba(99,65,38,.035);
}
body.km-workspace-shell #test-form .control-group,
body.km-workspace-shell #real-form .control-group,
body.km-workspace-shell #pay-form .control-group { margin-bottom: 20px; }
body.km-workspace-shell #test-form .control-label,
body.km-workspace-shell #real-form .control-label,
body.km-workspace-shell #pay-form .control-label {
  display: block;
  width: auto;
  margin: 0 0 8px;
  color: #3f454a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}
body.km-workspace-shell #test-form .controls,
body.km-workspace-shell #real-form .controls,
body.km-workspace-shell #pay-form .controls {
  margin-left: 0 !important;
}
body.km-workspace-shell #test_email,
body.km-workspace-shell #email_list,
body.km-workspace-shell #email_list_exclude {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  border: 1px solid #eadfd5;
  border-radius: 9px;
  background: #fffdf9;
}
body.km-workspace-shell #test_email {
  min-height: 42px;
  padding: 9px 12px;
}
body.km-workspace-shell #email_list,
body.km-workspace-shell #email_list_exclude {
  height: 210px !important;
  padding: 8px;
  line-height: 1.55;
}
body.km-workspace-shell #email_list optgroup,
body.km-workspace-shell #email_list_exclude optgroup {
  color: #c4601d;
  font-weight: 800;
}
body.km-workspace-shell #email_list option:checked,
body.km-workspace-shell #email_list_exclude option:checked {
  background: #ffdcbf linear-gradient(#ffdcbf, #ffdcbf);
  color: #8b4a20;
}
body.km-workspace-shell #test_email:focus,
body.km-workspace-shell #email_list:focus,
body.km-workspace-shell #email_list_exclude:focus {
  border-color: #f0a16c;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(244,119,33,.12);
}
body.km-workspace-shell #test-send-btn,
body.km-workspace-shell #real-btn,
body.km-workspace-shell #pay-btn,
body.km-workspace-shell #schedule-btn {
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 16px;
  border: 1px solid #df6614 !important;
  border-radius: 10px;
  background: #f47721 !important;
  background-image: none !important;
  color: #fff !important;
  font-weight: 700;
  text-shadow: none;
  box-shadow: 0 4px 10px rgba(244,119,33,.18);
}
body.km-workspace-shell #test-send-btn:hover,
body.km-workspace-shell #real-btn:hover,
body.km-workspace-shell #pay-btn:hover,
body.km-workspace-shell #schedule-btn:hover { background: #df6614 !important; }
body.km-workspace-shell #test-send-btn i,
body.km-workspace-shell #real-btn i,
body.km-workspace-shell #pay-btn i,
body.km-workspace-shell #schedule-btn i { color: #fff !important; }
body.km-workspace-shell #test-send-btn.disabled,
body.km-workspace-shell #real-btn.disabled,
body.km-workspace-shell #pay-btn.disabled,
body.km-workspace-shell #schedule-btn.disabled,
body.km-workspace-shell #test-send-btn[disabled],
body.km-workspace-shell #real-btn[disabled],
body.km-workspace-shell #pay-btn[disabled],
body.km-workspace-shell #schedule-btn[disabled] {
  border-color: #d9d4ce !important;
  background: #d9d4ce !important;
  color: #fff !important;
  cursor: not-allowed;
  box-shadow: none;
}
body.km-workspace-shell #exclude_btn {
  min-height: 36px;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #eadfd5;
  border-radius: 8px;
  background: #fffdf9;
  color: #c4601d;
  text-decoration: none;
}
body.km-workspace-shell #exclude_btn:hover { background: #fff0e2; border-color: #f3bd93; }
body.km-workspace-shell #recipient_limit_group {
  margin-top: 4px;
  padding: 16px;
  border: 1px solid #f1dfcf;
  border-radius: 10px;
  background: #fff8f1;
}
body.km-workspace-shell #recipient_limit_group .radio {
  margin: 0 0 9px;
  color: #555b60;
  line-height: 1.5;
}
body.km-workspace-shell #recipient_limit_group .radio input[type=number] {
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #eadfd5;
  border-radius: 7px;
}
body.km-workspace-shell #scope_hint { color: #85827d; font-size: 12px; line-height: 1.45; }
body.km-workspace-shell #schedule-form-wrapper {
  width: 100% !important;
  max-width: 1120px;
  box-sizing: border-box;
  padding: 20px 22px !important;
  border: 1px solid #f0e4d8;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 2px 9px rgba(99,65,38,.035);
}
@media (max-width: 767px) {
  body.km-workspace-shell #test-form,
  body.km-workspace-shell #real-form,
  body.km-workspace-shell #pay-form { padding: 16px; }
  body.km-workspace-shell #test-send-btn,
  body.km-workspace-shell #real-btn,
  body.km-workspace-shell #pay-btn,
  body.km-workspace-shell #schedule-btn { width: 100%; }
}

/* ===== High-visibility outline pass =====
   Keep the cream/orange palette, but give important surfaces and controls a
   dark charcoal outline so fields and actions remain easy to scan. */
body.km-workspace-shell {
  --km-visible-outline: #3f3f3f;
  --km-visible-outline-strong: #1f1f1f;
}
body.km-workspace-shell .span10 input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
body.km-workspace-shell .span10 select,
body.km-workspace-shell .span10 textarea,
body.km-workspace-shell .km-main input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
body.km-workspace-shell .km-main select,
body.km-workspace-shell .km-main textarea {
  border: 1px solid var(--km-visible-outline) !important;
}
body.km-workspace-shell .span10 input:not([type=hidden]):not([type=checkbox]):not([type=radio]):focus,
body.km-workspace-shell .span10 select:focus,
body.km-workspace-shell .span10 textarea:focus,
body.km-workspace-shell .km-main input:not([type=hidden]):not([type=checkbox]):not([type=radio]):focus,
body.km-workspace-shell .km-main select:focus,
body.km-workspace-shell .km-main textarea:focus {
  border-color: var(--km-visible-outline-strong) !important;
  outline: 2px solid rgba(31,31,31,.22) !important;
  outline-offset: 0;
  box-shadow: none !important;
}

/* Dark outlines make the major content groups easy to distinguish without
   changing their existing spacing, layout, or interaction behaviour. */
body.km-workspace-shell .span10 .km-panel,
body.km-workspace-shell .span10 .km-empty,
body.km-workspace-shell .span10 .km-table-wrap,
body.km-workspace-shell .span10 .well,
body.km-workspace-shell .span10 .form-horizontal,
body.km-workspace-shell .km-main .km-panel,
body.km-workspace-shell .km-main .km-empty,
body.km-workspace-shell .km-main .km-table-wrap,
body.km-workspace-shell .km-main .well,
body.km-workspace-shell .km-main .form-horizontal,
body.km-workspace-shell #test-form,
body.km-workspace-shell #real-form,
body.km-workspace-shell #pay-form,
body.km-workspace-shell #schedule-form-wrapper {
  border-color: var(--km-visible-outline) !important;
}
body.km-workspace-shell .span10 .km-journey-node,
body.km-workspace-shell .km-main .km-journey-node,
body.km-workspace-shell .span10 .km-card,
body.km-workspace-shell .km-main .km-card,
body.km-workspace-shell .span10 .km-ai-card,
body.km-workspace-shell .km-main .km-ai-card,
body.km-workspace-shell .span10 .km-crew-card,
body.km-workspace-shell .km-main .km-crew-card {
  border-color: var(--km-visible-outline) !important;
}
body.km-workspace-shell .span10 .alert,
body.km-workspace-shell .km-main .alert {
  border-color: var(--km-visible-outline) !important;
}

/* Buttons keep their colour hierarchy, with a subtle dark keyline for extra
   contrast and a clear keyboard focus ring. */
body.km-workspace-shell .span10 .btn:not([disabled]),
body.km-workspace-shell .km-main .btn:not([disabled]) {
  outline: 1px solid rgba(31,31,31,.78);
  outline-offset: -2px;
}
body.km-workspace-shell .span10 .btn:focus,
body.km-workspace-shell .km-main .btn:focus,
body.km-workspace-shell .sidebar-nav a:focus {
  outline: 2px solid var(--km-visible-outline-strong) !important;
  outline-offset: 1px;
}
body.km-workspace-shell .km-sidebar .nav-list > li.active > a,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li.active > a {
  outline: 1px solid rgba(31,31,31,.65);
  outline-offset: -1px;
}

/* ===== CRM chrome and dark-theme conflict repair =====
   The legacy dark styles load a patterned separator, navy alerts, and white
   text on light buttons. The branded workspace is intentionally a light CRM
   shell, so keep its chrome and controls coherent even when the account's
   global dark-mode flag is enabled. */
body.km-workspace-shell .separator,
body.km-brands-shell .separator {
  display: none !important;
  height: 0 !important;
  background: none !important;
}
body.km-workspace-shell,
body.km-brands-shell,
body.km-workspace-shell.dark,
body.km-brands-shell.dark {
  background: #fffaf5 !important;
  color: #1f2329;
}
body.km-workspace-shell.dark .navbar-fixed-top,
body.km-brands-shell.dark .navbar-fixed-top,
body.km-workspace-shell.dark .navbar-inner,
body.km-brands-shell.dark .navbar-inner {
  background: #fffdf9 !important;
  border-color: #f1dfcf !important;
  color: #1f2329 !important;
}
body.km-workspace-shell .km-user-menu > .dropdown-toggle,
body.km-brands-shell .km-user-menu > .dropdown-toggle,
body.km-workspace-shell.dark .km-user-menu > .dropdown-toggle,
body.km-brands-shell.dark .km-user-menu > .dropdown-toggle {
  border: 1px solid #eadfd5 !important;
  border-radius: 10px;
  background: #fffdf9 !important;
  color: #1f2329 !important;
  text-shadow: none;
  box-shadow: none;
}
body.km-workspace-shell .km-user-menu > .dropdown-toggle i,
body.km-brands-shell .km-user-menu > .dropdown-toggle i,
body.km-workspace-shell.dark .km-user-menu > .dropdown-toggle i,
body.km-brands-shell.dark .km-user-menu > .dropdown-toggle i { color: #f47721 !important; }
body.km-workspace-shell .km-user-menu .dropdown-menu,
body.km-brands-shell .km-user-menu .dropdown-menu {
  border: 1px solid #3f3f3f;
  border-radius: 10px;
  background: #fffdf9;
}
body.km-workspace-shell .km-user-menu .dropdown-menu a,
body.km-brands-shell .km-user-menu .dropdown-menu a { color: #30353a !important; }
body.km-workspace-shell .km-user-menu .dropdown-menu a:hover,
body.km-brands-shell .km-user-menu .dropdown-menu a:hover { background: #fff0e2 !important; color: #c4601d !important; }

/* Apply the light CRM alert treatment to nested legacy pages as well. */
body.km-workspace-shell .span10 .alert-info,
body.km-workspace-shell .km-main .alert-info,
body.km-workspace-shell.dark .span10 .alert-info,
body.km-workspace-shell.dark .km-main .alert-info {
  border-color: #f1d3b6 !important;
  background: #fff4e8 !important;
  color: #805c42 !important;
  text-shadow: none !important;
}
body.km-workspace-shell .span10 .alert-success,
body.km-workspace-shell .km-main .alert-success,
body.km-workspace-shell.dark .span10 .alert-success,
body.km-workspace-shell.dark .km-main .alert-success {
  border-color: #bde8d2 !important;
  background: #effaf4 !important;
  color: #18764f !important;
}
body.km-workspace-shell .span10 .alert-error,
body.km-workspace-shell .span10 .alert-danger,
body.km-workspace-shell .km-main .alert-error,
body.km-workspace-shell .km-main .alert-danger,
body.km-workspace-shell.dark .span10 .alert-error,
body.km-workspace-shell.dark .span10 .alert-danger,
body.km-workspace-shell.dark .km-main .alert-error,
body.km-workspace-shell.dark .km-main .alert-danger {
  border-color: #efc6bd !important;
  background: #fff1ed !important;
  color: #a44335 !important;
}

/* Legacy inverse buttons are primary actions inside the workspace; never let
   dark Bootstrap styles produce white text on a white button. */
body.km-workspace-shell .span10 .btn-inverse,
body.km-workspace-shell .km-main .btn-inverse,
body.km-workspace-shell.dark .span10 .btn-inverse,
body.km-workspace-shell.dark .km-main .btn-inverse {
  border: 1px solid #df6614 !important;
  border-radius: 10px;
  background: #f47721 !important;
  background-image: none !important;
  color: #fff !important;
  text-shadow: none !important;
  box-shadow: 0 4px 10px rgba(244,119,33,.18);
}
body.km-workspace-shell .span10 .btn-inverse:hover,
body.km-workspace-shell .km-main .btn-inverse:hover { background: #df6614 !important; }
body.km-workspace-shell .span10 .btn-inverse i,
body.km-workspace-shell .km-main .btn-inverse i { color: #fff !important; }

/* Footer remains readable in both appearance modes. */
body.km-workspace-shell > .container-fluid > footer,
body.km-brands-shell > .container-fluid > footer,
body.km-workspace-shell.dark > .container-fluid > footer,
body.km-brands-shell.dark > .container-fluid > footer {
  background: #fffaf5 !important;
  border-top-color: #f1dfcf !important;
  color: #4a4f54 !important;
}
body.km-workspace-shell > .container-fluid > footer a,
body.km-brands-shell > .container-fluid > footer a,
body.km-workspace-shell.dark > .container-fluid > footer a,
body.km-brands-shell.dark > .container-fluid > footer a { color: #4a4f54 !important; }
body.km-workspace-shell > .container-fluid > footer a:hover,
body.km-brands-shell > .container-fluid > footer a:hover { color: #c4601d !important; }
body.km-workspace-shell > .container-fluid > footer #footer-mode .btn,
body.km-brands-shell > .container-fluid > footer #footer-mode .btn {
  border: 1px solid #3f3f3f !important;
  background: #fffdf9 !important;
  color: #30353a !important;
  text-shadow: none;
}
body.km-workspace-shell > .container-fluid > footer #footer-mode .btn.active,
body.km-brands-shell > .container-fluid > footer #footer-mode .btn.active {
  border-color: #1f1f1f !important;
  background: #f47721 !important;
  color: #fff !important;
}

/* ===== Legacy nested-content contrast repair =====
   Older list/blacklist pages wrap their headings and alerts inside span12 and
   span6 columns. Give those nested elements the same readable contrast as the
   newer CRM pages. */
body.km-workspace-shell .span10,
body.km-workspace-shell .span10 > .row-fluid,
body.km-workspace-shell .km-main,
body.km-workspace-shell.dark .span10,
body.km-workspace-shell.dark .km-main {
  color: #1f2329 !important;
}
body.km-workspace-shell .span10 h1,
body.km-workspace-shell .span10 h2,
body.km-workspace-shell .span10 h3,
body.km-workspace-shell .span10 h4,
body.km-workspace-shell .span10 h5,
body.km-workspace-shell .km-main h1,
body.km-workspace-shell .km-main h2,
body.km-workspace-shell .km-main h3,
body.km-workspace-shell .km-main h4,
body.km-workspace-shell .km-main h5,
body.km-workspace-shell.dark .span10 h1,
body.km-workspace-shell.dark .span10 h2,
body.km-workspace-shell.dark .span10 h3,
body.km-workspace-shell.dark .span10 h4,
body.km-workspace-shell.dark .span10 h5 {
  color: #272a2e !important;
}
body.km-workspace-shell .span10 label,
body.km-workspace-shell .span10 .control-label,
body.km-workspace-shell .span10 strong,
body.km-workspace-shell.dark .span10 label,
body.km-workspace-shell.dark .span10 .control-label,
body.km-workspace-shell.dark .span10 strong { color: #3f454a !important; }
body.km-workspace-shell .span10 .alert-info,
body.km-workspace-shell .span10 .alert-info p,
body.km-workspace-shell .span10 .alert-info i,
body.km-workspace-shell.dark .span10 .alert-info,
body.km-workspace-shell.dark .span10 .alert-info p,
body.km-workspace-shell.dark .span10 .alert-info i { color: #805c42 !important; }
body.km-workspace-shell .span10 .alert-error,
body.km-workspace-shell .span10 .alert-error p,
body.km-workspace-shell .span10 .alert-error strong,
body.km-workspace-shell.dark .span10 .alert-error,
body.km-workspace-shell.dark .span10 .alert-error p,
body.km-workspace-shell.dark .span10 .alert-error strong { color: #a44335 !important; }
body.km-workspace-shell .span10 .btn-inverse,
body.km-workspace-shell .span10 .btn-inverse span,
body.km-workspace-shell .span10 .btn-inverse i,
body.km-workspace-shell.dark .span10 .btn-inverse,
body.km-workspace-shell.dark .span10 .btn-inverse span,
body.km-workspace-shell.dark .span10 .btn-inverse i { color: #fff !important; }
body.km-workspace-shell .span10 .km-muted,
body.km-workspace-shell.dark .span10 .km-muted { color: #706b65 !important; }

/* ===== Teams-inspired visual system =====
   A calm, premium collaboration-workspace treatment for the CRM shell.
   This is presentation-only: existing links, forms, actions, routes, and
   responsive layout remain unchanged. */
body.km-crm-page,
body.km-brands-shell,
body.km-workspace-shell,
body.km-brands-shell.dark,
body.km-workspace-shell.dark {
  --teams-bg: #f5f7fb;
  --teams-surface: #ffffff;
  --teams-surface-soft: #f8f9fc;
  --teams-line: #e1e5ed;
  --teams-line-strong: #cbd1dc;
  --teams-text: #242424;
  --teams-muted: #616161;
  --teams-purple: #6264a7;
  --teams-purple-dark: #4f52a3;
  --teams-purple-soft: #eeeffb;
  --teams-purple-pale: #f7f7fd;
  --teams-shadow: 0 2px 8px rgba(31, 41, 55, .06);
  background: var(--teams-bg) !important;
  color: var(--teams-text) !important;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body.km-crm-page a,
body.km-brands-shell a { color: var(--teams-purple); }
body.km-crm-page a:hover,
body.km-brands-shell a:hover { color: var(--teams-purple-dark); }

/* Header: quiet white chrome with a Teams-like search pill and restrained
   controls. The existing fixed offsets and sidebar toggle are untouched. */
body.km-crm-page .navbar-fixed-top,
body.km-crm-page .navbar-inner,
body.km-workspace-shell.dark .navbar-fixed-top,
body.km-workspace-shell.dark .navbar-inner,
body.km-brands-shell.dark .navbar-fixed-top,
body.km-brands-shell.dark .navbar-inner {
  background: var(--teams-surface) !important;
  border-color: var(--teams-line) !important;
  color: var(--teams-text) !important;
  box-shadow: 0 1px 0 rgba(31,41,55,.04), 0 4px 14px rgba(31,41,55,.035) !important;
}
body.km-crm-page .km-header-search,
body.km-workspace-shell.dark .km-header-search,
body.km-brands-shell.dark .km-header-search {
  height: 40px;
  width: min(520px, 44vw);
  border: 1px solid var(--teams-line) !important;
  border-radius: 9px;
  background: var(--teams-surface-soft) !important;
  box-shadow: none !important;
}
body.km-crm-page .km-header-search:focus-within {
  border-color: var(--teams-purple) !important;
  background: var(--teams-surface) !important;
  box-shadow: 0 0 0 3px rgba(98,100,167,.13) !important;
}
body.km-crm-page .km-header-search i { color: #70757d !important; }
body.km-crm-page .km-header-search input {
  color: var(--teams-text) !important;
  font-family: inherit;
  font-size: 13px;
}
body.km-crm-page .km-header-search input::placeholder { color: #73777e !important; }
body.km-crm-page .km-header-notify a {
  color: #4c5158 !important;
  border-radius: 8px;
}
body.km-crm-page .km-header-notify a:hover {
  background: var(--teams-purple-soft) !important;
  color: var(--teams-purple-dark) !important;
}
body.km-crm-page .km-header-notify a > span {
  border-color: var(--teams-surface) !important;
  background: #d83b01 !important;
}
body.km-crm-page .km-user-menu > .dropdown-toggle,
body.km-crm-page .km-brand-menu > .dropdown-toggle {
  border: 1px solid var(--teams-line) !important;
  border-radius: 8px !important;
  background: var(--teams-surface) !important;
  color: var(--teams-text) !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
body.km-crm-page .km-user-menu > .dropdown-toggle:hover,
body.km-crm-page .km-brand-menu > .dropdown-toggle:hover {
  border-color: #b8bce0 !important;
  background: var(--teams-purple-pale) !important;
  color: var(--teams-purple-dark) !important;
}
body.km-crm-page .km-user-menu > .dropdown-toggle i,
body.km-crm-page .km-brand-menu > .dropdown-toggle i { color: var(--teams-purple) !important; }
body.km-crm-page .km-user-menu .dropdown-menu,
body.km-crm-page .km-brand-menu .dropdown-menu {
  border: 1px solid var(--teams-line) !important;
  border-radius: 10px !important;
  background: var(--teams-surface) !important;
  box-shadow: 0 10px 28px rgba(31,41,55,.13) !important;
}
body.km-crm-page .km-user-menu .dropdown-menu a,
body.km-crm-page .km-brand-menu .dropdown-menu a { color: var(--teams-text) !important; }
body.km-crm-page .km-user-menu .dropdown-menu a:hover,
body.km-crm-page .km-brand-menu .dropdown-menu a:hover { background: var(--teams-purple-soft) !important; color: var(--teams-purple-dark) !important; }
body.km-crm-page .km-sidebar-toggle {
  border-color: var(--teams-line-strong) !important;
  border-radius: 8px !important;
  background: var(--teams-surface) !important;
  color: #60656d !important;
}
body.km-crm-page .km-sidebar-toggle:hover {
  border-color: #b8bce0 !important;
  background: var(--teams-purple-soft) !important;
  color: var(--teams-purple-dark) !important;
}

/* Navigation rail: neutral, spacious, and purple only for selected state. */
body.km-workspace-shell .km-sidebar,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2,
body.km-brands-shell .km-brands-rail,
body.km-brands-shell .km-brands-page > .span2 {
  background: #f8f9fb !important;
  border-color: var(--teams-line) !important;
}
body.km-workspace-shell .km-reference-brand,
body.km-brands-shell .km-reference-brand {
  border-color: var(--teams-line) !important;
}
body.km-workspace-shell .km-reference-brand strong,
body.km-brands-shell .km-reference-brand strong { color: var(--teams-text) !important; }
body.km-workspace-shell .km-reference-brand small,
body.km-brands-shell .km-reference-brand small { color: #73777e !important; }
body.km-workspace-shell .km-sidebar .nav-list .nav-header,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list .nav-header,
body.km-brands-shell .km-brands-nav-heading {
  color: var(--teams-purple) !important;
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
body.km-workspace-shell .km-sidebar .nav-list > li > a,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a,
body.km-brands-shell .km-brands-nav a {
  border-radius: 8px !important;
  color: #454a52 !important;
}
body.km-workspace-shell .km-sidebar .nav-list > li > a i,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a i,
body.km-brands-shell .km-brands-nav a i { color: #737982 !important; }
body.km-workspace-shell .km-sidebar .nav-list > li > a:hover,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a:hover,
body.km-brands-shell .km-brands-nav a:hover {
  background: #f0f1fb !important;
  color: var(--teams-purple-dark) !important;
}
body.km-workspace-shell .km-sidebar .nav-list > li > a:hover i,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li > a:hover i,
body.km-brands-shell .km-brands-nav a:hover i { color: var(--teams-purple) !important; }
body.km-workspace-shell .km-sidebar .nav-list > li.active > a,
body.km-workspace-shell .km-sidebar .nav-list > li.active > a:hover,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li.active > a,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li.active > a:hover,
body.km-brands-shell .km-brands-nav a.active,
body.km-brands-shell .km-brands-nav a.active:hover {
  background: var(--teams-purple-soft) !important;
  color: var(--teams-purple-dark) !important;
  box-shadow: inset 3px 0 0 var(--teams-purple) !important;
  font-weight: 700;
}
body.km-workspace-shell .km-sidebar .nav-list > li.active > a i,
body.km-workspace-shell > .container-fluid > .row-fluid:not(.km-app-shell) > .span2 .nav-list > li.active > a i,
body.km-brands-shell .km-brands-nav a.active i { color: var(--teams-purple) !important; }

/* Main canvas and standard page titles. */
body.km-crm-page .km-main,
body.km-crm-page .span10,
body.km-brands-shell .km-brands-main,
body.km-brands-shell .span10 { color: var(--teams-text) !important; }
body.km-crm-page .km-main h1,
body.km-crm-page .km-main h2,
body.km-crm-page .km-main h3,
body.km-crm-page .km-main h4,
body.km-crm-page .span10 h1,
body.km-crm-page .span10 h2,
body.km-crm-page .span10 h3,
body.km-crm-page .span10 h4,
body.km-brands-shell .km-home-title,
body.km-brands-shell .km-brands-main h1,
body.km-brands-shell .km-brands-main h2,
body.km-brands-shell .km-brands-main h3 {
  color: var(--teams-text) !important;
}
body.km-crm-page .km-main .km-page-title,
body.km-crm-page .km-main > h1,
body.km-crm-page .km-main > h2,
body.km-crm-page .span10 > h1,
body.km-crm-page .span10 > h2,
body.km-brands-shell .km-home-title {
  font-weight: 700;
  letter-spacing: -.35px;
}
body.km-crm-page .km-main .km-sub,
body.km-crm-page .km-main .km-brand-context,
body.km-crm-page .km-main .help-block,
body.km-crm-page .span10 .help-block { color: var(--teams-muted) !important; }

/* White, lightly elevated surfaces replace the former hard cream/orange
   blocks while retaining the page's existing dimensions. */
body.km-crm-page .km-main .km-panel,
body.km-crm-page .km-main .km-dashboard-panel,
body.km-crm-page .km-main .km-card,
body.km-crm-page .km-main .km-metric-card,
body.km-crm-page .km-main .km-dashboard-action,
body.km-crm-page .km-main .km-rail-panel,
body.km-crm-page .km-main .km-wrap,
body.km-crm-page .km-main .km-empty,
body.km-crm-page .km-main .well,
body.km-crm-page .km-main .form-horizontal,
body.km-crm-page .km-main .km-table-wrap,
body.km-crm-page .km-main .table-wrapper,
body.km-crm-page .span10 .km-panel,
body.km-crm-page .span10 .km-card,
body.km-crm-page .span10 .km-empty,
body.km-crm-page .span10 .well,
body.km-crm-page .span10 .form-horizontal,
body.km-crm-page .span10 .km-table-wrap,
body.km-crm-page .span10 .table-wrapper,
body.km-brands-shell .km-table-wrap,
body.km-brands-shell .km-self-serve-note {
  border-color: var(--teams-line) !important;
  border-radius: 12px !important;
  background: var(--teams-surface) !important;
  box-shadow: var(--teams-shadow) !important;
}
body.km-crm-page .km-main .km-panel-heading,
body.km-crm-page .km-main .km-table-title,
body.km-crm-page .km-main .km-rail-heading {
  color: var(--teams-text) !important;
}
body.km-crm-page .km-main .km-panel-heading { border-bottom-color: var(--teams-line) !important; }

/* Tables and rows. */
body.km-crm-page .km-main .table,
body.km-crm-page .km-main .km-table,
body.km-brands-shell #brands-table { background: var(--teams-surface) !important; }
body.km-crm-page .km-main .table thead th,
body.km-crm-page .km-main .km-table th,
body.km-brands-shell #brands-table thead th {
  background: var(--teams-surface-soft) !important;
  border-color: var(--teams-line) !important;
  color: #5f6670 !important;
}
body.km-crm-page .km-main .table tbody td,
body.km-crm-page .km-main .km-table td,
body.km-brands-shell #brands-table tbody td {
  border-color: #edf0f4 !important;
  color: var(--teams-text) !important;
}
body.km-crm-page .km-main .table tbody tr:hover td,
body.km-crm-page .km-main .km-table tbody tr:hover td,
body.km-brands-shell #brands-table tbody tr:hover td { background: #fafaff !important; }

/* Forms: subtle gray keylines, purple focus rings, no white-on-white
   controls even when legacy dark-mode rules are present. */
body.km-crm-page .km-main input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
body.km-crm-page .km-main select,
body.km-crm-page .km-main textarea,
body.km-crm-page .span10 input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
body.km-crm-page .span10 select,
body.km-crm-page .span10 textarea,
body.km-brands-shell .km-brands-main input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
body.km-brands-shell .km-brands-main select,
body.km-brands-shell .km-brands-main textarea {
  border: 1px solid var(--teams-line-strong) !important;
  border-radius: 8px !important;
  background: var(--teams-surface) !important;
  color: var(--teams-text) !important;
  box-shadow: none !important;
}
body.km-crm-page .km-main input:focus,
body.km-crm-page .km-main select:focus,
body.km-crm-page .km-main textarea:focus,
body.km-crm-page .span10 input:focus,
body.km-crm-page .span10 select:focus,
body.km-crm-page .span10 textarea:focus,
body.km-brands-shell .km-brands-main input:focus,
body.km-brands-shell .km-brands-main select:focus,
body.km-brands-shell .km-brands-main textarea:focus {
  border-color: var(--teams-purple) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(98,100,167,.14) !important;
}
body.km-crm-page .km-main label,
body.km-crm-page .span10 label,
body.km-crm-page .span10 .control-label { color: #454a52 !important; }

/* Button hierarchy: purple primary actions, quiet white secondary controls,
   and no legacy dark outline around every button. */
body.km-crm-page .km-main .btn-primary,
body.km-crm-page .km-main .btn-inverse,
body.km-crm-page .km-main .km-primary-button,
body.km-crm-page .span10 .btn-primary,
body.km-crm-page .span10 .btn-inverse,
body.km-crm-page .span10 .km-primary-button,
body.km-crm-page #test-send-btn,
body.km-crm-page #real-btn,
body.km-crm-page #pay-btn,
body.km-crm-page #schedule-btn,
body.km-brands-shell .km-home-toolbar > .btn-primary,
body.km-brands-shell .km-self-serve-note .btn-primary {
  border: 1px solid var(--teams-purple-dark) !important;
  border-radius: 8px !important;
  background: var(--teams-purple) !important;
  background-image: none !important;
  color: #fff !important;
  text-shadow: none !important;
  box-shadow: 0 3px 8px rgba(98,100,167,.2) !important;
}
body.km-crm-page .km-main .btn-primary:hover,
body.km-crm-page .km-main .btn-inverse:hover,
body.km-crm-page .span10 .btn-primary:hover,
body.km-crm-page .span10 .btn-inverse:hover,
body.km-crm-page #test-send-btn:hover,
body.km-crm-page #real-btn:hover,
body.km-crm-page #pay-btn:hover,
body.km-crm-page #schedule-btn:hover,
body.km-brands-shell .km-home-toolbar > .btn-primary:hover { background: var(--teams-purple-dark) !important; }
body.km-crm-page .km-main .btn-primary i,
body.km-crm-page .km-main .btn-inverse i,
body.km-crm-page .span10 .btn-primary i,
body.km-crm-page .span10 .btn-inverse i,
body.km-crm-page #test-send-btn i,
body.km-crm-page #real-btn i,
body.km-crm-page #pay-btn i,
body.km-crm-page #schedule-btn i { color: #fff !important; }
body.km-crm-page .km-main .btn:not(.btn-primary):not(.btn-inverse):not(.btn-danger):not(.btn-success),
body.km-crm-page .span10 .btn:not(.btn-primary):not(.btn-inverse):not(.btn-danger):not(.btn-success),
body.km-brands-shell .km-home-search .btn {
  border: 1px solid var(--teams-line-strong) !important;
  border-radius: 8px !important;
  background: var(--teams-surface) !important;
  color: #454a52 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
}
body.km-crm-page .km-main .btn:not(.btn-primary):not(.btn-inverse):not(.btn-danger):not(.btn-success):hover,
body.km-crm-page .span10 .btn:not(.btn-primary):not(.btn-inverse):not(.btn-danger):not(.btn-success):hover,
body.km-brands-shell .km-home-search .btn:hover { border-color: #b8bce0 !important; background: var(--teams-purple-soft) !important; color: var(--teams-purple-dark) !important; }
body.km-crm-page .km-main .btn:focus,
body.km-crm-page .span10 .btn:focus,
body.km-brands-shell .km-brands-main .btn:focus { outline: 2px solid rgba(98,100,167,.42) !important; outline-offset: 1px; }

/* Info and status surfaces. */
body.km-crm-page .km-main .alert-info,
body.km-crm-page .span10 .alert-info,
body.km-workspace-shell.dark .span10 .alert-info {
  border-color: #dfe1f5 !important;
  border-radius: 9px !important;
  background: #f3f4ff !important;
  color: #4f548d !important;
  text-shadow: none !important;
}
body.km-crm-page .km-main .alert-info p,
body.km-crm-page .span10 .alert-info p,
body.km-crm-page .span10 .alert-info i { color: #4f548d !important; }
body.km-crm-page .km-main .alert-success,
body.km-crm-page .span10 .alert-success { border-color: #b9e6d0 !important; background: #effaf4 !important; color: #1a744f !important; }
body.km-crm-page .km-main .alert-error,
body.km-crm-page .km-main .alert-danger,
body.km-crm-page .span10 .alert-error,
body.km-crm-page .span10 .alert-danger { border-color: #f1c4bc !important; background: #fff1ef !important; color: #a43f35 !important; }

/* Dashboard cards and illustrations use the Teams lavender accent rather than
   the previous orange treatment. */
body.km-crm-page .km-dashboard-page .km-dashboard-action,
body.km-crm-page .km-dashboard-page .km-metric-card,
body.km-crm-page .km-dashboard-page .km-dashboard-panel,
body.km-crm-page .km-dashboard-page .km-brand-head,
body.km-crm-page .km-dashboard-page .km-rail-panel,
body.km-crm-page .km-dashboard-page .km-dashboard-hero {
  border-color: var(--teams-line) !important;
  background: var(--teams-surface) !important;
  box-shadow: var(--teams-shadow) !important;
}
body.km-crm-page .km-dashboard-page .km-dashboard-action:hover { border-color: #b8bce0 !important; background: #fcfcff !important; }
body.km-crm-page .km-dashboard-page .km-action-icon,
body.km-crm-page .km-dashboard-page .km-metric-icon,
body.km-crm-page .km-dashboard-page .km-empty-icon,
body.km-crm-page .km-dashboard-page .km-activity-icon,
body.km-crm-page .km-dashboard-page .km-campaign-thumb {
  background: var(--teams-purple-soft) !important;
  color: var(--teams-purple) !important;
}
body.km-crm-page .km-dashboard-page .km-action-arrow,
body.km-crm-page .km-dashboard-page .km-install-link,
body.km-crm-page .km-dashboard-page .km-simple-list i,
body.km-crm-page .km-dashboard-page .km-simple-list a:hover,
body.km-crm-page .km-dashboard-page .km-recent-campaign:hover { color: var(--teams-purple) !important; }
body.km-crm-page .km-dashboard-page .km-dashboard-hero {
  background: linear-gradient(135deg, #e9e9fa 0%, #f8f8ff 100%) !important;
}
body.km-crm-page .km-dashboard-page .km-dashboard-hero:after { border-color: rgba(98,100,167,.15) !important; }
body.km-crm-page .km-dashboard-page .km-hero-art { background: var(--teams-purple) !important; box-shadow: 0 8px 14px rgba(98,100,167,.2) !important; }
body.km-crm-page .km-dashboard-page .km-hero-kicker { color: var(--teams-purple) !important; }
body.km-crm-page .km-dashboard-page .km-dashboard-table th,
body.km-crm-page .km-dashboard-page .km-dashboard-table td { border-color: #edf0f4 !important; }
body.km-crm-page .km-dashboard-page .km-dashboard-table tr:hover td { background: #fafaff !important; }
body.km-crm-page .km-dashboard-page .km-status-pill.sent { background: #e3f5ec !important; color: #13784d !important; }
body.km-crm-page .km-dashboard-page .km-status-pill.scheduled { background: #f1efff !important; color: #5a5dae !important; }

/* Brand-management tables and toolbar. */
body.km-brands-shell .km-home-toolbar > .btn-primary { box-shadow: 0 3px 8px rgba(98,100,167,.2) !important; }
body.km-brands-shell .km-home-search .search-query { background: var(--teams-surface) !important; }
body.km-brands-shell #brands-table { border-color: var(--teams-line) !important; }
body.km-brands-shell #brands-table thead th { background: var(--teams-surface-soft) !important; }

/* Footer and appearance controls. */
body.km-workspace-shell > .container-fluid > footer,
body.km-brands-shell > .container-fluid > footer,
body.km-workspace-shell.dark > .container-fluid > footer,
body.km-brands-shell.dark > .container-fluid > footer {
  border-top-color: var(--teams-line) !important;
  background: var(--teams-surface) !important;
  color: #616161 !important;
}
body.km-workspace-shell > .container-fluid > footer a,
body.km-brands-shell > .container-fluid > footer a { color: #616161 !important; }
body.km-workspace-shell > .container-fluid > footer a:hover,
body.km-brands-shell > .container-fluid > footer a:hover { color: var(--teams-purple) !important; }
body.km-workspace-shell > .container-fluid > footer #footer-mode .btn,
body.km-brands-shell > .container-fluid > footer #footer-mode .btn {
  border: 1px solid var(--teams-line-strong) !important;
  border-radius: 7px !important;
  background: var(--teams-surface) !important;
  color: #52565e !important;
  outline: none !important;
}
body.km-workspace-shell > .container-fluid > footer #footer-mode .btn.active,
body.km-brands-shell > .container-fluid > footer #footer-mode .btn.active {
  border-color: var(--teams-purple) !important;
  background: var(--teams-purple-soft) !important;
  color: var(--teams-purple-dark) !important;
}

/* Dark-mode stylesheet conflicts are contained to the legacy theme only; the
   appearance toggle and its handlers remain intact. */
body.km-workspace-shell.dark .km-main,
body.km-workspace-shell.dark .span10,
body.km-brands-shell.dark .km-brands-main,
body.km-brands-shell.dark .span10 { color: var(--teams-text) !important; }
body.km-workspace-shell.dark .km-main h1,
body.km-workspace-shell.dark .km-main h2,
body.km-workspace-shell.dark .km-main h3,
body.km-workspace-shell.dark .span10 h1,
body.km-workspace-shell.dark .span10 h2,
body.km-workspace-shell.dark .span10 h3 { color: var(--teams-text) !important; }

@media (max-width: 767px) {
  body.km-crm-page .km-header-search { width: auto; border-radius: 8px; }
  body.km-crm-page .km-main .km-panel,
  body.km-crm-page .km-main .well,
  body.km-crm-page .span10 .well { border-radius: 10px !important; }
}
