/* SkyCRM product skin: calm, high-contrast and built for daily operational work. */

.app-shell {
  color-scheme: light;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef3f8;
  --line: #dbe3ec;
  --line-soft: #e8edf3;
  --text: #172033;
  --muted: #657188;
  --accent: #2864dc;
  --accent-2: #174aa8;
  --warning: #b66a14;
  --danger: #c83b4d;
  --success: #16805d;
  --shadow: rgba(25, 40, 65, 0.07);
  min-height: 100vh;
  grid-template-columns: 264px minmax(0, 1fr);
  background: var(--bg);
  color: var(--text);
}

/* SkyDesk operational workspace */
.app-shell:has(.desk-sidebar) {
  --accent: #087f72;
  --accent-2: #05645a;
}

.app-shell .desk-sidebar .brand-mark {
  border-color: rgba(94, 234, 212, 0.2);
  background: #12363b;
}

.app-shell .desk-sidebar .nav-link.active,
.app-shell .desk-sidebar .nav-link:hover {
  color: #ecfdfb;
}

.app-shell .desk-new-ticket {
  border-color: #b7ddd8;
  background: #eefbf8;
  color: #05645a;
}

.app-shell .desk-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.app-shell .desk-metrics .metric {
  text-decoration: none;
}

.app-shell .desk-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(440px, 1.55fr);
  gap: 16px;
}

.app-shell .desk-focus-actions,
.app-shell .desk-compact-list {
  display: grid;
}

.app-shell .desk-focus-actions > a,
.app-shell .desk-compact-list > a {
  display: grid;
  align-items: center;
  min-width: 0;
  border-top: 1px solid var(--line-soft);
  color: var(--text);
  text-decoration: none;
}

.app-shell .desk-focus-actions > a {
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 12px;
  padding: 16px 18px;
}

.app-shell .desk-focus-actions > a:hover,
.app-shell .desk-compact-list > a:hover {
  background: #f3faf9;
}

.app-shell .desk-focus-actions > a > svg {
  color: #087f72;
}

.app-shell .desk-focus-actions span,
.app-shell .desk-list-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.app-shell .desk-focus-actions small,
.app-shell .desk-list-copy small {
  color: var(--muted);
}

.app-shell .desk-compact-list > a {
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px 18px;
}

.app-shell .desk-reference {
  color: #087f72;
  font-size: 12px;
  font-weight: 800;
}

