.shell.carrier-shell {
  grid-template-columns: 208px minmax(0, 1fr);
}

.carrier-shell .sidebar {
  max-height: 100dvh;
  padding: 19px 12px 15px;
  overflow-y: auto;
}
.carrier-shell .sidebar > * { flex-shrink: 0; }
.carrier-shell .sidebar .brand { gap: 9px; margin: 0 5px 21px; font-size: 1.13rem; }
.carrier-shell .workspace { margin-bottom: 15px; padding: 8px; }
.carrier-shell .nav-group { gap: 3px; margin-bottom: 14px; }
.carrier-shell .nav-item { gap: 8px; padding: 9px 10px; font-size: .87rem; }

.carrier-shell .workspace-wallet {
  display: grid;
  gap: 5px;
  margin-bottom: 15px;
  padding: 11px;
  border: 1px solid #4b3b5d;
  border-radius: 10px;
  background: #2b2238;
  color: #f6effc;
}
.carrier-shell .wallet-kicker { color: #dcc8ef; font-size: .66rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.carrier-shell .wallet-count { font-size: 1.38rem; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.12; }
.carrier-shell .wallet-count span, .carrier-shell .wallet-revealed { color: #e1d5eb; font-size: .77rem; font-weight: 600; }

.carrier-shell .workspace-body, .carrier-shell .header-main { min-width: 0; }
.carrier-shell .main > .stack { grid-template-columns: minmax(0, 1fr); }
.carrier-shell .header { min-height: 58px; padding-block: 9px; }
.workspace-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #f7f4fa; }
.workspace-switch a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 7px; color: var(--muted); font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.workspace-switch a:hover { background: #eee5f7; color: var(--ink); }
.workspace-switch a[data-active="true"] { background: #eee3fc; color: #502689; }
.workspace-switch a[data-active="true"] .icon { color: inherit; }
.carrier-shell .workspace-wallet .btn { justify-self: stretch; margin-top: 4px; background: #ebdbff; color: #382255; border-color: #ebdbff; }
.carrier-shell .workspace-wallet .btn:hover { background: #f6edff; border-color: #f6edff; }
.carrier-shell .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.carrier-shell .pack-selected { border-color: #a887de; background: #fbf7ff; box-shadow: inset 0 0 0 1px #a887de; }

.carrier-shell .carrier-home { display: grid; gap: clamp(12px, 2vw, 20px); }
.home-row-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; color: var(--accent-hover); background: var(--workspace-tint); }
.home-row-icon .icon { width: 16px; height: 16px; }
.home-recent { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 12px; }
.home-recent > .card { min-width: 0; }
.home-recent-rows { margin: 0; padding: 0; list-style: none; }
.home-recent-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px clamp(13px, 2vw, 18px); border-top: 1px solid var(--line); }
.home-recent-row > div { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.home-recent-row small { color: var(--muted); font-size: .78rem; }
.invite-layout { display: grid; align-items: center; flex: 1; width: min(440px, calc(100% - 32px)); margin-inline: auto; padding-block: 32px; }
.invite-brand { margin-bottom: 20px; color: var(--signup-ink); }

@media (max-width: 1050px) {
  .shell.carrier-shell { grid-template-columns: 182px minmax(0, 1fr); }
}
@media (max-width: 950px) {
  .home-recent { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .shell.carrier-shell { display: block; }
  .carrier-shell .header-actions { flex-wrap: nowrap; }
  .carrier-shell .mobile-nav { width: 100%; }
  .carrier-shell .carrier-workspace-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .carrier-workspace-header .header-main { display: contents; }
  .carrier-workspace-header .workspace-switch { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .carrier-workspace-header .mobile-nav { min-width: 0; }
}
@media (max-width: 570px) {
  .carrier-shell .packs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .carrier-shell .header { gap: 7px; }
  .carrier-shell .header-balance { gap: 4px; font-size: .83rem; }
}