.app-shell .desk-list-copy strong,
.app-shell .desk-ticket-primary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .desk-status-pill,
.app-shell .desk-priority,
.app-shell .desk-vip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--status-color, #64748b) 35%, white);
  border-radius: 999px;
  background: color-mix(in srgb, var(--status-color, #64748b) 10%, white);
  color: color-mix(in srgb, var(--status-color, #64748b) 82%, #111827);
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
  line-height: 1.2;
  white-space: nowrap;
}

.app-shell .desk-priority {
  border-color: color-mix(in srgb, var(--priority-color, #64748b) 32%, white);
  background: color-mix(in srgb, var(--priority-color, #64748b) 9%, white);
  color: color-mix(in srgb, var(--priority-color, #64748b) 82%, #111827);
}

.app-shell .desk-vip {
  border-color: #e6c75b;
  background: #fff9db;
  color: #725b04;
}

.app-shell .desk-vip svg {
  width: 13px;
  height: 13px;
  fill: #e6b800;
}

.app-shell .desk-create-panel {
  margin-bottom: 16px;
  overflow: hidden;
}

.app-shell .desk-create-panel > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  cursor: pointer;
  list-style: none;
}

.app-shell .desk-create-panel > summary::-webkit-details-marker {
  display: none;
}

.app-shell .desk-create-panel > summary > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.app-shell .desk-create-panel > summary > span svg {
  color: #087f72;
}

.app-shell .desk-create-panel > summary small {
  color: var(--muted);
}

.app-shell .desk-ticket-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.app-shell .desk-ticket-form label,
.app-shell .desk-filter-panel label {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.app-shell .desk-ticket-form label > span,
.app-shell .desk-filter-panel label > span {
  color: #56647a;
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.app-shell .desk-ticket-form .desk-field-wide {
  grid-column: 1 / -1;
}

.app-shell .desk-form-actions {
  display: flex;
  justify-content: flex-end;
}

.app-shell .desk-form-actions button {
  width: auto;
}

.app-shell .desk-list-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.app-shell .desk-filter-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.app-shell .desk-filter-panel h2 {
  margin: 0;
  font-size: 15px;
}

.app-shell .desk-filter-panel button {
  width: 100%;
}

.app-shell .desk-ticket-list-panel {
  min-width: 0;
  overflow: hidden;
}

.app-shell .desk-ticket-table {
  min-width: 0;
}

.app-shell .desk-ticket-table-head,
.app-shell .desk-ticket-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.7fr) minmax(140px, 1fr) 90px 120px minmax(120px, 0.9fr) 100px;
  align-items: center;
  gap: 12px;
}

.app-shell .desk-ticket-table-head {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.app-shell .desk-ticket-row {
  min-height: 68px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}

.app-shell .desk-ticket-row:hover {
  background: #f3faf9;
}

.app-shell .desk-ticket-primary {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.app-shell .desk-ticket-primary small {
  color: #087f72;
  font-size: 10px;
  font-weight: 800;
}

.app-shell .desk-ticket-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
}

.app-shell .desk-ticket-identity,
.app-shell .desk-ticket-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.app-shell .desk-ticket-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(290px, 0.72fr);
  align-items: start;
  gap: 16px;
}

.app-shell .desk-conversation-column,
.app-shell .desk-context-column {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.app-shell .desk-composer {
  overflow: hidden;
}

.app-shell .desk-composer details + details {
  border-top: 1px solid var(--line);
}

.app-shell .desk-composer summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 780;
  list-style: none;
}

.app-shell .desk-composer summary::-webkit-details-marker {
  display: none;
}

.app-shell .desk-composer form {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.app-shell .desk-composer form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.app-shell .desk-composer form small {
  max-width: 560px;
  color: var(--muted);
}

.app-shell .desk-composer form button {
  width: auto;
  flex: 0 0 auto;
}

.app-shell .desk-timeline {
  display: grid;
  padding: 0 18px 20px;
}

.app-shell .desk-event {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.app-shell .desk-event-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #edf5f4;
  color: #087f72;
}

.app-shell .desk-event.internal .desk-event-icon {
  background: #fff5dd;
  color: #94610b;
}

.app-shell .desk-event-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.app-shell .desk-event-heading span,
.app-shell .desk-event small {
  color: var(--muted);
  font-size: 11px;
}

.app-shell .desk-event-body {
  margin: 10px 0 5px;
  color: #273247;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.app-shell .desk-delivery-state {
  display: inline-flex;
  margin-top: 8px;
  color: #94610b !important;
}

.app-shell .desk-context-panel {
  overflow: hidden;
}

.app-shell .desk-context-panel form {
  padding: 0 16px 16px;
}

.app-shell .desk-detail-list {
  margin: 0;
}

.app-shell .desk-detail-list > div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
}

.app-shell .desk-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.app-shell .desk-detail-list dd {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 650;
}

.app-shell .desk-detail-list dd small {
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 1180px) {
  .app-shell .desk-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-shell .desk-dashboard-grid,
  .app-shell .desk-ticket-workspace {
    grid-template-columns: 1fr;
  }

  .app-shell .desk-context-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell .desk-ticket-table-head,
  .app-shell .desk-ticket-row {
    grid-template-columns: minmax(220px, 1.7fr) minmax(130px, 1fr) 82px 110px minmax(110px, 0.8fr);
  }

  .app-shell .desk-ticket-table-head span:last-child,
  .app-shell .desk-ticket-row > span:last-child {
    display: none;
  }
}

@media (max-width: 820px) {
  .app-shell .desk-metrics,
  .app-shell .desk-context-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell .desk-ticket-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell .desk-list-layout {
    grid-template-columns: 1fr;
  }

  .app-shell .desk-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell .desk-filter-panel h2,
  .app-shell .desk-filter-panel .mini-link {
    grid-column: 1 / -1;
  }

  .app-shell .desk-ticket-table-head {
    display: none;
  }

  .app-shell .desk-ticket-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 14px 16px;
  }

  .app-shell .desk-ticket-primary {
    grid-column: 1 / -1;
  }

  .app-shell .desk-ticket-row > span[data-label]::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
  }
}

@media (max-width: 560px) {
  .app-shell .desk-metrics,
  .app-shell .desk-context-column,
  .app-shell .desk-ticket-form,
  .app-shell .desk-filter-panel {
    grid-template-columns: 1fr;
  }

  .app-shell .desk-ticket-form .desk-field-wide,
  .app-shell .desk-filter-panel h2,
  .app-shell .desk-filter-panel .mini-link {
    grid-column: auto;
  }

  .app-shell .desk-compact-list > a {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .app-shell .desk-compact-list .desk-status-pill {
    grid-column: 2;
  }

  .app-shell .desk-create-panel > summary {
    grid-template-columns: minmax(0, 1fr) 18px;
  }

  .app-shell .desk-create-panel > summary > small {
    display: none;
  }

  .app-shell .desk-ticket-hero,
  .app-shell .desk-composer form > div,
  .app-shell .desk-event-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-shell .desk-ticket-row {
    grid-template-columns: 1fr;
  }

  .app-shell .desk-ticket-primary {
    grid-column: auto;
  }
}

.app-shell svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.app-shell .mobile-nav-toggle,
.app-shell .sidebar-close,
.app-shell .mobile-nav-backdrop {
  display: none;
}

.app-shell .topbar-title {
  min-width: 220px;
}

.app-shell .sidebar {
  z-index: 45;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 22px 16px 18px;
  overflow-y: auto;
  border-right: 0;
  background: #0d1b2a;
  box-shadow: 10px 0 32px rgba(15, 30, 50, 0.08);
  color: #f6f8fb;
  backdrop-filter: none;
}

.app-shell .brand {
  min-height: 42px;
  padding: 0 10px;
  gap: 11px;
}

.app-shell .brand-mark {
  width: 36px;
  height: 36px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #172a40;
}

.app-shell .brand-name {
  color: #ffffff;
  font-size: 17px;
  font-weight: 780;
}

.app-shell .tenant-switcher {
  z-index: 60;
  margin-top: 16px;
}

.app-shell .tenant-switcher summary {
  min-height: 48px;
  margin: 0;
  padding: 8px 9px;
  border: 1px solid rgba(183, 204, 229, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: #e9f0f8;
  font-size: 12px;
}

.app-shell .tenant-switcher summary > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .tenant-icon {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
  border-radius: 6px;
  background: rgba(88, 160, 255, 0.14);
  color: #8cb8ff;
}

.app-shell .tenant-icon svg {
  width: 14px;
  height: 14px;
}

.app-shell .tenant-chevron {
  width: 14px;
  height: 14px;
  color: #7f91a8;
}

.app-shell .tenant-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: min(52vh, 430px);
  margin-top: 0;
  border-color: #d8e1ea;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 12px 28px rgba(15, 30, 50, 0.16);
}

.app-shell .tenant-menu input {
  border-color: #dbe3ec;
  background: #f7f9fc;
  color: #172033;
}

.app-shell .tenant-list button {
  color: #5d6a7f;
}

.app-shell .tenant-list {
  max-height: min(36vh, 330px);
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.app-shell .tenant-list form,
.app-shell .tenant-list button {
  min-width: 0;
  max-width: 100%;
}

.app-shell .tenant-list button > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .tenant-list button.active,
.app-shell .tenant-list button:hover {
  background: #eaf1ff;
  color: #174aa8;
}

.app-shell .nav {
  gap: 3px;
  margin-top: 24px;
  margin-bottom: 18px;
}

.app-shell .account-switcher {
  position: relative;
  z-index: 55;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(183, 204, 229, 0.12);
}

.app-shell .account-switcher > summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #eaf0f7;
  cursor: pointer;
  list-style: none;
}

.app-shell .account-switcher > summary::-webkit-details-marker {
  display: none;
}

.app-shell .account-switcher > summary:hover,
.app-shell .account-switcher[open] > summary,
.app-shell .account-switcher.account-current > summary {
  border-color: rgba(183, 204, 229, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.app-shell .account-switcher > summary > svg {
  width: 17px;
  color: #8799ae;
}

.app-shell .account-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #263b53;
  color: #dbe9fb;
  font-size: 11px;
  font-weight: 780;
}

.app-shell .account-summary-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.app-shell .account-summary-copy strong,
.app-shell .account-summary-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .account-summary-copy strong {
  font-size: 13px;
}

.app-shell .account-summary-copy small {
  color: #8fa2b8;
  font-size: 11px;
}

.app-shell .account-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  left: 0;
  display: grid;
  overflow: hidden;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 20px 54px rgba(8, 23, 40, 0.28);
}

.app-shell .account-menu-profile {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 15px;
  border-bottom: 1px solid #e8edf3;
  background: #f8fafc;
}

.app-shell .account-avatar-large {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  background: #e7effd;
  color: #174aa8;
  font-size: 14px;
}

.app-shell .account-menu-profile > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.app-shell .account-menu-profile strong,
.app-shell .account-menu-profile span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .account-menu-profile strong {
  font-size: 14px;
}

.app-shell .account-menu-profile span {
  color: #6d798d;
  font-size: 11px;
}

.app-shell .account-menu > a,
.app-shell .account-menu form button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #425168;
  font-size: 12px;
  font-weight: 650;
  box-shadow: none;
}

.app-shell .account-menu > a:hover,
.app-shell .account-menu form button:hover {
  background: #eef4ff;
  color: #174aa8;
}

.app-shell .account-menu form {
  border-top: 1px solid #e8edf3;
}

.app-shell .nav-link {
  position: relative;
  min-height: 40px;
  padding: 0 11px;
  gap: 11px;
  border-radius: 6px;
  color: #9fb0c4;
  font-size: 13px;
  font-weight: 650;
}

.app-shell .nav-link:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
}

.app-shell .nav-link.active {
  background: #eef4ff;
  color: #174aa8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.app-shell .nav-link.active::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #2864dc;
  content: "";
}

.app-shell .nav-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  font-size: inherit;
}

.app-shell .nav-icon svg {
  width: 17px;
  height: 17px;
}

.app-shell .nav-link.active .nav-icon,
.app-shell .nav-link:hover .nav-icon {
  background: transparent;
}

.app-shell .admin-nav-group {
  gap: 3px;
}

.app-shell .admin-nav-chevron {
  display: grid;
  place-items: center;
  color: currentColor;
}

.app-shell .admin-nav-chevron svg {
  width: 14px;
  height: 14px;
}

.app-shell .admin-nav-links {
  gap: 2px;
  padding: 3px 0 5px 31px;
}

.app-shell .admin-nav-link {
  min-height: 31px;
  padding: 0 10px;
  border-left-color: rgba(159, 176, 196, 0.22);
  color: #899cb2;
  font-size: 12px;
}

.app-shell .admin-nav-link:hover,
.app-shell .admin-nav-link.active {
  border-color: #77a9ff;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.app-shell .main {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  padding: 0 28px 36px;
  background: #f3f6fa;
}

.app-shell .topbar {
  position: sticky;
  z-index: 35;
  top: 0;
  min-height: 88px;
  margin: 0 -28px 24px;
  padding: 17px 28px;
  border-bottom: 1px solid rgba(219, 227, 236, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 24px rgba(27, 47, 73, 0.035);
  backdrop-filter: blur(14px);
}

.app-shell .topbar h1 {
  margin: 0;
  color: #172033;
  font-size: 25px;
  font-weight: 760;
  line-height: 1.15;
}

.app-shell .eyebrow {
  margin: 0 0 4px;
  color: #728096;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.app-shell .topbar-actions {
  gap: 8px;
}

.app-shell .command-search {
  grid-template-columns: 35px minmax(170px, 360px) 40px;
  min-height: 40px;
  border-color: #d7e0e9;
  background: #f8fafc;
  box-shadow: none;
}

.app-shell .command-search:focus-within {
  border-color: #7aa4ef;
  box-shadow: 0 0 0 3px rgba(40, 100, 220, 0.1);
}

.app-shell .command-search span {
  color: #7c899b;
}

.app-shell .command-search span svg {
  width: 16px;
  height: 16px;
}

.app-shell .command-search input {
  min-height: 38px;
  padding: 0 4px;
  color: #172033;
}

.app-shell .command-search button {
  width: 30px;
  min-height: 30px;
  margin: 0 5px 0 0;
  padding: 0;
  border-color: transparent;
  background: #e8eef7;
  color: #42526a;
}

.app-shell .command-search button:hover {
  background: #dce7f7;
  color: #174aa8;
}

.app-shell .command-search button svg {
  width: 15px;
  height: 15px;
}

.app-shell .quick-actions {
  gap: 5px;
}

.app-shell .quick-actions a {
  gap: 6px;
  min-height: 34px;
  padding: 0 9px;
  border-color: #dce3eb;
  background: #ffffff;
  color: #526077;
  font-size: 11px;
  box-shadow: 0 1px 2px rgba(25, 40, 65, 0.04);
}

.app-shell .quick-actions a:hover {
  border-color: #a9c1ec;
  background: #f3f7ff;
  color: #174aa8;
}

.app-shell .quick-actions svg {
  width: 14px;
  height: 14px;
}

.app-shell .app-launcher > summary,
.app-shell .help-button,
.app-shell .tour-launcher {
  min-height: 34px;
  height: 34px;
  border-color: transparent;
  background: transparent;
  color: #6b778a;
}

.app-shell .app-launcher > summary,
.app-shell .help-button {
  width: 34px;
  padding: 0;
}

.app-shell .app-launcher > summary:hover,
.app-shell .app-launcher[open] > summary,
.app-shell .help-button:hover,
.app-shell .tour-launcher:hover {
  border-color: #dbe3ec;
  background: #eef3f8;
  color: #174aa8;
}

.app-shell .app-launcher > summary svg,
.app-shell .help-button svg,
.app-shell .tour-launcher svg {
  width: 17px;
  height: 17px;
}

.app-shell .app-launcher {
  position: relative;
  z-index: 70;
}

.app-shell .app-launcher > summary {
  display: grid;
  cursor: pointer;
  list-style: none;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #6b778a;
}

.app-shell .app-launcher > summary::-webkit-details-marker {
  display: none;
}

.app-shell .app-launcher-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(350px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(20, 39, 64, 0.18);
}

.app-shell .app-launcher-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 6px 10px;
  color: #172033;
}

.app-shell .app-launcher-heading strong {
  font-size: 13px;
}

.app-shell .app-launcher-heading span {
  color: #7a879a;
  font-size: 11px;
}

.app-shell .app-launcher-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #243147;
}

.app-shell a.app-launcher-item:hover {
  border-color: #cad9ed;
  background: #f4f8fe;
  color: #174aa8;
}

.app-shell .app-launcher-item.upcoming {
  color: #5f6d81;
}

.app-shell .app-launcher-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 7px;
}

.app-shell .app-launcher-icon.crm {
  background: #e7f0ff;
  color: #2263d6;
}

.app-shell .app-launcher-icon.desk {
  background: #e4f7ef;
  color: #137a57;
}

.app-shell .app-launcher-icon.rmm {
  background: #fff1df;
  color: #a65a12;
}

.app-shell .app-launcher-icon svg {
  width: 19px;
  height: 19px;
}

.app-shell .app-launcher-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.app-shell .app-launcher-copy strong {
  color: #172033;
  font-size: 13px;
}

.app-shell .app-launcher-copy small {
  overflow: hidden;
  color: #748197;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .app-launcher-status {
  padding: 3px 6px;
  border: 1px solid #d8e2ef;
  border-radius: 999px;
  color: #64748b;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.app-shell .app-launcher-item.current .app-launcher-status {
  border-color: #bfd2f5;
  background: #edf4ff;
  color: #2458b6;
}

.app-shell .app-launcher-status.denied {
  border-color: #e0e5ec;
  background: #f4f6f8;
  color: #7c8798;
}

.app-shell .panel,
.app-shell .metric {
  border: 1px solid #e0e7ef;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(25, 40, 65, 0.045);
}

.app-shell .panel {
  min-height: 0;
  padding: 18px;
}

.app-shell .panel-heading {
  min-height: 32px;
  margin-bottom: 14px;
}

.app-shell .panel-heading h2,
.app-shell .panel h2 {
  color: #1d293d;
  font-size: 15px;
  font-weight: 750;
}

.app-shell .panel-heading span,
.app-shell .list-row span,
.app-shell .metric span {
  color: #748097;
}

.app-shell .account-identity {
  display: flex;
  min-height: 116px;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 20px 22px;
}

.app-shell .account-identity h2,
.app-shell .account-identity p {
  margin: 0;
}

.app-shell .account-identity h2 {
  margin-bottom: 4px;
  font-size: 20px;
}

.app-shell .account-identity > div:nth-child(2) > p:last-child {
  color: #69768a;
  font-size: 13px;
}

.app-shell .account-identity-meta {
  display: grid;
  margin-left: auto;
  gap: 3px;
  text-align: right;
}

.app-shell .account-identity-meta span {
  color: #6c788c;
  font-size: 12px;
}

.app-shell .account-identity-meta strong {
  color: #26364d;
  font-size: 12px;
}

.app-shell .account-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app-shell .account-panel {
  align-self: start;
}

.app-shell .account-panel .panel-heading > svg {
  color: #6d7d91;
}

.app-shell .account-panel .form-grid {
  grid-template-columns: 1fr;
}

.app-shell .account-panel .form-grid > button {
  justify-self: start;
}

.app-shell .account-inline-action {
  margin-top: 12px;
}

.app-shell .account-security-status,
.app-shell .account-empty-state {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.app-shell .account-security-icon,
.app-shell .trusted-device-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 7px;
  background: #edf4ff;
  color: #2864dc;
}

.app-shell .account-security-status p,
.app-shell .account-empty-state p {
  margin: 4px 0 0;
  color: #6a778b;
  font-size: 12px;
  line-height: 1.55;
}

.app-shell .account-devices-panel {
  grid-column: 1 / -1;
}

.app-shell .trusted-device-list {
  display: grid;
}

.app-shell .trusted-device-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #e8edf3;
}

.app-shell .trusted-device-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 5px;
}

.app-shell .trusted-device-copy > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.app-shell .trusted-device-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .trusted-device-copy > span {
  color: #6d798d;
  font-size: 11px;
}

.app-shell .metrics-grid,
.app-shell .report-metrics {
  gap: 10px;
}

.app-shell .user-admin-strip {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.app-shell .user-admin-strip .metric-card {
  min-height: 84px;
  padding: 15px 18px;
}

.app-shell .users-page-actions {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.app-shell .users-page-actions:empty {
  display: none;
}

.app-shell .users-page-actions .drawer-trigger {
  margin: 0;
}

.app-shell .users-management {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px;
  align-items: start;
}

.app-shell .users-management > * {
  min-width: 0;
  grid-column: 1 / -1;
}

.app-shell .users-management > .table-panel,
.app-shell .table-panel {
  width: 100%;
  min-width: 0;
}

.app-shell .application-access-summary {
  display: flex;
  min-width: 132px;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 7px;
}

.app-shell .application-access-summary span {
  padding: 3px 6px;
  border: 1px solid #d5e0ee;
  border-radius: 999px;
  background: #f4f7fb;
  color: #526177;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.app-shell .application-access-form {
  align-content: start;
  gap: 18px;
}

.app-shell .application-access-form h2 {
  margin: 2px 0 8px;
  font-size: 21px;
}

.app-shell .application-access-options {
  display: grid;
  gap: 8px;
}

.app-shell .application-access-option {
  display: grid;
  min-width: 0;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid #dce4ed;
  border-radius: 7px;
  background: #f9fbfd;
  cursor: pointer;
}

.app-shell .application-access-option:has(input:checked) {
  border-color: #a9c3f2;
  background: #f1f6ff;
}

.app-shell .application-access-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #2864dc;
}

.app-shell .application-access-option > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.app-shell .application-access-option strong {
  color: #1d293d;
  font-size: 13px;
}

.app-shell .application-access-option small {
  color: #748197;
  font-size: 11px;
  line-height: 1.4;
}

.app-shell .application-access-option em {
  color: #69778c;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-shell .data-table {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.has-js .app-shell .module-grid:not(.task-layout) {
  grid-template-columns: minmax(0, 1fr);
}

.has-js .app-shell .module-grid:not(.task-layout) > .drawer-trigger {
  justify-self: end;
  margin: 0 0 2px;
}

.has-js .app-shell .module-grid:not(.task-layout) > .table-panel,
.has-js .app-shell .module-grid:not(.task-layout) > .activity-panel {
  grid-column: 1 / -1;
}

.app-shell .metric {
  position: relative;
  gap: 8px;
  min-height: 104px;
  padding: 16px;
  overflow: hidden;
}

.app-shell .metric::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #2864dc;
  content: "";
}

.app-shell .metric:nth-child(3n + 2)::before {
  background: #16805d;
}

.app-shell .metric:nth-child(3n)::before {
  background: #7a5cc7;
}

.app-shell .metric.urgent::before {
  background: #d45362;
}

.app-shell .metric span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.app-shell .metric strong {
  color: #172033;
  font-size: 25px;
  font-weight: 750;
}

.app-shell .metric.urgent strong {
  color: #b92f43;
}

.app-shell input,
.app-shell select,
.app-shell textarea {
  min-height: 41px;
  border-color: #d7e0e9;
  background: #ffffff;
  color: #1b2638;
  box-shadow: 0 1px 1px rgba(24, 39, 61, 0.02);
}

.app-shell input::placeholder,
.app-shell textarea::placeholder {
  color: #909bad;
}

.app-shell input:focus,
.app-shell select:focus,
.app-shell textarea:focus {
  border-color: #6f9bea;
  box-shadow: 0 0 0 3px rgba(40, 100, 220, 0.1);
}

.app-shell label,
.app-shell .form-help {
  color: #69768b;
}

.app-shell button,
.app-shell .button-link,
.app-shell .btn.primary {
  min-height: 38px;
  border-color: #2864dc;
  background: #2864dc;
  color: #ffffff;
  font-size: 12px;
  font-weight: 720;
  box-shadow: 0 2px 5px rgba(40, 100, 220, 0.16);
}

.app-shell button:hover,
.app-shell .button-link:hover,
.app-shell .btn.primary:hover {
  border-color: #174fae;
  background: #1f55bc;
  color: #ffffff;
}

.app-shell button:disabled,
.app-shell button:disabled:hover {
  border-color: #d5dde7;
  background: #e9eef4;
  color: #7b8799;
  opacity: 1;
  box-shadow: none;
  transform: none;
}

.app-shell .ghost-button,
.app-shell .mini-button,
.app-shell .mini-link,
.app-shell .task-edit summary {
  border-color: #d6dfe9;
  background: #ffffff;
  color: #4d5b70;
  box-shadow: none;
}

.app-shell .ghost-button:hover,
.app-shell .mini-button:hover,
.app-shell .mini-link:hover,
.app-shell .task-edit summary:hover {
  border-color: #b8c8dc;
  background: #f1f5f9;
  color: #1d293d;
}

.app-shell .danger-button,
.app-shell .danger-button:hover {
  border-color: #e4aab4;
  background: #fff5f6;
  color: #a72e42;
}

.app-shell .danger-button:hover {
  border-color: #d98291;
  background: #ffecef;
}

.app-shell .command-panel {
  border-color: #dfe6ee;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(25, 40, 65, 0.045);
}

.app-shell .export-card {
  border-color: #dce4ed;
  background: #ffffff;
  color: #202c40;
  box-shadow: 0 3px 12px rgba(25, 40, 65, 0.04);
}

.app-shell .export-card span {
  color: #68758a;
}

.app-shell .export-card:hover {
  border-color: #a9c1df;
  background: #f4f8ff;
  color: #174fae;
  box-shadow: 0 7px 18px rgba(25, 40, 65, 0.07);
  transform: translateY(-1px);
}

.app-shell .platform-hero {
  border-color: #d6e2f2;
  background: #edf4ff;
  color: #172033;
  box-shadow: 0 6px 20px rgba(25, 40, 65, 0.05);
}

.app-shell .platform-hero p,
.app-shell .platform-hero span {
  color: #617087;
}

.app-shell .platform-hero-stat {
  border-color: #ccdaeb;
  background: #ffffff;
}

.app-shell .data-table {
  margin: 0 -18px -18px;
  width: calc(100% + 36px);
}

.app-shell table {
  color: #263248;
}

.app-shell th {
  padding: 10px 13px;
  border-top: 1px solid #e5ebf1;
  border-bottom: 1px solid #dfe6ee;
  background: #f7f9fc;
  color: #68758a;
  font-size: 10px;
  font-weight: 780;
  text-transform: uppercase;
}

.app-shell td {
  padding: 12px 13px;
  border-bottom-color: #e8edf3;
  color: #344056;
  font-size: 13px;
}

.app-shell tbody tr:hover {
  background: #f8fbff;
}

.app-shell .record-link strong,
.app-shell .list-row strong,
.app-shell .task-main strong {
  color: #202c40;
}

.app-shell .record-link:hover strong,
.app-shell .list-row:hover strong {
  color: #174fae;
}

.app-shell .badge,
.app-shell .muted-badge,
.app-shell .warning-pill,
.app-shell .accent-pill,
.app-shell .muted-pill {
  border-color: #d9e2eb;
  background: #f3f6f9;
  color: #56647a;
}

.app-shell .accent-pill {
  border-color: #c9daf9;
  background: #edf3ff;
  color: #2858aa;
}

.app-shell .warning-pill {
  border-color: #f0d6ad;
  background: #fff7e8;
  color: #9d5d13;
}

.app-shell .vip-star {
  color: #c78312;
}

.app-shell .list-row,
.app-shell .task-card,
.app-shell .activity-card,
.app-shell .deal-card {
  border-color: #e3e9f0;
  background: #ffffff;
}

.app-shell .list-row:hover,
.app-shell .task-card:hover,
.app-shell .activity-card:hover,
.app-shell .deal-card:hover {
  border-color: #bfd0e5;
  background: #f9fbfe;
}

.app-shell .task-card.overdue {
  border-color: #efc8cf;
  background: #fff9fa;
}

.app-shell .task-main span,
.app-shell .task-meta span,
.app-shell .task-meta a,
.app-shell .activity-card em,
.app-shell .activity-card-footer span {
  color: #6d798d;
}

.app-shell .activity-card p {
  color: #3c485d;
}

.app-shell .chart-progress {
  overflow: hidden;
  border: 0;
  background: #e9eef4;
}

.app-shell .chart-progress::-webkit-progress-bar {
  background: #e9eef4;
}

.app-shell .chart-progress::-webkit-progress-value {
  background: #3f76d8;
}

.app-shell .chart-progress::-moz-progress-bar {
  background: #3f76d8;
}

.app-shell .chart-row em,
.app-shell .chart-row-label strong {
  color: #344056;
}

.app-shell .custom-report-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.app-shell .custom-report-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.app-shell .report-export-link {
  flex: 0 0 auto;
  gap: 7px;
  padding: 0 13px;
}

.app-shell .report-export-link span {
  color: inherit;
}

.app-shell .report-pagination {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid #e4eaf1;
  color: #6b778a;
  font-size: 12px;
}

.app-shell .report-pagination-controls,
.app-shell .report-pagination-controls .mini-link {
  display: flex;
  align-items: center;
}

.app-shell .report-pagination-controls {
  gap: 12px;
}

.app-shell .report-pagination-controls strong {
  color: #344056;
  white-space: nowrap;
}

.app-shell .report-pagination-controls .mini-link {
  min-height: 34px;
  gap: 5px;
  padding: 0 10px;
}

.app-shell .list-pagination-summary,
.app-shell .list-page-size,
.app-shell .list-page-size label {
  display: flex;
  align-items: center;
}

.app-shell .list-pagination-summary {
  gap: 16px;
}

.app-shell .list-page-size {
  gap: 6px;
}

.app-shell .list-page-size label {
  gap: 6px;
  color: #6b778a;
  font-size: 12px;
}

.app-shell .list-page-size select {
  width: 72px;
  min-height: 34px;
  padding: 0 28px 0 9px;
}

.app-shell .list-page-size .mini-button {
  min-height: 34px;
  padding: 0 10px;
}

.app-shell .record-hero {
  gap: 0;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(25, 40, 65, 0.04);
}

.app-shell .record-hero > div {
  min-height: 78px;
  padding: 15px 17px;
  border: 0;
  border-right: 1px solid #e5ebf1;
  border-radius: 0;
  background: transparent;
}

.app-shell .record-hero > div:last-child {
  border-right: 0;
}

.app-shell .record-hero span {
  color: #7b8799;
}

.app-shell .record-hero strong {
  color: #243047;
}

.app-shell .task-tabs a,
.app-shell .activity-summary a {
  border-color: #dfe6ee;
  background: #ffffff;
  color: #637086;
  box-shadow: 0 3px 12px rgba(25, 40, 65, 0.035);
}

.app-shell .task-tabs a:hover,
.app-shell .task-tabs a.active,
.app-shell .activity-summary a:hover,
.app-shell .activity-summary a.active {
  border-color: #a9c2ed;
  background: #edf3ff;
  color: #174fae;
  transform: none;
}

.app-shell .task-tabs strong,
.app-shell .activity-summary strong {
  color: #2864dc;
}

.app-shell .pipeline-column {
  border-color: #dfe6ee;
  background: #edf2f7;
  box-shadow: none;
}

.app-shell .pipeline-column-header,
.app-shell .pipeline-stage-summary {
  color: #243047;
}

.app-shell .pipeline-dropzone.drag-over {
  background: #e5efff;
}

.app-shell .onboarding-progress {
  border: 0;
  background: #e7edf4;
}

.app-shell .onboarding-progress span {
  background: #2864dc;
}

.app-shell .empty,
.app-shell .empty-state {
  border-color: #d6e0ea;
  background: #f8fafc;
  color: #718096;
}

.app-shell .alert {
  border-color: #c8daf8;
  background: #edf4ff;
  color: #274f90;
}

.app-shell .danger-alert {
  border-color: #efc4cc;
  background: #fff1f3;
  color: #9d2e40;
}

.confirm-modal,
.drawer-overlay {
  background: rgba(22, 32, 48, 0.48);
}

.confirm-card,
.tour-popover {
  border-color: #dbe3ec;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 22px 64px rgba(20, 35, 56, 0.2);
}

.confirm-card h2,
.tour-popover h2 {
  color: #172033;
}

.tour-popover {
  width: min(380px, calc(100vw - 32px));
  padding: 20px;
}

.tour-step-count {
  border-color: #c9daf9;
  background: #edf3ff;
  color: #2858aa;
}

.confirm-card button,
.tour-popover button {
  border-color: #2864dc;
  background: #2864dc;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(40, 100, 220, 0.16);
}

.confirm-card button:hover,
.tour-popover button:hover {
  border-color: #174fae;
  background: #1f55bc;
  color: #ffffff;
}

.confirm-card .ghost-button,
.tour-popover .ghost-button {
  border-color: #cfd8e3;
  background: #ffffff;
  color: #3f4d62;
  box-shadow: none;
}

.confirm-card .ghost-button:hover,
.tour-popover .ghost-button:hover {
  border-color: #aebdd0;
  background: #f1f5f9;
  color: #1d293d;
}

.confirm-card button:disabled,
.confirm-card button:disabled:hover,
.tour-popover button:disabled,
.tour-popover button:disabled:hover {
  border-color: #d9e0e8;
  background: #f2f5f8;
  color: #657188;
  opacity: 1;
  box-shadow: none;
}

.confirm-card p,
.tour-popover p {
  color: #657188;
  font-size: 14px;
  line-height: 1.6;
}

.tour-popover::before {
  border-color: #dbe3ec;
  background: #ffffff;
}

.toast {
  box-shadow: 0 14px 38px rgba(25, 40, 65, 0.16);
}

.app-shell ~ .toast-stack {
  top: 104px;
  z-index: 90;
}

.toast-stack .alert {
  overflow-wrap: anywhere;
  border: 1px solid #c8daf8;
  background: #edf4ff;
  color: #274f90;
  box-shadow: 0 14px 38px rgba(25, 40, 65, 0.16);
}

.toast-stack .danger-alert {
  border-color: #efc4cc;
  background: #fff1f3;
  color: #9d2e40;
}

.toast-stack .subtle-alert {
  border-color: #ead4a8;
  background: #fff8e9;
  color: #7b5118;
}

.toast-stack .toast-close {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.55);
  color: inherit;
  opacity: 0.72;
}

.toast-stack .toast-close:hover {
  background: #ffffff;
  color: inherit;
  opacity: 1;
}

/* Public pages retain a confident dark identity while sharing the sharper controls. */
.marketing-page {
  min-height: 100vh;
  background: #08131f;
  color: #f7f9fc;
}

.marketing-page .marketing-nav,
.marketing-page .marketing-hero,
.marketing-page .marketing-section,
.marketing-page .marketing-grid {
  width: min(1180px, calc(100% - 44px));
}

.marketing-page .marketing-nav {
  padding-top: 24px;
}

.marketing-page .marketing-nav nav a {
  color: #b4c1d1;
}

.marketing-page .marketing-nav nav a:hover {
  color: #ffffff;
}

.marketing-page .marketing-hero {
  min-height: calc(100vh - 92px);
  align-content: center;
  padding: 58px 0 86px;
}

.marketing-page .marketing-hero h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 760;
  line-height: 1.02;
}

.marketing-page .marketing-hero p {
  color: #b3c0d0;
  font-size: 17px;
  line-height: 1.7;
}

.marketing-page .marketing-proof {
  border-color: rgba(255, 255, 255, 0.12);
  background: #101f2f;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.18);
}

.marketing-page .marketing-proof strong {
  color: #ffffff;
}

.marketing-page .button-link {
  border-color: #5f91eb;
  background: #5f91eb;
  color: #06101c;
}

@media (max-width: 1220px) {
  .app-shell .quick-actions a span,
  .app-shell .tour-launcher span {
    display: none;
  }

  .app-shell .quick-actions a,
  .app-shell .tour-launcher {
    width: 34px;
    padding: 0;
  }
}

@media (max-width: 980px) {
  .app-shell {
    width: 100%;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr);
    overflow-x: hidden;
  }

  .app-shell .sidebar {
    position: fixed;
    z-index: 85;
    inset: 0 auto 0 0;
    width: min(86vw, 320px);
    height: 100dvh;
    padding: 18px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 22px 0 60px rgba(8, 23, 40, 0.3);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .mobile-nav-open .app-shell .sidebar {
    transform: translateX(0);
  }

  .tour-open.mobile-nav-open .app-shell .sidebar {
    z-index: 96;
  }

  .app-shell .mobile-nav-backdrop {
    position: fixed;
    z-index: 80;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(17, 29, 44, 0.5);
    box-shadow: none;
    backdrop-filter: blur(3px);
  }

  .app-shell .mobile-nav-backdrop:hover {
    border: 0;
    background: rgba(17, 29, 44, 0.5);
    box-shadow: none;
    transform: none;
  }

  .mobile-nav-open .app-shell .mobile-nav-backdrop {
    display: block;
  }

  .mobile-nav-open {
    overflow: hidden;
  }

  .app-shell .sidebar-close {
    display: grid;
    width: 38px;
    min-height: 38px;
    height: 38px;
    margin-left: auto;
    padding: 0;
    place-items: center;
    border-color: rgba(183, 204, 229, 0.14);
    background: rgba(255, 255, 255, 0.055);
    color: #dce7f3;
    box-shadow: none;
  }

  .app-shell .mobile-nav-toggle {
    display: grid;
    width: 42px;
    min-height: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border-color: #d7e0e9;
    background: #ffffff;
    color: #42526a;
    box-shadow: none;
  }

  .app-shell .nav {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 20px;
  }

  .app-shell .account-switcher {
    margin-top: 12px;
  }

  .app-shell .account-menu {
    right: auto;
    bottom: calc(100% + 8px);
    width: min(280px, calc(100vw - 32px));
  }

  .app-shell .admin-nav-links {
    padding-left: 12px;
  }

  .app-shell .main {
    width: 100%;
    padding: 0 20px 28px;
  }

  .app-shell .user-admin-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell .topbar {
    position: sticky;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    top: 0;
    margin: 0 -20px 20px;
    padding: 16px 20px;
  }

  .app-shell .topbar-title {
    min-width: 0;
  }

  .app-shell .topbar-actions {
    display: grid;
    width: 100%;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) repeat(3, 38px);
  }

  .app-shell .command-search {
    grid-column: 1 / -1;
    width: 100%;
  }

  .app-shell .quick-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-shell .quick-actions a {
    width: 100%;
    min-height: 42px;
  }

  .app-shell .app-launcher {
    grid-column: 2;
    justify-self: end;
  }

  .app-shell .help-button {
    grid-column: 3;
  }

  .app-shell .tour-launcher {
    grid-column: 4;
  }

  .app-shell .app-launcher > summary,
  .app-shell .help-button,
  .app-shell .tour-launcher {
    width: 38px;
    min-height: 38px;
    height: 38px;
    justify-self: end;
  }

  .app-shell .task-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .app-shell .task-tabs a {
    min-width: 118px;
    flex: 0 0 118px;
    scroll-snap-align: start;
  }

  .has-js .drawer-form {
    width: min(100%, 440px);
    height: 100dvh;
    max-height: 100dvh;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .has-js .drawer-form .drawer-close {
    position: sticky;
    z-index: 2;
    top: 0;
  }

  .app-shell button,
  .app-shell .button-link,
  .app-shell .ghost-button,
  .app-shell .mini-button,
  .app-shell .mini-link {
    min-height: 42px;
  }
}

@media (max-width: 720px) {
  .app-shell .main {
    padding: 0 14px 24px;
  }

  .app-shell .topbar {
    margin: 0 -14px 18px;
    padding: 15px 14px;
  }

  .app-shell .topbar h1 {
    font-size: 22px;
  }

  .app-shell .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, 34px);
  }

  .app-shell .topbar-title .eyebrow {
    margin-bottom: 2px;
  }

  .app-shell .command-search {
    grid-column: 1 / -1;
    width: 100%;
  }

  .app-shell .quick-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
  }

  .app-shell .quick-actions a {
    width: 100%;
  }

  .app-shell .activity-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell .custom-report-summary,
  .app-shell .report-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell .report-export-link {
    width: 100%;
  }

  .app-shell .report-pagination-controls {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .app-shell .list-pagination-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .app-shell .data-table {
    margin-right: -14px;
    margin-left: -14px;
    width: calc(100% + 28px);
    -webkit-overflow-scrolling: touch;
  }

  .app-shell .data-table table {
    min-width: 680px;
  }

  .app-shell .data-table::after {
    display: block;
    width: 1px;
    height: 1px;
    content: "";
  }

  .app-shell .app-launcher {
    grid-column: 2;
  }

  .app-shell .help-button {
    grid-column: 3;
  }

  .app-shell .tour-launcher {
    grid-column: 4;
  }

  .app-shell .app-launcher > summary,
  .app-shell .tour-launcher,
  .app-shell .help-button {
    justify-self: end;
  }

  .app-shell .account-settings-grid {
    grid-template-columns: 1fr;
  }

  .app-shell .account-panel .panel-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .app-shell .account-devices-panel {
    grid-column: auto;
  }

  .app-shell .account-identity {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .app-shell .account-identity-meta {
    width: 100%;
    margin-left: 62px;
    text-align: left;
  }

  .app-shell .trusted-device-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .app-shell .trusted-device-row form {
    margin-left: 50px;
  }

  .app-shell .metrics-grid,
  .app-shell .intelligence-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell .user-admin-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell .user-admin-strip .metric-card {
    min-width: 0;
  }

  .app-shell .user-admin-strip .metric-card span,
  .app-shell .user-admin-strip .metric-card strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .app-shell .metric {
    min-height: 94px;
  }

  .app-shell .metric strong {
    font-size: 22px;
  }

  .app-shell .users-page-actions {
    justify-content: stretch;
  }

  .app-shell .users-page-actions .drawer-trigger {
    width: 100%;
  }

  .app-shell .panel-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .app-shell ~ .toast-stack {
    top: 14px;
    right: 14px;
    width: calc(100vw - 28px);
  }

  .app-shell .record-hero > div {
    border-right: 0;
    border-bottom: 1px solid #e5ebf1;
  }

  .marketing-page .marketing-hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }
}

/* SkyDesk service operations */
.app-shell .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell .desk-service-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 14px;
}

.app-shell .desk-service-heading h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.app-shell .desk-service-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.app-shell .desk-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.app-shell .desk-service-panel {
  min-width: 0;
  padding: 18px;
}

.app-shell .desk-migration-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.app-shell .desk-migration-callout > svg {
  width: 22px;
  color: var(--accent);
}

.app-shell .desk-migration-callout strong,
.app-shell .desk-migration-callout span {
  display: block;
}

.app-shell .desk-migration-callout span {
  margin-top: 3px;
  color: var(--muted);
}

.app-shell .desk-service-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 6px;
  background: #e8f0ff;
  color: #1559c5;
}

.app-shell .desk-service-icon svg {
  width: 17px;
  height: 17px;
}

.app-shell .desk-settings-expander {
  margin-top: 14px;
  border-top: 1px solid var(--border);
}

.app-shell .desk-settings-expander > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0 0;
  cursor: pointer;
  color: var(--accent);
  font-weight: 760;
  list-style: none;
}

.app-shell .desk-settings-expander > summary::-webkit-details-marker {
  display: none;
}

.app-shell .desk-settings-expander > summary svg {
  width: 16px;
}

.app-shell .desk-settings-expander > form {
  margin-top: 16px;
}

.app-shell .desk-sla-targets {
  grid-column: 1 / -1;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.app-shell .desk-sla-targets > div {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) repeat(3, minmax(92px, 0.8fr));
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
}

.app-shell .desk-sla-targets > div:first-child {
  border-top: 0;
}

.app-shell .desk-sla-targets .desk-sla-target-header {
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.app-shell .desk-sla-targets input {
  width: 100%;
  min-width: 0;
}

.app-shell .desk-agreement-list,
.app-shell .desk-rule-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
}

.app-shell .desk-agreement-list > div,
.app-shell .desk-rule-list > article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-subtle);
}

.app-shell .desk-agreement-list strong,
.app-shell .desk-agreement-list small,
.app-shell .desk-rule-list strong,
.app-shell .desk-rule-list small {
  display: block;
}

.app-shell .desk-agreement-list small,
.app-shell .desk-rule-list small {
  color: var(--muted);
}

.app-shell .desk-agreement-list em,
.app-shell .desk-rule-list em {
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.app-shell .desk-rule-list > article {
  justify-content: flex-start;
}

.app-shell .desk-rule-list > article > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.app-shell .desk-rule-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.app-shell .desk-rule-group legend {
  padding: 0 6px;
  color: var(--text);
  font-weight: 780;
}

.app-shell .desk-attachment-dropzone {
  display: grid;
  grid-column: 1 / -1;
  min-height: 104px;
  padding: 16px;
  place-items: center;
  border: 1px dashed #9db1ca;
  border-radius: 7px;
  background: #f7faff;
  color: #24405e;
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease;
}

.app-shell .desk-attachment-dropzone.compact {
  min-height: 76px;
  padding: 11px;
}

.app-shell .desk-attachment-dropzone.is-dragging,
.app-shell .desk-attachment-dropzone:hover {
  border-color: var(--accent);
  background: #edf4ff;
}

.app-shell .desk-attachment-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.app-shell .desk-attachment-dropzone > span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.app-shell .desk-attachment-dropzone > span svg {
  width: 17px;
}

.app-shell .desk-attachment-dropzone small {
  flex-basis: 100%;
  color: var(--muted);
}

.app-shell .desk-attachment-dropzone output {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  font-size: 11px;
}

.app-shell .desk-attachment-dropzone output span {
  padding: 3px 6px;
  border-radius: 4px;
  background: #dfeaff;
}

.app-shell .desk-event-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.app-shell .desk-event-attachments a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-subtle);
  color: var(--text);
  text-decoration: none;
}

.app-shell .desk-event-attachments a svg {
  width: 14px;
}

.app-shell .desk-attachment-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 18px;
}

.app-shell .desk-attachment-gallery article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.app-shell .desk-attachment-preview,
.app-shell .desk-attachment-file-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: var(--surface-subtle);
  color: var(--accent);
  text-decoration: none;
}

.app-shell .desk-attachment-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-shell .desk-attachment-file-icon span {
  font-size: 9px;
  font-weight: 800;
}

.app-shell .desk-attachment-gallery article > div {
  min-width: 0;
}

.app-shell .desk-attachment-gallery article > div a,
.app-shell .desk-attachment-gallery article > div small {
  display: block;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .desk-attachment-gallery article > div small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.app-shell .desk-notification-list {
  display: grid;
}

.app-shell .desk-notification-list > a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.app-shell .desk-notification-list > a.unread {
  box-shadow: inset 3px 0 var(--accent);
  background: #f4f8ff;
}

.app-shell .desk-notification-list > a > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: #e8f0ff;
  color: #1559c5;
}

.app-shell .desk-notification-list strong,
.app-shell .desk-notification-list small {
  display: block;
}

.app-shell .desk-notification-list small,
.app-shell .desk-notification-list time {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .app-shell .desk-service-grid {
    grid-template-columns: 1fr;
  }

  .app-shell .desk-attachment-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell .desk-service-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-shell .desk-service-heading p {
    text-align: left;
  }

  .app-shell .desk-sla-targets {
    overflow-x: auto;
  }

  .app-shell .desk-sla-targets > div {
    min-width: 560px;
  }

  .app-shell .desk-rule-group,
  .app-shell .desk-attachment-gallery {
    grid-template-columns: 1fr;
  }

  .app-shell .desk-notification-list > a {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .app-shell .desk-notification-list time {
    grid-column: 2;
  }
}

/* SkyDesk administration and classification */
.app-shell .desk-admin-intro {
  display: flex;
  align-items: center;
  min-height: 132px;
  margin-bottom: 16px;
  padding: 24px;
}

.app-shell .desk-admin-intro h2 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.app-shell .desk-admin-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.app-shell .desk-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  margin-bottom: 16px;
}

.app-shell .desk-admin-panel {
  padding: 18px;
}

.app-shell .desk-config-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
}

.app-shell .desk-config-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-subtle);
}

.app-shell .desk-config-list strong,
.app-shell .desk-config-list small {
  display: block;
}

.app-shell .desk-config-list small,
.app-shell .desk-config-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.app-shell .desk-prefix {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 6px;
  background: #e8f0ff;
  color: #1559c5;
  font-weight: 800;
}

.app-shell .desk-type-tree {
  justify-content: space-between;
}

.app-shell .desk-type-tree em {
  max-width: 48%;
  text-align: right;
}

.app-shell .desk-inline-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 0.35fr) auto;
  gap: 10px;
  align-items: end;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.app-shell .desk-inline-create + .desk-inline-create {
  margin-top: 14px;
}

.app-shell .desk-inline-create-subtype {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.app-shell .desk-inline-create label,
.app-shell .desk-queue-access-card label {
  display: grid;
  gap: 6px;
}

.app-shell .desk-inline-create label > span,
.app-shell .desk-queue-access-card legend {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.app-shell .desk-queue-create {
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1fr) auto;
  margin: 12px 0 18px;
}

.app-shell .desk-queue-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.app-shell .desk-queue-access-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-subtle);
}

.app-shell .desk-queue-access-card > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-shell .desk-queue-access-card > div strong,
.app-shell .desk-queue-access-card > div small,
.app-shell .desk-queue-access-card label strong,
.app-shell .desk-queue-access-card label small {
  display: block;
}

.app-shell .desk-queue-access-card small {
  color: var(--muted);
}

.app-shell .desk-queue-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 6px;
  background: #e8f0ff;
  color: #1559c5;
}

.app-shell .desk-queue-icon svg {
  width: 17px;
  height: 17px;
}

.app-shell .desk-queue-access-card fieldset {
  display: grid;
  gap: 6px;
  max-height: 220px;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
}

.app-shell .desk-queue-access-card legend {
  margin-bottom: 8px;
}

.app-shell .desk-queue-access-card fieldset label {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  padding: 8px;
  border-radius: 5px;
}

.app-shell .desk-queue-access-card fieldset label:hover {
  background: #fff;
}

.app-shell .desk-detail-list a {
  color: inherit;
  text-decoration: none;
}

.app-shell .desk-detail-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .app-shell .desk-admin-grid,
  .app-shell .desk-queue-access-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell .desk-inline-create,
  .app-shell .desk-inline-create-subtype,
  .app-shell .desk-queue-create {
    grid-template-columns: 1fr;
  }

  .app-shell .desk-type-tree {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-shell .desk-type-tree em {
    max-width: none;
    text-align: left;
  }
}

.app-shell .desk-context-panel .form-grid label {
  display: grid;
  gap: 6px;
}

.app-shell .desk-context-panel .form-grid label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.app-shell .desk-context-panel .desk-checkbox {
  display: flex;
  align-items: center;
  grid-template-columns: none;
  gap: 8px;
}

.app-shell .desk-context-panel .desk-checkbox input {
  width: 16px;
  height: 16px;
}

.app-shell .desk-time-list {
  display: grid;
}

.app-shell .desk-time-list article {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 72px auto;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-top: 1px solid var(--line-soft);
}

.app-shell .desk-time-list time,
.app-shell .desk-time-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.app-shell .desk-time-list article > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.app-shell .desk-time-list small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.app-shell .desk-billable {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid #b7ddd8;
  border-radius: 999px;
  background: #eefbf8;
  color: #05645a;
  font-size: 10px;
  font-weight: 800;
}

.app-shell .desk-calendar-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 16px 18px;
}

.app-shell .desk-calendar-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-shell .desk-calendar-nav > div {
  display: grid;
  gap: 3px;
  min-width: 220px;
  text-align: center;
}

.app-shell .desk-calendar-nav span,
.app-shell .desk-calendar-toolbar label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.app-shell .desk-calendar-toolbar form {
  display: flex;
  align-items: end;
  gap: 10px;
}

.app-shell .desk-calendar-toolbar label {
  display: grid;
  gap: 5px;
}

.app-shell .desk-calendar-toolbar button {
  width: auto;
}

.app-shell .desk-calendar-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.app-shell .desk-calendar-summary article {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
}

.app-shell .desk-calendar-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.app-shell .desk-calendar-summary strong {
  font-size: 24px;
}

.app-shell .desk-engineer-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.app-shell .desk-engineer-totals article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
}

.app-shell .desk-engineer-totals article > div {
  display: grid;
  gap: 2px;
}

.app-shell .desk-engineer-totals small {
  color: var(--muted);
}

.app-shell .desk-engineer-totals em {
  color: #05645a;
  font-style: normal;
  font-weight: 800;
}

.app-shell .desk-day-calendar {
  overflow: hidden;
}

.app-shell .desk-calendar-entries {
  padding: 0 18px 18px;
}

.app-shell .desk-calendar-entries article {
  display: grid;
  grid-template-columns: 54px 14px minmax(0, 1fr);
  gap: 12px;
  min-height: 86px;
}

.app-shell .desk-calendar-time {
  display: grid;
  align-content: start;
  gap: 3px;
  padding-top: 16px;
  text-align: right;
}

.app-shell .desk-calendar-time strong {
  font-size: 13px;
}

.app-shell .desk-calendar-time span {
  color: var(--muted);
  font-size: 10px;
}

.app-shell .desk-calendar-line {
  position: relative;
  display: block;
  width: 2px;
  height: 100%;
  margin: 0 auto;
  background: #d9e7e5;
}

.app-shell .desk-calendar-line::before {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #087f72;
  box-shadow: 0 0 0 1px #8cc9c1;
  content: "";
  transform: translateX(-50%);
}

.app-shell .desk-calendar-entry-copy {
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line-soft);
}

.app-shell .desk-calendar-entry-copy > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.app-shell .desk-calendar-entry-copy a {
  color: var(--text);
  font-weight: 780;
  text-decoration: none;
}

.app-shell .desk-calendar-entry-copy a:hover {
  color: #05645a;
}

.app-shell .desk-calendar-entry-copy p {
  margin: 7px 0 5px;
  color: #3f4b60;
  overflow-wrap: anywhere;
}

.app-shell .desk-calendar-entry-copy small {
  color: var(--muted);
}

@media (max-width: 820px) {
  .app-shell .desk-calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell .desk-calendar-toolbar form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell .desk-calendar-toolbar form button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .app-shell .desk-time-list article {
    grid-template-columns: 1fr auto;
  }

  .app-shell .desk-time-list article > span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .app-shell .desk-calendar-nav {
    justify-content: space-between;
  }

  .app-shell .desk-calendar-nav > div {
    min-width: 0;
  }

  .app-shell .desk-calendar-toolbar form,
  .app-shell .desk-calendar-summary {
    grid-template-columns: 1fr;
  }

  .app-shell .desk-calendar-toolbar form button {
    grid-column: auto;
  }
}
